1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for log4cpp 1.1.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    PATH=/empty FPATH=/empty; export PATH FPATH
181    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184  if (eval "$as_required") 2>/dev/null; then :
185  as_have_required=yes
186else
187  as_have_required=no
188fi
189  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196  IFS=$as_save_IFS
197  test -z "$as_dir" && as_dir=.
198  as_found=:
199  case $as_dir in #(
200	 /*)
201	   for as_base in sh bash ksh sh5; do
202	     # Try only shells that exist, to save several forks.
203	     as_shell=$as_dir/$as_base
204	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206  CONFIG_SHELL=$as_shell as_have_required=yes
207		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  break 2
209fi
210fi
211	   done;;
212       esac
213  as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217  CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222      if test "x$CONFIG_SHELL" != x; then :
223  # We cannot yet assume a decent shell, so we have to provide a
224	# neutralization value for shells without unset; and this also
225	# works around shells that cannot unset nonexistent variables.
226	# Preserve -v and -x to the replacement shell.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	case $- in # ((((
232	  *v*x* | *x*v* ) as_opts=-vx ;;
233	  *v* ) as_opts=-v ;;
234	  *x* ) as_opts=-x ;;
235	  * ) as_opts= ;;
236	esac
237	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240    if test x$as_have_required = xno; then :
241  $as_echo "$0: This script requires a shell more modern than all"
242  $as_echo "$0: the shells that I found on your system."
243  if test x${ZSH_VERSION+set} = xset ; then
244    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246  else
247    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251  fi
252  exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270  { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279  return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287  set +e
288  as_fn_set_status $1
289  exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298  case $as_dir in #(
299  -*) as_dir=./$as_dir;;
300  esac
301  test -d "$as_dir" || eval $as_mkdir_p || {
302    as_dirs=
303    while :; do
304      case $as_dir in #(
305      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306      *) as_qdir=$as_dir;;
307      esac
308      as_dirs="'$as_qdir' $as_dirs"
309      as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311	 X"$as_dir" : 'X\(//\)[^/]' \| \
312	 X"$as_dir" : 'X\(//\)$' \| \
313	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)[^/].*/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)$/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\).*/{
328	    s//\1/
329	    q
330	  }
331	  s/.*/./; q'`
332      test -d "$as_dir" && break
333    done
334    test -z "$as_dirs" || eval "mkdir $as_dirs"
335  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346  eval 'as_fn_append ()
347  {
348    eval $1+=\$2
349  }'
350else
351  as_fn_append ()
352  {
353    eval $1=\$$1\$2
354  }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363  eval 'as_fn_arith ()
364  {
365    as_val=$(( $* ))
366  }'
367else
368  as_fn_arith ()
369  {
370    as_val=`expr "$@" || test $? -eq 1`
371  }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382  as_status=$1; test $as_status -eq 0 && as_status=1
383  if test "$4"; then
384    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386  fi
387  $as_echo "$as_me: error: $2" >&2
388  as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392   test "X`expr 00001 : '.*\(...\)'`" = X001; then
393  as_expr=expr
394else
395  as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399  as_basename=basename
400else
401  as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405  as_dirname=dirname
406else
407  as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412	 X"$0" : 'X\(//\)$' \| \
413	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415    sed '/^.*\/\([^/][^/]*\)\/*$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\/\)$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\).*/{
424	    s//\1/
425	    q
426	  }
427	  s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437  as_lineno_1=$LINENO as_lineno_1a=$LINENO
438  as_lineno_2=$LINENO as_lineno_2a=$LINENO
439  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442  sed -n '
443    p
444    /[$]LINENO/=
445  ' <$as_myself |
446    sed '
447      s/[$]LINENO.*/&-/
448      t lineno
449      b
450      :lineno
451      N
452      :loop
453      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454      t loop
455      s/-\n.*//
456    ' >$as_me.lineno &&
457  chmod +x "$as_me.lineno" ||
458    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471  case `echo 'xy\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  xy)  ECHO_C='\c';;
474  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475       ECHO_T='	';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483  rm -f conf$$.dir/conf$$.file
484else
485  rm -f conf$$.dir
486  mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489  if ln -s conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s='ln -s'
491    # ... but there are two gotchas:
492    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494    # In both cases, we have to default to `cp -p'.
495    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496      as_ln_s='cp -p'
497  elif ln conf$$.file conf$$ 2>/dev/null; then
498    as_ln_s=ln
499  else
500    as_ln_s='cp -p'
501  fi
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p='mkdir -p "$as_dir"'
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516  as_test_x='test -x'
517else
518  if ls -dL / >/dev/null 2>&1; then
519    as_ls_L_option=L
520  else
521    as_ls_L_option=
522  fi
523  as_test_x='
524    eval sh -c '\''
525      if test -d "$1"; then
526	test -d "$1/.";
527      else
528	case $1 in #(
529	-*)set "./$1";;
530	esac;
531	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532	???[sx]*):;;*)false;;esac;fi
533    '\'' sh
534  '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME='log4cpp'
569PACKAGE_TARNAME='log4cpp'
570PACKAGE_VERSION='1.1'
571PACKAGE_STRING='log4cpp 1.1'
572PACKAGE_BUGREPORT=''
573PACKAGE_URL=''
574
575# Factoring default headers for most tests.
576ac_includes_default="\
577#include <stdio.h>
578#ifdef HAVE_SYS_TYPES_H
579# include <sys/types.h>
580#endif
581#ifdef HAVE_SYS_STAT_H
582# include <sys/stat.h>
583#endif
584#ifdef STDC_HEADERS
585# include <stdlib.h>
586# include <stddef.h>
587#else
588# ifdef HAVE_STDLIB_H
589#  include <stdlib.h>
590# endif
591#endif
592#ifdef HAVE_STRING_H
593# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594#  include <memory.h>
595# endif
596# include <string.h>
597#endif
598#ifdef HAVE_STRINGS_H
599# include <strings.h>
600#endif
601#ifdef HAVE_INTTYPES_H
602# include <inttypes.h>
603#endif
604#ifdef HAVE_STDINT_H
605# include <stdint.h>
606#endif
607#ifdef HAVE_UNISTD_H
608# include <unistd.h>
609#endif"
610
611ac_subst_vars='am__EXEEXT_FALSE
612am__EXEEXT_TRUE
613LTLIBOBJS
614LIBOBJS
615LOG4CPP_PKGCONFIG
616LOG4CPP_CONFLICTS
617LOG4CPP_REQUIRES
618LOG4CPP_CONFIG
619LOG4CPP_VERSION
620log4cpp_libs
621log4cpp_cflags
622target
623DISABLE_SMTP_FALSE
624DISABLE_SMTP_TRUE
625DISABLE_REMOTE_SYSLOG_FALSE
626DISABLE_REMOTE_SYSLOG_TRUE
627enable_latex_docs
628enable_html_docs
629enable_dot
630DOC_FALSE
631DOC_TRUE
632DOT
633DOXYGEN
634PTHREAD_CFLAGS
635PTHREAD_LIBS
636PTHREAD_CC
637acx_pthread_config
638CXXCPP
639am__fastdepCXX_FALSE
640am__fastdepCXX_TRUE
641CXXDEPMODE
642ac_ct_CXX
643CXXFLAGS
644CXX
645CPP
646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
651MANIFEST_TOOL
652RANLIB
653ac_ct_AR
654AR
655DLLTOOL
656OBJDUMP
657LN_S
658NM
659ac_ct_DUMPBIN
660DUMPBIN
661LD
662FGREP
663EGREP
664GREP
665SED
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669am__nodep
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
673am__quote
674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683LIBTOOL
684host_os
685host_vendor
686host_cpu
687host
688build_os
689build_vendor
690build_cpu
691build
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715LT_VERSION
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
754ac_subst_files=''
755ac_user_opts='
756enable_option_checking
757with_idsa
758enable_debug
759enable_shared
760enable_static
761with_pic
762enable_fast_install
763enable_dependency_tracking
764with_gnu_ld
765with_sysroot
766enable_libtool_lock
767enable_doxygen
768enable_dot
769enable_html_docs
770enable_latex_docs
771enable_remote_syslog
772enable_smtp
773'
774      ac_precious_vars='build_alias
775host_alias
776target_alias
777CC
778CFLAGS
779LDFLAGS
780LIBS
781CPPFLAGS
782CPP
783CXX
784CXXFLAGS
785CCC
786CXXCPP'
787
788
789# Initialize some variables set by options.
790ac_init_help=
791ac_init_version=false
792ac_unrecognized_opts=
793ac_unrecognized_sep=
794# The variables have the same names as the options, with
795# dashes changed to underlines.
796cache_file=/dev/null
797exec_prefix=NONE
798no_create=
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
807verbose=
808x_includes=NONE
809x_libraries=NONE
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
816# (The list follows the same order as the GNU Coding Standards.)
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841  # If the previous option needs an argument, assign it.
842  if test -n "$ac_prev"; then
843    eval $ac_prev=\$ac_option
844    ac_prev=
845    continue
846  fi
847
848  case $ac_option in
849  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850  *=)   ac_optarg= ;;
851  *)    ac_optarg=yes ;;
852  esac
853
854  # Accept the important Cygnus configure options, so we can diagnose typos.
855
856  case $ac_dashdash$ac_option in
857  --)
858    ac_dashdash=yes ;;
859
860  -bindir | --bindir | --bindi | --bind | --bin | --bi)
861    ac_prev=bindir ;;
862  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863    bindir=$ac_optarg ;;
864
865  -build | --build | --buil | --bui | --bu)
866    ac_prev=build_alias ;;
867  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868    build_alias=$ac_optarg ;;
869
870  -cache-file | --cache-file | --cache-fil | --cache-fi \
871  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872    ac_prev=cache_file ;;
873  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875    cache_file=$ac_optarg ;;
876
877  --config-cache | -C)
878    cache_file=config.cache ;;
879
880  -datadir | --datadir | --datadi | --datad)
881    ac_prev=datadir ;;
882  -datadir=* | --datadir=* | --datadi=* | --datad=*)
883    datadir=$ac_optarg ;;
884
885  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886  | --dataroo | --dataro | --datar)
887    ac_prev=datarootdir ;;
888  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890    datarootdir=$ac_optarg ;;
891
892  -disable-* | --disable-*)
893    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894    # Reject names that are not valid shell variable names.
895    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896      as_fn_error $? "invalid feature name: $ac_useropt"
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=no ;;
907
908  -docdir | --docdir | --docdi | --doc | --do)
909    ac_prev=docdir ;;
910  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911    docdir=$ac_optarg ;;
912
913  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914    ac_prev=dvidir ;;
915  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916    dvidir=$ac_optarg ;;
917
918  -enable-* | --enable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=\$ac_optarg ;;
933
934  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936  | --exec | --exe | --ex)
937    ac_prev=exec_prefix ;;
938  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940  | --exec=* | --exe=* | --ex=*)
941    exec_prefix=$ac_optarg ;;
942
943  -gas | --gas | --ga | --g)
944    # Obsolete; use --with-gas.
945    with_gas=yes ;;
946
947  -help | --help | --hel | --he | -h)
948    ac_init_help=long ;;
949  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950    ac_init_help=recursive ;;
951  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952    ac_init_help=short ;;
953
954  -host | --host | --hos | --ho)
955    ac_prev=host_alias ;;
956  -host=* | --host=* | --hos=* | --ho=*)
957    host_alias=$ac_optarg ;;
958
959  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960    ac_prev=htmldir ;;
961  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962  | --ht=*)
963    htmldir=$ac_optarg ;;
964
965  -includedir | --includedir | --includedi | --included | --include \
966  | --includ | --inclu | --incl | --inc)
967    ac_prev=includedir ;;
968  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969  | --includ=* | --inclu=* | --incl=* | --inc=*)
970    includedir=$ac_optarg ;;
971
972  -infodir | --infodir | --infodi | --infod | --info | --inf)
973    ac_prev=infodir ;;
974  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975    infodir=$ac_optarg ;;
976
977  -libdir | --libdir | --libdi | --libd)
978    ac_prev=libdir ;;
979  -libdir=* | --libdir=* | --libdi=* | --libd=*)
980    libdir=$ac_optarg ;;
981
982  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983  | --libexe | --libex | --libe)
984    ac_prev=libexecdir ;;
985  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986  | --libexe=* | --libex=* | --libe=*)
987    libexecdir=$ac_optarg ;;
988
989  -localedir | --localedir | --localedi | --localed | --locale)
990    ac_prev=localedir ;;
991  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992    localedir=$ac_optarg ;;
993
994  -localstatedir | --localstatedir | --localstatedi | --localstated \
995  | --localstate | --localstat | --localsta | --localst | --locals)
996    ac_prev=localstatedir ;;
997  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999    localstatedir=$ac_optarg ;;
1000
1001  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002    ac_prev=mandir ;;
1003  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004    mandir=$ac_optarg ;;
1005
1006  -nfp | --nfp | --nf)
1007    # Obsolete; use --without-fp.
1008    with_fp=no ;;
1009
1010  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011  | --no-cr | --no-c | -n)
1012    no_create=yes ;;
1013
1014  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016    no_recursion=yes ;;
1017
1018  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020  | --oldin | --oldi | --old | --ol | --o)
1021    ac_prev=oldincludedir ;;
1022  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025    oldincludedir=$ac_optarg ;;
1026
1027  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028    ac_prev=prefix ;;
1029  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030    prefix=$ac_optarg ;;
1031
1032  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033  | --program-pre | --program-pr | --program-p)
1034    ac_prev=program_prefix ;;
1035  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037    program_prefix=$ac_optarg ;;
1038
1039  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040  | --program-suf | --program-su | --program-s)
1041    ac_prev=program_suffix ;;
1042  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044    program_suffix=$ac_optarg ;;
1045
1046  -program-transform-name | --program-transform-name \
1047  | --program-transform-nam | --program-transform-na \
1048  | --program-transform-n | --program-transform- \
1049  | --program-transform | --program-transfor \
1050  | --program-transfo | --program-transf \
1051  | --program-trans | --program-tran \
1052  | --progr-tra | --program-tr | --program-t)
1053    ac_prev=program_transform_name ;;
1054  -program-transform-name=* | --program-transform-name=* \
1055  | --program-transform-nam=* | --program-transform-na=* \
1056  | --program-transform-n=* | --program-transform-=* \
1057  | --program-transform=* | --program-transfor=* \
1058  | --program-transfo=* | --program-transf=* \
1059  | --program-trans=* | --program-tran=* \
1060  | --progr-tra=* | --program-tr=* | --program-t=*)
1061    program_transform_name=$ac_optarg ;;
1062
1063  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064    ac_prev=pdfdir ;;
1065  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066    pdfdir=$ac_optarg ;;
1067
1068  -psdir | --psdir | --psdi | --psd | --ps)
1069    ac_prev=psdir ;;
1070  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071    psdir=$ac_optarg ;;
1072
1073  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074  | -silent | --silent | --silen | --sile | --sil)
1075    silent=yes ;;
1076
1077  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078    ac_prev=sbindir ;;
1079  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080  | --sbi=* | --sb=*)
1081    sbindir=$ac_optarg ;;
1082
1083  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085  | --sharedst | --shareds | --shared | --share | --shar \
1086  | --sha | --sh)
1087    ac_prev=sharedstatedir ;;
1088  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091  | --sha=* | --sh=*)
1092    sharedstatedir=$ac_optarg ;;
1093
1094  -site | --site | --sit)
1095    ac_prev=site ;;
1096  -site=* | --site=* | --sit=*)
1097    site=$ac_optarg ;;
1098
1099  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100    ac_prev=srcdir ;;
1101  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102    srcdir=$ac_optarg ;;
1103
1104  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105  | --syscon | --sysco | --sysc | --sys | --sy)
1106    ac_prev=sysconfdir ;;
1107  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109    sysconfdir=$ac_optarg ;;
1110
1111  -target | --target | --targe | --targ | --tar | --ta | --t)
1112    ac_prev=target_alias ;;
1113  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114    target_alias=$ac_optarg ;;
1115
1116  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117    verbose=yes ;;
1118
1119  -version | --version | --versio | --versi | --vers | -V)
1120    ac_init_version=: ;;
1121
1122  -with-* | --with-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124    # Reject names that are not valid shell variable names.
1125    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126      as_fn_error $? "invalid package name: $ac_useropt"
1127    ac_useropt_orig=$ac_useropt
1128    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129    case $ac_user_opts in
1130      *"
1131"with_$ac_useropt"
1132"*) ;;
1133      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval with_$ac_useropt=\$ac_optarg ;;
1137
1138  -without-* | --without-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=no ;;
1153
1154  --x)
1155    # Obsolete; use --with-x.
1156    with_x=yes ;;
1157
1158  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159  | --x-incl | --x-inc | --x-in | --x-i)
1160    ac_prev=x_includes ;;
1161  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163    x_includes=$ac_optarg ;;
1164
1165  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167    ac_prev=x_libraries ;;
1168  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170    x_libraries=$ac_optarg ;;
1171
1172  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information"
1174    ;;
1175
1176  *=*)
1177    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178    # Reject names that are not valid shell variable names.
1179    case $ac_envvar in #(
1180      '' | [0-9]* | *[!_$as_cr_alnum]* )
1181      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182    esac
1183    eval $ac_envvar=\$ac_optarg
1184    export $ac_envvar ;;
1185
1186  *)
1187    # FIXME: should be removed in autoconf 3.0.
1188    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192    ;;
1193
1194  esac
1195done
1196
1197if test -n "$ac_prev"; then
1198  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199  as_fn_error $? "missing argument to $ac_option"
1200fi
1201
1202if test -n "$ac_unrecognized_opts"; then
1203  case $enable_option_checking in
1204    no) ;;
1205    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207  esac
1208fi
1209
1210# Check all directory arguments for consistency.
1211for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212		datadir sysconfdir sharedstatedir localstatedir includedir \
1213		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214		libdir localedir mandir
1215do
1216  eval ac_val=\$$ac_var
1217  # Remove trailing slashes.
1218  case $ac_val in
1219    */ )
1220      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221      eval $ac_var=\$ac_val;;
1222  esac
1223  # Be sure to have absolute directory names.
1224  case $ac_val in
1225    [\\/$]* | ?:[\\/]* )  continue;;
1226    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227  esac
1228  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229done
1230
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240  if test "x$build_alias" = x; then
1241    cross_compiling=maybe
1242    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1243    If a cross compiler is detected then cross compile mode will be used" >&2
1244  elif test "x$build_alias" != "x$host_alias"; then
1245    cross_compiling=yes
1246  fi
1247fi
1248
1249ac_tool_prefix=
1250test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252test "$silent" = yes && exec 6>/dev/null
1253
1254
1255ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256ac_ls_di=`ls -di .` &&
1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258  as_fn_error $? "working directory cannot be determined"
1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260  as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265  ac_srcdir_defaulted=yes
1266  # Try the directory containing this script, then the parent directory.
1267  ac_confdir=`$as_dirname -- "$as_myself" ||
1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269	 X"$as_myself" : 'X\(//\)[^/]' \| \
1270	 X"$as_myself" : 'X\(//\)$' \| \
1271	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272$as_echo X"$as_myself" |
1273    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274	    s//\1/
1275	    q
1276	  }
1277	  /^X\(\/\/\)[^/].*/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\/\)$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\).*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  s/.*/./; q'`
1290  srcdir=$ac_confdir
1291  if test ! -r "$srcdir/$ac_unique_file"; then
1292    srcdir=..
1293  fi
1294else
1295  ac_srcdir_defaulted=no
1296fi
1297if test ! -r "$srcdir/$ac_unique_file"; then
1298  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300fi
1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302ac_abs_confdir=`(
1303	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304	pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307  srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317  eval ac_env_${ac_var}_value=\$${ac_var}
1318  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
1321
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326  # Omit some internal or obsolete options to make the list less imposing.
1327  # This message is too long to be a string in the A/UX 3.1 sh.
1328  cat <<_ACEOF
1329\`configure' configures log4cpp 1.1 to adapt to many kinds of systems.
1330
1331Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336Defaults for the options are specified in brackets.
1337
1338Configuration:
1339  -h, --help              display this help and exit
1340      --help=short        display options specific to this package
1341      --help=recursive    display the short help of all the included packages
1342  -V, --version           display version information and exit
1343  -q, --quiet, --silent   do not print \`checking ...' messages
1344      --cache-file=FILE   cache test results in FILE [disabled]
1345  -C, --config-cache      alias for \`--cache-file=config.cache'
1346  -n, --no-create         do not create output files
1347      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349Installation directories:
1350  --prefix=PREFIX         install architecture-independent files in PREFIX
1351                          [$ac_default_prefix]
1352  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353                          [PREFIX]
1354
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
1359
1360For better control, use the options below.
1361
1362Fine tuning of the installation directories:
1363  --bindir=DIR            user executables [EPREFIX/bin]
1364  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1365  --libexecdir=DIR        program executables [EPREFIX/libexec]
1366  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1367  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1368  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1369  --libdir=DIR            object code libraries [EPREFIX/lib]
1370  --includedir=DIR        C header files [PREFIX/include]
1371  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1372  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1373  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1374  --infodir=DIR           info documentation [DATAROOTDIR/info]
1375  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1376  --mandir=DIR            man documentation [DATAROOTDIR/man]
1377  --docdir=DIR            documentation root [DATAROOTDIR/doc/log4cpp]
1378  --htmldir=DIR           html documentation [DOCDIR]
1379  --dvidir=DIR            dvi documentation [DOCDIR]
1380  --pdfdir=DIR            pdf documentation [DOCDIR]
1381  --psdir=DIR             ps documentation [DOCDIR]
1382_ACEOF
1383
1384  cat <<\_ACEOF
1385
1386Program names:
1387  --program-prefix=PREFIX            prepend PREFIX to installed program names
1388  --program-suffix=SUFFIX            append SUFFIX to installed program names
1389  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1390
1391System types:
1392  --build=BUILD     configure for building on BUILD [guessed]
1393  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394_ACEOF
1395fi
1396
1397if test -n "$ac_init_help"; then
1398  case $ac_init_help in
1399     short | recursive ) echo "Configuration of log4cpp 1.1:";;
1400   esac
1401  cat <<\_ACEOF
1402
1403Optional Features:
1404  --disable-option-checking  ignore unrecognized --enable/--with options
1405  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407  --enable-debug          Have GCC compile with symbols (Default = no)
1408  --enable-shared[=PKGS]  build shared libraries [default=yes]
1409  --enable-static[=PKGS]  build static libraries [default=yes]
1410  --enable-fast-install[=PKGS]
1411                          optimize for fast installation [default=yes]
1412  --disable-dependency-tracking  speeds up one-time build
1413  --enable-dependency-tracking   do not reject slow dependency extractors
1414  --disable-libtool-lock  avoid locking (might break parallel builds)
1415  --enable-doxygen        enable documentation generation with doxygen (auto)
1416  --enable-dot            use 'dot' to generate graphs in doxygen (auto)
1417  --enable-html-docs      enable HTML generation with doxygen (yes)
1418  --enable-latex-docs     enable LaTeX documentation generation with doxygen (no)
1419  --disable-remote-syslog disables remote syslog appender
1420  --disable-smtp          disables SMTP appender
1421
1422Optional Packages:
1423  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1424  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1425  --with-idsa             include idsa support
1426  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1427                          both]
1428  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1429  --with-sysroot=DIR Search for dependent libraries within DIR
1430                        (or the compiler's sysroot if not specified).
1431
1432Some influential environment variables:
1433  CC          C compiler command
1434  CFLAGS      C compiler flags
1435  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436              nonstandard directory <lib dir>
1437  LIBS        libraries to pass to the linker, e.g. -l<library>
1438  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439              you have headers in a nonstandard directory <include dir>
1440  CPP         C preprocessor
1441  CXX         C++ compiler command
1442  CXXFLAGS    C++ compiler flags
1443  CXXCPP      C++ preprocessor
1444
1445Use these variables to override the choices made by `configure' or to help
1446it to find libraries and programs with nonstandard names/locations.
1447
1448Report bugs to the package provider.
1449_ACEOF
1450ac_status=$?
1451fi
1452
1453if test "$ac_init_help" = "recursive"; then
1454  # If there are subdirs, report their specific --help.
1455  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456    test -d "$ac_dir" ||
1457      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458      continue
1459    ac_builddir=.
1460
1461case "$ac_dir" in
1462.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463*)
1464  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465  # A ".." for each directory in $ac_dir_suffix.
1466  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467  case $ac_top_builddir_sub in
1468  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470  esac ;;
1471esac
1472ac_abs_top_builddir=$ac_pwd
1473ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474# for backward compatibility:
1475ac_top_builddir=$ac_top_build_prefix
1476
1477case $srcdir in
1478  .)  # We are building in place.
1479    ac_srcdir=.
1480    ac_top_srcdir=$ac_top_builddir_sub
1481    ac_abs_top_srcdir=$ac_pwd ;;
1482  [\\/]* | ?:[\\/]* )  # Absolute name.
1483    ac_srcdir=$srcdir$ac_dir_suffix;
1484    ac_top_srcdir=$srcdir
1485    ac_abs_top_srcdir=$srcdir ;;
1486  *) # Relative name.
1487    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488    ac_top_srcdir=$ac_top_build_prefix$srcdir
1489    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490esac
1491ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493    cd "$ac_dir" || { ac_status=$?; continue; }
1494    # Check for guested configure.
1495    if test -f "$ac_srcdir/configure.gnu"; then
1496      echo &&
1497      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498    elif test -f "$ac_srcdir/configure"; then
1499      echo &&
1500      $SHELL "$ac_srcdir/configure" --help=recursive
1501    else
1502      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503    fi || ac_status=$?
1504    cd "$ac_pwd" || { ac_status=$?; break; }
1505  done
1506fi
1507
1508test -n "$ac_init_help" && exit $ac_status
1509if $ac_init_version; then
1510  cat <<\_ACEOF
1511log4cpp configure 1.1
1512generated by GNU Autoconf 2.68
1513
1514Copyright (C) 2010 Free Software Foundation, Inc.
1515This configure script is free software; the Free Software Foundation
1516gives unlimited permission to copy, distribute and modify it.
1517_ACEOF
1518  exit
1519fi
1520
1521## ------------------------ ##
1522## Autoconf initialization. ##
1523## ------------------------ ##
1524
1525# ac_fn_c_try_compile LINENO
1526# --------------------------
1527# Try to compile conftest.$ac_ext, and return whether this succeeded.
1528ac_fn_c_try_compile ()
1529{
1530  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531  rm -f conftest.$ac_objext
1532  if { { ac_try="$ac_compile"
1533case "(($ac_try" in
1534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535  *) ac_try_echo=$ac_try;;
1536esac
1537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538$as_echo "$ac_try_echo"; } >&5
1539  (eval "$ac_compile") 2>conftest.err
1540  ac_status=$?
1541  if test -s conftest.err; then
1542    grep -v '^ *+' conftest.err >conftest.er1
1543    cat conftest.er1 >&5
1544    mv -f conftest.er1 conftest.err
1545  fi
1546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547  test $ac_status = 0; } && {
1548	 test -z "$ac_c_werror_flag" ||
1549	 test ! -s conftest.err
1550       } && test -s conftest.$ac_objext; then :
1551  ac_retval=0
1552else
1553  $as_echo "$as_me: failed program was:" >&5
1554sed 's/^/| /' conftest.$ac_ext >&5
1555
1556	ac_retval=1
1557fi
1558  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559  as_fn_set_status $ac_retval
1560
1561} # ac_fn_c_try_compile
1562
1563# ac_fn_c_try_link LINENO
1564# -----------------------
1565# Try to link conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_link ()
1567{
1568  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569  rm -f conftest.$ac_objext conftest$ac_exeext
1570  if { { ac_try="$ac_link"
1571case "(($ac_try" in
1572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573  *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577  (eval "$ac_link") 2>conftest.err
1578  ac_status=$?
1579  if test -s conftest.err; then
1580    grep -v '^ *+' conftest.err >conftest.er1
1581    cat conftest.er1 >&5
1582    mv -f conftest.er1 conftest.err
1583  fi
1584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585  test $ac_status = 0; } && {
1586	 test -z "$ac_c_werror_flag" ||
1587	 test ! -s conftest.err
1588       } && test -s conftest$ac_exeext && {
1589	 test "$cross_compiling" = yes ||
1590	 $as_test_x conftest$ac_exeext
1591       }; then :
1592  ac_retval=0
1593else
1594  $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597	ac_retval=1
1598fi
1599  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601  # interfere with the next link command; also delete a directory that is
1602  # left behind by Apple's compiler.  We do this before executing the actions.
1603  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605  as_fn_set_status $ac_retval
1606
1607} # ac_fn_c_try_link
1608
1609# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610# -------------------------------------------------------
1611# Tests whether HEADER exists and can be compiled using the include files in
1612# INCLUDES, setting the cache variable VAR accordingly.
1613ac_fn_c_check_header_compile ()
1614{
1615  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617$as_echo_n "checking for $2... " >&6; }
1618if eval \${$3+:} false; then :
1619  $as_echo_n "(cached) " >&6
1620else
1621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h.  */
1623$4
1624#include <$2>
1625_ACEOF
1626if ac_fn_c_try_compile "$LINENO"; then :
1627  eval "$3=yes"
1628else
1629  eval "$3=no"
1630fi
1631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632fi
1633eval ac_res=\$$3
1634	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635$as_echo "$ac_res" >&6; }
1636  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638} # ac_fn_c_check_header_compile
1639
1640# ac_fn_c_try_cpp LINENO
1641# ----------------------
1642# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643ac_fn_c_try_cpp ()
1644{
1645  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646  if { { ac_try="$ac_cpp conftest.$ac_ext"
1647case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5
1653  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654  ac_status=$?
1655  if test -s conftest.err; then
1656    grep -v '^ *+' conftest.err >conftest.er1
1657    cat conftest.er1 >&5
1658    mv -f conftest.er1 conftest.err
1659  fi
1660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } > conftest.i && {
1662	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663	 test ! -s conftest.err
1664       }; then :
1665  ac_retval=0
1666else
1667  $as_echo "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5
1669
1670    ac_retval=1
1671fi
1672  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673  as_fn_set_status $ac_retval
1674
1675} # ac_fn_c_try_cpp
1676
1677# ac_fn_c_try_run LINENO
1678# ----------------------
1679# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680# that executables *can* be run.
1681ac_fn_c_try_run ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  if { { ac_try="$ac_link"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691  (eval "$ac_link") 2>&5
1692  ac_status=$?
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695  { { case "(($ac_try" in
1696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697  *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701  (eval "$ac_try") 2>&5
1702  ac_status=$?
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; }; }; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: program exited with status $ac_status" >&5
1708       $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711       ac_retval=$ac_status
1712fi
1713  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715  as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_run
1718
1719# ac_fn_c_check_func LINENO FUNC VAR
1720# ----------------------------------
1721# Tests whether FUNC exists, setting the cache variable VAR accordingly
1722ac_fn_c_check_func ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726$as_echo_n "checking for $2... " >&6; }
1727if eval \${$3+:} false; then :
1728  $as_echo_n "(cached) " >&6
1729else
1730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h.  */
1732/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1734#define $2 innocuous_$2
1735
1736/* System header to define __stub macros and hopefully few prototypes,
1737    which can conflict with char $2 (); below.
1738    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739    <limits.h> exists even on freestanding compilers.  */
1740
1741#ifdef __STDC__
1742# include <limits.h>
1743#else
1744# include <assert.h>
1745#endif
1746
1747#undef $2
1748
1749/* Override any GCC internal prototype to avoid an error.
1750   Use char because int might match the return type of a GCC
1751   builtin and then its argument prototype would still apply.  */
1752#ifdef __cplusplus
1753extern "C"
1754#endif
1755char $2 ();
1756/* The GNU C library defines this for functions which it implements
1757    to always fail with ENOSYS.  Some functions are actually named
1758    something starting with __ and the normal name is an alias.  */
1759#if defined __stub_$2 || defined __stub___$2
1760choke me
1761#endif
1762
1763int
1764main ()
1765{
1766return $2 ();
1767  ;
1768  return 0;
1769}
1770_ACEOF
1771if ac_fn_c_try_link "$LINENO"; then :
1772  eval "$3=yes"
1773else
1774  eval "$3=no"
1775fi
1776rm -f core conftest.err conftest.$ac_objext \
1777    conftest$ac_exeext conftest.$ac_ext
1778fi
1779eval ac_res=\$$3
1780	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784} # ac_fn_c_check_func
1785
1786# ac_fn_cxx_try_compile LINENO
1787# ----------------------------
1788# Try to compile conftest.$ac_ext, and return whether this succeeded.
1789ac_fn_cxx_try_compile ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  rm -f conftest.$ac_objext
1793  if { { ac_try="$ac_compile"
1794case "(($ac_try" in
1795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796  *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800  (eval "$ac_compile") 2>conftest.err
1801  ac_status=$?
1802  if test -s conftest.err; then
1803    grep -v '^ *+' conftest.err >conftest.er1
1804    cat conftest.er1 >&5
1805    mv -f conftest.er1 conftest.err
1806  fi
1807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808  test $ac_status = 0; } && {
1809	 test -z "$ac_cxx_werror_flag" ||
1810	 test ! -s conftest.err
1811       } && test -s conftest.$ac_objext; then :
1812  ac_retval=0
1813else
1814  $as_echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817	ac_retval=1
1818fi
1819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820  as_fn_set_status $ac_retval
1821
1822} # ac_fn_cxx_try_compile
1823
1824# ac_fn_cxx_try_cpp LINENO
1825# ------------------------
1826# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1827ac_fn_cxx_try_cpp ()
1828{
1829  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830  if { { ac_try="$ac_cpp conftest.$ac_ext"
1831case "(($ac_try" in
1832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833  *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1838  ac_status=$?
1839  if test -s conftest.err; then
1840    grep -v '^ *+' conftest.err >conftest.er1
1841    cat conftest.er1 >&5
1842    mv -f conftest.er1 conftest.err
1843  fi
1844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845  test $ac_status = 0; } > conftest.i && {
1846	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1847	 test ! -s conftest.err
1848       }; then :
1849  ac_retval=0
1850else
1851  $as_echo "$as_me: failed program was:" >&5
1852sed 's/^/| /' conftest.$ac_ext >&5
1853
1854    ac_retval=1
1855fi
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857  as_fn_set_status $ac_retval
1858
1859} # ac_fn_cxx_try_cpp
1860
1861# ac_fn_cxx_try_link LINENO
1862# -------------------------
1863# Try to link conftest.$ac_ext, and return whether this succeeded.
1864ac_fn_cxx_try_link ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  rm -f conftest.$ac_objext conftest$ac_exeext
1868  if { { ac_try="$ac_link"
1869case "(($ac_try" in
1870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871  *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874$as_echo "$ac_try_echo"; } >&5
1875  (eval "$ac_link") 2>conftest.err
1876  ac_status=$?
1877  if test -s conftest.err; then
1878    grep -v '^ *+' conftest.err >conftest.er1
1879    cat conftest.er1 >&5
1880    mv -f conftest.er1 conftest.err
1881  fi
1882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883  test $ac_status = 0; } && {
1884	 test -z "$ac_cxx_werror_flag" ||
1885	 test ! -s conftest.err
1886       } && test -s conftest$ac_exeext && {
1887	 test "$cross_compiling" = yes ||
1888	 $as_test_x conftest$ac_exeext
1889       }; then :
1890  ac_retval=0
1891else
1892  $as_echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895	ac_retval=1
1896fi
1897  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899  # interfere with the next link command; also delete a directory that is
1900  # left behind by Apple's compiler.  We do this before executing the actions.
1901  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903  as_fn_set_status $ac_retval
1904
1905} # ac_fn_cxx_try_link
1906
1907# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1908# -------------------------------------------------------
1909# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1910# the include files in INCLUDES and setting the cache variable VAR
1911# accordingly.
1912ac_fn_c_check_header_mongrel ()
1913{
1914  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915  if eval \${$3+:} false; then :
1916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917$as_echo_n "checking for $2... " >&6; }
1918if eval \${$3+:} false; then :
1919  $as_echo_n "(cached) " >&6
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924else
1925  # Is the header compilable?
1926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1927$as_echo_n "checking $2 usability... " >&6; }
1928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929/* end confdefs.h.  */
1930$4
1931#include <$2>
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934  ac_header_compiler=yes
1935else
1936  ac_header_compiler=no
1937fi
1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1940$as_echo "$ac_header_compiler" >&6; }
1941
1942# Is the header present?
1943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1944$as_echo_n "checking $2 presence... " >&6; }
1945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947#include <$2>
1948_ACEOF
1949if ac_fn_c_try_cpp "$LINENO"; then :
1950  ac_header_preproc=yes
1951else
1952  ac_header_preproc=no
1953fi
1954rm -f conftest.err conftest.i conftest.$ac_ext
1955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1956$as_echo "$ac_header_preproc" >&6; }
1957
1958# So?  What about this header?
1959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1960  yes:no: )
1961    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1962$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1963    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965    ;;
1966  no:yes:* )
1967    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1968$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1970$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1971    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1972$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1974$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977    ;;
1978esac
1979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980$as_echo_n "checking for $2... " >&6; }
1981if eval \${$3+:} false; then :
1982  $as_echo_n "(cached) " >&6
1983else
1984  eval "$3=\$ac_header_compiler"
1985fi
1986eval ac_res=\$$3
1987	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988$as_echo "$ac_res" >&6; }
1989fi
1990  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
1992} # ac_fn_c_check_header_mongrel
1993cat >config.log <<_ACEOF
1994This file contains any messages produced by compilers while
1995running configure, to aid debugging if configure makes a mistake.
1996
1997It was created by log4cpp $as_me 1.1, which was
1998generated by GNU Autoconf 2.68.  Invocation command line was
1999
2000  $ $0 $@
2001
2002_ACEOF
2003exec 5>>config.log
2004{
2005cat <<_ASUNAME
2006## --------- ##
2007## Platform. ##
2008## --------- ##
2009
2010hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2011uname -m = `(uname -m) 2>/dev/null || echo unknown`
2012uname -r = `(uname -r) 2>/dev/null || echo unknown`
2013uname -s = `(uname -s) 2>/dev/null || echo unknown`
2014uname -v = `(uname -v) 2>/dev/null || echo unknown`
2015
2016/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2017/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2018
2019/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2020/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2021/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2022/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2023/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2024/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2025/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2026
2027_ASUNAME
2028
2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030for as_dir in $PATH
2031do
2032  IFS=$as_save_IFS
2033  test -z "$as_dir" && as_dir=.
2034    $as_echo "PATH: $as_dir"
2035  done
2036IFS=$as_save_IFS
2037
2038} >&5
2039
2040cat >&5 <<_ACEOF
2041
2042
2043## ----------- ##
2044## Core tests. ##
2045## ----------- ##
2046
2047_ACEOF
2048
2049
2050# Keep a trace of the command line.
2051# Strip out --no-create and --no-recursion so they do not pile up.
2052# Strip out --silent because we don't want to record it for future runs.
2053# Also quote any args containing shell meta-characters.
2054# Make two passes to allow for proper duplicate-argument suppression.
2055ac_configure_args=
2056ac_configure_args0=
2057ac_configure_args1=
2058ac_must_keep_next=false
2059for ac_pass in 1 2
2060do
2061  for ac_arg
2062  do
2063    case $ac_arg in
2064    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2065    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2066    | -silent | --silent | --silen | --sile | --sil)
2067      continue ;;
2068    *\'*)
2069      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2070    esac
2071    case $ac_pass in
2072    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2073    2)
2074      as_fn_append ac_configure_args1 " '$ac_arg'"
2075      if test $ac_must_keep_next = true; then
2076	ac_must_keep_next=false # Got value, back to normal.
2077      else
2078	case $ac_arg in
2079	  *=* | --config-cache | -C | -disable-* | --disable-* \
2080	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2081	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2082	  | -with-* | --with-* | -without-* | --without-* | --x)
2083	    case "$ac_configure_args0 " in
2084	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2085	    esac
2086	    ;;
2087	  -* ) ac_must_keep_next=true ;;
2088	esac
2089      fi
2090      as_fn_append ac_configure_args " '$ac_arg'"
2091      ;;
2092    esac
2093  done
2094done
2095{ ac_configure_args0=; unset ac_configure_args0;}
2096{ ac_configure_args1=; unset ac_configure_args1;}
2097
2098# When interrupted or exit'd, cleanup temporary files, and complete
2099# config.log.  We remove comments because anyway the quotes in there
2100# would cause problems or look ugly.
2101# WARNING: Use '\'' to represent an apostrophe within the trap.
2102# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2103trap 'exit_status=$?
2104  # Save into config.log some information that might help in debugging.
2105  {
2106    echo
2107
2108    $as_echo "## ---------------- ##
2109## Cache variables. ##
2110## ---------------- ##"
2111    echo
2112    # The following way of writing the cache mishandles newlines in values,
2113(
2114  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2115    eval ac_val=\$$ac_var
2116    case $ac_val in #(
2117    *${as_nl}*)
2118      case $ac_var in #(
2119      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2120$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2121      esac
2122      case $ac_var in #(
2123      _ | IFS | as_nl) ;; #(
2124      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2125      *) { eval $ac_var=; unset $ac_var;} ;;
2126      esac ;;
2127    esac
2128  done
2129  (set) 2>&1 |
2130    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2131    *${as_nl}ac_space=\ *)
2132      sed -n \
2133	"s/'\''/'\''\\\\'\'''\''/g;
2134	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2135      ;; #(
2136    *)
2137      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2138      ;;
2139    esac |
2140    sort
2141)
2142    echo
2143
2144    $as_echo "## ----------------- ##
2145## Output variables. ##
2146## ----------------- ##"
2147    echo
2148    for ac_var in $ac_subst_vars
2149    do
2150      eval ac_val=\$$ac_var
2151      case $ac_val in
2152      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153      esac
2154      $as_echo "$ac_var='\''$ac_val'\''"
2155    done | sort
2156    echo
2157
2158    if test -n "$ac_subst_files"; then
2159      $as_echo "## ------------------- ##
2160## File substitutions. ##
2161## ------------------- ##"
2162      echo
2163      for ac_var in $ac_subst_files
2164      do
2165	eval ac_val=\$$ac_var
2166	case $ac_val in
2167	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2168	esac
2169	$as_echo "$ac_var='\''$ac_val'\''"
2170      done | sort
2171      echo
2172    fi
2173
2174    if test -s confdefs.h; then
2175      $as_echo "## ----------- ##
2176## confdefs.h. ##
2177## ----------- ##"
2178      echo
2179      cat confdefs.h
2180      echo
2181    fi
2182    test "$ac_signal" != 0 &&
2183      $as_echo "$as_me: caught signal $ac_signal"
2184    $as_echo "$as_me: exit $exit_status"
2185  } >&5
2186  rm -f core *.core core.conftest.* &&
2187    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2188    exit $exit_status
2189' 0
2190for ac_signal in 1 2 13 15; do
2191  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2192done
2193ac_signal=0
2194
2195# confdefs.h avoids OS command line length limits that DEFS can exceed.
2196rm -f -r conftest* confdefs.h
2197
2198$as_echo "/* confdefs.h */" > confdefs.h
2199
2200# Predefined preprocessor variables.
2201
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_NAME "$PACKAGE_NAME"
2204_ACEOF
2205
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2208_ACEOF
2209
2210cat >>confdefs.h <<_ACEOF
2211#define PACKAGE_VERSION "$PACKAGE_VERSION"
2212_ACEOF
2213
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_STRING "$PACKAGE_STRING"
2216_ACEOF
2217
2218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2220_ACEOF
2221
2222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_URL "$PACKAGE_URL"
2224_ACEOF
2225
2226
2227# Let the site file select an alternate cache file if it wants to.
2228# Prefer an explicitly selected file to automatically selected ones.
2229ac_site_file1=NONE
2230ac_site_file2=NONE
2231if test -n "$CONFIG_SITE"; then
2232  # We do not want a PATH search for config.site.
2233  case $CONFIG_SITE in #((
2234    -*)  ac_site_file1=./$CONFIG_SITE;;
2235    */*) ac_site_file1=$CONFIG_SITE;;
2236    *)   ac_site_file1=./$CONFIG_SITE;;
2237  esac
2238elif test "x$prefix" != xNONE; then
2239  ac_site_file1=$prefix/share/config.site
2240  ac_site_file2=$prefix/etc/config.site
2241else
2242  ac_site_file1=$ac_default_prefix/share/config.site
2243  ac_site_file2=$ac_default_prefix/etc/config.site
2244fi
2245for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2246do
2247  test "x$ac_site_file" = xNONE && continue
2248  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2249    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2250$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2251    sed 's/^/| /' "$ac_site_file" >&5
2252    . "$ac_site_file" \
2253      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255as_fn_error $? "failed to load site script $ac_site_file
2256See \`config.log' for more details" "$LINENO" 5; }
2257  fi
2258done
2259
2260if test -r "$cache_file"; then
2261  # Some versions of bash will fail to source /dev/null (special files
2262  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2263  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2264    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2265$as_echo "$as_me: loading cache $cache_file" >&6;}
2266    case $cache_file in
2267      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2268      *)                      . "./$cache_file";;
2269    esac
2270  fi
2271else
2272  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2273$as_echo "$as_me: creating cache $cache_file" >&6;}
2274  >$cache_file
2275fi
2276
2277# Check that the precious variables saved in the cache have kept the same
2278# value.
2279ac_cache_corrupted=false
2280for ac_var in $ac_precious_vars; do
2281  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2282  eval ac_new_set=\$ac_env_${ac_var}_set
2283  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2284  eval ac_new_val=\$ac_env_${ac_var}_value
2285  case $ac_old_set,$ac_new_set in
2286    set,)
2287      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2288$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2289      ac_cache_corrupted=: ;;
2290    ,set)
2291      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2292$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2293      ac_cache_corrupted=: ;;
2294    ,);;
2295    *)
2296      if test "x$ac_old_val" != "x$ac_new_val"; then
2297	# differences in whitespace do not lead to failure.
2298	ac_old_val_w=`echo x $ac_old_val`
2299	ac_new_val_w=`echo x $ac_new_val`
2300	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2301	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2302$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2303	  ac_cache_corrupted=:
2304	else
2305	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2306$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2307	  eval $ac_var=\$ac_old_val
2308	fi
2309	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2310$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2311	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2312$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2313      fi;;
2314  esac
2315  # Pass precious variables to config.status.
2316  if test "$ac_new_set" = set; then
2317    case $ac_new_val in
2318    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2319    *) ac_arg=$ac_var=$ac_new_val ;;
2320    esac
2321    case " $ac_configure_args " in
2322      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2323      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2324    esac
2325  fi
2326done
2327if $ac_cache_corrupted; then
2328  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2330  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2331$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2332  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2333fi
2334## -------------------- ##
2335## Main body of script. ##
2336## -------------------- ##
2337
2338ac_ext=c
2339ac_cpp='$CPP $CPPFLAGS'
2340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343
2344
2345
2346# autoconf 2.50 or higher to rebuild aclocal.m4, because the
2347# AC_CREATE_PREFIX_CONFIG_H macro needs the AS_DIRNAME macro.
2348
2349
2350#
2351# +1 : ? : +1  == new interface that does not break old one
2352# +1 : ? : 0   == new interface that breaks old one
2353#  ? : ? : 0   == no new interfaces, but breaks apps
2354#  ? :+1 : ?   == just some internal changes, nothing breaks but might work
2355#                 better
2356# CURRENT : REVISION : AGE
2357LT_VERSION=5:6:0
2358
2359
2360
2361#AC_CONFIG_SRCDIR(configure.in)
2362ac_aux_dir=
2363for ac_dir in config "$srcdir"/config; do
2364  if test -f "$ac_dir/install-sh"; then
2365    ac_aux_dir=$ac_dir
2366    ac_install_sh="$ac_aux_dir/install-sh -c"
2367    break
2368  elif test -f "$ac_dir/install.sh"; then
2369    ac_aux_dir=$ac_dir
2370    ac_install_sh="$ac_aux_dir/install.sh -c"
2371    break
2372  elif test -f "$ac_dir/shtool"; then
2373    ac_aux_dir=$ac_dir
2374    ac_install_sh="$ac_aux_dir/shtool install -c"
2375    break
2376  fi
2377done
2378if test -z "$ac_aux_dir"; then
2379  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2380fi
2381
2382# These three variables are undocumented and unsupported,
2383# and are intended to be withdrawn in a future Autoconf release.
2384# They can cause serious problems if a builder's source tree is in a directory
2385# whose full name contains unusual characters.
2386ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2387ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2388ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2389
2390
2391ac_config_headers="$ac_config_headers include/config.h"
2392
2393
2394am__api_version='1.11'
2395
2396# Find a good install program.  We prefer a C program (faster),
2397# so one script is as good as another.  But avoid the broken or
2398# incompatible versions:
2399# SysV /etc/install, /usr/sbin/install
2400# SunOS /usr/etc/install
2401# IRIX /sbin/install
2402# AIX /bin/install
2403# AmigaOS /C/install, which installs bootblocks on floppy discs
2404# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2405# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2406# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2407# OS/2's system install, which has a completely different semantic
2408# ./install, which can be erroneously created by make from ./install.sh.
2409# Reject install programs that cannot install multiple files.
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2411$as_echo_n "checking for a BSD-compatible install... " >&6; }
2412if test -z "$INSTALL"; then
2413if ${ac_cv_path_install+:} false; then :
2414  $as_echo_n "(cached) " >&6
2415else
2416  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419  IFS=$as_save_IFS
2420  test -z "$as_dir" && as_dir=.
2421    # Account for people who put trailing slashes in PATH elements.
2422case $as_dir/ in #((
2423  ./ | .// | /[cC]/* | \
2424  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2425  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2426  /usr/ucb/* ) ;;
2427  *)
2428    # OSF1 and SCO ODT 3.0 have their own names for install.
2429    # Don't use installbsd from OSF since it installs stuff as root
2430    # by default.
2431    for ac_prog in ginstall scoinst install; do
2432      for ac_exec_ext in '' $ac_executable_extensions; do
2433	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2434	  if test $ac_prog = install &&
2435	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2436	    # AIX install.  It has an incompatible calling convention.
2437	    :
2438	  elif test $ac_prog = install &&
2439	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2440	    # program-specific install script used by HP pwplus--don't use.
2441	    :
2442	  else
2443	    rm -rf conftest.one conftest.two conftest.dir
2444	    echo one > conftest.one
2445	    echo two > conftest.two
2446	    mkdir conftest.dir
2447	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2448	      test -s conftest.one && test -s conftest.two &&
2449	      test -s conftest.dir/conftest.one &&
2450	      test -s conftest.dir/conftest.two
2451	    then
2452	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2453	      break 3
2454	    fi
2455	  fi
2456	fi
2457      done
2458    done
2459    ;;
2460esac
2461
2462  done
2463IFS=$as_save_IFS
2464
2465rm -rf conftest.one conftest.two conftest.dir
2466
2467fi
2468  if test "${ac_cv_path_install+set}" = set; then
2469    INSTALL=$ac_cv_path_install
2470  else
2471    # As a last resort, use the slow shell script.  Don't cache a
2472    # value for INSTALL within a source directory, because that will
2473    # break other packages using the cache if that directory is
2474    # removed, or if the value is a relative name.
2475    INSTALL=$ac_install_sh
2476  fi
2477fi
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2479$as_echo "$INSTALL" >&6; }
2480
2481# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2482# It thinks the first close brace ends the variable substitution.
2483test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2484
2485test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2486
2487test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2488
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2490$as_echo_n "checking whether build environment is sane... " >&6; }
2491# Just in case
2492sleep 1
2493echo timestamp > conftest.file
2494# Reject unsafe characters in $srcdir or the absolute working directory
2495# name.  Accept space and tab only in the latter.
2496am_lf='
2497'
2498case `pwd` in
2499  *[\\\"\#\$\&\'\`$am_lf]*)
2500    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2501esac
2502case $srcdir in
2503  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2504    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2505esac
2506
2507# Do `set' in a subshell so we don't clobber the current shell's
2508# arguments.  Must try -L first in case configure is actually a
2509# symlink; some systems play weird games with the mod time of symlinks
2510# (eg FreeBSD returns the mod time of the symlink's containing
2511# directory).
2512if (
2513   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2514   if test "$*" = "X"; then
2515      # -L didn't work.
2516      set X `ls -t "$srcdir/configure" conftest.file`
2517   fi
2518   rm -f conftest.file
2519   if test "$*" != "X $srcdir/configure conftest.file" \
2520      && test "$*" != "X conftest.file $srcdir/configure"; then
2521
2522      # If neither matched, then we have a broken ls.  This can happen
2523      # if, for instance, CONFIG_SHELL is bash and it inherits a
2524      # broken ls alias from the environment.  This has actually
2525      # happened.  Such a system could not be considered "sane".
2526      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2527alias in your environment" "$LINENO" 5
2528   fi
2529
2530   test "$2" = conftest.file
2531   )
2532then
2533   # Ok.
2534   :
2535else
2536   as_fn_error $? "newly created file is older than distributed files!
2537Check your system clock" "$LINENO" 5
2538fi
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2540$as_echo "yes" >&6; }
2541test "$program_prefix" != NONE &&
2542  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2543# Use a double $ so make ignores it.
2544test "$program_suffix" != NONE &&
2545  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2546# Double any \ or $.
2547# By default was `s,x,x', remove it if useless.
2548ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2549program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2550
2551# expand $ac_aux_dir to an absolute path
2552am_aux_dir=`cd $ac_aux_dir && pwd`
2553
2554if test x"${MISSING+set}" != xset; then
2555  case $am_aux_dir in
2556  *\ * | *\	*)
2557    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2558  *)
2559    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2560  esac
2561fi
2562# Use eval to expand $SHELL
2563if eval "$MISSING --run true"; then
2564  am_missing_run="$MISSING --run "
2565else
2566  am_missing_run=
2567  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2568$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2569fi
2570
2571if test x"${install_sh}" != xset; then
2572  case $am_aux_dir in
2573  *\ * | *\	*)
2574    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2575  *)
2576    install_sh="\${SHELL} $am_aux_dir/install-sh"
2577  esac
2578fi
2579
2580# Installed binaries are usually stripped using `strip' when the user
2581# run `make install-strip'.  However `strip' might not be the right
2582# tool to use in cross-compilation environments, therefore Automake
2583# will honor the `STRIP' environment variable to overrule this program.
2584if test "$cross_compiling" != no; then
2585  if test -n "$ac_tool_prefix"; then
2586  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2587set dummy ${ac_tool_prefix}strip; ac_word=$2
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589$as_echo_n "checking for $ac_word... " >&6; }
2590if ${ac_cv_prog_STRIP+:} false; then :
2591  $as_echo_n "(cached) " >&6
2592else
2593  if test -n "$STRIP"; then
2594  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2595else
2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599  IFS=$as_save_IFS
2600  test -z "$as_dir" && as_dir=.
2601    for ac_exec_ext in '' $ac_executable_extensions; do
2602  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605    break 2
2606  fi
2607done
2608  done
2609IFS=$as_save_IFS
2610
2611fi
2612fi
2613STRIP=$ac_cv_prog_STRIP
2614if test -n "$STRIP"; then
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2616$as_echo "$STRIP" >&6; }
2617else
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619$as_echo "no" >&6; }
2620fi
2621
2622
2623fi
2624if test -z "$ac_cv_prog_STRIP"; then
2625  ac_ct_STRIP=$STRIP
2626  # Extract the first word of "strip", so it can be a program name with args.
2627set dummy strip; ac_word=$2
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629$as_echo_n "checking for $ac_word... " >&6; }
2630if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  if test -n "$ac_ct_STRIP"; then
2634  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639  IFS=$as_save_IFS
2640  test -z "$as_dir" && as_dir=.
2641    for ac_exec_ext in '' $ac_executable_extensions; do
2642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643    ac_cv_prog_ac_ct_STRIP="strip"
2644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645    break 2
2646  fi
2647done
2648  done
2649IFS=$as_save_IFS
2650
2651fi
2652fi
2653ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2654if test -n "$ac_ct_STRIP"; then
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2656$as_echo "$ac_ct_STRIP" >&6; }
2657else
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659$as_echo "no" >&6; }
2660fi
2661
2662  if test "x$ac_ct_STRIP" = x; then
2663    STRIP=":"
2664  else
2665    case $cross_compiling:$ac_tool_warned in
2666yes:)
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2669ac_tool_warned=yes ;;
2670esac
2671    STRIP=$ac_ct_STRIP
2672  fi
2673else
2674  STRIP="$ac_cv_prog_STRIP"
2675fi
2676
2677fi
2678INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2679
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2681$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2682if test -z "$MKDIR_P"; then
2683  if ${ac_cv_path_mkdir+:} false; then :
2684  $as_echo_n "(cached) " >&6
2685else
2686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691    for ac_prog in mkdir gmkdir; do
2692	 for ac_exec_ext in '' $ac_executable_extensions; do
2693	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2694	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2695	     'mkdir (GNU coreutils) '* | \
2696	     'mkdir (coreutils) '* | \
2697	     'mkdir (fileutils) '4.1*)
2698	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2699	       break 3;;
2700	   esac
2701	 done
2702       done
2703  done
2704IFS=$as_save_IFS
2705
2706fi
2707
2708  test -d ./--version && rmdir ./--version
2709  if test "${ac_cv_path_mkdir+set}" = set; then
2710    MKDIR_P="$ac_cv_path_mkdir -p"
2711  else
2712    # As a last resort, use the slow shell script.  Don't cache a
2713    # value for MKDIR_P within a source directory, because that will
2714    # break other packages using the cache if that directory is
2715    # removed, or if the value is a relative name.
2716    MKDIR_P="$ac_install_sh -d"
2717  fi
2718fi
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2720$as_echo "$MKDIR_P" >&6; }
2721
2722mkdir_p="$MKDIR_P"
2723case $mkdir_p in
2724  [\\/$]* | ?:[\\/]*) ;;
2725  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2726esac
2727
2728for ac_prog in gawk mawk nawk awk
2729do
2730  # Extract the first word of "$ac_prog", so it can be a program name with args.
2731set dummy $ac_prog; ac_word=$2
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733$as_echo_n "checking for $ac_word... " >&6; }
2734if ${ac_cv_prog_AWK+:} false; then :
2735  $as_echo_n "(cached) " >&6
2736else
2737  if test -n "$AWK"; then
2738  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2739else
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743  IFS=$as_save_IFS
2744  test -z "$as_dir" && as_dir=.
2745    for ac_exec_ext in '' $ac_executable_extensions; do
2746  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747    ac_cv_prog_AWK="$ac_prog"
2748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749    break 2
2750  fi
2751done
2752  done
2753IFS=$as_save_IFS
2754
2755fi
2756fi
2757AWK=$ac_cv_prog_AWK
2758if test -n "$AWK"; then
2759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2760$as_echo "$AWK" >&6; }
2761else
2762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763$as_echo "no" >&6; }
2764fi
2765
2766
2767  test -n "$AWK" && break
2768done
2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2771$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2772set x ${MAKE-make}
2773ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2774if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2775  $as_echo_n "(cached) " >&6
2776else
2777  cat >conftest.make <<\_ACEOF
2778SHELL = /bin/sh
2779all:
2780	@echo '@@@%%%=$(MAKE)=@@@%%%'
2781_ACEOF
2782# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2783case `${MAKE-make} -f conftest.make 2>/dev/null` in
2784  *@@@%%%=?*=@@@%%%*)
2785    eval ac_cv_prog_make_${ac_make}_set=yes;;
2786  *)
2787    eval ac_cv_prog_make_${ac_make}_set=no;;
2788esac
2789rm -f conftest.make
2790fi
2791if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2793$as_echo "yes" >&6; }
2794  SET_MAKE=
2795else
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798  SET_MAKE="MAKE=${MAKE-make}"
2799fi
2800
2801rm -rf .tst 2>/dev/null
2802mkdir .tst 2>/dev/null
2803if test -d .tst; then
2804  am__leading_dot=.
2805else
2806  am__leading_dot=_
2807fi
2808rmdir .tst 2>/dev/null
2809
2810if test "`cd $srcdir && pwd`" != "`pwd`"; then
2811  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2812  # is not polluted with repeated "-I."
2813  am__isrc=' -I$(srcdir)'
2814  # test to see if srcdir already configured
2815  if test -f $srcdir/config.status; then
2816    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2817  fi
2818fi
2819
2820# test whether we have cygpath
2821if test -z "$CYGPATH_W"; then
2822  if (cygpath --version) >/dev/null 2>/dev/null; then
2823    CYGPATH_W='cygpath -w'
2824  else
2825    CYGPATH_W=echo
2826  fi
2827fi
2828
2829
2830# Define the identity of the package.
2831 PACKAGE='log4cpp'
2832 VERSION='1.1'
2833
2834
2835cat >>confdefs.h <<_ACEOF
2836#define PACKAGE "$PACKAGE"
2837_ACEOF
2838
2839
2840cat >>confdefs.h <<_ACEOF
2841#define VERSION "$VERSION"
2842_ACEOF
2843
2844# Some tools Automake needs.
2845
2846ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2847
2848
2849AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2850
2851
2852AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2853
2854
2855AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2856
2857
2858MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2859
2860# We need awk for the "check" target.  The system "awk" is bad on
2861# some platforms.
2862# Always define AMTAR for backward compatibility.  Yes, it's still used
2863# in the wild :-(  We should find a proper way to deprecate it ...
2864AMTAR='$${TAR-tar}'
2865
2866am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2867
2868
2869
2870
2871
2872
2873# General "with" options
2874# ----------------------------------------------------------------------------
2875
2876# Check whether --with-idsa was given.
2877if test "${with_idsa+set}" = set; then :
2878  withval=$with_idsa;
2879fi
2880
2881
2882# Checks for programs
2883# ----------------------------------------------------------------------------
2884# Make sure we can run config.sub.
2885$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2886  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2887
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2889$as_echo_n "checking build system type... " >&6; }
2890if ${ac_cv_build+:} false; then :
2891  $as_echo_n "(cached) " >&6
2892else
2893  ac_build_alias=$build_alias
2894test "x$ac_build_alias" = x &&
2895  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2896test "x$ac_build_alias" = x &&
2897  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2898ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2899  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2900
2901fi
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2903$as_echo "$ac_cv_build" >&6; }
2904case $ac_cv_build in
2905*-*-*) ;;
2906*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2907esac
2908build=$ac_cv_build
2909ac_save_IFS=$IFS; IFS='-'
2910set x $ac_cv_build
2911shift
2912build_cpu=$1
2913build_vendor=$2
2914shift; shift
2915# Remember, the first character of IFS is used to create $*,
2916# except with old shells:
2917build_os=$*
2918IFS=$ac_save_IFS
2919case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2920
2921
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2923$as_echo_n "checking host system type... " >&6; }
2924if ${ac_cv_host+:} false; then :
2925  $as_echo_n "(cached) " >&6
2926else
2927  if test "x$host_alias" = x; then
2928  ac_cv_host=$ac_cv_build
2929else
2930  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2931    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2932fi
2933
2934fi
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2936$as_echo "$ac_cv_host" >&6; }
2937case $ac_cv_host in
2938*-*-*) ;;
2939*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2940esac
2941host=$ac_cv_host
2942ac_save_IFS=$IFS; IFS='-'
2943set x $ac_cv_host
2944shift
2945host_cpu=$1
2946host_vendor=$2
2947shift; shift
2948# Remember, the first character of IFS is used to create $*,
2949# except with old shells:
2950host_os=$*
2951IFS=$ac_save_IFS
2952case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2953
2954
2955
2956# Check whether --enable-debug was given.
2957if test "${enable_debug+set}" = set; then :
2958  enableval=$enable_debug; enable_debug=$enableval
2959else
2960  enable_debug=no
2961fi
2962
2963
2964if test "$enable_debug" = "yes" ; then
2965    GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
2966    GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
2967else
2968    GCC_CFLAGS="$CFLAGS"
2969    GCC_CXXFLAGS="$CXXFLAGS"
2970fi
2971
2972case `pwd` in
2973  *\ * | *\	*)
2974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2975$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2976esac
2977
2978
2979
2980macro_version='2.4.2'
2981macro_revision='1.3337'
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995ltmain="$ac_aux_dir/ltmain.sh"
2996
2997# Backslashify metacharacters that are still active within
2998# double-quoted strings.
2999sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3000
3001# Same as above, but do not quote variable references.
3002double_quote_subst='s/\(["`\\]\)/\\\1/g'
3003
3004# Sed substitution to delay expansion of an escaped shell variable in a
3005# double_quote_subst'ed string.
3006delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3007
3008# Sed substitution to delay expansion of an escaped single quote.
3009delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3010
3011# Sed substitution to avoid accidental globbing in evaled expressions
3012no_glob_subst='s/\*/\\\*/g'
3013
3014ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3015ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3016ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3017
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3019$as_echo_n "checking how to print strings... " >&6; }
3020# Test print first, because it will be a builtin if present.
3021if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3022   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3023  ECHO='print -r --'
3024elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3025  ECHO='printf %s\n'
3026else
3027  # Use this function as a fallback that always works.
3028  func_fallback_echo ()
3029  {
3030    eval 'cat <<_LTECHO_EOF
3031$1
3032_LTECHO_EOF'
3033  }
3034  ECHO='func_fallback_echo'
3035fi
3036
3037# func_echo_all arg...
3038# Invoke $ECHO with all args, space-separated.
3039func_echo_all ()
3040{
3041    $ECHO ""
3042}
3043
3044case "$ECHO" in
3045  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3046$as_echo "printf" >&6; } ;;
3047  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3048$as_echo "print -r" >&6; } ;;
3049  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3050$as_echo "cat" >&6; } ;;
3051esac
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066DEPDIR="${am__leading_dot}deps"
3067
3068ac_config_commands="$ac_config_commands depfiles"
3069
3070
3071am_make=${MAKE-make}
3072cat > confinc << 'END'
3073am__doit:
3074	@echo this is the am__doit target
3075.PHONY: am__doit
3076END
3077# If we don't find an include directive, just comment out the code.
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3079$as_echo_n "checking for style of include used by $am_make... " >&6; }
3080am__include="#"
3081am__quote=
3082_am_result=none
3083# First try GNU make style include.
3084echo "include confinc" > confmf
3085# Ignore all kinds of additional output from `make'.
3086case `$am_make -s -f confmf 2> /dev/null` in #(
3087*the\ am__doit\ target*)
3088  am__include=include
3089  am__quote=
3090  _am_result=GNU
3091  ;;
3092esac
3093# Now try BSD make style include.
3094if test "$am__include" = "#"; then
3095   echo '.include "confinc"' > confmf
3096   case `$am_make -s -f confmf 2> /dev/null` in #(
3097   *the\ am__doit\ target*)
3098     am__include=.include
3099     am__quote="\""
3100     _am_result=BSD
3101     ;;
3102   esac
3103fi
3104
3105
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3107$as_echo "$_am_result" >&6; }
3108rm -f confinc confmf
3109
3110# Check whether --enable-dependency-tracking was given.
3111if test "${enable_dependency_tracking+set}" = set; then :
3112  enableval=$enable_dependency_tracking;
3113fi
3114
3115if test "x$enable_dependency_tracking" != xno; then
3116  am_depcomp="$ac_aux_dir/depcomp"
3117  AMDEPBACKSLASH='\'
3118  am__nodep='_no'
3119fi
3120 if test "x$enable_dependency_tracking" != xno; then
3121  AMDEP_TRUE=
3122  AMDEP_FALSE='#'
3123else
3124  AMDEP_TRUE='#'
3125  AMDEP_FALSE=
3126fi
3127
3128
3129ac_ext=c
3130ac_cpp='$CPP $CPPFLAGS'
3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134if test -n "$ac_tool_prefix"; then
3135  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3136set dummy ${ac_tool_prefix}gcc; ac_word=$2
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138$as_echo_n "checking for $ac_word... " >&6; }
3139if ${ac_cv_prog_CC+:} false; then :
3140  $as_echo_n "(cached) " >&6
3141else
3142  if test -n "$CC"; then
3143  ac_cv_prog_CC="$CC" # Let the user override the test.
3144else
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150    for ac_exec_ext in '' $ac_executable_extensions; do
3151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154    break 2
3155  fi
3156done
3157  done
3158IFS=$as_save_IFS
3159
3160fi
3161fi
3162CC=$ac_cv_prog_CC
3163if test -n "$CC"; then
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165$as_echo "$CC" >&6; }
3166else
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
3169fi
3170
3171
3172fi
3173if test -z "$ac_cv_prog_CC"; then
3174  ac_ct_CC=$CC
3175  # Extract the first word of "gcc", so it can be a program name with args.
3176set dummy gcc; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if ${ac_cv_prog_ac_ct_CC+:} false; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  if test -n "$ac_ct_CC"; then
3183  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192    ac_cv_prog_ac_ct_CC="gcc"
3193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197  done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203if test -n "$ac_ct_CC"; then
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205$as_echo "$ac_ct_CC" >&6; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211  if test "x$ac_ct_CC" = x; then
3212    CC=""
3213  else
3214    case $cross_compiling:$ac_tool_warned in
3215yes:)
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3218ac_tool_warned=yes ;;
3219esac
3220    CC=$ac_ct_CC
3221  fi
3222else
3223  CC="$ac_cv_prog_CC"
3224fi
3225
3226if test -z "$CC"; then
3227          if test -n "$ac_tool_prefix"; then
3228    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3229set dummy ${ac_tool_prefix}cc; ac_word=$2
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231$as_echo_n "checking for $ac_word... " >&6; }
3232if ${ac_cv_prog_CC+:} false; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  if test -n "$CC"; then
3236  ac_cv_prog_CC="$CC" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243    for ac_exec_ext in '' $ac_executable_extensions; do
3244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245    ac_cv_prog_CC="${ac_tool_prefix}cc"
3246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250  done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258$as_echo "$CC" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265  fi
3266fi
3267if test -z "$CC"; then
3268  # Extract the first word of "cc", so it can be a program name with args.
3269set dummy cc; ac_word=$2
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271$as_echo_n "checking for $ac_word... " >&6; }
3272if ${ac_cv_prog_CC+:} false; then :
3273  $as_echo_n "(cached) " >&6
3274else
3275  if test -n "$CC"; then
3276  ac_cv_prog_CC="$CC" # Let the user override the test.
3277else
3278  ac_prog_rejected=no
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282  IFS=$as_save_IFS
3283  test -z "$as_dir" && as_dir=.
3284    for ac_exec_ext in '' $ac_executable_extensions; do
3285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3287       ac_prog_rejected=yes
3288       continue
3289     fi
3290    ac_cv_prog_CC="cc"
3291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292    break 2
3293  fi
3294done
3295  done
3296IFS=$as_save_IFS
3297
3298if test $ac_prog_rejected = yes; then
3299  # We found a bogon in the path, so make sure we never use it.
3300  set dummy $ac_cv_prog_CC
3301  shift
3302  if test $# != 0; then
3303    # We chose a different compiler from the bogus one.
3304    # However, it has the same basename, so the bogon will be chosen
3305    # first if we set CC to just the basename; use the full file name.
3306    shift
3307    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3308  fi
3309fi
3310fi
3311fi
3312CC=$ac_cv_prog_CC
3313if test -n "$CC"; then
3314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315$as_echo "$CC" >&6; }
3316else
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319fi
3320
3321
3322fi
3323if test -z "$CC"; then
3324  if test -n "$ac_tool_prefix"; then
3325  for ac_prog in cl.exe
3326  do
3327    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3328set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330$as_echo_n "checking for $ac_word... " >&6; }
3331if ${ac_cv_prog_CC+:} false; then :
3332  $as_echo_n "(cached) " >&6
3333else
3334  if test -n "$CC"; then
3335  ac_cv_prog_CC="$CC" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340  IFS=$as_save_IFS
3341  test -z "$as_dir" && as_dir=.
3342    for ac_exec_ext in '' $ac_executable_extensions; do
3343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346    break 2
3347  fi
3348done
3349  done
3350IFS=$as_save_IFS
3351
3352fi
3353fi
3354CC=$ac_cv_prog_CC
3355if test -n "$CC"; then
3356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357$as_echo "$CC" >&6; }
3358else
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360$as_echo "no" >&6; }
3361fi
3362
3363
3364    test -n "$CC" && break
3365  done
3366fi
3367if test -z "$CC"; then
3368  ac_ct_CC=$CC
3369  for ac_prog in cl.exe
3370do
3371  # Extract the first word of "$ac_prog", so it can be a program name with args.
3372set dummy $ac_prog; ac_word=$2
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374$as_echo_n "checking for $ac_word... " >&6; }
3375if ${ac_cv_prog_ac_ct_CC+:} false; then :
3376  $as_echo_n "(cached) " >&6
3377else
3378  if test -n "$ac_ct_CC"; then
3379  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3380else
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384  IFS=$as_save_IFS
3385  test -z "$as_dir" && as_dir=.
3386    for ac_exec_ext in '' $ac_executable_extensions; do
3387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388    ac_cv_prog_ac_ct_CC="$ac_prog"
3389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390    break 2
3391  fi
3392done
3393  done
3394IFS=$as_save_IFS
3395
3396fi
3397fi
3398ac_ct_CC=$ac_cv_prog_ac_ct_CC
3399if test -n "$ac_ct_CC"; then
3400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3401$as_echo "$ac_ct_CC" >&6; }
3402else
3403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404$as_echo "no" >&6; }
3405fi
3406
3407
3408  test -n "$ac_ct_CC" && break
3409done
3410
3411  if test "x$ac_ct_CC" = x; then
3412    CC=""
3413  else
3414    case $cross_compiling:$ac_tool_warned in
3415yes:)
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3418ac_tool_warned=yes ;;
3419esac
3420    CC=$ac_ct_CC
3421  fi
3422fi
3423
3424fi
3425
3426
3427test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429as_fn_error $? "no acceptable C compiler found in \$PATH
3430See \`config.log' for more details" "$LINENO" 5; }
3431
3432# Provide some information about the compiler.
3433$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3434set X $ac_compile
3435ac_compiler=$2
3436for ac_option in --version -v -V -qversion; do
3437  { { ac_try="$ac_compiler $ac_option >&5"
3438case "(($ac_try" in
3439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440  *) ac_try_echo=$ac_try;;
3441esac
3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443$as_echo "$ac_try_echo"; } >&5
3444  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3445  ac_status=$?
3446  if test -s conftest.err; then
3447    sed '10a\
3448... rest of stderr output deleted ...
3449         10q' conftest.err >conftest.er1
3450    cat conftest.er1 >&5
3451  fi
3452  rm -f conftest.er1 conftest.err
3453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454  test $ac_status = 0; }
3455done
3456
3457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458/* end confdefs.h.  */
3459
3460int
3461main ()
3462{
3463
3464  ;
3465  return 0;
3466}
3467_ACEOF
3468ac_clean_files_save=$ac_clean_files
3469ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3470# Try to create an executable without -o first, disregard a.out.
3471# It will help us diagnose broken compilers, and finding out an intuition
3472# of exeext.
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3474$as_echo_n "checking whether the C compiler works... " >&6; }
3475ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3476
3477# The possible output files:
3478ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3479
3480ac_rmfiles=
3481for ac_file in $ac_files
3482do
3483  case $ac_file in
3484    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3485    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3486  esac
3487done
3488rm -f $ac_rmfiles
3489
3490if { { ac_try="$ac_link_default"
3491case "(($ac_try" in
3492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493  *) ac_try_echo=$ac_try;;
3494esac
3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496$as_echo "$ac_try_echo"; } >&5
3497  (eval "$ac_link_default") 2>&5
3498  ac_status=$?
3499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500  test $ac_status = 0; }; then :
3501  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3502# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3503# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3504# so that the user can short-circuit this test for compilers unknown to
3505# Autoconf.
3506for ac_file in $ac_files ''
3507do
3508  test -f "$ac_file" || continue
3509  case $ac_file in
3510    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3511	;;
3512    [ab].out )
3513	# We found the default executable, but exeext='' is most
3514	# certainly right.
3515	break;;
3516    *.* )
3517	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3518	then :; else
3519	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3520	fi
3521	# We set ac_cv_exeext here because the later test for it is not
3522	# safe: cross compilers may not add the suffix if given an `-o'
3523	# argument, so we may need to know it at that point already.
3524	# Even if this section looks crufty: it has the advantage of
3525	# actually working.
3526	break;;
3527    * )
3528	break;;
3529  esac
3530done
3531test "$ac_cv_exeext" = no && ac_cv_exeext=
3532
3533else
3534  ac_file=''
3535fi
3536if test -z "$ac_file"; then :
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538$as_echo "no" >&6; }
3539$as_echo "$as_me: failed program was:" >&5
3540sed 's/^/| /' conftest.$ac_ext >&5
3541
3542{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3544as_fn_error 77 "C compiler cannot create executables
3545See \`config.log' for more details" "$LINENO" 5; }
3546else
3547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3548$as_echo "yes" >&6; }
3549fi
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3551$as_echo_n "checking for C compiler default output file name... " >&6; }
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3553$as_echo "$ac_file" >&6; }
3554ac_exeext=$ac_cv_exeext
3555
3556rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3557ac_clean_files=$ac_clean_files_save
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3559$as_echo_n "checking for suffix of executables... " >&6; }
3560if { { ac_try="$ac_link"
3561case "(($ac_try" in
3562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563  *) ac_try_echo=$ac_try;;
3564esac
3565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566$as_echo "$ac_try_echo"; } >&5
3567  (eval "$ac_link") 2>&5
3568  ac_status=$?
3569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570  test $ac_status = 0; }; then :
3571  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3572# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3573# work properly (i.e., refer to `conftest.exe'), while it won't with
3574# `rm'.
3575for ac_file in conftest.exe conftest conftest.*; do
3576  test -f "$ac_file" || continue
3577  case $ac_file in
3578    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3579    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3580	  break;;
3581    * ) break;;
3582  esac
3583done
3584else
3585  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3588See \`config.log' for more details" "$LINENO" 5; }
3589fi
3590rm -f conftest conftest$ac_cv_exeext
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3592$as_echo "$ac_cv_exeext" >&6; }
3593
3594rm -f conftest.$ac_ext
3595EXEEXT=$ac_cv_exeext
3596ac_exeext=$EXEEXT
3597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599#include <stdio.h>
3600int
3601main ()
3602{
3603FILE *f = fopen ("conftest.out", "w");
3604 return ferror (f) || fclose (f) != 0;
3605
3606  ;
3607  return 0;
3608}
3609_ACEOF
3610ac_clean_files="$ac_clean_files conftest.out"
3611# Check that the compiler produces executables we can run.  If not, either
3612# the compiler is broken, or we cross compile.
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3614$as_echo_n "checking whether we are cross compiling... " >&6; }
3615if test "$cross_compiling" != yes; then
3616  { { ac_try="$ac_link"
3617case "(($ac_try" in
3618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619  *) ac_try_echo=$ac_try;;
3620esac
3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622$as_echo "$ac_try_echo"; } >&5
3623  (eval "$ac_link") 2>&5
3624  ac_status=$?
3625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626  test $ac_status = 0; }
3627  if { ac_try='./conftest$ac_cv_exeext'
3628  { { case "(($ac_try" in
3629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630  *) ac_try_echo=$ac_try;;
3631esac
3632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633$as_echo "$ac_try_echo"; } >&5
3634  (eval "$ac_try") 2>&5
3635  ac_status=$?
3636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637  test $ac_status = 0; }; }; then
3638    cross_compiling=no
3639  else
3640    if test "$cross_compiling" = maybe; then
3641	cross_compiling=yes
3642    else
3643	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645as_fn_error $? "cannot run C compiled programs.
3646If you meant to cross compile, use \`--host'.
3647See \`config.log' for more details" "$LINENO" 5; }
3648    fi
3649  fi
3650fi
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3652$as_echo "$cross_compiling" >&6; }
3653
3654rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3655ac_clean_files=$ac_clean_files_save
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3657$as_echo_n "checking for suffix of object files... " >&6; }
3658if ${ac_cv_objext+:} false; then :
3659  $as_echo_n "(cached) " >&6
3660else
3661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662/* end confdefs.h.  */
3663
3664int
3665main ()
3666{
3667
3668  ;
3669  return 0;
3670}
3671_ACEOF
3672rm -f conftest.o conftest.obj
3673if { { ac_try="$ac_compile"
3674case "(($ac_try" in
3675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676  *) ac_try_echo=$ac_try;;
3677esac
3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679$as_echo "$ac_try_echo"; } >&5
3680  (eval "$ac_compile") 2>&5
3681  ac_status=$?
3682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683  test $ac_status = 0; }; then :
3684  for ac_file in conftest.o conftest.obj conftest.*; do
3685  test -f "$ac_file" || continue;
3686  case $ac_file in
3687    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3688    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3689       break;;
3690  esac
3691done
3692else
3693  $as_echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3698as_fn_error $? "cannot compute suffix of object files: cannot compile
3699See \`config.log' for more details" "$LINENO" 5; }
3700fi
3701rm -f conftest.$ac_cv_objext conftest.$ac_ext
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3704$as_echo "$ac_cv_objext" >&6; }
3705OBJEXT=$ac_cv_objext
3706ac_objext=$OBJEXT
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3708$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3709if ${ac_cv_c_compiler_gnu+:} false; then :
3710  $as_echo_n "(cached) " >&6
3711else
3712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713/* end confdefs.h.  */
3714
3715int
3716main ()
3717{
3718#ifndef __GNUC__
3719       choke me
3720#endif
3721
3722  ;
3723  return 0;
3724}
3725_ACEOF
3726if ac_fn_c_try_compile "$LINENO"; then :
3727  ac_compiler_gnu=yes
3728else
3729  ac_compiler_gnu=no
3730fi
3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732ac_cv_c_compiler_gnu=$ac_compiler_gnu
3733
3734fi
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3736$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3737if test $ac_compiler_gnu = yes; then
3738  GCC=yes
3739else
3740  GCC=
3741fi
3742ac_test_CFLAGS=${CFLAGS+set}
3743ac_save_CFLAGS=$CFLAGS
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3745$as_echo_n "checking whether $CC accepts -g... " >&6; }
3746if ${ac_cv_prog_cc_g+:} false; then :
3747  $as_echo_n "(cached) " >&6
3748else
3749  ac_save_c_werror_flag=$ac_c_werror_flag
3750   ac_c_werror_flag=yes
3751   ac_cv_prog_cc_g=no
3752   CFLAGS="-g"
3753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h.  */
3755
3756int
3757main ()
3758{
3759
3760  ;
3761  return 0;
3762}
3763_ACEOF
3764if ac_fn_c_try_compile "$LINENO"; then :
3765  ac_cv_prog_cc_g=yes
3766else
3767  CFLAGS=""
3768      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769/* end confdefs.h.  */
3770
3771int
3772main ()
3773{
3774
3775  ;
3776  return 0;
3777}
3778_ACEOF
3779if ac_fn_c_try_compile "$LINENO"; then :
3780
3781else
3782  ac_c_werror_flag=$ac_save_c_werror_flag
3783	 CFLAGS="-g"
3784	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h.  */
3786
3787int
3788main ()
3789{
3790
3791  ;
3792  return 0;
3793}
3794_ACEOF
3795if ac_fn_c_try_compile "$LINENO"; then :
3796  ac_cv_prog_cc_g=yes
3797fi
3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799fi
3800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801fi
3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803   ac_c_werror_flag=$ac_save_c_werror_flag
3804fi
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3806$as_echo "$ac_cv_prog_cc_g" >&6; }
3807if test "$ac_test_CFLAGS" = set; then
3808  CFLAGS=$ac_save_CFLAGS
3809elif test $ac_cv_prog_cc_g = yes; then
3810  if test "$GCC" = yes; then
3811    CFLAGS="-g -O2"
3812  else
3813    CFLAGS="-g"
3814  fi
3815else
3816  if test "$GCC" = yes; then
3817    CFLAGS="-O2"
3818  else
3819    CFLAGS=
3820  fi
3821fi
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3823$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3824if ${ac_cv_prog_cc_c89+:} false; then :
3825  $as_echo_n "(cached) " >&6
3826else
3827  ac_cv_prog_cc_c89=no
3828ac_save_CC=$CC
3829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h.  */
3831#include <stdarg.h>
3832#include <stdio.h>
3833#include <sys/types.h>
3834#include <sys/stat.h>
3835/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3836struct buf { int x; };
3837FILE * (*rcsopen) (struct buf *, struct stat *, int);
3838static char *e (p, i)
3839     char **p;
3840     int i;
3841{
3842  return p[i];
3843}
3844static char *f (char * (*g) (char **, int), char **p, ...)
3845{
3846  char *s;
3847  va_list v;
3848  va_start (v,p);
3849  s = g (p, va_arg (v,int));
3850  va_end (v);
3851  return s;
3852}
3853
3854/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3855   function prototypes and stuff, but not '\xHH' hex character constants.
3856   These don't provoke an error unfortunately, instead are silently treated
3857   as 'x'.  The following induces an error, until -std is added to get
3858   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3859   array size at least.  It's necessary to write '\x00'==0 to get something
3860   that's true only with -std.  */
3861int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3862
3863/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3864   inside strings and character constants.  */
3865#define FOO(x) 'x'
3866int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3867
3868int test (int i, double x);
3869struct s1 {int (*f) (int a);};
3870struct s2 {int (*f) (double a);};
3871int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3872int argc;
3873char **argv;
3874int
3875main ()
3876{
3877return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3878  ;
3879  return 0;
3880}
3881_ACEOF
3882for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3883	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3884do
3885  CC="$ac_save_CC $ac_arg"
3886  if ac_fn_c_try_compile "$LINENO"; then :
3887  ac_cv_prog_cc_c89=$ac_arg
3888fi
3889rm -f core conftest.err conftest.$ac_objext
3890  test "x$ac_cv_prog_cc_c89" != "xno" && break
3891done
3892rm -f conftest.$ac_ext
3893CC=$ac_save_CC
3894
3895fi
3896# AC_CACHE_VAL
3897case "x$ac_cv_prog_cc_c89" in
3898  x)
3899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3900$as_echo "none needed" >&6; } ;;
3901  xno)
3902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3903$as_echo "unsupported" >&6; } ;;
3904  *)
3905    CC="$CC $ac_cv_prog_cc_c89"
3906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3907$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3908esac
3909if test "x$ac_cv_prog_cc_c89" != xno; then :
3910
3911fi
3912
3913ac_ext=c
3914ac_cpp='$CPP $CPPFLAGS'
3915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918
3919depcc="$CC"   am_compiler_list=
3920
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3922$as_echo_n "checking dependency style of $depcc... " >&6; }
3923if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3924  $as_echo_n "(cached) " >&6
3925else
3926  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3927  # We make a subdir and do the tests there.  Otherwise we can end up
3928  # making bogus files that we don't know about and never remove.  For
3929  # instance it was reported that on HP-UX the gcc test will end up
3930  # making a dummy file named `D' -- because `-MD' means `put the output
3931  # in D'.
3932  rm -rf conftest.dir
3933  mkdir conftest.dir
3934  # Copy depcomp to subdir because otherwise we won't find it if we're
3935  # using a relative directory.
3936  cp "$am_depcomp" conftest.dir
3937  cd conftest.dir
3938  # We will build objects and dependencies in a subdirectory because
3939  # it helps to detect inapplicable dependency modes.  For instance
3940  # both Tru64's cc and ICC support -MD to output dependencies as a
3941  # side effect of compilation, but ICC will put the dependencies in
3942  # the current directory while Tru64 will put them in the object
3943  # directory.
3944  mkdir sub
3945
3946  am_cv_CC_dependencies_compiler_type=none
3947  if test "$am_compiler_list" = ""; then
3948     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3949  fi
3950  am__universal=false
3951  case " $depcc " in #(
3952     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3953     esac
3954
3955  for depmode in $am_compiler_list; do
3956    # Setup a source with many dependencies, because some compilers
3957    # like to wrap large dependency lists on column 80 (with \), and
3958    # we should not choose a depcomp mode which is confused by this.
3959    #
3960    # We need to recreate these files for each test, as the compiler may
3961    # overwrite some of them when testing with obscure command lines.
3962    # This happens at least with the AIX C compiler.
3963    : > sub/conftest.c
3964    for i in 1 2 3 4 5 6; do
3965      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3966      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3967      # Solaris 8's {/usr,}/bin/sh.
3968      touch sub/conftst$i.h
3969    done
3970    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3971
3972    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3973    # mode.  It turns out that the SunPro C++ compiler does not properly
3974    # handle `-M -o', and we need to detect this.  Also, some Intel
3975    # versions had trouble with output in subdirs
3976    am__obj=sub/conftest.${OBJEXT-o}
3977    am__minus_obj="-o $am__obj"
3978    case $depmode in
3979    gcc)
3980      # This depmode causes a compiler race in universal mode.
3981      test "$am__universal" = false || continue
3982      ;;
3983    nosideeffect)
3984      # after this tag, mechanisms are not by side-effect, so they'll
3985      # only be used when explicitly requested
3986      if test "x$enable_dependency_tracking" = xyes; then
3987	continue
3988      else
3989	break
3990      fi
3991      ;;
3992    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3993      # This compiler won't grok `-c -o', but also, the minuso test has
3994      # not run yet.  These depmodes are late enough in the game, and
3995      # so weak that their functioning should not be impacted.
3996      am__obj=conftest.${OBJEXT-o}
3997      am__minus_obj=
3998      ;;
3999    none) break ;;
4000    esac
4001    if depmode=$depmode \
4002       source=sub/conftest.c object=$am__obj \
4003       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4004       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4005         >/dev/null 2>conftest.err &&
4006       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4007       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4008       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4009       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4010      # icc doesn't choke on unknown options, it will just issue warnings
4011      # or remarks (even with -Werror).  So we grep stderr for any message
4012      # that says an option was ignored or not supported.
4013      # When given -MP, icc 7.0 and 7.1 complain thusly:
4014      #   icc: Command line warning: ignoring option '-M'; no argument required
4015      # The diagnosis changed in icc 8.0:
4016      #   icc: Command line remark: option '-MP' not supported
4017      if (grep 'ignoring option' conftest.err ||
4018          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4019        am_cv_CC_dependencies_compiler_type=$depmode
4020        break
4021      fi
4022    fi
4023  done
4024
4025  cd ..
4026  rm -rf conftest.dir
4027else
4028  am_cv_CC_dependencies_compiler_type=none
4029fi
4030
4031fi
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4033$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4034CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4035
4036 if
4037  test "x$enable_dependency_tracking" != xno \
4038  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4039  am__fastdepCC_TRUE=
4040  am__fastdepCC_FALSE='#'
4041else
4042  am__fastdepCC_TRUE='#'
4043  am__fastdepCC_FALSE=
4044fi
4045
4046
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4048$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4049if ${ac_cv_path_SED+:} false; then :
4050  $as_echo_n "(cached) " >&6
4051else
4052            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4053     for ac_i in 1 2 3 4 5 6 7; do
4054       ac_script="$ac_script$as_nl$ac_script"
4055     done
4056     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4057     { ac_script=; unset ac_script;}
4058     if test -z "$SED"; then
4059  ac_path_SED_found=false
4060  # Loop through the user's path and test for each of PROGNAME-LIST
4061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH
4063do
4064  IFS=$as_save_IFS
4065  test -z "$as_dir" && as_dir=.
4066    for ac_prog in sed gsed; do
4067    for ac_exec_ext in '' $ac_executable_extensions; do
4068      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4069      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4070# Check for GNU ac_path_SED and select it if it is found.
4071  # Check for GNU $ac_path_SED
4072case `"$ac_path_SED" --version 2>&1` in
4073*GNU*)
4074  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4075*)
4076  ac_count=0
4077  $as_echo_n 0123456789 >"conftest.in"
4078  while :
4079  do
4080    cat "conftest.in" "conftest.in" >"conftest.tmp"
4081    mv "conftest.tmp" "conftest.in"
4082    cp "conftest.in" "conftest.nl"
4083    $as_echo '' >> "conftest.nl"
4084    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4085    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4086    as_fn_arith $ac_count + 1 && ac_count=$as_val
4087    if test $ac_count -gt ${ac_path_SED_max-0}; then
4088      # Best one so far, save it but keep looking for a better one
4089      ac_cv_path_SED="$ac_path_SED"
4090      ac_path_SED_max=$ac_count
4091    fi
4092    # 10*(2^10) chars as input seems more than enough
4093    test $ac_count -gt 10 && break
4094  done
4095  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4096esac
4097
4098      $ac_path_SED_found && break 3
4099    done
4100  done
4101  done
4102IFS=$as_save_IFS
4103  if test -z "$ac_cv_path_SED"; then
4104    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4105  fi
4106else
4107  ac_cv_path_SED=$SED
4108fi
4109
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4112$as_echo "$ac_cv_path_SED" >&6; }
4113 SED="$ac_cv_path_SED"
4114  rm -f conftest.sed
4115
4116test -z "$SED" && SED=sed
4117Xsed="$SED -e 1s/^X//"
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4130$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4131if ${ac_cv_path_GREP+:} false; then :
4132  $as_echo_n "(cached) " >&6
4133else
4134  if test -z "$GREP"; then
4135  ac_path_GREP_found=false
4136  # Loop through the user's path and test for each of PROGNAME-LIST
4137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4139do
4140  IFS=$as_save_IFS
4141  test -z "$as_dir" && as_dir=.
4142    for ac_prog in grep ggrep; do
4143    for ac_exec_ext in '' $ac_executable_extensions; do
4144      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4145      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4146# Check for GNU ac_path_GREP and select it if it is found.
4147  # Check for GNU $ac_path_GREP
4148case `"$ac_path_GREP" --version 2>&1` in
4149*GNU*)
4150  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4151*)
4152  ac_count=0
4153  $as_echo_n 0123456789 >"conftest.in"
4154  while :
4155  do
4156    cat "conftest.in" "conftest.in" >"conftest.tmp"
4157    mv "conftest.tmp" "conftest.in"
4158    cp "conftest.in" "conftest.nl"
4159    $as_echo 'GREP' >> "conftest.nl"
4160    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162    as_fn_arith $ac_count + 1 && ac_count=$as_val
4163    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4164      # Best one so far, save it but keep looking for a better one
4165      ac_cv_path_GREP="$ac_path_GREP"
4166      ac_path_GREP_max=$ac_count
4167    fi
4168    # 10*(2^10) chars as input seems more than enough
4169    test $ac_count -gt 10 && break
4170  done
4171  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172esac
4173
4174      $ac_path_GREP_found && break 3
4175    done
4176  done
4177  done
4178IFS=$as_save_IFS
4179  if test -z "$ac_cv_path_GREP"; then
4180    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4181  fi
4182else
4183  ac_cv_path_GREP=$GREP
4184fi
4185
4186fi
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4188$as_echo "$ac_cv_path_GREP" >&6; }
4189 GREP="$ac_cv_path_GREP"
4190
4191
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4193$as_echo_n "checking for egrep... " >&6; }
4194if ${ac_cv_path_EGREP+:} false; then :
4195  $as_echo_n "(cached) " >&6
4196else
4197  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4198   then ac_cv_path_EGREP="$GREP -E"
4199   else
4200     if test -z "$EGREP"; then
4201  ac_path_EGREP_found=false
4202  # Loop through the user's path and test for each of PROGNAME-LIST
4203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205do
4206  IFS=$as_save_IFS
4207  test -z "$as_dir" && as_dir=.
4208    for ac_prog in egrep; do
4209    for ac_exec_ext in '' $ac_executable_extensions; do
4210      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4211      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4212# Check for GNU ac_path_EGREP and select it if it is found.
4213  # Check for GNU $ac_path_EGREP
4214case `"$ac_path_EGREP" --version 2>&1` in
4215*GNU*)
4216  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4217*)
4218  ac_count=0
4219  $as_echo_n 0123456789 >"conftest.in"
4220  while :
4221  do
4222    cat "conftest.in" "conftest.in" >"conftest.tmp"
4223    mv "conftest.tmp" "conftest.in"
4224    cp "conftest.in" "conftest.nl"
4225    $as_echo 'EGREP' >> "conftest.nl"
4226    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228    as_fn_arith $ac_count + 1 && ac_count=$as_val
4229    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4230      # Best one so far, save it but keep looking for a better one
4231      ac_cv_path_EGREP="$ac_path_EGREP"
4232      ac_path_EGREP_max=$ac_count
4233    fi
4234    # 10*(2^10) chars as input seems more than enough
4235    test $ac_count -gt 10 && break
4236  done
4237  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238esac
4239
4240      $ac_path_EGREP_found && break 3
4241    done
4242  done
4243  done
4244IFS=$as_save_IFS
4245  if test -z "$ac_cv_path_EGREP"; then
4246    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4247  fi
4248else
4249  ac_cv_path_EGREP=$EGREP
4250fi
4251
4252   fi
4253fi
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4255$as_echo "$ac_cv_path_EGREP" >&6; }
4256 EGREP="$ac_cv_path_EGREP"
4257
4258
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4260$as_echo_n "checking for fgrep... " >&6; }
4261if ${ac_cv_path_FGREP+:} false; then :
4262  $as_echo_n "(cached) " >&6
4263else
4264  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4265   then ac_cv_path_FGREP="$GREP -F"
4266   else
4267     if test -z "$FGREP"; then
4268  ac_path_FGREP_found=false
4269  # Loop through the user's path and test for each of PROGNAME-LIST
4270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272do
4273  IFS=$as_save_IFS
4274  test -z "$as_dir" && as_dir=.
4275    for ac_prog in fgrep; do
4276    for ac_exec_ext in '' $ac_executable_extensions; do
4277      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4278      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4279# Check for GNU ac_path_FGREP and select it if it is found.
4280  # Check for GNU $ac_path_FGREP
4281case `"$ac_path_FGREP" --version 2>&1` in
4282*GNU*)
4283  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4284*)
4285  ac_count=0
4286  $as_echo_n 0123456789 >"conftest.in"
4287  while :
4288  do
4289    cat "conftest.in" "conftest.in" >"conftest.tmp"
4290    mv "conftest.tmp" "conftest.in"
4291    cp "conftest.in" "conftest.nl"
4292    $as_echo 'FGREP' >> "conftest.nl"
4293    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4295    as_fn_arith $ac_count + 1 && ac_count=$as_val
4296    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4297      # Best one so far, save it but keep looking for a better one
4298      ac_cv_path_FGREP="$ac_path_FGREP"
4299      ac_path_FGREP_max=$ac_count
4300    fi
4301    # 10*(2^10) chars as input seems more than enough
4302    test $ac_count -gt 10 && break
4303  done
4304  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305esac
4306
4307      $ac_path_FGREP_found && break 3
4308    done
4309  done
4310  done
4311IFS=$as_save_IFS
4312  if test -z "$ac_cv_path_FGREP"; then
4313    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4314  fi
4315else
4316  ac_cv_path_FGREP=$FGREP
4317fi
4318
4319   fi
4320fi
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4322$as_echo "$ac_cv_path_FGREP" >&6; }
4323 FGREP="$ac_cv_path_FGREP"
4324
4325
4326test -z "$GREP" && GREP=grep
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346# Check whether --with-gnu-ld was given.
4347if test "${with_gnu_ld+set}" = set; then :
4348  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4349else
4350  with_gnu_ld=no
4351fi
4352
4353ac_prog=ld
4354if test "$GCC" = yes; then
4355  # Check if gcc -print-prog-name=ld gives a path.
4356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4357$as_echo_n "checking for ld used by $CC... " >&6; }
4358  case $host in
4359  *-*-mingw*)
4360    # gcc leaves a trailing carriage return which upsets mingw
4361    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4362  *)
4363    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4364  esac
4365  case $ac_prog in
4366    # Accept absolute paths.
4367    [\\/]* | ?:[\\/]*)
4368      re_direlt='/[^/][^/]*/\.\./'
4369      # Canonicalize the pathname of ld
4370      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4371      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4372	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4373      done
4374      test -z "$LD" && LD="$ac_prog"
4375      ;;
4376  "")
4377    # If it fails, then pretend we aren't using GCC.
4378    ac_prog=ld
4379    ;;
4380  *)
4381    # If it is relative, then search for the first ld in PATH.
4382    with_gnu_ld=unknown
4383    ;;
4384  esac
4385elif test "$with_gnu_ld" = yes; then
4386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4387$as_echo_n "checking for GNU ld... " >&6; }
4388else
4389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4390$as_echo_n "checking for non-GNU ld... " >&6; }
4391fi
4392if ${lt_cv_path_LD+:} false; then :
4393  $as_echo_n "(cached) " >&6
4394else
4395  if test -z "$LD"; then
4396  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4397  for ac_dir in $PATH; do
4398    IFS="$lt_save_ifs"
4399    test -z "$ac_dir" && ac_dir=.
4400    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4401      lt_cv_path_LD="$ac_dir/$ac_prog"
4402      # Check to see if the program is GNU ld.  I'd rather use --version,
4403      # but apparently some variants of GNU ld only accept -v.
4404      # Break only if it was the GNU/non-GNU ld that we prefer.
4405      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4406      *GNU* | *'with BFD'*)
4407	test "$with_gnu_ld" != no && break
4408	;;
4409      *)
4410	test "$with_gnu_ld" != yes && break
4411	;;
4412      esac
4413    fi
4414  done
4415  IFS="$lt_save_ifs"
4416else
4417  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4418fi
4419fi
4420
4421LD="$lt_cv_path_LD"
4422if test -n "$LD"; then
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4424$as_echo "$LD" >&6; }
4425else
4426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427$as_echo "no" >&6; }
4428fi
4429test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4431$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4432if ${lt_cv_prog_gnu_ld+:} false; then :
4433  $as_echo_n "(cached) " >&6
4434else
4435  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4436case `$LD -v 2>&1 </dev/null` in
4437*GNU* | *'with BFD'*)
4438  lt_cv_prog_gnu_ld=yes
4439  ;;
4440*)
4441  lt_cv_prog_gnu_ld=no
4442  ;;
4443esac
4444fi
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4446$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4447with_gnu_ld=$lt_cv_prog_gnu_ld
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4458$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4459if ${lt_cv_path_NM+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  if test -n "$NM"; then
4463  # Let the user override the test.
4464  lt_cv_path_NM="$NM"
4465else
4466  lt_nm_to_check="${ac_tool_prefix}nm"
4467  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4468    lt_nm_to_check="$lt_nm_to_check nm"
4469  fi
4470  for lt_tmp_nm in $lt_nm_to_check; do
4471    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4472    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4473      IFS="$lt_save_ifs"
4474      test -z "$ac_dir" && ac_dir=.
4475      tmp_nm="$ac_dir/$lt_tmp_nm"
4476      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4477	# Check to see if the nm accepts a BSD-compat flag.
4478	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4479	#   nm: unknown option "B" ignored
4480	# Tru64's nm complains that /dev/null is an invalid object file
4481	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4482	*/dev/null* | *'Invalid file or object type'*)
4483	  lt_cv_path_NM="$tmp_nm -B"
4484	  break
4485	  ;;
4486	*)
4487	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4488	  */dev/null*)
4489	    lt_cv_path_NM="$tmp_nm -p"
4490	    break
4491	    ;;
4492	  *)
4493	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4494	    continue # so that we can try to find one that supports BSD flags
4495	    ;;
4496	  esac
4497	  ;;
4498	esac
4499      fi
4500    done
4501    IFS="$lt_save_ifs"
4502  done
4503  : ${lt_cv_path_NM=no}
4504fi
4505fi
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4507$as_echo "$lt_cv_path_NM" >&6; }
4508if test "$lt_cv_path_NM" != "no"; then
4509  NM="$lt_cv_path_NM"
4510else
4511  # Didn't find any BSD compatible name lister, look for dumpbin.
4512  if test -n "$DUMPBIN"; then :
4513    # Let the user override the test.
4514  else
4515    if test -n "$ac_tool_prefix"; then
4516  for ac_prog in dumpbin "link -dump"
4517  do
4518    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521$as_echo_n "checking for $ac_word... " >&6; }
4522if ${ac_cv_prog_DUMPBIN+:} false; then :
4523  $as_echo_n "(cached) " >&6
4524else
4525  if test -n "$DUMPBIN"; then
4526  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531  IFS=$as_save_IFS
4532  test -z "$as_dir" && as_dir=.
4533    for ac_exec_ext in '' $ac_executable_extensions; do
4534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537    break 2
4538  fi
4539done
4540  done
4541IFS=$as_save_IFS
4542
4543fi
4544fi
4545DUMPBIN=$ac_cv_prog_DUMPBIN
4546if test -n "$DUMPBIN"; then
4547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4548$as_echo "$DUMPBIN" >&6; }
4549else
4550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551$as_echo "no" >&6; }
4552fi
4553
4554
4555    test -n "$DUMPBIN" && break
4556  done
4557fi
4558if test -z "$DUMPBIN"; then
4559  ac_ct_DUMPBIN=$DUMPBIN
4560  for ac_prog in dumpbin "link -dump"
4561do
4562  # Extract the first word of "$ac_prog", so it can be a program name with args.
4563set dummy $ac_prog; ac_word=$2
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565$as_echo_n "checking for $ac_word... " >&6; }
4566if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4567  $as_echo_n "(cached) " >&6
4568else
4569  if test -n "$ac_ct_DUMPBIN"; then
4570  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4571else
4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575  IFS=$as_save_IFS
4576  test -z "$as_dir" && as_dir=.
4577    for ac_exec_ext in '' $ac_executable_extensions; do
4578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581    break 2
4582  fi
4583done
4584  done
4585IFS=$as_save_IFS
4586
4587fi
4588fi
4589ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4590if test -n "$ac_ct_DUMPBIN"; then
4591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4592$as_echo "$ac_ct_DUMPBIN" >&6; }
4593else
4594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595$as_echo "no" >&6; }
4596fi
4597
4598
4599  test -n "$ac_ct_DUMPBIN" && break
4600done
4601
4602  if test "x$ac_ct_DUMPBIN" = x; then
4603    DUMPBIN=":"
4604  else
4605    case $cross_compiling:$ac_tool_warned in
4606yes:)
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609ac_tool_warned=yes ;;
4610esac
4611    DUMPBIN=$ac_ct_DUMPBIN
4612  fi
4613fi
4614
4615    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4616    *COFF*)
4617      DUMPBIN="$DUMPBIN -symbols"
4618      ;;
4619    *)
4620      DUMPBIN=:
4621      ;;
4622    esac
4623  fi
4624
4625  if test "$DUMPBIN" != ":"; then
4626    NM="$DUMPBIN"
4627  fi
4628fi
4629test -z "$NM" && NM=nm
4630
4631
4632
4633
4634
4635
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4637$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4638if ${lt_cv_nm_interface+:} false; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641  lt_cv_nm_interface="BSD nm"
4642  echo "int some_variable = 0;" > conftest.$ac_ext
4643  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4644  (eval "$ac_compile" 2>conftest.err)
4645  cat conftest.err >&5
4646  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4647  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4648  cat conftest.err >&5
4649  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4650  cat conftest.out >&5
4651  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4652    lt_cv_nm_interface="MS dumpbin"
4653  fi
4654  rm -f conftest*
4655fi
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4657$as_echo "$lt_cv_nm_interface" >&6; }
4658
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4660$as_echo_n "checking whether ln -s works... " >&6; }
4661LN_S=$as_ln_s
4662if test "$LN_S" = "ln -s"; then
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4664$as_echo "yes" >&6; }
4665else
4666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4667$as_echo "no, using $LN_S" >&6; }
4668fi
4669
4670# find the maximum length of command line arguments
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4672$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4673if ${lt_cv_sys_max_cmd_len+:} false; then :
4674  $as_echo_n "(cached) " >&6
4675else
4676    i=0
4677  teststring="ABCD"
4678
4679  case $build_os in
4680  msdosdjgpp*)
4681    # On DJGPP, this test can blow up pretty badly due to problems in libc
4682    # (any single argument exceeding 2000 bytes causes a buffer overrun
4683    # during glob expansion).  Even if it were fixed, the result of this
4684    # check would be larger than it should be.
4685    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4686    ;;
4687
4688  gnu*)
4689    # Under GNU Hurd, this test is not required because there is
4690    # no limit to the length of command line arguments.
4691    # Libtool will interpret -1 as no limit whatsoever
4692    lt_cv_sys_max_cmd_len=-1;
4693    ;;
4694
4695  cygwin* | mingw* | cegcc*)
4696    # On Win9x/ME, this test blows up -- it succeeds, but takes
4697    # about 5 minutes as the teststring grows exponentially.
4698    # Worse, since 9x/ME are not pre-emptively multitasking,
4699    # you end up with a "frozen" computer, even though with patience
4700    # the test eventually succeeds (with a max line length of 256k).
4701    # Instead, let's just punt: use the minimum linelength reported by
4702    # all of the supported platforms: 8192 (on NT/2K/XP).
4703    lt_cv_sys_max_cmd_len=8192;
4704    ;;
4705
4706  mint*)
4707    # On MiNT this can take a long time and run out of memory.
4708    lt_cv_sys_max_cmd_len=8192;
4709    ;;
4710
4711  amigaos*)
4712    # On AmigaOS with pdksh, this test takes hours, literally.
4713    # So we just punt and use a minimum line length of 8192.
4714    lt_cv_sys_max_cmd_len=8192;
4715    ;;
4716
4717  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4718    # This has been around since 386BSD, at least.  Likely further.
4719    if test -x /sbin/sysctl; then
4720      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4721    elif test -x /usr/sbin/sysctl; then
4722      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4723    else
4724      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4725    fi
4726    # And add a safety zone
4727    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4728    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4729    ;;
4730
4731  interix*)
4732    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4733    lt_cv_sys_max_cmd_len=196608
4734    ;;
4735
4736  os2*)
4737    # The test takes a long time on OS/2.
4738    lt_cv_sys_max_cmd_len=8192
4739    ;;
4740
4741  osf*)
4742    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4743    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4744    # nice to cause kernel panics so lets avoid the loop below.
4745    # First set a reasonable default.
4746    lt_cv_sys_max_cmd_len=16384
4747    #
4748    if test -x /sbin/sysconfig; then
4749      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4750        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4751      esac
4752    fi
4753    ;;
4754  sco3.2v5*)
4755    lt_cv_sys_max_cmd_len=102400
4756    ;;
4757  sysv5* | sco5v6* | sysv4.2uw2*)
4758    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4759    if test -n "$kargmax"; then
4760      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4761    else
4762      lt_cv_sys_max_cmd_len=32768
4763    fi
4764    ;;
4765  *)
4766    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4767    if test -n "$lt_cv_sys_max_cmd_len"; then
4768      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4769      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4770    else
4771      # Make teststring a little bigger before we do anything with it.
4772      # a 1K string should be a reasonable start.
4773      for i in 1 2 3 4 5 6 7 8 ; do
4774        teststring=$teststring$teststring
4775      done
4776      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4777      # If test is not a shell built-in, we'll probably end up computing a
4778      # maximum length that is only half of the actual maximum length, but
4779      # we can't tell.
4780      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4781	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4782	      test $i != 17 # 1/2 MB should be enough
4783      do
4784        i=`expr $i + 1`
4785        teststring=$teststring$teststring
4786      done
4787      # Only check the string length outside the loop.
4788      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4789      teststring=
4790      # Add a significant safety factor because C++ compilers can tack on
4791      # massive amounts of additional arguments before passing them to the
4792      # linker.  It appears as though 1/2 is a usable value.
4793      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4794    fi
4795    ;;
4796  esac
4797
4798fi
4799
4800if test -n $lt_cv_sys_max_cmd_len ; then
4801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4802$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4803else
4804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4805$as_echo "none" >&6; }
4806fi
4807max_cmd_len=$lt_cv_sys_max_cmd_len
4808
4809
4810
4811
4812
4813
4814: ${CP="cp -f"}
4815: ${MV="mv -f"}
4816: ${RM="rm -f"}
4817
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4819$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4820# Try some XSI features
4821xsi_shell=no
4822( _lt_dummy="a/b/c"
4823  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4824      = c,a/b,b/c, \
4825    && eval 'test $(( 1 + 1 )) -eq 2 \
4826    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4827  && xsi_shell=yes
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4829$as_echo "$xsi_shell" >&6; }
4830
4831
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4833$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4834lt_shell_append=no
4835( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4836    >/dev/null 2>&1 \
4837  && lt_shell_append=yes
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4839$as_echo "$lt_shell_append" >&6; }
4840
4841
4842if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4843  lt_unset=unset
4844else
4845  lt_unset=false
4846fi
4847
4848
4849
4850
4851
4852# test EBCDIC or ASCII
4853case `echo X|tr X '\101'` in
4854 A) # ASCII based system
4855    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4856  lt_SP2NL='tr \040 \012'
4857  lt_NL2SP='tr \015\012 \040\040'
4858  ;;
4859 *) # EBCDIC based system
4860  lt_SP2NL='tr \100 \n'
4861  lt_NL2SP='tr \r\n \100\100'
4862  ;;
4863esac
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4874$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4875if ${lt_cv_to_host_file_cmd+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  case $host in
4879  *-*-mingw* )
4880    case $build in
4881      *-*-mingw* ) # actually msys
4882        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4883        ;;
4884      *-*-cygwin* )
4885        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4886        ;;
4887      * ) # otherwise, assume *nix
4888        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4889        ;;
4890    esac
4891    ;;
4892  *-*-cygwin* )
4893    case $build in
4894      *-*-mingw* ) # actually msys
4895        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4896        ;;
4897      *-*-cygwin* )
4898        lt_cv_to_host_file_cmd=func_convert_file_noop
4899        ;;
4900      * ) # otherwise, assume *nix
4901        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4902        ;;
4903    esac
4904    ;;
4905  * ) # unhandled hosts (and "normal" native builds)
4906    lt_cv_to_host_file_cmd=func_convert_file_noop
4907    ;;
4908esac
4909
4910fi
4911
4912to_host_file_cmd=$lt_cv_to_host_file_cmd
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4914$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4915
4916
4917
4918
4919
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4921$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4922if ${lt_cv_to_tool_file_cmd+:} false; then :
4923  $as_echo_n "(cached) " >&6
4924else
4925  #assume ordinary cross tools, or native build.
4926lt_cv_to_tool_file_cmd=func_convert_file_noop
4927case $host in
4928  *-*-mingw* )
4929    case $build in
4930      *-*-mingw* ) # actually msys
4931        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4932        ;;
4933    esac
4934    ;;
4935esac
4936
4937fi
4938
4939to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4941$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4942
4943
4944
4945
4946
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4948$as_echo_n "checking for $LD option to reload object files... " >&6; }
4949if ${lt_cv_ld_reload_flag+:} false; then :
4950  $as_echo_n "(cached) " >&6
4951else
4952  lt_cv_ld_reload_flag='-r'
4953fi
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4955$as_echo "$lt_cv_ld_reload_flag" >&6; }
4956reload_flag=$lt_cv_ld_reload_flag
4957case $reload_flag in
4958"" | " "*) ;;
4959*) reload_flag=" $reload_flag" ;;
4960esac
4961reload_cmds='$LD$reload_flag -o $output$reload_objs'
4962case $host_os in
4963  cygwin* | mingw* | pw32* | cegcc*)
4964    if test "$GCC" != yes; then
4965      reload_cmds=false
4966    fi
4967    ;;
4968  darwin*)
4969    if test "$GCC" = yes; then
4970      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4971    else
4972      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4973    fi
4974    ;;
4975esac
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985if test -n "$ac_tool_prefix"; then
4986  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4987set dummy ${ac_tool_prefix}objdump; ac_word=$2
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989$as_echo_n "checking for $ac_word... " >&6; }
4990if ${ac_cv_prog_OBJDUMP+:} false; then :
4991  $as_echo_n "(cached) " >&6
4992else
4993  if test -n "$OBJDUMP"; then
4994  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4995else
4996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997for as_dir in $PATH
4998do
4999  IFS=$as_save_IFS
5000  test -z "$as_dir" && as_dir=.
5001    for ac_exec_ext in '' $ac_executable_extensions; do
5002  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005    break 2
5006  fi
5007done
5008  done
5009IFS=$as_save_IFS
5010
5011fi
5012fi
5013OBJDUMP=$ac_cv_prog_OBJDUMP
5014if test -n "$OBJDUMP"; then
5015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5016$as_echo "$OBJDUMP" >&6; }
5017else
5018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019$as_echo "no" >&6; }
5020fi
5021
5022
5023fi
5024if test -z "$ac_cv_prog_OBJDUMP"; then
5025  ac_ct_OBJDUMP=$OBJDUMP
5026  # Extract the first word of "objdump", so it can be a program name with args.
5027set dummy objdump; ac_word=$2
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029$as_echo_n "checking for $ac_word... " >&6; }
5030if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033  if test -n "$ac_ct_OBJDUMP"; then
5034  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5035else
5036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037for as_dir in $PATH
5038do
5039  IFS=$as_save_IFS
5040  test -z "$as_dir" && as_dir=.
5041    for ac_exec_ext in '' $ac_executable_extensions; do
5042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045    break 2
5046  fi
5047done
5048  done
5049IFS=$as_save_IFS
5050
5051fi
5052fi
5053ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5054if test -n "$ac_ct_OBJDUMP"; then
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5056$as_echo "$ac_ct_OBJDUMP" >&6; }
5057else
5058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059$as_echo "no" >&6; }
5060fi
5061
5062  if test "x$ac_ct_OBJDUMP" = x; then
5063    OBJDUMP="false"
5064  else
5065    case $cross_compiling:$ac_tool_warned in
5066yes:)
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5069ac_tool_warned=yes ;;
5070esac
5071    OBJDUMP=$ac_ct_OBJDUMP
5072  fi
5073else
5074  OBJDUMP="$ac_cv_prog_OBJDUMP"
5075fi
5076
5077test -z "$OBJDUMP" && OBJDUMP=objdump
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5088$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5089if ${lt_cv_deplibs_check_method+:} false; then :
5090  $as_echo_n "(cached) " >&6
5091else
5092  lt_cv_file_magic_cmd='$MAGIC_CMD'
5093lt_cv_file_magic_test_file=
5094lt_cv_deplibs_check_method='unknown'
5095# Need to set the preceding variable on all platforms that support
5096# interlibrary dependencies.
5097# 'none' -- dependencies not supported.
5098# `unknown' -- same as none, but documents that we really don't know.
5099# 'pass_all' -- all dependencies passed with no checks.
5100# 'test_compile' -- check by making test program.
5101# 'file_magic [[regex]]' -- check by looking for files in library path
5102# which responds to the $file_magic_cmd with a given extended regex.
5103# If you have `file' or equivalent on your system and you're not sure
5104# whether `pass_all' will *always* work, you probably want this one.
5105
5106case $host_os in
5107aix[4-9]*)
5108  lt_cv_deplibs_check_method=pass_all
5109  ;;
5110
5111beos*)
5112  lt_cv_deplibs_check_method=pass_all
5113  ;;
5114
5115bsdi[45]*)
5116  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5117  lt_cv_file_magic_cmd='/usr/bin/file -L'
5118  lt_cv_file_magic_test_file=/shlib/libc.so
5119  ;;
5120
5121cygwin*)
5122  # func_win32_libid is a shell function defined in ltmain.sh
5123  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5124  lt_cv_file_magic_cmd='func_win32_libid'
5125  ;;
5126
5127mingw* | pw32*)
5128  # Base MSYS/MinGW do not provide the 'file' command needed by
5129  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5130  # unless we find 'file', for example because we are cross-compiling.
5131  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5132  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5133    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5134    lt_cv_file_magic_cmd='func_win32_libid'
5135  else
5136    # Keep this pattern in sync with the one in func_win32_libid.
5137    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5138    lt_cv_file_magic_cmd='$OBJDUMP -f'
5139  fi
5140  ;;
5141
5142cegcc*)
5143  # use the weaker test based on 'objdump'. See mingw*.
5144  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5145  lt_cv_file_magic_cmd='$OBJDUMP -f'
5146  ;;
5147
5148darwin* | rhapsody*)
5149  lt_cv_deplibs_check_method=pass_all
5150  ;;
5151
5152freebsd* | dragonfly*)
5153  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5154    case $host_cpu in
5155    i*86 )
5156      # Not sure whether the presence of OpenBSD here was a mistake.
5157      # Let's accept both of them until this is cleared up.
5158      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5159      lt_cv_file_magic_cmd=/usr/bin/file
5160      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5161      ;;
5162    esac
5163  else
5164    lt_cv_deplibs_check_method=pass_all
5165  fi
5166  ;;
5167
5168gnu*)
5169  lt_cv_deplibs_check_method=pass_all
5170  ;;
5171
5172haiku*)
5173  lt_cv_deplibs_check_method=pass_all
5174  ;;
5175
5176hpux10.20* | hpux11*)
5177  lt_cv_file_magic_cmd=/usr/bin/file
5178  case $host_cpu in
5179  ia64*)
5180    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5181    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5182    ;;
5183  hppa*64*)
5184    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]'
5185    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5186    ;;
5187  *)
5188    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5189    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5190    ;;
5191  esac
5192  ;;
5193
5194interix[3-9]*)
5195  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5196  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5197  ;;
5198
5199irix5* | irix6* | nonstopux*)
5200  case $LD in
5201  *-32|*"-32 ") libmagic=32-bit;;
5202  *-n32|*"-n32 ") libmagic=N32;;
5203  *-64|*"-64 ") libmagic=64-bit;;
5204  *) libmagic=never-match;;
5205  esac
5206  lt_cv_deplibs_check_method=pass_all
5207  ;;
5208
5209# This must be glibc/ELF.
5210linux* | k*bsd*-gnu | kopensolaris*-gnu)
5211  lt_cv_deplibs_check_method=pass_all
5212  ;;
5213
5214netbsd* | netbsdelf*-gnu)
5215  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5216    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5217  else
5218    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5219  fi
5220  ;;
5221
5222newos6*)
5223  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5224  lt_cv_file_magic_cmd=/usr/bin/file
5225  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5226  ;;
5227
5228*nto* | *qnx*)
5229  lt_cv_deplibs_check_method=pass_all
5230  ;;
5231
5232openbsd*)
5233  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5234    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5235  else
5236    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5237  fi
5238  ;;
5239
5240osf3* | osf4* | osf5*)
5241  lt_cv_deplibs_check_method=pass_all
5242  ;;
5243
5244rdos*)
5245  lt_cv_deplibs_check_method=pass_all
5246  ;;
5247
5248solaris*)
5249  lt_cv_deplibs_check_method=pass_all
5250  ;;
5251
5252sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5253  lt_cv_deplibs_check_method=pass_all
5254  ;;
5255
5256sysv4 | sysv4.3*)
5257  case $host_vendor in
5258  motorola)
5259    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]'
5260    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5261    ;;
5262  ncr)
5263    lt_cv_deplibs_check_method=pass_all
5264    ;;
5265  sequent)
5266    lt_cv_file_magic_cmd='/bin/file'
5267    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5268    ;;
5269  sni)
5270    lt_cv_file_magic_cmd='/bin/file'
5271    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5272    lt_cv_file_magic_test_file=/lib/libc.so
5273    ;;
5274  siemens)
5275    lt_cv_deplibs_check_method=pass_all
5276    ;;
5277  pc)
5278    lt_cv_deplibs_check_method=pass_all
5279    ;;
5280  esac
5281  ;;
5282
5283tpf*)
5284  lt_cv_deplibs_check_method=pass_all
5285  ;;
5286esac
5287
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5290$as_echo "$lt_cv_deplibs_check_method" >&6; }
5291
5292file_magic_glob=
5293want_nocaseglob=no
5294if test "$build" = "$host"; then
5295  case $host_os in
5296  mingw* | pw32*)
5297    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5298      want_nocaseglob=yes
5299    else
5300      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5301    fi
5302    ;;
5303  esac
5304fi
5305
5306file_magic_cmd=$lt_cv_file_magic_cmd
5307deplibs_check_method=$lt_cv_deplibs_check_method
5308test -z "$deplibs_check_method" && deplibs_check_method=unknown
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331if test -n "$ac_tool_prefix"; then
5332  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5333set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335$as_echo_n "checking for $ac_word... " >&6; }
5336if ${ac_cv_prog_DLLTOOL+:} false; then :
5337  $as_echo_n "(cached) " >&6
5338else
5339  if test -n "$DLLTOOL"; then
5340  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5341else
5342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH
5344do
5345  IFS=$as_save_IFS
5346  test -z "$as_dir" && as_dir=.
5347    for ac_exec_ext in '' $ac_executable_extensions; do
5348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351    break 2
5352  fi
5353done
5354  done
5355IFS=$as_save_IFS
5356
5357fi
5358fi
5359DLLTOOL=$ac_cv_prog_DLLTOOL
5360if test -n "$DLLTOOL"; then
5361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5362$as_echo "$DLLTOOL" >&6; }
5363else
5364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365$as_echo "no" >&6; }
5366fi
5367
5368
5369fi
5370if test -z "$ac_cv_prog_DLLTOOL"; then
5371  ac_ct_DLLTOOL=$DLLTOOL
5372  # Extract the first word of "dlltool", so it can be a program name with args.
5373set dummy dlltool; ac_word=$2
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375$as_echo_n "checking for $ac_word... " >&6; }
5376if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5377  $as_echo_n "(cached) " >&6
5378else
5379  if test -n "$ac_ct_DLLTOOL"; then
5380  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5381else
5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385  IFS=$as_save_IFS
5386  test -z "$as_dir" && as_dir=.
5387    for ac_exec_ext in '' $ac_executable_extensions; do
5388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391    break 2
5392  fi
5393done
5394  done
5395IFS=$as_save_IFS
5396
5397fi
5398fi
5399ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5400if test -n "$ac_ct_DLLTOOL"; then
5401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5402$as_echo "$ac_ct_DLLTOOL" >&6; }
5403else
5404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405$as_echo "no" >&6; }
5406fi
5407
5408  if test "x$ac_ct_DLLTOOL" = x; then
5409    DLLTOOL="false"
5410  else
5411    case $cross_compiling:$ac_tool_warned in
5412yes:)
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415ac_tool_warned=yes ;;
5416esac
5417    DLLTOOL=$ac_ct_DLLTOOL
5418  fi
5419else
5420  DLLTOOL="$ac_cv_prog_DLLTOOL"
5421fi
5422
5423test -z "$DLLTOOL" && DLLTOOL=dlltool
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5435$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5436if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5437  $as_echo_n "(cached) " >&6
5438else
5439  lt_cv_sharedlib_from_linklib_cmd='unknown'
5440
5441case $host_os in
5442cygwin* | mingw* | pw32* | cegcc*)
5443  # two different shell functions defined in ltmain.sh
5444  # decide which to use based on capabilities of $DLLTOOL
5445  case `$DLLTOOL --help 2>&1` in
5446  *--identify-strict*)
5447    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5448    ;;
5449  *)
5450    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5451    ;;
5452  esac
5453  ;;
5454*)
5455  # fallback: assume linklib IS sharedlib
5456  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5457  ;;
5458esac
5459
5460fi
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5462$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5463sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5464test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5465
5466
5467
5468
5469
5470
5471
5472
5473if test -n "$ac_tool_prefix"; then
5474  for ac_prog in ar
5475  do
5476    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5477set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479$as_echo_n "checking for $ac_word... " >&6; }
5480if ${ac_cv_prog_AR+:} false; then :
5481  $as_echo_n "(cached) " >&6
5482else
5483  if test -n "$AR"; then
5484  ac_cv_prog_AR="$AR" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489  IFS=$as_save_IFS
5490  test -z "$as_dir" && as_dir=.
5491    for ac_exec_ext in '' $ac_executable_extensions; do
5492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495    break 2
5496  fi
5497done
5498  done
5499IFS=$as_save_IFS
5500
5501fi
5502fi
5503AR=$ac_cv_prog_AR
5504if test -n "$AR"; then
5505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5506$as_echo "$AR" >&6; }
5507else
5508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509$as_echo "no" >&6; }
5510fi
5511
5512
5513    test -n "$AR" && break
5514  done
5515fi
5516if test -z "$AR"; then
5517  ac_ct_AR=$AR
5518  for ac_prog in ar
5519do
5520  # Extract the first word of "$ac_prog", so it can be a program name with args.
5521set dummy $ac_prog; ac_word=$2
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523$as_echo_n "checking for $ac_word... " >&6; }
5524if ${ac_cv_prog_ac_ct_AR+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527  if test -n "$ac_ct_AR"; then
5528  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5529else
5530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH
5532do
5533  IFS=$as_save_IFS
5534  test -z "$as_dir" && as_dir=.
5535    for ac_exec_ext in '' $ac_executable_extensions; do
5536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537    ac_cv_prog_ac_ct_AR="$ac_prog"
5538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539    break 2
5540  fi
5541done
5542  done
5543IFS=$as_save_IFS
5544
5545fi
5546fi
5547ac_ct_AR=$ac_cv_prog_ac_ct_AR
5548if test -n "$ac_ct_AR"; then
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5550$as_echo "$ac_ct_AR" >&6; }
5551else
5552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553$as_echo "no" >&6; }
5554fi
5555
5556
5557  test -n "$ac_ct_AR" && break
5558done
5559
5560  if test "x$ac_ct_AR" = x; then
5561    AR="false"
5562  else
5563    case $cross_compiling:$ac_tool_warned in
5564yes:)
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5567ac_tool_warned=yes ;;
5568esac
5569    AR=$ac_ct_AR
5570  fi
5571fi
5572
5573: ${AR=ar}
5574: ${AR_FLAGS=cru}
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5587$as_echo_n "checking for archiver @FILE support... " >&6; }
5588if ${lt_cv_ar_at_file+:} false; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591  lt_cv_ar_at_file=no
5592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h.  */
5594
5595int
5596main ()
5597{
5598
5599  ;
5600  return 0;
5601}
5602_ACEOF
5603if ac_fn_c_try_compile "$LINENO"; then :
5604  echo conftest.$ac_objext > conftest.lst
5605      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5606      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5607  (eval $lt_ar_try) 2>&5
5608  ac_status=$?
5609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5610  test $ac_status = 0; }
5611      if test "$ac_status" -eq 0; then
5612	# Ensure the archiver fails upon bogus file names.
5613	rm -f conftest.$ac_objext libconftest.a
5614	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5615  (eval $lt_ar_try) 2>&5
5616  ac_status=$?
5617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5618  test $ac_status = 0; }
5619	if test "$ac_status" -ne 0; then
5620          lt_cv_ar_at_file=@
5621        fi
5622      fi
5623      rm -f conftest.* libconftest.a
5624
5625fi
5626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627
5628fi
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5630$as_echo "$lt_cv_ar_at_file" >&6; }
5631
5632if test "x$lt_cv_ar_at_file" = xno; then
5633  archiver_list_spec=
5634else
5635  archiver_list_spec=$lt_cv_ar_at_file
5636fi
5637
5638
5639
5640
5641
5642
5643
5644if test -n "$ac_tool_prefix"; then
5645  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5646set dummy ${ac_tool_prefix}strip; ac_word=$2
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if ${ac_cv_prog_STRIP+:} false; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  if test -n "$STRIP"; then
5653  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658  IFS=$as_save_IFS
5659  test -z "$as_dir" && as_dir=.
5660    for ac_exec_ext in '' $ac_executable_extensions; do
5661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664    break 2
5665  fi
5666done
5667  done
5668IFS=$as_save_IFS
5669
5670fi
5671fi
5672STRIP=$ac_cv_prog_STRIP
5673if test -n "$STRIP"; then
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5675$as_echo "$STRIP" >&6; }
5676else
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681
5682fi
5683if test -z "$ac_cv_prog_STRIP"; then
5684  ac_ct_STRIP=$STRIP
5685  # Extract the first word of "strip", so it can be a program name with args.
5686set dummy strip; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  if test -n "$ac_ct_STRIP"; then
5693  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698  IFS=$as_save_IFS
5699  test -z "$as_dir" && as_dir=.
5700    for ac_exec_ext in '' $ac_executable_extensions; do
5701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702    ac_cv_prog_ac_ct_STRIP="strip"
5703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704    break 2
5705  fi
5706done
5707  done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5713if test -n "$ac_ct_STRIP"; then
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5715$as_echo "$ac_ct_STRIP" >&6; }
5716else
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721  if test "x$ac_ct_STRIP" = x; then
5722    STRIP=":"
5723  else
5724    case $cross_compiling:$ac_tool_warned in
5725yes:)
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728ac_tool_warned=yes ;;
5729esac
5730    STRIP=$ac_ct_STRIP
5731  fi
5732else
5733  STRIP="$ac_cv_prog_STRIP"
5734fi
5735
5736test -z "$STRIP" && STRIP=:
5737
5738
5739
5740
5741
5742
5743if test -n "$ac_tool_prefix"; then
5744  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5745set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747$as_echo_n "checking for $ac_word... " >&6; }
5748if ${ac_cv_prog_RANLIB+:} false; then :
5749  $as_echo_n "(cached) " >&6
5750else
5751  if test -n "$RANLIB"; then
5752  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5753else
5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755for as_dir in $PATH
5756do
5757  IFS=$as_save_IFS
5758  test -z "$as_dir" && as_dir=.
5759    for ac_exec_ext in '' $ac_executable_extensions; do
5760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5761    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763    break 2
5764  fi
5765done
5766  done
5767IFS=$as_save_IFS
5768
5769fi
5770fi
5771RANLIB=$ac_cv_prog_RANLIB
5772if test -n "$RANLIB"; then
5773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5774$as_echo "$RANLIB" >&6; }
5775else
5776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777$as_echo "no" >&6; }
5778fi
5779
5780
5781fi
5782if test -z "$ac_cv_prog_RANLIB"; then
5783  ac_ct_RANLIB=$RANLIB
5784  # Extract the first word of "ranlib", so it can be a program name with args.
5785set dummy ranlib; ac_word=$2
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787$as_echo_n "checking for $ac_word... " >&6; }
5788if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5789  $as_echo_n "(cached) " >&6
5790else
5791  if test -n "$ac_ct_RANLIB"; then
5792  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797  IFS=$as_save_IFS
5798  test -z "$as_dir" && as_dir=.
5799    for ac_exec_ext in '' $ac_executable_extensions; do
5800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801    ac_cv_prog_ac_ct_RANLIB="ranlib"
5802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803    break 2
5804  fi
5805done
5806  done
5807IFS=$as_save_IFS
5808
5809fi
5810fi
5811ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5812if test -n "$ac_ct_RANLIB"; then
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5814$as_echo "$ac_ct_RANLIB" >&6; }
5815else
5816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817$as_echo "no" >&6; }
5818fi
5819
5820  if test "x$ac_ct_RANLIB" = x; then
5821    RANLIB=":"
5822  else
5823    case $cross_compiling:$ac_tool_warned in
5824yes:)
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5827ac_tool_warned=yes ;;
5828esac
5829    RANLIB=$ac_ct_RANLIB
5830  fi
5831else
5832  RANLIB="$ac_cv_prog_RANLIB"
5833fi
5834
5835test -z "$RANLIB" && RANLIB=:
5836
5837
5838
5839
5840
5841
5842# Determine commands to create old-style static archives.
5843old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5844old_postinstall_cmds='chmod 644 $oldlib'
5845old_postuninstall_cmds=
5846
5847if test -n "$RANLIB"; then
5848  case $host_os in
5849  openbsd*)
5850    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5851    ;;
5852  *)
5853    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5854    ;;
5855  esac
5856  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5857fi
5858
5859case $host_os in
5860  darwin*)
5861    lock_old_archive_extraction=yes ;;
5862  *)
5863    lock_old_archive_extraction=no ;;
5864esac
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904# If no C compiler was specified, use CC.
5905LTCC=${LTCC-"$CC"}
5906
5907# If no C compiler flags were specified, use CFLAGS.
5908LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5909
5910# Allow CC to be a program name with arguments.
5911compiler=$CC
5912
5913
5914# Check for command to grab the raw symbol name followed by C symbol from nm.
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5916$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5917if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5918  $as_echo_n "(cached) " >&6
5919else
5920
5921# These are sane defaults that work on at least a few old systems.
5922# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5923
5924# Character class describing NM global symbol codes.
5925symcode='[BCDEGRST]'
5926
5927# Regexp to match symbols that can be accessed directly from C.
5928sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5929
5930# Define system-specific variables.
5931case $host_os in
5932aix*)
5933  symcode='[BCDT]'
5934  ;;
5935cygwin* | mingw* | pw32* | cegcc*)
5936  symcode='[ABCDGISTW]'
5937  ;;
5938hpux*)
5939  if test "$host_cpu" = ia64; then
5940    symcode='[ABCDEGRST]'
5941  fi
5942  ;;
5943irix* | nonstopux*)
5944  symcode='[BCDEGRST]'
5945  ;;
5946osf*)
5947  symcode='[BCDEGQRST]'
5948  ;;
5949solaris*)
5950  symcode='[BDRT]'
5951  ;;
5952sco3.2v5*)
5953  symcode='[DT]'
5954  ;;
5955sysv4.2uw2*)
5956  symcode='[DT]'
5957  ;;
5958sysv5* | sco5v6* | unixware* | OpenUNIX*)
5959  symcode='[ABDT]'
5960  ;;
5961sysv4)
5962  symcode='[DFNSTU]'
5963  ;;
5964esac
5965
5966# If we're using GNU nm, then use its standard symbol codes.
5967case `$NM -V 2>&1` in
5968*GNU* | *'with BFD'*)
5969  symcode='[ABCDGIRSTW]' ;;
5970esac
5971
5972# Transform an extracted symbol line into a proper C declaration.
5973# Some systems (esp. on ia64) link data and code symbols differently,
5974# so use this general approach.
5975lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5976
5977# Transform an extracted symbol line into symbol name and symbol address
5978lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5979lt_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'"
5980
5981# Handle CRLF in mingw tool chain
5982opt_cr=
5983case $build_os in
5984mingw*)
5985  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5986  ;;
5987esac
5988
5989# Try without a prefix underscore, then with it.
5990for ac_symprfx in "" "_"; do
5991
5992  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5993  symxfrm="\\1 $ac_symprfx\\2 \\2"
5994
5995  # Write the raw and C identifiers.
5996  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5997    # Fake it for dumpbin and say T for any non-static function
5998    # and D for any global variable.
5999    # Also find C++ and __fastcall symbols from MSVC++,
6000    # which start with @ or ?.
6001    lt_cv_sys_global_symbol_pipe="$AWK '"\
6002"     {last_section=section; section=\$ 3};"\
6003"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6004"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6005"     \$ 0!~/External *\|/{next};"\
6006"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6007"     {if(hide[section]) next};"\
6008"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6009"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6010"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6011"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6012"     ' prfx=^$ac_symprfx"
6013  else
6014    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6015  fi
6016  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6017
6018  # Check to see that the pipe works correctly.
6019  pipe_works=no
6020
6021  rm -f conftest*
6022  cat > conftest.$ac_ext <<_LT_EOF
6023#ifdef __cplusplus
6024extern "C" {
6025#endif
6026char nm_test_var;
6027void nm_test_func(void);
6028void nm_test_func(void){}
6029#ifdef __cplusplus
6030}
6031#endif
6032int main(){nm_test_var='a';nm_test_func();return(0);}
6033_LT_EOF
6034
6035  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6036  (eval $ac_compile) 2>&5
6037  ac_status=$?
6038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039  test $ac_status = 0; }; then
6040    # Now try to grab the symbols.
6041    nlist=conftest.nm
6042    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6043  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6044  ac_status=$?
6045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6046  test $ac_status = 0; } && test -s "$nlist"; then
6047      # Try sorting and uniquifying the output.
6048      if sort "$nlist" | uniq > "$nlist"T; then
6049	mv -f "$nlist"T "$nlist"
6050      else
6051	rm -f "$nlist"T
6052      fi
6053
6054      # Make sure that we snagged all the symbols we need.
6055      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6056	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6057	  cat <<_LT_EOF > conftest.$ac_ext
6058/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6059#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6060/* DATA imports from DLLs on WIN32 con't be const, because runtime
6061   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6062# define LT_DLSYM_CONST
6063#elif defined(__osf__)
6064/* This system does not cope well with relocations in const data.  */
6065# define LT_DLSYM_CONST
6066#else
6067# define LT_DLSYM_CONST const
6068#endif
6069
6070#ifdef __cplusplus
6071extern "C" {
6072#endif
6073
6074_LT_EOF
6075	  # Now generate the symbol file.
6076	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6077
6078	  cat <<_LT_EOF >> conftest.$ac_ext
6079
6080/* The mapping between symbol names and symbols.  */
6081LT_DLSYM_CONST struct {
6082  const char *name;
6083  void       *address;
6084}
6085lt__PROGRAM__LTX_preloaded_symbols[] =
6086{
6087  { "@PROGRAM@", (void *) 0 },
6088_LT_EOF
6089	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6090	  cat <<\_LT_EOF >> conftest.$ac_ext
6091  {0, (void *) 0}
6092};
6093
6094/* This works around a problem in FreeBSD linker */
6095#ifdef FREEBSD_WORKAROUND
6096static const void *lt_preloaded_setup() {
6097  return lt__PROGRAM__LTX_preloaded_symbols;
6098}
6099#endif
6100
6101#ifdef __cplusplus
6102}
6103#endif
6104_LT_EOF
6105	  # Now try linking the two files.
6106	  mv conftest.$ac_objext conftstm.$ac_objext
6107	  lt_globsym_save_LIBS=$LIBS
6108	  lt_globsym_save_CFLAGS=$CFLAGS
6109	  LIBS="conftstm.$ac_objext"
6110	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6111	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6112  (eval $ac_link) 2>&5
6113  ac_status=$?
6114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6116	    pipe_works=yes
6117	  fi
6118	  LIBS=$lt_globsym_save_LIBS
6119	  CFLAGS=$lt_globsym_save_CFLAGS
6120	else
6121	  echo "cannot find nm_test_func in $nlist" >&5
6122	fi
6123      else
6124	echo "cannot find nm_test_var in $nlist" >&5
6125      fi
6126    else
6127      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6128    fi
6129  else
6130    echo "$progname: failed program was:" >&5
6131    cat conftest.$ac_ext >&5
6132  fi
6133  rm -rf conftest* conftst*
6134
6135  # Do not use the global_symbol_pipe unless it works.
6136  if test "$pipe_works" = yes; then
6137    break
6138  else
6139    lt_cv_sys_global_symbol_pipe=
6140  fi
6141done
6142
6143fi
6144
6145if test -z "$lt_cv_sys_global_symbol_pipe"; then
6146  lt_cv_sys_global_symbol_to_cdecl=
6147fi
6148if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6150$as_echo "failed" >&6; }
6151else
6152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6153$as_echo "ok" >&6; }
6154fi
6155
6156# Response file support.
6157if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6158  nm_file_list_spec='@'
6159elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6160  nm_file_list_spec='@'
6161fi
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6190$as_echo_n "checking for sysroot... " >&6; }
6191
6192# Check whether --with-sysroot was given.
6193if test "${with_sysroot+set}" = set; then :
6194  withval=$with_sysroot;
6195else
6196  with_sysroot=no
6197fi
6198
6199
6200lt_sysroot=
6201case ${with_sysroot} in #(
6202 yes)
6203   if test "$GCC" = yes; then
6204     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6205   fi
6206   ;; #(
6207 /*)
6208   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6209   ;; #(
6210 no|'')
6211   ;; #(
6212 *)
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6214$as_echo "${with_sysroot}" >&6; }
6215   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6216   ;;
6217esac
6218
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6220$as_echo "${lt_sysroot:-no}" >&6; }
6221
6222
6223
6224
6225
6226# Check whether --enable-libtool-lock was given.
6227if test "${enable_libtool_lock+set}" = set; then :
6228  enableval=$enable_libtool_lock;
6229fi
6230
6231test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6232
6233# Some flags need to be propagated to the compiler or linker for good
6234# libtool support.
6235case $host in
6236ia64-*-hpux*)
6237  # Find out which ABI we are using.
6238  echo 'int i;' > conftest.$ac_ext
6239  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240  (eval $ac_compile) 2>&5
6241  ac_status=$?
6242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243  test $ac_status = 0; }; then
6244    case `/usr/bin/file conftest.$ac_objext` in
6245      *ELF-32*)
6246	HPUX_IA64_MODE="32"
6247	;;
6248      *ELF-64*)
6249	HPUX_IA64_MODE="64"
6250	;;
6251    esac
6252  fi
6253  rm -rf conftest*
6254  ;;
6255*-*-irix6*)
6256  # Find out which ABI we are using.
6257  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6258  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6259  (eval $ac_compile) 2>&5
6260  ac_status=$?
6261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262  test $ac_status = 0; }; then
6263    if test "$lt_cv_prog_gnu_ld" = yes; then
6264      case `/usr/bin/file conftest.$ac_objext` in
6265	*32-bit*)
6266	  LD="${LD-ld} -melf32bsmip"
6267	  ;;
6268	*N32*)
6269	  LD="${LD-ld} -melf32bmipn32"
6270	  ;;
6271	*64-bit*)
6272	  LD="${LD-ld} -melf64bmip"
6273	;;
6274      esac
6275    else
6276      case `/usr/bin/file conftest.$ac_objext` in
6277	*32-bit*)
6278	  LD="${LD-ld} -32"
6279	  ;;
6280	*N32*)
6281	  LD="${LD-ld} -n32"
6282	  ;;
6283	*64-bit*)
6284	  LD="${LD-ld} -64"
6285	  ;;
6286      esac
6287    fi
6288  fi
6289  rm -rf conftest*
6290  ;;
6291
6292x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6293s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6294  # Find out which ABI we are using.
6295  echo 'int i;' > conftest.$ac_ext
6296  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6297  (eval $ac_compile) 2>&5
6298  ac_status=$?
6299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300  test $ac_status = 0; }; then
6301    case `/usr/bin/file conftest.o` in
6302      *32-bit*)
6303	case $host in
6304	  x86_64-*kfreebsd*-gnu)
6305	    LD="${LD-ld} -m elf_i386_fbsd"
6306	    ;;
6307	  x86_64-*linux*)
6308	    LD="${LD-ld} -m elf_i386"
6309	    ;;
6310	  ppc64-*linux*|powerpc64-*linux*)
6311	    LD="${LD-ld} -m elf32ppclinux"
6312	    ;;
6313	  s390x-*linux*)
6314	    LD="${LD-ld} -m elf_s390"
6315	    ;;
6316	  sparc64-*linux*)
6317	    LD="${LD-ld} -m elf32_sparc"
6318	    ;;
6319	esac
6320	;;
6321      *64-bit*)
6322	case $host in
6323	  x86_64-*kfreebsd*-gnu)
6324	    LD="${LD-ld} -m elf_x86_64_fbsd"
6325	    ;;
6326	  x86_64-*linux*)
6327	    LD="${LD-ld} -m elf_x86_64"
6328	    ;;
6329	  ppc*-*linux*|powerpc*-*linux*)
6330	    LD="${LD-ld} -m elf64ppc"
6331	    ;;
6332	  s390*-*linux*|s390*-*tpf*)
6333	    LD="${LD-ld} -m elf64_s390"
6334	    ;;
6335	  sparc*-*linux*)
6336	    LD="${LD-ld} -m elf64_sparc"
6337	    ;;
6338	esac
6339	;;
6340    esac
6341  fi
6342  rm -rf conftest*
6343  ;;
6344
6345*-*-sco3.2v5*)
6346  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6347  SAVE_CFLAGS="$CFLAGS"
6348  CFLAGS="$CFLAGS -belf"
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6350$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6351if ${lt_cv_cc_needs_belf+:} false; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  ac_ext=c
6355ac_cpp='$CPP $CPPFLAGS'
6356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6358ac_compiler_gnu=$ac_cv_c_compiler_gnu
6359
6360     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362
6363int
6364main ()
6365{
6366
6367  ;
6368  return 0;
6369}
6370_ACEOF
6371if ac_fn_c_try_link "$LINENO"; then :
6372  lt_cv_cc_needs_belf=yes
6373else
6374  lt_cv_cc_needs_belf=no
6375fi
6376rm -f core conftest.err conftest.$ac_objext \
6377    conftest$ac_exeext conftest.$ac_ext
6378     ac_ext=c
6379ac_cpp='$CPP $CPPFLAGS'
6380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6382ac_compiler_gnu=$ac_cv_c_compiler_gnu
6383
6384fi
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6386$as_echo "$lt_cv_cc_needs_belf" >&6; }
6387  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6388    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6389    CFLAGS="$SAVE_CFLAGS"
6390  fi
6391  ;;
6392*-*solaris*)
6393  # Find out which ABI we are using.
6394  echo 'int i;' > conftest.$ac_ext
6395  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6396  (eval $ac_compile) 2>&5
6397  ac_status=$?
6398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399  test $ac_status = 0; }; then
6400    case `/usr/bin/file conftest.o` in
6401    *64-bit*)
6402      case $lt_cv_prog_gnu_ld in
6403      yes*)
6404        case $host in
6405        i?86-*-solaris*)
6406          LD="${LD-ld} -m elf_x86_64"
6407          ;;
6408        sparc*-*-solaris*)
6409          LD="${LD-ld} -m elf64_sparc"
6410          ;;
6411        esac
6412        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6413        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6414          LD="${LD-ld}_sol2"
6415        fi
6416        ;;
6417      *)
6418	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6419	  LD="${LD-ld} -64"
6420	fi
6421	;;
6422      esac
6423      ;;
6424    esac
6425  fi
6426  rm -rf conftest*
6427  ;;
6428esac
6429
6430need_locks="$enable_libtool_lock"
6431
6432if test -n "$ac_tool_prefix"; then
6433  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6434set dummy ${ac_tool_prefix}mt; ac_word=$2
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436$as_echo_n "checking for $ac_word... " >&6; }
6437if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6438  $as_echo_n "(cached) " >&6
6439else
6440  if test -n "$MANIFEST_TOOL"; then
6441  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6442else
6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446  IFS=$as_save_IFS
6447  test -z "$as_dir" && as_dir=.
6448    for ac_exec_ext in '' $ac_executable_extensions; do
6449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452    break 2
6453  fi
6454done
6455  done
6456IFS=$as_save_IFS
6457
6458fi
6459fi
6460MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6461if test -n "$MANIFEST_TOOL"; then
6462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6463$as_echo "$MANIFEST_TOOL" >&6; }
6464else
6465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466$as_echo "no" >&6; }
6467fi
6468
6469
6470fi
6471if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6472  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6473  # Extract the first word of "mt", so it can be a program name with args.
6474set dummy mt; ac_word=$2
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476$as_echo_n "checking for $ac_word... " >&6; }
6477if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6478  $as_echo_n "(cached) " >&6
6479else
6480  if test -n "$ac_ct_MANIFEST_TOOL"; then
6481  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6482else
6483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484for as_dir in $PATH
6485do
6486  IFS=$as_save_IFS
6487  test -z "$as_dir" && as_dir=.
6488    for ac_exec_ext in '' $ac_executable_extensions; do
6489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492    break 2
6493  fi
6494done
6495  done
6496IFS=$as_save_IFS
6497
6498fi
6499fi
6500ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6501if test -n "$ac_ct_MANIFEST_TOOL"; then
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6503$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6504else
6505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506$as_echo "no" >&6; }
6507fi
6508
6509  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6510    MANIFEST_TOOL=":"
6511  else
6512    case $cross_compiling:$ac_tool_warned in
6513yes:)
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6516ac_tool_warned=yes ;;
6517esac
6518    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6519  fi
6520else
6521  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6522fi
6523
6524test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6526$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6527if ${lt_cv_path_mainfest_tool+:} false; then :
6528  $as_echo_n "(cached) " >&6
6529else
6530  lt_cv_path_mainfest_tool=no
6531  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6532  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6533  cat conftest.err >&5
6534  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6535    lt_cv_path_mainfest_tool=yes
6536  fi
6537  rm -f conftest*
6538fi
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6540$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6541if test "x$lt_cv_path_mainfest_tool" != xyes; then
6542  MANIFEST_TOOL=:
6543fi
6544
6545
6546
6547
6548
6549
6550  case $host_os in
6551    rhapsody* | darwin*)
6552    if test -n "$ac_tool_prefix"; then
6553  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6554set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556$as_echo_n "checking for $ac_word... " >&6; }
6557if ${ac_cv_prog_DSYMUTIL+:} false; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  if test -n "$DSYMUTIL"; then
6561  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6562else
6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564for as_dir in $PATH
6565do
6566  IFS=$as_save_IFS
6567  test -z "$as_dir" && as_dir=.
6568    for ac_exec_ext in '' $ac_executable_extensions; do
6569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572    break 2
6573  fi
6574done
6575  done
6576IFS=$as_save_IFS
6577
6578fi
6579fi
6580DSYMUTIL=$ac_cv_prog_DSYMUTIL
6581if test -n "$DSYMUTIL"; then
6582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6583$as_echo "$DSYMUTIL" >&6; }
6584else
6585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586$as_echo "no" >&6; }
6587fi
6588
6589
6590fi
6591if test -z "$ac_cv_prog_DSYMUTIL"; then
6592  ac_ct_DSYMUTIL=$DSYMUTIL
6593  # Extract the first word of "dsymutil", so it can be a program name with args.
6594set dummy dsymutil; ac_word=$2
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596$as_echo_n "checking for $ac_word... " >&6; }
6597if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6598  $as_echo_n "(cached) " >&6
6599else
6600  if test -n "$ac_ct_DSYMUTIL"; then
6601  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6602else
6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606  IFS=$as_save_IFS
6607  test -z "$as_dir" && as_dir=.
6608    for ac_exec_ext in '' $ac_executable_extensions; do
6609  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612    break 2
6613  fi
6614done
6615  done
6616IFS=$as_save_IFS
6617
6618fi
6619fi
6620ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6621if test -n "$ac_ct_DSYMUTIL"; then
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6623$as_echo "$ac_ct_DSYMUTIL" >&6; }
6624else
6625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626$as_echo "no" >&6; }
6627fi
6628
6629  if test "x$ac_ct_DSYMUTIL" = x; then
6630    DSYMUTIL=":"
6631  else
6632    case $cross_compiling:$ac_tool_warned in
6633yes:)
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6636ac_tool_warned=yes ;;
6637esac
6638    DSYMUTIL=$ac_ct_DSYMUTIL
6639  fi
6640else
6641  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6642fi
6643
6644    if test -n "$ac_tool_prefix"; then
6645  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6646set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648$as_echo_n "checking for $ac_word... " >&6; }
6649if ${ac_cv_prog_NMEDIT+:} false; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  if test -n "$NMEDIT"; then
6653  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658  IFS=$as_save_IFS
6659  test -z "$as_dir" && as_dir=.
6660    for ac_exec_ext in '' $ac_executable_extensions; do
6661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664    break 2
6665  fi
6666done
6667  done
6668IFS=$as_save_IFS
6669
6670fi
6671fi
6672NMEDIT=$ac_cv_prog_NMEDIT
6673if test -n "$NMEDIT"; then
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6675$as_echo "$NMEDIT" >&6; }
6676else
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678$as_echo "no" >&6; }
6679fi
6680
6681
6682fi
6683if test -z "$ac_cv_prog_NMEDIT"; then
6684  ac_ct_NMEDIT=$NMEDIT
6685  # Extract the first word of "nmedit", so it can be a program name with args.
6686set dummy nmedit; ac_word=$2
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688$as_echo_n "checking for $ac_word... " >&6; }
6689if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692  if test -n "$ac_ct_NMEDIT"; then
6693  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698  IFS=$as_save_IFS
6699  test -z "$as_dir" && as_dir=.
6700    for ac_exec_ext in '' $ac_executable_extensions; do
6701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704    break 2
6705  fi
6706done
6707  done
6708IFS=$as_save_IFS
6709
6710fi
6711fi
6712ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6713if test -n "$ac_ct_NMEDIT"; then
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6715$as_echo "$ac_ct_NMEDIT" >&6; }
6716else
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718$as_echo "no" >&6; }
6719fi
6720
6721  if test "x$ac_ct_NMEDIT" = x; then
6722    NMEDIT=":"
6723  else
6724    case $cross_compiling:$ac_tool_warned in
6725yes:)
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728ac_tool_warned=yes ;;
6729esac
6730    NMEDIT=$ac_ct_NMEDIT
6731  fi
6732else
6733  NMEDIT="$ac_cv_prog_NMEDIT"
6734fi
6735
6736    if test -n "$ac_tool_prefix"; then
6737  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6738set dummy ${ac_tool_prefix}lipo; ac_word=$2
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740$as_echo_n "checking for $ac_word... " >&6; }
6741if ${ac_cv_prog_LIPO+:} false; then :
6742  $as_echo_n "(cached) " >&6
6743else
6744  if test -n "$LIPO"; then
6745  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6746else
6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750  IFS=$as_save_IFS
6751  test -z "$as_dir" && as_dir=.
6752    for ac_exec_ext in '' $ac_executable_extensions; do
6753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756    break 2
6757  fi
6758done
6759  done
6760IFS=$as_save_IFS
6761
6762fi
6763fi
6764LIPO=$ac_cv_prog_LIPO
6765if test -n "$LIPO"; then
6766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6767$as_echo "$LIPO" >&6; }
6768else
6769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770$as_echo "no" >&6; }
6771fi
6772
6773
6774fi
6775if test -z "$ac_cv_prog_LIPO"; then
6776  ac_ct_LIPO=$LIPO
6777  # Extract the first word of "lipo", so it can be a program name with args.
6778set dummy lipo; ac_word=$2
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780$as_echo_n "checking for $ac_word... " >&6; }
6781if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6782  $as_echo_n "(cached) " >&6
6783else
6784  if test -n "$ac_ct_LIPO"; then
6785  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6786else
6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790  IFS=$as_save_IFS
6791  test -z "$as_dir" && as_dir=.
6792    for ac_exec_ext in '' $ac_executable_extensions; do
6793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794    ac_cv_prog_ac_ct_LIPO="lipo"
6795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796    break 2
6797  fi
6798done
6799  done
6800IFS=$as_save_IFS
6801
6802fi
6803fi
6804ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6805if test -n "$ac_ct_LIPO"; then
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6807$as_echo "$ac_ct_LIPO" >&6; }
6808else
6809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
6811fi
6812
6813  if test "x$ac_ct_LIPO" = x; then
6814    LIPO=":"
6815  else
6816    case $cross_compiling:$ac_tool_warned in
6817yes:)
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820ac_tool_warned=yes ;;
6821esac
6822    LIPO=$ac_ct_LIPO
6823  fi
6824else
6825  LIPO="$ac_cv_prog_LIPO"
6826fi
6827
6828    if test -n "$ac_tool_prefix"; then
6829  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6830set dummy ${ac_tool_prefix}otool; ac_word=$2
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832$as_echo_n "checking for $ac_word... " >&6; }
6833if ${ac_cv_prog_OTOOL+:} false; then :
6834  $as_echo_n "(cached) " >&6
6835else
6836  if test -n "$OTOOL"; then
6837  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842  IFS=$as_save_IFS
6843  test -z "$as_dir" && as_dir=.
6844    for ac_exec_ext in '' $ac_executable_extensions; do
6845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848    break 2
6849  fi
6850done
6851  done
6852IFS=$as_save_IFS
6853
6854fi
6855fi
6856OTOOL=$ac_cv_prog_OTOOL
6857if test -n "$OTOOL"; then
6858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6859$as_echo "$OTOOL" >&6; }
6860else
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862$as_echo "no" >&6; }
6863fi
6864
6865
6866fi
6867if test -z "$ac_cv_prog_OTOOL"; then
6868  ac_ct_OTOOL=$OTOOL
6869  # Extract the first word of "otool", so it can be a program name with args.
6870set dummy otool; ac_word=$2
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872$as_echo_n "checking for $ac_word... " >&6; }
6873if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6874  $as_echo_n "(cached) " >&6
6875else
6876  if test -n "$ac_ct_OTOOL"; then
6877  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6878else
6879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH
6881do
6882  IFS=$as_save_IFS
6883  test -z "$as_dir" && as_dir=.
6884    for ac_exec_ext in '' $ac_executable_extensions; do
6885  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886    ac_cv_prog_ac_ct_OTOOL="otool"
6887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888    break 2
6889  fi
6890done
6891  done
6892IFS=$as_save_IFS
6893
6894fi
6895fi
6896ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6897if test -n "$ac_ct_OTOOL"; then
6898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6899$as_echo "$ac_ct_OTOOL" >&6; }
6900else
6901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902$as_echo "no" >&6; }
6903fi
6904
6905  if test "x$ac_ct_OTOOL" = x; then
6906    OTOOL=":"
6907  else
6908    case $cross_compiling:$ac_tool_warned in
6909yes:)
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912ac_tool_warned=yes ;;
6913esac
6914    OTOOL=$ac_ct_OTOOL
6915  fi
6916else
6917  OTOOL="$ac_cv_prog_OTOOL"
6918fi
6919
6920    if test -n "$ac_tool_prefix"; then
6921  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6922set dummy ${ac_tool_prefix}otool64; ac_word=$2
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924$as_echo_n "checking for $ac_word... " >&6; }
6925if ${ac_cv_prog_OTOOL64+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  if test -n "$OTOOL64"; then
6929  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934  IFS=$as_save_IFS
6935  test -z "$as_dir" && as_dir=.
6936    for ac_exec_ext in '' $ac_executable_extensions; do
6937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940    break 2
6941  fi
6942done
6943  done
6944IFS=$as_save_IFS
6945
6946fi
6947fi
6948OTOOL64=$ac_cv_prog_OTOOL64
6949if test -n "$OTOOL64"; then
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6951$as_echo "$OTOOL64" >&6; }
6952else
6953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954$as_echo "no" >&6; }
6955fi
6956
6957
6958fi
6959if test -z "$ac_cv_prog_OTOOL64"; then
6960  ac_ct_OTOOL64=$OTOOL64
6961  # Extract the first word of "otool64", so it can be a program name with args.
6962set dummy otool64; ac_word=$2
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964$as_echo_n "checking for $ac_word... " >&6; }
6965if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6966  $as_echo_n "(cached) " >&6
6967else
6968  if test -n "$ac_ct_OTOOL64"; then
6969  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974  IFS=$as_save_IFS
6975  test -z "$as_dir" && as_dir=.
6976    for ac_exec_ext in '' $ac_executable_extensions; do
6977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978    ac_cv_prog_ac_ct_OTOOL64="otool64"
6979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980    break 2
6981  fi
6982done
6983  done
6984IFS=$as_save_IFS
6985
6986fi
6987fi
6988ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6989if test -n "$ac_ct_OTOOL64"; then
6990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6991$as_echo "$ac_ct_OTOOL64" >&6; }
6992else
6993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994$as_echo "no" >&6; }
6995fi
6996
6997  if test "x$ac_ct_OTOOL64" = x; then
6998    OTOOL64=":"
6999  else
7000    case $cross_compiling:$ac_tool_warned in
7001yes:)
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7004ac_tool_warned=yes ;;
7005esac
7006    OTOOL64=$ac_ct_OTOOL64
7007  fi
7008else
7009  OTOOL64="$ac_cv_prog_OTOOL64"
7010fi
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7039$as_echo_n "checking for -single_module linker flag... " >&6; }
7040if ${lt_cv_apple_cc_single_mod+:} false; then :
7041  $as_echo_n "(cached) " >&6
7042else
7043  lt_cv_apple_cc_single_mod=no
7044      if test -z "${LT_MULTI_MODULE}"; then
7045	# By default we will add the -single_module flag. You can override
7046	# by either setting the environment variable LT_MULTI_MODULE
7047	# non-empty at configure time, or by adding -multi_module to the
7048	# link flags.
7049	rm -rf libconftest.dylib*
7050	echo "int foo(void){return 1;}" > conftest.c
7051	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7052-dynamiclib -Wl,-single_module conftest.c" >&5
7053	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7054	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7055        _lt_result=$?
7056	# If there is a non-empty error log, and "single_module"
7057	# appears in it, assume the flag caused a linker warning
7058        if test -s conftest.err && $GREP single_module conftest.err; then
7059	  cat conftest.err >&5
7060	# Otherwise, if the output was created with a 0 exit code from
7061	# the compiler, it worked.
7062	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7063	  lt_cv_apple_cc_single_mod=yes
7064	else
7065	  cat conftest.err >&5
7066	fi
7067	rm -rf libconftest.dylib*
7068	rm -f conftest.*
7069      fi
7070fi
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7072$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7073
7074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7075$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7076if ${lt_cv_ld_exported_symbols_list+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  lt_cv_ld_exported_symbols_list=no
7080      save_LDFLAGS=$LDFLAGS
7081      echo "_main" > conftest.sym
7082      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7083      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084/* end confdefs.h.  */
7085
7086int
7087main ()
7088{
7089
7090  ;
7091  return 0;
7092}
7093_ACEOF
7094if ac_fn_c_try_link "$LINENO"; then :
7095  lt_cv_ld_exported_symbols_list=yes
7096else
7097  lt_cv_ld_exported_symbols_list=no
7098fi
7099rm -f core conftest.err conftest.$ac_objext \
7100    conftest$ac_exeext conftest.$ac_ext
7101	LDFLAGS="$save_LDFLAGS"
7102
7103fi
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7105$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7106
7107    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7108$as_echo_n "checking for -force_load linker flag... " >&6; }
7109if ${lt_cv_ld_force_load+:} false; then :
7110  $as_echo_n "(cached) " >&6
7111else
7112  lt_cv_ld_force_load=no
7113      cat > conftest.c << _LT_EOF
7114int forced_loaded() { return 2;}
7115_LT_EOF
7116      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7117      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7118      echo "$AR cru libconftest.a conftest.o" >&5
7119      $AR cru libconftest.a conftest.o 2>&5
7120      echo "$RANLIB libconftest.a" >&5
7121      $RANLIB libconftest.a 2>&5
7122      cat > conftest.c << _LT_EOF
7123int main() { return 0;}
7124_LT_EOF
7125      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7126      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7127      _lt_result=$?
7128      if test -s conftest.err && $GREP force_load conftest.err; then
7129	cat conftest.err >&5
7130      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7131	lt_cv_ld_force_load=yes
7132      else
7133	cat conftest.err >&5
7134      fi
7135        rm -f conftest.err libconftest.a conftest conftest.c
7136        rm -rf conftest.dSYM
7137
7138fi
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7140$as_echo "$lt_cv_ld_force_load" >&6; }
7141    case $host_os in
7142    rhapsody* | darwin1.[012])
7143      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7144    darwin1.*)
7145      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7146    darwin*) # darwin 5.x on
7147      # if running on 10.5 or later, the deployment target defaults
7148      # to the OS version, if on x86, and 10.4, the deployment
7149      # target defaults to 10.4. Don't you love it?
7150      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7151	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7152	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7153	10.[012]*)
7154	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7155	10.*)
7156	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7157      esac
7158    ;;
7159  esac
7160    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7161      _lt_dar_single_mod='$single_module'
7162    fi
7163    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7164      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7165    else
7166      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7167    fi
7168    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7169      _lt_dsymutil='~$DSYMUTIL $lib || :'
7170    else
7171      _lt_dsymutil=
7172    fi
7173    ;;
7174  esac
7175
7176ac_ext=c
7177ac_cpp='$CPP $CPPFLAGS'
7178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7180ac_compiler_gnu=$ac_cv_c_compiler_gnu
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7182$as_echo_n "checking how to run the C preprocessor... " >&6; }
7183# On Suns, sometimes $CPP names a directory.
7184if test -n "$CPP" && test -d "$CPP"; then
7185  CPP=
7186fi
7187if test -z "$CPP"; then
7188  if ${ac_cv_prog_CPP+:} false; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191      # Double quotes because CPP needs to be expanded
7192    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7193    do
7194      ac_preproc_ok=false
7195for ac_c_preproc_warn_flag in '' yes
7196do
7197  # Use a header file that comes with gcc, so configuring glibc
7198  # with a fresh cross-compiler works.
7199  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7200  # <limits.h> exists even on freestanding compilers.
7201  # On the NeXT, cc -E runs the code through the compiler's parser,
7202  # not just through cpp. "Syntax error" is here to catch this case.
7203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204/* end confdefs.h.  */
7205#ifdef __STDC__
7206# include <limits.h>
7207#else
7208# include <assert.h>
7209#endif
7210		     Syntax error
7211_ACEOF
7212if ac_fn_c_try_cpp "$LINENO"; then :
7213
7214else
7215  # Broken: fails on valid input.
7216continue
7217fi
7218rm -f conftest.err conftest.i conftest.$ac_ext
7219
7220  # OK, works on sane cases.  Now check whether nonexistent headers
7221  # can be detected and how.
7222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223/* end confdefs.h.  */
7224#include <ac_nonexistent.h>
7225_ACEOF
7226if ac_fn_c_try_cpp "$LINENO"; then :
7227  # Broken: success on invalid input.
7228continue
7229else
7230  # Passes both tests.
7231ac_preproc_ok=:
7232break
7233fi
7234rm -f conftest.err conftest.i conftest.$ac_ext
7235
7236done
7237# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7238rm -f conftest.i conftest.err conftest.$ac_ext
7239if $ac_preproc_ok; then :
7240  break
7241fi
7242
7243    done
7244    ac_cv_prog_CPP=$CPP
7245
7246fi
7247  CPP=$ac_cv_prog_CPP
7248else
7249  ac_cv_prog_CPP=$CPP
7250fi
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7252$as_echo "$CPP" >&6; }
7253ac_preproc_ok=false
7254for ac_c_preproc_warn_flag in '' yes
7255do
7256  # Use a header file that comes with gcc, so configuring glibc
7257  # with a fresh cross-compiler works.
7258  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7259  # <limits.h> exists even on freestanding compilers.
7260  # On the NeXT, cc -E runs the code through the compiler's parser,
7261  # not just through cpp. "Syntax error" is here to catch this case.
7262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263/* end confdefs.h.  */
7264#ifdef __STDC__
7265# include <limits.h>
7266#else
7267# include <assert.h>
7268#endif
7269		     Syntax error
7270_ACEOF
7271if ac_fn_c_try_cpp "$LINENO"; then :
7272
7273else
7274  # Broken: fails on valid input.
7275continue
7276fi
7277rm -f conftest.err conftest.i conftest.$ac_ext
7278
7279  # OK, works on sane cases.  Now check whether nonexistent headers
7280  # can be detected and how.
7281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282/* end confdefs.h.  */
7283#include <ac_nonexistent.h>
7284_ACEOF
7285if ac_fn_c_try_cpp "$LINENO"; then :
7286  # Broken: success on invalid input.
7287continue
7288else
7289  # Passes both tests.
7290ac_preproc_ok=:
7291break
7292fi
7293rm -f conftest.err conftest.i conftest.$ac_ext
7294
7295done
7296# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7297rm -f conftest.i conftest.err conftest.$ac_ext
7298if $ac_preproc_ok; then :
7299
7300else
7301  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7303as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7304See \`config.log' for more details" "$LINENO" 5; }
7305fi
7306
7307ac_ext=c
7308ac_cpp='$CPP $CPPFLAGS'
7309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311ac_compiler_gnu=$ac_cv_c_compiler_gnu
7312
7313
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7315$as_echo_n "checking for ANSI C header files... " >&6; }
7316if ${ac_cv_header_stdc+:} false; then :
7317  $as_echo_n "(cached) " >&6
7318else
7319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320/* end confdefs.h.  */
7321#include <stdlib.h>
7322#include <stdarg.h>
7323#include <string.h>
7324#include <float.h>
7325
7326int
7327main ()
7328{
7329
7330  ;
7331  return 0;
7332}
7333_ACEOF
7334if ac_fn_c_try_compile "$LINENO"; then :
7335  ac_cv_header_stdc=yes
7336else
7337  ac_cv_header_stdc=no
7338fi
7339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340
7341if test $ac_cv_header_stdc = yes; then
7342  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344/* end confdefs.h.  */
7345#include <string.h>
7346
7347_ACEOF
7348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349  $EGREP "memchr" >/dev/null 2>&1; then :
7350
7351else
7352  ac_cv_header_stdc=no
7353fi
7354rm -f conftest*
7355
7356fi
7357
7358if test $ac_cv_header_stdc = yes; then
7359  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h.  */
7362#include <stdlib.h>
7363
7364_ACEOF
7365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7366  $EGREP "free" >/dev/null 2>&1; then :
7367
7368else
7369  ac_cv_header_stdc=no
7370fi
7371rm -f conftest*
7372
7373fi
7374
7375if test $ac_cv_header_stdc = yes; then
7376  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7377  if test "$cross_compiling" = yes; then :
7378  :
7379else
7380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381/* end confdefs.h.  */
7382#include <ctype.h>
7383#include <stdlib.h>
7384#if ((' ' & 0x0FF) == 0x020)
7385# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7386# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7387#else
7388# define ISLOWER(c) \
7389		   (('a' <= (c) && (c) <= 'i') \
7390		     || ('j' <= (c) && (c) <= 'r') \
7391		     || ('s' <= (c) && (c) <= 'z'))
7392# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7393#endif
7394
7395#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7396int
7397main ()
7398{
7399  int i;
7400  for (i = 0; i < 256; i++)
7401    if (XOR (islower (i), ISLOWER (i))
7402	|| toupper (i) != TOUPPER (i))
7403      return 2;
7404  return 0;
7405}
7406_ACEOF
7407if ac_fn_c_try_run "$LINENO"; then :
7408
7409else
7410  ac_cv_header_stdc=no
7411fi
7412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7413  conftest.$ac_objext conftest.beam conftest.$ac_ext
7414fi
7415
7416fi
7417fi
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7419$as_echo "$ac_cv_header_stdc" >&6; }
7420if test $ac_cv_header_stdc = yes; then
7421
7422$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7423
7424fi
7425
7426# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7427for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7428		  inttypes.h stdint.h unistd.h
7429do :
7430  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7431ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7432"
7433if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7434  cat >>confdefs.h <<_ACEOF
7435#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7436_ACEOF
7437
7438fi
7439
7440done
7441
7442
7443for ac_header in dlfcn.h
7444do :
7445  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7446"
7447if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7448  cat >>confdefs.h <<_ACEOF
7449#define HAVE_DLFCN_H 1
7450_ACEOF
7451
7452fi
7453
7454done
7455
7456
7457
7458
7459
7460# Set options
7461
7462
7463
7464        enable_dlopen=no
7465
7466
7467  enable_win32_dll=no
7468
7469
7470            # Check whether --enable-shared was given.
7471if test "${enable_shared+set}" = set; then :
7472  enableval=$enable_shared; p=${PACKAGE-default}
7473    case $enableval in
7474    yes) enable_shared=yes ;;
7475    no) enable_shared=no ;;
7476    *)
7477      enable_shared=no
7478      # Look at the argument we got.  We use all the common list separators.
7479      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7480      for pkg in $enableval; do
7481	IFS="$lt_save_ifs"
7482	if test "X$pkg" = "X$p"; then
7483	  enable_shared=yes
7484	fi
7485      done
7486      IFS="$lt_save_ifs"
7487      ;;
7488    esac
7489else
7490  enable_shared=yes
7491fi
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501  # Check whether --enable-static was given.
7502if test "${enable_static+set}" = set; then :
7503  enableval=$enable_static; p=${PACKAGE-default}
7504    case $enableval in
7505    yes) enable_static=yes ;;
7506    no) enable_static=no ;;
7507    *)
7508     enable_static=no
7509      # Look at the argument we got.  We use all the common list separators.
7510      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7511      for pkg in $enableval; do
7512	IFS="$lt_save_ifs"
7513	if test "X$pkg" = "X$p"; then
7514	  enable_static=yes
7515	fi
7516      done
7517      IFS="$lt_save_ifs"
7518      ;;
7519    esac
7520else
7521  enable_static=yes
7522fi
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533# Check whether --with-pic was given.
7534if test "${with_pic+set}" = set; then :
7535  withval=$with_pic; lt_p=${PACKAGE-default}
7536    case $withval in
7537    yes|no) pic_mode=$withval ;;
7538    *)
7539      pic_mode=default
7540      # Look at the argument we got.  We use all the common list separators.
7541      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7542      for lt_pkg in $withval; do
7543	IFS="$lt_save_ifs"
7544	if test "X$lt_pkg" = "X$lt_p"; then
7545	  pic_mode=yes
7546	fi
7547      done
7548      IFS="$lt_save_ifs"
7549      ;;
7550    esac
7551else
7552  pic_mode=default
7553fi
7554
7555
7556test -z "$pic_mode" && pic_mode=default
7557
7558
7559
7560
7561
7562
7563
7564  # Check whether --enable-fast-install was given.
7565if test "${enable_fast_install+set}" = set; then :
7566  enableval=$enable_fast_install; p=${PACKAGE-default}
7567    case $enableval in
7568    yes) enable_fast_install=yes ;;
7569    no) enable_fast_install=no ;;
7570    *)
7571      enable_fast_install=no
7572      # Look at the argument we got.  We use all the common list separators.
7573      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7574      for pkg in $enableval; do
7575	IFS="$lt_save_ifs"
7576	if test "X$pkg" = "X$p"; then
7577	  enable_fast_install=yes
7578	fi
7579      done
7580      IFS="$lt_save_ifs"
7581      ;;
7582    esac
7583else
7584  enable_fast_install=yes
7585fi
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597# This can be used to rebuild libtool when needed
7598LIBTOOL_DEPS="$ltmain"
7599
7600# Always use our own libtool.
7601LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632test -z "$LN_S" && LN_S="ln -s"
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647if test -n "${ZSH_VERSION+set}" ; then
7648   setopt NO_GLOB_SUBST
7649fi
7650
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7652$as_echo_n "checking for objdir... " >&6; }
7653if ${lt_cv_objdir+:} false; then :
7654  $as_echo_n "(cached) " >&6
7655else
7656  rm -f .libs 2>/dev/null
7657mkdir .libs 2>/dev/null
7658if test -d .libs; then
7659  lt_cv_objdir=.libs
7660else
7661  # MS-DOS does not allow filenames that begin with a dot.
7662  lt_cv_objdir=_libs
7663fi
7664rmdir .libs 2>/dev/null
7665fi
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7667$as_echo "$lt_cv_objdir" >&6; }
7668objdir=$lt_cv_objdir
7669
7670
7671
7672
7673
7674cat >>confdefs.h <<_ACEOF
7675#define LT_OBJDIR "$lt_cv_objdir/"
7676_ACEOF
7677
7678
7679
7680
7681case $host_os in
7682aix3*)
7683  # AIX sometimes has problems with the GCC collect2 program.  For some
7684  # reason, if we set the COLLECT_NAMES environment variable, the problems
7685  # vanish in a puff of smoke.
7686  if test "X${COLLECT_NAMES+set}" != Xset; then
7687    COLLECT_NAMES=
7688    export COLLECT_NAMES
7689  fi
7690  ;;
7691esac
7692
7693# Global variables:
7694ofile=libtool
7695can_build_shared=yes
7696
7697# All known linkers require a `.a' archive for static linking (except MSVC,
7698# which needs '.lib').
7699libext=a
7700
7701with_gnu_ld="$lt_cv_prog_gnu_ld"
7702
7703old_CC="$CC"
7704old_CFLAGS="$CFLAGS"
7705
7706# Set sane defaults for various variables
7707test -z "$CC" && CC=cc
7708test -z "$LTCC" && LTCC=$CC
7709test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7710test -z "$LD" && LD=ld
7711test -z "$ac_objext" && ac_objext=o
7712
7713for cc_temp in $compiler""; do
7714  case $cc_temp in
7715    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7716    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7717    \-*) ;;
7718    *) break;;
7719  esac
7720done
7721cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7722
7723
7724# Only perform the check for file, if the check method requires it
7725test -z "$MAGIC_CMD" && MAGIC_CMD=file
7726case $deplibs_check_method in
7727file_magic*)
7728  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7729    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7730$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7731if ${lt_cv_path_MAGIC_CMD+:} false; then :
7732  $as_echo_n "(cached) " >&6
7733else
7734  case $MAGIC_CMD in
7735[\\/*] |  ?:[\\/]*)
7736  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7737  ;;
7738*)
7739  lt_save_MAGIC_CMD="$MAGIC_CMD"
7740  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7741  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7742  for ac_dir in $ac_dummy; do
7743    IFS="$lt_save_ifs"
7744    test -z "$ac_dir" && ac_dir=.
7745    if test -f $ac_dir/${ac_tool_prefix}file; then
7746      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7747      if test -n "$file_magic_test_file"; then
7748	case $deplibs_check_method in
7749	"file_magic "*)
7750	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7751	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7752	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7753	    $EGREP "$file_magic_regex" > /dev/null; then
7754	    :
7755	  else
7756	    cat <<_LT_EOF 1>&2
7757
7758*** Warning: the command libtool uses to detect shared libraries,
7759*** $file_magic_cmd, produces output that libtool cannot recognize.
7760*** The result is that libtool may fail to recognize shared libraries
7761*** as such.  This will affect the creation of libtool libraries that
7762*** depend on shared libraries, but programs linked with such libtool
7763*** libraries will work regardless of this problem.  Nevertheless, you
7764*** may want to report the problem to your system manager and/or to
7765*** bug-libtool@gnu.org
7766
7767_LT_EOF
7768	  fi ;;
7769	esac
7770      fi
7771      break
7772    fi
7773  done
7774  IFS="$lt_save_ifs"
7775  MAGIC_CMD="$lt_save_MAGIC_CMD"
7776  ;;
7777esac
7778fi
7779
7780MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7781if test -n "$MAGIC_CMD"; then
7782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7783$as_echo "$MAGIC_CMD" >&6; }
7784else
7785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786$as_echo "no" >&6; }
7787fi
7788
7789
7790
7791
7792
7793if test -z "$lt_cv_path_MAGIC_CMD"; then
7794  if test -n "$ac_tool_prefix"; then
7795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7796$as_echo_n "checking for file... " >&6; }
7797if ${lt_cv_path_MAGIC_CMD+:} false; then :
7798  $as_echo_n "(cached) " >&6
7799else
7800  case $MAGIC_CMD in
7801[\\/*] |  ?:[\\/]*)
7802  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7803  ;;
7804*)
7805  lt_save_MAGIC_CMD="$MAGIC_CMD"
7806  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7807  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7808  for ac_dir in $ac_dummy; do
7809    IFS="$lt_save_ifs"
7810    test -z "$ac_dir" && ac_dir=.
7811    if test -f $ac_dir/file; then
7812      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7813      if test -n "$file_magic_test_file"; then
7814	case $deplibs_check_method in
7815	"file_magic "*)
7816	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7817	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7818	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7819	    $EGREP "$file_magic_regex" > /dev/null; then
7820	    :
7821	  else
7822	    cat <<_LT_EOF 1>&2
7823
7824*** Warning: the command libtool uses to detect shared libraries,
7825*** $file_magic_cmd, produces output that libtool cannot recognize.
7826*** The result is that libtool may fail to recognize shared libraries
7827*** as such.  This will affect the creation of libtool libraries that
7828*** depend on shared libraries, but programs linked with such libtool
7829*** libraries will work regardless of this problem.  Nevertheless, you
7830*** may want to report the problem to your system manager and/or to
7831*** bug-libtool@gnu.org
7832
7833_LT_EOF
7834	  fi ;;
7835	esac
7836      fi
7837      break
7838    fi
7839  done
7840  IFS="$lt_save_ifs"
7841  MAGIC_CMD="$lt_save_MAGIC_CMD"
7842  ;;
7843esac
7844fi
7845
7846MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7847if test -n "$MAGIC_CMD"; then
7848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7849$as_echo "$MAGIC_CMD" >&6; }
7850else
7851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852$as_echo "no" >&6; }
7853fi
7854
7855
7856  else
7857    MAGIC_CMD=:
7858  fi
7859fi
7860
7861  fi
7862  ;;
7863esac
7864
7865# Use C for the default configuration in the libtool script
7866
7867lt_save_CC="$CC"
7868ac_ext=c
7869ac_cpp='$CPP $CPPFLAGS'
7870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872ac_compiler_gnu=$ac_cv_c_compiler_gnu
7873
7874
7875# Source file extension for C test sources.
7876ac_ext=c
7877
7878# Object file extension for compiled C test sources.
7879objext=o
7880objext=$objext
7881
7882# Code to be used in simple compile tests
7883lt_simple_compile_test_code="int some_variable = 0;"
7884
7885# Code to be used in simple link tests
7886lt_simple_link_test_code='int main(){return(0);}'
7887
7888
7889
7890
7891
7892
7893
7894# If no C compiler was specified, use CC.
7895LTCC=${LTCC-"$CC"}
7896
7897# If no C compiler flags were specified, use CFLAGS.
7898LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7899
7900# Allow CC to be a program name with arguments.
7901compiler=$CC
7902
7903# Save the default compiler, since it gets overwritten when the other
7904# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7905compiler_DEFAULT=$CC
7906
7907# save warnings/boilerplate of simple test code
7908ac_outfile=conftest.$ac_objext
7909echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7911_lt_compiler_boilerplate=`cat conftest.err`
7912$RM conftest*
7913
7914ac_outfile=conftest.$ac_objext
7915echo "$lt_simple_link_test_code" >conftest.$ac_ext
7916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7917_lt_linker_boilerplate=`cat conftest.err`
7918$RM -r conftest*
7919
7920
7921if test -n "$compiler"; then
7922
7923lt_prog_compiler_no_builtin_flag=
7924
7925if test "$GCC" = yes; then
7926  case $cc_basename in
7927  nvcc*)
7928    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7929  *)
7930    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7931  esac
7932
7933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7934$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7935if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938  lt_cv_prog_compiler_rtti_exceptions=no
7939   ac_outfile=conftest.$ac_objext
7940   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7941   lt_compiler_flag="-fno-rtti -fno-exceptions"
7942   # Insert the option either (1) after the last *FLAGS variable, or
7943   # (2) before a word containing "conftest.", or (3) at the end.
7944   # Note that $ac_compile itself does not contain backslashes and begins
7945   # with a dollar sign (not a hyphen), so the echo should work correctly.
7946   # The option is referenced via a variable to avoid confusing sed.
7947   lt_compile=`echo "$ac_compile" | $SED \
7948   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7949   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7950   -e 's:$: $lt_compiler_flag:'`
7951   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7952   (eval "$lt_compile" 2>conftest.err)
7953   ac_status=$?
7954   cat conftest.err >&5
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   if (exit $ac_status) && test -s "$ac_outfile"; then
7957     # The compiler can only warn and ignore the option if not recognized
7958     # So say no if there are warnings other than the usual output.
7959     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7960     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7961     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7962       lt_cv_prog_compiler_rtti_exceptions=yes
7963     fi
7964   fi
7965   $RM conftest*
7966
7967fi
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7969$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7970
7971if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7972    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7973else
7974    :
7975fi
7976
7977fi
7978
7979
7980
7981
7982
7983
7984  lt_prog_compiler_wl=
7985lt_prog_compiler_pic=
7986lt_prog_compiler_static=
7987
7988
7989  if test "$GCC" = yes; then
7990    lt_prog_compiler_wl='-Wl,'
7991    lt_prog_compiler_static='-static'
7992
7993    case $host_os in
7994      aix*)
7995      # All AIX code is PIC.
7996      if test "$host_cpu" = ia64; then
7997	# AIX 5 now supports IA64 processor
7998	lt_prog_compiler_static='-Bstatic'
7999      fi
8000      ;;
8001
8002    amigaos*)
8003      case $host_cpu in
8004      powerpc)
8005            # see comment about AmigaOS4 .so support
8006            lt_prog_compiler_pic='-fPIC'
8007        ;;
8008      m68k)
8009            # FIXME: we need at least 68020 code to build shared libraries, but
8010            # adding the `-m68020' flag to GCC prevents building anything better,
8011            # like `-m68040'.
8012            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8013        ;;
8014      esac
8015      ;;
8016
8017    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8018      # PIC is the default for these OSes.
8019      ;;
8020
8021    mingw* | cygwin* | pw32* | os2* | cegcc*)
8022      # This hack is so that the source file can tell whether it is being
8023      # built for inclusion in a dll (and should export symbols for example).
8024      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8025      # (--disable-auto-import) libraries
8026      lt_prog_compiler_pic='-DDLL_EXPORT'
8027      ;;
8028
8029    darwin* | rhapsody*)
8030      # PIC is the default on this platform
8031      # Common symbols not allowed in MH_DYLIB files
8032      lt_prog_compiler_pic='-fno-common'
8033      ;;
8034
8035    haiku*)
8036      # PIC is the default for Haiku.
8037      # The "-static" flag exists, but is broken.
8038      lt_prog_compiler_static=
8039      ;;
8040
8041    hpux*)
8042      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8043      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8044      # sets the default TLS model and affects inlining.
8045      case $host_cpu in
8046      hppa*64*)
8047	# +Z the default
8048	;;
8049      *)
8050	lt_prog_compiler_pic='-fPIC'
8051	;;
8052      esac
8053      ;;
8054
8055    interix[3-9]*)
8056      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8057      # Instead, we relocate shared libraries at runtime.
8058      ;;
8059
8060    msdosdjgpp*)
8061      # Just because we use GCC doesn't mean we suddenly get shared libraries
8062      # on systems that don't support them.
8063      lt_prog_compiler_can_build_shared=no
8064      enable_shared=no
8065      ;;
8066
8067    *nto* | *qnx*)
8068      # QNX uses GNU C++, but need to define -shared option too, otherwise
8069      # it will coredump.
8070      lt_prog_compiler_pic='-fPIC -shared'
8071      ;;
8072
8073    sysv4*MP*)
8074      if test -d /usr/nec; then
8075	lt_prog_compiler_pic=-Kconform_pic
8076      fi
8077      ;;
8078
8079    *)
8080      lt_prog_compiler_pic='-fPIC'
8081      ;;
8082    esac
8083
8084    case $cc_basename in
8085    nvcc*) # Cuda Compiler Driver 2.2
8086      lt_prog_compiler_wl='-Xlinker '
8087      if test -n "$lt_prog_compiler_pic"; then
8088        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8089      fi
8090      ;;
8091    esac
8092  else
8093    # PORTME Check for flag to pass linker flags through the system compiler.
8094    case $host_os in
8095    aix*)
8096      lt_prog_compiler_wl='-Wl,'
8097      if test "$host_cpu" = ia64; then
8098	# AIX 5 now supports IA64 processor
8099	lt_prog_compiler_static='-Bstatic'
8100      else
8101	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8102      fi
8103      ;;
8104
8105    mingw* | cygwin* | pw32* | os2* | cegcc*)
8106      # This hack is so that the source file can tell whether it is being
8107      # built for inclusion in a dll (and should export symbols for example).
8108      lt_prog_compiler_pic='-DDLL_EXPORT'
8109      ;;
8110
8111    hpux9* | hpux10* | hpux11*)
8112      lt_prog_compiler_wl='-Wl,'
8113      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8114      # not for PA HP-UX.
8115      case $host_cpu in
8116      hppa*64*|ia64*)
8117	# +Z the default
8118	;;
8119      *)
8120	lt_prog_compiler_pic='+Z'
8121	;;
8122      esac
8123      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8124      lt_prog_compiler_static='${wl}-a ${wl}archive'
8125      ;;
8126
8127    irix5* | irix6* | nonstopux*)
8128      lt_prog_compiler_wl='-Wl,'
8129      # PIC (with -KPIC) is the default.
8130      lt_prog_compiler_static='-non_shared'
8131      ;;
8132
8133    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8134      case $cc_basename in
8135      # old Intel for x86_64 which still supported -KPIC.
8136      ecc*)
8137	lt_prog_compiler_wl='-Wl,'
8138	lt_prog_compiler_pic='-KPIC'
8139	lt_prog_compiler_static='-static'
8140        ;;
8141      # icc used to be incompatible with GCC.
8142      # ICC 10 doesn't accept -KPIC any more.
8143      icc* | ifort*)
8144	lt_prog_compiler_wl='-Wl,'
8145	lt_prog_compiler_pic='-fPIC'
8146	lt_prog_compiler_static='-static'
8147        ;;
8148      # Lahey Fortran 8.1.
8149      lf95*)
8150	lt_prog_compiler_wl='-Wl,'
8151	lt_prog_compiler_pic='--shared'
8152	lt_prog_compiler_static='--static'
8153	;;
8154      nagfor*)
8155	# NAG Fortran compiler
8156	lt_prog_compiler_wl='-Wl,-Wl,,'
8157	lt_prog_compiler_pic='-PIC'
8158	lt_prog_compiler_static='-Bstatic'
8159	;;
8160      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8161        # Portland Group compilers (*not* the Pentium gcc compiler,
8162	# which looks to be a dead project)
8163	lt_prog_compiler_wl='-Wl,'
8164	lt_prog_compiler_pic='-fpic'
8165	lt_prog_compiler_static='-Bstatic'
8166        ;;
8167      ccc*)
8168        lt_prog_compiler_wl='-Wl,'
8169        # All Alpha code is PIC.
8170        lt_prog_compiler_static='-non_shared'
8171        ;;
8172      xl* | bgxl* | bgf* | mpixl*)
8173	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8174	lt_prog_compiler_wl='-Wl,'
8175	lt_prog_compiler_pic='-qpic'
8176	lt_prog_compiler_static='-qstaticlink'
8177	;;
8178      *)
8179	case `$CC -V 2>&1 | sed 5q` in
8180	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8181	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8182	  lt_prog_compiler_pic='-KPIC'
8183	  lt_prog_compiler_static='-Bstatic'
8184	  lt_prog_compiler_wl=''
8185	  ;;
8186	*Sun\ F* | *Sun*Fortran*)
8187	  lt_prog_compiler_pic='-KPIC'
8188	  lt_prog_compiler_static='-Bstatic'
8189	  lt_prog_compiler_wl='-Qoption ld '
8190	  ;;
8191	*Sun\ C*)
8192	  # Sun C 5.9
8193	  lt_prog_compiler_pic='-KPIC'
8194	  lt_prog_compiler_static='-Bstatic'
8195	  lt_prog_compiler_wl='-Wl,'
8196	  ;;
8197        *Intel*\ [CF]*Compiler*)
8198	  lt_prog_compiler_wl='-Wl,'
8199	  lt_prog_compiler_pic='-fPIC'
8200	  lt_prog_compiler_static='-static'
8201	  ;;
8202	*Portland\ Group*)
8203	  lt_prog_compiler_wl='-Wl,'
8204	  lt_prog_compiler_pic='-fpic'
8205	  lt_prog_compiler_static='-Bstatic'
8206	  ;;
8207	esac
8208	;;
8209      esac
8210      ;;
8211
8212    newsos6)
8213      lt_prog_compiler_pic='-KPIC'
8214      lt_prog_compiler_static='-Bstatic'
8215      ;;
8216
8217    *nto* | *qnx*)
8218      # QNX uses GNU C++, but need to define -shared option too, otherwise
8219      # it will coredump.
8220      lt_prog_compiler_pic='-fPIC -shared'
8221      ;;
8222
8223    osf3* | osf4* | osf5*)
8224      lt_prog_compiler_wl='-Wl,'
8225      # All OSF/1 code is PIC.
8226      lt_prog_compiler_static='-non_shared'
8227      ;;
8228
8229    rdos*)
8230      lt_prog_compiler_static='-non_shared'
8231      ;;
8232
8233    solaris*)
8234      lt_prog_compiler_pic='-KPIC'
8235      lt_prog_compiler_static='-Bstatic'
8236      case $cc_basename in
8237      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8238	lt_prog_compiler_wl='-Qoption ld ';;
8239      *)
8240	lt_prog_compiler_wl='-Wl,';;
8241      esac
8242      ;;
8243
8244    sunos4*)
8245      lt_prog_compiler_wl='-Qoption ld '
8246      lt_prog_compiler_pic='-PIC'
8247      lt_prog_compiler_static='-Bstatic'
8248      ;;
8249
8250    sysv4 | sysv4.2uw2* | sysv4.3*)
8251      lt_prog_compiler_wl='-Wl,'
8252      lt_prog_compiler_pic='-KPIC'
8253      lt_prog_compiler_static='-Bstatic'
8254      ;;
8255
8256    sysv4*MP*)
8257      if test -d /usr/nec ;then
8258	lt_prog_compiler_pic='-Kconform_pic'
8259	lt_prog_compiler_static='-Bstatic'
8260      fi
8261      ;;
8262
8263    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8264      lt_prog_compiler_wl='-Wl,'
8265      lt_prog_compiler_pic='-KPIC'
8266      lt_prog_compiler_static='-Bstatic'
8267      ;;
8268
8269    unicos*)
8270      lt_prog_compiler_wl='-Wl,'
8271      lt_prog_compiler_can_build_shared=no
8272      ;;
8273
8274    uts4*)
8275      lt_prog_compiler_pic='-pic'
8276      lt_prog_compiler_static='-Bstatic'
8277      ;;
8278
8279    *)
8280      lt_prog_compiler_can_build_shared=no
8281      ;;
8282    esac
8283  fi
8284
8285case $host_os in
8286  # For platforms which do not support PIC, -DPIC is meaningless:
8287  *djgpp*)
8288    lt_prog_compiler_pic=
8289    ;;
8290  *)
8291    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8292    ;;
8293esac
8294
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8296$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8297if ${lt_cv_prog_compiler_pic+:} false; then :
8298  $as_echo_n "(cached) " >&6
8299else
8300  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8301fi
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8303$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8304lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8305
8306#
8307# Check to make sure the PIC flag actually works.
8308#
8309if test -n "$lt_prog_compiler_pic"; then
8310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8311$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8312if ${lt_cv_prog_compiler_pic_works+:} false; then :
8313  $as_echo_n "(cached) " >&6
8314else
8315  lt_cv_prog_compiler_pic_works=no
8316   ac_outfile=conftest.$ac_objext
8317   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8319   # Insert the option either (1) after the last *FLAGS variable, or
8320   # (2) before a word containing "conftest.", or (3) at the end.
8321   # Note that $ac_compile itself does not contain backslashes and begins
8322   # with a dollar sign (not a hyphen), so the echo should work correctly.
8323   # The option is referenced via a variable to avoid confusing sed.
8324   lt_compile=`echo "$ac_compile" | $SED \
8325   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327   -e 's:$: $lt_compiler_flag:'`
8328   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8329   (eval "$lt_compile" 2>conftest.err)
8330   ac_status=$?
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   if (exit $ac_status) && test -s "$ac_outfile"; then
8334     # The compiler can only warn and ignore the option if not recognized
8335     # So say no if there are warnings other than the usual output.
8336     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8337     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8338     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8339       lt_cv_prog_compiler_pic_works=yes
8340     fi
8341   fi
8342   $RM conftest*
8343
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8346$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8347
8348if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8349    case $lt_prog_compiler_pic in
8350     "" | " "*) ;;
8351     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8352     esac
8353else
8354    lt_prog_compiler_pic=
8355     lt_prog_compiler_can_build_shared=no
8356fi
8357
8358fi
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370#
8371# Check to make sure the static flag actually works.
8372#
8373wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8375$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8376if ${lt_cv_prog_compiler_static_works+:} false; then :
8377  $as_echo_n "(cached) " >&6
8378else
8379  lt_cv_prog_compiler_static_works=no
8380   save_LDFLAGS="$LDFLAGS"
8381   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8382   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8383   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8384     # The linker can only warn and ignore the option if not recognized
8385     # So say no if there are warnings
8386     if test -s conftest.err; then
8387       # Append any errors to the config.log.
8388       cat conftest.err 1>&5
8389       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8390       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8391       if diff conftest.exp conftest.er2 >/dev/null; then
8392         lt_cv_prog_compiler_static_works=yes
8393       fi
8394     else
8395       lt_cv_prog_compiler_static_works=yes
8396     fi
8397   fi
8398   $RM -r conftest*
8399   LDFLAGS="$save_LDFLAGS"
8400
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8403$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8404
8405if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8406    :
8407else
8408    lt_prog_compiler_static=
8409fi
8410
8411
8412
8413
8414
8415
8416
8417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8418$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8419if ${lt_cv_prog_compiler_c_o+:} false; then :
8420  $as_echo_n "(cached) " >&6
8421else
8422  lt_cv_prog_compiler_c_o=no
8423   $RM -r conftest 2>/dev/null
8424   mkdir conftest
8425   cd conftest
8426   mkdir out
8427   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8428
8429   lt_compiler_flag="-o out/conftest2.$ac_objext"
8430   # Insert the option either (1) after the last *FLAGS variable, or
8431   # (2) before a word containing "conftest.", or (3) at the end.
8432   # Note that $ac_compile itself does not contain backslashes and begins
8433   # with a dollar sign (not a hyphen), so the echo should work correctly.
8434   lt_compile=`echo "$ac_compile" | $SED \
8435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8437   -e 's:$: $lt_compiler_flag:'`
8438   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8439   (eval "$lt_compile" 2>out/conftest.err)
8440   ac_status=$?
8441   cat out/conftest.err >&5
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8444   then
8445     # The compiler can only warn and ignore the option if not recognized
8446     # So say no if there are warnings
8447     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8448     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8449     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8450       lt_cv_prog_compiler_c_o=yes
8451     fi
8452   fi
8453   chmod u+w . 2>&5
8454   $RM conftest*
8455   # SGI C++ compiler will create directory out/ii_files/ for
8456   # template instantiation
8457   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8458   $RM out/* && rmdir out
8459   cd ..
8460   $RM -r conftest
8461   $RM conftest*
8462
8463fi
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8465$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8466
8467
8468
8469
8470
8471
8472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8473$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8474if ${lt_cv_prog_compiler_c_o+:} false; then :
8475  $as_echo_n "(cached) " >&6
8476else
8477  lt_cv_prog_compiler_c_o=no
8478   $RM -r conftest 2>/dev/null
8479   mkdir conftest
8480   cd conftest
8481   mkdir out
8482   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8483
8484   lt_compiler_flag="-o out/conftest2.$ac_objext"
8485   # Insert the option either (1) after the last *FLAGS variable, or
8486   # (2) before a word containing "conftest.", or (3) at the end.
8487   # Note that $ac_compile itself does not contain backslashes and begins
8488   # with a dollar sign (not a hyphen), so the echo should work correctly.
8489   lt_compile=`echo "$ac_compile" | $SED \
8490   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8492   -e 's:$: $lt_compiler_flag:'`
8493   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8494   (eval "$lt_compile" 2>out/conftest.err)
8495   ac_status=$?
8496   cat out/conftest.err >&5
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8499   then
8500     # The compiler can only warn and ignore the option if not recognized
8501     # So say no if there are warnings
8502     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8503     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8504     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8505       lt_cv_prog_compiler_c_o=yes
8506     fi
8507   fi
8508   chmod u+w . 2>&5
8509   $RM conftest*
8510   # SGI C++ compiler will create directory out/ii_files/ for
8511   # template instantiation
8512   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8513   $RM out/* && rmdir out
8514   cd ..
8515   $RM -r conftest
8516   $RM conftest*
8517
8518fi
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8520$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8521
8522
8523
8524
8525hard_links="nottested"
8526if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8527  # do not overwrite the value of need_locks provided by the user
8528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8529$as_echo_n "checking if we can lock with hard links... " >&6; }
8530  hard_links=yes
8531  $RM conftest*
8532  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8533  touch conftest.a
8534  ln conftest.a conftest.b 2>&5 || hard_links=no
8535  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8537$as_echo "$hard_links" >&6; }
8538  if test "$hard_links" = no; then
8539    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8540$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8541    need_locks=warn
8542  fi
8543else
8544  need_locks=no
8545fi
8546
8547
8548
8549
8550
8551
8552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8553$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8554
8555  runpath_var=
8556  allow_undefined_flag=
8557  always_export_symbols=no
8558  archive_cmds=
8559  archive_expsym_cmds=
8560  compiler_needs_object=no
8561  enable_shared_with_static_runtimes=no
8562  export_dynamic_flag_spec=
8563  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8564  hardcode_automatic=no
8565  hardcode_direct=no
8566  hardcode_direct_absolute=no
8567  hardcode_libdir_flag_spec=
8568  hardcode_libdir_separator=
8569  hardcode_minus_L=no
8570  hardcode_shlibpath_var=unsupported
8571  inherit_rpath=no
8572  link_all_deplibs=unknown
8573  module_cmds=
8574  module_expsym_cmds=
8575  old_archive_from_new_cmds=
8576  old_archive_from_expsyms_cmds=
8577  thread_safe_flag_spec=
8578  whole_archive_flag_spec=
8579  # include_expsyms should be a list of space-separated symbols to be *always*
8580  # included in the symbol list
8581  include_expsyms=
8582  # exclude_expsyms can be an extended regexp of symbols to exclude
8583  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8584  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8585  # as well as any symbol that contains `d'.
8586  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8587  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8588  # platforms (ab)use it in PIC code, but their linkers get confused if
8589  # the symbol is explicitly referenced.  Since portable code cannot
8590  # rely on this symbol name, it's probably fine to never include it in
8591  # preloaded symbol tables.
8592  # Exclude shared library initialization/finalization symbols.
8593  extract_expsyms_cmds=
8594
8595  case $host_os in
8596  cygwin* | mingw* | pw32* | cegcc*)
8597    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8598    # When not using gcc, we currently assume that we are using
8599    # Microsoft Visual C++.
8600    if test "$GCC" != yes; then
8601      with_gnu_ld=no
8602    fi
8603    ;;
8604  interix*)
8605    # we just hope/assume this is gcc and not c89 (= MSVC++)
8606    with_gnu_ld=yes
8607    ;;
8608  openbsd*)
8609    with_gnu_ld=no
8610    ;;
8611  linux* | k*bsd*-gnu | gnu*)
8612    link_all_deplibs=no
8613    ;;
8614  esac
8615
8616  ld_shlibs=yes
8617
8618  # On some targets, GNU ld is compatible enough with the native linker
8619  # that we're better off using the native interface for both.
8620  lt_use_gnu_ld_interface=no
8621  if test "$with_gnu_ld" = yes; then
8622    case $host_os in
8623      aix*)
8624	# The AIX port of GNU ld has always aspired to compatibility
8625	# with the native linker.  However, as the warning in the GNU ld
8626	# block says, versions before 2.19.5* couldn't really create working
8627	# shared libraries, regardless of the interface used.
8628	case `$LD -v 2>&1` in
8629	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8630	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8631	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8632	  *)
8633	    lt_use_gnu_ld_interface=yes
8634	    ;;
8635	esac
8636	;;
8637      *)
8638	lt_use_gnu_ld_interface=yes
8639	;;
8640    esac
8641  fi
8642
8643  if test "$lt_use_gnu_ld_interface" = yes; then
8644    # If archive_cmds runs LD, not CC, wlarc should be empty
8645    wlarc='${wl}'
8646
8647    # Set some defaults for GNU ld with shared library support. These
8648    # are reset later if shared libraries are not supported. Putting them
8649    # here allows them to be overridden if necessary.
8650    runpath_var=LD_RUN_PATH
8651    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8652    export_dynamic_flag_spec='${wl}--export-dynamic'
8653    # ancient GNU ld didn't support --whole-archive et. al.
8654    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8655      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8656    else
8657      whole_archive_flag_spec=
8658    fi
8659    supports_anon_versioning=no
8660    case `$LD -v 2>&1` in
8661      *GNU\ gold*) supports_anon_versioning=yes ;;
8662      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8663      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8664      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8665      *\ 2.11.*) ;; # other 2.11 versions
8666      *) supports_anon_versioning=yes ;;
8667    esac
8668
8669    # See if GNU ld supports shared libraries.
8670    case $host_os in
8671    aix[3-9]*)
8672      # On AIX/PPC, the GNU linker is very broken
8673      if test "$host_cpu" != ia64; then
8674	ld_shlibs=no
8675	cat <<_LT_EOF 1>&2
8676
8677*** Warning: the GNU linker, at least up to release 2.19, is reported
8678*** to be unable to reliably create shared libraries on AIX.
8679*** Therefore, libtool is disabling shared libraries support.  If you
8680*** really care for shared libraries, you may want to install binutils
8681*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8682*** You will then need to restart the configuration process.
8683
8684_LT_EOF
8685      fi
8686      ;;
8687
8688    amigaos*)
8689      case $host_cpu in
8690      powerpc)
8691            # see comment about AmigaOS4 .so support
8692            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693            archive_expsym_cmds=''
8694        ;;
8695      m68k)
8696            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)'
8697            hardcode_libdir_flag_spec='-L$libdir'
8698            hardcode_minus_L=yes
8699        ;;
8700      esac
8701      ;;
8702
8703    beos*)
8704      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8705	allow_undefined_flag=unsupported
8706	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8707	# support --undefined.  This deserves some investigation.  FIXME
8708	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709      else
8710	ld_shlibs=no
8711      fi
8712      ;;
8713
8714    cygwin* | mingw* | pw32* | cegcc*)
8715      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8716      # as there is no search path for DLLs.
8717      hardcode_libdir_flag_spec='-L$libdir'
8718      export_dynamic_flag_spec='${wl}--export-all-symbols'
8719      allow_undefined_flag=unsupported
8720      always_export_symbols=no
8721      enable_shared_with_static_runtimes=yes
8722      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'
8723      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8724
8725      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8726        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8727	# If the export-symbols file already is a .def file (1st line
8728	# is EXPORTS), use it as is; otherwise, prepend...
8729	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8730	  cp $export_symbols $output_objdir/$soname.def;
8731	else
8732	  echo EXPORTS > $output_objdir/$soname.def;
8733	  cat $export_symbols >> $output_objdir/$soname.def;
8734	fi~
8735	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8736      else
8737	ld_shlibs=no
8738      fi
8739      ;;
8740
8741    haiku*)
8742      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743      link_all_deplibs=yes
8744      ;;
8745
8746    interix[3-9]*)
8747      hardcode_direct=no
8748      hardcode_shlibpath_var=no
8749      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8750      export_dynamic_flag_spec='${wl}-E'
8751      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8752      # Instead, shared libraries are loaded at an image base (0x10000000 by
8753      # default) and relocated if they conflict, which is a slow very memory
8754      # consuming and fragmenting process.  To avoid this, we pick a random,
8755      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8756      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8757      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8758      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'
8759      ;;
8760
8761    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8762      tmp_diet=no
8763      if test "$host_os" = linux-dietlibc; then
8764	case $cc_basename in
8765	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8766	esac
8767      fi
8768      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8769	 && test "$tmp_diet" = no
8770      then
8771	tmp_addflag=' $pic_flag'
8772	tmp_sharedflag='-shared'
8773	case $cc_basename,$host_cpu in
8774        pgcc*)				# Portland Group C compiler
8775	  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'
8776	  tmp_addflag=' $pic_flag'
8777	  ;;
8778	pgf77* | pgf90* | pgf95* | pgfortran*)
8779					# Portland Group f77 and f90 compilers
8780	  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'
8781	  tmp_addflag=' $pic_flag -Mnomain' ;;
8782	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8783	  tmp_addflag=' -i_dynamic' ;;
8784	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8785	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8786	ifc* | ifort*)			# Intel Fortran compiler
8787	  tmp_addflag=' -nofor_main' ;;
8788	lf95*)				# Lahey Fortran 8.1
8789	  whole_archive_flag_spec=
8790	  tmp_sharedflag='--shared' ;;
8791	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8792	  tmp_sharedflag='-qmkshrobj'
8793	  tmp_addflag= ;;
8794	nvcc*)	# Cuda Compiler Driver 2.2
8795	  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'
8796	  compiler_needs_object=yes
8797	  ;;
8798	esac
8799	case `$CC -V 2>&1 | sed 5q` in
8800	*Sun\ C*)			# Sun C 5.9
8801	  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'
8802	  compiler_needs_object=yes
8803	  tmp_sharedflag='-G' ;;
8804	*Sun\ F*)			# Sun Fortran 8.3
8805	  tmp_sharedflag='-G' ;;
8806	esac
8807	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808
8809        if test "x$supports_anon_versioning" = xyes; then
8810          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8811	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8812	    echo "local: *; };" >> $output_objdir/$libname.ver~
8813	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8814        fi
8815
8816	case $cc_basename in
8817	xlf* | bgf* | bgxlf* | mpixlf*)
8818	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8819	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8820	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8822	  if test "x$supports_anon_versioning" = xyes; then
8823	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8824	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8825	      echo "local: *; };" >> $output_objdir/$libname.ver~
8826	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8827	  fi
8828	  ;;
8829	esac
8830      else
8831        ld_shlibs=no
8832      fi
8833      ;;
8834
8835    netbsd* | netbsdelf*-gnu)
8836      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8837	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8838	wlarc=
8839      else
8840	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8842      fi
8843      ;;
8844
8845    solaris*)
8846      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8847	ld_shlibs=no
8848	cat <<_LT_EOF 1>&2
8849
8850*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8851*** create shared libraries on Solaris systems.  Therefore, libtool
8852*** is disabling shared libraries support.  We urge you to upgrade GNU
8853*** binutils to release 2.9.1 or newer.  Another option is to modify
8854*** your PATH or compiler configuration so that the native linker is
8855*** used, and then restart.
8856
8857_LT_EOF
8858      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8859	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8861      else
8862	ld_shlibs=no
8863      fi
8864      ;;
8865
8866    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8867      case `$LD -v 2>&1` in
8868        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8869	ld_shlibs=no
8870	cat <<_LT_EOF 1>&2
8871
8872*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8873*** reliably create shared libraries on SCO systems.  Therefore, libtool
8874*** is disabling shared libraries support.  We urge you to upgrade GNU
8875*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8876*** your PATH or compiler configuration so that the native linker is
8877*** used, and then restart.
8878
8879_LT_EOF
8880	;;
8881	*)
8882	  # For security reasons, it is highly recommended that you always
8883	  # use absolute paths for naming shared libraries, and exclude the
8884	  # DT_RUNPATH tag from executables and libraries.  But doing so
8885	  # requires that you compile everything twice, which is a pain.
8886	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8887	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8890	  else
8891	    ld_shlibs=no
8892	  fi
8893	;;
8894      esac
8895      ;;
8896
8897    sunos4*)
8898      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8899      wlarc=
8900      hardcode_direct=yes
8901      hardcode_shlibpath_var=no
8902      ;;
8903
8904    *)
8905      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8906	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8908      else
8909	ld_shlibs=no
8910      fi
8911      ;;
8912    esac
8913
8914    if test "$ld_shlibs" = no; then
8915      runpath_var=
8916      hardcode_libdir_flag_spec=
8917      export_dynamic_flag_spec=
8918      whole_archive_flag_spec=
8919    fi
8920  else
8921    # PORTME fill in a description of your system's linker (not GNU ld)
8922    case $host_os in
8923    aix3*)
8924      allow_undefined_flag=unsupported
8925      always_export_symbols=yes
8926      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'
8927      # Note: this linker hardcodes the directories in LIBPATH if there
8928      # are no directories specified by -L.
8929      hardcode_minus_L=yes
8930      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8931	# Neither direct hardcoding nor static linking is supported with a
8932	# broken collect2.
8933	hardcode_direct=unsupported
8934      fi
8935      ;;
8936
8937    aix[4-9]*)
8938      if test "$host_cpu" = ia64; then
8939	# On IA64, the linker does run time linking by default, so we don't
8940	# have to do anything special.
8941	aix_use_runtimelinking=no
8942	exp_sym_flag='-Bexport'
8943	no_entry_flag=""
8944      else
8945	# If we're using GNU nm, then we don't want the "-C" option.
8946	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8947	# Also, AIX nm treats weak defined symbols like other global
8948	# defined symbols, whereas GNU nm marks them as "W".
8949	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8950	  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'
8951	else
8952	  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'
8953	fi
8954	aix_use_runtimelinking=no
8955
8956	# Test if we are trying to use run time linking or normal
8957	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8958	# need to do runtime linking.
8959	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8960	  for ld_flag in $LDFLAGS; do
8961	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8962	    aix_use_runtimelinking=yes
8963	    break
8964	  fi
8965	  done
8966	  ;;
8967	esac
8968
8969	exp_sym_flag='-bexport'
8970	no_entry_flag='-bnoentry'
8971      fi
8972
8973      # When large executables or shared objects are built, AIX ld can
8974      # have problems creating the table of contents.  If linking a library
8975      # or program results in "error TOC overflow" add -mminimal-toc to
8976      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8977      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8978
8979      archive_cmds=''
8980      hardcode_direct=yes
8981      hardcode_direct_absolute=yes
8982      hardcode_libdir_separator=':'
8983      link_all_deplibs=yes
8984      file_list_spec='${wl}-f,'
8985
8986      if test "$GCC" = yes; then
8987	case $host_os in aix4.[012]|aix4.[012].*)
8988	# We only want to do this on AIX 4.2 and lower, the check
8989	# below for broken collect2 doesn't work under 4.3+
8990	  collect2name=`${CC} -print-prog-name=collect2`
8991	  if test -f "$collect2name" &&
8992	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8993	  then
8994	  # We have reworked collect2
8995	  :
8996	  else
8997	  # We have old collect2
8998	  hardcode_direct=unsupported
8999	  # It fails to find uninstalled libraries when the uninstalled
9000	  # path is not listed in the libpath.  Setting hardcode_minus_L
9001	  # to unsupported forces relinking
9002	  hardcode_minus_L=yes
9003	  hardcode_libdir_flag_spec='-L$libdir'
9004	  hardcode_libdir_separator=
9005	  fi
9006	  ;;
9007	esac
9008	shared_flag='-shared'
9009	if test "$aix_use_runtimelinking" = yes; then
9010	  shared_flag="$shared_flag "'${wl}-G'
9011	fi
9012	link_all_deplibs=no
9013      else
9014	# not using gcc
9015	if test "$host_cpu" = ia64; then
9016	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9017	# chokes on -Wl,-G. The following line is correct:
9018	  shared_flag='-G'
9019	else
9020	  if test "$aix_use_runtimelinking" = yes; then
9021	    shared_flag='${wl}-G'
9022	  else
9023	    shared_flag='${wl}-bM:SRE'
9024	  fi
9025	fi
9026      fi
9027
9028      export_dynamic_flag_spec='${wl}-bexpall'
9029      # It seems that -bexpall does not export symbols beginning with
9030      # underscore (_), so it is better to generate a list of symbols to export.
9031      always_export_symbols=yes
9032      if test "$aix_use_runtimelinking" = yes; then
9033	# Warning - without using the other runtime loading flags (-brtl),
9034	# -berok will link without error, but may produce a broken library.
9035	allow_undefined_flag='-berok'
9036        # Determine the default libpath from the value encoded in an
9037        # empty executable.
9038        if test "${lt_cv_aix_libpath+set}" = set; then
9039  aix_libpath=$lt_cv_aix_libpath
9040else
9041  if ${lt_cv_aix_libpath_+:} false; then :
9042  $as_echo_n "(cached) " >&6
9043else
9044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045/* end confdefs.h.  */
9046
9047int
9048main ()
9049{
9050
9051  ;
9052  return 0;
9053}
9054_ACEOF
9055if ac_fn_c_try_link "$LINENO"; then :
9056
9057  lt_aix_libpath_sed='
9058      /Import File Strings/,/^$/ {
9059	  /^0/ {
9060	      s/^0  *\([^ ]*\) *$/\1/
9061	      p
9062	  }
9063      }'
9064  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9065  # Check for a 64-bit object if we didn't find anything.
9066  if test -z "$lt_cv_aix_libpath_"; then
9067    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9068  fi
9069fi
9070rm -f core conftest.err conftest.$ac_objext \
9071    conftest$ac_exeext conftest.$ac_ext
9072  if test -z "$lt_cv_aix_libpath_"; then
9073    lt_cv_aix_libpath_="/usr/lib:/lib"
9074  fi
9075
9076fi
9077
9078  aix_libpath=$lt_cv_aix_libpath_
9079fi
9080
9081        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9082        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"
9083      else
9084	if test "$host_cpu" = ia64; then
9085	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9086	  allow_undefined_flag="-z nodefs"
9087	  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"
9088	else
9089	 # Determine the default libpath from the value encoded in an
9090	 # empty executable.
9091	 if test "${lt_cv_aix_libpath+set}" = set; then
9092  aix_libpath=$lt_cv_aix_libpath
9093else
9094  if ${lt_cv_aix_libpath_+:} false; then :
9095  $as_echo_n "(cached) " >&6
9096else
9097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098/* end confdefs.h.  */
9099
9100int
9101main ()
9102{
9103
9104  ;
9105  return 0;
9106}
9107_ACEOF
9108if ac_fn_c_try_link "$LINENO"; then :
9109
9110  lt_aix_libpath_sed='
9111      /Import File Strings/,/^$/ {
9112	  /^0/ {
9113	      s/^0  *\([^ ]*\) *$/\1/
9114	      p
9115	  }
9116      }'
9117  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9118  # Check for a 64-bit object if we didn't find anything.
9119  if test -z "$lt_cv_aix_libpath_"; then
9120    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9121  fi
9122fi
9123rm -f core conftest.err conftest.$ac_objext \
9124    conftest$ac_exeext conftest.$ac_ext
9125  if test -z "$lt_cv_aix_libpath_"; then
9126    lt_cv_aix_libpath_="/usr/lib:/lib"
9127  fi
9128
9129fi
9130
9131  aix_libpath=$lt_cv_aix_libpath_
9132fi
9133
9134	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9135	  # Warning - without using the other run time loading flags,
9136	  # -berok will link without error, but may produce a broken library.
9137	  no_undefined_flag=' ${wl}-bernotok'
9138	  allow_undefined_flag=' ${wl}-berok'
9139	  if test "$with_gnu_ld" = yes; then
9140	    # We only use this code for GNU lds that support --whole-archive.
9141	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9142	  else
9143	    # Exported symbols can be pulled into shared objects from archives
9144	    whole_archive_flag_spec='$convenience'
9145	  fi
9146	  archive_cmds_need_lc=yes
9147	  # This is similar to how AIX traditionally builds its shared libraries.
9148	  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'
9149	fi
9150      fi
9151      ;;
9152
9153    amigaos*)
9154      case $host_cpu in
9155      powerpc)
9156            # see comment about AmigaOS4 .so support
9157            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158            archive_expsym_cmds=''
9159        ;;
9160      m68k)
9161            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)'
9162            hardcode_libdir_flag_spec='-L$libdir'
9163            hardcode_minus_L=yes
9164        ;;
9165      esac
9166      ;;
9167
9168    bsdi[45]*)
9169      export_dynamic_flag_spec=-rdynamic
9170      ;;
9171
9172    cygwin* | mingw* | pw32* | cegcc*)
9173      # When not using gcc, we currently assume that we are using
9174      # Microsoft Visual C++.
9175      # hardcode_libdir_flag_spec is actually meaningless, as there is
9176      # no search path for DLLs.
9177      case $cc_basename in
9178      cl*)
9179	# Native MSVC
9180	hardcode_libdir_flag_spec=' '
9181	allow_undefined_flag=unsupported
9182	always_export_symbols=yes
9183	file_list_spec='@'
9184	# Tell ltmain to make .lib files, not .a files.
9185	libext=lib
9186	# Tell ltmain to make .dll files, not .so files.
9187	shrext_cmds=".dll"
9188	# FIXME: Setting linknames here is a bad hack.
9189	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9190	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9191	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9192	  else
9193	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9194	  fi~
9195	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9196	  linknames='
9197	# The linker will not automatically build a static lib if we build a DLL.
9198	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9199	enable_shared_with_static_runtimes=yes
9200	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9201	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9202	# Don't use ranlib
9203	old_postinstall_cmds='chmod 644 $oldlib'
9204	postlink_cmds='lt_outputfile="@OUTPUT@"~
9205	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9206	  case $lt_outputfile in
9207	    *.exe|*.EXE) ;;
9208	    *)
9209	      lt_outputfile="$lt_outputfile.exe"
9210	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9211	      ;;
9212	  esac~
9213	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9214	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9215	    $RM "$lt_outputfile.manifest";
9216	  fi'
9217	;;
9218      *)
9219	# Assume MSVC wrapper
9220	hardcode_libdir_flag_spec=' '
9221	allow_undefined_flag=unsupported
9222	# Tell ltmain to make .lib files, not .a files.
9223	libext=lib
9224	# Tell ltmain to make .dll files, not .so files.
9225	shrext_cmds=".dll"
9226	# FIXME: Setting linknames here is a bad hack.
9227	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9228	# The linker will automatically build a .lib file if we build a DLL.
9229	old_archive_from_new_cmds='true'
9230	# FIXME: Should let the user specify the lib program.
9231	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9232	enable_shared_with_static_runtimes=yes
9233	;;
9234      esac
9235      ;;
9236
9237    darwin* | rhapsody*)
9238
9239
9240  archive_cmds_need_lc=no
9241  hardcode_direct=no
9242  hardcode_automatic=yes
9243  hardcode_shlibpath_var=unsupported
9244  if test "$lt_cv_ld_force_load" = "yes"; then
9245    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\"`'
9246
9247  else
9248    whole_archive_flag_spec=''
9249  fi
9250  link_all_deplibs=yes
9251  allow_undefined_flag="$_lt_dar_allow_undefined"
9252  case $cc_basename in
9253     ifort*) _lt_dar_can_shared=yes ;;
9254     *) _lt_dar_can_shared=$GCC ;;
9255  esac
9256  if test "$_lt_dar_can_shared" = "yes"; then
9257    output_verbose_link_cmd=func_echo_all
9258    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9259    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9260    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}"
9261    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}"
9262
9263  else
9264  ld_shlibs=no
9265  fi
9266
9267      ;;
9268
9269    dgux*)
9270      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271      hardcode_libdir_flag_spec='-L$libdir'
9272      hardcode_shlibpath_var=no
9273      ;;
9274
9275    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9276    # support.  Future versions do this automatically, but an explicit c++rt0.o
9277    # does not break anything, and helps significantly (at the cost of a little
9278    # extra space).
9279    freebsd2.2*)
9280      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9281      hardcode_libdir_flag_spec='-R$libdir'
9282      hardcode_direct=yes
9283      hardcode_shlibpath_var=no
9284      ;;
9285
9286    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9287    freebsd2.*)
9288      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9289      hardcode_direct=yes
9290      hardcode_minus_L=yes
9291      hardcode_shlibpath_var=no
9292      ;;
9293
9294    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9295    freebsd* | dragonfly*)
9296      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9297      hardcode_libdir_flag_spec='-R$libdir'
9298      hardcode_direct=yes
9299      hardcode_shlibpath_var=no
9300      ;;
9301
9302    hpux9*)
9303      if test "$GCC" = yes; then
9304	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'
9305      else
9306	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'
9307      fi
9308      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9309      hardcode_libdir_separator=:
9310      hardcode_direct=yes
9311
9312      # hardcode_minus_L: Not really in the search PATH,
9313      # but as the default location of the library.
9314      hardcode_minus_L=yes
9315      export_dynamic_flag_spec='${wl}-E'
9316      ;;
9317
9318    hpux10*)
9319      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9320	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9321      else
9322	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9323      fi
9324      if test "$with_gnu_ld" = no; then
9325	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9326	hardcode_libdir_separator=:
9327	hardcode_direct=yes
9328	hardcode_direct_absolute=yes
9329	export_dynamic_flag_spec='${wl}-E'
9330	# hardcode_minus_L: Not really in the search PATH,
9331	# but as the default location of the library.
9332	hardcode_minus_L=yes
9333      fi
9334      ;;
9335
9336    hpux11*)
9337      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9338	case $host_cpu in
9339	hppa*64*)
9340	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9341	  ;;
9342	ia64*)
9343	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9344	  ;;
9345	*)
9346	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9347	  ;;
9348	esac
9349      else
9350	case $host_cpu in
9351	hppa*64*)
9352	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9353	  ;;
9354	ia64*)
9355	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9356	  ;;
9357	*)
9358
9359	  # Older versions of the 11.00 compiler do not understand -b yet
9360	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9361	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9362$as_echo_n "checking if $CC understands -b... " >&6; }
9363if ${lt_cv_prog_compiler__b+:} false; then :
9364  $as_echo_n "(cached) " >&6
9365else
9366  lt_cv_prog_compiler__b=no
9367   save_LDFLAGS="$LDFLAGS"
9368   LDFLAGS="$LDFLAGS -b"
9369   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9370   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9371     # The linker can only warn and ignore the option if not recognized
9372     # So say no if there are warnings
9373     if test -s conftest.err; then
9374       # Append any errors to the config.log.
9375       cat conftest.err 1>&5
9376       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9377       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9378       if diff conftest.exp conftest.er2 >/dev/null; then
9379         lt_cv_prog_compiler__b=yes
9380       fi
9381     else
9382       lt_cv_prog_compiler__b=yes
9383     fi
9384   fi
9385   $RM -r conftest*
9386   LDFLAGS="$save_LDFLAGS"
9387
9388fi
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9390$as_echo "$lt_cv_prog_compiler__b" >&6; }
9391
9392if test x"$lt_cv_prog_compiler__b" = xyes; then
9393    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9394else
9395    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9396fi
9397
9398	  ;;
9399	esac
9400      fi
9401      if test "$with_gnu_ld" = no; then
9402	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9403	hardcode_libdir_separator=:
9404
9405	case $host_cpu in
9406	hppa*64*|ia64*)
9407	  hardcode_direct=no
9408	  hardcode_shlibpath_var=no
9409	  ;;
9410	*)
9411	  hardcode_direct=yes
9412	  hardcode_direct_absolute=yes
9413	  export_dynamic_flag_spec='${wl}-E'
9414
9415	  # hardcode_minus_L: Not really in the search PATH,
9416	  # but as the default location of the library.
9417	  hardcode_minus_L=yes
9418	  ;;
9419	esac
9420      fi
9421      ;;
9422
9423    irix5* | irix6* | nonstopux*)
9424      if test "$GCC" = yes; then
9425	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'
9426	# Try to use the -exported_symbol ld option, if it does not
9427	# work, assume that -exports_file does not work either and
9428	# implicitly export all symbols.
9429	# This should be the same for all languages, so no per-tag cache variable.
9430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9431$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9432if ${lt_cv_irix_exported_symbol+:} false; then :
9433  $as_echo_n "(cached) " >&6
9434else
9435  save_LDFLAGS="$LDFLAGS"
9436	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9437	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h.  */
9439int foo (void) { return 0; }
9440_ACEOF
9441if ac_fn_c_try_link "$LINENO"; then :
9442  lt_cv_irix_exported_symbol=yes
9443else
9444  lt_cv_irix_exported_symbol=no
9445fi
9446rm -f core conftest.err conftest.$ac_objext \
9447    conftest$ac_exeext conftest.$ac_ext
9448           LDFLAGS="$save_LDFLAGS"
9449fi
9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9451$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9452	if test "$lt_cv_irix_exported_symbol" = yes; then
9453          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'
9454	fi
9455      else
9456	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'
9457	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'
9458      fi
9459      archive_cmds_need_lc='no'
9460      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9461      hardcode_libdir_separator=:
9462      inherit_rpath=yes
9463      link_all_deplibs=yes
9464      ;;
9465
9466    netbsd* | netbsdelf*-gnu)
9467      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9468	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9469      else
9470	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9471      fi
9472      hardcode_libdir_flag_spec='-R$libdir'
9473      hardcode_direct=yes
9474      hardcode_shlibpath_var=no
9475      ;;
9476
9477    newsos6)
9478      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9479      hardcode_direct=yes
9480      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9481      hardcode_libdir_separator=:
9482      hardcode_shlibpath_var=no
9483      ;;
9484
9485    *nto* | *qnx*)
9486      ;;
9487
9488    openbsd*)
9489      if test -f /usr/libexec/ld.so; then
9490	hardcode_direct=yes
9491	hardcode_shlibpath_var=no
9492	hardcode_direct_absolute=yes
9493	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9494	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9495	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9496	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9497	  export_dynamic_flag_spec='${wl}-E'
9498	else
9499	  case $host_os in
9500	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9501	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9502	     hardcode_libdir_flag_spec='-R$libdir'
9503	     ;;
9504	   *)
9505	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9506	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9507	     ;;
9508	  esac
9509	fi
9510      else
9511	ld_shlibs=no
9512      fi
9513      ;;
9514
9515    os2*)
9516      hardcode_libdir_flag_spec='-L$libdir'
9517      hardcode_minus_L=yes
9518      allow_undefined_flag=unsupported
9519      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'
9520      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9521      ;;
9522
9523    osf3*)
9524      if test "$GCC" = yes; then
9525	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9526	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'
9527      else
9528	allow_undefined_flag=' -expect_unresolved \*'
9529	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'
9530      fi
9531      archive_cmds_need_lc='no'
9532      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9533      hardcode_libdir_separator=:
9534      ;;
9535
9536    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9537      if test "$GCC" = yes; then
9538	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9539	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'
9540	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541      else
9542	allow_undefined_flag=' -expect_unresolved \*'
9543	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'
9544	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~
9545	$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'
9546
9547	# Both c and cxx compiler support -rpath directly
9548	hardcode_libdir_flag_spec='-rpath $libdir'
9549      fi
9550      archive_cmds_need_lc='no'
9551      hardcode_libdir_separator=:
9552      ;;
9553
9554    solaris*)
9555      no_undefined_flag=' -z defs'
9556      if test "$GCC" = yes; then
9557	wlarc='${wl}'
9558	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9559	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9560	  $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'
9561      else
9562	case `$CC -V 2>&1` in
9563	*"Compilers 5.0"*)
9564	  wlarc=''
9565	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9567	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9568	  ;;
9569	*)
9570	  wlarc='${wl}'
9571	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9572	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9573	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9574	  ;;
9575	esac
9576      fi
9577      hardcode_libdir_flag_spec='-R$libdir'
9578      hardcode_shlibpath_var=no
9579      case $host_os in
9580      solaris2.[0-5] | solaris2.[0-5].*) ;;
9581      *)
9582	# The compiler driver will combine and reorder linker options,
9583	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9584	# but is careful enough not to reorder.
9585	# Supported since Solaris 2.6 (maybe 2.5.1?)
9586	if test "$GCC" = yes; then
9587	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9588	else
9589	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9590	fi
9591	;;
9592      esac
9593      link_all_deplibs=yes
9594      ;;
9595
9596    sunos4*)
9597      if test "x$host_vendor" = xsequent; then
9598	# Use $CC to link under sequent, because it throws in some extra .o
9599	# files that make .init and .fini sections work.
9600	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9601      else
9602	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9603      fi
9604      hardcode_libdir_flag_spec='-L$libdir'
9605      hardcode_direct=yes
9606      hardcode_minus_L=yes
9607      hardcode_shlibpath_var=no
9608      ;;
9609
9610    sysv4)
9611      case $host_vendor in
9612	sni)
9613	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614	  hardcode_direct=yes # is this really true???
9615	;;
9616	siemens)
9617	  ## LD is ld it makes a PLAMLIB
9618	  ## CC just makes a GrossModule.
9619	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9620	  reload_cmds='$CC -r -o $output$reload_objs'
9621	  hardcode_direct=no
9622        ;;
9623	motorola)
9624	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9625	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9626	;;
9627      esac
9628      runpath_var='LD_RUN_PATH'
9629      hardcode_shlibpath_var=no
9630      ;;
9631
9632    sysv4.3*)
9633      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634      hardcode_shlibpath_var=no
9635      export_dynamic_flag_spec='-Bexport'
9636      ;;
9637
9638    sysv4*MP*)
9639      if test -d /usr/nec; then
9640	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641	hardcode_shlibpath_var=no
9642	runpath_var=LD_RUN_PATH
9643	hardcode_runpath_var=yes
9644	ld_shlibs=yes
9645      fi
9646      ;;
9647
9648    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9649      no_undefined_flag='${wl}-z,text'
9650      archive_cmds_need_lc=no
9651      hardcode_shlibpath_var=no
9652      runpath_var='LD_RUN_PATH'
9653
9654      if test "$GCC" = yes; then
9655	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9657      else
9658	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9659	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9660      fi
9661      ;;
9662
9663    sysv5* | sco3.2v5* | sco5v6*)
9664      # Note: We can NOT use -z defs as we might desire, because we do not
9665      # link with -lc, and that would cause any symbols used from libc to
9666      # always be unresolved, which means just about no library would
9667      # ever link correctly.  If we're not using GNU ld we use -z text
9668      # though, which does catch some bad symbols but isn't as heavy-handed
9669      # as -z defs.
9670      no_undefined_flag='${wl}-z,text'
9671      allow_undefined_flag='${wl}-z,nodefs'
9672      archive_cmds_need_lc=no
9673      hardcode_shlibpath_var=no
9674      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9675      hardcode_libdir_separator=':'
9676      link_all_deplibs=yes
9677      export_dynamic_flag_spec='${wl}-Bexport'
9678      runpath_var='LD_RUN_PATH'
9679
9680      if test "$GCC" = yes; then
9681	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683      else
9684	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9685	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9686      fi
9687      ;;
9688
9689    uts4*)
9690      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691      hardcode_libdir_flag_spec='-L$libdir'
9692      hardcode_shlibpath_var=no
9693      ;;
9694
9695    *)
9696      ld_shlibs=no
9697      ;;
9698    esac
9699
9700    if test x$host_vendor = xsni; then
9701      case $host in
9702      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9703	export_dynamic_flag_spec='${wl}-Blargedynsym'
9704	;;
9705      esac
9706    fi
9707  fi
9708
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9710$as_echo "$ld_shlibs" >&6; }
9711test "$ld_shlibs" = no && can_build_shared=no
9712
9713with_gnu_ld=$with_gnu_ld
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729#
9730# Do we need to explicitly link libc?
9731#
9732case "x$archive_cmds_need_lc" in
9733x|xyes)
9734  # Assume -lc should be added
9735  archive_cmds_need_lc=yes
9736
9737  if test "$enable_shared" = yes && test "$GCC" = yes; then
9738    case $archive_cmds in
9739    *'~'*)
9740      # FIXME: we may have to deal with multi-command sequences.
9741      ;;
9742    '$CC '*)
9743      # Test whether the compiler implicitly links with -lc since on some
9744      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9745      # to ld, don't add -lc before -lgcc.
9746      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9747$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9748if ${lt_cv_archive_cmds_need_lc+:} false; then :
9749  $as_echo_n "(cached) " >&6
9750else
9751  $RM conftest*
9752	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9753
9754	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9755  (eval $ac_compile) 2>&5
9756  ac_status=$?
9757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9758  test $ac_status = 0; } 2>conftest.err; then
9759	  soname=conftest
9760	  lib=conftest
9761	  libobjs=conftest.$ac_objext
9762	  deplibs=
9763	  wl=$lt_prog_compiler_wl
9764	  pic_flag=$lt_prog_compiler_pic
9765	  compiler_flags=-v
9766	  linker_flags=-v
9767	  verstring=
9768	  output_objdir=.
9769	  libname=conftest
9770	  lt_save_allow_undefined_flag=$allow_undefined_flag
9771	  allow_undefined_flag=
9772	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9773  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9774  ac_status=$?
9775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9776  test $ac_status = 0; }
9777	  then
9778	    lt_cv_archive_cmds_need_lc=no
9779	  else
9780	    lt_cv_archive_cmds_need_lc=yes
9781	  fi
9782	  allow_undefined_flag=$lt_save_allow_undefined_flag
9783	else
9784	  cat conftest.err 1>&5
9785	fi
9786	$RM conftest*
9787
9788fi
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9790$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9791      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9792      ;;
9793    esac
9794  fi
9795  ;;
9796esac
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9950$as_echo_n "checking dynamic linker characteristics... " >&6; }
9951
9952if test "$GCC" = yes; then
9953  case $host_os in
9954    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9955    *) lt_awk_arg="/^libraries:/" ;;
9956  esac
9957  case $host_os in
9958    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9959    *) lt_sed_strip_eq="s,=/,/,g" ;;
9960  esac
9961  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9962  case $lt_search_path_spec in
9963  *\;*)
9964    # if the path contains ";" then we assume it to be the separator
9965    # otherwise default to the standard path separator (i.e. ":") - it is
9966    # assumed that no part of a normal pathname contains ";" but that should
9967    # okay in the real world where ";" in dirpaths is itself problematic.
9968    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9969    ;;
9970  *)
9971    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9972    ;;
9973  esac
9974  # Ok, now we have the path, separated by spaces, we can step through it
9975  # and add multilib dir if necessary.
9976  lt_tmp_lt_search_path_spec=
9977  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9978  for lt_sys_path in $lt_search_path_spec; do
9979    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9980      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9981    else
9982      test -d "$lt_sys_path" && \
9983	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9984    fi
9985  done
9986  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9987BEGIN {RS=" "; FS="/|\n";} {
9988  lt_foo="";
9989  lt_count=0;
9990  for (lt_i = NF; lt_i > 0; lt_i--) {
9991    if ($lt_i != "" && $lt_i != ".") {
9992      if ($lt_i == "..") {
9993        lt_count++;
9994      } else {
9995        if (lt_count == 0) {
9996          lt_foo="/" $lt_i lt_foo;
9997        } else {
9998          lt_count--;
9999        }
10000      }
10001    }
10002  }
10003  if (lt_foo != "") { lt_freq[lt_foo]++; }
10004  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10005}'`
10006  # AWK program above erroneously prepends '/' to C:/dos/paths
10007  # for these hosts.
10008  case $host_os in
10009    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10010      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10011  esac
10012  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10013else
10014  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10015fi
10016library_names_spec=
10017libname_spec='lib$name'
10018soname_spec=
10019shrext_cmds=".so"
10020postinstall_cmds=
10021postuninstall_cmds=
10022finish_cmds=
10023finish_eval=
10024shlibpath_var=
10025shlibpath_overrides_runpath=unknown
10026version_type=none
10027dynamic_linker="$host_os ld.so"
10028sys_lib_dlsearch_path_spec="/lib /usr/lib"
10029need_lib_prefix=unknown
10030hardcode_into_libs=no
10031
10032# when you set need_version to no, make sure it does not cause -set_version
10033# flags to be left without arguments
10034need_version=unknown
10035
10036case $host_os in
10037aix3*)
10038  version_type=linux # correct to gnu/linux during the next big refactor
10039  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10040  shlibpath_var=LIBPATH
10041
10042  # AIX 3 has no versioning support, so we append a major version to the name.
10043  soname_spec='${libname}${release}${shared_ext}$major'
10044  ;;
10045
10046aix[4-9]*)
10047  version_type=linux # correct to gnu/linux during the next big refactor
10048  need_lib_prefix=no
10049  need_version=no
10050  hardcode_into_libs=yes
10051  if test "$host_cpu" = ia64; then
10052    # AIX 5 supports IA64
10053    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10054    shlibpath_var=LD_LIBRARY_PATH
10055  else
10056    # With GCC up to 2.95.x, collect2 would create an import file
10057    # for dependence libraries.  The import file would start with
10058    # the line `#! .'.  This would cause the generated library to
10059    # depend on `.', always an invalid library.  This was fixed in
10060    # development snapshots of GCC prior to 3.0.
10061    case $host_os in
10062      aix4 | aix4.[01] | aix4.[01].*)
10063      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10064	   echo ' yes '
10065	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10066	:
10067      else
10068	can_build_shared=no
10069      fi
10070      ;;
10071    esac
10072    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10073    # soname into executable. Probably we can add versioning support to
10074    # collect2, so additional links can be useful in future.
10075    if test "$aix_use_runtimelinking" = yes; then
10076      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10077      # instead of lib<name>.a to let people know that these are not
10078      # typical AIX shared libraries.
10079      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080    else
10081      # We preserve .a as extension for shared libraries through AIX4.2
10082      # and later when we are not doing run time linking.
10083      library_names_spec='${libname}${release}.a $libname.a'
10084      soname_spec='${libname}${release}${shared_ext}$major'
10085    fi
10086    shlibpath_var=LIBPATH
10087  fi
10088  ;;
10089
10090amigaos*)
10091  case $host_cpu in
10092  powerpc)
10093    # Since July 2007 AmigaOS4 officially supports .so libraries.
10094    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10095    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096    ;;
10097  m68k)
10098    library_names_spec='$libname.ixlibrary $libname.a'
10099    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10100    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'
10101    ;;
10102  esac
10103  ;;
10104
10105beos*)
10106  library_names_spec='${libname}${shared_ext}'
10107  dynamic_linker="$host_os ld.so"
10108  shlibpath_var=LIBRARY_PATH
10109  ;;
10110
10111bsdi[45]*)
10112  version_type=linux # correct to gnu/linux during the next big refactor
10113  need_version=no
10114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115  soname_spec='${libname}${release}${shared_ext}$major'
10116  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10117  shlibpath_var=LD_LIBRARY_PATH
10118  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10119  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10120  # the default ld.so.conf also contains /usr/contrib/lib and
10121  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10122  # libtool to hard-code these into programs
10123  ;;
10124
10125cygwin* | mingw* | pw32* | cegcc*)
10126  version_type=windows
10127  shrext_cmds=".dll"
10128  need_version=no
10129  need_lib_prefix=no
10130
10131  case $GCC,$cc_basename in
10132  yes,*)
10133    # gcc
10134    library_names_spec='$libname.dll.a'
10135    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10136    postinstall_cmds='base_file=`basename \${file}`~
10137      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10138      dldir=$destdir/`dirname \$dlpath`~
10139      test -d \$dldir || mkdir -p \$dldir~
10140      $install_prog $dir/$dlname \$dldir/$dlname~
10141      chmod a+x \$dldir/$dlname~
10142      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10143        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10144      fi'
10145    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10146      dlpath=$dir/\$dldll~
10147       $RM \$dlpath'
10148    shlibpath_overrides_runpath=yes
10149
10150    case $host_os in
10151    cygwin*)
10152      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10153      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10154
10155      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10156      ;;
10157    mingw* | cegcc*)
10158      # MinGW DLLs use traditional 'lib' prefix
10159      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10160      ;;
10161    pw32*)
10162      # pw32 DLLs use 'pw' prefix rather than 'lib'
10163      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10164      ;;
10165    esac
10166    dynamic_linker='Win32 ld.exe'
10167    ;;
10168
10169  *,cl*)
10170    # Native MSVC
10171    libname_spec='$name'
10172    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10173    library_names_spec='${libname}.dll.lib'
10174
10175    case $build_os in
10176    mingw*)
10177      sys_lib_search_path_spec=
10178      lt_save_ifs=$IFS
10179      IFS=';'
10180      for lt_path in $LIB
10181      do
10182        IFS=$lt_save_ifs
10183        # Let DOS variable expansion print the short 8.3 style file name.
10184        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10185        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10186      done
10187      IFS=$lt_save_ifs
10188      # Convert to MSYS style.
10189      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10190      ;;
10191    cygwin*)
10192      # Convert to unix form, then to dos form, then back to unix form
10193      # but this time dos style (no spaces!) so that the unix form looks
10194      # like /cygdrive/c/PROGRA~1:/cygdr...
10195      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10196      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10197      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10198      ;;
10199    *)
10200      sys_lib_search_path_spec="$LIB"
10201      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10202        # It is most probably a Windows format PATH.
10203        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10204      else
10205        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10206      fi
10207      # FIXME: find the short name or the path components, as spaces are
10208      # common. (e.g. "Program Files" -> "PROGRA~1")
10209      ;;
10210    esac
10211
10212    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10213    postinstall_cmds='base_file=`basename \${file}`~
10214      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10215      dldir=$destdir/`dirname \$dlpath`~
10216      test -d \$dldir || mkdir -p \$dldir~
10217      $install_prog $dir/$dlname \$dldir/$dlname'
10218    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10219      dlpath=$dir/\$dldll~
10220       $RM \$dlpath'
10221    shlibpath_overrides_runpath=yes
10222    dynamic_linker='Win32 link.exe'
10223    ;;
10224
10225  *)
10226    # Assume MSVC wrapper
10227    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10228    dynamic_linker='Win32 ld.exe'
10229    ;;
10230  esac
10231  # FIXME: first we should search . and the directory the executable is in
10232  shlibpath_var=PATH
10233  ;;
10234
10235darwin* | rhapsody*)
10236  dynamic_linker="$host_os dyld"
10237  version_type=darwin
10238  need_lib_prefix=no
10239  need_version=no
10240  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10241  soname_spec='${libname}${release}${major}$shared_ext'
10242  shlibpath_overrides_runpath=yes
10243  shlibpath_var=DYLD_LIBRARY_PATH
10244  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10245
10246  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10247  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10248  ;;
10249
10250dgux*)
10251  version_type=linux # correct to gnu/linux during the next big refactor
10252  need_lib_prefix=no
10253  need_version=no
10254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10255  soname_spec='${libname}${release}${shared_ext}$major'
10256  shlibpath_var=LD_LIBRARY_PATH
10257  ;;
10258
10259freebsd* | dragonfly*)
10260  # DragonFly does not have aout.  When/if they implement a new
10261  # versioning mechanism, adjust this.
10262  if test -x /usr/bin/objformat; then
10263    objformat=`/usr/bin/objformat`
10264  else
10265    case $host_os in
10266    freebsd[23].*) objformat=aout ;;
10267    *) objformat=elf ;;
10268    esac
10269  fi
10270  version_type=freebsd-$objformat
10271  case $version_type in
10272    freebsd-elf*)
10273      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10274      need_version=no
10275      need_lib_prefix=no
10276      ;;
10277    freebsd-*)
10278      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10279      need_version=yes
10280      ;;
10281  esac
10282  shlibpath_var=LD_LIBRARY_PATH
10283  case $host_os in
10284  freebsd2.*)
10285    shlibpath_overrides_runpath=yes
10286    ;;
10287  freebsd3.[01]* | freebsdelf3.[01]*)
10288    shlibpath_overrides_runpath=yes
10289    hardcode_into_libs=yes
10290    ;;
10291  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10292  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10293    shlibpath_overrides_runpath=no
10294    hardcode_into_libs=yes
10295    ;;
10296  *) # from 4.6 on, and DragonFly
10297    shlibpath_overrides_runpath=yes
10298    hardcode_into_libs=yes
10299    ;;
10300  esac
10301  ;;
10302
10303gnu*)
10304  version_type=linux # correct to gnu/linux during the next big refactor
10305  need_lib_prefix=no
10306  need_version=no
10307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10308  soname_spec='${libname}${release}${shared_ext}$major'
10309  shlibpath_var=LD_LIBRARY_PATH
10310  shlibpath_overrides_runpath=no
10311  hardcode_into_libs=yes
10312  ;;
10313
10314haiku*)
10315  version_type=linux # correct to gnu/linux during the next big refactor
10316  need_lib_prefix=no
10317  need_version=no
10318  dynamic_linker="$host_os runtime_loader"
10319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10320  soname_spec='${libname}${release}${shared_ext}$major'
10321  shlibpath_var=LIBRARY_PATH
10322  shlibpath_overrides_runpath=yes
10323  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10324  hardcode_into_libs=yes
10325  ;;
10326
10327hpux9* | hpux10* | hpux11*)
10328  # Give a soname corresponding to the major version so that dld.sl refuses to
10329  # link against other versions.
10330  version_type=sunos
10331  need_lib_prefix=no
10332  need_version=no
10333  case $host_cpu in
10334  ia64*)
10335    shrext_cmds='.so'
10336    hardcode_into_libs=yes
10337    dynamic_linker="$host_os dld.so"
10338    shlibpath_var=LD_LIBRARY_PATH
10339    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10340    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341    soname_spec='${libname}${release}${shared_ext}$major'
10342    if test "X$HPUX_IA64_MODE" = X32; then
10343      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10344    else
10345      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10346    fi
10347    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10348    ;;
10349  hppa*64*)
10350    shrext_cmds='.sl'
10351    hardcode_into_libs=yes
10352    dynamic_linker="$host_os dld.sl"
10353    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10354    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10355    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356    soname_spec='${libname}${release}${shared_ext}$major'
10357    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10358    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10359    ;;
10360  *)
10361    shrext_cmds='.sl'
10362    dynamic_linker="$host_os dld.sl"
10363    shlibpath_var=SHLIB_PATH
10364    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10365    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366    soname_spec='${libname}${release}${shared_ext}$major'
10367    ;;
10368  esac
10369  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10370  postinstall_cmds='chmod 555 $lib'
10371  # or fails outright, so override atomically:
10372  install_override_mode=555
10373  ;;
10374
10375interix[3-9]*)
10376  version_type=linux # correct to gnu/linux during the next big refactor
10377  need_lib_prefix=no
10378  need_version=no
10379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10380  soname_spec='${libname}${release}${shared_ext}$major'
10381  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10382  shlibpath_var=LD_LIBRARY_PATH
10383  shlibpath_overrides_runpath=no
10384  hardcode_into_libs=yes
10385  ;;
10386
10387irix5* | irix6* | nonstopux*)
10388  case $host_os in
10389    nonstopux*) version_type=nonstopux ;;
10390    *)
10391	if test "$lt_cv_prog_gnu_ld" = yes; then
10392		version_type=linux # correct to gnu/linux during the next big refactor
10393	else
10394		version_type=irix
10395	fi ;;
10396  esac
10397  need_lib_prefix=no
10398  need_version=no
10399  soname_spec='${libname}${release}${shared_ext}$major'
10400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10401  case $host_os in
10402  irix5* | nonstopux*)
10403    libsuff= shlibsuff=
10404    ;;
10405  *)
10406    case $LD in # libtool.m4 will add one of these switches to LD
10407    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10408      libsuff= shlibsuff= libmagic=32-bit;;
10409    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10410      libsuff=32 shlibsuff=N32 libmagic=N32;;
10411    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10412      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10413    *) libsuff= shlibsuff= libmagic=never-match;;
10414    esac
10415    ;;
10416  esac
10417  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10418  shlibpath_overrides_runpath=no
10419  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10420  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10421  hardcode_into_libs=yes
10422  ;;
10423
10424# No shared lib support for Linux oldld, aout, or coff.
10425linux*oldld* | linux*aout* | linux*coff*)
10426  dynamic_linker=no
10427  ;;
10428
10429# This must be glibc/ELF.
10430linux* | k*bsd*-gnu | kopensolaris*-gnu)
10431  version_type=linux # correct to gnu/linux during the next big refactor
10432  need_lib_prefix=no
10433  need_version=no
10434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435  soname_spec='${libname}${release}${shared_ext}$major'
10436  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10437  shlibpath_var=LD_LIBRARY_PATH
10438  shlibpath_overrides_runpath=no
10439
10440  # Some binutils ld are patched to set DT_RUNPATH
10441  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10442  $as_echo_n "(cached) " >&6
10443else
10444  lt_cv_shlibpath_overrides_runpath=no
10445    save_LDFLAGS=$LDFLAGS
10446    save_libdir=$libdir
10447    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10448	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10449    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450/* end confdefs.h.  */
10451
10452int
10453main ()
10454{
10455
10456  ;
10457  return 0;
10458}
10459_ACEOF
10460if ac_fn_c_try_link "$LINENO"; then :
10461  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10462  lt_cv_shlibpath_overrides_runpath=yes
10463fi
10464fi
10465rm -f core conftest.err conftest.$ac_objext \
10466    conftest$ac_exeext conftest.$ac_ext
10467    LDFLAGS=$save_LDFLAGS
10468    libdir=$save_libdir
10469
10470fi
10471
10472  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10473
10474  # This implies no fast_install, which is unacceptable.
10475  # Some rework will be needed to allow for fast_install
10476  # before this can be enabled.
10477  hardcode_into_libs=yes
10478
10479  # Append ld.so.conf contents to the search path
10480  if test -f /etc/ld.so.conf; then
10481    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' ' '`
10482    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10483  fi
10484
10485  # We used to test for /lib/ld.so.1 and disable shared libraries on
10486  # powerpc, because MkLinux only supported shared libraries with the
10487  # GNU dynamic linker.  Since this was broken with cross compilers,
10488  # most powerpc-linux boxes support dynamic linking these days and
10489  # people can always --disable-shared, the test was removed, and we
10490  # assume the GNU/Linux dynamic linker is in use.
10491  dynamic_linker='GNU/Linux ld.so'
10492  ;;
10493
10494netbsdelf*-gnu)
10495  version_type=linux
10496  need_lib_prefix=no
10497  need_version=no
10498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10499  soname_spec='${libname}${release}${shared_ext}$major'
10500  shlibpath_var=LD_LIBRARY_PATH
10501  shlibpath_overrides_runpath=no
10502  hardcode_into_libs=yes
10503  dynamic_linker='NetBSD ld.elf_so'
10504  ;;
10505
10506netbsd*)
10507  version_type=sunos
10508  need_lib_prefix=no
10509  need_version=no
10510  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10511    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10512    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10513    dynamic_linker='NetBSD (a.out) ld.so'
10514  else
10515    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10516    soname_spec='${libname}${release}${shared_ext}$major'
10517    dynamic_linker='NetBSD ld.elf_so'
10518  fi
10519  shlibpath_var=LD_LIBRARY_PATH
10520  shlibpath_overrides_runpath=yes
10521  hardcode_into_libs=yes
10522  ;;
10523
10524newsos6)
10525  version_type=linux # correct to gnu/linux during the next big refactor
10526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527  shlibpath_var=LD_LIBRARY_PATH
10528  shlibpath_overrides_runpath=yes
10529  ;;
10530
10531*nto* | *qnx*)
10532  version_type=qnx
10533  need_lib_prefix=no
10534  need_version=no
10535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536  soname_spec='${libname}${release}${shared_ext}$major'
10537  shlibpath_var=LD_LIBRARY_PATH
10538  shlibpath_overrides_runpath=no
10539  hardcode_into_libs=yes
10540  dynamic_linker='ldqnx.so'
10541  ;;
10542
10543openbsd*)
10544  version_type=sunos
10545  sys_lib_dlsearch_path_spec="/usr/lib"
10546  need_lib_prefix=no
10547  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10548  case $host_os in
10549    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10550    *)				need_version=no  ;;
10551  esac
10552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10553  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10554  shlibpath_var=LD_LIBRARY_PATH
10555  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10556    case $host_os in
10557      openbsd2.[89] | openbsd2.[89].*)
10558	shlibpath_overrides_runpath=no
10559	;;
10560      *)
10561	shlibpath_overrides_runpath=yes
10562	;;
10563      esac
10564  else
10565    shlibpath_overrides_runpath=yes
10566  fi
10567  ;;
10568
10569os2*)
10570  libname_spec='$name'
10571  shrext_cmds=".dll"
10572  need_lib_prefix=no
10573  library_names_spec='$libname${shared_ext} $libname.a'
10574  dynamic_linker='OS/2 ld.exe'
10575  shlibpath_var=LIBPATH
10576  ;;
10577
10578osf3* | osf4* | osf5*)
10579  version_type=osf
10580  need_lib_prefix=no
10581  need_version=no
10582  soname_spec='${libname}${release}${shared_ext}$major'
10583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584  shlibpath_var=LD_LIBRARY_PATH
10585  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10586  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10587  ;;
10588
10589rdos*)
10590  dynamic_linker=no
10591  ;;
10592
10593solaris*)
10594  version_type=linux # correct to gnu/linux during the next big refactor
10595  need_lib_prefix=no
10596  need_version=no
10597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598  soname_spec='${libname}${release}${shared_ext}$major'
10599  shlibpath_var=LD_LIBRARY_PATH
10600  shlibpath_overrides_runpath=yes
10601  hardcode_into_libs=yes
10602  # ldd complains unless libraries are executable
10603  postinstall_cmds='chmod +x $lib'
10604  ;;
10605
10606sunos4*)
10607  version_type=sunos
10608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10609  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10610  shlibpath_var=LD_LIBRARY_PATH
10611  shlibpath_overrides_runpath=yes
10612  if test "$with_gnu_ld" = yes; then
10613    need_lib_prefix=no
10614  fi
10615  need_version=yes
10616  ;;
10617
10618sysv4 | sysv4.3*)
10619  version_type=linux # correct to gnu/linux during the next big refactor
10620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621  soname_spec='${libname}${release}${shared_ext}$major'
10622  shlibpath_var=LD_LIBRARY_PATH
10623  case $host_vendor in
10624    sni)
10625      shlibpath_overrides_runpath=no
10626      need_lib_prefix=no
10627      runpath_var=LD_RUN_PATH
10628      ;;
10629    siemens)
10630      need_lib_prefix=no
10631      ;;
10632    motorola)
10633      need_lib_prefix=no
10634      need_version=no
10635      shlibpath_overrides_runpath=no
10636      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10637      ;;
10638  esac
10639  ;;
10640
10641sysv4*MP*)
10642  if test -d /usr/nec ;then
10643    version_type=linux # correct to gnu/linux during the next big refactor
10644    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10645    soname_spec='$libname${shared_ext}.$major'
10646    shlibpath_var=LD_LIBRARY_PATH
10647  fi
10648  ;;
10649
10650sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10651  version_type=freebsd-elf
10652  need_lib_prefix=no
10653  need_version=no
10654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10655  soname_spec='${libname}${release}${shared_ext}$major'
10656  shlibpath_var=LD_LIBRARY_PATH
10657  shlibpath_overrides_runpath=yes
10658  hardcode_into_libs=yes
10659  if test "$with_gnu_ld" = yes; then
10660    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10661  else
10662    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10663    case $host_os in
10664      sco3.2v5*)
10665        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10666	;;
10667    esac
10668  fi
10669  sys_lib_dlsearch_path_spec='/usr/lib'
10670  ;;
10671
10672tpf*)
10673  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10674  version_type=linux # correct to gnu/linux during the next big refactor
10675  need_lib_prefix=no
10676  need_version=no
10677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678  shlibpath_var=LD_LIBRARY_PATH
10679  shlibpath_overrides_runpath=no
10680  hardcode_into_libs=yes
10681  ;;
10682
10683uts4*)
10684  version_type=linux # correct to gnu/linux during the next big refactor
10685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686  soname_spec='${libname}${release}${shared_ext}$major'
10687  shlibpath_var=LD_LIBRARY_PATH
10688  ;;
10689
10690*)
10691  dynamic_linker=no
10692  ;;
10693esac
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10695$as_echo "$dynamic_linker" >&6; }
10696test "$dynamic_linker" = no && can_build_shared=no
10697
10698variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10699if test "$GCC" = yes; then
10700  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10701fi
10702
10703if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10704  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10705fi
10706if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10707  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10708fi
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10802$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10803hardcode_action=
10804if test -n "$hardcode_libdir_flag_spec" ||
10805   test -n "$runpath_var" ||
10806   test "X$hardcode_automatic" = "Xyes" ; then
10807
10808  # We can hardcode non-existent directories.
10809  if test "$hardcode_direct" != no &&
10810     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10811     # have to relink, otherwise we might link with an installed library
10812     # when we should be linking with a yet-to-be-installed one
10813     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10814     test "$hardcode_minus_L" != no; then
10815    # Linking always hardcodes the temporary library directory.
10816    hardcode_action=relink
10817  else
10818    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10819    hardcode_action=immediate
10820  fi
10821else
10822  # We cannot hardcode anything, or else we can only hardcode existing
10823  # directories.
10824  hardcode_action=unsupported
10825fi
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10827$as_echo "$hardcode_action" >&6; }
10828
10829if test "$hardcode_action" = relink ||
10830   test "$inherit_rpath" = yes; then
10831  # Fast installation is not supported
10832  enable_fast_install=no
10833elif test "$shlibpath_overrides_runpath" = yes ||
10834     test "$enable_shared" = no; then
10835  # Fast installation is not necessary
10836  enable_fast_install=needless
10837fi
10838
10839
10840
10841
10842
10843
10844  if test "x$enable_dlopen" != xyes; then
10845  enable_dlopen=unknown
10846  enable_dlopen_self=unknown
10847  enable_dlopen_self_static=unknown
10848else
10849  lt_cv_dlopen=no
10850  lt_cv_dlopen_libs=
10851
10852  case $host_os in
10853  beos*)
10854    lt_cv_dlopen="load_add_on"
10855    lt_cv_dlopen_libs=
10856    lt_cv_dlopen_self=yes
10857    ;;
10858
10859  mingw* | pw32* | cegcc*)
10860    lt_cv_dlopen="LoadLibrary"
10861    lt_cv_dlopen_libs=
10862    ;;
10863
10864  cygwin*)
10865    lt_cv_dlopen="dlopen"
10866    lt_cv_dlopen_libs=
10867    ;;
10868
10869  darwin*)
10870  # if libdl is installed we need to link against it
10871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10872$as_echo_n "checking for dlopen in -ldl... " >&6; }
10873if ${ac_cv_lib_dl_dlopen+:} false; then :
10874  $as_echo_n "(cached) " >&6
10875else
10876  ac_check_lib_save_LIBS=$LIBS
10877LIBS="-ldl  $LIBS"
10878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879/* end confdefs.h.  */
10880
10881/* Override any GCC internal prototype to avoid an error.
10882   Use char because int might match the return type of a GCC
10883   builtin and then its argument prototype would still apply.  */
10884#ifdef __cplusplus
10885extern "C"
10886#endif
10887char dlopen ();
10888int
10889main ()
10890{
10891return dlopen ();
10892  ;
10893  return 0;
10894}
10895_ACEOF
10896if ac_fn_c_try_link "$LINENO"; then :
10897  ac_cv_lib_dl_dlopen=yes
10898else
10899  ac_cv_lib_dl_dlopen=no
10900fi
10901rm -f core conftest.err conftest.$ac_objext \
10902    conftest$ac_exeext conftest.$ac_ext
10903LIBS=$ac_check_lib_save_LIBS
10904fi
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10906$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10907if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10908  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10909else
10910
10911    lt_cv_dlopen="dyld"
10912    lt_cv_dlopen_libs=
10913    lt_cv_dlopen_self=yes
10914
10915fi
10916
10917    ;;
10918
10919  *)
10920    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10921if test "x$ac_cv_func_shl_load" = xyes; then :
10922  lt_cv_dlopen="shl_load"
10923else
10924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10925$as_echo_n "checking for shl_load in -ldld... " >&6; }
10926if ${ac_cv_lib_dld_shl_load+:} false; then :
10927  $as_echo_n "(cached) " >&6
10928else
10929  ac_check_lib_save_LIBS=$LIBS
10930LIBS="-ldld  $LIBS"
10931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932/* end confdefs.h.  */
10933
10934/* Override any GCC internal prototype to avoid an error.
10935   Use char because int might match the return type of a GCC
10936   builtin and then its argument prototype would still apply.  */
10937#ifdef __cplusplus
10938extern "C"
10939#endif
10940char shl_load ();
10941int
10942main ()
10943{
10944return shl_load ();
10945  ;
10946  return 0;
10947}
10948_ACEOF
10949if ac_fn_c_try_link "$LINENO"; then :
10950  ac_cv_lib_dld_shl_load=yes
10951else
10952  ac_cv_lib_dld_shl_load=no
10953fi
10954rm -f core conftest.err conftest.$ac_objext \
10955    conftest$ac_exeext conftest.$ac_ext
10956LIBS=$ac_check_lib_save_LIBS
10957fi
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10959$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10960if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10961  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10962else
10963  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10964if test "x$ac_cv_func_dlopen" = xyes; then :
10965  lt_cv_dlopen="dlopen"
10966else
10967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10968$as_echo_n "checking for dlopen in -ldl... " >&6; }
10969if ${ac_cv_lib_dl_dlopen+:} false; then :
10970  $as_echo_n "(cached) " >&6
10971else
10972  ac_check_lib_save_LIBS=$LIBS
10973LIBS="-ldl  $LIBS"
10974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975/* end confdefs.h.  */
10976
10977/* Override any GCC internal prototype to avoid an error.
10978   Use char because int might match the return type of a GCC
10979   builtin and then its argument prototype would still apply.  */
10980#ifdef __cplusplus
10981extern "C"
10982#endif
10983char dlopen ();
10984int
10985main ()
10986{
10987return dlopen ();
10988  ;
10989  return 0;
10990}
10991_ACEOF
10992if ac_fn_c_try_link "$LINENO"; then :
10993  ac_cv_lib_dl_dlopen=yes
10994else
10995  ac_cv_lib_dl_dlopen=no
10996fi
10997rm -f core conftest.err conftest.$ac_objext \
10998    conftest$ac_exeext conftest.$ac_ext
10999LIBS=$ac_check_lib_save_LIBS
11000fi
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11002$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11003if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11004  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11005else
11006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11007$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11008if ${ac_cv_lib_svld_dlopen+:} false; then :
11009  $as_echo_n "(cached) " >&6
11010else
11011  ac_check_lib_save_LIBS=$LIBS
11012LIBS="-lsvld  $LIBS"
11013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014/* end confdefs.h.  */
11015
11016/* Override any GCC internal prototype to avoid an error.
11017   Use char because int might match the return type of a GCC
11018   builtin and then its argument prototype would still apply.  */
11019#ifdef __cplusplus
11020extern "C"
11021#endif
11022char dlopen ();
11023int
11024main ()
11025{
11026return dlopen ();
11027  ;
11028  return 0;
11029}
11030_ACEOF
11031if ac_fn_c_try_link "$LINENO"; then :
11032  ac_cv_lib_svld_dlopen=yes
11033else
11034  ac_cv_lib_svld_dlopen=no
11035fi
11036rm -f core conftest.err conftest.$ac_objext \
11037    conftest$ac_exeext conftest.$ac_ext
11038LIBS=$ac_check_lib_save_LIBS
11039fi
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11041$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11042if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11043  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11044else
11045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11046$as_echo_n "checking for dld_link in -ldld... " >&6; }
11047if ${ac_cv_lib_dld_dld_link+:} false; then :
11048  $as_echo_n "(cached) " >&6
11049else
11050  ac_check_lib_save_LIBS=$LIBS
11051LIBS="-ldld  $LIBS"
11052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053/* end confdefs.h.  */
11054
11055/* Override any GCC internal prototype to avoid an error.
11056   Use char because int might match the return type of a GCC
11057   builtin and then its argument prototype would still apply.  */
11058#ifdef __cplusplus
11059extern "C"
11060#endif
11061char dld_link ();
11062int
11063main ()
11064{
11065return dld_link ();
11066  ;
11067  return 0;
11068}
11069_ACEOF
11070if ac_fn_c_try_link "$LINENO"; then :
11071  ac_cv_lib_dld_dld_link=yes
11072else
11073  ac_cv_lib_dld_dld_link=no
11074fi
11075rm -f core conftest.err conftest.$ac_objext \
11076    conftest$ac_exeext conftest.$ac_ext
11077LIBS=$ac_check_lib_save_LIBS
11078fi
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11080$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11081if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11082  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11083fi
11084
11085
11086fi
11087
11088
11089fi
11090
11091
11092fi
11093
11094
11095fi
11096
11097
11098fi
11099
11100    ;;
11101  esac
11102
11103  if test "x$lt_cv_dlopen" != xno; then
11104    enable_dlopen=yes
11105  else
11106    enable_dlopen=no
11107  fi
11108
11109  case $lt_cv_dlopen in
11110  dlopen)
11111    save_CPPFLAGS="$CPPFLAGS"
11112    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11113
11114    save_LDFLAGS="$LDFLAGS"
11115    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11116
11117    save_LIBS="$LIBS"
11118    LIBS="$lt_cv_dlopen_libs $LIBS"
11119
11120    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11121$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11122if ${lt_cv_dlopen_self+:} false; then :
11123  $as_echo_n "(cached) " >&6
11124else
11125  	  if test "$cross_compiling" = yes; then :
11126  lt_cv_dlopen_self=cross
11127else
11128  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11129  lt_status=$lt_dlunknown
11130  cat > conftest.$ac_ext <<_LT_EOF
11131#line $LINENO "configure"
11132#include "confdefs.h"
11133
11134#if HAVE_DLFCN_H
11135#include <dlfcn.h>
11136#endif
11137
11138#include <stdio.h>
11139
11140#ifdef RTLD_GLOBAL
11141#  define LT_DLGLOBAL		RTLD_GLOBAL
11142#else
11143#  ifdef DL_GLOBAL
11144#    define LT_DLGLOBAL		DL_GLOBAL
11145#  else
11146#    define LT_DLGLOBAL		0
11147#  endif
11148#endif
11149
11150/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11151   find out it does not work in some platform. */
11152#ifndef LT_DLLAZY_OR_NOW
11153#  ifdef RTLD_LAZY
11154#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11155#  else
11156#    ifdef DL_LAZY
11157#      define LT_DLLAZY_OR_NOW		DL_LAZY
11158#    else
11159#      ifdef RTLD_NOW
11160#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11161#      else
11162#        ifdef DL_NOW
11163#          define LT_DLLAZY_OR_NOW	DL_NOW
11164#        else
11165#          define LT_DLLAZY_OR_NOW	0
11166#        endif
11167#      endif
11168#    endif
11169#  endif
11170#endif
11171
11172/* When -fvisbility=hidden is used, assume the code has been annotated
11173   correspondingly for the symbols needed.  */
11174#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11175int fnord () __attribute__((visibility("default")));
11176#endif
11177
11178int fnord () { return 42; }
11179int main ()
11180{
11181  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11182  int status = $lt_dlunknown;
11183
11184  if (self)
11185    {
11186      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11187      else
11188        {
11189	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11190          else puts (dlerror ());
11191	}
11192      /* dlclose (self); */
11193    }
11194  else
11195    puts (dlerror ());
11196
11197  return status;
11198}
11199_LT_EOF
11200  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11201  (eval $ac_link) 2>&5
11202  ac_status=$?
11203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11204  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11205    (./conftest; exit; ) >&5 2>/dev/null
11206    lt_status=$?
11207    case x$lt_status in
11208      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11209      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11210      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11211    esac
11212  else :
11213    # compilation failed
11214    lt_cv_dlopen_self=no
11215  fi
11216fi
11217rm -fr conftest*
11218
11219
11220fi
11221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11222$as_echo "$lt_cv_dlopen_self" >&6; }
11223
11224    if test "x$lt_cv_dlopen_self" = xyes; then
11225      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11226      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11227$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11228if ${lt_cv_dlopen_self_static+:} false; then :
11229  $as_echo_n "(cached) " >&6
11230else
11231  	  if test "$cross_compiling" = yes; then :
11232  lt_cv_dlopen_self_static=cross
11233else
11234  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11235  lt_status=$lt_dlunknown
11236  cat > conftest.$ac_ext <<_LT_EOF
11237#line $LINENO "configure"
11238#include "confdefs.h"
11239
11240#if HAVE_DLFCN_H
11241#include <dlfcn.h>
11242#endif
11243
11244#include <stdio.h>
11245
11246#ifdef RTLD_GLOBAL
11247#  define LT_DLGLOBAL		RTLD_GLOBAL
11248#else
11249#  ifdef DL_GLOBAL
11250#    define LT_DLGLOBAL		DL_GLOBAL
11251#  else
11252#    define LT_DLGLOBAL		0
11253#  endif
11254#endif
11255
11256/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11257   find out it does not work in some platform. */
11258#ifndef LT_DLLAZY_OR_NOW
11259#  ifdef RTLD_LAZY
11260#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11261#  else
11262#    ifdef DL_LAZY
11263#      define LT_DLLAZY_OR_NOW		DL_LAZY
11264#    else
11265#      ifdef RTLD_NOW
11266#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11267#      else
11268#        ifdef DL_NOW
11269#          define LT_DLLAZY_OR_NOW	DL_NOW
11270#        else
11271#          define LT_DLLAZY_OR_NOW	0
11272#        endif
11273#      endif
11274#    endif
11275#  endif
11276#endif
11277
11278/* When -fvisbility=hidden is used, assume the code has been annotated
11279   correspondingly for the symbols needed.  */
11280#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11281int fnord () __attribute__((visibility("default")));
11282#endif
11283
11284int fnord () { return 42; }
11285int main ()
11286{
11287  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11288  int status = $lt_dlunknown;
11289
11290  if (self)
11291    {
11292      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11293      else
11294        {
11295	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11296          else puts (dlerror ());
11297	}
11298      /* dlclose (self); */
11299    }
11300  else
11301    puts (dlerror ());
11302
11303  return status;
11304}
11305_LT_EOF
11306  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11307  (eval $ac_link) 2>&5
11308  ac_status=$?
11309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11310  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11311    (./conftest; exit; ) >&5 2>/dev/null
11312    lt_status=$?
11313    case x$lt_status in
11314      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11315      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11316      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11317    esac
11318  else :
11319    # compilation failed
11320    lt_cv_dlopen_self_static=no
11321  fi
11322fi
11323rm -fr conftest*
11324
11325
11326fi
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11328$as_echo "$lt_cv_dlopen_self_static" >&6; }
11329    fi
11330
11331    CPPFLAGS="$save_CPPFLAGS"
11332    LDFLAGS="$save_LDFLAGS"
11333    LIBS="$save_LIBS"
11334    ;;
11335  esac
11336
11337  case $lt_cv_dlopen_self in
11338  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11339  *) enable_dlopen_self=unknown ;;
11340  esac
11341
11342  case $lt_cv_dlopen_self_static in
11343  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11344  *) enable_dlopen_self_static=unknown ;;
11345  esac
11346fi
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364striplib=
11365old_striplib=
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11367$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11368if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11369  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11370  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11372$as_echo "yes" >&6; }
11373else
11374# FIXME - insert some real tests, host_os isn't really good enough
11375  case $host_os in
11376  darwin*)
11377    if test -n "$STRIP" ; then
11378      striplib="$STRIP -x"
11379      old_striplib="$STRIP -S"
11380      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11381$as_echo "yes" >&6; }
11382    else
11383      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384$as_echo "no" >&6; }
11385    fi
11386    ;;
11387  *)
11388    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389$as_echo "no" >&6; }
11390    ;;
11391  esac
11392fi
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405  # Report which library types will actually be built
11406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11407$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11409$as_echo "$can_build_shared" >&6; }
11410
11411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11412$as_echo_n "checking whether to build shared libraries... " >&6; }
11413  test "$can_build_shared" = "no" && enable_shared=no
11414
11415  # On AIX, shared libraries and static libraries use the same namespace, and
11416  # are all built from PIC.
11417  case $host_os in
11418  aix3*)
11419    test "$enable_shared" = yes && enable_static=no
11420    if test -n "$RANLIB"; then
11421      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11422      postinstall_cmds='$RANLIB $lib'
11423    fi
11424    ;;
11425
11426  aix[4-9]*)
11427    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11428      test "$enable_shared" = yes && enable_static=no
11429    fi
11430    ;;
11431  esac
11432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11433$as_echo "$enable_shared" >&6; }
11434
11435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11436$as_echo_n "checking whether to build static libraries... " >&6; }
11437  # Make sure either enable_shared or enable_static is yes.
11438  test "$enable_shared" = yes || enable_static=yes
11439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11440$as_echo "$enable_static" >&6; }
11441
11442
11443
11444
11445fi
11446ac_ext=c
11447ac_cpp='$CPP $CPPFLAGS'
11448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11450ac_compiler_gnu=$ac_cv_c_compiler_gnu
11451
11452CC="$lt_save_CC"
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468        ac_config_commands="$ac_config_commands libtool"
11469
11470
11471
11472
11473# Only expand once:
11474
11475
11476
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11478$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11479set x ${MAKE-make}
11480ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11481if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11482  $as_echo_n "(cached) " >&6
11483else
11484  cat >conftest.make <<\_ACEOF
11485SHELL = /bin/sh
11486all:
11487	@echo '@@@%%%=$(MAKE)=@@@%%%'
11488_ACEOF
11489# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11490case `${MAKE-make} -f conftest.make 2>/dev/null` in
11491  *@@@%%%=?*=@@@%%%*)
11492    eval ac_cv_prog_make_${ac_make}_set=yes;;
11493  *)
11494    eval ac_cv_prog_make_${ac_make}_set=no;;
11495esac
11496rm -f conftest.make
11497fi
11498if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11500$as_echo "yes" >&6; }
11501  SET_MAKE=
11502else
11503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504$as_echo "no" >&6; }
11505  SET_MAKE="MAKE=${MAKE-make}"
11506fi
11507
11508
11509ac_ext=cpp
11510ac_cpp='$CXXCPP $CPPFLAGS'
11511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11514if test -z "$CXX"; then
11515  if test -n "$CCC"; then
11516    CXX=$CCC
11517  else
11518    if test -n "$ac_tool_prefix"; then
11519  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC QCC
11520  do
11521    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11522set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524$as_echo_n "checking for $ac_word... " >&6; }
11525if ${ac_cv_prog_CXX+:} false; then :
11526  $as_echo_n "(cached) " >&6
11527else
11528  if test -n "$CXX"; then
11529  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11530else
11531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532for as_dir in $PATH
11533do
11534  IFS=$as_save_IFS
11535  test -z "$as_dir" && as_dir=.
11536    for ac_exec_ext in '' $ac_executable_extensions; do
11537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11538    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540    break 2
11541  fi
11542done
11543  done
11544IFS=$as_save_IFS
11545
11546fi
11547fi
11548CXX=$ac_cv_prog_CXX
11549if test -n "$CXX"; then
11550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11551$as_echo "$CXX" >&6; }
11552else
11553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554$as_echo "no" >&6; }
11555fi
11556
11557
11558    test -n "$CXX" && break
11559  done
11560fi
11561if test -z "$CXX"; then
11562  ac_ct_CXX=$CXX
11563  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC QCC
11564do
11565  # Extract the first word of "$ac_prog", so it can be a program name with args.
11566set dummy $ac_prog; ac_word=$2
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568$as_echo_n "checking for $ac_word... " >&6; }
11569if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11570  $as_echo_n "(cached) " >&6
11571else
11572  if test -n "$ac_ct_CXX"; then
11573  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11574else
11575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576for as_dir in $PATH
11577do
11578  IFS=$as_save_IFS
11579  test -z "$as_dir" && as_dir=.
11580    for ac_exec_ext in '' $ac_executable_extensions; do
11581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582    ac_cv_prog_ac_ct_CXX="$ac_prog"
11583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584    break 2
11585  fi
11586done
11587  done
11588IFS=$as_save_IFS
11589
11590fi
11591fi
11592ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11593if test -n "$ac_ct_CXX"; then
11594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11595$as_echo "$ac_ct_CXX" >&6; }
11596else
11597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598$as_echo "no" >&6; }
11599fi
11600
11601
11602  test -n "$ac_ct_CXX" && break
11603done
11604
11605  if test "x$ac_ct_CXX" = x; then
11606    CXX="g++"
11607  else
11608    case $cross_compiling:$ac_tool_warned in
11609yes:)
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11612ac_tool_warned=yes ;;
11613esac
11614    CXX=$ac_ct_CXX
11615  fi
11616fi
11617
11618  fi
11619fi
11620# Provide some information about the compiler.
11621$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11622set X $ac_compile
11623ac_compiler=$2
11624for ac_option in --version -v -V -qversion; do
11625  { { ac_try="$ac_compiler $ac_option >&5"
11626case "(($ac_try" in
11627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628  *) ac_try_echo=$ac_try;;
11629esac
11630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11631$as_echo "$ac_try_echo"; } >&5
11632  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11633  ac_status=$?
11634  if test -s conftest.err; then
11635    sed '10a\
11636... rest of stderr output deleted ...
11637         10q' conftest.err >conftest.er1
11638    cat conftest.er1 >&5
11639  fi
11640  rm -f conftest.er1 conftest.err
11641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11642  test $ac_status = 0; }
11643done
11644
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11646$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11647if ${ac_cv_cxx_compiler_gnu+:} false; then :
11648  $as_echo_n "(cached) " >&6
11649else
11650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651/* end confdefs.h.  */
11652
11653int
11654main ()
11655{
11656#ifndef __GNUC__
11657       choke me
11658#endif
11659
11660  ;
11661  return 0;
11662}
11663_ACEOF
11664if ac_fn_cxx_try_compile "$LINENO"; then :
11665  ac_compiler_gnu=yes
11666else
11667  ac_compiler_gnu=no
11668fi
11669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11671
11672fi
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11674$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11675if test $ac_compiler_gnu = yes; then
11676  GXX=yes
11677else
11678  GXX=
11679fi
11680ac_test_CXXFLAGS=${CXXFLAGS+set}
11681ac_save_CXXFLAGS=$CXXFLAGS
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11683$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11684if ${ac_cv_prog_cxx_g+:} false; then :
11685  $as_echo_n "(cached) " >&6
11686else
11687  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11688   ac_cxx_werror_flag=yes
11689   ac_cv_prog_cxx_g=no
11690   CXXFLAGS="-g"
11691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692/* end confdefs.h.  */
11693
11694int
11695main ()
11696{
11697
11698  ;
11699  return 0;
11700}
11701_ACEOF
11702if ac_fn_cxx_try_compile "$LINENO"; then :
11703  ac_cv_prog_cxx_g=yes
11704else
11705  CXXFLAGS=""
11706      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707/* end confdefs.h.  */
11708
11709int
11710main ()
11711{
11712
11713  ;
11714  return 0;
11715}
11716_ACEOF
11717if ac_fn_cxx_try_compile "$LINENO"; then :
11718
11719else
11720  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11721	 CXXFLAGS="-g"
11722	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723/* end confdefs.h.  */
11724
11725int
11726main ()
11727{
11728
11729  ;
11730  return 0;
11731}
11732_ACEOF
11733if ac_fn_cxx_try_compile "$LINENO"; then :
11734  ac_cv_prog_cxx_g=yes
11735fi
11736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737fi
11738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739fi
11740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11742fi
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11744$as_echo "$ac_cv_prog_cxx_g" >&6; }
11745if test "$ac_test_CXXFLAGS" = set; then
11746  CXXFLAGS=$ac_save_CXXFLAGS
11747elif test $ac_cv_prog_cxx_g = yes; then
11748  if test "$GXX" = yes; then
11749    CXXFLAGS="-g -O2"
11750  else
11751    CXXFLAGS="-g"
11752  fi
11753else
11754  if test "$GXX" = yes; then
11755    CXXFLAGS="-O2"
11756  else
11757    CXXFLAGS=
11758  fi
11759fi
11760ac_ext=c
11761ac_cpp='$CPP $CPPFLAGS'
11762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764ac_compiler_gnu=$ac_cv_c_compiler_gnu
11765
11766depcc="$CXX"  am_compiler_list=
11767
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11769$as_echo_n "checking dependency style of $depcc... " >&6; }
11770if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11771  $as_echo_n "(cached) " >&6
11772else
11773  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11774  # We make a subdir and do the tests there.  Otherwise we can end up
11775  # making bogus files that we don't know about and never remove.  For
11776  # instance it was reported that on HP-UX the gcc test will end up
11777  # making a dummy file named `D' -- because `-MD' means `put the output
11778  # in D'.
11779  rm -rf conftest.dir
11780  mkdir conftest.dir
11781  # Copy depcomp to subdir because otherwise we won't find it if we're
11782  # using a relative directory.
11783  cp "$am_depcomp" conftest.dir
11784  cd conftest.dir
11785  # We will build objects and dependencies in a subdirectory because
11786  # it helps to detect inapplicable dependency modes.  For instance
11787  # both Tru64's cc and ICC support -MD to output dependencies as a
11788  # side effect of compilation, but ICC will put the dependencies in
11789  # the current directory while Tru64 will put them in the object
11790  # directory.
11791  mkdir sub
11792
11793  am_cv_CXX_dependencies_compiler_type=none
11794  if test "$am_compiler_list" = ""; then
11795     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11796  fi
11797  am__universal=false
11798  case " $depcc " in #(
11799     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11800     esac
11801
11802  for depmode in $am_compiler_list; do
11803    # Setup a source with many dependencies, because some compilers
11804    # like to wrap large dependency lists on column 80 (with \), and
11805    # we should not choose a depcomp mode which is confused by this.
11806    #
11807    # We need to recreate these files for each test, as the compiler may
11808    # overwrite some of them when testing with obscure command lines.
11809    # This happens at least with the AIX C compiler.
11810    : > sub/conftest.c
11811    for i in 1 2 3 4 5 6; do
11812      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11813      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11814      # Solaris 8's {/usr,}/bin/sh.
11815      touch sub/conftst$i.h
11816    done
11817    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11818
11819    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11820    # mode.  It turns out that the SunPro C++ compiler does not properly
11821    # handle `-M -o', and we need to detect this.  Also, some Intel
11822    # versions had trouble with output in subdirs
11823    am__obj=sub/conftest.${OBJEXT-o}
11824    am__minus_obj="-o $am__obj"
11825    case $depmode in
11826    gcc)
11827      # This depmode causes a compiler race in universal mode.
11828      test "$am__universal" = false || continue
11829      ;;
11830    nosideeffect)
11831      # after this tag, mechanisms are not by side-effect, so they'll
11832      # only be used when explicitly requested
11833      if test "x$enable_dependency_tracking" = xyes; then
11834	continue
11835      else
11836	break
11837      fi
11838      ;;
11839    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11840      # This compiler won't grok `-c -o', but also, the minuso test has
11841      # not run yet.  These depmodes are late enough in the game, and
11842      # so weak that their functioning should not be impacted.
11843      am__obj=conftest.${OBJEXT-o}
11844      am__minus_obj=
11845      ;;
11846    none) break ;;
11847    esac
11848    if depmode=$depmode \
11849       source=sub/conftest.c object=$am__obj \
11850       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11851       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11852         >/dev/null 2>conftest.err &&
11853       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11854       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11855       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11856       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11857      # icc doesn't choke on unknown options, it will just issue warnings
11858      # or remarks (even with -Werror).  So we grep stderr for any message
11859      # that says an option was ignored or not supported.
11860      # When given -MP, icc 7.0 and 7.1 complain thusly:
11861      #   icc: Command line warning: ignoring option '-M'; no argument required
11862      # The diagnosis changed in icc 8.0:
11863      #   icc: Command line remark: option '-MP' not supported
11864      if (grep 'ignoring option' conftest.err ||
11865          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11866        am_cv_CXX_dependencies_compiler_type=$depmode
11867        break
11868      fi
11869    fi
11870  done
11871
11872  cd ..
11873  rm -rf conftest.dir
11874else
11875  am_cv_CXX_dependencies_compiler_type=none
11876fi
11877
11878fi
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11880$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11881CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11882
11883 if
11884  test "x$enable_dependency_tracking" != xno \
11885  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11886  am__fastdepCXX_TRUE=
11887  am__fastdepCXX_FALSE='#'
11888else
11889  am__fastdepCXX_TRUE='#'
11890  am__fastdepCXX_FALSE=
11891fi
11892
11893
11894
11895
11896func_stripname_cnf ()
11897{
11898  case ${2} in
11899  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11900  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11901  esac
11902} # func_stripname_cnf
11903
11904      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11905    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11906    (test "X$CXX" != "Xg++"))) ; then
11907  ac_ext=cpp
11908ac_cpp='$CXXCPP $CPPFLAGS'
11909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11913$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11914if test -z "$CXXCPP"; then
11915  if ${ac_cv_prog_CXXCPP+:} false; then :
11916  $as_echo_n "(cached) " >&6
11917else
11918      # Double quotes because CXXCPP needs to be expanded
11919    for CXXCPP in "$CXX -E" "/lib/cpp"
11920    do
11921      ac_preproc_ok=false
11922for ac_cxx_preproc_warn_flag in '' yes
11923do
11924  # Use a header file that comes with gcc, so configuring glibc
11925  # with a fresh cross-compiler works.
11926  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927  # <limits.h> exists even on freestanding compilers.
11928  # On the NeXT, cc -E runs the code through the compiler's parser,
11929  # not just through cpp. "Syntax error" is here to catch this case.
11930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931/* end confdefs.h.  */
11932#ifdef __STDC__
11933# include <limits.h>
11934#else
11935# include <assert.h>
11936#endif
11937		     Syntax error
11938_ACEOF
11939if ac_fn_cxx_try_cpp "$LINENO"; then :
11940
11941else
11942  # Broken: fails on valid input.
11943continue
11944fi
11945rm -f conftest.err conftest.i conftest.$ac_ext
11946
11947  # OK, works on sane cases.  Now check whether nonexistent headers
11948  # can be detected and how.
11949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950/* end confdefs.h.  */
11951#include <ac_nonexistent.h>
11952_ACEOF
11953if ac_fn_cxx_try_cpp "$LINENO"; then :
11954  # Broken: success on invalid input.
11955continue
11956else
11957  # Passes both tests.
11958ac_preproc_ok=:
11959break
11960fi
11961rm -f conftest.err conftest.i conftest.$ac_ext
11962
11963done
11964# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11965rm -f conftest.i conftest.err conftest.$ac_ext
11966if $ac_preproc_ok; then :
11967  break
11968fi
11969
11970    done
11971    ac_cv_prog_CXXCPP=$CXXCPP
11972
11973fi
11974  CXXCPP=$ac_cv_prog_CXXCPP
11975else
11976  ac_cv_prog_CXXCPP=$CXXCPP
11977fi
11978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11979$as_echo "$CXXCPP" >&6; }
11980ac_preproc_ok=false
11981for ac_cxx_preproc_warn_flag in '' yes
11982do
11983  # Use a header file that comes with gcc, so configuring glibc
11984  # with a fresh cross-compiler works.
11985  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11986  # <limits.h> exists even on freestanding compilers.
11987  # On the NeXT, cc -E runs the code through the compiler's parser,
11988  # not just through cpp. "Syntax error" is here to catch this case.
11989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990/* end confdefs.h.  */
11991#ifdef __STDC__
11992# include <limits.h>
11993#else
11994# include <assert.h>
11995#endif
11996		     Syntax error
11997_ACEOF
11998if ac_fn_cxx_try_cpp "$LINENO"; then :
11999
12000else
12001  # Broken: fails on valid input.
12002continue
12003fi
12004rm -f conftest.err conftest.i conftest.$ac_ext
12005
12006  # OK, works on sane cases.  Now check whether nonexistent headers
12007  # can be detected and how.
12008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009/* end confdefs.h.  */
12010#include <ac_nonexistent.h>
12011_ACEOF
12012if ac_fn_cxx_try_cpp "$LINENO"; then :
12013  # Broken: success on invalid input.
12014continue
12015else
12016  # Passes both tests.
12017ac_preproc_ok=:
12018break
12019fi
12020rm -f conftest.err conftest.i conftest.$ac_ext
12021
12022done
12023# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12024rm -f conftest.i conftest.err conftest.$ac_ext
12025if $ac_preproc_ok; then :
12026
12027else
12028  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12030as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12031See \`config.log' for more details" "$LINENO" 5; }
12032fi
12033
12034ac_ext=c
12035ac_cpp='$CPP $CPPFLAGS'
12036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039
12040else
12041  _lt_caught_CXX_error=yes
12042fi
12043
12044ac_ext=cpp
12045ac_cpp='$CXXCPP $CPPFLAGS'
12046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12049
12050archive_cmds_need_lc_CXX=no
12051allow_undefined_flag_CXX=
12052always_export_symbols_CXX=no
12053archive_expsym_cmds_CXX=
12054compiler_needs_object_CXX=no
12055export_dynamic_flag_spec_CXX=
12056hardcode_direct_CXX=no
12057hardcode_direct_absolute_CXX=no
12058hardcode_libdir_flag_spec_CXX=
12059hardcode_libdir_separator_CXX=
12060hardcode_minus_L_CXX=no
12061hardcode_shlibpath_var_CXX=unsupported
12062hardcode_automatic_CXX=no
12063inherit_rpath_CXX=no
12064module_cmds_CXX=
12065module_expsym_cmds_CXX=
12066link_all_deplibs_CXX=unknown
12067old_archive_cmds_CXX=$old_archive_cmds
12068reload_flag_CXX=$reload_flag
12069reload_cmds_CXX=$reload_cmds
12070no_undefined_flag_CXX=
12071whole_archive_flag_spec_CXX=
12072enable_shared_with_static_runtimes_CXX=no
12073
12074# Source file extension for C++ test sources.
12075ac_ext=cpp
12076
12077# Object file extension for compiled C++ test sources.
12078objext=o
12079objext_CXX=$objext
12080
12081# No sense in running all these tests if we already determined that
12082# the CXX compiler isn't working.  Some variables (like enable_shared)
12083# are currently assumed to apply to all compilers on this platform,
12084# and will be corrupted by setting them based on a non-working compiler.
12085if test "$_lt_caught_CXX_error" != yes; then
12086  # Code to be used in simple compile tests
12087  lt_simple_compile_test_code="int some_variable = 0;"
12088
12089  # Code to be used in simple link tests
12090  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12091
12092  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12093
12094
12095
12096
12097
12098
12099# If no C compiler was specified, use CC.
12100LTCC=${LTCC-"$CC"}
12101
12102# If no C compiler flags were specified, use CFLAGS.
12103LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12104
12105# Allow CC to be a program name with arguments.
12106compiler=$CC
12107
12108
12109  # save warnings/boilerplate of simple test code
12110  ac_outfile=conftest.$ac_objext
12111echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12112eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12113_lt_compiler_boilerplate=`cat conftest.err`
12114$RM conftest*
12115
12116  ac_outfile=conftest.$ac_objext
12117echo "$lt_simple_link_test_code" >conftest.$ac_ext
12118eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12119_lt_linker_boilerplate=`cat conftest.err`
12120$RM -r conftest*
12121
12122
12123  # Allow CC to be a program name with arguments.
12124  lt_save_CC=$CC
12125  lt_save_CFLAGS=$CFLAGS
12126  lt_save_LD=$LD
12127  lt_save_GCC=$GCC
12128  GCC=$GXX
12129  lt_save_with_gnu_ld=$with_gnu_ld
12130  lt_save_path_LD=$lt_cv_path_LD
12131  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12132    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12133  else
12134    $as_unset lt_cv_prog_gnu_ld
12135  fi
12136  if test -n "${lt_cv_path_LDCXX+set}"; then
12137    lt_cv_path_LD=$lt_cv_path_LDCXX
12138  else
12139    $as_unset lt_cv_path_LD
12140  fi
12141  test -z "${LDCXX+set}" || LD=$LDCXX
12142  CC=${CXX-"c++"}
12143  CFLAGS=$CXXFLAGS
12144  compiler=$CC
12145  compiler_CXX=$CC
12146  for cc_temp in $compiler""; do
12147  case $cc_temp in
12148    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12149    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12150    \-*) ;;
12151    *) break;;
12152  esac
12153done
12154cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12155
12156
12157  if test -n "$compiler"; then
12158    # We don't want -fno-exception when compiling C++ code, so set the
12159    # no_builtin_flag separately
12160    if test "$GXX" = yes; then
12161      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12162    else
12163      lt_prog_compiler_no_builtin_flag_CXX=
12164    fi
12165
12166    if test "$GXX" = yes; then
12167      # Set up default GNU C++ configuration
12168
12169
12170
12171# Check whether --with-gnu-ld was given.
12172if test "${with_gnu_ld+set}" = set; then :
12173  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12174else
12175  with_gnu_ld=no
12176fi
12177
12178ac_prog=ld
12179if test "$GCC" = yes; then
12180  # Check if gcc -print-prog-name=ld gives a path.
12181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12182$as_echo_n "checking for ld used by $CC... " >&6; }
12183  case $host in
12184  *-*-mingw*)
12185    # gcc leaves a trailing carriage return which upsets mingw
12186    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12187  *)
12188    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12189  esac
12190  case $ac_prog in
12191    # Accept absolute paths.
12192    [\\/]* | ?:[\\/]*)
12193      re_direlt='/[^/][^/]*/\.\./'
12194      # Canonicalize the pathname of ld
12195      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12196      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12197	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12198      done
12199      test -z "$LD" && LD="$ac_prog"
12200      ;;
12201  "")
12202    # If it fails, then pretend we aren't using GCC.
12203    ac_prog=ld
12204    ;;
12205  *)
12206    # If it is relative, then search for the first ld in PATH.
12207    with_gnu_ld=unknown
12208    ;;
12209  esac
12210elif test "$with_gnu_ld" = yes; then
12211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12212$as_echo_n "checking for GNU ld... " >&6; }
12213else
12214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12215$as_echo_n "checking for non-GNU ld... " >&6; }
12216fi
12217if ${lt_cv_path_LD+:} false; then :
12218  $as_echo_n "(cached) " >&6
12219else
12220  if test -z "$LD"; then
12221  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12222  for ac_dir in $PATH; do
12223    IFS="$lt_save_ifs"
12224    test -z "$ac_dir" && ac_dir=.
12225    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12226      lt_cv_path_LD="$ac_dir/$ac_prog"
12227      # Check to see if the program is GNU ld.  I'd rather use --version,
12228      # but apparently some variants of GNU ld only accept -v.
12229      # Break only if it was the GNU/non-GNU ld that we prefer.
12230      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12231      *GNU* | *'with BFD'*)
12232	test "$with_gnu_ld" != no && break
12233	;;
12234      *)
12235	test "$with_gnu_ld" != yes && break
12236	;;
12237      esac
12238    fi
12239  done
12240  IFS="$lt_save_ifs"
12241else
12242  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12243fi
12244fi
12245
12246LD="$lt_cv_path_LD"
12247if test -n "$LD"; then
12248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12249$as_echo "$LD" >&6; }
12250else
12251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252$as_echo "no" >&6; }
12253fi
12254test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12256$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12257if ${lt_cv_prog_gnu_ld+:} false; then :
12258  $as_echo_n "(cached) " >&6
12259else
12260  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12261case `$LD -v 2>&1 </dev/null` in
12262*GNU* | *'with BFD'*)
12263  lt_cv_prog_gnu_ld=yes
12264  ;;
12265*)
12266  lt_cv_prog_gnu_ld=no
12267  ;;
12268esac
12269fi
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12271$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12272with_gnu_ld=$lt_cv_prog_gnu_ld
12273
12274
12275
12276
12277
12278
12279
12280      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12281      # archiving commands below assume that GNU ld is being used.
12282      if test "$with_gnu_ld" = yes; then
12283        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12284        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'
12285
12286        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12287        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12288
12289        # If archive_cmds runs LD, not CC, wlarc should be empty
12290        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12291        #     investigate it a little bit more. (MM)
12292        wlarc='${wl}'
12293
12294        # ancient GNU ld didn't support --whole-archive et. al.
12295        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12296	  $GREP 'no-whole-archive' > /dev/null; then
12297          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12298        else
12299          whole_archive_flag_spec_CXX=
12300        fi
12301      else
12302        with_gnu_ld=no
12303        wlarc=
12304
12305        # A generic and very simple default shared library creation
12306        # command for GNU C++ for the case where it uses the native
12307        # linker, instead of GNU ld.  If possible, this setting should
12308        # overridden to take advantage of the native linker features on
12309        # the platform it is being used on.
12310        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12311      fi
12312
12313      # Commands to make compiler produce verbose output that lists
12314      # what "hidden" libraries, object files and flags are used when
12315      # linking a shared library.
12316      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12317
12318    else
12319      GXX=no
12320      with_gnu_ld=no
12321      wlarc=
12322    fi
12323
12324    # PORTME: fill in a description of your system's C++ link characteristics
12325    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12326$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12327    ld_shlibs_CXX=yes
12328    case $host_os in
12329      aix3*)
12330        # FIXME: insert proper C++ library support
12331        ld_shlibs_CXX=no
12332        ;;
12333      aix[4-9]*)
12334        if test "$host_cpu" = ia64; then
12335          # On IA64, the linker does run time linking by default, so we don't
12336          # have to do anything special.
12337          aix_use_runtimelinking=no
12338          exp_sym_flag='-Bexport'
12339          no_entry_flag=""
12340        else
12341          aix_use_runtimelinking=no
12342
12343          # Test if we are trying to use run time linking or normal
12344          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12345          # need to do runtime linking.
12346          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12347	    for ld_flag in $LDFLAGS; do
12348	      case $ld_flag in
12349	      *-brtl*)
12350	        aix_use_runtimelinking=yes
12351	        break
12352	        ;;
12353	      esac
12354	    done
12355	    ;;
12356          esac
12357
12358          exp_sym_flag='-bexport'
12359          no_entry_flag='-bnoentry'
12360        fi
12361
12362        # When large executables or shared objects are built, AIX ld can
12363        # have problems creating the table of contents.  If linking a library
12364        # or program results in "error TOC overflow" add -mminimal-toc to
12365        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12366        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12367
12368        archive_cmds_CXX=''
12369        hardcode_direct_CXX=yes
12370        hardcode_direct_absolute_CXX=yes
12371        hardcode_libdir_separator_CXX=':'
12372        link_all_deplibs_CXX=yes
12373        file_list_spec_CXX='${wl}-f,'
12374
12375        if test "$GXX" = yes; then
12376          case $host_os in aix4.[012]|aix4.[012].*)
12377          # We only want to do this on AIX 4.2 and lower, the check
12378          # below for broken collect2 doesn't work under 4.3+
12379	  collect2name=`${CC} -print-prog-name=collect2`
12380	  if test -f "$collect2name" &&
12381	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12382	  then
12383	    # We have reworked collect2
12384	    :
12385	  else
12386	    # We have old collect2
12387	    hardcode_direct_CXX=unsupported
12388	    # It fails to find uninstalled libraries when the uninstalled
12389	    # path is not listed in the libpath.  Setting hardcode_minus_L
12390	    # to unsupported forces relinking
12391	    hardcode_minus_L_CXX=yes
12392	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12393	    hardcode_libdir_separator_CXX=
12394	  fi
12395          esac
12396          shared_flag='-shared'
12397	  if test "$aix_use_runtimelinking" = yes; then
12398	    shared_flag="$shared_flag "'${wl}-G'
12399	  fi
12400        else
12401          # not using gcc
12402          if test "$host_cpu" = ia64; then
12403	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12404	  # chokes on -Wl,-G. The following line is correct:
12405	  shared_flag='-G'
12406          else
12407	    if test "$aix_use_runtimelinking" = yes; then
12408	      shared_flag='${wl}-G'
12409	    else
12410	      shared_flag='${wl}-bM:SRE'
12411	    fi
12412          fi
12413        fi
12414
12415        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12416        # It seems that -bexpall does not export symbols beginning with
12417        # underscore (_), so it is better to generate a list of symbols to
12418	# export.
12419        always_export_symbols_CXX=yes
12420        if test "$aix_use_runtimelinking" = yes; then
12421          # Warning - without using the other runtime loading flags (-brtl),
12422          # -berok will link without error, but may produce a broken library.
12423          allow_undefined_flag_CXX='-berok'
12424          # Determine the default libpath from the value encoded in an empty
12425          # executable.
12426          if test "${lt_cv_aix_libpath+set}" = set; then
12427  aix_libpath=$lt_cv_aix_libpath
12428else
12429  if ${lt_cv_aix_libpath__CXX+:} false; then :
12430  $as_echo_n "(cached) " >&6
12431else
12432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433/* end confdefs.h.  */
12434
12435int
12436main ()
12437{
12438
12439  ;
12440  return 0;
12441}
12442_ACEOF
12443if ac_fn_cxx_try_link "$LINENO"; then :
12444
12445  lt_aix_libpath_sed='
12446      /Import File Strings/,/^$/ {
12447	  /^0/ {
12448	      s/^0  *\([^ ]*\) *$/\1/
12449	      p
12450	  }
12451      }'
12452  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12453  # Check for a 64-bit object if we didn't find anything.
12454  if test -z "$lt_cv_aix_libpath__CXX"; then
12455    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12456  fi
12457fi
12458rm -f core conftest.err conftest.$ac_objext \
12459    conftest$ac_exeext conftest.$ac_ext
12460  if test -z "$lt_cv_aix_libpath__CXX"; then
12461    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12462  fi
12463
12464fi
12465
12466  aix_libpath=$lt_cv_aix_libpath__CXX
12467fi
12468
12469          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12470
12471          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"
12472        else
12473          if test "$host_cpu" = ia64; then
12474	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12475	    allow_undefined_flag_CXX="-z nodefs"
12476	    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"
12477          else
12478	    # Determine the default libpath from the value encoded in an
12479	    # empty executable.
12480	    if test "${lt_cv_aix_libpath+set}" = set; then
12481  aix_libpath=$lt_cv_aix_libpath
12482else
12483  if ${lt_cv_aix_libpath__CXX+:} false; then :
12484  $as_echo_n "(cached) " >&6
12485else
12486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487/* end confdefs.h.  */
12488
12489int
12490main ()
12491{
12492
12493  ;
12494  return 0;
12495}
12496_ACEOF
12497if ac_fn_cxx_try_link "$LINENO"; then :
12498
12499  lt_aix_libpath_sed='
12500      /Import File Strings/,/^$/ {
12501	  /^0/ {
12502	      s/^0  *\([^ ]*\) *$/\1/
12503	      p
12504	  }
12505      }'
12506  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12507  # Check for a 64-bit object if we didn't find anything.
12508  if test -z "$lt_cv_aix_libpath__CXX"; then
12509    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12510  fi
12511fi
12512rm -f core conftest.err conftest.$ac_objext \
12513    conftest$ac_exeext conftest.$ac_ext
12514  if test -z "$lt_cv_aix_libpath__CXX"; then
12515    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12516  fi
12517
12518fi
12519
12520  aix_libpath=$lt_cv_aix_libpath__CXX
12521fi
12522
12523	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12524	    # Warning - without using the other run time loading flags,
12525	    # -berok will link without error, but may produce a broken library.
12526	    no_undefined_flag_CXX=' ${wl}-bernotok'
12527	    allow_undefined_flag_CXX=' ${wl}-berok'
12528	    if test "$with_gnu_ld" = yes; then
12529	      # We only use this code for GNU lds that support --whole-archive.
12530	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12531	    else
12532	      # Exported symbols can be pulled into shared objects from archives
12533	      whole_archive_flag_spec_CXX='$convenience'
12534	    fi
12535	    archive_cmds_need_lc_CXX=yes
12536	    # This is similar to how AIX traditionally builds its shared
12537	    # libraries.
12538	    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'
12539          fi
12540        fi
12541        ;;
12542
12543      beos*)
12544	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12545	  allow_undefined_flag_CXX=unsupported
12546	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12547	  # support --undefined.  This deserves some investigation.  FIXME
12548	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12549	else
12550	  ld_shlibs_CXX=no
12551	fi
12552	;;
12553
12554      chorus*)
12555        case $cc_basename in
12556          *)
12557	  # FIXME: insert proper C++ library support
12558	  ld_shlibs_CXX=no
12559	  ;;
12560        esac
12561        ;;
12562
12563      cygwin* | mingw* | pw32* | cegcc*)
12564	case $GXX,$cc_basename in
12565	,cl* | no,cl*)
12566	  # Native MSVC
12567	  # hardcode_libdir_flag_spec is actually meaningless, as there is
12568	  # no search path for DLLs.
12569	  hardcode_libdir_flag_spec_CXX=' '
12570	  allow_undefined_flag_CXX=unsupported
12571	  always_export_symbols_CXX=yes
12572	  file_list_spec_CXX='@'
12573	  # Tell ltmain to make .lib files, not .a files.
12574	  libext=lib
12575	  # Tell ltmain to make .dll files, not .so files.
12576	  shrext_cmds=".dll"
12577	  # FIXME: Setting linknames here is a bad hack.
12578	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12579	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12580	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12581	    else
12582	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12583	    fi~
12584	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12585	    linknames='
12586	  # The linker will not automatically build a static lib if we build a DLL.
12587	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12588	  enable_shared_with_static_runtimes_CXX=yes
12589	  # Don't use ranlib
12590	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
12591	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12592	    lt_tool_outputfile="@TOOL_OUTPUT@"~
12593	    case $lt_outputfile in
12594	      *.exe|*.EXE) ;;
12595	      *)
12596		lt_outputfile="$lt_outputfile.exe"
12597		lt_tool_outputfile="$lt_tool_outputfile.exe"
12598		;;
12599	    esac~
12600	    func_to_tool_file "$lt_outputfile"~
12601	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12602	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12603	      $RM "$lt_outputfile.manifest";
12604	    fi'
12605	  ;;
12606	*)
12607	  # g++
12608	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12609	  # as there is no search path for DLLs.
12610	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12611	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12612	  allow_undefined_flag_CXX=unsupported
12613	  always_export_symbols_CXX=no
12614	  enable_shared_with_static_runtimes_CXX=yes
12615
12616	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12617	    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'
12618	    # If the export-symbols file already is a .def file (1st line
12619	    # is EXPORTS), use it as is; otherwise, prepend...
12620	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12621	      cp $export_symbols $output_objdir/$soname.def;
12622	    else
12623	      echo EXPORTS > $output_objdir/$soname.def;
12624	      cat $export_symbols >> $output_objdir/$soname.def;
12625	    fi~
12626	    $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'
12627	  else
12628	    ld_shlibs_CXX=no
12629	  fi
12630	  ;;
12631	esac
12632	;;
12633      darwin* | rhapsody*)
12634
12635
12636  archive_cmds_need_lc_CXX=no
12637  hardcode_direct_CXX=no
12638  hardcode_automatic_CXX=yes
12639  hardcode_shlibpath_var_CXX=unsupported
12640  if test "$lt_cv_ld_force_load" = "yes"; then
12641    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\"`'
12642
12643  else
12644    whole_archive_flag_spec_CXX=''
12645  fi
12646  link_all_deplibs_CXX=yes
12647  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12648  case $cc_basename in
12649     ifort*) _lt_dar_can_shared=yes ;;
12650     *) _lt_dar_can_shared=$GCC ;;
12651  esac
12652  if test "$_lt_dar_can_shared" = "yes"; then
12653    output_verbose_link_cmd=func_echo_all
12654    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}"
12655    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12656    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}"
12657    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}"
12658       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12659      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}"
12660      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}"
12661    fi
12662
12663  else
12664  ld_shlibs_CXX=no
12665  fi
12666
12667	;;
12668
12669      dgux*)
12670        case $cc_basename in
12671          ec++*)
12672	    # FIXME: insert proper C++ library support
12673	    ld_shlibs_CXX=no
12674	    ;;
12675          ghcx*)
12676	    # Green Hills C++ Compiler
12677	    # FIXME: insert proper C++ library support
12678	    ld_shlibs_CXX=no
12679	    ;;
12680          *)
12681	    # FIXME: insert proper C++ library support
12682	    ld_shlibs_CXX=no
12683	    ;;
12684        esac
12685        ;;
12686
12687      freebsd2.*)
12688        # C++ shared libraries reported to be fairly broken before
12689	# switch to ELF
12690        ld_shlibs_CXX=no
12691        ;;
12692
12693      freebsd-elf*)
12694        archive_cmds_need_lc_CXX=no
12695        ;;
12696
12697      freebsd* | dragonfly*)
12698        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12699        # conventions
12700        ld_shlibs_CXX=yes
12701        ;;
12702
12703      gnu*)
12704        ;;
12705
12706      haiku*)
12707        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12708        link_all_deplibs_CXX=yes
12709        ;;
12710
12711      hpux9*)
12712        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12713        hardcode_libdir_separator_CXX=:
12714        export_dynamic_flag_spec_CXX='${wl}-E'
12715        hardcode_direct_CXX=yes
12716        hardcode_minus_L_CXX=yes # Not in the search PATH,
12717				             # but as the default
12718				             # location of the library.
12719
12720        case $cc_basename in
12721          CC*)
12722            # FIXME: insert proper C++ library support
12723            ld_shlibs_CXX=no
12724            ;;
12725          aCC*)
12726            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'
12727            # Commands to make compiler produce verbose output that lists
12728            # what "hidden" libraries, object files and flags are used when
12729            # linking a shared library.
12730            #
12731            # There doesn't appear to be a way to prevent this compiler from
12732            # explicitly linking system object files so we need to strip them
12733            # from the output so that they don't get included in the library
12734            # dependencies.
12735            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"'
12736            ;;
12737          *)
12738            if test "$GXX" = yes; then
12739              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'
12740            else
12741              # FIXME: insert proper C++ library support
12742              ld_shlibs_CXX=no
12743            fi
12744            ;;
12745        esac
12746        ;;
12747
12748      hpux10*|hpux11*)
12749        if test $with_gnu_ld = no; then
12750	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12751	  hardcode_libdir_separator_CXX=:
12752
12753          case $host_cpu in
12754            hppa*64*|ia64*)
12755              ;;
12756            *)
12757	      export_dynamic_flag_spec_CXX='${wl}-E'
12758              ;;
12759          esac
12760        fi
12761        case $host_cpu in
12762          hppa*64*|ia64*)
12763            hardcode_direct_CXX=no
12764            hardcode_shlibpath_var_CXX=no
12765            ;;
12766          *)
12767            hardcode_direct_CXX=yes
12768            hardcode_direct_absolute_CXX=yes
12769            hardcode_minus_L_CXX=yes # Not in the search PATH,
12770					         # but as the default
12771					         # location of the library.
12772            ;;
12773        esac
12774
12775        case $cc_basename in
12776          CC*)
12777	    # FIXME: insert proper C++ library support
12778	    ld_shlibs_CXX=no
12779	    ;;
12780          aCC*)
12781	    case $host_cpu in
12782	      hppa*64*)
12783	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12784	        ;;
12785	      ia64*)
12786	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12787	        ;;
12788	      *)
12789	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12790	        ;;
12791	    esac
12792	    # Commands to make compiler produce verbose output that lists
12793	    # what "hidden" libraries, object files and flags are used when
12794	    # linking a shared library.
12795	    #
12796	    # There doesn't appear to be a way to prevent this compiler from
12797	    # explicitly linking system object files so we need to strip them
12798	    # from the output so that they don't get included in the library
12799	    # dependencies.
12800	    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"'
12801	    ;;
12802          *)
12803	    if test "$GXX" = yes; then
12804	      if test $with_gnu_ld = no; then
12805	        case $host_cpu in
12806	          hppa*64*)
12807	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12808	            ;;
12809	          ia64*)
12810	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12811	            ;;
12812	          *)
12813	            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'
12814	            ;;
12815	        esac
12816	      fi
12817	    else
12818	      # FIXME: insert proper C++ library support
12819	      ld_shlibs_CXX=no
12820	    fi
12821	    ;;
12822        esac
12823        ;;
12824
12825      interix[3-9]*)
12826	hardcode_direct_CXX=no
12827	hardcode_shlibpath_var_CXX=no
12828	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12829	export_dynamic_flag_spec_CXX='${wl}-E'
12830	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12831	# Instead, shared libraries are loaded at an image base (0x10000000 by
12832	# default) and relocated if they conflict, which is a slow very memory
12833	# consuming and fragmenting process.  To avoid this, we pick a random,
12834	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12835	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12836	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'
12837	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'
12838	;;
12839      irix5* | irix6*)
12840        case $cc_basename in
12841          CC*)
12842	    # SGI C++
12843	    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'
12844
12845	    # Archives containing C++ object files must be created using
12846	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12847	    # necessary to make sure instantiated templates are included
12848	    # in the archive.
12849	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12850	    ;;
12851          *)
12852	    if test "$GXX" = yes; then
12853	      if test "$with_gnu_ld" = no; then
12854	        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'
12855	      else
12856	        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'
12857	      fi
12858	    fi
12859	    link_all_deplibs_CXX=yes
12860	    ;;
12861        esac
12862        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12863        hardcode_libdir_separator_CXX=:
12864        inherit_rpath_CXX=yes
12865        ;;
12866
12867      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12868        case $cc_basename in
12869          KCC*)
12870	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12871
12872	    # KCC will only create a shared library if the output file
12873	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12874	    # to its proper name (with version) after linking.
12875	    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'
12876	    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'
12877	    # Commands to make compiler produce verbose output that lists
12878	    # what "hidden" libraries, object files and flags are used when
12879	    # linking a shared library.
12880	    #
12881	    # There doesn't appear to be a way to prevent this compiler from
12882	    # explicitly linking system object files so we need to strip them
12883	    # from the output so that they don't get included in the library
12884	    # dependencies.
12885	    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"'
12886
12887	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12888	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12889
12890	    # Archives containing C++ object files must be created using
12891	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12892	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12893	    ;;
12894	  icpc* | ecpc* )
12895	    # Intel C++
12896	    with_gnu_ld=yes
12897	    # version 8.0 and above of icpc choke on multiply defined symbols
12898	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12899	    # earlier do not add the objects themselves.
12900	    case `$CC -V 2>&1` in
12901	      *"Version 7."*)
12902	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12903		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'
12904		;;
12905	      *)  # Version 8.0 or newer
12906	        tmp_idyn=
12907	        case $host_cpu in
12908		  ia64*) tmp_idyn=' -i_dynamic';;
12909		esac
12910	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12911		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'
12912		;;
12913	    esac
12914	    archive_cmds_need_lc_CXX=no
12915	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12916	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12917	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12918	    ;;
12919          pgCC* | pgcpp*)
12920            # Portland Group C++ compiler
12921	    case `$CC -V` in
12922	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12923	      prelink_cmds_CXX='tpldir=Template.dir~
12924		rm -rf $tpldir~
12925		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12926		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12927	      old_archive_cmds_CXX='tpldir=Template.dir~
12928		rm -rf $tpldir~
12929		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12930		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12931		$RANLIB $oldlib'
12932	      archive_cmds_CXX='tpldir=Template.dir~
12933		rm -rf $tpldir~
12934		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12935		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12936	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12937		rm -rf $tpldir~
12938		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12939		$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'
12940	      ;;
12941	    *) # Version 6 and above use weak symbols
12942	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12943	      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'
12944	      ;;
12945	    esac
12946
12947	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12948	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12949	    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'
12950            ;;
12951	  cxx*)
12952	    # Compaq C++
12953	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12954	    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'
12955
12956	    runpath_var=LD_RUN_PATH
12957	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12958	    hardcode_libdir_separator_CXX=:
12959
12960	    # Commands to make compiler produce verbose output that lists
12961	    # what "hidden" libraries, object files and flags are used when
12962	    # linking a shared library.
12963	    #
12964	    # There doesn't appear to be a way to prevent this compiler from
12965	    # explicitly linking system object files so we need to strip them
12966	    # from the output so that they don't get included in the library
12967	    # dependencies.
12968	    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'
12969	    ;;
12970	  xl* | mpixl* | bgxl*)
12971	    # IBM XL 8.0 on PPC, with GNU ld
12972	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12973	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12974	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12975	    if test "x$supports_anon_versioning" = xyes; then
12976	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12977		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12978		echo "local: *; };" >> $output_objdir/$libname.ver~
12979		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12980	    fi
12981	    ;;
12982	  *)
12983	    case `$CC -V 2>&1 | sed 5q` in
12984	    *Sun\ C*)
12985	      # Sun C++ 5.9
12986	      no_undefined_flag_CXX=' -zdefs'
12987	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12988	      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'
12989	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12990	      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'
12991	      compiler_needs_object_CXX=yes
12992
12993	      # Not sure whether something based on
12994	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12995	      # would be better.
12996	      output_verbose_link_cmd='func_echo_all'
12997
12998	      # Archives containing C++ object files must be created using
12999	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13000	      # necessary to make sure instantiated templates are included
13001	      # in the archive.
13002	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13003	      ;;
13004	    esac
13005	    ;;
13006	esac
13007	;;
13008
13009      lynxos*)
13010        # FIXME: insert proper C++ library support
13011	ld_shlibs_CXX=no
13012	;;
13013
13014      m88k*)
13015        # FIXME: insert proper C++ library support
13016        ld_shlibs_CXX=no
13017	;;
13018
13019      mvs*)
13020        case $cc_basename in
13021          cxx*)
13022	    # FIXME: insert proper C++ library support
13023	    ld_shlibs_CXX=no
13024	    ;;
13025	  *)
13026	    # FIXME: insert proper C++ library support
13027	    ld_shlibs_CXX=no
13028	    ;;
13029	esac
13030	;;
13031
13032      netbsd*)
13033        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13034	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13035	  wlarc=
13036	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13037	  hardcode_direct_CXX=yes
13038	  hardcode_shlibpath_var_CXX=no
13039	fi
13040	# Workaround some broken pre-1.5 toolchains
13041	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13042	;;
13043
13044      *nto* | *qnx*)
13045        ld_shlibs_CXX=yes
13046	;;
13047
13048      openbsd2*)
13049        # C++ shared libraries are fairly broken
13050	ld_shlibs_CXX=no
13051	;;
13052
13053      openbsd*)
13054	if test -f /usr/libexec/ld.so; then
13055	  hardcode_direct_CXX=yes
13056	  hardcode_shlibpath_var_CXX=no
13057	  hardcode_direct_absolute_CXX=yes
13058	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13059	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13060	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13061	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13062	    export_dynamic_flag_spec_CXX='${wl}-E'
13063	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13064	  fi
13065	  output_verbose_link_cmd=func_echo_all
13066	else
13067	  ld_shlibs_CXX=no
13068	fi
13069	;;
13070
13071      osf3* | osf4* | osf5*)
13072        case $cc_basename in
13073          KCC*)
13074	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13075
13076	    # KCC will only create a shared library if the output file
13077	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13078	    # to its proper name (with version) after linking.
13079	    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'
13080
13081	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13082	    hardcode_libdir_separator_CXX=:
13083
13084	    # Archives containing C++ object files must be created using
13085	    # the KAI C++ compiler.
13086	    case $host in
13087	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13088	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13089	    esac
13090	    ;;
13091          RCC*)
13092	    # Rational C++ 2.4.1
13093	    # FIXME: insert proper C++ library support
13094	    ld_shlibs_CXX=no
13095	    ;;
13096          cxx*)
13097	    case $host in
13098	      osf3*)
13099	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13100	        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'
13101	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13102		;;
13103	      *)
13104	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13105	        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'
13106	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13107	          echo "-hidden">> $lib.exp~
13108	          $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~
13109	          $RM $lib.exp'
13110	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13111		;;
13112	    esac
13113
13114	    hardcode_libdir_separator_CXX=:
13115
13116	    # Commands to make compiler produce verbose output that lists
13117	    # what "hidden" libraries, object files and flags are used when
13118	    # linking a shared library.
13119	    #
13120	    # There doesn't appear to be a way to prevent this compiler from
13121	    # explicitly linking system object files so we need to strip them
13122	    # from the output so that they don't get included in the library
13123	    # dependencies.
13124	    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"'
13125	    ;;
13126	  *)
13127	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13128	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13129	      case $host in
13130	        osf3*)
13131	          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'
13132		  ;;
13133	        *)
13134	          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'
13135		  ;;
13136	      esac
13137
13138	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13139	      hardcode_libdir_separator_CXX=:
13140
13141	      # Commands to make compiler produce verbose output that lists
13142	      # what "hidden" libraries, object files and flags are used when
13143	      # linking a shared library.
13144	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13145
13146	    else
13147	      # FIXME: insert proper C++ library support
13148	      ld_shlibs_CXX=no
13149	    fi
13150	    ;;
13151        esac
13152        ;;
13153
13154      psos*)
13155        # FIXME: insert proper C++ library support
13156        ld_shlibs_CXX=no
13157        ;;
13158
13159      sunos4*)
13160        case $cc_basename in
13161          CC*)
13162	    # Sun C++ 4.x
13163	    # FIXME: insert proper C++ library support
13164	    ld_shlibs_CXX=no
13165	    ;;
13166          lcc*)
13167	    # Lucid
13168	    # FIXME: insert proper C++ library support
13169	    ld_shlibs_CXX=no
13170	    ;;
13171          *)
13172	    # FIXME: insert proper C++ library support
13173	    ld_shlibs_CXX=no
13174	    ;;
13175        esac
13176        ;;
13177
13178      solaris*)
13179        case $cc_basename in
13180          CC* | sunCC*)
13181	    # Sun C++ 4.2, 5.x and Centerline C++
13182            archive_cmds_need_lc_CXX=yes
13183	    no_undefined_flag_CXX=' -zdefs'
13184	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13185	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13186	      $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'
13187
13188	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13189	    hardcode_shlibpath_var_CXX=no
13190	    case $host_os in
13191	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13192	      *)
13193		# The compiler driver will combine and reorder linker options,
13194		# but understands `-z linker_flag'.
13195	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13196		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13197	        ;;
13198	    esac
13199	    link_all_deplibs_CXX=yes
13200
13201	    output_verbose_link_cmd='func_echo_all'
13202
13203	    # Archives containing C++ object files must be created using
13204	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13205	    # necessary to make sure instantiated templates are included
13206	    # in the archive.
13207	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13208	    ;;
13209          gcx*)
13210	    # Green Hills C++ Compiler
13211	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13212
13213	    # The C++ compiler must be used to create the archive.
13214	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13215	    ;;
13216          *)
13217	    # GNU C++ compiler with Solaris linker
13218	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13219	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13220	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13221	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13222	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13223		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13224
13225	        # Commands to make compiler produce verbose output that lists
13226	        # what "hidden" libraries, object files and flags are used when
13227	        # linking a shared library.
13228	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13229	      else
13230	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13231	        # platform.
13232	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13233	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13234		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13235
13236	        # Commands to make compiler produce verbose output that lists
13237	        # what "hidden" libraries, object files and flags are used when
13238	        # linking a shared library.
13239	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13240	      fi
13241
13242	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13243	      case $host_os in
13244		solaris2.[0-5] | solaris2.[0-5].*) ;;
13245		*)
13246		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13247		  ;;
13248	      esac
13249	    fi
13250	    ;;
13251        esac
13252        ;;
13253
13254    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13255      no_undefined_flag_CXX='${wl}-z,text'
13256      archive_cmds_need_lc_CXX=no
13257      hardcode_shlibpath_var_CXX=no
13258      runpath_var='LD_RUN_PATH'
13259
13260      case $cc_basename in
13261        CC*)
13262	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13263	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13264	  ;;
13265	*)
13266	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13267	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13268	  ;;
13269      esac
13270      ;;
13271
13272      sysv5* | sco3.2v5* | sco5v6*)
13273	# Note: We can NOT use -z defs as we might desire, because we do not
13274	# link with -lc, and that would cause any symbols used from libc to
13275	# always be unresolved, which means just about no library would
13276	# ever link correctly.  If we're not using GNU ld we use -z text
13277	# though, which does catch some bad symbols but isn't as heavy-handed
13278	# as -z defs.
13279	no_undefined_flag_CXX='${wl}-z,text'
13280	allow_undefined_flag_CXX='${wl}-z,nodefs'
13281	archive_cmds_need_lc_CXX=no
13282	hardcode_shlibpath_var_CXX=no
13283	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13284	hardcode_libdir_separator_CXX=':'
13285	link_all_deplibs_CXX=yes
13286	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13287	runpath_var='LD_RUN_PATH'
13288
13289	case $cc_basename in
13290          CC*)
13291	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13292	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13293	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13294	      '"$old_archive_cmds_CXX"
13295	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13296	      '"$reload_cmds_CXX"
13297	    ;;
13298	  *)
13299	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13301	    ;;
13302	esac
13303      ;;
13304
13305      tandem*)
13306        case $cc_basename in
13307          NCC*)
13308	    # NonStop-UX NCC 3.20
13309	    # FIXME: insert proper C++ library support
13310	    ld_shlibs_CXX=no
13311	    ;;
13312          *)
13313	    # FIXME: insert proper C++ library support
13314	    ld_shlibs_CXX=no
13315	    ;;
13316        esac
13317        ;;
13318
13319      vxworks*)
13320        # FIXME: insert proper C++ library support
13321        ld_shlibs_CXX=no
13322        ;;
13323
13324      *)
13325        # FIXME: insert proper C++ library support
13326        ld_shlibs_CXX=no
13327        ;;
13328    esac
13329
13330    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13331$as_echo "$ld_shlibs_CXX" >&6; }
13332    test "$ld_shlibs_CXX" = no && can_build_shared=no
13333
13334    GCC_CXX="$GXX"
13335    LD_CXX="$LD"
13336
13337    ## CAVEAT EMPTOR:
13338    ## There is no encapsulation within the following macros, do not change
13339    ## the running order or otherwise move them around unless you know exactly
13340    ## what you are doing...
13341    # Dependencies to place before and after the object being linked:
13342predep_objects_CXX=
13343postdep_objects_CXX=
13344predeps_CXX=
13345postdeps_CXX=
13346compiler_lib_search_path_CXX=
13347
13348cat > conftest.$ac_ext <<_LT_EOF
13349class Foo
13350{
13351public:
13352  Foo (void) { a = 0; }
13353private:
13354  int a;
13355};
13356_LT_EOF
13357
13358
13359_lt_libdeps_save_CFLAGS=$CFLAGS
13360case "$CC $CFLAGS " in #(
13361*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13362*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13363*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13364esac
13365
13366if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13367  (eval $ac_compile) 2>&5
13368  ac_status=$?
13369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13370  test $ac_status = 0; }; then
13371  # Parse the compiler output and extract the necessary
13372  # objects, libraries and library flags.
13373
13374  # Sentinel used to keep track of whether or not we are before
13375  # the conftest object file.
13376  pre_test_object_deps_done=no
13377
13378  for p in `eval "$output_verbose_link_cmd"`; do
13379    case ${prev}${p} in
13380
13381    -L* | -R* | -l*)
13382       # Some compilers place space between "-{L,R}" and the path.
13383       # Remove the space.
13384       if test $p = "-L" ||
13385          test $p = "-R"; then
13386	 prev=$p
13387	 continue
13388       fi
13389
13390       # Expand the sysroot to ease extracting the directories later.
13391       if test -z "$prev"; then
13392         case $p in
13393         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13394         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13395         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13396         esac
13397       fi
13398       case $p in
13399       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13400       esac
13401       if test "$pre_test_object_deps_done" = no; then
13402	 case ${prev} in
13403	 -L | -R)
13404	   # Internal compiler library paths should come after those
13405	   # provided the user.  The postdeps already come after the
13406	   # user supplied libs so there is no need to process them.
13407	   if test -z "$compiler_lib_search_path_CXX"; then
13408	     compiler_lib_search_path_CXX="${prev}${p}"
13409	   else
13410	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13411	   fi
13412	   ;;
13413	 # The "-l" case would never come before the object being
13414	 # linked, so don't bother handling this case.
13415	 esac
13416       else
13417	 if test -z "$postdeps_CXX"; then
13418	   postdeps_CXX="${prev}${p}"
13419	 else
13420	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13421	 fi
13422       fi
13423       prev=
13424       ;;
13425
13426    *.lto.$objext) ;; # Ignore GCC LTO objects
13427    *.$objext)
13428       # This assumes that the test object file only shows up
13429       # once in the compiler output.
13430       if test "$p" = "conftest.$objext"; then
13431	 pre_test_object_deps_done=yes
13432	 continue
13433       fi
13434
13435       if test "$pre_test_object_deps_done" = no; then
13436	 if test -z "$predep_objects_CXX"; then
13437	   predep_objects_CXX="$p"
13438	 else
13439	   predep_objects_CXX="$predep_objects_CXX $p"
13440	 fi
13441       else
13442	 if test -z "$postdep_objects_CXX"; then
13443	   postdep_objects_CXX="$p"
13444	 else
13445	   postdep_objects_CXX="$postdep_objects_CXX $p"
13446	 fi
13447       fi
13448       ;;
13449
13450    *) ;; # Ignore the rest.
13451
13452    esac
13453  done
13454
13455  # Clean up.
13456  rm -f a.out a.exe
13457else
13458  echo "libtool.m4: error: problem compiling CXX test program"
13459fi
13460
13461$RM -f confest.$objext
13462CFLAGS=$_lt_libdeps_save_CFLAGS
13463
13464# PORTME: override above test on systems where it is broken
13465case $host_os in
13466interix[3-9]*)
13467  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13468  # hack all around it, let's just trust "g++" to DTRT.
13469  predep_objects_CXX=
13470  postdep_objects_CXX=
13471  postdeps_CXX=
13472  ;;
13473
13474linux*)
13475  case `$CC -V 2>&1 | sed 5q` in
13476  *Sun\ C*)
13477    # Sun C++ 5.9
13478
13479    # The more standards-conforming stlport4 library is
13480    # incompatible with the Cstd library. Avoid specifying
13481    # it if it's in CXXFLAGS. Ignore libCrun as
13482    # -library=stlport4 depends on it.
13483    case " $CXX $CXXFLAGS " in
13484    *" -library=stlport4 "*)
13485      solaris_use_stlport4=yes
13486      ;;
13487    esac
13488
13489    if test "$solaris_use_stlport4" != yes; then
13490      postdeps_CXX='-library=Cstd -library=Crun'
13491    fi
13492    ;;
13493  esac
13494  ;;
13495
13496solaris*)
13497  case $cc_basename in
13498  CC* | sunCC*)
13499    # The more standards-conforming stlport4 library is
13500    # incompatible with the Cstd library. Avoid specifying
13501    # it if it's in CXXFLAGS. Ignore libCrun as
13502    # -library=stlport4 depends on it.
13503    case " $CXX $CXXFLAGS " in
13504    *" -library=stlport4 "*)
13505      solaris_use_stlport4=yes
13506      ;;
13507    esac
13508
13509    # Adding this requires a known-good setup of shared libraries for
13510    # Sun compiler versions before 5.6, else PIC objects from an old
13511    # archive will be linked into the output, leading to subtle bugs.
13512    if test "$solaris_use_stlport4" != yes; then
13513      postdeps_CXX='-library=Cstd -library=Crun'
13514    fi
13515    ;;
13516  esac
13517  ;;
13518esac
13519
13520
13521case " $postdeps_CXX " in
13522*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13523esac
13524 compiler_lib_search_dirs_CXX=
13525if test -n "${compiler_lib_search_path_CXX}"; then
13526 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13527fi
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559    lt_prog_compiler_wl_CXX=
13560lt_prog_compiler_pic_CXX=
13561lt_prog_compiler_static_CXX=
13562
13563
13564  # C++ specific cases for pic, static, wl, etc.
13565  if test "$GXX" = yes; then
13566    lt_prog_compiler_wl_CXX='-Wl,'
13567    lt_prog_compiler_static_CXX='-static'
13568
13569    case $host_os in
13570    aix*)
13571      # All AIX code is PIC.
13572      if test "$host_cpu" = ia64; then
13573	# AIX 5 now supports IA64 processor
13574	lt_prog_compiler_static_CXX='-Bstatic'
13575      fi
13576      ;;
13577
13578    amigaos*)
13579      case $host_cpu in
13580      powerpc)
13581            # see comment about AmigaOS4 .so support
13582            lt_prog_compiler_pic_CXX='-fPIC'
13583        ;;
13584      m68k)
13585            # FIXME: we need at least 68020 code to build shared libraries, but
13586            # adding the `-m68020' flag to GCC prevents building anything better,
13587            # like `-m68040'.
13588            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13589        ;;
13590      esac
13591      ;;
13592
13593    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13594      # PIC is the default for these OSes.
13595      ;;
13596    mingw* | cygwin* | os2* | pw32* | cegcc*)
13597      # This hack is so that the source file can tell whether it is being
13598      # built for inclusion in a dll (and should export symbols for example).
13599      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13600      # (--disable-auto-import) libraries
13601      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13602      ;;
13603    darwin* | rhapsody*)
13604      # PIC is the default on this platform
13605      # Common symbols not allowed in MH_DYLIB files
13606      lt_prog_compiler_pic_CXX='-fno-common'
13607      ;;
13608    *djgpp*)
13609      # DJGPP does not support shared libraries at all
13610      lt_prog_compiler_pic_CXX=
13611      ;;
13612    haiku*)
13613      # PIC is the default for Haiku.
13614      # The "-static" flag exists, but is broken.
13615      lt_prog_compiler_static_CXX=
13616      ;;
13617    interix[3-9]*)
13618      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13619      # Instead, we relocate shared libraries at runtime.
13620      ;;
13621    sysv4*MP*)
13622      if test -d /usr/nec; then
13623	lt_prog_compiler_pic_CXX=-Kconform_pic
13624      fi
13625      ;;
13626    hpux*)
13627      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13628      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13629      # sets the default TLS model and affects inlining.
13630      case $host_cpu in
13631      hppa*64*)
13632	;;
13633      *)
13634	lt_prog_compiler_pic_CXX='-fPIC'
13635	;;
13636      esac
13637      ;;
13638    *qnx* | *nto*)
13639      # QNX uses GNU C++, but need to define -shared option too, otherwise
13640      # it will coredump.
13641      lt_prog_compiler_pic_CXX='-fPIC -shared'
13642      ;;
13643    *)
13644      lt_prog_compiler_pic_CXX='-fPIC'
13645      ;;
13646    esac
13647  else
13648    case $host_os in
13649      aix[4-9]*)
13650	# All AIX code is PIC.
13651	if test "$host_cpu" = ia64; then
13652	  # AIX 5 now supports IA64 processor
13653	  lt_prog_compiler_static_CXX='-Bstatic'
13654	else
13655	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13656	fi
13657	;;
13658      chorus*)
13659	case $cc_basename in
13660	cxch68*)
13661	  # Green Hills C++ Compiler
13662	  # _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"
13663	  ;;
13664	esac
13665	;;
13666      mingw* | cygwin* | os2* | pw32* | cegcc*)
13667	# This hack is so that the source file can tell whether it is being
13668	# built for inclusion in a dll (and should export symbols for example).
13669	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13670	;;
13671      dgux*)
13672	case $cc_basename in
13673	  ec++*)
13674	    lt_prog_compiler_pic_CXX='-KPIC'
13675	    ;;
13676	  ghcx*)
13677	    # Green Hills C++ Compiler
13678	    lt_prog_compiler_pic_CXX='-pic'
13679	    ;;
13680	  *)
13681	    ;;
13682	esac
13683	;;
13684      freebsd* | dragonfly*)
13685	# FreeBSD uses GNU C++
13686	;;
13687      hpux9* | hpux10* | hpux11*)
13688	case $cc_basename in
13689	  CC*)
13690	    lt_prog_compiler_wl_CXX='-Wl,'
13691	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13692	    if test "$host_cpu" != ia64; then
13693	      lt_prog_compiler_pic_CXX='+Z'
13694	    fi
13695	    ;;
13696	  aCC*)
13697	    lt_prog_compiler_wl_CXX='-Wl,'
13698	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13699	    case $host_cpu in
13700	    hppa*64*|ia64*)
13701	      # +Z the default
13702	      ;;
13703	    *)
13704	      lt_prog_compiler_pic_CXX='+Z'
13705	      ;;
13706	    esac
13707	    ;;
13708	  *)
13709	    ;;
13710	esac
13711	;;
13712      interix*)
13713	# This is c89, which is MS Visual C++ (no shared libs)
13714	# Anyone wants to do a port?
13715	;;
13716      irix5* | irix6* | nonstopux*)
13717	case $cc_basename in
13718	  CC*)
13719	    lt_prog_compiler_wl_CXX='-Wl,'
13720	    lt_prog_compiler_static_CXX='-non_shared'
13721	    # CC pic flag -KPIC is the default.
13722	    ;;
13723	  *)
13724	    ;;
13725	esac
13726	;;
13727      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13728	case $cc_basename in
13729	  KCC*)
13730	    # KAI C++ Compiler
13731	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13732	    lt_prog_compiler_pic_CXX='-fPIC'
13733	    ;;
13734	  ecpc* )
13735	    # old Intel C++ for x86_64 which still supported -KPIC.
13736	    lt_prog_compiler_wl_CXX='-Wl,'
13737	    lt_prog_compiler_pic_CXX='-KPIC'
13738	    lt_prog_compiler_static_CXX='-static'
13739	    ;;
13740	  icpc* )
13741	    # Intel C++, used to be incompatible with GCC.
13742	    # ICC 10 doesn't accept -KPIC any more.
13743	    lt_prog_compiler_wl_CXX='-Wl,'
13744	    lt_prog_compiler_pic_CXX='-fPIC'
13745	    lt_prog_compiler_static_CXX='-static'
13746	    ;;
13747	  pgCC* | pgcpp*)
13748	    # Portland Group C++ compiler
13749	    lt_prog_compiler_wl_CXX='-Wl,'
13750	    lt_prog_compiler_pic_CXX='-fpic'
13751	    lt_prog_compiler_static_CXX='-Bstatic'
13752	    ;;
13753	  cxx*)
13754	    # Compaq C++
13755	    # Make sure the PIC flag is empty.  It appears that all Alpha
13756	    # Linux and Compaq Tru64 Unix objects are PIC.
13757	    lt_prog_compiler_pic_CXX=
13758	    lt_prog_compiler_static_CXX='-non_shared'
13759	    ;;
13760	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13761	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13762	    lt_prog_compiler_wl_CXX='-Wl,'
13763	    lt_prog_compiler_pic_CXX='-qpic'
13764	    lt_prog_compiler_static_CXX='-qstaticlink'
13765	    ;;
13766	  *)
13767	    case `$CC -V 2>&1 | sed 5q` in
13768	    *Sun\ C*)
13769	      # Sun C++ 5.9
13770	      lt_prog_compiler_pic_CXX='-KPIC'
13771	      lt_prog_compiler_static_CXX='-Bstatic'
13772	      lt_prog_compiler_wl_CXX='-Qoption ld '
13773	      ;;
13774	    esac
13775	    ;;
13776	esac
13777	;;
13778      lynxos*)
13779	;;
13780      m88k*)
13781	;;
13782      mvs*)
13783	case $cc_basename in
13784	  cxx*)
13785	    lt_prog_compiler_pic_CXX='-W c,exportall'
13786	    ;;
13787	  *)
13788	    ;;
13789	esac
13790	;;
13791      netbsd* | netbsdelf*-gnu)
13792	;;
13793      *qnx* | *nto*)
13794        # QNX uses GNU C++, but need to define -shared option too, otherwise
13795        # it will coredump.
13796        lt_prog_compiler_pic_CXX='-fPIC -shared'
13797        ;;
13798      osf3* | osf4* | osf5*)
13799	case $cc_basename in
13800	  KCC*)
13801	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13802	    ;;
13803	  RCC*)
13804	    # Rational C++ 2.4.1
13805	    lt_prog_compiler_pic_CXX='-pic'
13806	    ;;
13807	  cxx*)
13808	    # Digital/Compaq C++
13809	    lt_prog_compiler_wl_CXX='-Wl,'
13810	    # Make sure the PIC flag is empty.  It appears that all Alpha
13811	    # Linux and Compaq Tru64 Unix objects are PIC.
13812	    lt_prog_compiler_pic_CXX=
13813	    lt_prog_compiler_static_CXX='-non_shared'
13814	    ;;
13815	  *)
13816	    ;;
13817	esac
13818	;;
13819      psos*)
13820	;;
13821      solaris*)
13822	case $cc_basename in
13823	  CC* | sunCC*)
13824	    # Sun C++ 4.2, 5.x and Centerline C++
13825	    lt_prog_compiler_pic_CXX='-KPIC'
13826	    lt_prog_compiler_static_CXX='-Bstatic'
13827	    lt_prog_compiler_wl_CXX='-Qoption ld '
13828	    ;;
13829	  gcx*)
13830	    # Green Hills C++ Compiler
13831	    lt_prog_compiler_pic_CXX='-PIC'
13832	    ;;
13833	  *)
13834	    ;;
13835	esac
13836	;;
13837      sunos4*)
13838	case $cc_basename in
13839	  CC*)
13840	    # Sun C++ 4.x
13841	    lt_prog_compiler_pic_CXX='-pic'
13842	    lt_prog_compiler_static_CXX='-Bstatic'
13843	    ;;
13844	  lcc*)
13845	    # Lucid
13846	    lt_prog_compiler_pic_CXX='-pic'
13847	    ;;
13848	  *)
13849	    ;;
13850	esac
13851	;;
13852      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13853	case $cc_basename in
13854	  CC*)
13855	    lt_prog_compiler_wl_CXX='-Wl,'
13856	    lt_prog_compiler_pic_CXX='-KPIC'
13857	    lt_prog_compiler_static_CXX='-Bstatic'
13858	    ;;
13859	esac
13860	;;
13861      tandem*)
13862	case $cc_basename in
13863	  NCC*)
13864	    # NonStop-UX NCC 3.20
13865	    lt_prog_compiler_pic_CXX='-KPIC'
13866	    ;;
13867	  *)
13868	    ;;
13869	esac
13870	;;
13871      vxworks*)
13872	;;
13873      *)
13874	lt_prog_compiler_can_build_shared_CXX=no
13875	;;
13876    esac
13877  fi
13878
13879case $host_os in
13880  # For platforms which do not support PIC, -DPIC is meaningless:
13881  *djgpp*)
13882    lt_prog_compiler_pic_CXX=
13883    ;;
13884  *)
13885    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13886    ;;
13887esac
13888
13889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13890$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13891if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13892  $as_echo_n "(cached) " >&6
13893else
13894  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13895fi
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13897$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13898lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13899
13900#
13901# Check to make sure the PIC flag actually works.
13902#
13903if test -n "$lt_prog_compiler_pic_CXX"; then
13904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13905$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13906if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13907  $as_echo_n "(cached) " >&6
13908else
13909  lt_cv_prog_compiler_pic_works_CXX=no
13910   ac_outfile=conftest.$ac_objext
13911   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13912   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13913   # Insert the option either (1) after the last *FLAGS variable, or
13914   # (2) before a word containing "conftest.", or (3) at the end.
13915   # Note that $ac_compile itself does not contain backslashes and begins
13916   # with a dollar sign (not a hyphen), so the echo should work correctly.
13917   # The option is referenced via a variable to avoid confusing sed.
13918   lt_compile=`echo "$ac_compile" | $SED \
13919   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13920   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13921   -e 's:$: $lt_compiler_flag:'`
13922   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13923   (eval "$lt_compile" 2>conftest.err)
13924   ac_status=$?
13925   cat conftest.err >&5
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   if (exit $ac_status) && test -s "$ac_outfile"; then
13928     # The compiler can only warn and ignore the option if not recognized
13929     # So say no if there are warnings other than the usual output.
13930     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13931     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13932     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13933       lt_cv_prog_compiler_pic_works_CXX=yes
13934     fi
13935   fi
13936   $RM conftest*
13937
13938fi
13939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13940$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13941
13942if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13943    case $lt_prog_compiler_pic_CXX in
13944     "" | " "*) ;;
13945     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13946     esac
13947else
13948    lt_prog_compiler_pic_CXX=
13949     lt_prog_compiler_can_build_shared_CXX=no
13950fi
13951
13952fi
13953
13954
13955
13956
13957
13958#
13959# Check to make sure the static flag actually works.
13960#
13961wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13963$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13964if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13965  $as_echo_n "(cached) " >&6
13966else
13967  lt_cv_prog_compiler_static_works_CXX=no
13968   save_LDFLAGS="$LDFLAGS"
13969   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13970   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13971   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13972     # The linker can only warn and ignore the option if not recognized
13973     # So say no if there are warnings
13974     if test -s conftest.err; then
13975       # Append any errors to the config.log.
13976       cat conftest.err 1>&5
13977       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13978       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13979       if diff conftest.exp conftest.er2 >/dev/null; then
13980         lt_cv_prog_compiler_static_works_CXX=yes
13981       fi
13982     else
13983       lt_cv_prog_compiler_static_works_CXX=yes
13984     fi
13985   fi
13986   $RM -r conftest*
13987   LDFLAGS="$save_LDFLAGS"
13988
13989fi
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13991$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13992
13993if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13994    :
13995else
13996    lt_prog_compiler_static_CXX=
13997fi
13998
13999
14000
14001
14002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14003$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14004if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14005  $as_echo_n "(cached) " >&6
14006else
14007  lt_cv_prog_compiler_c_o_CXX=no
14008   $RM -r conftest 2>/dev/null
14009   mkdir conftest
14010   cd conftest
14011   mkdir out
14012   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14013
14014   lt_compiler_flag="-o out/conftest2.$ac_objext"
14015   # Insert the option either (1) after the last *FLAGS variable, or
14016   # (2) before a word containing "conftest.", or (3) at the end.
14017   # Note that $ac_compile itself does not contain backslashes and begins
14018   # with a dollar sign (not a hyphen), so the echo should work correctly.
14019   lt_compile=`echo "$ac_compile" | $SED \
14020   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14021   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14022   -e 's:$: $lt_compiler_flag:'`
14023   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14024   (eval "$lt_compile" 2>out/conftest.err)
14025   ac_status=$?
14026   cat out/conftest.err >&5
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14029   then
14030     # The compiler can only warn and ignore the option if not recognized
14031     # So say no if there are warnings
14032     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14033     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14034     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14035       lt_cv_prog_compiler_c_o_CXX=yes
14036     fi
14037   fi
14038   chmod u+w . 2>&5
14039   $RM conftest*
14040   # SGI C++ compiler will create directory out/ii_files/ for
14041   # template instantiation
14042   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14043   $RM out/* && rmdir out
14044   cd ..
14045   $RM -r conftest
14046   $RM conftest*
14047
14048fi
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14050$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14051
14052
14053
14054    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14055$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14056if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14057  $as_echo_n "(cached) " >&6
14058else
14059  lt_cv_prog_compiler_c_o_CXX=no
14060   $RM -r conftest 2>/dev/null
14061   mkdir conftest
14062   cd conftest
14063   mkdir out
14064   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14065
14066   lt_compiler_flag="-o out/conftest2.$ac_objext"
14067   # Insert the option either (1) after the last *FLAGS variable, or
14068   # (2) before a word containing "conftest.", or (3) at the end.
14069   # Note that $ac_compile itself does not contain backslashes and begins
14070   # with a dollar sign (not a hyphen), so the echo should work correctly.
14071   lt_compile=`echo "$ac_compile" | $SED \
14072   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14073   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14074   -e 's:$: $lt_compiler_flag:'`
14075   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14076   (eval "$lt_compile" 2>out/conftest.err)
14077   ac_status=$?
14078   cat out/conftest.err >&5
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14081   then
14082     # The compiler can only warn and ignore the option if not recognized
14083     # So say no if there are warnings
14084     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14085     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14086     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14087       lt_cv_prog_compiler_c_o_CXX=yes
14088     fi
14089   fi
14090   chmod u+w . 2>&5
14091   $RM conftest*
14092   # SGI C++ compiler will create directory out/ii_files/ for
14093   # template instantiation
14094   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14095   $RM out/* && rmdir out
14096   cd ..
14097   $RM -r conftest
14098   $RM conftest*
14099
14100fi
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14102$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14103
14104
14105
14106
14107hard_links="nottested"
14108if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14109  # do not overwrite the value of need_locks provided by the user
14110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14111$as_echo_n "checking if we can lock with hard links... " >&6; }
14112  hard_links=yes
14113  $RM conftest*
14114  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14115  touch conftest.a
14116  ln conftest.a conftest.b 2>&5 || hard_links=no
14117  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14119$as_echo "$hard_links" >&6; }
14120  if test "$hard_links" = no; then
14121    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14122$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14123    need_locks=warn
14124  fi
14125else
14126  need_locks=no
14127fi
14128
14129
14130
14131    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14132$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14133
14134  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14135  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14136  case $host_os in
14137  aix[4-9]*)
14138    # If we're using GNU nm, then we don't want the "-C" option.
14139    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14140    # Also, AIX nm treats weak defined symbols like other global defined
14141    # symbols, whereas GNU nm marks them as "W".
14142    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14143      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'
14144    else
14145      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'
14146    fi
14147    ;;
14148  pw32*)
14149    export_symbols_cmds_CXX="$ltdll_cmds"
14150    ;;
14151  cygwin* | mingw* | cegcc*)
14152    case $cc_basename in
14153    cl*)
14154      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14155      ;;
14156    *)
14157      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'
14158      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14159      ;;
14160    esac
14161    ;;
14162  linux* | k*bsd*-gnu | gnu*)
14163    link_all_deplibs_CXX=no
14164    ;;
14165  *)
14166    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14167    ;;
14168  esac
14169
14170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14171$as_echo "$ld_shlibs_CXX" >&6; }
14172test "$ld_shlibs_CXX" = no && can_build_shared=no
14173
14174with_gnu_ld_CXX=$with_gnu_ld
14175
14176
14177
14178
14179
14180
14181#
14182# Do we need to explicitly link libc?
14183#
14184case "x$archive_cmds_need_lc_CXX" in
14185x|xyes)
14186  # Assume -lc should be added
14187  archive_cmds_need_lc_CXX=yes
14188
14189  if test "$enable_shared" = yes && test "$GCC" = yes; then
14190    case $archive_cmds_CXX in
14191    *'~'*)
14192      # FIXME: we may have to deal with multi-command sequences.
14193      ;;
14194    '$CC '*)
14195      # Test whether the compiler implicitly links with -lc since on some
14196      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14197      # to ld, don't add -lc before -lgcc.
14198      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14199$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14200if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14201  $as_echo_n "(cached) " >&6
14202else
14203  $RM conftest*
14204	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14205
14206	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14207  (eval $ac_compile) 2>&5
14208  ac_status=$?
14209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14210  test $ac_status = 0; } 2>conftest.err; then
14211	  soname=conftest
14212	  lib=conftest
14213	  libobjs=conftest.$ac_objext
14214	  deplibs=
14215	  wl=$lt_prog_compiler_wl_CXX
14216	  pic_flag=$lt_prog_compiler_pic_CXX
14217	  compiler_flags=-v
14218	  linker_flags=-v
14219	  verstring=
14220	  output_objdir=.
14221	  libname=conftest
14222	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14223	  allow_undefined_flag_CXX=
14224	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14225  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14226  ac_status=$?
14227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228  test $ac_status = 0; }
14229	  then
14230	    lt_cv_archive_cmds_need_lc_CXX=no
14231	  else
14232	    lt_cv_archive_cmds_need_lc_CXX=yes
14233	  fi
14234	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14235	else
14236	  cat conftest.err 1>&5
14237	fi
14238	$RM conftest*
14239
14240fi
14241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14242$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14243      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14244      ;;
14245    esac
14246  fi
14247  ;;
14248esac
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
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    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14312$as_echo_n "checking dynamic linker characteristics... " >&6; }
14313
14314library_names_spec=
14315libname_spec='lib$name'
14316soname_spec=
14317shrext_cmds=".so"
14318postinstall_cmds=
14319postuninstall_cmds=
14320finish_cmds=
14321finish_eval=
14322shlibpath_var=
14323shlibpath_overrides_runpath=unknown
14324version_type=none
14325dynamic_linker="$host_os ld.so"
14326sys_lib_dlsearch_path_spec="/lib /usr/lib"
14327need_lib_prefix=unknown
14328hardcode_into_libs=no
14329
14330# when you set need_version to no, make sure it does not cause -set_version
14331# flags to be left without arguments
14332need_version=unknown
14333
14334case $host_os in
14335aix3*)
14336  version_type=linux # correct to gnu/linux during the next big refactor
14337  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14338  shlibpath_var=LIBPATH
14339
14340  # AIX 3 has no versioning support, so we append a major version to the name.
14341  soname_spec='${libname}${release}${shared_ext}$major'
14342  ;;
14343
14344aix[4-9]*)
14345  version_type=linux # correct to gnu/linux during the next big refactor
14346  need_lib_prefix=no
14347  need_version=no
14348  hardcode_into_libs=yes
14349  if test "$host_cpu" = ia64; then
14350    # AIX 5 supports IA64
14351    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14352    shlibpath_var=LD_LIBRARY_PATH
14353  else
14354    # With GCC up to 2.95.x, collect2 would create an import file
14355    # for dependence libraries.  The import file would start with
14356    # the line `#! .'.  This would cause the generated library to
14357    # depend on `.', always an invalid library.  This was fixed in
14358    # development snapshots of GCC prior to 3.0.
14359    case $host_os in
14360      aix4 | aix4.[01] | aix4.[01].*)
14361      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14362	   echo ' yes '
14363	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14364	:
14365      else
14366	can_build_shared=no
14367      fi
14368      ;;
14369    esac
14370    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14371    # soname into executable. Probably we can add versioning support to
14372    # collect2, so additional links can be useful in future.
14373    if test "$aix_use_runtimelinking" = yes; then
14374      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14375      # instead of lib<name>.a to let people know that these are not
14376      # typical AIX shared libraries.
14377      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14378    else
14379      # We preserve .a as extension for shared libraries through AIX4.2
14380      # and later when we are not doing run time linking.
14381      library_names_spec='${libname}${release}.a $libname.a'
14382      soname_spec='${libname}${release}${shared_ext}$major'
14383    fi
14384    shlibpath_var=LIBPATH
14385  fi
14386  ;;
14387
14388amigaos*)
14389  case $host_cpu in
14390  powerpc)
14391    # Since July 2007 AmigaOS4 officially supports .so libraries.
14392    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394    ;;
14395  m68k)
14396    library_names_spec='$libname.ixlibrary $libname.a'
14397    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14398    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'
14399    ;;
14400  esac
14401  ;;
14402
14403beos*)
14404  library_names_spec='${libname}${shared_ext}'
14405  dynamic_linker="$host_os ld.so"
14406  shlibpath_var=LIBRARY_PATH
14407  ;;
14408
14409bsdi[45]*)
14410  version_type=linux # correct to gnu/linux during the next big refactor
14411  need_version=no
14412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413  soname_spec='${libname}${release}${shared_ext}$major'
14414  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14415  shlibpath_var=LD_LIBRARY_PATH
14416  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14417  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14418  # the default ld.so.conf also contains /usr/contrib/lib and
14419  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14420  # libtool to hard-code these into programs
14421  ;;
14422
14423cygwin* | mingw* | pw32* | cegcc*)
14424  version_type=windows
14425  shrext_cmds=".dll"
14426  need_version=no
14427  need_lib_prefix=no
14428
14429  case $GCC,$cc_basename in
14430  yes,*)
14431    # gcc
14432    library_names_spec='$libname.dll.a'
14433    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14434    postinstall_cmds='base_file=`basename \${file}`~
14435      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14436      dldir=$destdir/`dirname \$dlpath`~
14437      test -d \$dldir || mkdir -p \$dldir~
14438      $install_prog $dir/$dlname \$dldir/$dlname~
14439      chmod a+x \$dldir/$dlname~
14440      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14441        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14442      fi'
14443    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14444      dlpath=$dir/\$dldll~
14445       $RM \$dlpath'
14446    shlibpath_overrides_runpath=yes
14447
14448    case $host_os in
14449    cygwin*)
14450      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14451      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14452
14453      ;;
14454    mingw* | cegcc*)
14455      # MinGW DLLs use traditional 'lib' prefix
14456      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14457      ;;
14458    pw32*)
14459      # pw32 DLLs use 'pw' prefix rather than 'lib'
14460      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14461      ;;
14462    esac
14463    dynamic_linker='Win32 ld.exe'
14464    ;;
14465
14466  *,cl*)
14467    # Native MSVC
14468    libname_spec='$name'
14469    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14470    library_names_spec='${libname}.dll.lib'
14471
14472    case $build_os in
14473    mingw*)
14474      sys_lib_search_path_spec=
14475      lt_save_ifs=$IFS
14476      IFS=';'
14477      for lt_path in $LIB
14478      do
14479        IFS=$lt_save_ifs
14480        # Let DOS variable expansion print the short 8.3 style file name.
14481        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14482        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14483      done
14484      IFS=$lt_save_ifs
14485      # Convert to MSYS style.
14486      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14487      ;;
14488    cygwin*)
14489      # Convert to unix form, then to dos form, then back to unix form
14490      # but this time dos style (no spaces!) so that the unix form looks
14491      # like /cygdrive/c/PROGRA~1:/cygdr...
14492      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14493      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14494      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14495      ;;
14496    *)
14497      sys_lib_search_path_spec="$LIB"
14498      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14499        # It is most probably a Windows format PATH.
14500        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14501      else
14502        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14503      fi
14504      # FIXME: find the short name or the path components, as spaces are
14505      # common. (e.g. "Program Files" -> "PROGRA~1")
14506      ;;
14507    esac
14508
14509    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14510    postinstall_cmds='base_file=`basename \${file}`~
14511      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14512      dldir=$destdir/`dirname \$dlpath`~
14513      test -d \$dldir || mkdir -p \$dldir~
14514      $install_prog $dir/$dlname \$dldir/$dlname'
14515    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14516      dlpath=$dir/\$dldll~
14517       $RM \$dlpath'
14518    shlibpath_overrides_runpath=yes
14519    dynamic_linker='Win32 link.exe'
14520    ;;
14521
14522  *)
14523    # Assume MSVC wrapper
14524    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14525    dynamic_linker='Win32 ld.exe'
14526    ;;
14527  esac
14528  # FIXME: first we should search . and the directory the executable is in
14529  shlibpath_var=PATH
14530  ;;
14531
14532darwin* | rhapsody*)
14533  dynamic_linker="$host_os dyld"
14534  version_type=darwin
14535  need_lib_prefix=no
14536  need_version=no
14537  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14538  soname_spec='${libname}${release}${major}$shared_ext'
14539  shlibpath_overrides_runpath=yes
14540  shlibpath_var=DYLD_LIBRARY_PATH
14541  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14542
14543  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14544  ;;
14545
14546dgux*)
14547  version_type=linux # correct to gnu/linux during the next big refactor
14548  need_lib_prefix=no
14549  need_version=no
14550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14551  soname_spec='${libname}${release}${shared_ext}$major'
14552  shlibpath_var=LD_LIBRARY_PATH
14553  ;;
14554
14555freebsd* | dragonfly*)
14556  # DragonFly does not have aout.  When/if they implement a new
14557  # versioning mechanism, adjust this.
14558  if test -x /usr/bin/objformat; then
14559    objformat=`/usr/bin/objformat`
14560  else
14561    case $host_os in
14562    freebsd[23].*) objformat=aout ;;
14563    *) objformat=elf ;;
14564    esac
14565  fi
14566  version_type=freebsd-$objformat
14567  case $version_type in
14568    freebsd-elf*)
14569      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14570      need_version=no
14571      need_lib_prefix=no
14572      ;;
14573    freebsd-*)
14574      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14575      need_version=yes
14576      ;;
14577  esac
14578  shlibpath_var=LD_LIBRARY_PATH
14579  case $host_os in
14580  freebsd2.*)
14581    shlibpath_overrides_runpath=yes
14582    ;;
14583  freebsd3.[01]* | freebsdelf3.[01]*)
14584    shlibpath_overrides_runpath=yes
14585    hardcode_into_libs=yes
14586    ;;
14587  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14588  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14589    shlibpath_overrides_runpath=no
14590    hardcode_into_libs=yes
14591    ;;
14592  *) # from 4.6 on, and DragonFly
14593    shlibpath_overrides_runpath=yes
14594    hardcode_into_libs=yes
14595    ;;
14596  esac
14597  ;;
14598
14599gnu*)
14600  version_type=linux # correct to gnu/linux during the next big refactor
14601  need_lib_prefix=no
14602  need_version=no
14603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14604  soname_spec='${libname}${release}${shared_ext}$major'
14605  shlibpath_var=LD_LIBRARY_PATH
14606  shlibpath_overrides_runpath=no
14607  hardcode_into_libs=yes
14608  ;;
14609
14610haiku*)
14611  version_type=linux # correct to gnu/linux during the next big refactor
14612  need_lib_prefix=no
14613  need_version=no
14614  dynamic_linker="$host_os runtime_loader"
14615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14616  soname_spec='${libname}${release}${shared_ext}$major'
14617  shlibpath_var=LIBRARY_PATH
14618  shlibpath_overrides_runpath=yes
14619  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14620  hardcode_into_libs=yes
14621  ;;
14622
14623hpux9* | hpux10* | hpux11*)
14624  # Give a soname corresponding to the major version so that dld.sl refuses to
14625  # link against other versions.
14626  version_type=sunos
14627  need_lib_prefix=no
14628  need_version=no
14629  case $host_cpu in
14630  ia64*)
14631    shrext_cmds='.so'
14632    hardcode_into_libs=yes
14633    dynamic_linker="$host_os dld.so"
14634    shlibpath_var=LD_LIBRARY_PATH
14635    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14636    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14637    soname_spec='${libname}${release}${shared_ext}$major'
14638    if test "X$HPUX_IA64_MODE" = X32; then
14639      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14640    else
14641      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14642    fi
14643    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14644    ;;
14645  hppa*64*)
14646    shrext_cmds='.sl'
14647    hardcode_into_libs=yes
14648    dynamic_linker="$host_os dld.sl"
14649    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14650    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14651    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652    soname_spec='${libname}${release}${shared_ext}$major'
14653    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14654    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14655    ;;
14656  *)
14657    shrext_cmds='.sl'
14658    dynamic_linker="$host_os dld.sl"
14659    shlibpath_var=SHLIB_PATH
14660    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14661    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662    soname_spec='${libname}${release}${shared_ext}$major'
14663    ;;
14664  esac
14665  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14666  postinstall_cmds='chmod 555 $lib'
14667  # or fails outright, so override atomically:
14668  install_override_mode=555
14669  ;;
14670
14671interix[3-9]*)
14672  version_type=linux # correct to gnu/linux during the next big refactor
14673  need_lib_prefix=no
14674  need_version=no
14675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14676  soname_spec='${libname}${release}${shared_ext}$major'
14677  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14678  shlibpath_var=LD_LIBRARY_PATH
14679  shlibpath_overrides_runpath=no
14680  hardcode_into_libs=yes
14681  ;;
14682
14683irix5* | irix6* | nonstopux*)
14684  case $host_os in
14685    nonstopux*) version_type=nonstopux ;;
14686    *)
14687	if test "$lt_cv_prog_gnu_ld" = yes; then
14688		version_type=linux # correct to gnu/linux during the next big refactor
14689	else
14690		version_type=irix
14691	fi ;;
14692  esac
14693  need_lib_prefix=no
14694  need_version=no
14695  soname_spec='${libname}${release}${shared_ext}$major'
14696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14697  case $host_os in
14698  irix5* | nonstopux*)
14699    libsuff= shlibsuff=
14700    ;;
14701  *)
14702    case $LD in # libtool.m4 will add one of these switches to LD
14703    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14704      libsuff= shlibsuff= libmagic=32-bit;;
14705    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14706      libsuff=32 shlibsuff=N32 libmagic=N32;;
14707    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14708      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14709    *) libsuff= shlibsuff= libmagic=never-match;;
14710    esac
14711    ;;
14712  esac
14713  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14714  shlibpath_overrides_runpath=no
14715  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14716  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14717  hardcode_into_libs=yes
14718  ;;
14719
14720# No shared lib support for Linux oldld, aout, or coff.
14721linux*oldld* | linux*aout* | linux*coff*)
14722  dynamic_linker=no
14723  ;;
14724
14725# This must be glibc/ELF.
14726linux* | k*bsd*-gnu | kopensolaris*-gnu)
14727  version_type=linux # correct to gnu/linux during the next big refactor
14728  need_lib_prefix=no
14729  need_version=no
14730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731  soname_spec='${libname}${release}${shared_ext}$major'
14732  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14733  shlibpath_var=LD_LIBRARY_PATH
14734  shlibpath_overrides_runpath=no
14735
14736  # Some binutils ld are patched to set DT_RUNPATH
14737  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14738  $as_echo_n "(cached) " >&6
14739else
14740  lt_cv_shlibpath_overrides_runpath=no
14741    save_LDFLAGS=$LDFLAGS
14742    save_libdir=$libdir
14743    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14744	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14745    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746/* end confdefs.h.  */
14747
14748int
14749main ()
14750{
14751
14752  ;
14753  return 0;
14754}
14755_ACEOF
14756if ac_fn_cxx_try_link "$LINENO"; then :
14757  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14758  lt_cv_shlibpath_overrides_runpath=yes
14759fi
14760fi
14761rm -f core conftest.err conftest.$ac_objext \
14762    conftest$ac_exeext conftest.$ac_ext
14763    LDFLAGS=$save_LDFLAGS
14764    libdir=$save_libdir
14765
14766fi
14767
14768  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14769
14770  # This implies no fast_install, which is unacceptable.
14771  # Some rework will be needed to allow for fast_install
14772  # before this can be enabled.
14773  hardcode_into_libs=yes
14774
14775  # Append ld.so.conf contents to the search path
14776  if test -f /etc/ld.so.conf; then
14777    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' ' '`
14778    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14779  fi
14780
14781  # We used to test for /lib/ld.so.1 and disable shared libraries on
14782  # powerpc, because MkLinux only supported shared libraries with the
14783  # GNU dynamic linker.  Since this was broken with cross compilers,
14784  # most powerpc-linux boxes support dynamic linking these days and
14785  # people can always --disable-shared, the test was removed, and we
14786  # assume the GNU/Linux dynamic linker is in use.
14787  dynamic_linker='GNU/Linux ld.so'
14788  ;;
14789
14790netbsdelf*-gnu)
14791  version_type=linux
14792  need_lib_prefix=no
14793  need_version=no
14794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14795  soname_spec='${libname}${release}${shared_ext}$major'
14796  shlibpath_var=LD_LIBRARY_PATH
14797  shlibpath_overrides_runpath=no
14798  hardcode_into_libs=yes
14799  dynamic_linker='NetBSD ld.elf_so'
14800  ;;
14801
14802netbsd*)
14803  version_type=sunos
14804  need_lib_prefix=no
14805  need_version=no
14806  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14807    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14808    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14809    dynamic_linker='NetBSD (a.out) ld.so'
14810  else
14811    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14812    soname_spec='${libname}${release}${shared_ext}$major'
14813    dynamic_linker='NetBSD ld.elf_so'
14814  fi
14815  shlibpath_var=LD_LIBRARY_PATH
14816  shlibpath_overrides_runpath=yes
14817  hardcode_into_libs=yes
14818  ;;
14819
14820newsos6)
14821  version_type=linux # correct to gnu/linux during the next big refactor
14822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823  shlibpath_var=LD_LIBRARY_PATH
14824  shlibpath_overrides_runpath=yes
14825  ;;
14826
14827*nto* | *qnx*)
14828  version_type=qnx
14829  need_lib_prefix=no
14830  need_version=no
14831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14832  soname_spec='${libname}${release}${shared_ext}$major'
14833  shlibpath_var=LD_LIBRARY_PATH
14834  shlibpath_overrides_runpath=no
14835  hardcode_into_libs=yes
14836  dynamic_linker='ldqnx.so'
14837  ;;
14838
14839openbsd*)
14840  version_type=sunos
14841  sys_lib_dlsearch_path_spec="/usr/lib"
14842  need_lib_prefix=no
14843  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14844  case $host_os in
14845    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14846    *)				need_version=no  ;;
14847  esac
14848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14849  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14850  shlibpath_var=LD_LIBRARY_PATH
14851  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14852    case $host_os in
14853      openbsd2.[89] | openbsd2.[89].*)
14854	shlibpath_overrides_runpath=no
14855	;;
14856      *)
14857	shlibpath_overrides_runpath=yes
14858	;;
14859      esac
14860  else
14861    shlibpath_overrides_runpath=yes
14862  fi
14863  ;;
14864
14865os2*)
14866  libname_spec='$name'
14867  shrext_cmds=".dll"
14868  need_lib_prefix=no
14869  library_names_spec='$libname${shared_ext} $libname.a'
14870  dynamic_linker='OS/2 ld.exe'
14871  shlibpath_var=LIBPATH
14872  ;;
14873
14874osf3* | osf4* | osf5*)
14875  version_type=osf
14876  need_lib_prefix=no
14877  need_version=no
14878  soname_spec='${libname}${release}${shared_ext}$major'
14879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880  shlibpath_var=LD_LIBRARY_PATH
14881  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14882  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14883  ;;
14884
14885rdos*)
14886  dynamic_linker=no
14887  ;;
14888
14889solaris*)
14890  version_type=linux # correct to gnu/linux during the next big refactor
14891  need_lib_prefix=no
14892  need_version=no
14893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894  soname_spec='${libname}${release}${shared_ext}$major'
14895  shlibpath_var=LD_LIBRARY_PATH
14896  shlibpath_overrides_runpath=yes
14897  hardcode_into_libs=yes
14898  # ldd complains unless libraries are executable
14899  postinstall_cmds='chmod +x $lib'
14900  ;;
14901
14902sunos4*)
14903  version_type=sunos
14904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14905  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14906  shlibpath_var=LD_LIBRARY_PATH
14907  shlibpath_overrides_runpath=yes
14908  if test "$with_gnu_ld" = yes; then
14909    need_lib_prefix=no
14910  fi
14911  need_version=yes
14912  ;;
14913
14914sysv4 | sysv4.3*)
14915  version_type=linux # correct to gnu/linux during the next big refactor
14916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917  soname_spec='${libname}${release}${shared_ext}$major'
14918  shlibpath_var=LD_LIBRARY_PATH
14919  case $host_vendor in
14920    sni)
14921      shlibpath_overrides_runpath=no
14922      need_lib_prefix=no
14923      runpath_var=LD_RUN_PATH
14924      ;;
14925    siemens)
14926      need_lib_prefix=no
14927      ;;
14928    motorola)
14929      need_lib_prefix=no
14930      need_version=no
14931      shlibpath_overrides_runpath=no
14932      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14933      ;;
14934  esac
14935  ;;
14936
14937sysv4*MP*)
14938  if test -d /usr/nec ;then
14939    version_type=linux # correct to gnu/linux during the next big refactor
14940    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14941    soname_spec='$libname${shared_ext}.$major'
14942    shlibpath_var=LD_LIBRARY_PATH
14943  fi
14944  ;;
14945
14946sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14947  version_type=freebsd-elf
14948  need_lib_prefix=no
14949  need_version=no
14950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14951  soname_spec='${libname}${release}${shared_ext}$major'
14952  shlibpath_var=LD_LIBRARY_PATH
14953  shlibpath_overrides_runpath=yes
14954  hardcode_into_libs=yes
14955  if test "$with_gnu_ld" = yes; then
14956    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14957  else
14958    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14959    case $host_os in
14960      sco3.2v5*)
14961        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14962	;;
14963    esac
14964  fi
14965  sys_lib_dlsearch_path_spec='/usr/lib'
14966  ;;
14967
14968tpf*)
14969  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14970  version_type=linux # correct to gnu/linux during the next big refactor
14971  need_lib_prefix=no
14972  need_version=no
14973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974  shlibpath_var=LD_LIBRARY_PATH
14975  shlibpath_overrides_runpath=no
14976  hardcode_into_libs=yes
14977  ;;
14978
14979uts4*)
14980  version_type=linux # correct to gnu/linux during the next big refactor
14981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982  soname_spec='${libname}${release}${shared_ext}$major'
14983  shlibpath_var=LD_LIBRARY_PATH
14984  ;;
14985
14986*)
14987  dynamic_linker=no
14988  ;;
14989esac
14990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14991$as_echo "$dynamic_linker" >&6; }
14992test "$dynamic_linker" = no && can_build_shared=no
14993
14994variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14995if test "$GCC" = yes; then
14996  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14997fi
14998
14999if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15000  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15001fi
15002if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15003  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15004fi
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15044$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15045hardcode_action_CXX=
15046if test -n "$hardcode_libdir_flag_spec_CXX" ||
15047   test -n "$runpath_var_CXX" ||
15048   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15049
15050  # We can hardcode non-existent directories.
15051  if test "$hardcode_direct_CXX" != no &&
15052     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15053     # have to relink, otherwise we might link with an installed library
15054     # when we should be linking with a yet-to-be-installed one
15055     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15056     test "$hardcode_minus_L_CXX" != no; then
15057    # Linking always hardcodes the temporary library directory.
15058    hardcode_action_CXX=relink
15059  else
15060    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15061    hardcode_action_CXX=immediate
15062  fi
15063else
15064  # We cannot hardcode anything, or else we can only hardcode existing
15065  # directories.
15066  hardcode_action_CXX=unsupported
15067fi
15068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15069$as_echo "$hardcode_action_CXX" >&6; }
15070
15071if test "$hardcode_action_CXX" = relink ||
15072   test "$inherit_rpath_CXX" = yes; then
15073  # Fast installation is not supported
15074  enable_fast_install=no
15075elif test "$shlibpath_overrides_runpath" = yes ||
15076     test "$enable_shared" = no; then
15077  # Fast installation is not necessary
15078  enable_fast_install=needless
15079fi
15080
15081
15082
15083
15084
15085
15086
15087  fi # test -n "$compiler"
15088
15089  CC=$lt_save_CC
15090  CFLAGS=$lt_save_CFLAGS
15091  LDCXX=$LD
15092  LD=$lt_save_LD
15093  GCC=$lt_save_GCC
15094  with_gnu_ld=$lt_save_with_gnu_ld
15095  lt_cv_path_LDCXX=$lt_cv_path_LD
15096  lt_cv_path_LD=$lt_save_path_LD
15097  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15098  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15099fi # test "$_lt_caught_CXX_error" != yes
15100
15101ac_ext=c
15102ac_cpp='$CPP $CPPFLAGS'
15103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15105ac_compiler_gnu=$ac_cv_c_compiler_gnu
15106
15107
15108
15109if test "$GCC" = "yes" ; then
15110    CFLAGS="$GCC_CFLAGS"
15111    CXXFLAGS="$GCC_CXXFLAGS"
15112fi
15113
15114ac_ext=cpp
15115ac_cpp='$CXXCPP $CPPFLAGS'
15116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15120$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15121if test -z "$CXXCPP"; then
15122  if ${ac_cv_prog_CXXCPP+:} false; then :
15123  $as_echo_n "(cached) " >&6
15124else
15125      # Double quotes because CXXCPP needs to be expanded
15126    for CXXCPP in "$CXX -E" "/lib/cpp"
15127    do
15128      ac_preproc_ok=false
15129for ac_cxx_preproc_warn_flag in '' yes
15130do
15131  # Use a header file that comes with gcc, so configuring glibc
15132  # with a fresh cross-compiler works.
15133  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15134  # <limits.h> exists even on freestanding compilers.
15135  # On the NeXT, cc -E runs the code through the compiler's parser,
15136  # not just through cpp. "Syntax error" is here to catch this case.
15137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138/* end confdefs.h.  */
15139#ifdef __STDC__
15140# include <limits.h>
15141#else
15142# include <assert.h>
15143#endif
15144		     Syntax error
15145_ACEOF
15146if ac_fn_cxx_try_cpp "$LINENO"; then :
15147
15148else
15149  # Broken: fails on valid input.
15150continue
15151fi
15152rm -f conftest.err conftest.i conftest.$ac_ext
15153
15154  # OK, works on sane cases.  Now check whether nonexistent headers
15155  # can be detected and how.
15156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157/* end confdefs.h.  */
15158#include <ac_nonexistent.h>
15159_ACEOF
15160if ac_fn_cxx_try_cpp "$LINENO"; then :
15161  # Broken: success on invalid input.
15162continue
15163else
15164  # Passes both tests.
15165ac_preproc_ok=:
15166break
15167fi
15168rm -f conftest.err conftest.i conftest.$ac_ext
15169
15170done
15171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15172rm -f conftest.i conftest.err conftest.$ac_ext
15173if $ac_preproc_ok; then :
15174  break
15175fi
15176
15177    done
15178    ac_cv_prog_CXXCPP=$CXXCPP
15179
15180fi
15181  CXXCPP=$ac_cv_prog_CXXCPP
15182else
15183  ac_cv_prog_CXXCPP=$CXXCPP
15184fi
15185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15186$as_echo "$CXXCPP" >&6; }
15187ac_preproc_ok=false
15188for ac_cxx_preproc_warn_flag in '' yes
15189do
15190  # Use a header file that comes with gcc, so configuring glibc
15191  # with a fresh cross-compiler works.
15192  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15193  # <limits.h> exists even on freestanding compilers.
15194  # On the NeXT, cc -E runs the code through the compiler's parser,
15195  # not just through cpp. "Syntax error" is here to catch this case.
15196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197/* end confdefs.h.  */
15198#ifdef __STDC__
15199# include <limits.h>
15200#else
15201# include <assert.h>
15202#endif
15203		     Syntax error
15204_ACEOF
15205if ac_fn_cxx_try_cpp "$LINENO"; then :
15206
15207else
15208  # Broken: fails on valid input.
15209continue
15210fi
15211rm -f conftest.err conftest.i conftest.$ac_ext
15212
15213  # OK, works on sane cases.  Now check whether nonexistent headers
15214  # can be detected and how.
15215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216/* end confdefs.h.  */
15217#include <ac_nonexistent.h>
15218_ACEOF
15219if ac_fn_cxx_try_cpp "$LINENO"; then :
15220  # Broken: success on invalid input.
15221continue
15222else
15223  # Passes both tests.
15224ac_preproc_ok=:
15225break
15226fi
15227rm -f conftest.err conftest.i conftest.$ac_ext
15228
15229done
15230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15231rm -f conftest.i conftest.err conftest.$ac_ext
15232if $ac_preproc_ok; then :
15233
15234else
15235  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15237as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15238See \`config.log' for more details" "$LINENO" 5; }
15239fi
15240
15241ac_ext=c
15242ac_cpp='$CPP $CPPFLAGS'
15243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15245ac_compiler_gnu=$ac_cv_c_compiler_gnu
15246
15247ac_ext=c
15248ac_cpp='$CPP $CPPFLAGS'
15249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15251ac_compiler_gnu=$ac_cv_c_compiler_gnu
15252
15253
15254# Checks header files
15255# ----------------------------------------------------------------------------
15256for ac_header in unistd.h
15257do :
15258  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15259if test "x$ac_cv_header_unistd_h" = xyes; then :
15260  cat >>confdefs.h <<_ACEOF
15261#define HAVE_UNISTD_H 1
15262_ACEOF
15263
15264fi
15265
15266done
15267
15268for ac_header in io.h
15269do :
15270  ac_fn_c_check_header_mongrel "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
15271if test "x$ac_cv_header_io_h" = xyes; then :
15272  cat >>confdefs.h <<_ACEOF
15273#define HAVE_IO_H 1
15274_ACEOF
15275
15276fi
15277
15278done
15279
15280
15281# Checks local idioms
15282# ----------------------------------------------------------------------------
15283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5
15284$as_echo_n "checking for int64_t... " >&6; }
15285if ${ac_cv_c_int64_t+:} false; then :
15286  $as_echo_n "(cached) " >&6
15287else
15288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289/* end confdefs.h.  */
15290#include <stdint.h>
15291int
15292main ()
15293{
15294int64_t i;
15295  ;
15296  return 0;
15297}
15298_ACEOF
15299if ac_fn_c_try_compile "$LINENO"; then :
15300  ac_cv_c_int64_t=yes
15301else
15302  ac_cv_c_int64_t=no
15303fi
15304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15305
15306fi
15307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_int64_t" >&5
15308$as_echo "$ac_cv_c_int64_t" >&6; }
15309if test $ac_cv_c_int64_t = yes; then
15310
15311$as_echo "#define HAVE_INT64_T /**/" >>confdefs.h
15312
15313
15314$as_echo "#define HAVE_STDINT_H /**/" >>confdefs.h
15315
15316fi
15317
15318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
15319$as_echo_n "checking for working snprintf... " >&6; }
15320if ${ac_cv_func_snprintf+:} false; then :
15321  $as_echo_n "(cached) " >&6
15322else
15323  if test "$cross_compiling" = yes; then :
15324  ac_cv_func_snprintf=no
15325else
15326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327/* end confdefs.h.  */
15328#include <stdio.h>
15329int main () { int l = snprintf(NULL,0,"%d",100); exit (!((3 <= l) || (-1 == l))); }
15330
15331_ACEOF
15332if ac_fn_c_try_run "$LINENO"; then :
15333  ac_cv_func_snprintf=yes
15334else
15335  ac_cv_func_snprintf=no
15336fi
15337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15338  conftest.$ac_objext conftest.beam conftest.$ac_ext
15339fi
15340
15341fi
15342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf" >&5
15343$as_echo "$ac_cv_func_snprintf" >&6; }
15344if test $ac_cv_func_snprintf = yes; then
15345
15346$as_echo "#define HAVE_SNPRINTF /**/" >>confdefs.h
15347
15348fi
15349
15350
15351# syslog_test
15352for ac_func in syslog
15353do :
15354  ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
15355if test "x$ac_cv_func_syslog" = xyes; then :
15356  cat >>confdefs.h <<_ACEOF
15357#define HAVE_SYSLOG 1
15358_ACEOF
15359
15360fi
15361done
15362
15363for ac_func in gettimeofday
15364do :
15365  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15366if test "x$ac_cv_func_gettimeofday" = xyes; then :
15367  cat >>confdefs.h <<_ACEOF
15368#define HAVE_GETTIMEOFDAY 1
15369_ACEOF
15370
15371fi
15372done
15373
15374for ac_func in ftime
15375do :
15376  ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
15377if test "x$ac_cv_func_ftime" = xyes; then :
15378  cat >>confdefs.h <<_ACEOF
15379#define HAVE_FTIME 1
15380_ACEOF
15381
15382fi
15383done
15384
15385for ac_func in localtime_r
15386do :
15387  ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
15388if test "x$ac_cv_func_localtime_r" = xyes; then :
15389  cat >>confdefs.h <<_ACEOF
15390#define HAVE_LOCALTIME_R 1
15391_ACEOF
15392
15393fi
15394done
15395
15396
15397# Checks for libraries
15398# ----------------------------------------------------------------------------
15399
15400# checks for pthreads
15401
15402
15403
15404ac_ext=c
15405ac_cpp='$CPP $CPPFLAGS'
15406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15408ac_compiler_gnu=$ac_cv_c_compiler_gnu
15409
15410acx_pthread_ok=no
15411
15412# We used to check for pthread.h first, but this fails if pthread.h
15413# requires special compiler flags (e.g. on True64 or Sequent).
15414# It gets checked for in the link test anyway.
15415
15416# First of all, check if the user has set any of the PTHREAD_LIBS,
15417# etcetera environment variables, and if threads linking works using
15418# them:
15419if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15420        save_CFLAGS="$CFLAGS"
15421        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15422        save_LIBS="$LIBS"
15423        LIBS="$PTHREAD_LIBS $LIBS"
15424        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15425$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15426        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427/* end confdefs.h.  */
15428
15429/* Override any GCC internal prototype to avoid an error.
15430   Use char because int might match the return type of a GCC
15431   builtin and then its argument prototype would still apply.  */
15432#ifdef __cplusplus
15433extern "C"
15434#endif
15435char pthread_join ();
15436int
15437main ()
15438{
15439return pthread_join ();
15440  ;
15441  return 0;
15442}
15443_ACEOF
15444if ac_fn_c_try_link "$LINENO"; then :
15445  acx_pthread_ok=yes
15446fi
15447rm -f core conftest.err conftest.$ac_objext \
15448    conftest$ac_exeext conftest.$ac_ext
15449        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15450$as_echo "$acx_pthread_ok" >&6; }
15451        if test x"$acx_pthread_ok" = xno; then
15452                PTHREAD_LIBS=""
15453                PTHREAD_CFLAGS=""
15454        fi
15455        LIBS="$save_LIBS"
15456        CFLAGS="$save_CFLAGS"
15457fi
15458
15459# We must check for the threads library under a number of different
15460# names; the ordering is very important because some systems
15461# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15462# libraries is broken (non-POSIX).
15463
15464# Create a list of thread flags to try.  Items starting with a "-" are
15465# C compiler flags, and other items are library names, except for "none"
15466# which indicates that we try without any flags at all, and "pthread-config"
15467# which is a program returning the flags for the Pth emulation library.
15468
15469acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15470
15471# The ordering *is* (sometimes) important.  Some notes on the
15472# individual items follow:
15473
15474# pthreads: AIX (must check this before -lpthread)
15475# none: in case threads are in libc; should be tried before -Kthread and
15476#       other compiler flags to prevent continual compiler warnings
15477# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15478# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15479# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15480# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15481# -pthreads: Solaris/gcc
15482# -mthreads: Mingw32/gcc, Lynx/gcc
15483# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15484#      doesn't hurt to check since this sometimes defines pthreads too;
15485#      also defines -D_REENTRANT)
15486#      ... -mt is also the pthreads flag for HP/aCC
15487# pthread: Linux, etcetera
15488# --thread-safe: KAI C++
15489# pthread-config: use pthread-config program (for GNU Pth library)
15490
15491case "${host_cpu}-${host_os}" in
15492        *solaris*)
15493
15494        # On Solaris (at least, for some versions), libc contains stubbed
15495        # (non-functional) versions of the pthreads routines, so link-based
15496        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15497        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15498        # a function called by this macro, so we could check for that, but
15499        # who knows whether they'll stub that too in a future libc.)  So,
15500        # we'll just look for -pthreads and -lpthread first:
15501
15502        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15503        ;;
15504esac
15505
15506if test x"$acx_pthread_ok" = xno; then
15507for flag in $acx_pthread_flags; do
15508
15509        case $flag in
15510                none)
15511                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15512$as_echo_n "checking whether pthreads work without any flags... " >&6; }
15513                ;;
15514
15515                -*)
15516                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15517$as_echo_n "checking whether pthreads work with $flag... " >&6; }
15518                PTHREAD_CFLAGS="$flag"
15519                ;;
15520
15521		pthread-config)
15522		# Extract the first word of "pthread-config", so it can be a program name with args.
15523set dummy pthread-config; ac_word=$2
15524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15525$as_echo_n "checking for $ac_word... " >&6; }
15526if ${ac_cv_prog_acx_pthread_config+:} false; then :
15527  $as_echo_n "(cached) " >&6
15528else
15529  if test -n "$acx_pthread_config"; then
15530  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15531else
15532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15533for as_dir in $PATH
15534do
15535  IFS=$as_save_IFS
15536  test -z "$as_dir" && as_dir=.
15537    for ac_exec_ext in '' $ac_executable_extensions; do
15538  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15539    ac_cv_prog_acx_pthread_config="yes"
15540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15541    break 2
15542  fi
15543done
15544  done
15545IFS=$as_save_IFS
15546
15547  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15548fi
15549fi
15550acx_pthread_config=$ac_cv_prog_acx_pthread_config
15551if test -n "$acx_pthread_config"; then
15552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15553$as_echo "$acx_pthread_config" >&6; }
15554else
15555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556$as_echo "no" >&6; }
15557fi
15558
15559
15560		if test x"$acx_pthread_config" = xno; then continue; fi
15561		PTHREAD_CFLAGS="`pthread-config --cflags`"
15562		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15563		;;
15564
15565                *)
15566                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15567$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15568                PTHREAD_LIBS="-l$flag"
15569                ;;
15570        esac
15571
15572        save_LIBS="$LIBS"
15573        save_CFLAGS="$CFLAGS"
15574        LIBS="$PTHREAD_LIBS $LIBS"
15575        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15576
15577        # Check for various functions.  We must include pthread.h,
15578        # since some functions may be macros.  (On the Sequent, we
15579        # need a special flag -Kthread to make this header compile.)
15580        # We check for pthread_join because it is in -lpthread on IRIX
15581        # while pthread_create is in libc.  We check for pthread_attr_init
15582        # due to DEC craziness with -lpthreads.  We check for
15583        # pthread_cleanup_push because it is one of the few pthread
15584        # functions on Solaris that doesn't have a non-functional libc stub.
15585        # We try pthread_create on general principles.
15586        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587/* end confdefs.h.  */
15588#include <pthread.h>
15589int
15590main ()
15591{
15592pthread_t th; pthread_join(th, 0);
15593                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
15594                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15595  ;
15596  return 0;
15597}
15598_ACEOF
15599if ac_fn_c_try_link "$LINENO"; then :
15600  acx_pthread_ok=yes
15601fi
15602rm -f core conftest.err conftest.$ac_objext \
15603    conftest$ac_exeext conftest.$ac_ext
15604
15605        LIBS="$save_LIBS"
15606        CFLAGS="$save_CFLAGS"
15607
15608        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15609$as_echo "$acx_pthread_ok" >&6; }
15610        if test "x$acx_pthread_ok" = xyes; then
15611                break;
15612        fi
15613
15614        PTHREAD_LIBS=""
15615        PTHREAD_CFLAGS=""
15616done
15617fi
15618
15619# Various other checks:
15620if test "x$acx_pthread_ok" = xyes; then
15621        save_LIBS="$LIBS"
15622        LIBS="$PTHREAD_LIBS $LIBS"
15623        save_CFLAGS="$CFLAGS"
15624        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15625
15626        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15628$as_echo_n "checking for joinable pthread attribute... " >&6; }
15629	attr_name=unknown
15630	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15631	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632/* end confdefs.h.  */
15633#include <pthread.h>
15634int
15635main ()
15636{
15637int attr=$attr; return attr;
15638  ;
15639  return 0;
15640}
15641_ACEOF
15642if ac_fn_c_try_link "$LINENO"; then :
15643  attr_name=$attr; break
15644fi
15645rm -f core conftest.err conftest.$ac_objext \
15646    conftest$ac_exeext conftest.$ac_ext
15647	done
15648        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15649$as_echo "$attr_name" >&6; }
15650        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15651
15652cat >>confdefs.h <<_ACEOF
15653#define PTHREAD_CREATE_JOINABLE $attr_name
15654_ACEOF
15655
15656        fi
15657
15658        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15659$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15660        flag=no
15661        case "${host_cpu}-${host_os}" in
15662                *-aix* | *-freebsd* | *-darwin-*) flag="-D_THREAD_SAFE";;
15663                *-osf* | *-hpux*) flag="-D_REENTRANT";;
15664                *solaris*)
15665                if test "$GCC" = "yes"; then
15666                    flag="-D_REENTRANT"
15667                else
15668                    flag="-mt -D_REENTRANT"
15669                fi
15670                ;;
15671        esac
15672        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15673$as_echo "${flag}" >&6; }
15674        if test "x$flag" != xno; then
15675            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15676        fi
15677
15678        LIBS="$save_LIBS"
15679        CFLAGS="$save_CFLAGS"
15680
15681        # More AIX lossage: must compile with xlc_r or cc_r
15682	if test x"$GCC" != xyes; then
15683          for ac_prog in xlc_r cc_r
15684do
15685  # Extract the first word of "$ac_prog", so it can be a program name with args.
15686set dummy $ac_prog; ac_word=$2
15687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15688$as_echo_n "checking for $ac_word... " >&6; }
15689if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15690  $as_echo_n "(cached) " >&6
15691else
15692  if test -n "$PTHREAD_CC"; then
15693  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15694else
15695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15696for as_dir in $PATH
15697do
15698  IFS=$as_save_IFS
15699  test -z "$as_dir" && as_dir=.
15700    for ac_exec_ext in '' $ac_executable_extensions; do
15701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15702    ac_cv_prog_PTHREAD_CC="$ac_prog"
15703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15704    break 2
15705  fi
15706done
15707  done
15708IFS=$as_save_IFS
15709
15710fi
15711fi
15712PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15713if test -n "$PTHREAD_CC"; then
15714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15715$as_echo "$PTHREAD_CC" >&6; }
15716else
15717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15718$as_echo "no" >&6; }
15719fi
15720
15721
15722  test -n "$PTHREAD_CC" && break
15723done
15724test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15725
15726        else
15727          PTHREAD_CC=$CC
15728	fi
15729else
15730        PTHREAD_CC="$CC"
15731fi
15732
15733
15734
15735
15736
15737# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15738if test x"$acx_pthread_ok" = xyes; then
15739        enable_threads="pthread"
15740        :
15741else
15742        acx_pthread_ok=no
15743        enable_threads="no"
15744fi
15745ac_ext=c
15746ac_cpp='$CPP $CPPFLAGS'
15747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15749ac_compiler_gnu=$ac_cv_c_compiler_gnu
15750
15751
15752if test $enable_threads != "pthread"; then
15753    as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
15754else
15755
15756$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15757
15758
15759$as_echo "#define HAVE_THREADING 1" >>confdefs.h
15760
15761
15762$as_echo "#define USE_PTHREADS 1" >>confdefs.h
15763
15764    LIBS="$PTHREAD_LIBS $LIBS"
15765    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
15766    CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
15767fi
15768
15769ac_ext=cpp
15770ac_cpp='$CXXCPP $CPPFLAGS'
15771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15774
15775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
15776$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
15777if ${ac_cv_cxx_namespaces+:} false; then :
15778  $as_echo_n "(cached) " >&6
15779else
15780  ac_ext=cpp
15781ac_cpp='$CXXCPP $CPPFLAGS'
15782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15785
15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787/* end confdefs.h.  */
15788namespace Outer { namespace Inner { int i = 0; }}
15789int
15790main ()
15791{
15792using namespace Outer::Inner; return i;
15793  ;
15794  return 0;
15795}
15796_ACEOF
15797if ac_fn_cxx_try_compile "$LINENO"; then :
15798  ac_cv_cxx_namespaces=yes
15799else
15800  ac_cv_cxx_namespaces=no
15801fi
15802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15803 ac_ext=cpp
15804ac_cpp='$CXXCPP $CPPFLAGS'
15805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15808
15809
15810fi
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
15812$as_echo "$ac_cv_cxx_namespaces" >&6; }
15813if test "$ac_cv_cxx_namespaces" = yes; then
15814
15815$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
15816
15817fi
15818
15819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has stringstream" >&5
15820$as_echo_n "checking whether the compiler has stringstream... " >&6; }
15821if ${ac_cv_cxx_have_sstream+:} false; then :
15822  $as_echo_n "(cached) " >&6
15823else
15824
15825 ac_ext=cpp
15826ac_cpp='$CXXCPP $CPPFLAGS'
15827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15830
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832/* end confdefs.h.  */
15833#include <sstream>
15834#ifdef HAVE_NAMESPACES
15835using namespace std;
15836#endif
15837int
15838main ()
15839{
15840stringstream message; message << "Hello"; return 0;
15841  ;
15842  return 0;
15843}
15844_ACEOF
15845if ac_fn_cxx_try_compile "$LINENO"; then :
15846  ac_cv_cxx_have_sstream=yes
15847else
15848  ac_cv_cxx_have_sstream=no
15849fi
15850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15851 ac_ext=cpp
15852ac_cpp='$CXXCPP $CPPFLAGS'
15853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15856
15857
15858fi
15859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_sstream" >&5
15860$as_echo "$ac_cv_cxx_have_sstream" >&6; }
15861if test "$ac_cv_cxx_have_sstream" = yes; then
15862
15863$as_echo "#define HAVE_SSTREAM /**/" >>confdefs.h
15864
15865fi
15866
15867
15868# idsa_test
15869if test "x$with_idsa" = xyes; then
15870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idsa_open in -lidsa" >&5
15871$as_echo_n "checking for idsa_open in -lidsa... " >&6; }
15872if ${ac_cv_lib_idsa_idsa_open+:} false; then :
15873  $as_echo_n "(cached) " >&6
15874else
15875  ac_check_lib_save_LIBS=$LIBS
15876LIBS="-lidsa  $LIBS"
15877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878/* end confdefs.h.  */
15879
15880/* Override any GCC internal prototype to avoid an error.
15881   Use char because int might match the return type of a GCC
15882   builtin and then its argument prototype would still apply.  */
15883#ifdef __cplusplus
15884extern "C"
15885#endif
15886char idsa_open ();
15887int
15888main ()
15889{
15890return idsa_open ();
15891  ;
15892  return 0;
15893}
15894_ACEOF
15895if ac_fn_cxx_try_link "$LINENO"; then :
15896  ac_cv_lib_idsa_idsa_open=yes
15897else
15898  ac_cv_lib_idsa_idsa_open=no
15899fi
15900rm -f core conftest.err conftest.$ac_objext \
15901    conftest$ac_exeext conftest.$ac_ext
15902LIBS=$ac_check_lib_save_LIBS
15903fi
15904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idsa_idsa_open" >&5
15905$as_echo "$ac_cv_lib_idsa_idsa_open" >&6; }
15906if test "x$ac_cv_lib_idsa_idsa_open" = xyes; then :
15907  cat >>confdefs.h <<_ACEOF
15908#define HAVE_LIBIDSA 1
15909_ACEOF
15910
15911  LIBS="-lidsa $LIBS"
15912
15913fi
15914
15915    if test "$ac_cv_lib_idsa_idsa_open" = no; then
15916        as_fn_error $? "could not locate idsa library" "$LINENO" 5
15917    fi
15918fi
15919
15920# check for doxygen
15921# ----------------------------------------------------------------------------
15922
15923# Check whether --enable-doxygen was given.
15924if test "${enable_doxygen+set}" = set; then :
15925  enableval=$enable_doxygen;
15926fi
15927
15928# Check whether --enable-dot was given.
15929if test "${enable_dot+set}" = set; then :
15930  enableval=$enable_dot;
15931fi
15932
15933# Check whether --enable-html-docs was given.
15934if test "${enable_html_docs+set}" = set; then :
15935  enableval=$enable_html_docs;
15936else
15937   enable_html_docs=yes
15938fi
15939
15940# Check whether --enable-latex-docs was given.
15941if test "${enable_latex_docs+set}" = set; then :
15942  enableval=$enable_latex_docs;
15943else
15944   enable_latex_docs=no
15945fi
15946
15947if test "x$enable_doxygen" = xno; then
15948        enable_doc=no
15949else
15950        # Extract the first word of "doxygen", so it can be a program name with args.
15951set dummy doxygen; ac_word=$2
15952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15953$as_echo_n "checking for $ac_word... " >&6; }
15954if ${ac_cv_path_DOXYGEN+:} false; then :
15955  $as_echo_n "(cached) " >&6
15956else
15957  case $DOXYGEN in
15958  [\\/]* | ?:[\\/]*)
15959  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
15960  ;;
15961  *)
15962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15963for as_dir in $PATH
15964do
15965  IFS=$as_save_IFS
15966  test -z "$as_dir" && as_dir=.
15967    for ac_exec_ext in '' $ac_executable_extensions; do
15968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15969    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15971    break 2
15972  fi
15973done
15974  done
15975IFS=$as_save_IFS
15976
15977  ;;
15978esac
15979fi
15980DOXYGEN=$ac_cv_path_DOXYGEN
15981if test -n "$DOXYGEN"; then
15982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
15983$as_echo "$DOXYGEN" >&6; }
15984else
15985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15986$as_echo "no" >&6; }
15987fi
15988
15989
15990        if test x$DOXYGEN = x; then
15991                if test "x$enable_doxygen" = xyes; then
15992                        as_fn_error $? "could not find doxygen" "$LINENO" 5
15993                fi
15994                enable_doc=no
15995        else
15996                enable_doc=yes
15997                # Extract the first word of "dot", so it can be a program name with args.
15998set dummy dot; ac_word=$2
15999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16000$as_echo_n "checking for $ac_word... " >&6; }
16001if ${ac_cv_path_DOT+:} false; then :
16002  $as_echo_n "(cached) " >&6
16003else
16004  case $DOT in
16005  [\\/]* | ?:[\\/]*)
16006  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
16007  ;;
16008  *)
16009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16010for as_dir in $PATH
16011do
16012  IFS=$as_save_IFS
16013  test -z "$as_dir" && as_dir=.
16014    for ac_exec_ext in '' $ac_executable_extensions; do
16015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16016    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
16017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16018    break 2
16019  fi
16020done
16021  done
16022IFS=$as_save_IFS
16023
16024  ;;
16025esac
16026fi
16027DOT=$ac_cv_path_DOT
16028if test -n "$DOT"; then
16029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
16030$as_echo "$DOT" >&6; }
16031else
16032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16033$as_echo "no" >&6; }
16034fi
16035
16036
16037        fi
16038fi
16039 if test x$enable_doc = xyes; then
16040  DOC_TRUE=
16041  DOC_FALSE='#'
16042else
16043  DOC_TRUE='#'
16044  DOC_FALSE=
16045fi
16046
16047
16048if test x$DOT = x; then
16049        if test "x$enable_dot" = xyes; then
16050                as_fn_error $? "could not find dot" "$LINENO" 5
16051        fi
16052        enable_dot=no
16053else
16054        enable_dot=yes
16055fi
16056
16057
16058
16059
16060
16061# check for omnithreads
16062#BB_CHECK_OMNITHREADS
16063#BB_CHECK_PTHREADS
16064
16065LOG4CPP_CFLAGS="$CXXFLAGS"
16066LOG4CPP_LIBS="-llog4cpp"
16067LOG4CPP_LIBDEPS="$LIBS"
16068LOG4CPP_VERSION="$VERSION"
16069
16070# CXX fine tuning
16071case "$host" in
16072    *-dec-osf*)
16073	CXXFLAGS="$CXXFLAGS -std strict_ansi_errors"
16074	;;
16075    *)
16076	;;
16077esac
16078
16079
16080    if test "$GCC" = yes; then
16081 	if test "$host" = x86-pc-nto-qnx; then
16082 	    CFLAGS="$CXXFLAGS -Wno-unused -O0"
16083 	    CXXFLAGS="$CXXFLAGS -Wno-unused -DLOG4CPP_MISSING_INT64_OSTREAM_OP -O0"
16084        else
16085            case `$CXX --version` in
16086                *2.97*) CFLAGS="$CFLAGS -Wall -Wno-unused -pedantic -D_ISOC99_SOURCE"
16087                        CXXFLAGS="$CXXFLAGS -Wall -Wno-unused -pedantic -D_ISOC99_SOURCE"
16088                        ;;
16089                *2.96*) CFLAGS="$CFLAGS -Wall -Wno-unused"
16090                        CXXFLAGS="$CXXFLAGS -Wall -Wno-unused"
16091                        ;;
16092	        *)      CFLAGS="$CFLAGS -Wall -Wno-unused -pedantic"
16093                        CXXFLAGS="$CXXFLAGS -Wall -Wno-unused -pedantic"
16094                        ;;
16095            esac
16096        fi
16097    fi
16098
16099
16100# Check whether --enable-remote-syslog was given.
16101if test "${enable_remote_syslog+set}" = set; then :
16102  enableval=$enable_remote_syslog;
16103else
16104   enable_remote_syslog=yes
16105fi
16106
16107
16108# for RemoteSyslogAppender
16109if test "x$enable_remote_syslog" = xyes; then
16110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16111$as_echo_n "checking for socket in -lsocket... " >&6; }
16112if ${ac_cv_lib_socket_socket+:} false; then :
16113  $as_echo_n "(cached) " >&6
16114else
16115  ac_check_lib_save_LIBS=$LIBS
16116LIBS="-lsocket  $LIBS"
16117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118/* end confdefs.h.  */
16119
16120/* Override any GCC internal prototype to avoid an error.
16121   Use char because int might match the return type of a GCC
16122   builtin and then its argument prototype would still apply.  */
16123#ifdef __cplusplus
16124extern "C"
16125#endif
16126char socket ();
16127int
16128main ()
16129{
16130return socket ();
16131  ;
16132  return 0;
16133}
16134_ACEOF
16135if ac_fn_cxx_try_link "$LINENO"; then :
16136  ac_cv_lib_socket_socket=yes
16137else
16138  ac_cv_lib_socket_socket=no
16139fi
16140rm -f core conftest.err conftest.$ac_objext \
16141    conftest$ac_exeext conftest.$ac_ext
16142LIBS=$ac_check_lib_save_LIBS
16143fi
16144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16145$as_echo "$ac_cv_lib_socket_socket" >&6; }
16146if test "x$ac_cv_lib_socket_socket" = xyes; then :
16147  LIBS="-lsocket $LIBS"
16148fi
16149
16150    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16151$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16152if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
16153  $as_echo_n "(cached) " >&6
16154else
16155  ac_check_lib_save_LIBS=$LIBS
16156LIBS="-lnsl  $LIBS"
16157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158/* end confdefs.h.  */
16159
16160/* Override any GCC internal prototype to avoid an error.
16161   Use char because int might match the return type of a GCC
16162   builtin and then its argument prototype would still apply.  */
16163#ifdef __cplusplus
16164extern "C"
16165#endif
16166char gethostbyname ();
16167int
16168main ()
16169{
16170return gethostbyname ();
16171  ;
16172  return 0;
16173}
16174_ACEOF
16175if ac_fn_cxx_try_link "$LINENO"; then :
16176  ac_cv_lib_nsl_gethostbyname=yes
16177else
16178  ac_cv_lib_nsl_gethostbyname=no
16179fi
16180rm -f core conftest.err conftest.$ac_objext \
16181    conftest$ac_exeext conftest.$ac_ext
16182LIBS=$ac_check_lib_save_LIBS
16183fi
16184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16185$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16186if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
16187  LIBS="-lnsl $LIBS"
16188fi
16189
16190else
16191
16192$as_echo "#define DISABLE_REMOTE_SYSLOG 1" >>confdefs.h
16193
16194fi
16195
16196 if test "x$enable_remote_syslog" != xyes; then
16197  DISABLE_REMOTE_SYSLOG_TRUE=
16198  DISABLE_REMOTE_SYSLOG_FALSE='#'
16199else
16200  DISABLE_REMOTE_SYSLOG_TRUE='#'
16201  DISABLE_REMOTE_SYSLOG_FALSE=
16202fi
16203
16204
16205
16206# Check whether --enable-smtp was given.
16207if test "${enable_smtp+set}" = set; then :
16208  enableval=$enable_smtp;
16209else
16210   enable_smtp=yes
16211fi
16212
16213
16214# for SmtpAppender
16215if test "x$enable_smtp" != xyes; then
16216
16217$as_echo "#define DISABLE_SMTP 1" >>confdefs.h
16218
16219fi
16220
16221 if test "x$enable_smtp" != xyes; then
16222  DISABLE_SMTP_TRUE=
16223  DISABLE_SMTP_FALSE='#'
16224else
16225  DISABLE_SMTP_TRUE='#'
16226  DISABLE_SMTP_FALSE=
16227fi
16228
16229
16230
16231# Create files
16232# ----------------------------------------------------------------------------
16233
16234# create a custom library-config file (log4cpp-config)
16235
16236
16237LIBCONFIG_FILE="log4cpp-config.in"
16238
16239{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $LIBCONFIG_FILE" >&5
16240$as_echo "$as_me: creating $LIBCONFIG_FILE" >&6;}
16241echo '#! /bin/sh' >$LIBCONFIG_FILE
16242echo "# log4cpp-config library configuration script" >>$LIBCONFIG_FILE
16243echo '# generated by ac_config_libconfig_in.m4' >>$LIBCONFIG_FILE
16244echo ' ' >>$LIBCONFIG_FILE
16245echo 'template_version="1.0.0"' >>$LIBCONFIG_FILE
16246echo ' ' >>$LIBCONFIG_FILE
16247echo 'package="@PACKAGE@"' >>$LIBCONFIG_FILE
16248echo ' ' >>$LIBCONFIG_FILE
16249echo '# usage instructions if no options given' >>$LIBCONFIG_FILE
16250echo 'if test "'"\$""#"'" -eq 0; then' >>$LIBCONFIG_FILE
16251echo '   cat <<EOF' >>$LIBCONFIG_FILE
16252echo 'Usage: log4cpp-config [OPTIONS]' >>$LIBCONFIG_FILE
16253echo 'Options:' >>$LIBCONFIG_FILE
16254echo '        [--prefix[=DIR]]' >>$LIBCONFIG_FILE
16255echo '        [--exec-prefix[=DIR]]' >>$LIBCONFIG_FILE
16256echo '        [--package]' >>$LIBCONFIG_FILE
16257echo '        [--version]' >>$LIBCONFIG_FILE
16258echo '        [--cflags]' >>$LIBCONFIG_FILE
16259echo '        [--libs]' >>$LIBCONFIG_FILE
16260echo '        [--help]' >>$LIBCONFIG_FILE
16261
16262echo 'EOF' >>$LIBCONFIG_FILE
16263echo 'fi' >>$LIBCONFIG_FILE
16264echo ' ' >>$LIBCONFIG_FILE
16265echo '# parse options' >>$LIBCONFIG_FILE
16266echo 'o=""' >>$LIBCONFIG_FILE
16267echo 'h=""' >>$LIBCONFIG_FILE
16268echo 'for i ; do' >>$LIBCONFIG_FILE
16269echo '  case $i in' >>$LIBCONFIG_FILE
16270options="prefix exec-prefix eprefix package version cflags libs bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir infodir mandir target host build pkgdatadir pkglibdir pkgincludedir template-version help"
16271echo '    --prefix=*) prefix=`echo $i | sed -e "s/--prefix=//"` ;;' >>$LIBCONFIG_FILE
16272echo '    --exec-prefix=*) exec_prefix=`echo $i | sed -e "s/--exec-prefix=//"` ;;' >>$LIBCONFIG_FILE
16273echo '    --eprefix=*) exec_prefix=`echo $i | sed -e "s/--eprefix=//"` ;;' >>$LIBCONFIG_FILE
16274for option in $options ; do
16275  case $option in
16276    exec-prefix)  echo "    --$option) echo_exec_prefix=\"yes\" ;;" >>$LIBCONFIG_FILE ;;
16277    template-version)  echo "    --$option) echo_template_version=\"yes\" ;;" >>$LIBCONFIG_FILE ;;
16278    *)  echo "    --$option) echo_$option=\"yes\" ;;" >>$LIBCONFIG_FILE ;;
16279  esac
16280done
16281
16282echo '    //*|/*//*|./*//*)        echo_extra="yes" ;;' >>$LIBCONFIG_FILE
16283echo '    *) eval "echo Unknown option: $i" ; exit 1 ;;' >>$LIBCONFIG_FILE
16284echo '  esac' >>$LIBCONFIG_FILE
16285echo 'done' >>$LIBCONFIG_FILE
16286echo ' ' >>$LIBCONFIG_FILE
16287# in the order of occurence a standard automake Makefile
16288echo '# defaults from configure; set only if not set previously' >>$LIBCONFIG_FILE
16289vars="prefix exec_prefix bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir infodir mandir includedir target host build"
16290for var in $vars ; do
16291  echo "if test -z \"\$$var\" ; then" >>$LIBCONFIG_FILE
16292  echo "  $var=\"@$var@\"" >>$LIBCONFIG_FILE
16293  echo 'fi' >>$LIBCONFIG_FILE
16294done
16295echo ' ' >>$LIBCONFIG_FILE
16296echo '# generate output' >>$LIBCONFIG_FILE
16297echo 'if test x$echo_module != xyes ; then' >>$LIBCONFIG_FILE
16298echo '  echo_module_log4cpp="yes"' >>$LIBCONFIG_FILE
16299echo 'fi' >>$LIBCONFIG_FILE
16300# create module definition for log4cpp
16301if test -z "$log4cpp_cflags" ; then
16302  if test -n "$LOG4CPP_CFLAGS" ; then
16303      log4cpp_cflags="$LOG4CPP_CFLAGS"
16304  else
16305    log4cpp_cflags=''
16306  fi
16307fi
16308if test -z "$log4cpp_libs" ; then
16309  if test -n "$LOG4CPP_LIBS" ; then
16310    log4cpp_libs="$LOG4CPP_LIBS"
16311  else
16312    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: variable \`log4cpp_libs' and \`LOG4CPP_LIBS' undefined" >&5
16313$as_echo "$as_me: WARNING: variable \`log4cpp_libs' and \`LOG4CPP_LIBS' undefined" >&2;}
16314    log4cpp_libs='-llog4cpp'
16315  fi
16316  if test -n "$LOG4CPP_LIBDEPS" ; then
16317    log4cpp_libs="$log4cpp_libs $LOG4CPP_LIBDEPS"
16318  fi
16319fi
16320if test -z "$LOG4CPP_VERSION" ; then
16321  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: variable \`LOG4CPP_VERSION' undefined" >&5
16322$as_echo "$as_me: WARNING: variable \`LOG4CPP_VERSION' undefined" >&2;}
16323  LOG4CPP_VERSION="$VERSION"
16324fi
16325echo 'if test x$echo_module_log4cpp = xyes ; then' >>$LIBCONFIG_FILE
16326echo '  cflags="$cflags @log4cpp_cflags@"' >>$LIBCONFIG_FILE
16327
16328echo '  libs="$libs @log4cpp_libs@"' >>$LIBCONFIG_FILE
16329
16330echo '  version="$version @LOG4CPP_VERSION@"' >>$LIBCONFIG_FILE
16331
16332echo 'fi' >>$LIBCONFIG_FILE
16333for option in $options extra; do
16334  case $option in
16335    exec-prefix)  echo "if test x\$echo_exec_prefix = xyes ; then" >>$LIBCONFIG_FILE ;;
16336    template-version)  echo "if test x\$echo_template_version = xyes ; then" >>$LIBCONFIG_FILE ;;
16337    *)  echo "if test x\$echo_$option = xyes ; then" >>$LIBCONFIG_FILE ;;
16338  esac
16339  case $option in
16340    exec-prefix | eprefix)  echo '  o="$o $exec_prefix"' >>$LIBCONFIG_FILE ;;
16341    template-version)  echo '  o="$o $template_version"' >>$LIBCONFIG_FILE ;;
16342    cflags)
16343      echo '  i=`eval echo "$includedir"`' >>$LIBCONFIG_FILE ;
16344      echo '  i=`eval echo "$i"`' >>$LIBCONFIG_FILE ;
16345      echo '  if test "_$i" != "_/usr/include" ; then' >>$LIBCONFIG_FILE ;
16346      echo '    o="$o -I$includedir"' >>$LIBCONFIG_FILE ;
16347      echo '  fi' >>$LIBCONFIG_FILE ;
16348      echo '  o="$o $cflags"' >>$LIBCONFIG_FILE ;;
16349    libs)  echo '  o="$o -L$libdir $libs"' >>$LIBCONFIG_FILE ;;
16350    help)  echo '  h="1"' >>$LIBCONFIG_FILE ;;
16351    pkgdatadir)  echo "  o=\"$o \${datadir}/\${package}\"" >>$LIBCONFIG_FILE ;;
16352    pkglibdir)  echo "  o=\"$o \${libdir}/\${package}\"" >>$LIBCONFIG_FILE ;;
16353    pkgincludedir)  echo "  o=\"$o \${includedir}/\${package}\"" >>$LIBCONFIG_FILE ;;
16354    extra)
16355      echo '  v=`echo $i | sed -e s://:\$:g`' >>$LIBCONFIG_FILE ;
16356      echo '  v=`eval "echo $v"`' >>$LIBCONFIG_FILE ;
16357      echo '  o="$o $v"' >>$LIBCONFIG_FILE ;;
16358    *)  echo "  o=\"$o \$$option\"" >>$LIBCONFIG_FILE
16359  esac
16360  echo 'fi' >>$LIBCONFIG_FILE
16361done
16362echo ' ' >>$LIBCONFIG_FILE
16363echo '# output data' >>$LIBCONFIG_FILE
16364echo 'o=`eval "echo $o"`' >>$LIBCONFIG_FILE
16365echo 'o=`eval "echo $o"`' >>$LIBCONFIG_FILE
16366echo 'if test -n "$o" ; then ' >>$LIBCONFIG_FILE
16367echo '  eval "echo $o"' >>$LIBCONFIG_FILE
16368echo 'fi' >>$LIBCONFIG_FILE
16369echo ' ' >>$LIBCONFIG_FILE
16370echo '# help text' >>$LIBCONFIG_FILE
16371echo 'if test ! -z "$h" ; then ' >>$LIBCONFIG_FILE
16372echo '  cat <<EOF' >>$LIBCONFIG_FILE
16373echo 'All available options:' >>$LIBCONFIG_FILE
16374echo '  --prefix=DIR and   change \$prefix and \$exec-prefix' >>$LIBCONFIG_FILE
16375echo '  --exec-prefix=DIR  (affects all other options)' >>$LIBCONFIG_FILE
16376echo '  --prefix           \$prefix        $prefix' >>$LIBCONFIG_FILE
16377echo '  --exec_prefix  or... ' >>$LIBCONFIG_FILE
16378echo '  --eprefix          \$exec_prefix   $exec_prefix' >>$LIBCONFIG_FILE
16379echo '  --version          \$version       $version' >>$LIBCONFIG_FILE
16380echo '  --cflags           -I\$includedir  unless it is /usr/include' >>$LIBCONFIG_FILE
16381echo '  --libs             -L\$libdir \$LIBS $libs' >>$LIBCONFIG_FILE
16382echo '  --package          \$package       $package' >>$LIBCONFIG_FILE
16383echo '  --bindir           \$bindir        $bindir' >>$LIBCONFIG_FILE
16384echo '  --sbindir          \$sbindir       $sbindir' >>$LIBCONFIG_FILE
16385echo '  --libexecdir       \$libexecdir    $libexecdir' >>$LIBCONFIG_FILE
16386echo '  --datadir          \$datadir       $datadir' >>$LIBCONFIG_FILE
16387echo '  --sysconfdir       \$sysconfdir    $sysconfdir' >>$LIBCONFIG_FILE
16388echo '  --sharedstatedir   \$sharedstatedir$sharedstatedir' >>$LIBCONFIG_FILE
16389echo '  --localstatedir    \$localstatedir $localstatedir' >>$LIBCONFIG_FILE
16390echo '  --libdir           \$libdir        $libdir' >>$LIBCONFIG_FILE
16391echo '  --infodir          \$infodir       $infodir' >>$LIBCONFIG_FILE
16392echo '  --mandir           \$mandir        $mandir' >>$LIBCONFIG_FILE
16393echo '  --target           \$target        $target' >>$LIBCONFIG_FILE
16394echo '  --host             \$host          $host' >>$LIBCONFIG_FILE
16395echo '  --build            \$build         $build' >>$LIBCONFIG_FILE
16396echo '  --pkgdatadir       \$datadir/\$package    ${datadir}/${package}'    >>$LIBCONFIG_FILE
16397echo '  --pkglibdir        \$libdir/\$package     ${libdir}/${package}' >>$LIBCONFIG_FILE
16398echo '  --pkgincludedir    \$includedir/\$package ${includedir}/${package}' >>$LIBCONFIG_FILE
16399echo '  --template-version \$template_version     $template_version' >>$LIBCONFIG_FILE
16400echo '  --help' >>$LIBCONFIG_FILE
16401echo 'EOF' >>$LIBCONFIG_FILE
16402echo 'fi' >>$LIBCONFIG_FILE
16403LOG4CPP_CONFIG="log4cpp-config"
16404
16405
16406
16407
16408# create a custom pkg-config file (log4cpp.pc.in)
16409
16410PKGCONFIG_FILE="log4cpp.pc.in"
16411
16412{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $PKGCONFIG_FILE" >&5
16413$as_echo "$as_me: creating $PKGCONFIG_FILE" >&6;}
16414if test -z "$log4cpp_cflags" ; then
16415  if test -n "$LOG4CPP_CFLAGS" ; then
16416      log4cpp_cflags="$LOG4CPP_CFLAGS"
16417  else
16418    log4cpp_cflags=''
16419  fi
16420fi
16421if test -z "$log4cpp_libs" ; then
16422  if test -n "$LOG4CPP_LIBS" ; then
16423    log4cpp_libs="$LOG4CPP_LIBS"
16424  else
16425    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: variable \`log4cpp_libs' and \`LOG4CPP_LIBS' undefined" >&5
16426$as_echo "$as_me: WARNING: variable \`log4cpp_libs' and \`LOG4CPP_LIBS' undefined" >&2;}
16427    log4cpp_libs='-llog4cpp'
16428  fi
16429  if test -n "$LOG4CPP_LIBDEPS" ; then
16430    log4cpp_libs="$log4cpp_libs $LOG4CPP_LIBDEPS"
16431  fi
16432fi
16433
16434
16435if test -z "$LOG4CPP_VERSION" ; then
16436  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: variable \`LOG4CPP_VERSION' undefined" >&5
16437$as_echo "$as_me: WARNING: variable \`LOG4CPP_VERSION' undefined" >&2;}
16438  LOG4CPP_VERSION="$VERSION"
16439fi
16440echo 'prefix=@prefix@' >$PKGCONFIG_FILE
16441echo 'exec_prefix=@exec_prefix@' >>$PKGCONFIG_FILE
16442echo 'libdir=@libdir@' >>$PKGCONFIG_FILE
16443echo 'includedir=@includedir@' >>$PKGCONFIG_FILE
16444echo '' >>$PKGCONFIG_FILE
16445echo 'Name: @PACKAGE@' >>$PKGCONFIG_FILE
16446echo 'Description: C++ library for flexible logging, modeled after Log4j' >>$PKGCONFIG_FILE
16447if test -n "$LOG4CPP_REQUIRES" ; then
16448  echo 'Requires: @LOG4CPP_REQUIRES@' >>$PKGCONFIG_FILE
16449fi
16450if test -n "$LOG4CPP_CONFLICTS" ; then
16451  echo 'Conflicts: @LOG4CPP_CONFLICTS@' >>$PKGCONFIG_FILE
16452fi
16453echo 'Version: @VERSION@' >>$PKGCONFIG_FILE
16454echo 'Libs: -L${libdir} @log4cpp_libs@' >>$PKGCONFIG_FILE
16455echo 'Cflags: -I${includedir} @log4cpp_cflags@' >>$PKGCONFIG_FILE
16456LOG4CPP_PKGCONFIG="log4cpp-config"
16457
16458
16459
16460
16461ac_config_files="$ac_config_files Makefile log4cpp.spec log4cpp.pc log4cpp-config config/Makefile doc/Makefile doc/Doxyfile doc/html/Makefile src/Makefile include/Makefile include/log4cpp/Makefile include/log4cpp/threading/Makefile tests/Makefile msvc6/Makefile msvc6/log4cpp/Makefile msvc6/log4cppDLL/Makefile msvc6/testCategory/Makefile msvc6/testDLL/Makefile msvc6/testMain/Makefile msvc6/testNDC/Makefile msvc6/testNTEventLog/Makefile msvc6/testPattern/Makefile bcb5/Makefile bcb5/log4cpp/Makefile bcb5/testCategory/Makefile bcb5/testConfig/Makefile bcb5/testFixedContextCategory/Makefile bcb5/testmain/Makefile bcb5/testNDC/Makefile bcb5/testPattern/Makefile openvms/Makefile"
16462
16463cat >confcache <<\_ACEOF
16464# This file is a shell script that caches the results of configure
16465# tests run on this system so they can be shared between configure
16466# scripts and configure runs, see configure's option --config-cache.
16467# It is not useful on other systems.  If it contains results you don't
16468# want to keep, you may remove or edit it.
16469#
16470# config.status only pays attention to the cache file if you give it
16471# the --recheck option to rerun configure.
16472#
16473# `ac_cv_env_foo' variables (set or unset) will be overridden when
16474# loading this file, other *unset* `ac_cv_foo' will be assigned the
16475# following values.
16476
16477_ACEOF
16478
16479# The following way of writing the cache mishandles newlines in values,
16480# but we know of no workaround that is simple, portable, and efficient.
16481# So, we kill variables containing newlines.
16482# Ultrix sh set writes to stderr and can't be redirected directly,
16483# and sets the high bit in the cache file unless we assign to the vars.
16484(
16485  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16486    eval ac_val=\$$ac_var
16487    case $ac_val in #(
16488    *${as_nl}*)
16489      case $ac_var in #(
16490      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16491$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16492      esac
16493      case $ac_var in #(
16494      _ | IFS | as_nl) ;; #(
16495      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16496      *) { eval $ac_var=; unset $ac_var;} ;;
16497      esac ;;
16498    esac
16499  done
16500
16501  (set) 2>&1 |
16502    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16503    *${as_nl}ac_space=\ *)
16504      # `set' does not quote correctly, so add quotes: double-quote
16505      # substitution turns \\\\ into \\, and sed turns \\ into \.
16506      sed -n \
16507	"s/'/'\\\\''/g;
16508	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16509      ;; #(
16510    *)
16511      # `set' quotes correctly as required by POSIX, so do not add quotes.
16512      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16513      ;;
16514    esac |
16515    sort
16516) |
16517  sed '
16518     /^ac_cv_env_/b end
16519     t clear
16520     :clear
16521     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16522     t end
16523     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16524     :end' >>confcache
16525if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16526  if test -w "$cache_file"; then
16527    if test "x$cache_file" != "x/dev/null"; then
16528      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16529$as_echo "$as_me: updating cache $cache_file" >&6;}
16530      if test ! -f "$cache_file" || test -h "$cache_file"; then
16531	cat confcache >"$cache_file"
16532      else
16533        case $cache_file in #(
16534        */* | ?:*)
16535	  mv -f confcache "$cache_file"$$ &&
16536	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16537        *)
16538	  mv -f confcache "$cache_file" ;;
16539	esac
16540      fi
16541    fi
16542  else
16543    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16544$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16545  fi
16546fi
16547rm -f confcache
16548
16549test "x$prefix" = xNONE && prefix=$ac_default_prefix
16550# Let make expand exec_prefix.
16551test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16552
16553DEFS=-DHAVE_CONFIG_H
16554
16555ac_libobjs=
16556ac_ltlibobjs=
16557U=
16558for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16559  # 1. Remove the extension, and $U if already installed.
16560  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16561  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16562  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16563  #    will be set to the directory where LIBOBJS objects are built.
16564  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16565  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16566done
16567LIBOBJS=$ac_libobjs
16568
16569LTLIBOBJS=$ac_ltlibobjs
16570
16571
16572 if test -n "$EXEEXT"; then
16573  am__EXEEXT_TRUE=
16574  am__EXEEXT_FALSE='#'
16575else
16576  am__EXEEXT_TRUE='#'
16577  am__EXEEXT_FALSE=
16578fi
16579
16580if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16581  as_fn_error $? "conditional \"AMDEP\" was never defined.
16582Usually this means the macro was only invoked conditionally." "$LINENO" 5
16583fi
16584if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16585  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16586Usually this means the macro was only invoked conditionally." "$LINENO" 5
16587fi
16588if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16589  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16590Usually this means the macro was only invoked conditionally." "$LINENO" 5
16591fi
16592if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
16593  as_fn_error $? "conditional \"DOC\" was never defined.
16594Usually this means the macro was only invoked conditionally." "$LINENO" 5
16595fi
16596if test -z "${DISABLE_REMOTE_SYSLOG_TRUE}" && test -z "${DISABLE_REMOTE_SYSLOG_FALSE}"; then
16597  as_fn_error $? "conditional \"DISABLE_REMOTE_SYSLOG\" was never defined.
16598Usually this means the macro was only invoked conditionally." "$LINENO" 5
16599fi
16600if test -z "${DISABLE_SMTP_TRUE}" && test -z "${DISABLE_SMTP_FALSE}"; then
16601  as_fn_error $? "conditional \"DISABLE_SMTP\" was never defined.
16602Usually this means the macro was only invoked conditionally." "$LINENO" 5
16603fi
16604
16605: "${CONFIG_STATUS=./config.status}"
16606ac_write_fail=0
16607ac_clean_files_save=$ac_clean_files
16608ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16609{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16610$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16611as_write_fail=0
16612cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16613#! $SHELL
16614# Generated by $as_me.
16615# Run this file to recreate the current configuration.
16616# Compiler output produced by configure, useful for debugging
16617# configure, is in config.log if it exists.
16618
16619debug=false
16620ac_cs_recheck=false
16621ac_cs_silent=false
16622
16623SHELL=\${CONFIG_SHELL-$SHELL}
16624export SHELL
16625_ASEOF
16626cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16627## -------------------- ##
16628## M4sh Initialization. ##
16629## -------------------- ##
16630
16631# Be more Bourne compatible
16632DUALCASE=1; export DUALCASE # for MKS sh
16633if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16634  emulate sh
16635  NULLCMD=:
16636  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16637  # is contrary to our usage.  Disable this feature.
16638  alias -g '${1+"$@"}'='"$@"'
16639  setopt NO_GLOB_SUBST
16640else
16641  case `(set -o) 2>/dev/null` in #(
16642  *posix*) :
16643    set -o posix ;; #(
16644  *) :
16645     ;;
16646esac
16647fi
16648
16649
16650as_nl='
16651'
16652export as_nl
16653# Printing a long string crashes Solaris 7 /usr/bin/printf.
16654as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16655as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16656as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16657# Prefer a ksh shell builtin over an external printf program on Solaris,
16658# but without wasting forks for bash or zsh.
16659if test -z "$BASH_VERSION$ZSH_VERSION" \
16660    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16661  as_echo='print -r --'
16662  as_echo_n='print -rn --'
16663elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16664  as_echo='printf %s\n'
16665  as_echo_n='printf %s'
16666else
16667  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16668    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16669    as_echo_n='/usr/ucb/echo -n'
16670  else
16671    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16672    as_echo_n_body='eval
16673      arg=$1;
16674      case $arg in #(
16675      *"$as_nl"*)
16676	expr "X$arg" : "X\\(.*\\)$as_nl";
16677	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16678      esac;
16679      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16680    '
16681    export as_echo_n_body
16682    as_echo_n='sh -c $as_echo_n_body as_echo'
16683  fi
16684  export as_echo_body
16685  as_echo='sh -c $as_echo_body as_echo'
16686fi
16687
16688# The user is always right.
16689if test "${PATH_SEPARATOR+set}" != set; then
16690  PATH_SEPARATOR=:
16691  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16692    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16693      PATH_SEPARATOR=';'
16694  }
16695fi
16696
16697
16698# IFS
16699# We need space, tab and new line, in precisely that order.  Quoting is
16700# there to prevent editors from complaining about space-tab.
16701# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16702# splitting by setting IFS to empty value.)
16703IFS=" ""	$as_nl"
16704
16705# Find who we are.  Look in the path if we contain no directory separator.
16706as_myself=
16707case $0 in #((
16708  *[\\/]* ) as_myself=$0 ;;
16709  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16710for as_dir in $PATH
16711do
16712  IFS=$as_save_IFS
16713  test -z "$as_dir" && as_dir=.
16714    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16715  done
16716IFS=$as_save_IFS
16717
16718     ;;
16719esac
16720# We did not find ourselves, most probably we were run as `sh COMMAND'
16721# in which case we are not to be found in the path.
16722if test "x$as_myself" = x; then
16723  as_myself=$0
16724fi
16725if test ! -f "$as_myself"; then
16726  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16727  exit 1
16728fi
16729
16730# Unset variables that we do not need and which cause bugs (e.g. in
16731# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16732# suppresses any "Segmentation fault" message there.  '((' could
16733# trigger a bug in pdksh 5.2.14.
16734for as_var in BASH_ENV ENV MAIL MAILPATH
16735do eval test x\${$as_var+set} = xset \
16736  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16737done
16738PS1='$ '
16739PS2='> '
16740PS4='+ '
16741
16742# NLS nuisances.
16743LC_ALL=C
16744export LC_ALL
16745LANGUAGE=C
16746export LANGUAGE
16747
16748# CDPATH.
16749(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16750
16751
16752# as_fn_error STATUS ERROR [LINENO LOG_FD]
16753# ----------------------------------------
16754# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16755# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16756# script with STATUS, using 1 if that was 0.
16757as_fn_error ()
16758{
16759  as_status=$1; test $as_status -eq 0 && as_status=1
16760  if test "$4"; then
16761    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16762    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16763  fi
16764  $as_echo "$as_me: error: $2" >&2
16765  as_fn_exit $as_status
16766} # as_fn_error
16767
16768
16769# as_fn_set_status STATUS
16770# -----------------------
16771# Set $? to STATUS, without forking.
16772as_fn_set_status ()
16773{
16774  return $1
16775} # as_fn_set_status
16776
16777# as_fn_exit STATUS
16778# -----------------
16779# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16780as_fn_exit ()
16781{
16782  set +e
16783  as_fn_set_status $1
16784  exit $1
16785} # as_fn_exit
16786
16787# as_fn_unset VAR
16788# ---------------
16789# Portably unset VAR.
16790as_fn_unset ()
16791{
16792  { eval $1=; unset $1;}
16793}
16794as_unset=as_fn_unset
16795# as_fn_append VAR VALUE
16796# ----------------------
16797# Append the text in VALUE to the end of the definition contained in VAR. Take
16798# advantage of any shell optimizations that allow amortized linear growth over
16799# repeated appends, instead of the typical quadratic growth present in naive
16800# implementations.
16801if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16802  eval 'as_fn_append ()
16803  {
16804    eval $1+=\$2
16805  }'
16806else
16807  as_fn_append ()
16808  {
16809    eval $1=\$$1\$2
16810  }
16811fi # as_fn_append
16812
16813# as_fn_arith ARG...
16814# ------------------
16815# Perform arithmetic evaluation on the ARGs, and store the result in the
16816# global $as_val. Take advantage of shells that can avoid forks. The arguments
16817# must be portable across $(()) and expr.
16818if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16819  eval 'as_fn_arith ()
16820  {
16821    as_val=$(( $* ))
16822  }'
16823else
16824  as_fn_arith ()
16825  {
16826    as_val=`expr "$@" || test $? -eq 1`
16827  }
16828fi # as_fn_arith
16829
16830
16831if expr a : '\(a\)' >/dev/null 2>&1 &&
16832   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16833  as_expr=expr
16834else
16835  as_expr=false
16836fi
16837
16838if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16839  as_basename=basename
16840else
16841  as_basename=false
16842fi
16843
16844if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16845  as_dirname=dirname
16846else
16847  as_dirname=false
16848fi
16849
16850as_me=`$as_basename -- "$0" ||
16851$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16852	 X"$0" : 'X\(//\)$' \| \
16853	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16854$as_echo X/"$0" |
16855    sed '/^.*\/\([^/][^/]*\)\/*$/{
16856	    s//\1/
16857	    q
16858	  }
16859	  /^X\/\(\/\/\)$/{
16860	    s//\1/
16861	    q
16862	  }
16863	  /^X\/\(\/\).*/{
16864	    s//\1/
16865	    q
16866	  }
16867	  s/.*/./; q'`
16868
16869# Avoid depending upon Character Ranges.
16870as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16871as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16872as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16873as_cr_digits='0123456789'
16874as_cr_alnum=$as_cr_Letters$as_cr_digits
16875
16876ECHO_C= ECHO_N= ECHO_T=
16877case `echo -n x` in #(((((
16878-n*)
16879  case `echo 'xy\c'` in
16880  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16881  xy)  ECHO_C='\c';;
16882  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16883       ECHO_T='	';;
16884  esac;;
16885*)
16886  ECHO_N='-n';;
16887esac
16888
16889rm -f conf$$ conf$$.exe conf$$.file
16890if test -d conf$$.dir; then
16891  rm -f conf$$.dir/conf$$.file
16892else
16893  rm -f conf$$.dir
16894  mkdir conf$$.dir 2>/dev/null
16895fi
16896if (echo >conf$$.file) 2>/dev/null; then
16897  if ln -s conf$$.file conf$$ 2>/dev/null; then
16898    as_ln_s='ln -s'
16899    # ... but there are two gotchas:
16900    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16901    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16902    # In both cases, we have to default to `cp -p'.
16903    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16904      as_ln_s='cp -p'
16905  elif ln conf$$.file conf$$ 2>/dev/null; then
16906    as_ln_s=ln
16907  else
16908    as_ln_s='cp -p'
16909  fi
16910else
16911  as_ln_s='cp -p'
16912fi
16913rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16914rmdir conf$$.dir 2>/dev/null
16915
16916
16917# as_fn_mkdir_p
16918# -------------
16919# Create "$as_dir" as a directory, including parents if necessary.
16920as_fn_mkdir_p ()
16921{
16922
16923  case $as_dir in #(
16924  -*) as_dir=./$as_dir;;
16925  esac
16926  test -d "$as_dir" || eval $as_mkdir_p || {
16927    as_dirs=
16928    while :; do
16929      case $as_dir in #(
16930      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16931      *) as_qdir=$as_dir;;
16932      esac
16933      as_dirs="'$as_qdir' $as_dirs"
16934      as_dir=`$as_dirname -- "$as_dir" ||
16935$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16936	 X"$as_dir" : 'X\(//\)[^/]' \| \
16937	 X"$as_dir" : 'X\(//\)$' \| \
16938	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16939$as_echo X"$as_dir" |
16940    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16941	    s//\1/
16942	    q
16943	  }
16944	  /^X\(\/\/\)[^/].*/{
16945	    s//\1/
16946	    q
16947	  }
16948	  /^X\(\/\/\)$/{
16949	    s//\1/
16950	    q
16951	  }
16952	  /^X\(\/\).*/{
16953	    s//\1/
16954	    q
16955	  }
16956	  s/.*/./; q'`
16957      test -d "$as_dir" && break
16958    done
16959    test -z "$as_dirs" || eval "mkdir $as_dirs"
16960  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16961
16962
16963} # as_fn_mkdir_p
16964if mkdir -p . 2>/dev/null; then
16965  as_mkdir_p='mkdir -p "$as_dir"'
16966else
16967  test -d ./-p && rmdir ./-p
16968  as_mkdir_p=false
16969fi
16970
16971if test -x / >/dev/null 2>&1; then
16972  as_test_x='test -x'
16973else
16974  if ls -dL / >/dev/null 2>&1; then
16975    as_ls_L_option=L
16976  else
16977    as_ls_L_option=
16978  fi
16979  as_test_x='
16980    eval sh -c '\''
16981      if test -d "$1"; then
16982	test -d "$1/.";
16983      else
16984	case $1 in #(
16985	-*)set "./$1";;
16986	esac;
16987	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16988	???[sx]*):;;*)false;;esac;fi
16989    '\'' sh
16990  '
16991fi
16992as_executable_p=$as_test_x
16993
16994# Sed expression to map a string onto a valid CPP name.
16995as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16996
16997# Sed expression to map a string onto a valid variable name.
16998as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16999
17000
17001exec 6>&1
17002## ----------------------------------- ##
17003## Main body of $CONFIG_STATUS script. ##
17004## ----------------------------------- ##
17005_ASEOF
17006test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17007
17008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17009# Save the log message, to keep $0 and so on meaningful, and to
17010# report actual input values of CONFIG_FILES etc. instead of their
17011# values after options handling.
17012ac_log="
17013This file was extended by log4cpp $as_me 1.1, which was
17014generated by GNU Autoconf 2.68.  Invocation command line was
17015
17016  CONFIG_FILES    = $CONFIG_FILES
17017  CONFIG_HEADERS  = $CONFIG_HEADERS
17018  CONFIG_LINKS    = $CONFIG_LINKS
17019  CONFIG_COMMANDS = $CONFIG_COMMANDS
17020  $ $0 $@
17021
17022on `(hostname || uname -n) 2>/dev/null | sed 1q`
17023"
17024
17025_ACEOF
17026
17027case $ac_config_files in *"
17028"*) set x $ac_config_files; shift; ac_config_files=$*;;
17029esac
17030
17031case $ac_config_headers in *"
17032"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17033esac
17034
17035
17036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17037# Files that config.status was made for.
17038config_files="$ac_config_files"
17039config_headers="$ac_config_headers"
17040config_commands="$ac_config_commands"
17041
17042_ACEOF
17043
17044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17045ac_cs_usage="\
17046\`$as_me' instantiates files and other configuration actions
17047from templates according to the current configuration.  Unless the files
17048and actions are specified as TAGs, all are instantiated by default.
17049
17050Usage: $0 [OPTION]... [TAG]...
17051
17052  -h, --help       print this help, then exit
17053  -V, --version    print version number and configuration settings, then exit
17054      --config     print configuration, then exit
17055  -q, --quiet, --silent
17056                   do not print progress messages
17057  -d, --debug      don't remove temporary files
17058      --recheck    update $as_me by reconfiguring in the same conditions
17059      --file=FILE[:TEMPLATE]
17060                   instantiate the configuration file FILE
17061      --header=FILE[:TEMPLATE]
17062                   instantiate the configuration header FILE
17063
17064Configuration files:
17065$config_files
17066
17067Configuration headers:
17068$config_headers
17069
17070Configuration commands:
17071$config_commands
17072
17073Report bugs to the package provider."
17074
17075_ACEOF
17076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17077ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17078ac_cs_version="\\
17079log4cpp config.status 1.1
17080configured by $0, generated by GNU Autoconf 2.68,
17081  with options \\"\$ac_cs_config\\"
17082
17083Copyright (C) 2010 Free Software Foundation, Inc.
17084This config.status script is free software; the Free Software Foundation
17085gives unlimited permission to copy, distribute and modify it."
17086
17087ac_pwd='$ac_pwd'
17088srcdir='$srcdir'
17089INSTALL='$INSTALL'
17090MKDIR_P='$MKDIR_P'
17091AWK='$AWK'
17092test -n "\$AWK" || AWK=awk
17093_ACEOF
17094
17095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17096# The default lists apply if the user does not specify any file.
17097ac_need_defaults=:
17098while test $# != 0
17099do
17100  case $1 in
17101  --*=?*)
17102    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17103    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17104    ac_shift=:
17105    ;;
17106  --*=)
17107    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17108    ac_optarg=
17109    ac_shift=:
17110    ;;
17111  *)
17112    ac_option=$1
17113    ac_optarg=$2
17114    ac_shift=shift
17115    ;;
17116  esac
17117
17118  case $ac_option in
17119  # Handling of the options.
17120  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17121    ac_cs_recheck=: ;;
17122  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17123    $as_echo "$ac_cs_version"; exit ;;
17124  --config | --confi | --conf | --con | --co | --c )
17125    $as_echo "$ac_cs_config"; exit ;;
17126  --debug | --debu | --deb | --de | --d | -d )
17127    debug=: ;;
17128  --file | --fil | --fi | --f )
17129    $ac_shift
17130    case $ac_optarg in
17131    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17132    '') as_fn_error $? "missing file argument" ;;
17133    esac
17134    as_fn_append CONFIG_FILES " '$ac_optarg'"
17135    ac_need_defaults=false;;
17136  --header | --heade | --head | --hea )
17137    $ac_shift
17138    case $ac_optarg in
17139    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17140    esac
17141    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17142    ac_need_defaults=false;;
17143  --he | --h)
17144    # Conflict between --help and --header
17145    as_fn_error $? "ambiguous option: \`$1'
17146Try \`$0 --help' for more information.";;
17147  --help | --hel | -h )
17148    $as_echo "$ac_cs_usage"; exit ;;
17149  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17150  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17151    ac_cs_silent=: ;;
17152
17153  # This is an error.
17154  -*) as_fn_error $? "unrecognized option: \`$1'
17155Try \`$0 --help' for more information." ;;
17156
17157  *) as_fn_append ac_config_targets " $1"
17158     ac_need_defaults=false ;;
17159
17160  esac
17161  shift
17162done
17163
17164ac_configure_extra_args=
17165
17166if $ac_cs_silent; then
17167  exec 6>/dev/null
17168  ac_configure_extra_args="$ac_configure_extra_args --silent"
17169fi
17170
17171_ACEOF
17172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17173if \$ac_cs_recheck; then
17174  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17175  shift
17176  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17177  CONFIG_SHELL='$SHELL'
17178  export CONFIG_SHELL
17179  exec "\$@"
17180fi
17181
17182_ACEOF
17183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17184exec 5>>config.log
17185{
17186  echo
17187  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17188## Running $as_me. ##
17189_ASBOX
17190  $as_echo "$ac_log"
17191} >&5
17192
17193_ACEOF
17194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17195#
17196# INIT-COMMANDS
17197#
17198AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17199
17200
17201# The HP-UX ksh and POSIX shell print the target directory to stdout
17202# if CDPATH is set.
17203(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17204
17205sed_quote_subst='$sed_quote_subst'
17206double_quote_subst='$double_quote_subst'
17207delay_variable_subst='$delay_variable_subst'
17208macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17209macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17210enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17211enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17212pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17213enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17214SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17215ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17216PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17217host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17218host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17219host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17220build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17221build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17222build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17223SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17224Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17225GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17226EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17227FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17228LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17229NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17230LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17231max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17232ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17233exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17234lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17235lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17236lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17237lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17238lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17239reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17240reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17241OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17242deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17243file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17244file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17245want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17246DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17247sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17248AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17249AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17250archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17251STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17252RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17253old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17254old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17255old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17256lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17257CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17258CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17259compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17260GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17261lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17262lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17263lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17264lt_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"`'
17265nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17266lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17267objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17268MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17269lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17270lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17271lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17272lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17273lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17274need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17275MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17276DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17277NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17278LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17279OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17280OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17281libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17282shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17283extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17284archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17285enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17286export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17287whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17288compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17289old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17290old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17291archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17292archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17293module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17294module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17295with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17296allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17297no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17298hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17299hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17300hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17301hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17302hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17303hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17304hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17305inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17306link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17307always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17308export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17309exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17310include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17311prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17312postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17313file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17314variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17315need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17316need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17317version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17318runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17319shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17320shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17321libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17322library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17323soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17324install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17325postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17326postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17327finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17328finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17329hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17330sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17331sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17332hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17333enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17334enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17335enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17336old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17337striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17338compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17339predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17340postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17341predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17342postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17343compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17344LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17345reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17346reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17347old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17348compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17349GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17350lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17351lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17352lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17353lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17354lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17355archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17356enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17357export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17358whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17359compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17360old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17361old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17362archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17363archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17364module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17365module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17366with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17367allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17368no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17369hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17370hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17371hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17372hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17373hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17374hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17375hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17376inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17377link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17378always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17379export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17380exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17381include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17382prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17383postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17384file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17385hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17386compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17387predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17388postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17389predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17390postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17391compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17392
17393LTCC='$LTCC'
17394LTCFLAGS='$LTCFLAGS'
17395compiler='$compiler_DEFAULT'
17396
17397# A function that is used when there is no print builtin or printf.
17398func_fallback_echo ()
17399{
17400  eval 'cat <<_LTECHO_EOF
17401\$1
17402_LTECHO_EOF'
17403}
17404
17405# Quote evaled strings.
17406for var in SHELL \
17407ECHO \
17408PATH_SEPARATOR \
17409SED \
17410GREP \
17411EGREP \
17412FGREP \
17413LD \
17414NM \
17415LN_S \
17416lt_SP2NL \
17417lt_NL2SP \
17418reload_flag \
17419OBJDUMP \
17420deplibs_check_method \
17421file_magic_cmd \
17422file_magic_glob \
17423want_nocaseglob \
17424DLLTOOL \
17425sharedlib_from_linklib_cmd \
17426AR \
17427AR_FLAGS \
17428archiver_list_spec \
17429STRIP \
17430RANLIB \
17431CC \
17432CFLAGS \
17433compiler \
17434lt_cv_sys_global_symbol_pipe \
17435lt_cv_sys_global_symbol_to_cdecl \
17436lt_cv_sys_global_symbol_to_c_name_address \
17437lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17438nm_file_list_spec \
17439lt_prog_compiler_no_builtin_flag \
17440lt_prog_compiler_pic \
17441lt_prog_compiler_wl \
17442lt_prog_compiler_static \
17443lt_cv_prog_compiler_c_o \
17444need_locks \
17445MANIFEST_TOOL \
17446DSYMUTIL \
17447NMEDIT \
17448LIPO \
17449OTOOL \
17450OTOOL64 \
17451shrext_cmds \
17452export_dynamic_flag_spec \
17453whole_archive_flag_spec \
17454compiler_needs_object \
17455with_gnu_ld \
17456allow_undefined_flag \
17457no_undefined_flag \
17458hardcode_libdir_flag_spec \
17459hardcode_libdir_separator \
17460exclude_expsyms \
17461include_expsyms \
17462file_list_spec \
17463variables_saved_for_relink \
17464libname_spec \
17465library_names_spec \
17466soname_spec \
17467install_override_mode \
17468finish_eval \
17469old_striplib \
17470striplib \
17471compiler_lib_search_dirs \
17472predep_objects \
17473postdep_objects \
17474predeps \
17475postdeps \
17476compiler_lib_search_path \
17477LD_CXX \
17478reload_flag_CXX \
17479compiler_CXX \
17480lt_prog_compiler_no_builtin_flag_CXX \
17481lt_prog_compiler_pic_CXX \
17482lt_prog_compiler_wl_CXX \
17483lt_prog_compiler_static_CXX \
17484lt_cv_prog_compiler_c_o_CXX \
17485export_dynamic_flag_spec_CXX \
17486whole_archive_flag_spec_CXX \
17487compiler_needs_object_CXX \
17488with_gnu_ld_CXX \
17489allow_undefined_flag_CXX \
17490no_undefined_flag_CXX \
17491hardcode_libdir_flag_spec_CXX \
17492hardcode_libdir_separator_CXX \
17493exclude_expsyms_CXX \
17494include_expsyms_CXX \
17495file_list_spec_CXX \
17496compiler_lib_search_dirs_CXX \
17497predep_objects_CXX \
17498postdep_objects_CXX \
17499predeps_CXX \
17500postdeps_CXX \
17501compiler_lib_search_path_CXX; do
17502    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17503    *[\\\\\\\`\\"\\\$]*)
17504      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17505      ;;
17506    *)
17507      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17508      ;;
17509    esac
17510done
17511
17512# Double-quote double-evaled strings.
17513for var in reload_cmds \
17514old_postinstall_cmds \
17515old_postuninstall_cmds \
17516old_archive_cmds \
17517extract_expsyms_cmds \
17518old_archive_from_new_cmds \
17519old_archive_from_expsyms_cmds \
17520archive_cmds \
17521archive_expsym_cmds \
17522module_cmds \
17523module_expsym_cmds \
17524export_symbols_cmds \
17525prelink_cmds \
17526postlink_cmds \
17527postinstall_cmds \
17528postuninstall_cmds \
17529finish_cmds \
17530sys_lib_search_path_spec \
17531sys_lib_dlsearch_path_spec \
17532reload_cmds_CXX \
17533old_archive_cmds_CXX \
17534old_archive_from_new_cmds_CXX \
17535old_archive_from_expsyms_cmds_CXX \
17536archive_cmds_CXX \
17537archive_expsym_cmds_CXX \
17538module_cmds_CXX \
17539module_expsym_cmds_CXX \
17540export_symbols_cmds_CXX \
17541prelink_cmds_CXX \
17542postlink_cmds_CXX; do
17543    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17544    *[\\\\\\\`\\"\\\$]*)
17545      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17546      ;;
17547    *)
17548      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17549      ;;
17550    esac
17551done
17552
17553ac_aux_dir='$ac_aux_dir'
17554xsi_shell='$xsi_shell'
17555lt_shell_append='$lt_shell_append'
17556
17557# See if we are running on zsh, and set the options which allow our
17558# commands through without removal of \ escapes INIT.
17559if test -n "\${ZSH_VERSION+set}" ; then
17560   setopt NO_GLOB_SUBST
17561fi
17562
17563
17564    PACKAGE='$PACKAGE'
17565    VERSION='$VERSION'
17566    TIMESTAMP='$TIMESTAMP'
17567    RM='$RM'
17568    ofile='$ofile'
17569
17570
17571
17572
17573
17574
17575_ACEOF
17576
17577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17578
17579# Handling of arguments.
17580for ac_config_target in $ac_config_targets
17581do
17582  case $ac_config_target in
17583    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17584    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17585    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17586    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17587    "log4cpp.spec") CONFIG_FILES="$CONFIG_FILES log4cpp.spec" ;;
17588    "log4cpp.pc") CONFIG_FILES="$CONFIG_FILES log4cpp.pc" ;;
17589    "log4cpp-config") CONFIG_FILES="$CONFIG_FILES log4cpp-config" ;;
17590    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
17591    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17592    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
17593    "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
17594    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17595    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17596    "include/log4cpp/Makefile") CONFIG_FILES="$CONFIG_FILES include/log4cpp/Makefile" ;;
17597    "include/log4cpp/threading/Makefile") CONFIG_FILES="$CONFIG_FILES include/log4cpp/threading/Makefile" ;;
17598    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17599    "msvc6/Makefile") CONFIG_FILES="$CONFIG_FILES msvc6/Makefile" ;;
17600    "msvc6/log4cpp/Makefile") CONFIG_FILES="$CONFIG_FILES msvc6/log4cpp/Makefile" ;;
17601    "msvc6/log4cppDLL/Makefile") CONFIG_FILES="$CONFIG_FILES msvc6/log4cppDLL/Makefile" ;;
17602    "msvc6/testCategory/Makefile") CONFIG_FILES="$CONFIG_FILES msvc6/testCategory/Makefile" ;;
17603    "msvc6/testDLL/Makefile") CONFIG_FILES="$CONFIG_FILES msvc6/testDLL/Makefile" ;;
17604    "msvc6/testMain/Makefile") CONFIG_FILES="$CONFIG_FILES msvc6/testMain/Makefile" ;;
17605    "msvc6/testNDC/Makefile") CONFIG_FILES="$CONFIG_FILES msvc6/testNDC/Makefile" ;;
17606    "msvc6/testNTEventLog/Makefile") CONFIG_FILES="$CONFIG_FILES msvc6/testNTEventLog/Makefile" ;;
17607    "msvc6/testPattern/Makefile") CONFIG_FILES="$CONFIG_FILES msvc6/testPattern/Makefile" ;;
17608    "bcb5/Makefile") CONFIG_FILES="$CONFIG_FILES bcb5/Makefile" ;;
17609    "bcb5/log4cpp/Makefile") CONFIG_FILES="$CONFIG_FILES bcb5/log4cpp/Makefile" ;;
17610    "bcb5/testCategory/Makefile") CONFIG_FILES="$CONFIG_FILES bcb5/testCategory/Makefile" ;;
17611    "bcb5/testConfig/Makefile") CONFIG_FILES="$CONFIG_FILES bcb5/testConfig/Makefile" ;;
17612    "bcb5/testFixedContextCategory/Makefile") CONFIG_FILES="$CONFIG_FILES bcb5/testFixedContextCategory/Makefile" ;;
17613    "bcb5/testmain/Makefile") CONFIG_FILES="$CONFIG_FILES bcb5/testmain/Makefile" ;;
17614    "bcb5/testNDC/Makefile") CONFIG_FILES="$CONFIG_FILES bcb5/testNDC/Makefile" ;;
17615    "bcb5/testPattern/Makefile") CONFIG_FILES="$CONFIG_FILES bcb5/testPattern/Makefile" ;;
17616    "openvms/Makefile") CONFIG_FILES="$CONFIG_FILES openvms/Makefile" ;;
17617
17618  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17619  esac
17620done
17621
17622
17623# If the user did not use the arguments to specify the items to instantiate,
17624# then the envvar interface is used.  Set only those that are not.
17625# We use the long form for the default assignment because of an extremely
17626# bizarre bug on SunOS 4.1.3.
17627if $ac_need_defaults; then
17628  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17629  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17630  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17631fi
17632
17633# Have a temporary directory for convenience.  Make it in the build tree
17634# simply because there is no reason against having it here, and in addition,
17635# creating and moving files from /tmp can sometimes cause problems.
17636# Hook for its removal unless debugging.
17637# Note that there is a small window in which the directory will not be cleaned:
17638# after its creation but before its name has been assigned to `$tmp'.
17639$debug ||
17640{
17641  tmp= ac_tmp=
17642  trap 'exit_status=$?
17643  : "${ac_tmp:=$tmp}"
17644  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17645' 0
17646  trap 'as_fn_exit 1' 1 2 13 15
17647}
17648# Create a (secure) tmp directory for tmp files.
17649
17650{
17651  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17652  test -d "$tmp"
17653}  ||
17654{
17655  tmp=./conf$$-$RANDOM
17656  (umask 077 && mkdir "$tmp")
17657} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17658ac_tmp=$tmp
17659
17660# Set up the scripts for CONFIG_FILES section.
17661# No need to generate them if there are no CONFIG_FILES.
17662# This happens for instance with `./config.status config.h'.
17663if test -n "$CONFIG_FILES"; then
17664
17665
17666ac_cr=`echo X | tr X '\015'`
17667# On cygwin, bash can eat \r inside `` if the user requested igncr.
17668# But we know of no other shell where ac_cr would be empty at this
17669# point, so we can use a bashism as a fallback.
17670if test "x$ac_cr" = x; then
17671  eval ac_cr=\$\'\\r\'
17672fi
17673ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17674if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17675  ac_cs_awk_cr='\\r'
17676else
17677  ac_cs_awk_cr=$ac_cr
17678fi
17679
17680echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17681_ACEOF
17682
17683
17684{
17685  echo "cat >conf$$subs.awk <<_ACEOF" &&
17686  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17687  echo "_ACEOF"
17688} >conf$$subs.sh ||
17689  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17690ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17691ac_delim='%!_!# '
17692for ac_last_try in false false false false false :; do
17693  . ./conf$$subs.sh ||
17694    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17695
17696  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17697  if test $ac_delim_n = $ac_delim_num; then
17698    break
17699  elif $ac_last_try; then
17700    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17701  else
17702    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17703  fi
17704done
17705rm -f conf$$subs.sh
17706
17707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17708cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17709_ACEOF
17710sed -n '
17711h
17712s/^/S["/; s/!.*/"]=/
17713p
17714g
17715s/^[^!]*!//
17716:repl
17717t repl
17718s/'"$ac_delim"'$//
17719t delim
17720:nl
17721h
17722s/\(.\{148\}\)..*/\1/
17723t more1
17724s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17725p
17726n
17727b repl
17728:more1
17729s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17730p
17731g
17732s/.\{148\}//
17733t nl
17734:delim
17735h
17736s/\(.\{148\}\)..*/\1/
17737t more2
17738s/["\\]/\\&/g; s/^/"/; s/$/"/
17739p
17740b
17741:more2
17742s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17743p
17744g
17745s/.\{148\}//
17746t delim
17747' <conf$$subs.awk | sed '
17748/^[^""]/{
17749  N
17750  s/\n//
17751}
17752' >>$CONFIG_STATUS || ac_write_fail=1
17753rm -f conf$$subs.awk
17754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755_ACAWK
17756cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17757  for (key in S) S_is_set[key] = 1
17758  FS = ""
17759
17760}
17761{
17762  line = $ 0
17763  nfields = split(line, field, "@")
17764  substed = 0
17765  len = length(field[1])
17766  for (i = 2; i < nfields; i++) {
17767    key = field[i]
17768    keylen = length(key)
17769    if (S_is_set[key]) {
17770      value = S[key]
17771      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17772      len += length(value) + length(field[++i])
17773      substed = 1
17774    } else
17775      len += 1 + keylen
17776  }
17777
17778  print line
17779}
17780
17781_ACAWK
17782_ACEOF
17783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17784if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17785  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17786else
17787  cat
17788fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17789  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17790_ACEOF
17791
17792# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17793# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17794# trailing colons and then remove the whole line if VPATH becomes empty
17795# (actually we leave an empty line to preserve line numbers).
17796if test "x$srcdir" = x.; then
17797  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17798h
17799s///
17800s/^/:/
17801s/[	 ]*$/:/
17802s/:\$(srcdir):/:/g
17803s/:\${srcdir}:/:/g
17804s/:@srcdir@:/:/g
17805s/^:*//
17806s/:*$//
17807x
17808s/\(=[	 ]*\).*/\1/
17809G
17810s/\n//
17811s/^[^=]*=[	 ]*$//
17812}'
17813fi
17814
17815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17816fi # test -n "$CONFIG_FILES"
17817
17818# Set up the scripts for CONFIG_HEADERS section.
17819# No need to generate them if there are no CONFIG_HEADERS.
17820# This happens for instance with `./config.status Makefile'.
17821if test -n "$CONFIG_HEADERS"; then
17822cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17823BEGIN {
17824_ACEOF
17825
17826# Transform confdefs.h into an awk script `defines.awk', embedded as
17827# here-document in config.status, that substitutes the proper values into
17828# config.h.in to produce config.h.
17829
17830# Create a delimiter string that does not exist in confdefs.h, to ease
17831# handling of long lines.
17832ac_delim='%!_!# '
17833for ac_last_try in false false :; do
17834  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17835  if test -z "$ac_tt"; then
17836    break
17837  elif $ac_last_try; then
17838    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17839  else
17840    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17841  fi
17842done
17843
17844# For the awk script, D is an array of macro values keyed by name,
17845# likewise P contains macro parameters if any.  Preserve backslash
17846# newline sequences.
17847
17848ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17849sed -n '
17850s/.\{148\}/&'"$ac_delim"'/g
17851t rset
17852:rset
17853s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17854t def
17855d
17856:def
17857s/\\$//
17858t bsnl
17859s/["\\]/\\&/g
17860s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17861D["\1"]=" \3"/p
17862s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17863d
17864:bsnl
17865s/["\\]/\\&/g
17866s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17867D["\1"]=" \3\\\\\\n"\\/p
17868t cont
17869s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17870t cont
17871d
17872:cont
17873n
17874s/.\{148\}/&'"$ac_delim"'/g
17875t clear
17876:clear
17877s/\\$//
17878t bsnlc
17879s/["\\]/\\&/g; s/^/"/; s/$/"/p
17880d
17881:bsnlc
17882s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17883b cont
17884' <confdefs.h | sed '
17885s/'"$ac_delim"'/"\\\
17886"/g' >>$CONFIG_STATUS || ac_write_fail=1
17887
17888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17889  for (key in D) D_is_set[key] = 1
17890  FS = ""
17891}
17892/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17893  line = \$ 0
17894  split(line, arg, " ")
17895  if (arg[1] == "#") {
17896    defundef = arg[2]
17897    mac1 = arg[3]
17898  } else {
17899    defundef = substr(arg[1], 2)
17900    mac1 = arg[2]
17901  }
17902  split(mac1, mac2, "(") #)
17903  macro = mac2[1]
17904  prefix = substr(line, 1, index(line, defundef) - 1)
17905  if (D_is_set[macro]) {
17906    # Preserve the white space surrounding the "#".
17907    print prefix "define", macro P[macro] D[macro]
17908    next
17909  } else {
17910    # Replace #undef with comments.  This is necessary, for example,
17911    # in the case of _POSIX_SOURCE, which is predefined and required
17912    # on some systems where configure will not decide to define it.
17913    if (defundef == "undef") {
17914      print "/*", prefix defundef, macro, "*/"
17915      next
17916    }
17917  }
17918}
17919{ print }
17920_ACAWK
17921_ACEOF
17922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17923  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17924fi # test -n "$CONFIG_HEADERS"
17925
17926
17927eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17928shift
17929for ac_tag
17930do
17931  case $ac_tag in
17932  :[FHLC]) ac_mode=$ac_tag; continue;;
17933  esac
17934  case $ac_mode$ac_tag in
17935  :[FHL]*:*);;
17936  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17937  :[FH]-) ac_tag=-:-;;
17938  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17939  esac
17940  ac_save_IFS=$IFS
17941  IFS=:
17942  set x $ac_tag
17943  IFS=$ac_save_IFS
17944  shift
17945  ac_file=$1
17946  shift
17947
17948  case $ac_mode in
17949  :L) ac_source=$1;;
17950  :[FH])
17951    ac_file_inputs=
17952    for ac_f
17953    do
17954      case $ac_f in
17955      -) ac_f="$ac_tmp/stdin";;
17956      *) # Look for the file first in the build tree, then in the source tree
17957	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17958	 # because $ac_f cannot contain `:'.
17959	 test -f "$ac_f" ||
17960	   case $ac_f in
17961	   [\\/$]*) false;;
17962	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17963	   esac ||
17964	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17965      esac
17966      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17967      as_fn_append ac_file_inputs " '$ac_f'"
17968    done
17969
17970    # Let's still pretend it is `configure' which instantiates (i.e., don't
17971    # use $as_me), people would be surprised to read:
17972    #    /* config.h.  Generated by config.status.  */
17973    configure_input='Generated from '`
17974	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17975	`' by configure.'
17976    if test x"$ac_file" != x-; then
17977      configure_input="$ac_file.  $configure_input"
17978      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17979$as_echo "$as_me: creating $ac_file" >&6;}
17980    fi
17981    # Neutralize special characters interpreted by sed in replacement strings.
17982    case $configure_input in #(
17983    *\&* | *\|* | *\\* )
17984       ac_sed_conf_input=`$as_echo "$configure_input" |
17985       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17986    *) ac_sed_conf_input=$configure_input;;
17987    esac
17988
17989    case $ac_tag in
17990    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17991      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17992    esac
17993    ;;
17994  esac
17995
17996  ac_dir=`$as_dirname -- "$ac_file" ||
17997$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17998	 X"$ac_file" : 'X\(//\)[^/]' \| \
17999	 X"$ac_file" : 'X\(//\)$' \| \
18000	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18001$as_echo X"$ac_file" |
18002    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18003	    s//\1/
18004	    q
18005	  }
18006	  /^X\(\/\/\)[^/].*/{
18007	    s//\1/
18008	    q
18009	  }
18010	  /^X\(\/\/\)$/{
18011	    s//\1/
18012	    q
18013	  }
18014	  /^X\(\/\).*/{
18015	    s//\1/
18016	    q
18017	  }
18018	  s/.*/./; q'`
18019  as_dir="$ac_dir"; as_fn_mkdir_p
18020  ac_builddir=.
18021
18022case "$ac_dir" in
18023.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18024*)
18025  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18026  # A ".." for each directory in $ac_dir_suffix.
18027  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18028  case $ac_top_builddir_sub in
18029  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18030  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18031  esac ;;
18032esac
18033ac_abs_top_builddir=$ac_pwd
18034ac_abs_builddir=$ac_pwd$ac_dir_suffix
18035# for backward compatibility:
18036ac_top_builddir=$ac_top_build_prefix
18037
18038case $srcdir in
18039  .)  # We are building in place.
18040    ac_srcdir=.
18041    ac_top_srcdir=$ac_top_builddir_sub
18042    ac_abs_top_srcdir=$ac_pwd ;;
18043  [\\/]* | ?:[\\/]* )  # Absolute name.
18044    ac_srcdir=$srcdir$ac_dir_suffix;
18045    ac_top_srcdir=$srcdir
18046    ac_abs_top_srcdir=$srcdir ;;
18047  *) # Relative name.
18048    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18049    ac_top_srcdir=$ac_top_build_prefix$srcdir
18050    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18051esac
18052ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18053
18054
18055  case $ac_mode in
18056  :F)
18057  #
18058  # CONFIG_FILE
18059  #
18060
18061  case $INSTALL in
18062  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18063  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18064  esac
18065  ac_MKDIR_P=$MKDIR_P
18066  case $MKDIR_P in
18067  [\\/$]* | ?:[\\/]* ) ;;
18068  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18069  esac
18070_ACEOF
18071
18072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18073# If the template does not know about datarootdir, expand it.
18074# FIXME: This hack should be removed a few years after 2.60.
18075ac_datarootdir_hack=; ac_datarootdir_seen=
18076ac_sed_dataroot='
18077/datarootdir/ {
18078  p
18079  q
18080}
18081/@datadir@/p
18082/@docdir@/p
18083/@infodir@/p
18084/@localedir@/p
18085/@mandir@/p'
18086case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18087*datarootdir*) ac_datarootdir_seen=yes;;
18088*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18089  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18090$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18091_ACEOF
18092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18093  ac_datarootdir_hack='
18094  s&@datadir@&$datadir&g
18095  s&@docdir@&$docdir&g
18096  s&@infodir@&$infodir&g
18097  s&@localedir@&$localedir&g
18098  s&@mandir@&$mandir&g
18099  s&\\\${datarootdir}&$datarootdir&g' ;;
18100esac
18101_ACEOF
18102
18103# Neutralize VPATH when `$srcdir' = `.'.
18104# Shell code in configure.ac might set extrasub.
18105# FIXME: do we really want to maintain this feature?
18106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18107ac_sed_extra="$ac_vpsub
18108$extrasub
18109_ACEOF
18110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18111:t
18112/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18113s|@configure_input@|$ac_sed_conf_input|;t t
18114s&@top_builddir@&$ac_top_builddir_sub&;t t
18115s&@top_build_prefix@&$ac_top_build_prefix&;t t
18116s&@srcdir@&$ac_srcdir&;t t
18117s&@abs_srcdir@&$ac_abs_srcdir&;t t
18118s&@top_srcdir@&$ac_top_srcdir&;t t
18119s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18120s&@builddir@&$ac_builddir&;t t
18121s&@abs_builddir@&$ac_abs_builddir&;t t
18122s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18123s&@INSTALL@&$ac_INSTALL&;t t
18124s&@MKDIR_P@&$ac_MKDIR_P&;t t
18125$ac_datarootdir_hack
18126"
18127eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18128  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18129
18130test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18131  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18132  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18133      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18134  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18135which seems to be undefined.  Please make sure it is defined" >&5
18136$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18137which seems to be undefined.  Please make sure it is defined" >&2;}
18138
18139  rm -f "$ac_tmp/stdin"
18140  case $ac_file in
18141  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18142  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18143  esac \
18144  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18145 ;;
18146  :H)
18147  #
18148  # CONFIG_HEADER
18149  #
18150  if test x"$ac_file" != x-; then
18151    {
18152      $as_echo "/* $configure_input  */" \
18153      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18154    } >"$ac_tmp/config.h" \
18155      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18156    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18157      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18158$as_echo "$as_me: $ac_file is unchanged" >&6;}
18159    else
18160      rm -f "$ac_file"
18161      mv "$ac_tmp/config.h" "$ac_file" \
18162	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18163    fi
18164  else
18165    $as_echo "/* $configure_input  */" \
18166      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18167      || as_fn_error $? "could not create -" "$LINENO" 5
18168  fi
18169# Compute "$ac_file"'s index in $config_headers.
18170_am_arg="$ac_file"
18171_am_stamp_count=1
18172for _am_header in $config_headers :; do
18173  case $_am_header in
18174    $_am_arg | $_am_arg:* )
18175      break ;;
18176    * )
18177      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18178  esac
18179done
18180echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18181$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18182	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18183	 X"$_am_arg" : 'X\(//\)$' \| \
18184	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18185$as_echo X"$_am_arg" |
18186    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18187	    s//\1/
18188	    q
18189	  }
18190	  /^X\(\/\/\)[^/].*/{
18191	    s//\1/
18192	    q
18193	  }
18194	  /^X\(\/\/\)$/{
18195	    s//\1/
18196	    q
18197	  }
18198	  /^X\(\/\).*/{
18199	    s//\1/
18200	    q
18201	  }
18202	  s/.*/./; q'`/stamp-h$_am_stamp_count
18203 ;;
18204
18205  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18206$as_echo "$as_me: executing $ac_file commands" >&6;}
18207 ;;
18208  esac
18209
18210
18211  case $ac_file$ac_mode in
18212    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18213  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18214  # are listed without --file.  Let's play safe and only enable the eval
18215  # if we detect the quoting.
18216  case $CONFIG_FILES in
18217  *\'*) eval set x "$CONFIG_FILES" ;;
18218  *)   set x $CONFIG_FILES ;;
18219  esac
18220  shift
18221  for mf
18222  do
18223    # Strip MF so we end up with the name of the file.
18224    mf=`echo "$mf" | sed -e 's/:.*$//'`
18225    # Check whether this is an Automake generated Makefile or not.
18226    # We used to match only the files named `Makefile.in', but
18227    # some people rename them; so instead we look at the file content.
18228    # Grep'ing the first line is not enough: some people post-process
18229    # each Makefile.in and add a new line on top of each file to say so.
18230    # Grep'ing the whole file is not good either: AIX grep has a line
18231    # limit of 2048, but all sed's we know have understand at least 4000.
18232    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18233      dirpart=`$as_dirname -- "$mf" ||
18234$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18235	 X"$mf" : 'X\(//\)[^/]' \| \
18236	 X"$mf" : 'X\(//\)$' \| \
18237	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18238$as_echo X"$mf" |
18239    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18240	    s//\1/
18241	    q
18242	  }
18243	  /^X\(\/\/\)[^/].*/{
18244	    s//\1/
18245	    q
18246	  }
18247	  /^X\(\/\/\)$/{
18248	    s//\1/
18249	    q
18250	  }
18251	  /^X\(\/\).*/{
18252	    s//\1/
18253	    q
18254	  }
18255	  s/.*/./; q'`
18256    else
18257      continue
18258    fi
18259    # Extract the definition of DEPDIR, am__include, and am__quote
18260    # from the Makefile without running `make'.
18261    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18262    test -z "$DEPDIR" && continue
18263    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18264    test -z "am__include" && continue
18265    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18266    # When using ansi2knr, U may be empty or an underscore; expand it
18267    U=`sed -n 's/^U = //p' < "$mf"`
18268    # Find all dependency output files, they are included files with
18269    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18270    # simplest approach to changing $(DEPDIR) to its actual value in the
18271    # expansion.
18272    for file in `sed -n "
18273      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18274	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18275      # Make sure the directory exists.
18276      test -f "$dirpart/$file" && continue
18277      fdir=`$as_dirname -- "$file" ||
18278$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18279	 X"$file" : 'X\(//\)[^/]' \| \
18280	 X"$file" : 'X\(//\)$' \| \
18281	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18282$as_echo X"$file" |
18283    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18284	    s//\1/
18285	    q
18286	  }
18287	  /^X\(\/\/\)[^/].*/{
18288	    s//\1/
18289	    q
18290	  }
18291	  /^X\(\/\/\)$/{
18292	    s//\1/
18293	    q
18294	  }
18295	  /^X\(\/\).*/{
18296	    s//\1/
18297	    q
18298	  }
18299	  s/.*/./; q'`
18300      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18301      # echo "creating $dirpart/$file"
18302      echo '# dummy' > "$dirpart/$file"
18303    done
18304  done
18305}
18306 ;;
18307    "libtool":C)
18308
18309    # See if we are running on zsh, and set the options which allow our
18310    # commands through without removal of \ escapes.
18311    if test -n "${ZSH_VERSION+set}" ; then
18312      setopt NO_GLOB_SUBST
18313    fi
18314
18315    cfgfile="${ofile}T"
18316    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18317    $RM "$cfgfile"
18318
18319    cat <<_LT_EOF >> "$cfgfile"
18320#! $SHELL
18321
18322# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18323# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18324# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18325# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18326#
18327#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18328#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18329#                 Foundation, Inc.
18330#   Written by Gordon Matzigkeit, 1996
18331#
18332#   This file is part of GNU Libtool.
18333#
18334# GNU Libtool is free software; you can redistribute it and/or
18335# modify it under the terms of the GNU General Public License as
18336# published by the Free Software Foundation; either version 2 of
18337# the License, or (at your option) any later version.
18338#
18339# As a special exception to the GNU General Public License,
18340# if you distribute this file as part of a program or library that
18341# is built using GNU Libtool, you may include this file under the
18342# same distribution terms that you use for the rest of that program.
18343#
18344# GNU Libtool is distributed in the hope that it will be useful,
18345# but WITHOUT ANY WARRANTY; without even the implied warranty of
18346# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18347# GNU General Public License for more details.
18348#
18349# You should have received a copy of the GNU General Public License
18350# along with GNU Libtool; see the file COPYING.  If not, a copy
18351# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18352# obtained by writing to the Free Software Foundation, Inc.,
18353# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18354
18355
18356# The names of the tagged configurations supported by this script.
18357available_tags="CXX "
18358
18359# ### BEGIN LIBTOOL CONFIG
18360
18361# Which release of libtool.m4 was used?
18362macro_version=$macro_version
18363macro_revision=$macro_revision
18364
18365# Whether or not to build shared libraries.
18366build_libtool_libs=$enable_shared
18367
18368# Whether or not to build static libraries.
18369build_old_libs=$enable_static
18370
18371# What type of objects to build.
18372pic_mode=$pic_mode
18373
18374# Whether or not to optimize for fast installation.
18375fast_install=$enable_fast_install
18376
18377# Shell to use when invoking shell scripts.
18378SHELL=$lt_SHELL
18379
18380# An echo program that protects backslashes.
18381ECHO=$lt_ECHO
18382
18383# The PATH separator for the build system.
18384PATH_SEPARATOR=$lt_PATH_SEPARATOR
18385
18386# The host system.
18387host_alias=$host_alias
18388host=$host
18389host_os=$host_os
18390
18391# The build system.
18392build_alias=$build_alias
18393build=$build
18394build_os=$build_os
18395
18396# A sed program that does not truncate output.
18397SED=$lt_SED
18398
18399# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18400Xsed="\$SED -e 1s/^X//"
18401
18402# A grep program that handles long lines.
18403GREP=$lt_GREP
18404
18405# An ERE matcher.
18406EGREP=$lt_EGREP
18407
18408# A literal string matcher.
18409FGREP=$lt_FGREP
18410
18411# A BSD- or MS-compatible name lister.
18412NM=$lt_NM
18413
18414# Whether we need soft or hard links.
18415LN_S=$lt_LN_S
18416
18417# What is the maximum length of a command?
18418max_cmd_len=$max_cmd_len
18419
18420# Object file suffix (normally "o").
18421objext=$ac_objext
18422
18423# Executable file suffix (normally "").
18424exeext=$exeext
18425
18426# whether the shell understands "unset".
18427lt_unset=$lt_unset
18428
18429# turn spaces into newlines.
18430SP2NL=$lt_lt_SP2NL
18431
18432# turn newlines into spaces.
18433NL2SP=$lt_lt_NL2SP
18434
18435# convert \$build file names to \$host format.
18436to_host_file_cmd=$lt_cv_to_host_file_cmd
18437
18438# convert \$build files to toolchain format.
18439to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18440
18441# An object symbol dumper.
18442OBJDUMP=$lt_OBJDUMP
18443
18444# Method to check whether dependent libraries are shared objects.
18445deplibs_check_method=$lt_deplibs_check_method
18446
18447# Command to use when deplibs_check_method = "file_magic".
18448file_magic_cmd=$lt_file_magic_cmd
18449
18450# How to find potential files when deplibs_check_method = "file_magic".
18451file_magic_glob=$lt_file_magic_glob
18452
18453# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18454want_nocaseglob=$lt_want_nocaseglob
18455
18456# DLL creation program.
18457DLLTOOL=$lt_DLLTOOL
18458
18459# Command to associate shared and link libraries.
18460sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18461
18462# The archiver.
18463AR=$lt_AR
18464
18465# Flags to create an archive.
18466AR_FLAGS=$lt_AR_FLAGS
18467
18468# How to feed a file listing to the archiver.
18469archiver_list_spec=$lt_archiver_list_spec
18470
18471# A symbol stripping program.
18472STRIP=$lt_STRIP
18473
18474# Commands used to install an old-style archive.
18475RANLIB=$lt_RANLIB
18476old_postinstall_cmds=$lt_old_postinstall_cmds
18477old_postuninstall_cmds=$lt_old_postuninstall_cmds
18478
18479# Whether to use a lock for old archive extraction.
18480lock_old_archive_extraction=$lock_old_archive_extraction
18481
18482# A C compiler.
18483LTCC=$lt_CC
18484
18485# LTCC compiler flags.
18486LTCFLAGS=$lt_CFLAGS
18487
18488# Take the output of nm and produce a listing of raw symbols and C names.
18489global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18490
18491# Transform the output of nm in a proper C declaration.
18492global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18493
18494# Transform the output of nm in a C name address pair.
18495global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18496
18497# Transform the output of nm in a C name address pair when lib prefix is needed.
18498global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18499
18500# Specify filename containing input files for \$NM.
18501nm_file_list_spec=$lt_nm_file_list_spec
18502
18503# The root where to search for dependent libraries,and in which our libraries should be installed.
18504lt_sysroot=$lt_sysroot
18505
18506# The name of the directory that contains temporary libtool files.
18507objdir=$objdir
18508
18509# Used to examine libraries when file_magic_cmd begins with "file".
18510MAGIC_CMD=$MAGIC_CMD
18511
18512# Must we lock files when doing compilation?
18513need_locks=$lt_need_locks
18514
18515# Manifest tool.
18516MANIFEST_TOOL=$lt_MANIFEST_TOOL
18517
18518# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18519DSYMUTIL=$lt_DSYMUTIL
18520
18521# Tool to change global to local symbols on Mac OS X.
18522NMEDIT=$lt_NMEDIT
18523
18524# Tool to manipulate fat objects and archives on Mac OS X.
18525LIPO=$lt_LIPO
18526
18527# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18528OTOOL=$lt_OTOOL
18529
18530# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18531OTOOL64=$lt_OTOOL64
18532
18533# Old archive suffix (normally "a").
18534libext=$libext
18535
18536# Shared library suffix (normally ".so").
18537shrext_cmds=$lt_shrext_cmds
18538
18539# The commands to extract the exported symbol list from a shared archive.
18540extract_expsyms_cmds=$lt_extract_expsyms_cmds
18541
18542# Variables whose values should be saved in libtool wrapper scripts and
18543# restored at link time.
18544variables_saved_for_relink=$lt_variables_saved_for_relink
18545
18546# Do we need the "lib" prefix for modules?
18547need_lib_prefix=$need_lib_prefix
18548
18549# Do we need a version for libraries?
18550need_version=$need_version
18551
18552# Library versioning type.
18553version_type=$version_type
18554
18555# Shared library runtime path variable.
18556runpath_var=$runpath_var
18557
18558# Shared library path variable.
18559shlibpath_var=$shlibpath_var
18560
18561# Is shlibpath searched before the hard-coded library search path?
18562shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18563
18564# Format of library name prefix.
18565libname_spec=$lt_libname_spec
18566
18567# List of archive names.  First name is the real one, the rest are links.
18568# The last name is the one that the linker finds with -lNAME
18569library_names_spec=$lt_library_names_spec
18570
18571# The coded name of the library, if different from the real name.
18572soname_spec=$lt_soname_spec
18573
18574# Permission mode override for installation of shared libraries.
18575install_override_mode=$lt_install_override_mode
18576
18577# Command to use after installation of a shared archive.
18578postinstall_cmds=$lt_postinstall_cmds
18579
18580# Command to use after uninstallation of a shared archive.
18581postuninstall_cmds=$lt_postuninstall_cmds
18582
18583# Commands used to finish a libtool library installation in a directory.
18584finish_cmds=$lt_finish_cmds
18585
18586# As "finish_cmds", except a single script fragment to be evaled but
18587# not shown.
18588finish_eval=$lt_finish_eval
18589
18590# Whether we should hardcode library paths into libraries.
18591hardcode_into_libs=$hardcode_into_libs
18592
18593# Compile-time system search path for libraries.
18594sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18595
18596# Run-time system search path for libraries.
18597sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18598
18599# Whether dlopen is supported.
18600dlopen_support=$enable_dlopen
18601
18602# Whether dlopen of programs is supported.
18603dlopen_self=$enable_dlopen_self
18604
18605# Whether dlopen of statically linked programs is supported.
18606dlopen_self_static=$enable_dlopen_self_static
18607
18608# Commands to strip libraries.
18609old_striplib=$lt_old_striplib
18610striplib=$lt_striplib
18611
18612
18613# The linker used to build libraries.
18614LD=$lt_LD
18615
18616# How to create reloadable object files.
18617reload_flag=$lt_reload_flag
18618reload_cmds=$lt_reload_cmds
18619
18620# Commands used to build an old-style archive.
18621old_archive_cmds=$lt_old_archive_cmds
18622
18623# A language specific compiler.
18624CC=$lt_compiler
18625
18626# Is the compiler the GNU compiler?
18627with_gcc=$GCC
18628
18629# Compiler flag to turn off builtin functions.
18630no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18631
18632# Additional compiler flags for building library objects.
18633pic_flag=$lt_lt_prog_compiler_pic
18634
18635# How to pass a linker flag through the compiler.
18636wl=$lt_lt_prog_compiler_wl
18637
18638# Compiler flag to prevent dynamic linking.
18639link_static_flag=$lt_lt_prog_compiler_static
18640
18641# Does compiler simultaneously support -c and -o options?
18642compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18643
18644# Whether or not to add -lc for building shared libraries.
18645build_libtool_need_lc=$archive_cmds_need_lc
18646
18647# Whether or not to disallow shared libs when runtime libs are static.
18648allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18649
18650# Compiler flag to allow reflexive dlopens.
18651export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18652
18653# Compiler flag to generate shared objects directly from archives.
18654whole_archive_flag_spec=$lt_whole_archive_flag_spec
18655
18656# Whether the compiler copes with passing no objects directly.
18657compiler_needs_object=$lt_compiler_needs_object
18658
18659# Create an old-style archive from a shared archive.
18660old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18661
18662# Create a temporary old-style archive to link instead of a shared archive.
18663old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18664
18665# Commands used to build a shared archive.
18666archive_cmds=$lt_archive_cmds
18667archive_expsym_cmds=$lt_archive_expsym_cmds
18668
18669# Commands used to build a loadable module if different from building
18670# a shared archive.
18671module_cmds=$lt_module_cmds
18672module_expsym_cmds=$lt_module_expsym_cmds
18673
18674# Whether we are building with GNU ld or not.
18675with_gnu_ld=$lt_with_gnu_ld
18676
18677# Flag that allows shared libraries with undefined symbols to be built.
18678allow_undefined_flag=$lt_allow_undefined_flag
18679
18680# Flag that enforces no undefined symbols.
18681no_undefined_flag=$lt_no_undefined_flag
18682
18683# Flag to hardcode \$libdir into a binary during linking.
18684# This must work even if \$libdir does not exist
18685hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18686
18687# Whether we need a single "-rpath" flag with a separated argument.
18688hardcode_libdir_separator=$lt_hardcode_libdir_separator
18689
18690# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18691# DIR into the resulting binary.
18692hardcode_direct=$hardcode_direct
18693
18694# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18695# DIR into the resulting binary and the resulting library dependency is
18696# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18697# library is relocated.
18698hardcode_direct_absolute=$hardcode_direct_absolute
18699
18700# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18701# into the resulting binary.
18702hardcode_minus_L=$hardcode_minus_L
18703
18704# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18705# into the resulting binary.
18706hardcode_shlibpath_var=$hardcode_shlibpath_var
18707
18708# Set to "yes" if building a shared library automatically hardcodes DIR
18709# into the library and all subsequent libraries and executables linked
18710# against it.
18711hardcode_automatic=$hardcode_automatic
18712
18713# Set to yes if linker adds runtime paths of dependent libraries
18714# to runtime path list.
18715inherit_rpath=$inherit_rpath
18716
18717# Whether libtool must link a program against all its dependency libraries.
18718link_all_deplibs=$link_all_deplibs
18719
18720# Set to "yes" if exported symbols are required.
18721always_export_symbols=$always_export_symbols
18722
18723# The commands to list exported symbols.
18724export_symbols_cmds=$lt_export_symbols_cmds
18725
18726# Symbols that should not be listed in the preloaded symbols.
18727exclude_expsyms=$lt_exclude_expsyms
18728
18729# Symbols that must always be exported.
18730include_expsyms=$lt_include_expsyms
18731
18732# Commands necessary for linking programs (against libraries) with templates.
18733prelink_cmds=$lt_prelink_cmds
18734
18735# Commands necessary for finishing linking programs.
18736postlink_cmds=$lt_postlink_cmds
18737
18738# Specify filename containing input files.
18739file_list_spec=$lt_file_list_spec
18740
18741# How to hardcode a shared library path into an executable.
18742hardcode_action=$hardcode_action
18743
18744# The directories searched by this compiler when creating a shared library.
18745compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18746
18747# Dependencies to place before and after the objects being linked to
18748# create a shared library.
18749predep_objects=$lt_predep_objects
18750postdep_objects=$lt_postdep_objects
18751predeps=$lt_predeps
18752postdeps=$lt_postdeps
18753
18754# The library search path used internally by the compiler when linking
18755# a shared library.
18756compiler_lib_search_path=$lt_compiler_lib_search_path
18757
18758# ### END LIBTOOL CONFIG
18759
18760_LT_EOF
18761
18762  case $host_os in
18763  aix3*)
18764    cat <<\_LT_EOF >> "$cfgfile"
18765# AIX sometimes has problems with the GCC collect2 program.  For some
18766# reason, if we set the COLLECT_NAMES environment variable, the problems
18767# vanish in a puff of smoke.
18768if test "X${COLLECT_NAMES+set}" != Xset; then
18769  COLLECT_NAMES=
18770  export COLLECT_NAMES
18771fi
18772_LT_EOF
18773    ;;
18774  esac
18775
18776
18777ltmain="$ac_aux_dir/ltmain.sh"
18778
18779
18780  # We use sed instead of cat because bash on DJGPP gets confused if
18781  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18782  # text mode, it properly converts lines to CR/LF.  This bash problem
18783  # is reportedly fixed, but why not run on old versions too?
18784  sed '$q' "$ltmain" >> "$cfgfile" \
18785     || (rm -f "$cfgfile"; exit 1)
18786
18787  if test x"$xsi_shell" = xyes; then
18788  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18789func_dirname ()\
18790{\
18791\    case ${1} in\
18792\      */*) func_dirname_result="${1%/*}${2}" ;;\
18793\      *  ) func_dirname_result="${3}" ;;\
18794\    esac\
18795} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18796  && mv -f "$cfgfile.tmp" "$cfgfile" \
18797    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18798test 0 -eq $? || _lt_function_replace_fail=:
18799
18800
18801  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18802func_basename ()\
18803{\
18804\    func_basename_result="${1##*/}"\
18805} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18806  && mv -f "$cfgfile.tmp" "$cfgfile" \
18807    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18808test 0 -eq $? || _lt_function_replace_fail=:
18809
18810
18811  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18812func_dirname_and_basename ()\
18813{\
18814\    case ${1} in\
18815\      */*) func_dirname_result="${1%/*}${2}" ;;\
18816\      *  ) func_dirname_result="${3}" ;;\
18817\    esac\
18818\    func_basename_result="${1##*/}"\
18819} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18820  && mv -f "$cfgfile.tmp" "$cfgfile" \
18821    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18822test 0 -eq $? || _lt_function_replace_fail=:
18823
18824
18825  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18826func_stripname ()\
18827{\
18828\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18829\    # positional parameters, so assign one to ordinary parameter first.\
18830\    func_stripname_result=${3}\
18831\    func_stripname_result=${func_stripname_result#"${1}"}\
18832\    func_stripname_result=${func_stripname_result%"${2}"}\
18833} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18834  && mv -f "$cfgfile.tmp" "$cfgfile" \
18835    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18836test 0 -eq $? || _lt_function_replace_fail=:
18837
18838
18839  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18840func_split_long_opt ()\
18841{\
18842\    func_split_long_opt_name=${1%%=*}\
18843\    func_split_long_opt_arg=${1#*=}\
18844} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18845  && mv -f "$cfgfile.tmp" "$cfgfile" \
18846    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18847test 0 -eq $? || _lt_function_replace_fail=:
18848
18849
18850  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18851func_split_short_opt ()\
18852{\
18853\    func_split_short_opt_arg=${1#??}\
18854\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18855} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18856  && mv -f "$cfgfile.tmp" "$cfgfile" \
18857    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18858test 0 -eq $? || _lt_function_replace_fail=:
18859
18860
18861  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18862func_lo2o ()\
18863{\
18864\    case ${1} in\
18865\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18866\      *)    func_lo2o_result=${1} ;;\
18867\    esac\
18868} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18869  && mv -f "$cfgfile.tmp" "$cfgfile" \
18870    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18871test 0 -eq $? || _lt_function_replace_fail=:
18872
18873
18874  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18875func_xform ()\
18876{\
18877    func_xform_result=${1%.*}.lo\
18878} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18879  && mv -f "$cfgfile.tmp" "$cfgfile" \
18880    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18881test 0 -eq $? || _lt_function_replace_fail=:
18882
18883
18884  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18885func_arith ()\
18886{\
18887    func_arith_result=$(( $* ))\
18888} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18889  && mv -f "$cfgfile.tmp" "$cfgfile" \
18890    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18891test 0 -eq $? || _lt_function_replace_fail=:
18892
18893
18894  sed -e '/^func_len ()$/,/^} # func_len /c\
18895func_len ()\
18896{\
18897    func_len_result=${#1}\
18898} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18899  && mv -f "$cfgfile.tmp" "$cfgfile" \
18900    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18901test 0 -eq $? || _lt_function_replace_fail=:
18902
18903fi
18904
18905if test x"$lt_shell_append" = xyes; then
18906  sed -e '/^func_append ()$/,/^} # func_append /c\
18907func_append ()\
18908{\
18909    eval "${1}+=\\${2}"\
18910} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18911  && mv -f "$cfgfile.tmp" "$cfgfile" \
18912    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18913test 0 -eq $? || _lt_function_replace_fail=:
18914
18915
18916  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18917func_append_quoted ()\
18918{\
18919\    func_quote_for_eval "${2}"\
18920\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18921} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18922  && mv -f "$cfgfile.tmp" "$cfgfile" \
18923    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18924test 0 -eq $? || _lt_function_replace_fail=:
18925
18926
18927  # Save a `func_append' function call where possible by direct use of '+='
18928  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18929    && mv -f "$cfgfile.tmp" "$cfgfile" \
18930      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18931  test 0 -eq $? || _lt_function_replace_fail=:
18932else
18933  # Save a `func_append' function call even when '+=' is not available
18934  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18935    && mv -f "$cfgfile.tmp" "$cfgfile" \
18936      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18937  test 0 -eq $? || _lt_function_replace_fail=:
18938fi
18939
18940if test x"$_lt_function_replace_fail" = x":"; then
18941  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18942$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18943fi
18944
18945
18946   mv -f "$cfgfile" "$ofile" ||
18947    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18948  chmod +x "$ofile"
18949
18950
18951    cat <<_LT_EOF >> "$ofile"
18952
18953# ### BEGIN LIBTOOL TAG CONFIG: CXX
18954
18955# The linker used to build libraries.
18956LD=$lt_LD_CXX
18957
18958# How to create reloadable object files.
18959reload_flag=$lt_reload_flag_CXX
18960reload_cmds=$lt_reload_cmds_CXX
18961
18962# Commands used to build an old-style archive.
18963old_archive_cmds=$lt_old_archive_cmds_CXX
18964
18965# A language specific compiler.
18966CC=$lt_compiler_CXX
18967
18968# Is the compiler the GNU compiler?
18969with_gcc=$GCC_CXX
18970
18971# Compiler flag to turn off builtin functions.
18972no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18973
18974# Additional compiler flags for building library objects.
18975pic_flag=$lt_lt_prog_compiler_pic_CXX
18976
18977# How to pass a linker flag through the compiler.
18978wl=$lt_lt_prog_compiler_wl_CXX
18979
18980# Compiler flag to prevent dynamic linking.
18981link_static_flag=$lt_lt_prog_compiler_static_CXX
18982
18983# Does compiler simultaneously support -c and -o options?
18984compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18985
18986# Whether or not to add -lc for building shared libraries.
18987build_libtool_need_lc=$archive_cmds_need_lc_CXX
18988
18989# Whether or not to disallow shared libs when runtime libs are static.
18990allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18991
18992# Compiler flag to allow reflexive dlopens.
18993export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18994
18995# Compiler flag to generate shared objects directly from archives.
18996whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18997
18998# Whether the compiler copes with passing no objects directly.
18999compiler_needs_object=$lt_compiler_needs_object_CXX
19000
19001# Create an old-style archive from a shared archive.
19002old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19003
19004# Create a temporary old-style archive to link instead of a shared archive.
19005old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19006
19007# Commands used to build a shared archive.
19008archive_cmds=$lt_archive_cmds_CXX
19009archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19010
19011# Commands used to build a loadable module if different from building
19012# a shared archive.
19013module_cmds=$lt_module_cmds_CXX
19014module_expsym_cmds=$lt_module_expsym_cmds_CXX
19015
19016# Whether we are building with GNU ld or not.
19017with_gnu_ld=$lt_with_gnu_ld_CXX
19018
19019# Flag that allows shared libraries with undefined symbols to be built.
19020allow_undefined_flag=$lt_allow_undefined_flag_CXX
19021
19022# Flag that enforces no undefined symbols.
19023no_undefined_flag=$lt_no_undefined_flag_CXX
19024
19025# Flag to hardcode \$libdir into a binary during linking.
19026# This must work even if \$libdir does not exist
19027hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19028
19029# Whether we need a single "-rpath" flag with a separated argument.
19030hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19031
19032# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19033# DIR into the resulting binary.
19034hardcode_direct=$hardcode_direct_CXX
19035
19036# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19037# DIR into the resulting binary and the resulting library dependency is
19038# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19039# library is relocated.
19040hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19041
19042# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19043# into the resulting binary.
19044hardcode_minus_L=$hardcode_minus_L_CXX
19045
19046# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19047# into the resulting binary.
19048hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19049
19050# Set to "yes" if building a shared library automatically hardcodes DIR
19051# into the library and all subsequent libraries and executables linked
19052# against it.
19053hardcode_automatic=$hardcode_automatic_CXX
19054
19055# Set to yes if linker adds runtime paths of dependent libraries
19056# to runtime path list.
19057inherit_rpath=$inherit_rpath_CXX
19058
19059# Whether libtool must link a program against all its dependency libraries.
19060link_all_deplibs=$link_all_deplibs_CXX
19061
19062# Set to "yes" if exported symbols are required.
19063always_export_symbols=$always_export_symbols_CXX
19064
19065# The commands to list exported symbols.
19066export_symbols_cmds=$lt_export_symbols_cmds_CXX
19067
19068# Symbols that should not be listed in the preloaded symbols.
19069exclude_expsyms=$lt_exclude_expsyms_CXX
19070
19071# Symbols that must always be exported.
19072include_expsyms=$lt_include_expsyms_CXX
19073
19074# Commands necessary for linking programs (against libraries) with templates.
19075prelink_cmds=$lt_prelink_cmds_CXX
19076
19077# Commands necessary for finishing linking programs.
19078postlink_cmds=$lt_postlink_cmds_CXX
19079
19080# Specify filename containing input files.
19081file_list_spec=$lt_file_list_spec_CXX
19082
19083# How to hardcode a shared library path into an executable.
19084hardcode_action=$hardcode_action_CXX
19085
19086# The directories searched by this compiler when creating a shared library.
19087compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19088
19089# Dependencies to place before and after the objects being linked to
19090# create a shared library.
19091predep_objects=$lt_predep_objects_CXX
19092postdep_objects=$lt_postdep_objects_CXX
19093predeps=$lt_predeps_CXX
19094postdeps=$lt_postdeps_CXX
19095
19096# The library search path used internally by the compiler when linking
19097# a shared library.
19098compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19099
19100# ### END LIBTOOL TAG CONFIG: CXX
19101_LT_EOF
19102
19103 ;;
19104
19105  esac
19106done # for ac_tag
19107
19108
19109as_fn_exit 0
19110_ACEOF
19111ac_clean_files=$ac_clean_files_save
19112
19113test $ac_write_fail = 0 ||
19114  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19115
19116
19117# configure is writing to config.log, and then calls config.status.
19118# config.status does its own redirection, appending to config.log.
19119# Unfortunately, on DOS this fails, as config.log is still kept open
19120# by configure, so config.status won't be able to write to it; its
19121# output is simply discarded.  So we exec the FD to /dev/null,
19122# effectively closing config.log, so it can be properly (re)opened and
19123# appended to by config.status.  When coming back to configure, we
19124# need to make the FD available again.
19125if test "$no_create" != yes; then
19126  ac_cs_success=:
19127  ac_config_status_args=
19128  test "$silent" = yes &&
19129    ac_config_status_args="$ac_config_status_args --quiet"
19130  exec 5>/dev/null
19131  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19132  exec 5>>config.log
19133  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19134  # would make configure fail if this is the last instruction.
19135  $ac_cs_success || as_fn_exit 1
19136fi
19137if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19138  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19139$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19140fi
19141
19142
19143ac_prefix_conf_OUT=`echo include/log4cpp/config.h`
19144ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e 'y:abcdefghijklmnopqrstuvwxyz./,-:ABCDEFGHIJKLMNOPQRSTUVWXYZ____:'`
19145ac_prefix_conf_PKG=`echo $PACKAGE_TARNAME`
19146ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e 'y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:'`
19147ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e 'y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:'  -e '/^[0-9]/s/^/_/'`
19148ac_prefix_conf_INP=`echo include/config.h`
19149if test "$ac_prefix_conf_INP" = "_"; then
19150   case $ac_prefix_conf_OUT in
19151      */*) ac_prefix_conf_INP=`basename $ac_prefix_conf_OUT`
19152      ;;
19153      *-*) ac_prefix_conf_INP=`echo $ac_prefix_conf_OUT | sed -e 's/[a-zA-Z0-9_]*-//'`
19154      ;;
19155      *) ac_prefix_conf_INP=config.h
19156      ;;
19157   esac
19158fi
19159if test -z "$ac_prefix_conf_PKG" ; then
19160   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
19161else
19162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
19163$as_echo "creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6; }
19164  if test -f $ac_prefix_conf_INP ; then
19165    $as_dirname -- /* automatically generated */ ||
19166$as_expr X/* automatically generated */ : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19167	 X/* automatically generated */ : 'X\(//\)[^/]' \| \
19168	 X/* automatically generated */ : 'X\(//\)$' \| \
19169	 X/* automatically generated */ : 'X\(/\)' \| . 2>/dev/null ||
19170$as_echo X/* automatically generated */ |
19171    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19172	    s//\1/
19173	    q
19174	  }
19175	  /^X\(\/\/\)[^/].*/{
19176	    s//\1/
19177	    q
19178	  }
19179	  /^X\(\/\/\)$/{
19180	    s//\1/
19181	    q
19182	  }
19183	  /^X\(\/\).*/{
19184	    s//\1/
19185	    q
19186	  }
19187	  s/.*/./; q'
19188    echo '#ifndef '$ac_prefix_conf_DEF >$ac_prefix_conf_OUT
19189    echo '#define '$ac_prefix_conf_DEF' 1' >>$ac_prefix_conf_OUT
19190    echo ' ' >>$ac_prefix_conf_OUT
19191    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$ac_prefix_conf_OUT
19192
19193    echo 's/#undef  *\([A-Z_]\)/#undef '$ac_prefix_conf_UPP'_\1/' >conftest.sed
19194    echo 's/#undef  *\([a-z]\)/#undef '$ac_prefix_conf_LOW'_\1/' >>conftest.sed
19195    echo 's/#define  *\([A-Z_][A-Za-z0-9_]*\)\(.*\)/#ifndef '$ac_prefix_conf_UPP"_\\1 \\" >>conftest.sed
19196    echo '#define '$ac_prefix_conf_UPP"_\\1 \\2 \\" >>conftest.sed
19197    echo '#endif/' >>conftest.sed
19198    echo 's/#define  *\([a-z][A-Za-z0-9_]*\)\(.*\)/#ifndef '$ac_prefix_conf_LOW"_\\1 \\" >>conftest.sed
19199    echo '#define '$ac_prefix_conf_LOW"_\\1 \\2 \\" >>conftest.sed
19200    echo '#endif/' >>conftest.sed
19201    sed -f conftest.sed $ac_prefix_conf_INP >>$ac_prefix_conf_OUT
19202    echo ' ' >>$ac_prefix_conf_OUT
19203    echo '/*' $ac_prefix_conf_DEF '*/' >>$ac_prefix_conf_OUT
19204    echo '#endif' >>$ac_prefix_conf_OUT
19205  else
19206    as_fn_error $? "input file $ac_prefix_conf_IN does not exist,     skip generating $ac_prefix_conf_OUT" "$LINENO" 5
19207  fi
19208  rm -f conftest.*
19209fi
19210