1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libclamavc++ devel.
4#
5# Report bugs to <https://github.com/Cisco-Talos/clamav/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software 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
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://github.com/Cisco-Talos/clamav/issues about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libclamavc++'
592PACKAGE_TARNAME='libclamavc--'
593PACKAGE_VERSION='devel'
594PACKAGE_STRING='libclamavc++ devel'
595PACKAGE_BUGREPORT='https://github.com/Cisco-Talos/clamav/issues'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634enable_option_checking=no
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639BUILD_EXTERNAL_LLVM_FALSE
640BUILD_EXTERNAL_LLVM_TRUE
641NO_MISSING_FIELD_INITIALIZERS
642NO_VARIADIC_MACROS
643BUILD_PPC_FALSE
644BUILD_PPC_TRUE
645BUILD_X86_FALSE
646BUILD_X86_TRUE
647THREAD_LIBS
648DEBUG_BUILD_FALSE
649DEBUG_BUILD_TRUE
650LLVM_VERSION
651LLVMCONFIG_LIBFILES
652LLVMCONFIG_LIBS
653LLVMCONFIG_LDFLAGS
654LLVMCONFIG_CXXFLAGS
655subdirs
656llvmconfig
657GMAKE
658ifGNUmake
659CXXCPP
660LT_SYS_LIBRARY_PATH
661OTOOL64
662OTOOL
663LIPO
664NMEDIT
665DSYMUTIL
666MANIFEST_TOOL
667RANLIB
668DLLTOOL
669OBJDUMP
670LN_S
671NM
672ac_ct_DUMPBIN
673DUMPBIN
674LD
675FGREP
676SED
677LIBTOOL
678MAINT
679MAINTAINER_MODE_FALSE
680MAINTAINER_MODE_TRUE
681SSL_CPPFLAGS
682ac_ct_AR
683AR
684EGREP
685GREP
686CPP
687am__fastdepCC_FALSE
688am__fastdepCC_TRUE
689CCDEPMODE
690ac_ct_CC
691CFLAGS
692CC
693am__fastdepCXX_FALSE
694am__fastdepCXX_TRUE
695CXXDEPMODE
696am__nodep
697AMDEPBACKSLASH
698AMDEP_FALSE
699AMDEP_TRUE
700am__quote
701am__include
702DEPDIR
703OBJEXT
704EXEEXT
705ac_ct_CXX
706CPPFLAGS
707LDFLAGS
708CXXFLAGS
709CXX
710AM_BACKSLASH
711AM_DEFAULT_VERBOSITY
712AM_DEFAULT_V
713AM_V
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737target_os
738target_vendor
739target_cpu
740target
741host_os
742host_vendor
743host_cpu
744host
745build_os
746build_vendor
747build_cpu
748build
749target_alias
750host_alias
751build_alias
752LIBS
753ECHO_T
754ECHO_N
755ECHO_C
756DEFS
757mandir
758localedir
759libdir
760psdir
761pdfdir
762dvidir
763htmldir
764infodir
765docdir
766oldincludedir
767includedir
768runstatedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL'
788ac_subst_files=''
789ac_user_opts='
790enable_option_checking
791enable_silent_rules
792enable_dependency_tracking
793with_openssl
794enable_maintainer_mode
795enable_static
796enable_shared
797with_pic
798enable_fast_install
799with_aix_soname
800with_gnu_ld
801with_sysroot
802enable_libtool_lock
803enable_llvm
804with_system_llvm
805with_llvm_linking
806enable_optimized
807enable_all_jit_targets
808'
809      ac_precious_vars='build_alias
810host_alias
811target_alias
812CXX
813CXXFLAGS
814LDFLAGS
815LIBS
816CPPFLAGS
817CCC
818CC
819CFLAGS
820CPP
821LT_SYS_LIBRARY_PATH
822CXXCPP'
823ac_subdirs_all='llvm'
824
825# Initialize some variables set by options.
826ac_init_help=
827ac_init_version=false
828ac_unrecognized_opts=
829ac_unrecognized_sep=
830# The variables have the same names as the options, with
831# dashes changed to underlines.
832cache_file=/dev/null
833exec_prefix=NONE
834no_create=
835no_recursion=
836prefix=NONE
837program_prefix=NONE
838program_suffix=NONE
839program_transform_name=s,x,x,
840silent=
841site=
842srcdir=
843verbose=
844x_includes=NONE
845x_libraries=NONE
846
847# Installation directory options.
848# These are left unexpanded so users can "make install exec_prefix=/foo"
849# and all the variables that are supposed to be based on exec_prefix
850# by default will actually change.
851# Use braces instead of parens because sh, perl, etc. also accept them.
852# (The list follows the same order as the GNU Coding Standards.)
853bindir='${exec_prefix}/bin'
854sbindir='${exec_prefix}/sbin'
855libexecdir='${exec_prefix}/libexec'
856datarootdir='${prefix}/share'
857datadir='${datarootdir}'
858sysconfdir='${prefix}/etc'
859sharedstatedir='${prefix}/com'
860localstatedir='${prefix}/var'
861runstatedir='${localstatedir}/run'
862includedir='${prefix}/include'
863oldincludedir='/usr/include'
864docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865infodir='${datarootdir}/info'
866htmldir='${docdir}'
867dvidir='${docdir}'
868pdfdir='${docdir}'
869psdir='${docdir}'
870libdir='${exec_prefix}/lib'
871localedir='${datarootdir}/locale'
872mandir='${datarootdir}/man'
873
874ac_prev=
875ac_dashdash=
876for ac_option
877do
878  # If the previous option needs an argument, assign it.
879  if test -n "$ac_prev"; then
880    eval $ac_prev=\$ac_option
881    ac_prev=
882    continue
883  fi
884
885  case $ac_option in
886  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887  *=)   ac_optarg= ;;
888  *)    ac_optarg=yes ;;
889  esac
890
891  # Accept the important Cygnus configure options, so we can diagnose typos.
892
893  case $ac_dashdash$ac_option in
894  --)
895    ac_dashdash=yes ;;
896
897  -bindir | --bindir | --bindi | --bind | --bin | --bi)
898    ac_prev=bindir ;;
899  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900    bindir=$ac_optarg ;;
901
902  -build | --build | --buil | --bui | --bu)
903    ac_prev=build_alias ;;
904  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905    build_alias=$ac_optarg ;;
906
907  -cache-file | --cache-file | --cache-fil | --cache-fi \
908  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909    ac_prev=cache_file ;;
910  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912    cache_file=$ac_optarg ;;
913
914  --config-cache | -C)
915    cache_file=config.cache ;;
916
917  -datadir | --datadir | --datadi | --datad)
918    ac_prev=datadir ;;
919  -datadir=* | --datadir=* | --datadi=* | --datad=*)
920    datadir=$ac_optarg ;;
921
922  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923  | --dataroo | --dataro | --datar)
924    ac_prev=datarootdir ;;
925  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927    datarootdir=$ac_optarg ;;
928
929  -disable-* | --disable-*)
930    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933      as_fn_error $? "invalid feature name: $ac_useropt"
934    ac_useropt_orig=$ac_useropt
935    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936    case $ac_user_opts in
937      *"
938"enable_$ac_useropt"
939"*) ;;
940      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941	 ac_unrecognized_sep=', ';;
942    esac
943    eval enable_$ac_useropt=no ;;
944
945  -docdir | --docdir | --docdi | --doc | --do)
946    ac_prev=docdir ;;
947  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948    docdir=$ac_optarg ;;
949
950  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951    ac_prev=dvidir ;;
952  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953    dvidir=$ac_optarg ;;
954
955  -enable-* | --enable-*)
956    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957    # Reject names that are not valid shell variable names.
958    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959      as_fn_error $? "invalid feature name: $ac_useropt"
960    ac_useropt_orig=$ac_useropt
961    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962    case $ac_user_opts in
963      *"
964"enable_$ac_useropt"
965"*) ;;
966      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967	 ac_unrecognized_sep=', ';;
968    esac
969    eval enable_$ac_useropt=\$ac_optarg ;;
970
971  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973  | --exec | --exe | --ex)
974    ac_prev=exec_prefix ;;
975  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977  | --exec=* | --exe=* | --ex=*)
978    exec_prefix=$ac_optarg ;;
979
980  -gas | --gas | --ga | --g)
981    # Obsolete; use --with-gas.
982    with_gas=yes ;;
983
984  -help | --help | --hel | --he | -h)
985    ac_init_help=long ;;
986  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987    ac_init_help=recursive ;;
988  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989    ac_init_help=short ;;
990
991  -host | --host | --hos | --ho)
992    ac_prev=host_alias ;;
993  -host=* | --host=* | --hos=* | --ho=*)
994    host_alias=$ac_optarg ;;
995
996  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997    ac_prev=htmldir ;;
998  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999  | --ht=*)
1000    htmldir=$ac_optarg ;;
1001
1002  -includedir | --includedir | --includedi | --included | --include \
1003  | --includ | --inclu | --incl | --inc)
1004    ac_prev=includedir ;;
1005  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006  | --includ=* | --inclu=* | --incl=* | --inc=*)
1007    includedir=$ac_optarg ;;
1008
1009  -infodir | --infodir | --infodi | --infod | --info | --inf)
1010    ac_prev=infodir ;;
1011  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012    infodir=$ac_optarg ;;
1013
1014  -libdir | --libdir | --libdi | --libd)
1015    ac_prev=libdir ;;
1016  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017    libdir=$ac_optarg ;;
1018
1019  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020  | --libexe | --libex | --libe)
1021    ac_prev=libexecdir ;;
1022  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023  | --libexe=* | --libex=* | --libe=*)
1024    libexecdir=$ac_optarg ;;
1025
1026  -localedir | --localedir | --localedi | --localed | --locale)
1027    ac_prev=localedir ;;
1028  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029    localedir=$ac_optarg ;;
1030
1031  -localstatedir | --localstatedir | --localstatedi | --localstated \
1032  | --localstate | --localstat | --localsta | --localst | --locals)
1033    ac_prev=localstatedir ;;
1034  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036    localstatedir=$ac_optarg ;;
1037
1038  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039    ac_prev=mandir ;;
1040  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041    mandir=$ac_optarg ;;
1042
1043  -nfp | --nfp | --nf)
1044    # Obsolete; use --without-fp.
1045    with_fp=no ;;
1046
1047  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048  | --no-cr | --no-c | -n)
1049    no_create=yes ;;
1050
1051  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053    no_recursion=yes ;;
1054
1055  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057  | --oldin | --oldi | --old | --ol | --o)
1058    ac_prev=oldincludedir ;;
1059  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062    oldincludedir=$ac_optarg ;;
1063
1064  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065    ac_prev=prefix ;;
1066  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067    prefix=$ac_optarg ;;
1068
1069  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070  | --program-pre | --program-pr | --program-p)
1071    ac_prev=program_prefix ;;
1072  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074    program_prefix=$ac_optarg ;;
1075
1076  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077  | --program-suf | --program-su | --program-s)
1078    ac_prev=program_suffix ;;
1079  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081    program_suffix=$ac_optarg ;;
1082
1083  -program-transform-name | --program-transform-name \
1084  | --program-transform-nam | --program-transform-na \
1085  | --program-transform-n | --program-transform- \
1086  | --program-transform | --program-transfor \
1087  | --program-transfo | --program-transf \
1088  | --program-trans | --program-tran \
1089  | --progr-tra | --program-tr | --program-t)
1090    ac_prev=program_transform_name ;;
1091  -program-transform-name=* | --program-transform-name=* \
1092  | --program-transform-nam=* | --program-transform-na=* \
1093  | --program-transform-n=* | --program-transform-=* \
1094  | --program-transform=* | --program-transfor=* \
1095  | --program-transfo=* | --program-transf=* \
1096  | --program-trans=* | --program-tran=* \
1097  | --progr-tra=* | --program-tr=* | --program-t=*)
1098    program_transform_name=$ac_optarg ;;
1099
1100  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101    ac_prev=pdfdir ;;
1102  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103    pdfdir=$ac_optarg ;;
1104
1105  -psdir | --psdir | --psdi | --psd | --ps)
1106    ac_prev=psdir ;;
1107  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108    psdir=$ac_optarg ;;
1109
1110  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111  | -silent | --silent | --silen | --sile | --sil)
1112    silent=yes ;;
1113
1114  -runstatedir | --runstatedir | --runstatedi | --runstated \
1115  | --runstate | --runstat | --runsta | --runst | --runs \
1116  | --run | --ru | --r)
1117    ac_prev=runstatedir ;;
1118  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1119  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1120  | --run=* | --ru=* | --r=*)
1121    runstatedir=$ac_optarg ;;
1122
1123  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124    ac_prev=sbindir ;;
1125  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126  | --sbi=* | --sb=*)
1127    sbindir=$ac_optarg ;;
1128
1129  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131  | --sharedst | --shareds | --shared | --share | --shar \
1132  | --sha | --sh)
1133    ac_prev=sharedstatedir ;;
1134  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137  | --sha=* | --sh=*)
1138    sharedstatedir=$ac_optarg ;;
1139
1140  -site | --site | --sit)
1141    ac_prev=site ;;
1142  -site=* | --site=* | --sit=*)
1143    site=$ac_optarg ;;
1144
1145  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146    ac_prev=srcdir ;;
1147  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148    srcdir=$ac_optarg ;;
1149
1150  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151  | --syscon | --sysco | --sysc | --sys | --sy)
1152    ac_prev=sysconfdir ;;
1153  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155    sysconfdir=$ac_optarg ;;
1156
1157  -target | --target | --targe | --targ | --tar | --ta | --t)
1158    ac_prev=target_alias ;;
1159  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160    target_alias=$ac_optarg ;;
1161
1162  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163    verbose=yes ;;
1164
1165  -version | --version | --versio | --versi | --vers | -V)
1166    ac_init_version=: ;;
1167
1168  -with-* | --with-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: $ac_useropt"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=\$ac_optarg ;;
1183
1184  -without-* | --without-*)
1185    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186    # Reject names that are not valid shell variable names.
1187    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188      as_fn_error $? "invalid package name: $ac_useropt"
1189    ac_useropt_orig=$ac_useropt
1190    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191    case $ac_user_opts in
1192      *"
1193"with_$ac_useropt"
1194"*) ;;
1195      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196	 ac_unrecognized_sep=', ';;
1197    esac
1198    eval with_$ac_useropt=no ;;
1199
1200  --x)
1201    # Obsolete; use --with-x.
1202    with_x=yes ;;
1203
1204  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205  | --x-incl | --x-inc | --x-in | --x-i)
1206    ac_prev=x_includes ;;
1207  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209    x_includes=$ac_optarg ;;
1210
1211  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213    ac_prev=x_libraries ;;
1214  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216    x_libraries=$ac_optarg ;;
1217
1218  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219Try \`$0 --help' for more information"
1220    ;;
1221
1222  *=*)
1223    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224    # Reject names that are not valid shell variable names.
1225    case $ac_envvar in #(
1226      '' | [0-9]* | *[!_$as_cr_alnum]* )
1227      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228    esac
1229    eval $ac_envvar=\$ac_optarg
1230    export $ac_envvar ;;
1231
1232  *)
1233    # FIXME: should be removed in autoconf 3.0.
1234    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238    ;;
1239
1240  esac
1241done
1242
1243if test -n "$ac_prev"; then
1244  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245  as_fn_error $? "missing argument to $ac_option"
1246fi
1247
1248if test -n "$ac_unrecognized_opts"; then
1249  case $enable_option_checking in
1250    no) ;;
1251    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253  esac
1254fi
1255
1256# Check all directory arguments for consistency.
1257for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258		datadir sysconfdir sharedstatedir localstatedir includedir \
1259		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260		libdir localedir mandir runstatedir
1261do
1262  eval ac_val=\$$ac_var
1263  # Remove trailing slashes.
1264  case $ac_val in
1265    */ )
1266      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267      eval $ac_var=\$ac_val;;
1268  esac
1269  # Be sure to have absolute directory names.
1270  case $ac_val in
1271    [\\/$]* | ?:[\\/]* )  continue;;
1272    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273  esac
1274  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275done
1276
1277# There might be people who depend on the old broken behavior: `$host'
1278# used to hold the argument of --host etc.
1279# FIXME: To remove some day.
1280build=$build_alias
1281host=$host_alias
1282target=$target_alias
1283
1284# FIXME: To remove some day.
1285if test "x$host_alias" != x; then
1286  if test "x$build_alias" = x; then
1287    cross_compiling=maybe
1288  elif test "x$build_alias" != "x$host_alias"; then
1289    cross_compiling=yes
1290  fi
1291fi
1292
1293ac_tool_prefix=
1294test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296test "$silent" = yes && exec 6>/dev/null
1297
1298
1299ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300ac_ls_di=`ls -di .` &&
1301ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302  as_fn_error $? "working directory cannot be determined"
1303test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304  as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307# Find the source files, if location was not specified.
1308if test -z "$srcdir"; then
1309  ac_srcdir_defaulted=yes
1310  # Try the directory containing this script, then the parent directory.
1311  ac_confdir=`$as_dirname -- "$as_myself" ||
1312$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313	 X"$as_myself" : 'X\(//\)[^/]' \| \
1314	 X"$as_myself" : 'X\(//\)$' \| \
1315	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316$as_echo X"$as_myself" |
1317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318	    s//\1/
1319	    q
1320	  }
1321	  /^X\(\/\/\)[^/].*/{
1322	    s//\1/
1323	    q
1324	  }
1325	  /^X\(\/\/\)$/{
1326	    s//\1/
1327	    q
1328	  }
1329	  /^X\(\/\).*/{
1330	    s//\1/
1331	    q
1332	  }
1333	  s/.*/./; q'`
1334  srcdir=$ac_confdir
1335  if test ! -r "$srcdir/$ac_unique_file"; then
1336    srcdir=..
1337  fi
1338else
1339  ac_srcdir_defaulted=no
1340fi
1341if test ! -r "$srcdir/$ac_unique_file"; then
1342  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344fi
1345ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346ac_abs_confdir=`(
1347	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348	pwd)`
1349# When building in place, set srcdir=.
1350if test "$ac_abs_confdir" = "$ac_pwd"; then
1351  srcdir=.
1352fi
1353# Remove unnecessary trailing slashes from srcdir.
1354# Double slashes in file names in object file debugging info
1355# mess up M-x gdb in Emacs.
1356case $srcdir in
1357*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358esac
1359for ac_var in $ac_precious_vars; do
1360  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361  eval ac_env_${ac_var}_value=\$${ac_var}
1362  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364done
1365
1366#
1367# Report the --help message.
1368#
1369if test "$ac_init_help" = "long"; then
1370  # Omit some internal or obsolete options to make the list less imposing.
1371  # This message is too long to be a string in the A/UX 3.1 sh.
1372  cat <<_ACEOF
1373\`configure' configures libclamavc++ devel to adapt to many kinds of systems.
1374
1375Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378VAR=VALUE.  See below for descriptions of some of the useful variables.
1379
1380Defaults for the options are specified in brackets.
1381
1382Configuration:
1383  -h, --help              display this help and exit
1384      --help=short        display options specific to this package
1385      --help=recursive    display the short help of all the included packages
1386  -V, --version           display version information and exit
1387  -q, --quiet, --silent   do not print \`checking ...' messages
1388      --cache-file=FILE   cache test results in FILE [disabled]
1389  -C, --config-cache      alias for \`--cache-file=config.cache'
1390  -n, --no-create         do not create output files
1391      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1392
1393Installation directories:
1394  --prefix=PREFIX         install architecture-independent files in PREFIX
1395                          [$ac_default_prefix]
1396  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1397                          [PREFIX]
1398
1399By default, \`make install' will install all the files in
1400\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1401an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402for instance \`--prefix=\$HOME'.
1403
1404For better control, use the options below.
1405
1406Fine tuning of the installation directories:
1407  --bindir=DIR            user executables [EPREFIX/bin]
1408  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1409  --libexecdir=DIR        program executables [EPREFIX/libexec]
1410  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1411  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1412  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1413  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1414  --libdir=DIR            object code libraries [EPREFIX/lib]
1415  --includedir=DIR        C header files [PREFIX/include]
1416  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1417  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1418  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1419  --infodir=DIR           info documentation [DATAROOTDIR/info]
1420  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1421  --mandir=DIR            man documentation [DATAROOTDIR/man]
1422  --docdir=DIR            documentation root [DATAROOTDIR/doc/libclamavc--]
1423  --htmldir=DIR           html documentation [DOCDIR]
1424  --dvidir=DIR            dvi documentation [DOCDIR]
1425  --pdfdir=DIR            pdf documentation [DOCDIR]
1426  --psdir=DIR             ps documentation [DOCDIR]
1427_ACEOF
1428
1429  cat <<\_ACEOF
1430
1431Program names:
1432  --program-prefix=PREFIX            prepend PREFIX to installed program names
1433  --program-suffix=SUFFIX            append SUFFIX to installed program names
1434  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1435
1436System types:
1437  --build=BUILD     configure for building on BUILD [guessed]
1438  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1439  --target=TARGET   configure for building compilers for TARGET [HOST]
1440_ACEOF
1441fi
1442
1443if test -n "$ac_init_help"; then
1444  case $ac_init_help in
1445     short | recursive ) echo "Configuration of libclamavc++ devel:";;
1446   esac
1447  cat <<\_ACEOF
1448
1449Optional Features:
1450  --disable-option-checking  ignore unrecognized --enable/--with options
1451  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453  --enable-silent-rules   less verbose build output (undo: "make V=1")
1454  --disable-silent-rules  verbose build output (undo: "make V=0")
1455  --enable-dependency-tracking
1456                          do not reject slow dependency extractors
1457  --disable-dependency-tracking
1458                          speeds up one-time build
1459  --enable-maintainer-mode
1460                          enable make rules and dependencies not useful (and
1461                          sometimes confusing) to the casual installer
1462  --enable-static[=PKGS]  build static libraries [default=no]
1463  --enable-shared[=PKGS]  build shared libraries [default=yes]
1464  --enable-fast-install[=PKGS]
1465                          optimize for fast installation [default=yes]
1466  --disable-libtool-lock  avoid locking (might break parallel builds)
1467  --enable-llvm           enable 'llvm' JIT/verifier support [default=auto]
1468  -enable-llvm            Enable 'llvm' JIT/verifier support [default=auto]
1469  -enable-optimized       Compile with optimizations enabled (default is YES)
1470  -enable-all-jit-targets Build all the targets that support JIT for testing
1471                          (default NO)
1472
1473Optional Packages:
1474  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1475  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1476  --with-openssl[=DIR]    path to directory containing openssl
1477                          [default=/usr/local or /usr if not found in
1478                          /usr/local]
1479  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1480                          both]
1481  --with-aix-soname=aix|svr4|both
1482                          shared library versioning (aka "SONAME") variant to
1483                          provide on AIX, [default=aix].
1484  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1485  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1486                          compiler's sysroot if not specified).
1487  --with-system-llvm      Specify system llvm location or to use old package,
1488                          uses full path to llvm-config or bin directory
1489                          (default=search PATH environment variable)
1490  --with-llvm-linking     specifies method to linking llvm [static|dynamic],
1491                          only valid with --with-system-llvm
1492
1493Some influential environment variables:
1494  CXX         C++ compiler command
1495  CXXFLAGS    C++ compiler flags
1496  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1497              nonstandard directory <lib dir>
1498  LIBS        libraries to pass to the linker, e.g. -l<library>
1499  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1500              you have headers in a nonstandard directory <include dir>
1501  CC          C compiler command
1502  CFLAGS      C compiler flags
1503  CPP         C preprocessor
1504  LT_SYS_LIBRARY_PATH
1505              User-defined run-time library search path.
1506  CXXCPP      C++ preprocessor
1507
1508Use these variables to override the choices made by `configure' or to help
1509it to find libraries and programs with nonstandard names/locations.
1510
1511Report bugs to <https://github.com/Cisco-Talos/clamav/issues>.
1512_ACEOF
1513ac_status=$?
1514fi
1515
1516if test "$ac_init_help" = "recursive"; then
1517  # If there are subdirs, report their specific --help.
1518  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519    test -d "$ac_dir" ||
1520      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521      continue
1522    ac_builddir=.
1523
1524case "$ac_dir" in
1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526*)
1527  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528  # A ".." for each directory in $ac_dir_suffix.
1529  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530  case $ac_top_builddir_sub in
1531  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533  esac ;;
1534esac
1535ac_abs_top_builddir=$ac_pwd
1536ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537# for backward compatibility:
1538ac_top_builddir=$ac_top_build_prefix
1539
1540case $srcdir in
1541  .)  # We are building in place.
1542    ac_srcdir=.
1543    ac_top_srcdir=$ac_top_builddir_sub
1544    ac_abs_top_srcdir=$ac_pwd ;;
1545  [\\/]* | ?:[\\/]* )  # Absolute name.
1546    ac_srcdir=$srcdir$ac_dir_suffix;
1547    ac_top_srcdir=$srcdir
1548    ac_abs_top_srcdir=$srcdir ;;
1549  *) # Relative name.
1550    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551    ac_top_srcdir=$ac_top_build_prefix$srcdir
1552    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553esac
1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556    cd "$ac_dir" || { ac_status=$?; continue; }
1557    # Check for guested configure.
1558    if test -f "$ac_srcdir/configure.gnu"; then
1559      echo &&
1560      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561    elif test -f "$ac_srcdir/configure"; then
1562      echo &&
1563      $SHELL "$ac_srcdir/configure" --help=recursive
1564    else
1565      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566    fi || ac_status=$?
1567    cd "$ac_pwd" || { ac_status=$?; break; }
1568  done
1569fi
1570
1571test -n "$ac_init_help" && exit $ac_status
1572if $ac_init_version; then
1573  cat <<\_ACEOF
1574libclamavc++ configure devel
1575generated by GNU Autoconf 2.69
1576
1577Copyright (C) 2012 Free Software Foundation, Inc.
1578This configure script is free software; the Free Software Foundation
1579gives unlimited permission to copy, distribute and modify it.
1580_ACEOF
1581  exit
1582fi
1583
1584## ------------------------ ##
1585## Autoconf initialization. ##
1586## ------------------------ ##
1587
1588# ac_fn_cxx_try_compile LINENO
1589# ----------------------------
1590# Try to compile conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_cxx_try_compile ()
1592{
1593  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594  rm -f conftest.$ac_objext
1595  if { { ac_try="$ac_compile"
1596case "(($ac_try" in
1597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598  *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602  (eval "$ac_compile") 2>conftest.err
1603  ac_status=$?
1604  if test -s conftest.err; then
1605    grep -v '^ *+' conftest.err >conftest.er1
1606    cat conftest.er1 >&5
1607    mv -f conftest.er1 conftest.err
1608  fi
1609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610  test $ac_status = 0; } && {
1611	 test -z "$ac_cxx_werror_flag" ||
1612	 test ! -s conftest.err
1613       } && test -s conftest.$ac_objext; then :
1614  ac_retval=0
1615else
1616  $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1619	ac_retval=1
1620fi
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622  as_fn_set_status $ac_retval
1623
1624} # ac_fn_cxx_try_compile
1625
1626# ac_fn_c_try_compile LINENO
1627# --------------------------
1628# Try to compile conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_compile ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  rm -f conftest.$ac_objext
1633  if { { ac_try="$ac_compile"
1634case "(($ac_try" in
1635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636  *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640  (eval "$ac_compile") 2>conftest.err
1641  ac_status=$?
1642  if test -s conftest.err; then
1643    grep -v '^ *+' conftest.err >conftest.er1
1644    cat conftest.er1 >&5
1645    mv -f conftest.er1 conftest.err
1646  fi
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; } && {
1649	 test -z "$ac_c_werror_flag" ||
1650	 test ! -s conftest.err
1651       } && test -s conftest.$ac_objext; then :
1652  ac_retval=0
1653else
1654  $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657	ac_retval=1
1658fi
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660  as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_compile
1663
1664# ac_fn_c_try_run LINENO
1665# ----------------------
1666# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667# that executables *can* be run.
1668ac_fn_c_try_run ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  if { { ac_try="$ac_link"
1672case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678  (eval "$ac_link") 2>&5
1679  ac_status=$?
1680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682  { { case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_try") 2>&5
1689  ac_status=$?
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; }; }; then :
1692  ac_retval=0
1693else
1694  $as_echo "$as_me: program exited with status $ac_status" >&5
1695       $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698       ac_retval=$ac_status
1699fi
1700  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702  as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_run
1705
1706# ac_fn_c_try_cpp LINENO
1707# ----------------------
1708# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_cpp ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  if { { ac_try="$ac_cpp conftest.$ac_ext"
1713case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720  ac_status=$?
1721  if test -s conftest.err; then
1722    grep -v '^ *+' conftest.err >conftest.er1
1723    cat conftest.er1 >&5
1724    mv -f conftest.er1 conftest.err
1725  fi
1726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; } > conftest.i && {
1728	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729	 test ! -s conftest.err
1730       }; then :
1731  ac_retval=0
1732else
1733  $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736    ac_retval=1
1737fi
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739  as_fn_set_status $ac_retval
1740
1741} # ac_fn_c_try_cpp
1742
1743# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744# -------------------------------------------------------
1745# Tests whether HEADER exists and can be compiled using the include files in
1746# INCLUDES, setting the cache variable VAR accordingly.
1747ac_fn_c_check_header_compile ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753  $as_echo_n "(cached) " >&6
1754else
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757$4
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"; then :
1761  eval "$3=yes"
1762else
1763  eval "$3=no"
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766fi
1767eval ac_res=\$$3
1768	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772} # ac_fn_c_check_header_compile
1773
1774# ac_fn_c_try_link LINENO
1775# -----------------------
1776# Try to link conftest.$ac_ext, and return whether this succeeded.
1777ac_fn_c_try_link ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  rm -f conftest.$ac_objext conftest$ac_exeext
1781  if { { ac_try="$ac_link"
1782case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_link") 2>conftest.err
1789  ac_status=$?
1790  if test -s conftest.err; then
1791    grep -v '^ *+' conftest.err >conftest.er1
1792    cat conftest.er1 >&5
1793    mv -f conftest.er1 conftest.err
1794  fi
1795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796  test $ac_status = 0; } && {
1797	 test -z "$ac_c_werror_flag" ||
1798	 test ! -s conftest.err
1799       } && test -s conftest$ac_exeext && {
1800	 test "$cross_compiling" = yes ||
1801	 test -x conftest$ac_exeext
1802       }; then :
1803  ac_retval=0
1804else
1805  $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808	ac_retval=1
1809fi
1810  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812  # interfere with the next link command; also delete a directory that is
1813  # left behind by Apple's compiler.  We do this before executing the actions.
1814  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816  as_fn_set_status $ac_retval
1817
1818} # ac_fn_c_try_link
1819
1820# ac_fn_c_check_func LINENO FUNC VAR
1821# ----------------------------------
1822# Tests whether FUNC exists, setting the cache variable VAR accordingly
1823ac_fn_c_check_func ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if eval \${$3+:} false; then :
1829  $as_echo_n "(cached) " >&6
1830else
1831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1834   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1835#define $2 innocuous_$2
1836
1837/* System header to define __stub macros and hopefully few prototypes,
1838    which can conflict with char $2 (); below.
1839    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1840    <limits.h> exists even on freestanding compilers.  */
1841
1842#ifdef __STDC__
1843# include <limits.h>
1844#else
1845# include <assert.h>
1846#endif
1847
1848#undef $2
1849
1850/* Override any GCC internal prototype to avoid an error.
1851   Use char because int might match the return type of a GCC
1852   builtin and then its argument prototype would still apply.  */
1853#ifdef __cplusplus
1854extern "C"
1855#endif
1856char $2 ();
1857/* The GNU C library defines this for functions which it implements
1858    to always fail with ENOSYS.  Some functions are actually named
1859    something starting with __ and the normal name is an alias.  */
1860#if defined __stub_$2 || defined __stub___$2
1861choke me
1862#endif
1863
1864int
1865main ()
1866{
1867return $2 ();
1868  ;
1869  return 0;
1870}
1871_ACEOF
1872if ac_fn_c_try_link "$LINENO"; then :
1873  eval "$3=yes"
1874else
1875  eval "$3=no"
1876fi
1877rm -f core conftest.err conftest.$ac_objext \
1878    conftest$ac_exeext conftest.$ac_ext
1879fi
1880eval ac_res=\$$3
1881	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882$as_echo "$ac_res" >&6; }
1883  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885} # ac_fn_c_check_func
1886
1887# ac_fn_cxx_try_cpp LINENO
1888# ------------------------
1889# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1890ac_fn_cxx_try_cpp ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  if { { ac_try="$ac_cpp conftest.$ac_ext"
1894case "(($ac_try" in
1895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896  *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1901  ac_status=$?
1902  if test -s conftest.err; then
1903    grep -v '^ *+' conftest.err >conftest.er1
1904    cat conftest.er1 >&5
1905    mv -f conftest.er1 conftest.err
1906  fi
1907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908  test $ac_status = 0; } > conftest.i && {
1909	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1910	 test ! -s conftest.err
1911       }; then :
1912  ac_retval=0
1913else
1914  $as_echo "$as_me: failed program was:" >&5
1915sed 's/^/| /' conftest.$ac_ext >&5
1916
1917    ac_retval=1
1918fi
1919  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920  as_fn_set_status $ac_retval
1921
1922} # ac_fn_cxx_try_cpp
1923
1924# ac_fn_cxx_try_link LINENO
1925# -------------------------
1926# Try to link conftest.$ac_ext, and return whether this succeeded.
1927ac_fn_cxx_try_link ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  rm -f conftest.$ac_objext conftest$ac_exeext
1931  if { { ac_try="$ac_link"
1932case "(($ac_try" in
1933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934  *) ac_try_echo=$ac_try;;
1935esac
1936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937$as_echo "$ac_try_echo"; } >&5
1938  (eval "$ac_link") 2>conftest.err
1939  ac_status=$?
1940  if test -s conftest.err; then
1941    grep -v '^ *+' conftest.err >conftest.er1
1942    cat conftest.er1 >&5
1943    mv -f conftest.er1 conftest.err
1944  fi
1945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946  test $ac_status = 0; } && {
1947	 test -z "$ac_cxx_werror_flag" ||
1948	 test ! -s conftest.err
1949       } && test -s conftest$ac_exeext && {
1950	 test "$cross_compiling" = yes ||
1951	 test -x conftest$ac_exeext
1952       }; then :
1953  ac_retval=0
1954else
1955  $as_echo "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
1958	ac_retval=1
1959fi
1960  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1961  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1962  # interfere with the next link command; also delete a directory that is
1963  # left behind by Apple's compiler.  We do this before executing the actions.
1964  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966  as_fn_set_status $ac_retval
1967
1968} # ac_fn_cxx_try_link
1969
1970# ac_fn_cxx_try_run LINENO
1971# ------------------------
1972# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1973# that executables *can* be run.
1974ac_fn_cxx_try_run ()
1975{
1976  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977  if { { ac_try="$ac_link"
1978case "(($ac_try" in
1979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980  *) ac_try_echo=$ac_try;;
1981esac
1982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983$as_echo "$ac_try_echo"; } >&5
1984  (eval "$ac_link") 2>&5
1985  ac_status=$?
1986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1988  { { case "(($ac_try" in
1989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990  *) ac_try_echo=$ac_try;;
1991esac
1992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993$as_echo "$ac_try_echo"; } >&5
1994  (eval "$ac_try") 2>&5
1995  ac_status=$?
1996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997  test $ac_status = 0; }; }; then :
1998  ac_retval=0
1999else
2000  $as_echo "$as_me: program exited with status $ac_status" >&5
2001       $as_echo "$as_me: failed program was:" >&5
2002sed 's/^/| /' conftest.$ac_ext >&5
2003
2004       ac_retval=$ac_status
2005fi
2006  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2007  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008  as_fn_set_status $ac_retval
2009
2010} # ac_fn_cxx_try_run
2011cat >config.log <<_ACEOF
2012This file contains any messages produced by compilers while
2013running configure, to aid debugging if configure makes a mistake.
2014
2015It was created by libclamavc++ $as_me devel, which was
2016generated by GNU Autoconf 2.69.  Invocation command line was
2017
2018  $ $0 $@
2019
2020_ACEOF
2021exec 5>>config.log
2022{
2023cat <<_ASUNAME
2024## --------- ##
2025## Platform. ##
2026## --------- ##
2027
2028hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2029uname -m = `(uname -m) 2>/dev/null || echo unknown`
2030uname -r = `(uname -r) 2>/dev/null || echo unknown`
2031uname -s = `(uname -s) 2>/dev/null || echo unknown`
2032uname -v = `(uname -v) 2>/dev/null || echo unknown`
2033
2034/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2035/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2036
2037/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2038/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2039/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2040/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2041/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2042/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2043/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2044
2045_ASUNAME
2046
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050  IFS=$as_save_IFS
2051  test -z "$as_dir" && as_dir=.
2052    $as_echo "PATH: $as_dir"
2053  done
2054IFS=$as_save_IFS
2055
2056} >&5
2057
2058cat >&5 <<_ACEOF
2059
2060
2061## ----------- ##
2062## Core tests. ##
2063## ----------- ##
2064
2065_ACEOF
2066
2067
2068# Keep a trace of the command line.
2069# Strip out --no-create and --no-recursion so they do not pile up.
2070# Strip out --silent because we don't want to record it for future runs.
2071# Also quote any args containing shell meta-characters.
2072# Make two passes to allow for proper duplicate-argument suppression.
2073ac_configure_args=
2074ac_configure_args0=
2075ac_configure_args1=
2076ac_must_keep_next=false
2077for ac_pass in 1 2
2078do
2079  for ac_arg
2080  do
2081    case $ac_arg in
2082    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084    | -silent | --silent | --silen | --sile | --sil)
2085      continue ;;
2086    *\'*)
2087      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2088    esac
2089    case $ac_pass in
2090    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2091    2)
2092      as_fn_append ac_configure_args1 " '$ac_arg'"
2093      if test $ac_must_keep_next = true; then
2094	ac_must_keep_next=false # Got value, back to normal.
2095      else
2096	case $ac_arg in
2097	  *=* | --config-cache | -C | -disable-* | --disable-* \
2098	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100	  | -with-* | --with-* | -without-* | --without-* | --x)
2101	    case "$ac_configure_args0 " in
2102	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2103	    esac
2104	    ;;
2105	  -* ) ac_must_keep_next=true ;;
2106	esac
2107      fi
2108      as_fn_append ac_configure_args " '$ac_arg'"
2109      ;;
2110    esac
2111  done
2112done
2113{ ac_configure_args0=; unset ac_configure_args0;}
2114{ ac_configure_args1=; unset ac_configure_args1;}
2115
2116# When interrupted or exit'd, cleanup temporary files, and complete
2117# config.log.  We remove comments because anyway the quotes in there
2118# would cause problems or look ugly.
2119# WARNING: Use '\'' to represent an apostrophe within the trap.
2120# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2121trap 'exit_status=$?
2122  # Save into config.log some information that might help in debugging.
2123  {
2124    echo
2125
2126    $as_echo "## ---------------- ##
2127## Cache variables. ##
2128## ---------------- ##"
2129    echo
2130    # The following way of writing the cache mishandles newlines in values,
2131(
2132  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2133    eval ac_val=\$$ac_var
2134    case $ac_val in #(
2135    *${as_nl}*)
2136      case $ac_var in #(
2137      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2138$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2139      esac
2140      case $ac_var in #(
2141      _ | IFS | as_nl) ;; #(
2142      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2143      *) { eval $ac_var=; unset $ac_var;} ;;
2144      esac ;;
2145    esac
2146  done
2147  (set) 2>&1 |
2148    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2149    *${as_nl}ac_space=\ *)
2150      sed -n \
2151	"s/'\''/'\''\\\\'\'''\''/g;
2152	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2153      ;; #(
2154    *)
2155      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2156      ;;
2157    esac |
2158    sort
2159)
2160    echo
2161
2162    $as_echo "## ----------------- ##
2163## Output variables. ##
2164## ----------------- ##"
2165    echo
2166    for ac_var in $ac_subst_vars
2167    do
2168      eval ac_val=\$$ac_var
2169      case $ac_val in
2170      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171      esac
2172      $as_echo "$ac_var='\''$ac_val'\''"
2173    done | sort
2174    echo
2175
2176    if test -n "$ac_subst_files"; then
2177      $as_echo "## ------------------- ##
2178## File substitutions. ##
2179## ------------------- ##"
2180      echo
2181      for ac_var in $ac_subst_files
2182      do
2183	eval ac_val=\$$ac_var
2184	case $ac_val in
2185	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186	esac
2187	$as_echo "$ac_var='\''$ac_val'\''"
2188      done | sort
2189      echo
2190    fi
2191
2192    if test -s confdefs.h; then
2193      $as_echo "## ----------- ##
2194## confdefs.h. ##
2195## ----------- ##"
2196      echo
2197      cat confdefs.h
2198      echo
2199    fi
2200    test "$ac_signal" != 0 &&
2201      $as_echo "$as_me: caught signal $ac_signal"
2202    $as_echo "$as_me: exit $exit_status"
2203  } >&5
2204  rm -f core *.core core.conftest.* &&
2205    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2206    exit $exit_status
2207' 0
2208for ac_signal in 1 2 13 15; do
2209  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2210done
2211ac_signal=0
2212
2213# confdefs.h avoids OS command line length limits that DEFS can exceed.
2214rm -f -r conftest* confdefs.h
2215
2216$as_echo "/* confdefs.h */" > confdefs.h
2217
2218# Predefined preprocessor variables.
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_NAME "$PACKAGE_NAME"
2222_ACEOF
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2226_ACEOF
2227
2228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_VERSION "$PACKAGE_VERSION"
2230_ACEOF
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_STRING "$PACKAGE_STRING"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2238_ACEOF
2239
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_URL "$PACKAGE_URL"
2242_ACEOF
2243
2244
2245# Let the site file select an alternate cache file if it wants to.
2246# Prefer an explicitly selected file to automatically selected ones.
2247ac_site_file1=NONE
2248ac_site_file2=NONE
2249if test -n "$CONFIG_SITE"; then
2250  # We do not want a PATH search for config.site.
2251  case $CONFIG_SITE in #((
2252    -*)  ac_site_file1=./$CONFIG_SITE;;
2253    */*) ac_site_file1=$CONFIG_SITE;;
2254    *)   ac_site_file1=./$CONFIG_SITE;;
2255  esac
2256elif test "x$prefix" != xNONE; then
2257  ac_site_file1=$prefix/share/config.site
2258  ac_site_file2=$prefix/etc/config.site
2259else
2260  ac_site_file1=$ac_default_prefix/share/config.site
2261  ac_site_file2=$ac_default_prefix/etc/config.site
2262fi
2263for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2264do
2265  test "x$ac_site_file" = xNONE && continue
2266  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2267    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2268$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2269    sed 's/^/| /' "$ac_site_file" >&5
2270    . "$ac_site_file" \
2271      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273as_fn_error $? "failed to load site script $ac_site_file
2274See \`config.log' for more details" "$LINENO" 5; }
2275  fi
2276done
2277
2278if test -r "$cache_file"; then
2279  # Some versions of bash will fail to source /dev/null (special files
2280  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2281  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2282    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283$as_echo "$as_me: loading cache $cache_file" >&6;}
2284    case $cache_file in
2285      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286      *)                      . "./$cache_file";;
2287    esac
2288  fi
2289else
2290  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291$as_echo "$as_me: creating cache $cache_file" >&6;}
2292  >$cache_file
2293fi
2294
2295# Check that the precious variables saved in the cache have kept the same
2296# value.
2297ac_cache_corrupted=false
2298for ac_var in $ac_precious_vars; do
2299  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2300  eval ac_new_set=\$ac_env_${ac_var}_set
2301  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2302  eval ac_new_val=\$ac_env_${ac_var}_value
2303  case $ac_old_set,$ac_new_set in
2304    set,)
2305      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2306$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2307      ac_cache_corrupted=: ;;
2308    ,set)
2309      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2310$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2311      ac_cache_corrupted=: ;;
2312    ,);;
2313    *)
2314      if test "x$ac_old_val" != "x$ac_new_val"; then
2315	# differences in whitespace do not lead to failure.
2316	ac_old_val_w=`echo x $ac_old_val`
2317	ac_new_val_w=`echo x $ac_new_val`
2318	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2319	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2320$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2321	  ac_cache_corrupted=:
2322	else
2323	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2324$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2325	  eval $ac_var=\$ac_old_val
2326	fi
2327	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2328$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2329	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2330$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2331      fi;;
2332  esac
2333  # Pass precious variables to config.status.
2334  if test "$ac_new_set" = set; then
2335    case $ac_new_val in
2336    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2337    *) ac_arg=$ac_var=$ac_new_val ;;
2338    esac
2339    case " $ac_configure_args " in
2340      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2341      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2342    esac
2343  fi
2344done
2345if $ac_cache_corrupted; then
2346  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2349$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2351fi
2352## -------------------- ##
2353## Main body of script. ##
2354## -------------------- ##
2355
2356ac_ext=c
2357ac_cpp='$CPP $CPPFLAGS'
2358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361
2362
2363ac_aux_dir=
2364for ac_dir in config "$srcdir"/config; do
2365  if test -f "$ac_dir/install-sh"; then
2366    ac_aux_dir=$ac_dir
2367    ac_install_sh="$ac_aux_dir/install-sh -c"
2368    break
2369  elif test -f "$ac_dir/install.sh"; then
2370    ac_aux_dir=$ac_dir
2371    ac_install_sh="$ac_aux_dir/install.sh -c"
2372    break
2373  elif test -f "$ac_dir/shtool"; then
2374    ac_aux_dir=$ac_dir
2375    ac_install_sh="$ac_aux_dir/shtool install -c"
2376    break
2377  fi
2378done
2379if test -z "$ac_aux_dir"; then
2380  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2381fi
2382
2383# These three variables are undocumented and unsupported,
2384# and are intended to be withdrawn in a future Autoconf release.
2385# They can cause serious problems if a builder's source tree is in a directory
2386# whose full name contains unusual characters.
2387ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2388ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2389ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2390
2391
2392
2393ac_config_headers="$ac_config_headers clamavcxx-config.h"
2394
2395# Make sure we can run config.sub.
2396$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2397  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2398
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2400$as_echo_n "checking build system type... " >&6; }
2401if ${ac_cv_build+:} false; then :
2402  $as_echo_n "(cached) " >&6
2403else
2404  ac_build_alias=$build_alias
2405test "x$ac_build_alias" = x &&
2406  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2407test "x$ac_build_alias" = x &&
2408  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2409ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2410  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2411
2412fi
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2414$as_echo "$ac_cv_build" >&6; }
2415case $ac_cv_build in
2416*-*-*) ;;
2417*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2418esac
2419build=$ac_cv_build
2420ac_save_IFS=$IFS; IFS='-'
2421set x $ac_cv_build
2422shift
2423build_cpu=$1
2424build_vendor=$2
2425shift; shift
2426# Remember, the first character of IFS is used to create $*,
2427# except with old shells:
2428build_os=$*
2429IFS=$ac_save_IFS
2430case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2431
2432
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2434$as_echo_n "checking host system type... " >&6; }
2435if ${ac_cv_host+:} false; then :
2436  $as_echo_n "(cached) " >&6
2437else
2438  if test "x$host_alias" = x; then
2439  ac_cv_host=$ac_cv_build
2440else
2441  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2442    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2443fi
2444
2445fi
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2447$as_echo "$ac_cv_host" >&6; }
2448case $ac_cv_host in
2449*-*-*) ;;
2450*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2451esac
2452host=$ac_cv_host
2453ac_save_IFS=$IFS; IFS='-'
2454set x $ac_cv_host
2455shift
2456host_cpu=$1
2457host_vendor=$2
2458shift; shift
2459# Remember, the first character of IFS is used to create $*,
2460# except with old shells:
2461host_os=$*
2462IFS=$ac_save_IFS
2463case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2464
2465
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2467$as_echo_n "checking target system type... " >&6; }
2468if ${ac_cv_target+:} false; then :
2469  $as_echo_n "(cached) " >&6
2470else
2471  if test "x$target_alias" = x; then
2472  ac_cv_target=$ac_cv_host
2473else
2474  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2475    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2476fi
2477
2478fi
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2480$as_echo "$ac_cv_target" >&6; }
2481case $ac_cv_target in
2482*-*-*) ;;
2483*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2484esac
2485target=$ac_cv_target
2486ac_save_IFS=$IFS; IFS='-'
2487set x $ac_cv_target
2488shift
2489target_cpu=$1
2490target_vendor=$2
2491shift; shift
2492# Remember, the first character of IFS is used to create $*,
2493# except with old shells:
2494target_os=$*
2495IFS=$ac_save_IFS
2496case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2497
2498
2499# The aliases save the names the user supplied, while $host etc.
2500# will get canonicalized.
2501test -n "$target_alias" &&
2502  test "$program_prefix$program_suffix$program_transform_name" = \
2503    NONENONEs,x,x, &&
2504  program_prefix=${target_alias}-
2505am__api_version='1.15'
2506
2507# Find a good install program.  We prefer a C program (faster),
2508# so one script is as good as another.  But avoid the broken or
2509# incompatible versions:
2510# SysV /etc/install, /usr/sbin/install
2511# SunOS /usr/etc/install
2512# IRIX /sbin/install
2513# AIX /bin/install
2514# AmigaOS /C/install, which installs bootblocks on floppy discs
2515# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2516# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2517# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2518# OS/2's system install, which has a completely different semantic
2519# ./install, which can be erroneously created by make from ./install.sh.
2520# Reject install programs that cannot install multiple files.
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2522$as_echo_n "checking for a BSD-compatible install... " >&6; }
2523if test -z "$INSTALL"; then
2524if ${ac_cv_path_install+:} false; then :
2525  $as_echo_n "(cached) " >&6
2526else
2527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH
2529do
2530  IFS=$as_save_IFS
2531  test -z "$as_dir" && as_dir=.
2532    # Account for people who put trailing slashes in PATH elements.
2533case $as_dir/ in #((
2534  ./ | .// | /[cC]/* | \
2535  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2536  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2537  /usr/ucb/* ) ;;
2538  *)
2539    # OSF1 and SCO ODT 3.0 have their own names for install.
2540    # Don't use installbsd from OSF since it installs stuff as root
2541    # by default.
2542    for ac_prog in ginstall scoinst install; do
2543      for ac_exec_ext in '' $ac_executable_extensions; do
2544	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2545	  if test $ac_prog = install &&
2546	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547	    # AIX install.  It has an incompatible calling convention.
2548	    :
2549	  elif test $ac_prog = install &&
2550	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551	    # program-specific install script used by HP pwplus--don't use.
2552	    :
2553	  else
2554	    rm -rf conftest.one conftest.two conftest.dir
2555	    echo one > conftest.one
2556	    echo two > conftest.two
2557	    mkdir conftest.dir
2558	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2559	      test -s conftest.one && test -s conftest.two &&
2560	      test -s conftest.dir/conftest.one &&
2561	      test -s conftest.dir/conftest.two
2562	    then
2563	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2564	      break 3
2565	    fi
2566	  fi
2567	fi
2568      done
2569    done
2570    ;;
2571esac
2572
2573  done
2574IFS=$as_save_IFS
2575
2576rm -rf conftest.one conftest.two conftest.dir
2577
2578fi
2579  if test "${ac_cv_path_install+set}" = set; then
2580    INSTALL=$ac_cv_path_install
2581  else
2582    # As a last resort, use the slow shell script.  Don't cache a
2583    # value for INSTALL within a source directory, because that will
2584    # break other packages using the cache if that directory is
2585    # removed, or if the value is a relative name.
2586    INSTALL=$ac_install_sh
2587  fi
2588fi
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2590$as_echo "$INSTALL" >&6; }
2591
2592# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2593# It thinks the first close brace ends the variable substitution.
2594test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2595
2596test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2597
2598test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2599
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2601$as_echo_n "checking whether build environment is sane... " >&6; }
2602# Reject unsafe characters in $srcdir or the absolute working directory
2603# name.  Accept space and tab only in the latter.
2604am_lf='
2605'
2606case `pwd` in
2607  *[\\\"\#\$\&\'\`$am_lf]*)
2608    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2609esac
2610case $srcdir in
2611  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2612    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2613esac
2614
2615# Do 'set' in a subshell so we don't clobber the current shell's
2616# arguments.  Must try -L first in case configure is actually a
2617# symlink; some systems play weird games with the mod time of symlinks
2618# (eg FreeBSD returns the mod time of the symlink's containing
2619# directory).
2620if (
2621   am_has_slept=no
2622   for am_try in 1 2; do
2623     echo "timestamp, slept: $am_has_slept" > conftest.file
2624     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2625     if test "$*" = "X"; then
2626	# -L didn't work.
2627	set X `ls -t "$srcdir/configure" conftest.file`
2628     fi
2629     if test "$*" != "X $srcdir/configure conftest.file" \
2630	&& test "$*" != "X conftest.file $srcdir/configure"; then
2631
2632	# If neither matched, then we have a broken ls.  This can happen
2633	# if, for instance, CONFIG_SHELL is bash and it inherits a
2634	# broken ls alias from the environment.  This has actually
2635	# happened.  Such a system could not be considered "sane".
2636	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2637  alias in your environment" "$LINENO" 5
2638     fi
2639     if test "$2" = conftest.file || test $am_try -eq 2; then
2640       break
2641     fi
2642     # Just in case.
2643     sleep 1
2644     am_has_slept=yes
2645   done
2646   test "$2" = conftest.file
2647   )
2648then
2649   # Ok.
2650   :
2651else
2652   as_fn_error $? "newly created file is older than distributed files!
2653Check your system clock" "$LINENO" 5
2654fi
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2656$as_echo "yes" >&6; }
2657# If we didn't sleep, we still need to ensure time stamps of config.status and
2658# generated files are strictly newer.
2659am_sleep_pid=
2660if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2661  ( sleep 1 ) &
2662  am_sleep_pid=$!
2663fi
2664
2665rm -f conftest.file
2666
2667test "$program_prefix" != NONE &&
2668  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2669# Use a double $ so make ignores it.
2670test "$program_suffix" != NONE &&
2671  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2672# Double any \ or $.
2673# By default was `s,x,x', remove it if useless.
2674ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2675program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2676
2677# Expand $ac_aux_dir to an absolute path.
2678am_aux_dir=`cd "$ac_aux_dir" && pwd`
2679
2680if test x"${MISSING+set}" != xset; then
2681  case $am_aux_dir in
2682  *\ * | *\	*)
2683    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2684  *)
2685    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2686  esac
2687fi
2688# Use eval to expand $SHELL
2689if eval "$MISSING --is-lightweight"; then
2690  am_missing_run="$MISSING "
2691else
2692  am_missing_run=
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2694$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2695fi
2696
2697if test x"${install_sh+set}" != xset; then
2698  case $am_aux_dir in
2699  *\ * | *\	*)
2700    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2701  *)
2702    install_sh="\${SHELL} $am_aux_dir/install-sh"
2703  esac
2704fi
2705
2706# Installed binaries are usually stripped using 'strip' when the user
2707# run "make install-strip".  However 'strip' might not be the right
2708# tool to use in cross-compilation environments, therefore Automake
2709# will honor the 'STRIP' environment variable to overrule this program.
2710if test "$cross_compiling" != no; then
2711  if test -n "$ac_tool_prefix"; then
2712  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2713set dummy ${ac_tool_prefix}strip; ac_word=$2
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715$as_echo_n "checking for $ac_word... " >&6; }
2716if ${ac_cv_prog_STRIP+:} false; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  if test -n "$STRIP"; then
2720  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725  IFS=$as_save_IFS
2726  test -z "$as_dir" && as_dir=.
2727    for ac_exec_ext in '' $ac_executable_extensions; do
2728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731    break 2
2732  fi
2733done
2734  done
2735IFS=$as_save_IFS
2736
2737fi
2738fi
2739STRIP=$ac_cv_prog_STRIP
2740if test -n "$STRIP"; then
2741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2742$as_echo "$STRIP" >&6; }
2743else
2744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745$as_echo "no" >&6; }
2746fi
2747
2748
2749fi
2750if test -z "$ac_cv_prog_STRIP"; then
2751  ac_ct_STRIP=$STRIP
2752  # Extract the first word of "strip", so it can be a program name with args.
2753set dummy strip; ac_word=$2
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755$as_echo_n "checking for $ac_word... " >&6; }
2756if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2757  $as_echo_n "(cached) " >&6
2758else
2759  if test -n "$ac_ct_STRIP"; then
2760  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765  IFS=$as_save_IFS
2766  test -z "$as_dir" && as_dir=.
2767    for ac_exec_ext in '' $ac_executable_extensions; do
2768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769    ac_cv_prog_ac_ct_STRIP="strip"
2770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771    break 2
2772  fi
2773done
2774  done
2775IFS=$as_save_IFS
2776
2777fi
2778fi
2779ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2780if test -n "$ac_ct_STRIP"; then
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2782$as_echo "$ac_ct_STRIP" >&6; }
2783else
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785$as_echo "no" >&6; }
2786fi
2787
2788  if test "x$ac_ct_STRIP" = x; then
2789    STRIP=":"
2790  else
2791    case $cross_compiling:$ac_tool_warned in
2792yes:)
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2795ac_tool_warned=yes ;;
2796esac
2797    STRIP=$ac_ct_STRIP
2798  fi
2799else
2800  STRIP="$ac_cv_prog_STRIP"
2801fi
2802
2803fi
2804INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2805
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2807$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2808if test -z "$MKDIR_P"; then
2809  if ${ac_cv_path_mkdir+:} false; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2814do
2815  IFS=$as_save_IFS
2816  test -z "$as_dir" && as_dir=.
2817    for ac_prog in mkdir gmkdir; do
2818	 for ac_exec_ext in '' $ac_executable_extensions; do
2819	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2820	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2821	     'mkdir (GNU coreutils) '* | \
2822	     'mkdir (coreutils) '* | \
2823	     'mkdir (fileutils) '4.1*)
2824	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2825	       break 3;;
2826	   esac
2827	 done
2828       done
2829  done
2830IFS=$as_save_IFS
2831
2832fi
2833
2834  test -d ./--version && rmdir ./--version
2835  if test "${ac_cv_path_mkdir+set}" = set; then
2836    MKDIR_P="$ac_cv_path_mkdir -p"
2837  else
2838    # As a last resort, use the slow shell script.  Don't cache a
2839    # value for MKDIR_P within a source directory, because that will
2840    # break other packages using the cache if that directory is
2841    # removed, or if the value is a relative name.
2842    MKDIR_P="$ac_install_sh -d"
2843  fi
2844fi
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2846$as_echo "$MKDIR_P" >&6; }
2847
2848for ac_prog in gawk mawk nawk awk
2849do
2850  # Extract the first word of "$ac_prog", so it can be a program name with args.
2851set dummy $ac_prog; ac_word=$2
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853$as_echo_n "checking for $ac_word... " >&6; }
2854if ${ac_cv_prog_AWK+:} false; then :
2855  $as_echo_n "(cached) " >&6
2856else
2857  if test -n "$AWK"; then
2858  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863  IFS=$as_save_IFS
2864  test -z "$as_dir" && as_dir=.
2865    for ac_exec_ext in '' $ac_executable_extensions; do
2866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867    ac_cv_prog_AWK="$ac_prog"
2868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869    break 2
2870  fi
2871done
2872  done
2873IFS=$as_save_IFS
2874
2875fi
2876fi
2877AWK=$ac_cv_prog_AWK
2878if test -n "$AWK"; then
2879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2880$as_echo "$AWK" >&6; }
2881else
2882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883$as_echo "no" >&6; }
2884fi
2885
2886
2887  test -n "$AWK" && break
2888done
2889
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2891$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2892set x ${MAKE-make}
2893ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2894if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2895  $as_echo_n "(cached) " >&6
2896else
2897  cat >conftest.make <<\_ACEOF
2898SHELL = /bin/sh
2899all:
2900	@echo '@@@%%%=$(MAKE)=@@@%%%'
2901_ACEOF
2902# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2903case `${MAKE-make} -f conftest.make 2>/dev/null` in
2904  *@@@%%%=?*=@@@%%%*)
2905    eval ac_cv_prog_make_${ac_make}_set=yes;;
2906  *)
2907    eval ac_cv_prog_make_${ac_make}_set=no;;
2908esac
2909rm -f conftest.make
2910fi
2911if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2913$as_echo "yes" >&6; }
2914  SET_MAKE=
2915else
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917$as_echo "no" >&6; }
2918  SET_MAKE="MAKE=${MAKE-make}"
2919fi
2920
2921rm -rf .tst 2>/dev/null
2922mkdir .tst 2>/dev/null
2923if test -d .tst; then
2924  am__leading_dot=.
2925else
2926  am__leading_dot=_
2927fi
2928rmdir .tst 2>/dev/null
2929
2930# Check whether --enable-silent-rules was given.
2931if test "${enable_silent_rules+set}" = set; then :
2932  enableval=$enable_silent_rules;
2933fi
2934
2935case $enable_silent_rules in # (((
2936  yes) AM_DEFAULT_VERBOSITY=0;;
2937   no) AM_DEFAULT_VERBOSITY=1;;
2938    *) AM_DEFAULT_VERBOSITY=1;;
2939esac
2940am_make=${MAKE-make}
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2942$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2943if ${am_cv_make_support_nested_variables+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  if $as_echo 'TRUE=$(BAR$(V))
2947BAR0=false
2948BAR1=true
2949V=1
2950am__doit:
2951	@$(TRUE)
2952.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2953  am_cv_make_support_nested_variables=yes
2954else
2955  am_cv_make_support_nested_variables=no
2956fi
2957fi
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2959$as_echo "$am_cv_make_support_nested_variables" >&6; }
2960if test $am_cv_make_support_nested_variables = yes; then
2961    AM_V='$(V)'
2962  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2963else
2964  AM_V=$AM_DEFAULT_VERBOSITY
2965  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2966fi
2967AM_BACKSLASH='\'
2968
2969if test "`cd $srcdir && pwd`" != "`pwd`"; then
2970  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2971  # is not polluted with repeated "-I."
2972  am__isrc=' -I$(srcdir)'
2973  # test to see if srcdir already configured
2974  if test -f $srcdir/config.status; then
2975    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2976  fi
2977fi
2978
2979# test whether we have cygpath
2980if test -z "$CYGPATH_W"; then
2981  if (cygpath --version) >/dev/null 2>/dev/null; then
2982    CYGPATH_W='cygpath -w'
2983  else
2984    CYGPATH_W=echo
2985  fi
2986fi
2987
2988
2989# Define the identity of the package.
2990 PACKAGE='libclamavc--'
2991 VERSION='devel'
2992
2993
2994# Some tools Automake needs.
2995
2996ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2997
2998
2999AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3000
3001
3002AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3003
3004
3005AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3006
3007
3008MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3009
3010# For better backward compatibility.  To be removed once Automake 1.9.x
3011# dies out for good.  For more background, see:
3012# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3013# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3014mkdir_p='$(MKDIR_P)'
3015
3016# We need awk for the "check" target (and possibly the TAP driver).  The
3017# system "awk" is bad on some platforms.
3018# Always define AMTAR for backward compatibility.  Yes, it's still used
3019# in the wild :-(  We should find a proper way to deprecate it ...
3020AMTAR='$${TAR-tar}'
3021
3022
3023# We'll loop over all known methods to create a tar archive until one works.
3024_am_tools='gnutar  pax cpio none'
3025
3026
3027
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3029$as_echo_n "checking how to create a pax tar archive... " >&6; }
3030
3031  # Go ahead even if we have the value already cached.  We do so because we
3032  # need to set the values for the 'am__tar' and 'am__untar' variables.
3033  _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3034
3035  for _am_tool in $_am_tools; do
3036    case $_am_tool in
3037    gnutar)
3038      for _am_tar in tar gnutar gtar; do
3039        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3040   ($_am_tar --version) >&5 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); } && break
3044      done
3045      am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3046      am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3047      am__untar="$_am_tar -xf -"
3048      ;;
3049    plaintar)
3050      # Must skip GNU tar: if it does not support --format= it doesn't create
3051      # ustar tarball either.
3052      (tar --version) >/dev/null 2>&1 && continue
3053      am__tar='tar chf - "$$tardir"'
3054      am__tar_='tar chf - "$tardir"'
3055      am__untar='tar xf -'
3056      ;;
3057    pax)
3058      am__tar='pax -L -x pax -w "$$tardir"'
3059      am__tar_='pax -L -x pax -w "$tardir"'
3060      am__untar='pax -r'
3061      ;;
3062    cpio)
3063      am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3064      am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3065      am__untar='cpio -i -H pax -d'
3066      ;;
3067    none)
3068      am__tar=false
3069      am__tar_=false
3070      am__untar=false
3071      ;;
3072    esac
3073
3074    # If the value was cached, stop now.  We just wanted to have am__tar
3075    # and am__untar set.
3076    test -n "${am_cv_prog_tar_pax}" && break
3077
3078    # tar/untar a dummy directory, and stop if the command works.
3079    rm -rf conftest.dir
3080    mkdir conftest.dir
3081    echo GrepMe > conftest.dir/file
3082    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3083   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3084   ac_status=$?
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); }
3087    rm -rf conftest.dir
3088    if test -s conftest.tar; then
3089      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3090   ($am__untar <conftest.tar) >&5 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }
3094      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3095   (cat conftest.dir/file) >&5 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }
3099      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3100    fi
3101  done
3102  rm -rf conftest.dir
3103
3104  if ${am_cv_prog_tar_pax+:} false; then :
3105  $as_echo_n "(cached) " >&6
3106else
3107  am_cv_prog_tar_pax=$_am_tool
3108fi
3109
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3111$as_echo "$am_cv_prog_tar_pax" >&6; }
3112
3113
3114
3115
3116
3117
3118# POSIX will say in a future version that running "rm -f" with no argument
3119# is OK; and we want to be able to make that assumption in our Makefile
3120# recipes.  So use an aggressive probe to check that the usage we want is
3121# actually supported "in the wild" to an acceptable degree.
3122# See automake bug#10828.
3123# To make any issue more visible, cause the running configure to be aborted
3124# by default if the 'rm' program in use doesn't match our expectations; the
3125# user can still override this though.
3126if rm -f && rm -fr && rm -rf; then : OK; else
3127  cat >&2 <<'END'
3128Oops!
3129
3130Your 'rm' program seems unable to run without file operands specified
3131on the command line, even when the '-f' option is present.  This is contrary
3132to the behaviour of most rm programs out there, and not conforming with
3133the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3134
3135Please tell bug-automake@gnu.org about your system, including the value
3136of your $PATH and any error possibly output before this message.  This
3137can help us improve future automake versions.
3138
3139END
3140  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3141    echo 'Configuration will proceed anyway, since you have set the' >&2
3142    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3143    echo >&2
3144  else
3145    cat >&2 <<'END'
3146Aborting the configuration process, to ensure you take notice of the issue.
3147
3148You can download and install GNU coreutils to get an 'rm' implementation
3149that behaves properly: <http://www.gnu.org/software/coreutils/>.
3150
3151If you want to complete the configuration process using your problematic
3152'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3153to "yes", and re-run configure.
3154
3155END
3156    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3157  fi
3158fi
3159
3160# Check whether --enable-silent-rules was given.
3161if test "${enable_silent_rules+set}" = set; then :
3162  enableval=$enable_silent_rules;
3163fi
3164
3165case $enable_silent_rules in # (((
3166  yes) AM_DEFAULT_VERBOSITY=0;;
3167   no) AM_DEFAULT_VERBOSITY=1;;
3168    *) AM_DEFAULT_VERBOSITY=0;;
3169esac
3170am_make=${MAKE-make}
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3172$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3173if ${am_cv_make_support_nested_variables+:} false; then :
3174  $as_echo_n "(cached) " >&6
3175else
3176  if $as_echo 'TRUE=$(BAR$(V))
3177BAR0=false
3178BAR1=true
3179V=1
3180am__doit:
3181	@$(TRUE)
3182.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3183  am_cv_make_support_nested_variables=yes
3184else
3185  am_cv_make_support_nested_variables=no
3186fi
3187fi
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3189$as_echo "$am_cv_make_support_nested_variables" >&6; }
3190if test $am_cv_make_support_nested_variables = yes; then
3191    AM_V='$(V)'
3192  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3193else
3194  AM_V=$AM_DEFAULT_VERBOSITY
3195  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3196fi
3197AM_BACKSLASH='\'
3198
3199
3200cxxset=${CXXFLAGS+set}
3201ac_ext=cpp
3202ac_cpp='$CXXCPP $CPPFLAGS'
3203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3206if test -z "$CXX"; then
3207  if test -n "$CCC"; then
3208    CXX=$CCC
3209  else
3210    if test -n "$ac_tool_prefix"; then
3211  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3212  do
3213    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216$as_echo_n "checking for $ac_word... " >&6; }
3217if ${ac_cv_prog_CXX+:} false; then :
3218  $as_echo_n "(cached) " >&6
3219else
3220  if test -n "$CXX"; then
3221  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3222else
3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224for as_dir in $PATH
3225do
3226  IFS=$as_save_IFS
3227  test -z "$as_dir" && as_dir=.
3228    for ac_exec_ext in '' $ac_executable_extensions; do
3229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232    break 2
3233  fi
3234done
3235  done
3236IFS=$as_save_IFS
3237
3238fi
3239fi
3240CXX=$ac_cv_prog_CXX
3241if test -n "$CXX"; then
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3243$as_echo "$CXX" >&6; }
3244else
3245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246$as_echo "no" >&6; }
3247fi
3248
3249
3250    test -n "$CXX" && break
3251  done
3252fi
3253if test -z "$CXX"; then
3254  ac_ct_CXX=$CXX
3255  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3256do
3257  # Extract the first word of "$ac_prog", so it can be a program name with args.
3258set dummy $ac_prog; ac_word=$2
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260$as_echo_n "checking for $ac_word... " >&6; }
3261if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3262  $as_echo_n "(cached) " >&6
3263else
3264  if test -n "$ac_ct_CXX"; then
3265  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3266else
3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268for as_dir in $PATH
3269do
3270  IFS=$as_save_IFS
3271  test -z "$as_dir" && as_dir=.
3272    for ac_exec_ext in '' $ac_executable_extensions; do
3273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274    ac_cv_prog_ac_ct_CXX="$ac_prog"
3275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276    break 2
3277  fi
3278done
3279  done
3280IFS=$as_save_IFS
3281
3282fi
3283fi
3284ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3285if test -n "$ac_ct_CXX"; then
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3287$as_echo "$ac_ct_CXX" >&6; }
3288else
3289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290$as_echo "no" >&6; }
3291fi
3292
3293
3294  test -n "$ac_ct_CXX" && break
3295done
3296
3297  if test "x$ac_ct_CXX" = x; then
3298    CXX="g++"
3299  else
3300    case $cross_compiling:$ac_tool_warned in
3301yes:)
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304ac_tool_warned=yes ;;
3305esac
3306    CXX=$ac_ct_CXX
3307  fi
3308fi
3309
3310  fi
3311fi
3312# Provide some information about the compiler.
3313$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3314set X $ac_compile
3315ac_compiler=$2
3316for ac_option in --version -v -V -qversion; do
3317  { { ac_try="$ac_compiler $ac_option >&5"
3318case "(($ac_try" in
3319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320  *) ac_try_echo=$ac_try;;
3321esac
3322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323$as_echo "$ac_try_echo"; } >&5
3324  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3325  ac_status=$?
3326  if test -s conftest.err; then
3327    sed '10a\
3328... rest of stderr output deleted ...
3329         10q' conftest.err >conftest.er1
3330    cat conftest.er1 >&5
3331  fi
3332  rm -f conftest.er1 conftest.err
3333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334  test $ac_status = 0; }
3335done
3336
3337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338/* end confdefs.h.  */
3339
3340int
3341main ()
3342{
3343
3344  ;
3345  return 0;
3346}
3347_ACEOF
3348ac_clean_files_save=$ac_clean_files
3349ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3350# Try to create an executable without -o first, disregard a.out.
3351# It will help us diagnose broken compilers, and finding out an intuition
3352# of exeext.
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3354$as_echo_n "checking whether the C++ compiler works... " >&6; }
3355ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3356
3357# The possible output files:
3358ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3359
3360ac_rmfiles=
3361for ac_file in $ac_files
3362do
3363  case $ac_file in
3364    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3365    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3366  esac
3367done
3368rm -f $ac_rmfiles
3369
3370if { { ac_try="$ac_link_default"
3371case "(($ac_try" in
3372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373  *) ac_try_echo=$ac_try;;
3374esac
3375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376$as_echo "$ac_try_echo"; } >&5
3377  (eval "$ac_link_default") 2>&5
3378  ac_status=$?
3379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380  test $ac_status = 0; }; then :
3381  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3382# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3383# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3384# so that the user can short-circuit this test for compilers unknown to
3385# Autoconf.
3386for ac_file in $ac_files ''
3387do
3388  test -f "$ac_file" || continue
3389  case $ac_file in
3390    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3391	;;
3392    [ab].out )
3393	# We found the default executable, but exeext='' is most
3394	# certainly right.
3395	break;;
3396    *.* )
3397	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3398	then :; else
3399	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400	fi
3401	# We set ac_cv_exeext here because the later test for it is not
3402	# safe: cross compilers may not add the suffix if given an `-o'
3403	# argument, so we may need to know it at that point already.
3404	# Even if this section looks crufty: it has the advantage of
3405	# actually working.
3406	break;;
3407    * )
3408	break;;
3409  esac
3410done
3411test "$ac_cv_exeext" = no && ac_cv_exeext=
3412
3413else
3414  ac_file=''
3415fi
3416if test -z "$ac_file"; then :
3417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418$as_echo "no" >&6; }
3419$as_echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424as_fn_error 77 "C++ compiler cannot create executables
3425See \`config.log' for more details" "$LINENO" 5; }
3426else
3427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3428$as_echo "yes" >&6; }
3429fi
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3431$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3433$as_echo "$ac_file" >&6; }
3434ac_exeext=$ac_cv_exeext
3435
3436rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3437ac_clean_files=$ac_clean_files_save
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3439$as_echo_n "checking for suffix of executables... " >&6; }
3440if { { ac_try="$ac_link"
3441case "(($ac_try" in
3442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443  *) ac_try_echo=$ac_try;;
3444esac
3445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446$as_echo "$ac_try_echo"; } >&5
3447  (eval "$ac_link") 2>&5
3448  ac_status=$?
3449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450  test $ac_status = 0; }; then :
3451  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3452# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3453# work properly (i.e., refer to `conftest.exe'), while it won't with
3454# `rm'.
3455for ac_file in conftest.exe conftest conftest.*; do
3456  test -f "$ac_file" || continue
3457  case $ac_file in
3458    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3459    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460	  break;;
3461    * ) break;;
3462  esac
3463done
3464else
3465  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3468See \`config.log' for more details" "$LINENO" 5; }
3469fi
3470rm -f conftest conftest$ac_cv_exeext
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3472$as_echo "$ac_cv_exeext" >&6; }
3473
3474rm -f conftest.$ac_ext
3475EXEEXT=$ac_cv_exeext
3476ac_exeext=$EXEEXT
3477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h.  */
3479#include <stdio.h>
3480int
3481main ()
3482{
3483FILE *f = fopen ("conftest.out", "w");
3484 return ferror (f) || fclose (f) != 0;
3485
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490ac_clean_files="$ac_clean_files conftest.out"
3491# Check that the compiler produces executables we can run.  If not, either
3492# the compiler is broken, or we cross compile.
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3494$as_echo_n "checking whether we are cross compiling... " >&6; }
3495if test "$cross_compiling" != yes; then
3496  { { ac_try="$ac_link"
3497case "(($ac_try" in
3498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499  *) ac_try_echo=$ac_try;;
3500esac
3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502$as_echo "$ac_try_echo"; } >&5
3503  (eval "$ac_link") 2>&5
3504  ac_status=$?
3505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506  test $ac_status = 0; }
3507  if { ac_try='./conftest$ac_cv_exeext'
3508  { { case "(($ac_try" in
3509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510  *) ac_try_echo=$ac_try;;
3511esac
3512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513$as_echo "$ac_try_echo"; } >&5
3514  (eval "$ac_try") 2>&5
3515  ac_status=$?
3516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517  test $ac_status = 0; }; }; then
3518    cross_compiling=no
3519  else
3520    if test "$cross_compiling" = maybe; then
3521	cross_compiling=yes
3522    else
3523	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525as_fn_error $? "cannot run C++ compiled programs.
3526If you meant to cross compile, use \`--host'.
3527See \`config.log' for more details" "$LINENO" 5; }
3528    fi
3529  fi
3530fi
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3532$as_echo "$cross_compiling" >&6; }
3533
3534rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3535ac_clean_files=$ac_clean_files_save
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3537$as_echo_n "checking for suffix of object files... " >&6; }
3538if ${ac_cv_objext+:} false; then :
3539  $as_echo_n "(cached) " >&6
3540else
3541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h.  */
3543
3544int
3545main ()
3546{
3547
3548  ;
3549  return 0;
3550}
3551_ACEOF
3552rm -f conftest.o conftest.obj
3553if { { ac_try="$ac_compile"
3554case "(($ac_try" in
3555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556  *) ac_try_echo=$ac_try;;
3557esac
3558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559$as_echo "$ac_try_echo"; } >&5
3560  (eval "$ac_compile") 2>&5
3561  ac_status=$?
3562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563  test $ac_status = 0; }; then :
3564  for ac_file in conftest.o conftest.obj conftest.*; do
3565  test -f "$ac_file" || continue;
3566  case $ac_file in
3567    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3568    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3569       break;;
3570  esac
3571done
3572else
3573  $as_echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578as_fn_error $? "cannot compute suffix of object files: cannot compile
3579See \`config.log' for more details" "$LINENO" 5; }
3580fi
3581rm -f conftest.$ac_cv_objext conftest.$ac_ext
3582fi
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3584$as_echo "$ac_cv_objext" >&6; }
3585OBJEXT=$ac_cv_objext
3586ac_objext=$OBJEXT
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3588$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3589if ${ac_cv_cxx_compiler_gnu+:} false; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593/* end confdefs.h.  */
3594
3595int
3596main ()
3597{
3598#ifndef __GNUC__
3599       choke me
3600#endif
3601
3602  ;
3603  return 0;
3604}
3605_ACEOF
3606if ac_fn_cxx_try_compile "$LINENO"; then :
3607  ac_compiler_gnu=yes
3608else
3609  ac_compiler_gnu=no
3610fi
3611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3613
3614fi
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3616$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3617if test $ac_compiler_gnu = yes; then
3618  GXX=yes
3619else
3620  GXX=
3621fi
3622ac_test_CXXFLAGS=${CXXFLAGS+set}
3623ac_save_CXXFLAGS=$CXXFLAGS
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3625$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3626if ${ac_cv_prog_cxx_g+:} false; then :
3627  $as_echo_n "(cached) " >&6
3628else
3629  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3630   ac_cxx_werror_flag=yes
3631   ac_cv_prog_cxx_g=no
3632   CXXFLAGS="-g"
3633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634/* end confdefs.h.  */
3635
3636int
3637main ()
3638{
3639
3640  ;
3641  return 0;
3642}
3643_ACEOF
3644if ac_fn_cxx_try_compile "$LINENO"; then :
3645  ac_cv_prog_cxx_g=yes
3646else
3647  CXXFLAGS=""
3648      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
3654
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659if ac_fn_cxx_try_compile "$LINENO"; then :
3660
3661else
3662  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3663	 CXXFLAGS="-g"
3664	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h.  */
3666
3667int
3668main ()
3669{
3670
3671  ;
3672  return 0;
3673}
3674_ACEOF
3675if ac_fn_cxx_try_compile "$LINENO"; then :
3676  ac_cv_prog_cxx_g=yes
3677fi
3678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679fi
3680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681fi
3682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3684fi
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3686$as_echo "$ac_cv_prog_cxx_g" >&6; }
3687if test "$ac_test_CXXFLAGS" = set; then
3688  CXXFLAGS=$ac_save_CXXFLAGS
3689elif test $ac_cv_prog_cxx_g = yes; then
3690  if test "$GXX" = yes; then
3691    CXXFLAGS="-g -O2"
3692  else
3693    CXXFLAGS="-g"
3694  fi
3695else
3696  if test "$GXX" = yes; then
3697    CXXFLAGS="-O2"
3698  else
3699    CXXFLAGS=
3700  fi
3701fi
3702ac_ext=c
3703ac_cpp='$CPP $CPPFLAGS'
3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707DEPDIR="${am__leading_dot}deps"
3708
3709ac_config_commands="$ac_config_commands depfiles"
3710
3711
3712am_make=${MAKE-make}
3713cat > confinc << 'END'
3714am__doit:
3715	@echo this is the am__doit target
3716.PHONY: am__doit
3717END
3718# If we don't find an include directive, just comment out the code.
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3720$as_echo_n "checking for style of include used by $am_make... " >&6; }
3721am__include="#"
3722am__quote=
3723_am_result=none
3724# First try GNU make style include.
3725echo "include confinc" > confmf
3726# Ignore all kinds of additional output from 'make'.
3727case `$am_make -s -f confmf 2> /dev/null` in #(
3728*the\ am__doit\ target*)
3729  am__include=include
3730  am__quote=
3731  _am_result=GNU
3732  ;;
3733esac
3734# Now try BSD make style include.
3735if test "$am__include" = "#"; then
3736   echo '.include "confinc"' > confmf
3737   case `$am_make -s -f confmf 2> /dev/null` in #(
3738   *the\ am__doit\ target*)
3739     am__include=.include
3740     am__quote="\""
3741     _am_result=BSD
3742     ;;
3743   esac
3744fi
3745
3746
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3748$as_echo "$_am_result" >&6; }
3749rm -f confinc confmf
3750
3751# Check whether --enable-dependency-tracking was given.
3752if test "${enable_dependency_tracking+set}" = set; then :
3753  enableval=$enable_dependency_tracking;
3754fi
3755
3756if test "x$enable_dependency_tracking" != xno; then
3757  am_depcomp="$ac_aux_dir/depcomp"
3758  AMDEPBACKSLASH='\'
3759  am__nodep='_no'
3760fi
3761 if test "x$enable_dependency_tracking" != xno; then
3762  AMDEP_TRUE=
3763  AMDEP_FALSE='#'
3764else
3765  AMDEP_TRUE='#'
3766  AMDEP_FALSE=
3767fi
3768
3769
3770
3771depcc="$CXX"  am_compiler_list=
3772
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3774$as_echo_n "checking dependency style of $depcc... " >&6; }
3775if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3776  $as_echo_n "(cached) " >&6
3777else
3778  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3779  # We make a subdir and do the tests there.  Otherwise we can end up
3780  # making bogus files that we don't know about and never remove.  For
3781  # instance it was reported that on HP-UX the gcc test will end up
3782  # making a dummy file named 'D' -- because '-MD' means "put the output
3783  # in D".
3784  rm -rf conftest.dir
3785  mkdir conftest.dir
3786  # Copy depcomp to subdir because otherwise we won't find it if we're
3787  # using a relative directory.
3788  cp "$am_depcomp" conftest.dir
3789  cd conftest.dir
3790  # We will build objects and dependencies in a subdirectory because
3791  # it helps to detect inapplicable dependency modes.  For instance
3792  # both Tru64's cc and ICC support -MD to output dependencies as a
3793  # side effect of compilation, but ICC will put the dependencies in
3794  # the current directory while Tru64 will put them in the object
3795  # directory.
3796  mkdir sub
3797
3798  am_cv_CXX_dependencies_compiler_type=none
3799  if test "$am_compiler_list" = ""; then
3800     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3801  fi
3802  am__universal=false
3803  case " $depcc " in #(
3804     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3805     esac
3806
3807  for depmode in $am_compiler_list; do
3808    # Setup a source with many dependencies, because some compilers
3809    # like to wrap large dependency lists on column 80 (with \), and
3810    # we should not choose a depcomp mode which is confused by this.
3811    #
3812    # We need to recreate these files for each test, as the compiler may
3813    # overwrite some of them when testing with obscure command lines.
3814    # This happens at least with the AIX C compiler.
3815    : > sub/conftest.c
3816    for i in 1 2 3 4 5 6; do
3817      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3818      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3819      # Solaris 10 /bin/sh.
3820      echo '/* dummy */' > sub/conftst$i.h
3821    done
3822    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3823
3824    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3825    # mode.  It turns out that the SunPro C++ compiler does not properly
3826    # handle '-M -o', and we need to detect this.  Also, some Intel
3827    # versions had trouble with output in subdirs.
3828    am__obj=sub/conftest.${OBJEXT-o}
3829    am__minus_obj="-o $am__obj"
3830    case $depmode in
3831    gcc)
3832      # This depmode causes a compiler race in universal mode.
3833      test "$am__universal" = false || continue
3834      ;;
3835    nosideeffect)
3836      # After this tag, mechanisms are not by side-effect, so they'll
3837      # only be used when explicitly requested.
3838      if test "x$enable_dependency_tracking" = xyes; then
3839	continue
3840      else
3841	break
3842      fi
3843      ;;
3844    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3845      # This compiler won't grok '-c -o', but also, the minuso test has
3846      # not run yet.  These depmodes are late enough in the game, and
3847      # so weak that their functioning should not be impacted.
3848      am__obj=conftest.${OBJEXT-o}
3849      am__minus_obj=
3850      ;;
3851    none) break ;;
3852    esac
3853    if depmode=$depmode \
3854       source=sub/conftest.c object=$am__obj \
3855       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3856       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3857         >/dev/null 2>conftest.err &&
3858       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3859       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3860       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3861       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3862      # icc doesn't choke on unknown options, it will just issue warnings
3863      # or remarks (even with -Werror).  So we grep stderr for any message
3864      # that says an option was ignored or not supported.
3865      # When given -MP, icc 7.0 and 7.1 complain thusly:
3866      #   icc: Command line warning: ignoring option '-M'; no argument required
3867      # The diagnosis changed in icc 8.0:
3868      #   icc: Command line remark: option '-MP' not supported
3869      if (grep 'ignoring option' conftest.err ||
3870          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3871        am_cv_CXX_dependencies_compiler_type=$depmode
3872        break
3873      fi
3874    fi
3875  done
3876
3877  cd ..
3878  rm -rf conftest.dir
3879else
3880  am_cv_CXX_dependencies_compiler_type=none
3881fi
3882
3883fi
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3885$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3886CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3887
3888 if
3889  test "x$enable_dependency_tracking" != xno \
3890  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3891  am__fastdepCXX_TRUE=
3892  am__fastdepCXX_FALSE='#'
3893else
3894  am__fastdepCXX_TRUE='#'
3895  am__fastdepCXX_FALSE=
3896fi
3897
3898
3899ac_ext=c
3900ac_cpp='$CPP $CPPFLAGS'
3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904if test -n "$ac_tool_prefix"; then
3905  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3906set dummy ${ac_tool_prefix}gcc; ac_word=$2
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908$as_echo_n "checking for $ac_word... " >&6; }
3909if ${ac_cv_prog_CC+:} false; then :
3910  $as_echo_n "(cached) " >&6
3911else
3912  if test -n "$CC"; then
3913  ac_cv_prog_CC="$CC" # Let the user override the test.
3914else
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918  IFS=$as_save_IFS
3919  test -z "$as_dir" && as_dir=.
3920    for ac_exec_ext in '' $ac_executable_extensions; do
3921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924    break 2
3925  fi
3926done
3927  done
3928IFS=$as_save_IFS
3929
3930fi
3931fi
3932CC=$ac_cv_prog_CC
3933if test -n "$CC"; then
3934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935$as_echo "$CC" >&6; }
3936else
3937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938$as_echo "no" >&6; }
3939fi
3940
3941
3942fi
3943if test -z "$ac_cv_prog_CC"; then
3944  ac_ct_CC=$CC
3945  # Extract the first word of "gcc", so it can be a program name with args.
3946set dummy gcc; ac_word=$2
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948$as_echo_n "checking for $ac_word... " >&6; }
3949if ${ac_cv_prog_ac_ct_CC+:} false; then :
3950  $as_echo_n "(cached) " >&6
3951else
3952  if test -n "$ac_ct_CC"; then
3953  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958  IFS=$as_save_IFS
3959  test -z "$as_dir" && as_dir=.
3960    for ac_exec_ext in '' $ac_executable_extensions; do
3961  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962    ac_cv_prog_ac_ct_CC="gcc"
3963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964    break 2
3965  fi
3966done
3967  done
3968IFS=$as_save_IFS
3969
3970fi
3971fi
3972ac_ct_CC=$ac_cv_prog_ac_ct_CC
3973if test -n "$ac_ct_CC"; then
3974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3975$as_echo "$ac_ct_CC" >&6; }
3976else
3977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978$as_echo "no" >&6; }
3979fi
3980
3981  if test "x$ac_ct_CC" = x; then
3982    CC=""
3983  else
3984    case $cross_compiling:$ac_tool_warned in
3985yes:)
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3988ac_tool_warned=yes ;;
3989esac
3990    CC=$ac_ct_CC
3991  fi
3992else
3993  CC="$ac_cv_prog_CC"
3994fi
3995
3996if test -z "$CC"; then
3997          if test -n "$ac_tool_prefix"; then
3998    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3999set dummy ${ac_tool_prefix}cc; ac_word=$2
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001$as_echo_n "checking for $ac_word... " >&6; }
4002if ${ac_cv_prog_CC+:} false; then :
4003  $as_echo_n "(cached) " >&6
4004else
4005  if test -n "$CC"; then
4006  ac_cv_prog_CC="$CC" # Let the user override the test.
4007else
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011  IFS=$as_save_IFS
4012  test -z "$as_dir" && as_dir=.
4013    for ac_exec_ext in '' $ac_executable_extensions; do
4014  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015    ac_cv_prog_CC="${ac_tool_prefix}cc"
4016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017    break 2
4018  fi
4019done
4020  done
4021IFS=$as_save_IFS
4022
4023fi
4024fi
4025CC=$ac_cv_prog_CC
4026if test -n "$CC"; then
4027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028$as_echo "$CC" >&6; }
4029else
4030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
4032fi
4033
4034
4035  fi
4036fi
4037if test -z "$CC"; then
4038  # Extract the first word of "cc", so it can be a program name with args.
4039set dummy cc; ac_word=$2
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041$as_echo_n "checking for $ac_word... " >&6; }
4042if ${ac_cv_prog_CC+:} false; then :
4043  $as_echo_n "(cached) " >&6
4044else
4045  if test -n "$CC"; then
4046  ac_cv_prog_CC="$CC" # Let the user override the test.
4047else
4048  ac_prog_rejected=no
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  test -z "$as_dir" && as_dir=.
4054    for ac_exec_ext in '' $ac_executable_extensions; do
4055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4057       ac_prog_rejected=yes
4058       continue
4059     fi
4060    ac_cv_prog_CC="cc"
4061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062    break 2
4063  fi
4064done
4065  done
4066IFS=$as_save_IFS
4067
4068if test $ac_prog_rejected = yes; then
4069  # We found a bogon in the path, so make sure we never use it.
4070  set dummy $ac_cv_prog_CC
4071  shift
4072  if test $# != 0; then
4073    # We chose a different compiler from the bogus one.
4074    # However, it has the same basename, so the bogon will be chosen
4075    # first if we set CC to just the basename; use the full file name.
4076    shift
4077    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4078  fi
4079fi
4080fi
4081fi
4082CC=$ac_cv_prog_CC
4083if test -n "$CC"; then
4084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4085$as_echo "$CC" >&6; }
4086else
4087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088$as_echo "no" >&6; }
4089fi
4090
4091
4092fi
4093if test -z "$CC"; then
4094  if test -n "$ac_tool_prefix"; then
4095  for ac_prog in cl.exe
4096  do
4097    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4098set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100$as_echo_n "checking for $ac_word... " >&6; }
4101if ${ac_cv_prog_CC+:} false; then :
4102  $as_echo_n "(cached) " >&6
4103else
4104  if test -n "$CC"; then
4105  ac_cv_prog_CC="$CC" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110  IFS=$as_save_IFS
4111  test -z "$as_dir" && as_dir=.
4112    for ac_exec_ext in '' $ac_executable_extensions; do
4113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116    break 2
4117  fi
4118done
4119  done
4120IFS=$as_save_IFS
4121
4122fi
4123fi
4124CC=$ac_cv_prog_CC
4125if test -n "$CC"; then
4126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127$as_echo "$CC" >&6; }
4128else
4129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130$as_echo "no" >&6; }
4131fi
4132
4133
4134    test -n "$CC" && break
4135  done
4136fi
4137if test -z "$CC"; then
4138  ac_ct_CC=$CC
4139  for ac_prog in cl.exe
4140do
4141  # Extract the first word of "$ac_prog", so it can be a program name with args.
4142set dummy $ac_prog; ac_word=$2
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144$as_echo_n "checking for $ac_word... " >&6; }
4145if ${ac_cv_prog_ac_ct_CC+:} false; then :
4146  $as_echo_n "(cached) " >&6
4147else
4148  if test -n "$ac_ct_CC"; then
4149  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4150else
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154  IFS=$as_save_IFS
4155  test -z "$as_dir" && as_dir=.
4156    for ac_exec_ext in '' $ac_executable_extensions; do
4157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158    ac_cv_prog_ac_ct_CC="$ac_prog"
4159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160    break 2
4161  fi
4162done
4163  done
4164IFS=$as_save_IFS
4165
4166fi
4167fi
4168ac_ct_CC=$ac_cv_prog_ac_ct_CC
4169if test -n "$ac_ct_CC"; then
4170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4171$as_echo "$ac_ct_CC" >&6; }
4172else
4173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
4175fi
4176
4177
4178  test -n "$ac_ct_CC" && break
4179done
4180
4181  if test "x$ac_ct_CC" = x; then
4182    CC=""
4183  else
4184    case $cross_compiling:$ac_tool_warned in
4185yes:)
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188ac_tool_warned=yes ;;
4189esac
4190    CC=$ac_ct_CC
4191  fi
4192fi
4193
4194fi
4195
4196
4197test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4199as_fn_error $? "no acceptable C compiler found in \$PATH
4200See \`config.log' for more details" "$LINENO" 5; }
4201
4202# Provide some information about the compiler.
4203$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4204set X $ac_compile
4205ac_compiler=$2
4206for ac_option in --version -v -V -qversion; do
4207  { { ac_try="$ac_compiler $ac_option >&5"
4208case "(($ac_try" in
4209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210  *) ac_try_echo=$ac_try;;
4211esac
4212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213$as_echo "$ac_try_echo"; } >&5
4214  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4215  ac_status=$?
4216  if test -s conftest.err; then
4217    sed '10a\
4218... rest of stderr output deleted ...
4219         10q' conftest.err >conftest.er1
4220    cat conftest.er1 >&5
4221  fi
4222  rm -f conftest.er1 conftest.err
4223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224  test $ac_status = 0; }
4225done
4226
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4228$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4229if ${ac_cv_c_compiler_gnu+:} false; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234
4235int
4236main ()
4237{
4238#ifndef __GNUC__
4239       choke me
4240#endif
4241
4242  ;
4243  return 0;
4244}
4245_ACEOF
4246if ac_fn_c_try_compile "$LINENO"; then :
4247  ac_compiler_gnu=yes
4248else
4249  ac_compiler_gnu=no
4250fi
4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252ac_cv_c_compiler_gnu=$ac_compiler_gnu
4253
4254fi
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4256$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4257if test $ac_compiler_gnu = yes; then
4258  GCC=yes
4259else
4260  GCC=
4261fi
4262ac_test_CFLAGS=${CFLAGS+set}
4263ac_save_CFLAGS=$CFLAGS
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4265$as_echo_n "checking whether $CC accepts -g... " >&6; }
4266if ${ac_cv_prog_cc_g+:} false; then :
4267  $as_echo_n "(cached) " >&6
4268else
4269  ac_save_c_werror_flag=$ac_c_werror_flag
4270   ac_c_werror_flag=yes
4271   ac_cv_prog_cc_g=no
4272   CFLAGS="-g"
4273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274/* end confdefs.h.  */
4275
4276int
4277main ()
4278{
4279
4280  ;
4281  return 0;
4282}
4283_ACEOF
4284if ac_fn_c_try_compile "$LINENO"; then :
4285  ac_cv_prog_cc_g=yes
4286else
4287  CFLAGS=""
4288      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289/* end confdefs.h.  */
4290
4291int
4292main ()
4293{
4294
4295  ;
4296  return 0;
4297}
4298_ACEOF
4299if ac_fn_c_try_compile "$LINENO"; then :
4300
4301else
4302  ac_c_werror_flag=$ac_save_c_werror_flag
4303	 CFLAGS="-g"
4304	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305/* end confdefs.h.  */
4306
4307int
4308main ()
4309{
4310
4311  ;
4312  return 0;
4313}
4314_ACEOF
4315if ac_fn_c_try_compile "$LINENO"; then :
4316  ac_cv_prog_cc_g=yes
4317fi
4318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319fi
4320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321fi
4322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323   ac_c_werror_flag=$ac_save_c_werror_flag
4324fi
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4326$as_echo "$ac_cv_prog_cc_g" >&6; }
4327if test "$ac_test_CFLAGS" = set; then
4328  CFLAGS=$ac_save_CFLAGS
4329elif test $ac_cv_prog_cc_g = yes; then
4330  if test "$GCC" = yes; then
4331    CFLAGS="-g -O2"
4332  else
4333    CFLAGS="-g"
4334  fi
4335else
4336  if test "$GCC" = yes; then
4337    CFLAGS="-O2"
4338  else
4339    CFLAGS=
4340  fi
4341fi
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4343$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4344if ${ac_cv_prog_cc_c89+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  ac_cv_prog_cc_c89=no
4348ac_save_CC=$CC
4349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350/* end confdefs.h.  */
4351#include <stdarg.h>
4352#include <stdio.h>
4353struct stat;
4354/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4355struct buf { int x; };
4356FILE * (*rcsopen) (struct buf *, struct stat *, int);
4357static char *e (p, i)
4358     char **p;
4359     int i;
4360{
4361  return p[i];
4362}
4363static char *f (char * (*g) (char **, int), char **p, ...)
4364{
4365  char *s;
4366  va_list v;
4367  va_start (v,p);
4368  s = g (p, va_arg (v,int));
4369  va_end (v);
4370  return s;
4371}
4372
4373/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4374   function prototypes and stuff, but not '\xHH' hex character constants.
4375   These don't provoke an error unfortunately, instead are silently treated
4376   as 'x'.  The following induces an error, until -std is added to get
4377   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4378   array size at least.  It's necessary to write '\x00'==0 to get something
4379   that's true only with -std.  */
4380int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4381
4382/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4383   inside strings and character constants.  */
4384#define FOO(x) 'x'
4385int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4386
4387int test (int i, double x);
4388struct s1 {int (*f) (int a);};
4389struct s2 {int (*f) (double a);};
4390int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4391int argc;
4392char **argv;
4393int
4394main ()
4395{
4396return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4397  ;
4398  return 0;
4399}
4400_ACEOF
4401for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4402	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4403do
4404  CC="$ac_save_CC $ac_arg"
4405  if ac_fn_c_try_compile "$LINENO"; then :
4406  ac_cv_prog_cc_c89=$ac_arg
4407fi
4408rm -f core conftest.err conftest.$ac_objext
4409  test "x$ac_cv_prog_cc_c89" != "xno" && break
4410done
4411rm -f conftest.$ac_ext
4412CC=$ac_save_CC
4413
4414fi
4415# AC_CACHE_VAL
4416case "x$ac_cv_prog_cc_c89" in
4417  x)
4418    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4419$as_echo "none needed" >&6; } ;;
4420  xno)
4421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4422$as_echo "unsupported" >&6; } ;;
4423  *)
4424    CC="$CC $ac_cv_prog_cc_c89"
4425    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4426$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4427esac
4428if test "x$ac_cv_prog_cc_c89" != xno; then :
4429
4430fi
4431
4432ac_ext=c
4433ac_cpp='$CPP $CPPFLAGS'
4434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436ac_compiler_gnu=$ac_cv_c_compiler_gnu
4437
4438ac_ext=c
4439ac_cpp='$CPP $CPPFLAGS'
4440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4444$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4445if ${am_cv_prog_cc_c_o+:} false; then :
4446  $as_echo_n "(cached) " >&6
4447else
4448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449/* end confdefs.h.  */
4450
4451int
4452main ()
4453{
4454
4455  ;
4456  return 0;
4457}
4458_ACEOF
4459  # Make sure it works both with $CC and with simple cc.
4460  # Following AC_PROG_CC_C_O, we do the test twice because some
4461  # compilers refuse to overwrite an existing .o file with -o,
4462  # though they will create one.
4463  am_cv_prog_cc_c_o=yes
4464  for am_i in 1 2; do
4465    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4466   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); } \
4470         && test -f conftest2.$ac_objext; then
4471      : OK
4472    else
4473      am_cv_prog_cc_c_o=no
4474      break
4475    fi
4476  done
4477  rm -f core conftest*
4478  unset am_i
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4481$as_echo "$am_cv_prog_cc_c_o" >&6; }
4482if test "$am_cv_prog_cc_c_o" != yes; then
4483   # Losing compiler, so override with the script.
4484   # FIXME: It is wrong to rewrite CC.
4485   # But if we don't then we get into trouble of one sort or another.
4486   # A longer-term fix would be to have automake use am__CC in this case,
4487   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4488   CC="$am_aux_dir/compile $CC"
4489fi
4490ac_ext=c
4491ac_cpp='$CPP $CPPFLAGS'
4492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495
4496
4497depcc="$CC"   am_compiler_list=
4498
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4500$as_echo_n "checking dependency style of $depcc... " >&6; }
4501if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4502  $as_echo_n "(cached) " >&6
4503else
4504  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4505  # We make a subdir and do the tests there.  Otherwise we can end up
4506  # making bogus files that we don't know about and never remove.  For
4507  # instance it was reported that on HP-UX the gcc test will end up
4508  # making a dummy file named 'D' -- because '-MD' means "put the output
4509  # in D".
4510  rm -rf conftest.dir
4511  mkdir conftest.dir
4512  # Copy depcomp to subdir because otherwise we won't find it if we're
4513  # using a relative directory.
4514  cp "$am_depcomp" conftest.dir
4515  cd conftest.dir
4516  # We will build objects and dependencies in a subdirectory because
4517  # it helps to detect inapplicable dependency modes.  For instance
4518  # both Tru64's cc and ICC support -MD to output dependencies as a
4519  # side effect of compilation, but ICC will put the dependencies in
4520  # the current directory while Tru64 will put them in the object
4521  # directory.
4522  mkdir sub
4523
4524  am_cv_CC_dependencies_compiler_type=none
4525  if test "$am_compiler_list" = ""; then
4526     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4527  fi
4528  am__universal=false
4529  case " $depcc " in #(
4530     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4531     esac
4532
4533  for depmode in $am_compiler_list; do
4534    # Setup a source with many dependencies, because some compilers
4535    # like to wrap large dependency lists on column 80 (with \), and
4536    # we should not choose a depcomp mode which is confused by this.
4537    #
4538    # We need to recreate these files for each test, as the compiler may
4539    # overwrite some of them when testing with obscure command lines.
4540    # This happens at least with the AIX C compiler.
4541    : > sub/conftest.c
4542    for i in 1 2 3 4 5 6; do
4543      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4544      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4545      # Solaris 10 /bin/sh.
4546      echo '/* dummy */' > sub/conftst$i.h
4547    done
4548    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4549
4550    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4551    # mode.  It turns out that the SunPro C++ compiler does not properly
4552    # handle '-M -o', and we need to detect this.  Also, some Intel
4553    # versions had trouble with output in subdirs.
4554    am__obj=sub/conftest.${OBJEXT-o}
4555    am__minus_obj="-o $am__obj"
4556    case $depmode in
4557    gcc)
4558      # This depmode causes a compiler race in universal mode.
4559      test "$am__universal" = false || continue
4560      ;;
4561    nosideeffect)
4562      # After this tag, mechanisms are not by side-effect, so they'll
4563      # only be used when explicitly requested.
4564      if test "x$enable_dependency_tracking" = xyes; then
4565	continue
4566      else
4567	break
4568      fi
4569      ;;
4570    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4571      # This compiler won't grok '-c -o', but also, the minuso test has
4572      # not run yet.  These depmodes are late enough in the game, and
4573      # so weak that their functioning should not be impacted.
4574      am__obj=conftest.${OBJEXT-o}
4575      am__minus_obj=
4576      ;;
4577    none) break ;;
4578    esac
4579    if depmode=$depmode \
4580       source=sub/conftest.c object=$am__obj \
4581       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4582       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4583         >/dev/null 2>conftest.err &&
4584       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4585       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4586       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4587       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4588      # icc doesn't choke on unknown options, it will just issue warnings
4589      # or remarks (even with -Werror).  So we grep stderr for any message
4590      # that says an option was ignored or not supported.
4591      # When given -MP, icc 7.0 and 7.1 complain thusly:
4592      #   icc: Command line warning: ignoring option '-M'; no argument required
4593      # The diagnosis changed in icc 8.0:
4594      #   icc: Command line remark: option '-MP' not supported
4595      if (grep 'ignoring option' conftest.err ||
4596          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4597        am_cv_CC_dependencies_compiler_type=$depmode
4598        break
4599      fi
4600    fi
4601  done
4602
4603  cd ..
4604  rm -rf conftest.dir
4605else
4606  am_cv_CC_dependencies_compiler_type=none
4607fi
4608
4609fi
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4611$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4612CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4613
4614 if
4615  test "x$enable_dependency_tracking" != xno \
4616  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4617  am__fastdepCC_TRUE=
4618  am__fastdepCC_FALSE='#'
4619else
4620  am__fastdepCC_TRUE='#'
4621  am__fastdepCC_FALSE=
4622fi
4623
4624
4625
4626ac_ext=c
4627ac_cpp='$CPP $CPPFLAGS'
4628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4632$as_echo_n "checking how to run the C preprocessor... " >&6; }
4633# On Suns, sometimes $CPP names a directory.
4634if test -n "$CPP" && test -d "$CPP"; then
4635  CPP=
4636fi
4637if test -z "$CPP"; then
4638  if ${ac_cv_prog_CPP+:} false; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641      # Double quotes because CPP needs to be expanded
4642    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4643    do
4644      ac_preproc_ok=false
4645for ac_c_preproc_warn_flag in '' yes
4646do
4647  # Use a header file that comes with gcc, so configuring glibc
4648  # with a fresh cross-compiler works.
4649  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4650  # <limits.h> exists even on freestanding compilers.
4651  # On the NeXT, cc -E runs the code through the compiler's parser,
4652  # not just through cpp. "Syntax error" is here to catch this case.
4653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654/* end confdefs.h.  */
4655#ifdef __STDC__
4656# include <limits.h>
4657#else
4658# include <assert.h>
4659#endif
4660		     Syntax error
4661_ACEOF
4662if ac_fn_c_try_cpp "$LINENO"; then :
4663
4664else
4665  # Broken: fails on valid input.
4666continue
4667fi
4668rm -f conftest.err conftest.i conftest.$ac_ext
4669
4670  # OK, works on sane cases.  Now check whether nonexistent headers
4671  # can be detected and how.
4672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h.  */
4674#include <ac_nonexistent.h>
4675_ACEOF
4676if ac_fn_c_try_cpp "$LINENO"; then :
4677  # Broken: success on invalid input.
4678continue
4679else
4680  # Passes both tests.
4681ac_preproc_ok=:
4682break
4683fi
4684rm -f conftest.err conftest.i conftest.$ac_ext
4685
4686done
4687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4688rm -f conftest.i conftest.err conftest.$ac_ext
4689if $ac_preproc_ok; then :
4690  break
4691fi
4692
4693    done
4694    ac_cv_prog_CPP=$CPP
4695
4696fi
4697  CPP=$ac_cv_prog_CPP
4698else
4699  ac_cv_prog_CPP=$CPP
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4702$as_echo "$CPP" >&6; }
4703ac_preproc_ok=false
4704for ac_c_preproc_warn_flag in '' yes
4705do
4706  # Use a header file that comes with gcc, so configuring glibc
4707  # with a fresh cross-compiler works.
4708  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709  # <limits.h> exists even on freestanding compilers.
4710  # On the NeXT, cc -E runs the code through the compiler's parser,
4711  # not just through cpp. "Syntax error" is here to catch this case.
4712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713/* end confdefs.h.  */
4714#ifdef __STDC__
4715# include <limits.h>
4716#else
4717# include <assert.h>
4718#endif
4719		     Syntax error
4720_ACEOF
4721if ac_fn_c_try_cpp "$LINENO"; then :
4722
4723else
4724  # Broken: fails on valid input.
4725continue
4726fi
4727rm -f conftest.err conftest.i conftest.$ac_ext
4728
4729  # OK, works on sane cases.  Now check whether nonexistent headers
4730  # can be detected and how.
4731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732/* end confdefs.h.  */
4733#include <ac_nonexistent.h>
4734_ACEOF
4735if ac_fn_c_try_cpp "$LINENO"; then :
4736  # Broken: success on invalid input.
4737continue
4738else
4739  # Passes both tests.
4740ac_preproc_ok=:
4741break
4742fi
4743rm -f conftest.err conftest.i conftest.$ac_ext
4744
4745done
4746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4747rm -f conftest.i conftest.err conftest.$ac_ext
4748if $ac_preproc_ok; then :
4749
4750else
4751  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4753as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4754See \`config.log' for more details" "$LINENO" 5; }
4755fi
4756
4757ac_ext=c
4758ac_cpp='$CPP $CPPFLAGS'
4759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762
4763
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4765$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4766if ${ac_cv_path_GREP+:} false; then :
4767  $as_echo_n "(cached) " >&6
4768else
4769  if test -z "$GREP"; then
4770  ac_path_GREP_found=false
4771  # Loop through the user's path and test for each of PROGNAME-LIST
4772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4774do
4775  IFS=$as_save_IFS
4776  test -z "$as_dir" && as_dir=.
4777    for ac_prog in grep ggrep; do
4778    for ac_exec_ext in '' $ac_executable_extensions; do
4779      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4780      as_fn_executable_p "$ac_path_GREP" || continue
4781# Check for GNU ac_path_GREP and select it if it is found.
4782  # Check for GNU $ac_path_GREP
4783case `"$ac_path_GREP" --version 2>&1` in
4784*GNU*)
4785  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4786*)
4787  ac_count=0
4788  $as_echo_n 0123456789 >"conftest.in"
4789  while :
4790  do
4791    cat "conftest.in" "conftest.in" >"conftest.tmp"
4792    mv "conftest.tmp" "conftest.in"
4793    cp "conftest.in" "conftest.nl"
4794    $as_echo 'GREP' >> "conftest.nl"
4795    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4796    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4797    as_fn_arith $ac_count + 1 && ac_count=$as_val
4798    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4799      # Best one so far, save it but keep looking for a better one
4800      ac_cv_path_GREP="$ac_path_GREP"
4801      ac_path_GREP_max=$ac_count
4802    fi
4803    # 10*(2^10) chars as input seems more than enough
4804    test $ac_count -gt 10 && break
4805  done
4806  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4807esac
4808
4809      $ac_path_GREP_found && break 3
4810    done
4811  done
4812  done
4813IFS=$as_save_IFS
4814  if test -z "$ac_cv_path_GREP"; then
4815    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4816  fi
4817else
4818  ac_cv_path_GREP=$GREP
4819fi
4820
4821fi
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4823$as_echo "$ac_cv_path_GREP" >&6; }
4824 GREP="$ac_cv_path_GREP"
4825
4826
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4828$as_echo_n "checking for egrep... " >&6; }
4829if ${ac_cv_path_EGREP+:} false; then :
4830  $as_echo_n "(cached) " >&6
4831else
4832  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4833   then ac_cv_path_EGREP="$GREP -E"
4834   else
4835     if test -z "$EGREP"; then
4836  ac_path_EGREP_found=false
4837  # Loop through the user's path and test for each of PROGNAME-LIST
4838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4840do
4841  IFS=$as_save_IFS
4842  test -z "$as_dir" && as_dir=.
4843    for ac_prog in egrep; do
4844    for ac_exec_ext in '' $ac_executable_extensions; do
4845      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4846      as_fn_executable_p "$ac_path_EGREP" || continue
4847# Check for GNU ac_path_EGREP and select it if it is found.
4848  # Check for GNU $ac_path_EGREP
4849case `"$ac_path_EGREP" --version 2>&1` in
4850*GNU*)
4851  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4852*)
4853  ac_count=0
4854  $as_echo_n 0123456789 >"conftest.in"
4855  while :
4856  do
4857    cat "conftest.in" "conftest.in" >"conftest.tmp"
4858    mv "conftest.tmp" "conftest.in"
4859    cp "conftest.in" "conftest.nl"
4860    $as_echo 'EGREP' >> "conftest.nl"
4861    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4862    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4863    as_fn_arith $ac_count + 1 && ac_count=$as_val
4864    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4865      # Best one so far, save it but keep looking for a better one
4866      ac_cv_path_EGREP="$ac_path_EGREP"
4867      ac_path_EGREP_max=$ac_count
4868    fi
4869    # 10*(2^10) chars as input seems more than enough
4870    test $ac_count -gt 10 && break
4871  done
4872  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873esac
4874
4875      $ac_path_EGREP_found && break 3
4876    done
4877  done
4878  done
4879IFS=$as_save_IFS
4880  if test -z "$ac_cv_path_EGREP"; then
4881    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4882  fi
4883else
4884  ac_cv_path_EGREP=$EGREP
4885fi
4886
4887   fi
4888fi
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4890$as_echo "$ac_cv_path_EGREP" >&6; }
4891 EGREP="$ac_cv_path_EGREP"
4892
4893
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4895$as_echo_n "checking for ANSI C header files... " >&6; }
4896if ${ac_cv_header_stdc+:} false; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h.  */
4901#include <stdlib.h>
4902#include <stdarg.h>
4903#include <string.h>
4904#include <float.h>
4905
4906int
4907main ()
4908{
4909
4910  ;
4911  return 0;
4912}
4913_ACEOF
4914if ac_fn_c_try_compile "$LINENO"; then :
4915  ac_cv_header_stdc=yes
4916else
4917  ac_cv_header_stdc=no
4918fi
4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920
4921if test $ac_cv_header_stdc = yes; then
4922  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h.  */
4925#include <string.h>
4926
4927_ACEOF
4928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929  $EGREP "memchr" >/dev/null 2>&1; then :
4930
4931else
4932  ac_cv_header_stdc=no
4933fi
4934rm -f conftest*
4935
4936fi
4937
4938if test $ac_cv_header_stdc = yes; then
4939  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941/* end confdefs.h.  */
4942#include <stdlib.h>
4943
4944_ACEOF
4945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4946  $EGREP "free" >/dev/null 2>&1; then :
4947
4948else
4949  ac_cv_header_stdc=no
4950fi
4951rm -f conftest*
4952
4953fi
4954
4955if test $ac_cv_header_stdc = yes; then
4956  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4957  if test "$cross_compiling" = yes; then :
4958  :
4959else
4960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961/* end confdefs.h.  */
4962#include <ctype.h>
4963#include <stdlib.h>
4964#if ((' ' & 0x0FF) == 0x020)
4965# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4966# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4967#else
4968# define ISLOWER(c) \
4969		   (('a' <= (c) && (c) <= 'i') \
4970		     || ('j' <= (c) && (c) <= 'r') \
4971		     || ('s' <= (c) && (c) <= 'z'))
4972# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4973#endif
4974
4975#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4976int
4977main ()
4978{
4979  int i;
4980  for (i = 0; i < 256; i++)
4981    if (XOR (islower (i), ISLOWER (i))
4982	|| toupper (i) != TOUPPER (i))
4983      return 2;
4984  return 0;
4985}
4986_ACEOF
4987if ac_fn_c_try_run "$LINENO"; then :
4988
4989else
4990  ac_cv_header_stdc=no
4991fi
4992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4993  conftest.$ac_objext conftest.beam conftest.$ac_ext
4994fi
4995
4996fi
4997fi
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4999$as_echo "$ac_cv_header_stdc" >&6; }
5000if test $ac_cv_header_stdc = yes; then
5001
5002$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5003
5004fi
5005
5006# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5007for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5008		  inttypes.h stdint.h unistd.h
5009do :
5010  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5011ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5012"
5013if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5014  cat >>confdefs.h <<_ACEOF
5015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5016_ACEOF
5017
5018fi
5019
5020done
5021
5022
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5024$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5025if ${ac_cv_c_bigendian+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  ac_cv_c_bigendian=unknown
5029    # See if we're dealing with a universal compiler.
5030    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h.  */
5032#ifndef __APPLE_CC__
5033	       not a universal capable compiler
5034	     #endif
5035	     typedef int dummy;
5036
5037_ACEOF
5038if ac_fn_c_try_compile "$LINENO"; then :
5039
5040	# Check for potential -arch flags.  It is not universal unless
5041	# there are at least two -arch flags with different values.
5042	ac_arch=
5043	ac_prev=
5044	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5045	 if test -n "$ac_prev"; then
5046	   case $ac_word in
5047	     i?86 | x86_64 | ppc | ppc64)
5048	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5049		 ac_arch=$ac_word
5050	       else
5051		 ac_cv_c_bigendian=universal
5052		 break
5053	       fi
5054	       ;;
5055	   esac
5056	   ac_prev=
5057	 elif test "x$ac_word" = "x-arch"; then
5058	   ac_prev=arch
5059	 fi
5060       done
5061fi
5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063    if test $ac_cv_c_bigendian = unknown; then
5064      # See if sys/param.h defines the BYTE_ORDER macro.
5065      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h.  */
5067#include <sys/types.h>
5068	     #include <sys/param.h>
5069
5070int
5071main ()
5072{
5073#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5074		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5075		     && LITTLE_ENDIAN)
5076	      bogus endian macros
5077	     #endif
5078
5079  ;
5080  return 0;
5081}
5082_ACEOF
5083if ac_fn_c_try_compile "$LINENO"; then :
5084  # It does; now see whether it defined to BIG_ENDIAN or not.
5085	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h.  */
5087#include <sys/types.h>
5088		#include <sys/param.h>
5089
5090int
5091main ()
5092{
5093#if BYTE_ORDER != BIG_ENDIAN
5094		 not big endian
5095		#endif
5096
5097  ;
5098  return 0;
5099}
5100_ACEOF
5101if ac_fn_c_try_compile "$LINENO"; then :
5102  ac_cv_c_bigendian=yes
5103else
5104  ac_cv_c_bigendian=no
5105fi
5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107fi
5108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109    fi
5110    if test $ac_cv_c_bigendian = unknown; then
5111      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5112      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113/* end confdefs.h.  */
5114#include <limits.h>
5115
5116int
5117main ()
5118{
5119#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5120	      bogus endian macros
5121	     #endif
5122
5123  ;
5124  return 0;
5125}
5126_ACEOF
5127if ac_fn_c_try_compile "$LINENO"; then :
5128  # It does; now see whether it defined to _BIG_ENDIAN or not.
5129	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130/* end confdefs.h.  */
5131#include <limits.h>
5132
5133int
5134main ()
5135{
5136#ifndef _BIG_ENDIAN
5137		 not big endian
5138		#endif
5139
5140  ;
5141  return 0;
5142}
5143_ACEOF
5144if ac_fn_c_try_compile "$LINENO"; then :
5145  ac_cv_c_bigendian=yes
5146else
5147  ac_cv_c_bigendian=no
5148fi
5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150fi
5151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152    fi
5153    if test $ac_cv_c_bigendian = unknown; then
5154      # Compile a test program.
5155      if test "$cross_compiling" = yes; then :
5156  # Try to guess by grepping values from an object file.
5157	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159short int ascii_mm[] =
5160		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5161		short int ascii_ii[] =
5162		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5163		int use_ascii (int i) {
5164		  return ascii_mm[i] + ascii_ii[i];
5165		}
5166		short int ebcdic_ii[] =
5167		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5168		short int ebcdic_mm[] =
5169		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5170		int use_ebcdic (int i) {
5171		  return ebcdic_mm[i] + ebcdic_ii[i];
5172		}
5173		extern int foo;
5174
5175int
5176main ()
5177{
5178return use_ascii (foo) == use_ebcdic (foo);
5179  ;
5180  return 0;
5181}
5182_ACEOF
5183if ac_fn_c_try_compile "$LINENO"; then :
5184  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5185	      ac_cv_c_bigendian=yes
5186	    fi
5187	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5188	      if test "$ac_cv_c_bigendian" = unknown; then
5189		ac_cv_c_bigendian=no
5190	      else
5191		# finding both strings is unlikely to happen, but who knows?
5192		ac_cv_c_bigendian=unknown
5193	      fi
5194	    fi
5195fi
5196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197else
5198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h.  */
5200$ac_includes_default
5201int
5202main ()
5203{
5204
5205	     /* Are we little or big endian?  From Harbison&Steele.  */
5206	     union
5207	     {
5208	       long int l;
5209	       char c[sizeof (long int)];
5210	     } u;
5211	     u.l = 1;
5212	     return u.c[sizeof (long int) - 1] == 1;
5213
5214  ;
5215  return 0;
5216}
5217_ACEOF
5218if ac_fn_c_try_run "$LINENO"; then :
5219  ac_cv_c_bigendian=no
5220else
5221  ac_cv_c_bigendian=yes
5222fi
5223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5224  conftest.$ac_objext conftest.beam conftest.$ac_ext
5225fi
5226
5227    fi
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5230$as_echo "$ac_cv_c_bigendian" >&6; }
5231 case $ac_cv_c_bigendian in #(
5232   yes)
5233     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5234;; #(
5235   no)
5236      ;; #(
5237   universal)
5238
5239$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5240
5241     ;; #(
5242   *)
5243     as_fn_error $? "unknown endianness
5244 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5245 esac
5246
5247if test -n "$ac_tool_prefix"; then
5248  for ac_prog in ar lib "link -lib"
5249  do
5250    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
5254if ${ac_cv_prog_AR+:} false; then :
5255  $as_echo_n "(cached) " >&6
5256else
5257  if test -n "$AR"; then
5258  ac_cv_prog_AR="$AR" # Let the user override the test.
5259else
5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263  IFS=$as_save_IFS
5264  test -z "$as_dir" && as_dir=.
5265    for ac_exec_ext in '' $ac_executable_extensions; do
5266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269    break 2
5270  fi
5271done
5272  done
5273IFS=$as_save_IFS
5274
5275fi
5276fi
5277AR=$ac_cv_prog_AR
5278if test -n "$AR"; then
5279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5280$as_echo "$AR" >&6; }
5281else
5282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
5284fi
5285
5286
5287    test -n "$AR" && break
5288  done
5289fi
5290if test -z "$AR"; then
5291  ac_ct_AR=$AR
5292  for ac_prog in ar lib "link -lib"
5293do
5294  # Extract the first word of "$ac_prog", so it can be a program name with args.
5295set dummy $ac_prog; ac_word=$2
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297$as_echo_n "checking for $ac_word... " >&6; }
5298if ${ac_cv_prog_ac_ct_AR+:} false; then :
5299  $as_echo_n "(cached) " >&6
5300else
5301  if test -n "$ac_ct_AR"; then
5302  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5303else
5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307  IFS=$as_save_IFS
5308  test -z "$as_dir" && as_dir=.
5309    for ac_exec_ext in '' $ac_executable_extensions; do
5310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311    ac_cv_prog_ac_ct_AR="$ac_prog"
5312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313    break 2
5314  fi
5315done
5316  done
5317IFS=$as_save_IFS
5318
5319fi
5320fi
5321ac_ct_AR=$ac_cv_prog_ac_ct_AR
5322if test -n "$ac_ct_AR"; then
5323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5324$as_echo "$ac_ct_AR" >&6; }
5325else
5326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327$as_echo "no" >&6; }
5328fi
5329
5330
5331  test -n "$ac_ct_AR" && break
5332done
5333
5334  if test "x$ac_ct_AR" = x; then
5335    AR="false"
5336  else
5337    case $cross_compiling:$ac_tool_warned in
5338yes:)
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5341ac_tool_warned=yes ;;
5342esac
5343    AR=$ac_ct_AR
5344  fi
5345fi
5346
5347: ${AR=ar}
5348
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5350$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5351if ${am_cv_ar_interface+:} false; then :
5352  $as_echo_n "(cached) " >&6
5353else
5354  ac_ext=c
5355ac_cpp='$CPP $CPPFLAGS'
5356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359
5360   am_cv_ar_interface=ar
5361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362/* end confdefs.h.  */
5363int some_variable = 0;
5364_ACEOF
5365if ac_fn_c_try_compile "$LINENO"; then :
5366  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5367      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5368  (eval $am_ar_try) 2>&5
5369  ac_status=$?
5370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5371  test $ac_status = 0; }
5372      if test "$ac_status" -eq 0; then
5373        am_cv_ar_interface=ar
5374      else
5375        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5376        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5377  (eval $am_ar_try) 2>&5
5378  ac_status=$?
5379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5380  test $ac_status = 0; }
5381        if test "$ac_status" -eq 0; then
5382          am_cv_ar_interface=lib
5383        else
5384          am_cv_ar_interface=unknown
5385        fi
5386      fi
5387      rm -f conftest.lib libconftest.a
5388
5389fi
5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391   ac_ext=c
5392ac_cpp='$CPP $CPPFLAGS'
5393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5399$as_echo "$am_cv_ar_interface" >&6; }
5400
5401case $am_cv_ar_interface in
5402ar)
5403  ;;
5404lib)
5405  # Microsoft lib, so override with the ar-lib wrapper script.
5406  # FIXME: It is wrong to rewrite AR.
5407  # But if we don't then we get into trouble of one sort or another.
5408  # A longer-term fix would be to have automake use am__AR in this case,
5409  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5410  # similar.
5411  AR="$am_aux_dir/ar-lib $AR"
5412  ;;
5413unknown)
5414  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5415  ;;
5416esac
5417
5418
5419if test "$cxxset" != set; then
5420# don't use the default -O2 -g because -g bloats the C++ binaries too much
5421  CXXFLAGS="-O2"
5422fi
5423case "$target_os" in
5424solaris*)
5425  CXXFLAGS="$CXXFLAGS -include llvm/include/llvm/System/Solaris.h"
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: Building on Solaris" >&5
5427$as_echo "$as_me: Building on Solaris" >&6;}
5428  ;;
5429esac
5430
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL installation" >&5
5432$as_echo_n "checking for OpenSSL installation... " >&6; }
5433
5434
5435# Check whether --with-openssl was given.
5436if test "${with_openssl+set}" = set; then :
5437  withval=$with_openssl;
5438if test "$withval"; then
5439    LIBSSL_HOME="$withval"
5440fi
5441
5442else
5443
5444LIBSSL_HOME=/usr/local
5445if test ! -f "$LIBSSL_HOME/include/openssl/ssl.h"
5446then
5447    LIBSSL_HOME=/usr
5448fi
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSSL_HOME" >&5
5450$as_echo "$LIBSSL_HOME" >&6; }
5451
5452fi
5453
5454
5455if test ! -f "$LIBSSL_HOME/include/openssl/ssl.h"
5456then
5457    as_fn_error $? "OpenSSL not found." "$LINENO" 5
5458fi
5459
5460save_LDFLAGS="$LDFLAGS"
5461save_CFLAGS="$CFLAGS"
5462save_LIBS="$LIBS"
5463
5464SSL_LIBS="$LIBS -lssl -lcrypto -lz"
5465LIBS="$LIBS $SSL_LIBS"
5466
5467if test "$LIBSSL_HOME" != "/usr"; then
5468    SSL_LDFLAGS="-L$LIBSSL_HOME/lib"
5469    SSL_CPPFLAGS="-I$LIBSSL_HOME/include"
5470    LDFLAGS="-L$LIBSSL_HOME/lib"
5471    CFLAGS="$SSL_CPPFLAGS"
5472else
5473    SSL_LDFLAGS=""
5474    SSL_CPPFLAGS=""
5475fi
5476
5477have_ssl="no"
5478have_crypto="no"
5479
5480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481/* end confdefs.h.  */
5482#include <openssl/bn.h>
5483int
5484main ()
5485{
5486BN_CTX_new();
5487  ;
5488  return 0;
5489}
5490_ACEOF
5491if ac_fn_c_try_link "$LINENO"; then :
5492  have_ssl="yes";
5493else
5494  as_fn_error $? "Your OpenSSL installation is misconfigured or missing" "$LINENO" 5
5495fi
5496rm -f core conftest.err conftest.$ac_objext \
5497    conftest$ac_exeext conftest.$ac_ext
5498
5499
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
5501$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
5502if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
5503  $as_echo_n "(cached) " >&6
5504else
5505  ac_check_lib_save_LIBS=$LIBS
5506LIBS="-lcrypto -lcrypto -lz $LIBS"
5507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508/* end confdefs.h.  */
5509
5510/* Override any GCC internal prototype to avoid an error.
5511   Use char because int might match the return type of a GCC
5512   builtin and then its argument prototype would still apply.  */
5513#ifdef __cplusplus
5514extern "C"
5515#endif
5516char CRYPTO_free ();
5517int
5518main ()
5519{
5520return CRYPTO_free ();
5521  ;
5522  return 0;
5523}
5524_ACEOF
5525if ac_fn_c_try_link "$LINENO"; then :
5526  ac_cv_lib_crypto_CRYPTO_free=yes
5527else
5528  ac_cv_lib_crypto_CRYPTO_free=no
5529fi
5530rm -f core conftest.err conftest.$ac_objext \
5531    conftest$ac_exeext conftest.$ac_ext
5532LIBS=$ac_check_lib_save_LIBS
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
5535$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
5536if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
5537  have_crypto="yes"
5538else
5539  as_fn_error $? "Your OpenSSL installation is misconfigured or missing" "$LINENO" 5
5540fi
5541
5542
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_new in -lssl" >&5
5544$as_echo_n "checking for X509_VERIFY_PARAM_new in -lssl... " >&6; }
5545if ${ac_cv_lib_ssl_X509_VERIFY_PARAM_new+:} false; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548  ac_check_lib_save_LIBS=$LIBS
5549LIBS="-lssl -lcrypto -lz $LIBS"
5550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h.  */
5552
5553/* Override any GCC internal prototype to avoid an error.
5554   Use char because int might match the return type of a GCC
5555   builtin and then its argument prototype would still apply.  */
5556#ifdef __cplusplus
5557extern "C"
5558#endif
5559char X509_VERIFY_PARAM_new ();
5560int
5561main ()
5562{
5563return X509_VERIFY_PARAM_new ();
5564  ;
5565  return 0;
5566}
5567_ACEOF
5568if ac_fn_c_try_link "$LINENO"; then :
5569  ac_cv_lib_ssl_X509_VERIFY_PARAM_new=yes
5570else
5571  ac_cv_lib_ssl_X509_VERIFY_PARAM_new=no
5572fi
5573rm -f core conftest.err conftest.$ac_objext \
5574    conftest$ac_exeext conftest.$ac_ext
5575LIBS=$ac_check_lib_save_LIBS
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_X509_VERIFY_PARAM_new" >&5
5578$as_echo "$ac_cv_lib_ssl_X509_VERIFY_PARAM_new" >&6; }
5579if test "x$ac_cv_lib_ssl_X509_VERIFY_PARAM_new" = xyes; then :
5580  cat >>confdefs.h <<_ACEOF
5581#define HAVE_LIBSSL 1
5582_ACEOF
5583
5584  LIBS="-lssl $LIBS"
5585
5586else
5587  as_fn_error $? "Your OpenSSL installation is missing the X509_VERIFY_PARAM function. Please upgrade to a more recent version of OpenSSL." "$LINENO" 5
5588fi
5589
5590
5591LDFLAGS="$save_LDFLAGS"
5592CFLAGS="$save_CFLAGS"
5593LIBS="$save_LIBS"
5594
5595SSL_CPPFLAGS=$SSL_CPPFLAGS
5596
5597
5598
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5600$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5601    # Check whether --enable-maintainer-mode was given.
5602if test "${enable_maintainer_mode+set}" = set; then :
5603  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5604else
5605  USE_MAINTAINER_MODE=no
5606fi
5607
5608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5609$as_echo "$USE_MAINTAINER_MODE" >&6; }
5610   if test $USE_MAINTAINER_MODE = yes; then
5611  MAINTAINER_MODE_TRUE=
5612  MAINTAINER_MODE_FALSE='#'
5613else
5614  MAINTAINER_MODE_TRUE='#'
5615  MAINTAINER_MODE_FALSE=
5616fi
5617
5618  MAINT=$MAINTAINER_MODE_TRUE
5619
5620
5621case `pwd` in
5622  *\ * | *\	*)
5623    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5624$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5625esac
5626
5627
5628
5629macro_version='2.4.6'
5630macro_revision='2.4.6'
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644ltmain=$ac_aux_dir/ltmain.sh
5645
5646# Backslashify metacharacters that are still active within
5647# double-quoted strings.
5648sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5649
5650# Same as above, but do not quote variable references.
5651double_quote_subst='s/\(["`\\]\)/\\\1/g'
5652
5653# Sed substitution to delay expansion of an escaped shell variable in a
5654# double_quote_subst'ed string.
5655delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5656
5657# Sed substitution to delay expansion of an escaped single quote.
5658delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5659
5660# Sed substitution to avoid accidental globbing in evaled expressions
5661no_glob_subst='s/\*/\\\*/g'
5662
5663ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5664ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5665ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5666
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5668$as_echo_n "checking how to print strings... " >&6; }
5669# Test print first, because it will be a builtin if present.
5670if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5671   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5672  ECHO='print -r --'
5673elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5674  ECHO='printf %s\n'
5675else
5676  # Use this function as a fallback that always works.
5677  func_fallback_echo ()
5678  {
5679    eval 'cat <<_LTECHO_EOF
5680$1
5681_LTECHO_EOF'
5682  }
5683  ECHO='func_fallback_echo'
5684fi
5685
5686# func_echo_all arg...
5687# Invoke $ECHO with all args, space-separated.
5688func_echo_all ()
5689{
5690    $ECHO ""
5691}
5692
5693case $ECHO in
5694  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5695$as_echo "printf" >&6; } ;;
5696  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5697$as_echo "print -r" >&6; } ;;
5698  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5699$as_echo "cat" >&6; } ;;
5700esac
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5716$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5717if ${ac_cv_path_SED+:} false; then :
5718  $as_echo_n "(cached) " >&6
5719else
5720            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5721     for ac_i in 1 2 3 4 5 6 7; do
5722       ac_script="$ac_script$as_nl$ac_script"
5723     done
5724     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5725     { ac_script=; unset ac_script;}
5726     if test -z "$SED"; then
5727  ac_path_SED_found=false
5728  # Loop through the user's path and test for each of PROGNAME-LIST
5729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH
5731do
5732  IFS=$as_save_IFS
5733  test -z "$as_dir" && as_dir=.
5734    for ac_prog in sed gsed; do
5735    for ac_exec_ext in '' $ac_executable_extensions; do
5736      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5737      as_fn_executable_p "$ac_path_SED" || continue
5738# Check for GNU ac_path_SED and select it if it is found.
5739  # Check for GNU $ac_path_SED
5740case `"$ac_path_SED" --version 2>&1` in
5741*GNU*)
5742  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5743*)
5744  ac_count=0
5745  $as_echo_n 0123456789 >"conftest.in"
5746  while :
5747  do
5748    cat "conftest.in" "conftest.in" >"conftest.tmp"
5749    mv "conftest.tmp" "conftest.in"
5750    cp "conftest.in" "conftest.nl"
5751    $as_echo '' >> "conftest.nl"
5752    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5753    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5754    as_fn_arith $ac_count + 1 && ac_count=$as_val
5755    if test $ac_count -gt ${ac_path_SED_max-0}; then
5756      # Best one so far, save it but keep looking for a better one
5757      ac_cv_path_SED="$ac_path_SED"
5758      ac_path_SED_max=$ac_count
5759    fi
5760    # 10*(2^10) chars as input seems more than enough
5761    test $ac_count -gt 10 && break
5762  done
5763  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5764esac
5765
5766      $ac_path_SED_found && break 3
5767    done
5768  done
5769  done
5770IFS=$as_save_IFS
5771  if test -z "$ac_cv_path_SED"; then
5772    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5773  fi
5774else
5775  ac_cv_path_SED=$SED
5776fi
5777
5778fi
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5780$as_echo "$ac_cv_path_SED" >&6; }
5781 SED="$ac_cv_path_SED"
5782  rm -f conftest.sed
5783
5784test -z "$SED" && SED=sed
5785Xsed="$SED -e 1s/^X//"
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5798$as_echo_n "checking for fgrep... " >&6; }
5799if ${ac_cv_path_FGREP+:} false; then :
5800  $as_echo_n "(cached) " >&6
5801else
5802  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5803   then ac_cv_path_FGREP="$GREP -F"
5804   else
5805     if test -z "$FGREP"; then
5806  ac_path_FGREP_found=false
5807  # Loop through the user's path and test for each of PROGNAME-LIST
5808  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5810do
5811  IFS=$as_save_IFS
5812  test -z "$as_dir" && as_dir=.
5813    for ac_prog in fgrep; do
5814    for ac_exec_ext in '' $ac_executable_extensions; do
5815      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5816      as_fn_executable_p "$ac_path_FGREP" || continue
5817# Check for GNU ac_path_FGREP and select it if it is found.
5818  # Check for GNU $ac_path_FGREP
5819case `"$ac_path_FGREP" --version 2>&1` in
5820*GNU*)
5821  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5822*)
5823  ac_count=0
5824  $as_echo_n 0123456789 >"conftest.in"
5825  while :
5826  do
5827    cat "conftest.in" "conftest.in" >"conftest.tmp"
5828    mv "conftest.tmp" "conftest.in"
5829    cp "conftest.in" "conftest.nl"
5830    $as_echo 'FGREP' >> "conftest.nl"
5831    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5832    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5833    as_fn_arith $ac_count + 1 && ac_count=$as_val
5834    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5835      # Best one so far, save it but keep looking for a better one
5836      ac_cv_path_FGREP="$ac_path_FGREP"
5837      ac_path_FGREP_max=$ac_count
5838    fi
5839    # 10*(2^10) chars as input seems more than enough
5840    test $ac_count -gt 10 && break
5841  done
5842  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5843esac
5844
5845      $ac_path_FGREP_found && break 3
5846    done
5847  done
5848  done
5849IFS=$as_save_IFS
5850  if test -z "$ac_cv_path_FGREP"; then
5851    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5852  fi
5853else
5854  ac_cv_path_FGREP=$FGREP
5855fi
5856
5857   fi
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5860$as_echo "$ac_cv_path_FGREP" >&6; }
5861 FGREP="$ac_cv_path_FGREP"
5862
5863
5864test -z "$GREP" && GREP=grep
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884# Check whether --with-gnu-ld was given.
5885if test "${with_gnu_ld+set}" = set; then :
5886  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5887else
5888  with_gnu_ld=no
5889fi
5890
5891ac_prog=ld
5892if test yes = "$GCC"; then
5893  # Check if gcc -print-prog-name=ld gives a path.
5894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5895$as_echo_n "checking for ld used by $CC... " >&6; }
5896  case $host in
5897  *-*-mingw*)
5898    # gcc leaves a trailing carriage return, which upsets mingw
5899    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5900  *)
5901    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5902  esac
5903  case $ac_prog in
5904    # Accept absolute paths.
5905    [\\/]* | ?:[\\/]*)
5906      re_direlt='/[^/][^/]*/\.\./'
5907      # Canonicalize the pathname of ld
5908      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5909      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5910	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5911      done
5912      test -z "$LD" && LD=$ac_prog
5913      ;;
5914  "")
5915    # If it fails, then pretend we aren't using GCC.
5916    ac_prog=ld
5917    ;;
5918  *)
5919    # If it is relative, then search for the first ld in PATH.
5920    with_gnu_ld=unknown
5921    ;;
5922  esac
5923elif test yes = "$with_gnu_ld"; then
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5925$as_echo_n "checking for GNU ld... " >&6; }
5926else
5927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5928$as_echo_n "checking for non-GNU ld... " >&6; }
5929fi
5930if ${lt_cv_path_LD+:} false; then :
5931  $as_echo_n "(cached) " >&6
5932else
5933  if test -z "$LD"; then
5934  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5935  for ac_dir in $PATH; do
5936    IFS=$lt_save_ifs
5937    test -z "$ac_dir" && ac_dir=.
5938    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5939      lt_cv_path_LD=$ac_dir/$ac_prog
5940      # Check to see if the program is GNU ld.  I'd rather use --version,
5941      # but apparently some variants of GNU ld only accept -v.
5942      # Break only if it was the GNU/non-GNU ld that we prefer.
5943      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5944      *GNU* | *'with BFD'*)
5945	test no != "$with_gnu_ld" && break
5946	;;
5947      *)
5948	test yes != "$with_gnu_ld" && break
5949	;;
5950      esac
5951    fi
5952  done
5953  IFS=$lt_save_ifs
5954else
5955  lt_cv_path_LD=$LD # Let the user override the test with a path.
5956fi
5957fi
5958
5959LD=$lt_cv_path_LD
5960if test -n "$LD"; then
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5962$as_echo "$LD" >&6; }
5963else
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965$as_echo "no" >&6; }
5966fi
5967test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5969$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5970if ${lt_cv_prog_gnu_ld+:} false; then :
5971  $as_echo_n "(cached) " >&6
5972else
5973  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5974case `$LD -v 2>&1 </dev/null` in
5975*GNU* | *'with BFD'*)
5976  lt_cv_prog_gnu_ld=yes
5977  ;;
5978*)
5979  lt_cv_prog_gnu_ld=no
5980  ;;
5981esac
5982fi
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5984$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5985with_gnu_ld=$lt_cv_prog_gnu_ld
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5996$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5997if ${lt_cv_path_NM+:} false; then :
5998  $as_echo_n "(cached) " >&6
5999else
6000  if test -n "$NM"; then
6001  # Let the user override the test.
6002  lt_cv_path_NM=$NM
6003else
6004  lt_nm_to_check=${ac_tool_prefix}nm
6005  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6006    lt_nm_to_check="$lt_nm_to_check nm"
6007  fi
6008  for lt_tmp_nm in $lt_nm_to_check; do
6009    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6010    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6011      IFS=$lt_save_ifs
6012      test -z "$ac_dir" && ac_dir=.
6013      tmp_nm=$ac_dir/$lt_tmp_nm
6014      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6015	# Check to see if the nm accepts a BSD-compat flag.
6016	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6017	#   nm: unknown option "B" ignored
6018	# Tru64's nm complains that /dev/null is an invalid object file
6019	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6020	case $build_os in
6021	mingw*) lt_bad_file=conftest.nm/nofile ;;
6022	*) lt_bad_file=/dev/null ;;
6023	esac
6024	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6025	*$lt_bad_file* | *'Invalid file or object type'*)
6026	  lt_cv_path_NM="$tmp_nm -B"
6027	  break 2
6028	  ;;
6029	*)
6030	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6031	  */dev/null*)
6032	    lt_cv_path_NM="$tmp_nm -p"
6033	    break 2
6034	    ;;
6035	  *)
6036	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6037	    continue # so that we can try to find one that supports BSD flags
6038	    ;;
6039	  esac
6040	  ;;
6041	esac
6042      fi
6043    done
6044    IFS=$lt_save_ifs
6045  done
6046  : ${lt_cv_path_NM=no}
6047fi
6048fi
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6050$as_echo "$lt_cv_path_NM" >&6; }
6051if test no != "$lt_cv_path_NM"; then
6052  NM=$lt_cv_path_NM
6053else
6054  # Didn't find any BSD compatible name lister, look for dumpbin.
6055  if test -n "$DUMPBIN"; then :
6056    # Let the user override the test.
6057  else
6058    if test -n "$ac_tool_prefix"; then
6059  for ac_prog in dumpbin "link -dump"
6060  do
6061    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064$as_echo_n "checking for $ac_word... " >&6; }
6065if ${ac_cv_prog_DUMPBIN+:} false; then :
6066  $as_echo_n "(cached) " >&6
6067else
6068  if test -n "$DUMPBIN"; then
6069  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6070else
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074  IFS=$as_save_IFS
6075  test -z "$as_dir" && as_dir=.
6076    for ac_exec_ext in '' $ac_executable_extensions; do
6077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080    break 2
6081  fi
6082done
6083  done
6084IFS=$as_save_IFS
6085
6086fi
6087fi
6088DUMPBIN=$ac_cv_prog_DUMPBIN
6089if test -n "$DUMPBIN"; then
6090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6091$as_echo "$DUMPBIN" >&6; }
6092else
6093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094$as_echo "no" >&6; }
6095fi
6096
6097
6098    test -n "$DUMPBIN" && break
6099  done
6100fi
6101if test -z "$DUMPBIN"; then
6102  ac_ct_DUMPBIN=$DUMPBIN
6103  for ac_prog in dumpbin "link -dump"
6104do
6105  # Extract the first word of "$ac_prog", so it can be a program name with args.
6106set dummy $ac_prog; ac_word=$2
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108$as_echo_n "checking for $ac_word... " >&6; }
6109if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6110  $as_echo_n "(cached) " >&6
6111else
6112  if test -n "$ac_ct_DUMPBIN"; then
6113  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118  IFS=$as_save_IFS
6119  test -z "$as_dir" && as_dir=.
6120    for ac_exec_ext in '' $ac_executable_extensions; do
6121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124    break 2
6125  fi
6126done
6127  done
6128IFS=$as_save_IFS
6129
6130fi
6131fi
6132ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6133if test -n "$ac_ct_DUMPBIN"; then
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6135$as_echo "$ac_ct_DUMPBIN" >&6; }
6136else
6137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138$as_echo "no" >&6; }
6139fi
6140
6141
6142  test -n "$ac_ct_DUMPBIN" && break
6143done
6144
6145  if test "x$ac_ct_DUMPBIN" = x; then
6146    DUMPBIN=":"
6147  else
6148    case $cross_compiling:$ac_tool_warned in
6149yes:)
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152ac_tool_warned=yes ;;
6153esac
6154    DUMPBIN=$ac_ct_DUMPBIN
6155  fi
6156fi
6157
6158    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6159    *COFF*)
6160      DUMPBIN="$DUMPBIN -symbols -headers"
6161      ;;
6162    *)
6163      DUMPBIN=:
6164      ;;
6165    esac
6166  fi
6167
6168  if test : != "$DUMPBIN"; then
6169    NM=$DUMPBIN
6170  fi
6171fi
6172test -z "$NM" && NM=nm
6173
6174
6175
6176
6177
6178
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6180$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6181if ${lt_cv_nm_interface+:} false; then :
6182  $as_echo_n "(cached) " >&6
6183else
6184  lt_cv_nm_interface="BSD nm"
6185  echo "int some_variable = 0;" > conftest.$ac_ext
6186  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6187  (eval "$ac_compile" 2>conftest.err)
6188  cat conftest.err >&5
6189  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6190  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6191  cat conftest.err >&5
6192  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6193  cat conftest.out >&5
6194  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6195    lt_cv_nm_interface="MS dumpbin"
6196  fi
6197  rm -f conftest*
6198fi
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6200$as_echo "$lt_cv_nm_interface" >&6; }
6201
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6203$as_echo_n "checking whether ln -s works... " >&6; }
6204LN_S=$as_ln_s
6205if test "$LN_S" = "ln -s"; then
6206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6207$as_echo "yes" >&6; }
6208else
6209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6210$as_echo "no, using $LN_S" >&6; }
6211fi
6212
6213# find the maximum length of command line arguments
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6215$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6216if ${lt_cv_sys_max_cmd_len+:} false; then :
6217  $as_echo_n "(cached) " >&6
6218else
6219    i=0
6220  teststring=ABCD
6221
6222  case $build_os in
6223  msdosdjgpp*)
6224    # On DJGPP, this test can blow up pretty badly due to problems in libc
6225    # (any single argument exceeding 2000 bytes causes a buffer overrun
6226    # during glob expansion).  Even if it were fixed, the result of this
6227    # check would be larger than it should be.
6228    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6229    ;;
6230
6231  gnu*)
6232    # Under GNU Hurd, this test is not required because there is
6233    # no limit to the length of command line arguments.
6234    # Libtool will interpret -1 as no limit whatsoever
6235    lt_cv_sys_max_cmd_len=-1;
6236    ;;
6237
6238  cygwin* | mingw* | cegcc*)
6239    # On Win9x/ME, this test blows up -- it succeeds, but takes
6240    # about 5 minutes as the teststring grows exponentially.
6241    # Worse, since 9x/ME are not pre-emptively multitasking,
6242    # you end up with a "frozen" computer, even though with patience
6243    # the test eventually succeeds (with a max line length of 256k).
6244    # Instead, let's just punt: use the minimum linelength reported by
6245    # all of the supported platforms: 8192 (on NT/2K/XP).
6246    lt_cv_sys_max_cmd_len=8192;
6247    ;;
6248
6249  mint*)
6250    # On MiNT this can take a long time and run out of memory.
6251    lt_cv_sys_max_cmd_len=8192;
6252    ;;
6253
6254  amigaos*)
6255    # On AmigaOS with pdksh, this test takes hours, literally.
6256    # So we just punt and use a minimum line length of 8192.
6257    lt_cv_sys_max_cmd_len=8192;
6258    ;;
6259
6260  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6261    # This has been around since 386BSD, at least.  Likely further.
6262    if test -x /sbin/sysctl; then
6263      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6264    elif test -x /usr/sbin/sysctl; then
6265      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6266    else
6267      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6268    fi
6269    # And add a safety zone
6270    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6271    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6272    ;;
6273
6274  interix*)
6275    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6276    lt_cv_sys_max_cmd_len=196608
6277    ;;
6278
6279  os2*)
6280    # The test takes a long time on OS/2.
6281    lt_cv_sys_max_cmd_len=8192
6282    ;;
6283
6284  osf*)
6285    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6286    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6287    # nice to cause kernel panics so lets avoid the loop below.
6288    # First set a reasonable default.
6289    lt_cv_sys_max_cmd_len=16384
6290    #
6291    if test -x /sbin/sysconfig; then
6292      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6293        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6294      esac
6295    fi
6296    ;;
6297  sco3.2v5*)
6298    lt_cv_sys_max_cmd_len=102400
6299    ;;
6300  sysv5* | sco5v6* | sysv4.2uw2*)
6301    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6302    if test -n "$kargmax"; then
6303      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6304    else
6305      lt_cv_sys_max_cmd_len=32768
6306    fi
6307    ;;
6308  *)
6309    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6310    if test -n "$lt_cv_sys_max_cmd_len" && \
6311       test undefined != "$lt_cv_sys_max_cmd_len"; then
6312      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6313      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6314    else
6315      # Make teststring a little bigger before we do anything with it.
6316      # a 1K string should be a reasonable start.
6317      for i in 1 2 3 4 5 6 7 8; do
6318        teststring=$teststring$teststring
6319      done
6320      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6321      # If test is not a shell built-in, we'll probably end up computing a
6322      # maximum length that is only half of the actual maximum length, but
6323      # we can't tell.
6324      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6325	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6326	      test 17 != "$i" # 1/2 MB should be enough
6327      do
6328        i=`expr $i + 1`
6329        teststring=$teststring$teststring
6330      done
6331      # Only check the string length outside the loop.
6332      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6333      teststring=
6334      # Add a significant safety factor because C++ compilers can tack on
6335      # massive amounts of additional arguments before passing them to the
6336      # linker.  It appears as though 1/2 is a usable value.
6337      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6338    fi
6339    ;;
6340  esac
6341
6342fi
6343
6344if test -n "$lt_cv_sys_max_cmd_len"; then
6345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6346$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6347else
6348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6349$as_echo "none" >&6; }
6350fi
6351max_cmd_len=$lt_cv_sys_max_cmd_len
6352
6353
6354
6355
6356
6357
6358: ${CP="cp -f"}
6359: ${MV="mv -f"}
6360: ${RM="rm -f"}
6361
6362if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6363  lt_unset=unset
6364else
6365  lt_unset=false
6366fi
6367
6368
6369
6370
6371
6372# test EBCDIC or ASCII
6373case `echo X|tr X '\101'` in
6374 A) # ASCII based system
6375    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6376  lt_SP2NL='tr \040 \012'
6377  lt_NL2SP='tr \015\012 \040\040'
6378  ;;
6379 *) # EBCDIC based system
6380  lt_SP2NL='tr \100 \n'
6381  lt_NL2SP='tr \r\n \100\100'
6382  ;;
6383esac
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6394$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6395if ${lt_cv_to_host_file_cmd+:} false; then :
6396  $as_echo_n "(cached) " >&6
6397else
6398  case $host in
6399  *-*-mingw* )
6400    case $build in
6401      *-*-mingw* ) # actually msys
6402        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6403        ;;
6404      *-*-cygwin* )
6405        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6406        ;;
6407      * ) # otherwise, assume *nix
6408        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6409        ;;
6410    esac
6411    ;;
6412  *-*-cygwin* )
6413    case $build in
6414      *-*-mingw* ) # actually msys
6415        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6416        ;;
6417      *-*-cygwin* )
6418        lt_cv_to_host_file_cmd=func_convert_file_noop
6419        ;;
6420      * ) # otherwise, assume *nix
6421        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6422        ;;
6423    esac
6424    ;;
6425  * ) # unhandled hosts (and "normal" native builds)
6426    lt_cv_to_host_file_cmd=func_convert_file_noop
6427    ;;
6428esac
6429
6430fi
6431
6432to_host_file_cmd=$lt_cv_to_host_file_cmd
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6434$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6435
6436
6437
6438
6439
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6441$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6442if ${lt_cv_to_tool_file_cmd+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  #assume ordinary cross tools, or native build.
6446lt_cv_to_tool_file_cmd=func_convert_file_noop
6447case $host in
6448  *-*-mingw* )
6449    case $build in
6450      *-*-mingw* ) # actually msys
6451        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6452        ;;
6453    esac
6454    ;;
6455esac
6456
6457fi
6458
6459to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6461$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6462
6463
6464
6465
6466
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6468$as_echo_n "checking for $LD option to reload object files... " >&6; }
6469if ${lt_cv_ld_reload_flag+:} false; then :
6470  $as_echo_n "(cached) " >&6
6471else
6472  lt_cv_ld_reload_flag='-r'
6473fi
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6475$as_echo "$lt_cv_ld_reload_flag" >&6; }
6476reload_flag=$lt_cv_ld_reload_flag
6477case $reload_flag in
6478"" | " "*) ;;
6479*) reload_flag=" $reload_flag" ;;
6480esac
6481reload_cmds='$LD$reload_flag -o $output$reload_objs'
6482case $host_os in
6483  cygwin* | mingw* | pw32* | cegcc*)
6484    if test yes != "$GCC"; then
6485      reload_cmds=false
6486    fi
6487    ;;
6488  darwin*)
6489    if test yes = "$GCC"; then
6490      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6491    else
6492      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6493    fi
6494    ;;
6495esac
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505if test -n "$ac_tool_prefix"; then
6506  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6507set dummy ${ac_tool_prefix}objdump; ac_word=$2
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509$as_echo_n "checking for $ac_word... " >&6; }
6510if ${ac_cv_prog_OBJDUMP+:} false; then :
6511  $as_echo_n "(cached) " >&6
6512else
6513  if test -n "$OBJDUMP"; then
6514  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6515else
6516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517for as_dir in $PATH
6518do
6519  IFS=$as_save_IFS
6520  test -z "$as_dir" && as_dir=.
6521    for ac_exec_ext in '' $ac_executable_extensions; do
6522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6523    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525    break 2
6526  fi
6527done
6528  done
6529IFS=$as_save_IFS
6530
6531fi
6532fi
6533OBJDUMP=$ac_cv_prog_OBJDUMP
6534if test -n "$OBJDUMP"; then
6535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6536$as_echo "$OBJDUMP" >&6; }
6537else
6538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539$as_echo "no" >&6; }
6540fi
6541
6542
6543fi
6544if test -z "$ac_cv_prog_OBJDUMP"; then
6545  ac_ct_OBJDUMP=$OBJDUMP
6546  # Extract the first word of "objdump", so it can be a program name with args.
6547set dummy objdump; ac_word=$2
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549$as_echo_n "checking for $ac_word... " >&6; }
6550if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6551  $as_echo_n "(cached) " >&6
6552else
6553  if test -n "$ac_ct_OBJDUMP"; then
6554  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559  IFS=$as_save_IFS
6560  test -z "$as_dir" && as_dir=.
6561    for ac_exec_ext in '' $ac_executable_extensions; do
6562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565    break 2
6566  fi
6567done
6568  done
6569IFS=$as_save_IFS
6570
6571fi
6572fi
6573ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6574if test -n "$ac_ct_OBJDUMP"; then
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6576$as_echo "$ac_ct_OBJDUMP" >&6; }
6577else
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582  if test "x$ac_ct_OBJDUMP" = x; then
6583    OBJDUMP="false"
6584  else
6585    case $cross_compiling:$ac_tool_warned in
6586yes:)
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589ac_tool_warned=yes ;;
6590esac
6591    OBJDUMP=$ac_ct_OBJDUMP
6592  fi
6593else
6594  OBJDUMP="$ac_cv_prog_OBJDUMP"
6595fi
6596
6597test -z "$OBJDUMP" && OBJDUMP=objdump
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6608$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6609if ${lt_cv_deplibs_check_method+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  lt_cv_file_magic_cmd='$MAGIC_CMD'
6613lt_cv_file_magic_test_file=
6614lt_cv_deplibs_check_method='unknown'
6615# Need to set the preceding variable on all platforms that support
6616# interlibrary dependencies.
6617# 'none' -- dependencies not supported.
6618# 'unknown' -- same as none, but documents that we really don't know.
6619# 'pass_all' -- all dependencies passed with no checks.
6620# 'test_compile' -- check by making test program.
6621# 'file_magic [[regex]]' -- check by looking for files in library path
6622# that responds to the $file_magic_cmd with a given extended regex.
6623# If you have 'file' or equivalent on your system and you're not sure
6624# whether 'pass_all' will *always* work, you probably want this one.
6625
6626case $host_os in
6627aix[4-9]*)
6628  lt_cv_deplibs_check_method=pass_all
6629  ;;
6630
6631beos*)
6632  lt_cv_deplibs_check_method=pass_all
6633  ;;
6634
6635bsdi[45]*)
6636  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6637  lt_cv_file_magic_cmd='/usr/bin/file -L'
6638  lt_cv_file_magic_test_file=/shlib/libc.so
6639  ;;
6640
6641cygwin*)
6642  # func_win32_libid is a shell function defined in ltmain.sh
6643  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6644  lt_cv_file_magic_cmd='func_win32_libid'
6645  ;;
6646
6647mingw* | pw32*)
6648  # Base MSYS/MinGW do not provide the 'file' command needed by
6649  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6650  # unless we find 'file', for example because we are cross-compiling.
6651  if ( file / ) >/dev/null 2>&1; then
6652    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6653    lt_cv_file_magic_cmd='func_win32_libid'
6654  else
6655    # Keep this pattern in sync with the one in func_win32_libid.
6656    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6657    lt_cv_file_magic_cmd='$OBJDUMP -f'
6658  fi
6659  ;;
6660
6661cegcc*)
6662  # use the weaker test based on 'objdump'. See mingw*.
6663  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6664  lt_cv_file_magic_cmd='$OBJDUMP -f'
6665  ;;
6666
6667darwin* | rhapsody*)
6668  lt_cv_deplibs_check_method=pass_all
6669  ;;
6670
6671freebsd* | dragonfly*)
6672  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6673    case $host_cpu in
6674    i*86 )
6675      # Not sure whether the presence of OpenBSD here was a mistake.
6676      # Let's accept both of them until this is cleared up.
6677      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6678      lt_cv_file_magic_cmd=/usr/bin/file
6679      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6680      ;;
6681    esac
6682  else
6683    lt_cv_deplibs_check_method=pass_all
6684  fi
6685  ;;
6686
6687haiku*)
6688  lt_cv_deplibs_check_method=pass_all
6689  ;;
6690
6691hpux10.20* | hpux11*)
6692  lt_cv_file_magic_cmd=/usr/bin/file
6693  case $host_cpu in
6694  ia64*)
6695    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6696    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6697    ;;
6698  hppa*64*)
6699    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]'
6700    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6701    ;;
6702  *)
6703    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6704    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6705    ;;
6706  esac
6707  ;;
6708
6709interix[3-9]*)
6710  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6711  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6712  ;;
6713
6714irix5* | irix6* | nonstopux*)
6715  case $LD in
6716  *-32|*"-32 ") libmagic=32-bit;;
6717  *-n32|*"-n32 ") libmagic=N32;;
6718  *-64|*"-64 ") libmagic=64-bit;;
6719  *) libmagic=never-match;;
6720  esac
6721  lt_cv_deplibs_check_method=pass_all
6722  ;;
6723
6724# This must be glibc/ELF.
6725linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6726  lt_cv_deplibs_check_method=pass_all
6727  ;;
6728
6729netbsd* | netbsdelf*-gnu)
6730  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6731    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6732  else
6733    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6734  fi
6735  ;;
6736
6737newos6*)
6738  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6739  lt_cv_file_magic_cmd=/usr/bin/file
6740  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6741  ;;
6742
6743*nto* | *qnx*)
6744  lt_cv_deplibs_check_method=pass_all
6745  ;;
6746
6747openbsd* | bitrig*)
6748  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6749    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6750  else
6751    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6752  fi
6753  ;;
6754
6755osf3* | osf4* | osf5*)
6756  lt_cv_deplibs_check_method=pass_all
6757  ;;
6758
6759rdos*)
6760  lt_cv_deplibs_check_method=pass_all
6761  ;;
6762
6763solaris*)
6764  lt_cv_deplibs_check_method=pass_all
6765  ;;
6766
6767sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6768  lt_cv_deplibs_check_method=pass_all
6769  ;;
6770
6771sysv4 | sysv4.3*)
6772  case $host_vendor in
6773  motorola)
6774    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]'
6775    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6776    ;;
6777  ncr)
6778    lt_cv_deplibs_check_method=pass_all
6779    ;;
6780  sequent)
6781    lt_cv_file_magic_cmd='/bin/file'
6782    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6783    ;;
6784  sni)
6785    lt_cv_file_magic_cmd='/bin/file'
6786    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6787    lt_cv_file_magic_test_file=/lib/libc.so
6788    ;;
6789  siemens)
6790    lt_cv_deplibs_check_method=pass_all
6791    ;;
6792  pc)
6793    lt_cv_deplibs_check_method=pass_all
6794    ;;
6795  esac
6796  ;;
6797
6798tpf*)
6799  lt_cv_deplibs_check_method=pass_all
6800  ;;
6801os2*)
6802  lt_cv_deplibs_check_method=pass_all
6803  ;;
6804esac
6805
6806fi
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6808$as_echo "$lt_cv_deplibs_check_method" >&6; }
6809
6810file_magic_glob=
6811want_nocaseglob=no
6812if test "$build" = "$host"; then
6813  case $host_os in
6814  mingw* | pw32*)
6815    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6816      want_nocaseglob=yes
6817    else
6818      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6819    fi
6820    ;;
6821  esac
6822fi
6823
6824file_magic_cmd=$lt_cv_file_magic_cmd
6825deplibs_check_method=$lt_cv_deplibs_check_method
6826test -z "$deplibs_check_method" && deplibs_check_method=unknown
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849if test -n "$ac_tool_prefix"; then
6850  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6851set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853$as_echo_n "checking for $ac_word... " >&6; }
6854if ${ac_cv_prog_DLLTOOL+:} false; then :
6855  $as_echo_n "(cached) " >&6
6856else
6857  if test -n "$DLLTOOL"; then
6858  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6859else
6860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863  IFS=$as_save_IFS
6864  test -z "$as_dir" && as_dir=.
6865    for ac_exec_ext in '' $ac_executable_extensions; do
6866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869    break 2
6870  fi
6871done
6872  done
6873IFS=$as_save_IFS
6874
6875fi
6876fi
6877DLLTOOL=$ac_cv_prog_DLLTOOL
6878if test -n "$DLLTOOL"; then
6879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6880$as_echo "$DLLTOOL" >&6; }
6881else
6882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883$as_echo "no" >&6; }
6884fi
6885
6886
6887fi
6888if test -z "$ac_cv_prog_DLLTOOL"; then
6889  ac_ct_DLLTOOL=$DLLTOOL
6890  # Extract the first word of "dlltool", so it can be a program name with args.
6891set dummy dlltool; ac_word=$2
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893$as_echo_n "checking for $ac_word... " >&6; }
6894if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6895  $as_echo_n "(cached) " >&6
6896else
6897  if test -n "$ac_ct_DLLTOOL"; then
6898  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6899else
6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903  IFS=$as_save_IFS
6904  test -z "$as_dir" && as_dir=.
6905    for ac_exec_ext in '' $ac_executable_extensions; do
6906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909    break 2
6910  fi
6911done
6912  done
6913IFS=$as_save_IFS
6914
6915fi
6916fi
6917ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6918if test -n "$ac_ct_DLLTOOL"; then
6919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6920$as_echo "$ac_ct_DLLTOOL" >&6; }
6921else
6922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923$as_echo "no" >&6; }
6924fi
6925
6926  if test "x$ac_ct_DLLTOOL" = x; then
6927    DLLTOOL="false"
6928  else
6929    case $cross_compiling:$ac_tool_warned in
6930yes:)
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6933ac_tool_warned=yes ;;
6934esac
6935    DLLTOOL=$ac_ct_DLLTOOL
6936  fi
6937else
6938  DLLTOOL="$ac_cv_prog_DLLTOOL"
6939fi
6940
6941test -z "$DLLTOOL" && DLLTOOL=dlltool
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6953$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6954if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6955  $as_echo_n "(cached) " >&6
6956else
6957  lt_cv_sharedlib_from_linklib_cmd='unknown'
6958
6959case $host_os in
6960cygwin* | mingw* | pw32* | cegcc*)
6961  # two different shell functions defined in ltmain.sh;
6962  # decide which one to use based on capabilities of $DLLTOOL
6963  case `$DLLTOOL --help 2>&1` in
6964  *--identify-strict*)
6965    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6966    ;;
6967  *)
6968    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6969    ;;
6970  esac
6971  ;;
6972*)
6973  # fallback: assume linklib IS sharedlib
6974  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6975  ;;
6976esac
6977
6978fi
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6980$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6981sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6982test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6983
6984
6985
6986
6987
6988
6989
6990if test -n "$ac_tool_prefix"; then
6991  for ac_prog in ar
6992  do
6993    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996$as_echo_n "checking for $ac_word... " >&6; }
6997if ${ac_cv_prog_AR+:} false; then :
6998  $as_echo_n "(cached) " >&6
6999else
7000  if test -n "$AR"; then
7001  ac_cv_prog_AR="$AR" # Let the user override the test.
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006  IFS=$as_save_IFS
7007  test -z "$as_dir" && as_dir=.
7008    for ac_exec_ext in '' $ac_executable_extensions; do
7009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012    break 2
7013  fi
7014done
7015  done
7016IFS=$as_save_IFS
7017
7018fi
7019fi
7020AR=$ac_cv_prog_AR
7021if test -n "$AR"; then
7022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7023$as_echo "$AR" >&6; }
7024else
7025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026$as_echo "no" >&6; }
7027fi
7028
7029
7030    test -n "$AR" && break
7031  done
7032fi
7033if test -z "$AR"; then
7034  ac_ct_AR=$AR
7035  for ac_prog in ar
7036do
7037  # Extract the first word of "$ac_prog", so it can be a program name with args.
7038set dummy $ac_prog; ac_word=$2
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040$as_echo_n "checking for $ac_word... " >&6; }
7041if ${ac_cv_prog_ac_ct_AR+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  if test -n "$ac_ct_AR"; then
7045  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7046else
7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050  IFS=$as_save_IFS
7051  test -z "$as_dir" && as_dir=.
7052    for ac_exec_ext in '' $ac_executable_extensions; do
7053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054    ac_cv_prog_ac_ct_AR="$ac_prog"
7055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056    break 2
7057  fi
7058done
7059  done
7060IFS=$as_save_IFS
7061
7062fi
7063fi
7064ac_ct_AR=$ac_cv_prog_ac_ct_AR
7065if test -n "$ac_ct_AR"; then
7066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7067$as_echo "$ac_ct_AR" >&6; }
7068else
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070$as_echo "no" >&6; }
7071fi
7072
7073
7074  test -n "$ac_ct_AR" && break
7075done
7076
7077  if test "x$ac_ct_AR" = x; then
7078    AR="false"
7079  else
7080    case $cross_compiling:$ac_tool_warned in
7081yes:)
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7084ac_tool_warned=yes ;;
7085esac
7086    AR=$ac_ct_AR
7087  fi
7088fi
7089
7090: ${AR=ar}
7091: ${AR_FLAGS=cru}
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7104$as_echo_n "checking for archiver @FILE support... " >&6; }
7105if ${lt_cv_ar_at_file+:} false; then :
7106  $as_echo_n "(cached) " >&6
7107else
7108  lt_cv_ar_at_file=no
7109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110/* end confdefs.h.  */
7111
7112int
7113main ()
7114{
7115
7116  ;
7117  return 0;
7118}
7119_ACEOF
7120if ac_fn_c_try_compile "$LINENO"; then :
7121  echo conftest.$ac_objext > conftest.lst
7122      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7123      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7124  (eval $lt_ar_try) 2>&5
7125  ac_status=$?
7126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7127  test $ac_status = 0; }
7128      if test 0 -eq "$ac_status"; then
7129	# Ensure the archiver fails upon bogus file names.
7130	rm -f conftest.$ac_objext libconftest.a
7131	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7132  (eval $lt_ar_try) 2>&5
7133  ac_status=$?
7134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7135  test $ac_status = 0; }
7136	if test 0 -ne "$ac_status"; then
7137          lt_cv_ar_at_file=@
7138        fi
7139      fi
7140      rm -f conftest.* libconftest.a
7141
7142fi
7143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144
7145fi
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7147$as_echo "$lt_cv_ar_at_file" >&6; }
7148
7149if test no = "$lt_cv_ar_at_file"; then
7150  archiver_list_spec=
7151else
7152  archiver_list_spec=$lt_cv_ar_at_file
7153fi
7154
7155
7156
7157
7158
7159
7160
7161if test -n "$ac_tool_prefix"; then
7162  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7163set dummy ${ac_tool_prefix}strip; ac_word=$2
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
7166if ${ac_cv_prog_STRIP+:} false; then :
7167  $as_echo_n "(cached) " >&6
7168else
7169  if test -n "$STRIP"; then
7170  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175  IFS=$as_save_IFS
7176  test -z "$as_dir" && as_dir=.
7177    for ac_exec_ext in '' $ac_executable_extensions; do
7178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181    break 2
7182  fi
7183done
7184  done
7185IFS=$as_save_IFS
7186
7187fi
7188fi
7189STRIP=$ac_cv_prog_STRIP
7190if test -n "$STRIP"; then
7191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7192$as_echo "$STRIP" >&6; }
7193else
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
7196fi
7197
7198
7199fi
7200if test -z "$ac_cv_prog_STRIP"; then
7201  ac_ct_STRIP=$STRIP
7202  # Extract the first word of "strip", so it can be a program name with args.
7203set dummy strip; ac_word=$2
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205$as_echo_n "checking for $ac_word... " >&6; }
7206if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7207  $as_echo_n "(cached) " >&6
7208else
7209  if test -n "$ac_ct_STRIP"; then
7210  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7211else
7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215  IFS=$as_save_IFS
7216  test -z "$as_dir" && as_dir=.
7217    for ac_exec_ext in '' $ac_executable_extensions; do
7218  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219    ac_cv_prog_ac_ct_STRIP="strip"
7220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221    break 2
7222  fi
7223done
7224  done
7225IFS=$as_save_IFS
7226
7227fi
7228fi
7229ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7230if test -n "$ac_ct_STRIP"; then
7231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7232$as_echo "$ac_ct_STRIP" >&6; }
7233else
7234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235$as_echo "no" >&6; }
7236fi
7237
7238  if test "x$ac_ct_STRIP" = x; then
7239    STRIP=":"
7240  else
7241    case $cross_compiling:$ac_tool_warned in
7242yes:)
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245ac_tool_warned=yes ;;
7246esac
7247    STRIP=$ac_ct_STRIP
7248  fi
7249else
7250  STRIP="$ac_cv_prog_STRIP"
7251fi
7252
7253test -z "$STRIP" && STRIP=:
7254
7255
7256
7257
7258
7259
7260if test -n "$ac_tool_prefix"; then
7261  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7262set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264$as_echo_n "checking for $ac_word... " >&6; }
7265if ${ac_cv_prog_RANLIB+:} false; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  if test -n "$RANLIB"; then
7269  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7270else
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274  IFS=$as_save_IFS
7275  test -z "$as_dir" && as_dir=.
7276    for ac_exec_ext in '' $ac_executable_extensions; do
7277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280    break 2
7281  fi
7282done
7283  done
7284IFS=$as_save_IFS
7285
7286fi
7287fi
7288RANLIB=$ac_cv_prog_RANLIB
7289if test -n "$RANLIB"; then
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7291$as_echo "$RANLIB" >&6; }
7292else
7293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294$as_echo "no" >&6; }
7295fi
7296
7297
7298fi
7299if test -z "$ac_cv_prog_RANLIB"; then
7300  ac_ct_RANLIB=$RANLIB
7301  # Extract the first word of "ranlib", so it can be a program name with args.
7302set dummy ranlib; ac_word=$2
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304$as_echo_n "checking for $ac_word... " >&6; }
7305if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7306  $as_echo_n "(cached) " >&6
7307else
7308  if test -n "$ac_ct_RANLIB"; then
7309  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7310else
7311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314  IFS=$as_save_IFS
7315  test -z "$as_dir" && as_dir=.
7316    for ac_exec_ext in '' $ac_executable_extensions; do
7317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318    ac_cv_prog_ac_ct_RANLIB="ranlib"
7319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320    break 2
7321  fi
7322done
7323  done
7324IFS=$as_save_IFS
7325
7326fi
7327fi
7328ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7329if test -n "$ac_ct_RANLIB"; then
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7331$as_echo "$ac_ct_RANLIB" >&6; }
7332else
7333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334$as_echo "no" >&6; }
7335fi
7336
7337  if test "x$ac_ct_RANLIB" = x; then
7338    RANLIB=":"
7339  else
7340    case $cross_compiling:$ac_tool_warned in
7341yes:)
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344ac_tool_warned=yes ;;
7345esac
7346    RANLIB=$ac_ct_RANLIB
7347  fi
7348else
7349  RANLIB="$ac_cv_prog_RANLIB"
7350fi
7351
7352test -z "$RANLIB" && RANLIB=:
7353
7354
7355
7356
7357
7358
7359# Determine commands to create old-style static archives.
7360old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7361old_postinstall_cmds='chmod 644 $oldlib'
7362old_postuninstall_cmds=
7363
7364if test -n "$RANLIB"; then
7365  case $host_os in
7366  bitrig* | openbsd*)
7367    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7368    ;;
7369  *)
7370    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7371    ;;
7372  esac
7373  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7374fi
7375
7376case $host_os in
7377  darwin*)
7378    lock_old_archive_extraction=yes ;;
7379  *)
7380    lock_old_archive_extraction=no ;;
7381esac
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421# If no C compiler was specified, use CC.
7422LTCC=${LTCC-"$CC"}
7423
7424# If no C compiler flags were specified, use CFLAGS.
7425LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7426
7427# Allow CC to be a program name with arguments.
7428compiler=$CC
7429
7430
7431# Check for command to grab the raw symbol name followed by C symbol from nm.
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7433$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7434if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7435  $as_echo_n "(cached) " >&6
7436else
7437
7438# These are sane defaults that work on at least a few old systems.
7439# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7440
7441# Character class describing NM global symbol codes.
7442symcode='[BCDEGRST]'
7443
7444# Regexp to match symbols that can be accessed directly from C.
7445sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7446
7447# Define system-specific variables.
7448case $host_os in
7449aix*)
7450  symcode='[BCDT]'
7451  ;;
7452cygwin* | mingw* | pw32* | cegcc*)
7453  symcode='[ABCDGISTW]'
7454  ;;
7455hpux*)
7456  if test ia64 = "$host_cpu"; then
7457    symcode='[ABCDEGRST]'
7458  fi
7459  ;;
7460irix* | nonstopux*)
7461  symcode='[BCDEGRST]'
7462  ;;
7463osf*)
7464  symcode='[BCDEGQRST]'
7465  ;;
7466solaris*)
7467  symcode='[BDRT]'
7468  ;;
7469sco3.2v5*)
7470  symcode='[DT]'
7471  ;;
7472sysv4.2uw2*)
7473  symcode='[DT]'
7474  ;;
7475sysv5* | sco5v6* | unixware* | OpenUNIX*)
7476  symcode='[ABDT]'
7477  ;;
7478sysv4)
7479  symcode='[DFNSTU]'
7480  ;;
7481esac
7482
7483# If we're using GNU nm, then use its standard symbol codes.
7484case `$NM -V 2>&1` in
7485*GNU* | *'with BFD'*)
7486  symcode='[ABCDGIRSTW]' ;;
7487esac
7488
7489if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7490  # Gets list of data symbols to import.
7491  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7492  # Adjust the below global symbol transforms to fixup imported variables.
7493  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7494  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7495  lt_c_name_lib_hook="\
7496  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7497  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7498else
7499  # Disable hooks by default.
7500  lt_cv_sys_global_symbol_to_import=
7501  lt_cdecl_hook=
7502  lt_c_name_hook=
7503  lt_c_name_lib_hook=
7504fi
7505
7506# Transform an extracted symbol line into a proper C declaration.
7507# Some systems (esp. on ia64) link data and code symbols differently,
7508# so use this general approach.
7509lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7510$lt_cdecl_hook\
7511" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7512" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7513
7514# Transform an extracted symbol line into symbol name and symbol address
7515lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7516$lt_c_name_hook\
7517" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7518" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7519
7520# Transform an extracted symbol line into symbol name with lib prefix and
7521# symbol address.
7522lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7523$lt_c_name_lib_hook\
7524" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7525" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7526" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7527
7528# Handle CRLF in mingw tool chain
7529opt_cr=
7530case $build_os in
7531mingw*)
7532  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7533  ;;
7534esac
7535
7536# Try without a prefix underscore, then with it.
7537for ac_symprfx in "" "_"; do
7538
7539  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7540  symxfrm="\\1 $ac_symprfx\\2 \\2"
7541
7542  # Write the raw and C identifiers.
7543  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7544    # Fake it for dumpbin and say T for any non-static function,
7545    # D for any global variable and I for any imported variable.
7546    # Also find C++ and __fastcall symbols from MSVC++,
7547    # which start with @ or ?.
7548    lt_cv_sys_global_symbol_pipe="$AWK '"\
7549"     {last_section=section; section=\$ 3};"\
7550"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7551"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7552"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7553"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7554"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7555"     \$ 0!~/External *\|/{next};"\
7556"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7557"     {if(hide[section]) next};"\
7558"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7559"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7560"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7561"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7562"     ' prfx=^$ac_symprfx"
7563  else
7564    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7565  fi
7566  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7567
7568  # Check to see that the pipe works correctly.
7569  pipe_works=no
7570
7571  rm -f conftest*
7572  cat > conftest.$ac_ext <<_LT_EOF
7573#ifdef __cplusplus
7574extern "C" {
7575#endif
7576char nm_test_var;
7577void nm_test_func(void);
7578void nm_test_func(void){}
7579#ifdef __cplusplus
7580}
7581#endif
7582int main(){nm_test_var='a';nm_test_func();return(0);}
7583_LT_EOF
7584
7585  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7586  (eval $ac_compile) 2>&5
7587  ac_status=$?
7588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7589  test $ac_status = 0; }; then
7590    # Now try to grab the symbols.
7591    nlist=conftest.nm
7592    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7593  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7594  ac_status=$?
7595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7596  test $ac_status = 0; } && test -s "$nlist"; then
7597      # Try sorting and uniquifying the output.
7598      if sort "$nlist" | uniq > "$nlist"T; then
7599	mv -f "$nlist"T "$nlist"
7600      else
7601	rm -f "$nlist"T
7602      fi
7603
7604      # Make sure that we snagged all the symbols we need.
7605      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7606	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7607	  cat <<_LT_EOF > conftest.$ac_ext
7608/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7609#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7610/* DATA imports from DLLs on WIN32 can't be const, because runtime
7611   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7612# define LT_DLSYM_CONST
7613#elif defined __osf__
7614/* This system does not cope well with relocations in const data.  */
7615# define LT_DLSYM_CONST
7616#else
7617# define LT_DLSYM_CONST const
7618#endif
7619
7620#ifdef __cplusplus
7621extern "C" {
7622#endif
7623
7624_LT_EOF
7625	  # Now generate the symbol file.
7626	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7627
7628	  cat <<_LT_EOF >> conftest.$ac_ext
7629
7630/* The mapping between symbol names and symbols.  */
7631LT_DLSYM_CONST struct {
7632  const char *name;
7633  void       *address;
7634}
7635lt__PROGRAM__LTX_preloaded_symbols[] =
7636{
7637  { "@PROGRAM@", (void *) 0 },
7638_LT_EOF
7639	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7640	  cat <<\_LT_EOF >> conftest.$ac_ext
7641  {0, (void *) 0}
7642};
7643
7644/* This works around a problem in FreeBSD linker */
7645#ifdef FREEBSD_WORKAROUND
7646static const void *lt_preloaded_setup() {
7647  return lt__PROGRAM__LTX_preloaded_symbols;
7648}
7649#endif
7650
7651#ifdef __cplusplus
7652}
7653#endif
7654_LT_EOF
7655	  # Now try linking the two files.
7656	  mv conftest.$ac_objext conftstm.$ac_objext
7657	  lt_globsym_save_LIBS=$LIBS
7658	  lt_globsym_save_CFLAGS=$CFLAGS
7659	  LIBS=conftstm.$ac_objext
7660	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7661	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7662  (eval $ac_link) 2>&5
7663  ac_status=$?
7664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7665  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7666	    pipe_works=yes
7667	  fi
7668	  LIBS=$lt_globsym_save_LIBS
7669	  CFLAGS=$lt_globsym_save_CFLAGS
7670	else
7671	  echo "cannot find nm_test_func in $nlist" >&5
7672	fi
7673      else
7674	echo "cannot find nm_test_var in $nlist" >&5
7675      fi
7676    else
7677      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7678    fi
7679  else
7680    echo "$progname: failed program was:" >&5
7681    cat conftest.$ac_ext >&5
7682  fi
7683  rm -rf conftest* conftst*
7684
7685  # Do not use the global_symbol_pipe unless it works.
7686  if test yes = "$pipe_works"; then
7687    break
7688  else
7689    lt_cv_sys_global_symbol_pipe=
7690  fi
7691done
7692
7693fi
7694
7695if test -z "$lt_cv_sys_global_symbol_pipe"; then
7696  lt_cv_sys_global_symbol_to_cdecl=
7697fi
7698if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7700$as_echo "failed" >&6; }
7701else
7702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7703$as_echo "ok" >&6; }
7704fi
7705
7706# Response file support.
7707if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7708  nm_file_list_spec='@'
7709elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7710  nm_file_list_spec='@'
7711fi
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7750$as_echo_n "checking for sysroot... " >&6; }
7751
7752# Check whether --with-sysroot was given.
7753if test "${with_sysroot+set}" = set; then :
7754  withval=$with_sysroot;
7755else
7756  with_sysroot=no
7757fi
7758
7759
7760lt_sysroot=
7761case $with_sysroot in #(
7762 yes)
7763   if test yes = "$GCC"; then
7764     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7765   fi
7766   ;; #(
7767 /*)
7768   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7769   ;; #(
7770 no|'')
7771   ;; #(
7772 *)
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7774$as_echo "$with_sysroot" >&6; }
7775   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7776   ;;
7777esac
7778
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7780$as_echo "${lt_sysroot:-no}" >&6; }
7781
7782
7783
7784
7785
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7787$as_echo_n "checking for a working dd... " >&6; }
7788if ${ac_cv_path_lt_DD+:} false; then :
7789  $as_echo_n "(cached) " >&6
7790else
7791  printf 0123456789abcdef0123456789abcdef >conftest.i
7792cat conftest.i conftest.i >conftest2.i
7793: ${lt_DD:=$DD}
7794if test -z "$lt_DD"; then
7795  ac_path_lt_DD_found=false
7796  # Loop through the user's path and test for each of PROGNAME-LIST
7797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798for as_dir in $PATH
7799do
7800  IFS=$as_save_IFS
7801  test -z "$as_dir" && as_dir=.
7802    for ac_prog in dd; do
7803    for ac_exec_ext in '' $ac_executable_extensions; do
7804      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7805      as_fn_executable_p "$ac_path_lt_DD" || continue
7806if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7807  cmp -s conftest.i conftest.out \
7808  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7809fi
7810      $ac_path_lt_DD_found && break 3
7811    done
7812  done
7813  done
7814IFS=$as_save_IFS
7815  if test -z "$ac_cv_path_lt_DD"; then
7816    :
7817  fi
7818else
7819  ac_cv_path_lt_DD=$lt_DD
7820fi
7821
7822rm -f conftest.i conftest2.i conftest.out
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7825$as_echo "$ac_cv_path_lt_DD" >&6; }
7826
7827
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7829$as_echo_n "checking how to truncate binary pipes... " >&6; }
7830if ${lt_cv_truncate_bin+:} false; then :
7831  $as_echo_n "(cached) " >&6
7832else
7833  printf 0123456789abcdef0123456789abcdef >conftest.i
7834cat conftest.i conftest.i >conftest2.i
7835lt_cv_truncate_bin=
7836if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7837  cmp -s conftest.i conftest.out \
7838  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7839fi
7840rm -f conftest.i conftest2.i conftest.out
7841test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7842fi
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7844$as_echo "$lt_cv_truncate_bin" >&6; }
7845
7846
7847
7848
7849
7850
7851
7852# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7853func_cc_basename ()
7854{
7855    for cc_temp in $*""; do
7856      case $cc_temp in
7857        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7858        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7859        \-*) ;;
7860        *) break;;
7861      esac
7862    done
7863    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7864}
7865
7866# Check whether --enable-libtool-lock was given.
7867if test "${enable_libtool_lock+set}" = set; then :
7868  enableval=$enable_libtool_lock;
7869fi
7870
7871test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7872
7873# Some flags need to be propagated to the compiler or linker for good
7874# libtool support.
7875case $host in
7876ia64-*-hpux*)
7877  # Find out what ABI is being produced by ac_compile, and set mode
7878  # options accordingly.
7879  echo 'int i;' > conftest.$ac_ext
7880  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7881  (eval $ac_compile) 2>&5
7882  ac_status=$?
7883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7884  test $ac_status = 0; }; then
7885    case `/usr/bin/file conftest.$ac_objext` in
7886      *ELF-32*)
7887	HPUX_IA64_MODE=32
7888	;;
7889      *ELF-64*)
7890	HPUX_IA64_MODE=64
7891	;;
7892    esac
7893  fi
7894  rm -rf conftest*
7895  ;;
7896*-*-irix6*)
7897  # Find out what ABI is being produced by ac_compile, and set linker
7898  # options accordingly.
7899  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7900  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7901  (eval $ac_compile) 2>&5
7902  ac_status=$?
7903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7904  test $ac_status = 0; }; then
7905    if test yes = "$lt_cv_prog_gnu_ld"; then
7906      case `/usr/bin/file conftest.$ac_objext` in
7907	*32-bit*)
7908	  LD="${LD-ld} -melf32bsmip"
7909	  ;;
7910	*N32*)
7911	  LD="${LD-ld} -melf32bmipn32"
7912	  ;;
7913	*64-bit*)
7914	  LD="${LD-ld} -melf64bmip"
7915	;;
7916      esac
7917    else
7918      case `/usr/bin/file conftest.$ac_objext` in
7919	*32-bit*)
7920	  LD="${LD-ld} -32"
7921	  ;;
7922	*N32*)
7923	  LD="${LD-ld} -n32"
7924	  ;;
7925	*64-bit*)
7926	  LD="${LD-ld} -64"
7927	  ;;
7928      esac
7929    fi
7930  fi
7931  rm -rf conftest*
7932  ;;
7933
7934mips64*-*linux*)
7935  # Find out what ABI is being produced by ac_compile, and set linker
7936  # options accordingly.
7937  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7938  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7939  (eval $ac_compile) 2>&5
7940  ac_status=$?
7941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942  test $ac_status = 0; }; then
7943    emul=elf
7944    case `/usr/bin/file conftest.$ac_objext` in
7945      *32-bit*)
7946	emul="${emul}32"
7947	;;
7948      *64-bit*)
7949	emul="${emul}64"
7950	;;
7951    esac
7952    case `/usr/bin/file conftest.$ac_objext` in
7953      *MSB*)
7954	emul="${emul}btsmip"
7955	;;
7956      *LSB*)
7957	emul="${emul}ltsmip"
7958	;;
7959    esac
7960    case `/usr/bin/file conftest.$ac_objext` in
7961      *N32*)
7962	emul="${emul}n32"
7963	;;
7964    esac
7965    LD="${LD-ld} -m $emul"
7966  fi
7967  rm -rf conftest*
7968  ;;
7969
7970x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7971s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7972  # Find out what ABI is being produced by ac_compile, and set linker
7973  # options accordingly.  Note that the listed cases only cover the
7974  # situations where additional linker options are needed (such as when
7975  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7976  # vice versa); the common cases where no linker options are needed do
7977  # not appear in the list.
7978  echo 'int i;' > conftest.$ac_ext
7979  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7980  (eval $ac_compile) 2>&5
7981  ac_status=$?
7982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7983  test $ac_status = 0; }; then
7984    case `/usr/bin/file conftest.o` in
7985      *32-bit*)
7986	case $host in
7987	  x86_64-*kfreebsd*-gnu)
7988	    LD="${LD-ld} -m elf_i386_fbsd"
7989	    ;;
7990	  x86_64-*linux*)
7991	    case `/usr/bin/file conftest.o` in
7992	      *x86-64*)
7993		LD="${LD-ld} -m elf32_x86_64"
7994		;;
7995	      *)
7996		LD="${LD-ld} -m elf_i386"
7997		;;
7998	    esac
7999	    ;;
8000	  powerpc64le-*linux*)
8001	    LD="${LD-ld} -m elf32lppclinux"
8002	    ;;
8003	  powerpc64-*linux*)
8004	    LD="${LD-ld} -m elf32ppclinux"
8005	    ;;
8006	  s390x-*linux*)
8007	    LD="${LD-ld} -m elf_s390"
8008	    ;;
8009	  sparc64-*linux*)
8010	    LD="${LD-ld} -m elf32_sparc"
8011	    ;;
8012	esac
8013	;;
8014      *64-bit*)
8015	case $host in
8016	  x86_64-*kfreebsd*-gnu)
8017	    LD="${LD-ld} -m elf_x86_64_fbsd"
8018	    ;;
8019	  x86_64-*linux*)
8020	    LD="${LD-ld} -m elf_x86_64"
8021	    ;;
8022	  powerpcle-*linux*)
8023	    LD="${LD-ld} -m elf64lppc"
8024	    ;;
8025	  powerpc-*linux*)
8026	    LD="${LD-ld} -m elf64ppc"
8027	    ;;
8028	  s390*-*linux*|s390*-*tpf*)
8029	    LD="${LD-ld} -m elf64_s390"
8030	    ;;
8031	  sparc*-*linux*)
8032	    LD="${LD-ld} -m elf64_sparc"
8033	    ;;
8034	esac
8035	;;
8036    esac
8037  fi
8038  rm -rf conftest*
8039  ;;
8040
8041*-*-sco3.2v5*)
8042  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8043  SAVE_CFLAGS=$CFLAGS
8044  CFLAGS="$CFLAGS -belf"
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8046$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8047if ${lt_cv_cc_needs_belf+:} false; then :
8048  $as_echo_n "(cached) " >&6
8049else
8050  ac_ext=c
8051ac_cpp='$CPP $CPPFLAGS'
8052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8054ac_compiler_gnu=$ac_cv_c_compiler_gnu
8055
8056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057/* end confdefs.h.  */
8058
8059int
8060main ()
8061{
8062
8063  ;
8064  return 0;
8065}
8066_ACEOF
8067if ac_fn_c_try_link "$LINENO"; then :
8068  lt_cv_cc_needs_belf=yes
8069else
8070  lt_cv_cc_needs_belf=no
8071fi
8072rm -f core conftest.err conftest.$ac_objext \
8073    conftest$ac_exeext conftest.$ac_ext
8074     ac_ext=c
8075ac_cpp='$CPP $CPPFLAGS'
8076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8078ac_compiler_gnu=$ac_cv_c_compiler_gnu
8079
8080fi
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8082$as_echo "$lt_cv_cc_needs_belf" >&6; }
8083  if test yes != "$lt_cv_cc_needs_belf"; then
8084    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8085    CFLAGS=$SAVE_CFLAGS
8086  fi
8087  ;;
8088*-*solaris*)
8089  # Find out what ABI is being produced by ac_compile, and set linker
8090  # options accordingly.
8091  echo 'int i;' > conftest.$ac_ext
8092  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8093  (eval $ac_compile) 2>&5
8094  ac_status=$?
8095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8096  test $ac_status = 0; }; then
8097    case `/usr/bin/file conftest.o` in
8098    *64-bit*)
8099      case $lt_cv_prog_gnu_ld in
8100      yes*)
8101        case $host in
8102        i?86-*-solaris*|x86_64-*-solaris*)
8103          LD="${LD-ld} -m elf_x86_64"
8104          ;;
8105        sparc*-*-solaris*)
8106          LD="${LD-ld} -m elf64_sparc"
8107          ;;
8108        esac
8109        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8110        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8111          LD=${LD-ld}_sol2
8112        fi
8113        ;;
8114      *)
8115	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8116	  LD="${LD-ld} -64"
8117	fi
8118	;;
8119      esac
8120      ;;
8121    esac
8122  fi
8123  rm -rf conftest*
8124  ;;
8125esac
8126
8127need_locks=$enable_libtool_lock
8128
8129if test -n "$ac_tool_prefix"; then
8130  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8131set dummy ${ac_tool_prefix}mt; ac_word=$2
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133$as_echo_n "checking for $ac_word... " >&6; }
8134if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8135  $as_echo_n "(cached) " >&6
8136else
8137  if test -n "$MANIFEST_TOOL"; then
8138  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8139else
8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143  IFS=$as_save_IFS
8144  test -z "$as_dir" && as_dir=.
8145    for ac_exec_ext in '' $ac_executable_extensions; do
8146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149    break 2
8150  fi
8151done
8152  done
8153IFS=$as_save_IFS
8154
8155fi
8156fi
8157MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8158if test -n "$MANIFEST_TOOL"; then
8159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8160$as_echo "$MANIFEST_TOOL" >&6; }
8161else
8162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163$as_echo "no" >&6; }
8164fi
8165
8166
8167fi
8168if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8169  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8170  # Extract the first word of "mt", so it can be a program name with args.
8171set dummy mt; ac_word=$2
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173$as_echo_n "checking for $ac_word... " >&6; }
8174if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  if test -n "$ac_ct_MANIFEST_TOOL"; then
8178  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8179else
8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183  IFS=$as_save_IFS
8184  test -z "$as_dir" && as_dir=.
8185    for ac_exec_ext in '' $ac_executable_extensions; do
8186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189    break 2
8190  fi
8191done
8192  done
8193IFS=$as_save_IFS
8194
8195fi
8196fi
8197ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8198if test -n "$ac_ct_MANIFEST_TOOL"; then
8199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8200$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8201else
8202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203$as_echo "no" >&6; }
8204fi
8205
8206  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8207    MANIFEST_TOOL=":"
8208  else
8209    case $cross_compiling:$ac_tool_warned in
8210yes:)
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213ac_tool_warned=yes ;;
8214esac
8215    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8216  fi
8217else
8218  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8219fi
8220
8221test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8223$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8224if ${lt_cv_path_mainfest_tool+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  lt_cv_path_mainfest_tool=no
8228  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8229  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8230  cat conftest.err >&5
8231  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8232    lt_cv_path_mainfest_tool=yes
8233  fi
8234  rm -f conftest*
8235fi
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8237$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8238if test yes != "$lt_cv_path_mainfest_tool"; then
8239  MANIFEST_TOOL=:
8240fi
8241
8242
8243
8244
8245
8246
8247  case $host_os in
8248    rhapsody* | darwin*)
8249    if test -n "$ac_tool_prefix"; then
8250  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8251set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253$as_echo_n "checking for $ac_word... " >&6; }
8254if ${ac_cv_prog_DSYMUTIL+:} false; then :
8255  $as_echo_n "(cached) " >&6
8256else
8257  if test -n "$DSYMUTIL"; then
8258  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8259else
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263  IFS=$as_save_IFS
8264  test -z "$as_dir" && as_dir=.
8265    for ac_exec_ext in '' $ac_executable_extensions; do
8266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8267    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269    break 2
8270  fi
8271done
8272  done
8273IFS=$as_save_IFS
8274
8275fi
8276fi
8277DSYMUTIL=$ac_cv_prog_DSYMUTIL
8278if test -n "$DSYMUTIL"; then
8279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8280$as_echo "$DSYMUTIL" >&6; }
8281else
8282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
8284fi
8285
8286
8287fi
8288if test -z "$ac_cv_prog_DSYMUTIL"; then
8289  ac_ct_DSYMUTIL=$DSYMUTIL
8290  # Extract the first word of "dsymutil", so it can be a program name with args.
8291set dummy dsymutil; ac_word=$2
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293$as_echo_n "checking for $ac_word... " >&6; }
8294if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8295  $as_echo_n "(cached) " >&6
8296else
8297  if test -n "$ac_ct_DSYMUTIL"; then
8298  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8299else
8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303  IFS=$as_save_IFS
8304  test -z "$as_dir" && as_dir=.
8305    for ac_exec_ext in '' $ac_executable_extensions; do
8306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309    break 2
8310  fi
8311done
8312  done
8313IFS=$as_save_IFS
8314
8315fi
8316fi
8317ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8318if test -n "$ac_ct_DSYMUTIL"; then
8319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8320$as_echo "$ac_ct_DSYMUTIL" >&6; }
8321else
8322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323$as_echo "no" >&6; }
8324fi
8325
8326  if test "x$ac_ct_DSYMUTIL" = x; then
8327    DSYMUTIL=":"
8328  else
8329    case $cross_compiling:$ac_tool_warned in
8330yes:)
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8333ac_tool_warned=yes ;;
8334esac
8335    DSYMUTIL=$ac_ct_DSYMUTIL
8336  fi
8337else
8338  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8339fi
8340
8341    if test -n "$ac_tool_prefix"; then
8342  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8343set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345$as_echo_n "checking for $ac_word... " >&6; }
8346if ${ac_cv_prog_NMEDIT+:} false; then :
8347  $as_echo_n "(cached) " >&6
8348else
8349  if test -n "$NMEDIT"; then
8350  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8351else
8352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353for as_dir in $PATH
8354do
8355  IFS=$as_save_IFS
8356  test -z "$as_dir" && as_dir=.
8357    for ac_exec_ext in '' $ac_executable_extensions; do
8358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8359    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361    break 2
8362  fi
8363done
8364  done
8365IFS=$as_save_IFS
8366
8367fi
8368fi
8369NMEDIT=$ac_cv_prog_NMEDIT
8370if test -n "$NMEDIT"; then
8371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8372$as_echo "$NMEDIT" >&6; }
8373else
8374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375$as_echo "no" >&6; }
8376fi
8377
8378
8379fi
8380if test -z "$ac_cv_prog_NMEDIT"; then
8381  ac_ct_NMEDIT=$NMEDIT
8382  # Extract the first word of "nmedit", so it can be a program name with args.
8383set dummy nmedit; ac_word=$2
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385$as_echo_n "checking for $ac_word... " >&6; }
8386if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8387  $as_echo_n "(cached) " >&6
8388else
8389  if test -n "$ac_ct_NMEDIT"; then
8390  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8391else
8392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393for as_dir in $PATH
8394do
8395  IFS=$as_save_IFS
8396  test -z "$as_dir" && as_dir=.
8397    for ac_exec_ext in '' $ac_executable_extensions; do
8398  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8399    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401    break 2
8402  fi
8403done
8404  done
8405IFS=$as_save_IFS
8406
8407fi
8408fi
8409ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8410if test -n "$ac_ct_NMEDIT"; then
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8412$as_echo "$ac_ct_NMEDIT" >&6; }
8413else
8414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
8416fi
8417
8418  if test "x$ac_ct_NMEDIT" = x; then
8419    NMEDIT=":"
8420  else
8421    case $cross_compiling:$ac_tool_warned in
8422yes:)
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8425ac_tool_warned=yes ;;
8426esac
8427    NMEDIT=$ac_ct_NMEDIT
8428  fi
8429else
8430  NMEDIT="$ac_cv_prog_NMEDIT"
8431fi
8432
8433    if test -n "$ac_tool_prefix"; then
8434  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8435set dummy ${ac_tool_prefix}lipo; ac_word=$2
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437$as_echo_n "checking for $ac_word... " >&6; }
8438if ${ac_cv_prog_LIPO+:} false; then :
8439  $as_echo_n "(cached) " >&6
8440else
8441  if test -n "$LIPO"; then
8442  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8443else
8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447  IFS=$as_save_IFS
8448  test -z "$as_dir" && as_dir=.
8449    for ac_exec_ext in '' $ac_executable_extensions; do
8450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8451    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453    break 2
8454  fi
8455done
8456  done
8457IFS=$as_save_IFS
8458
8459fi
8460fi
8461LIPO=$ac_cv_prog_LIPO
8462if test -n "$LIPO"; then
8463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8464$as_echo "$LIPO" >&6; }
8465else
8466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467$as_echo "no" >&6; }
8468fi
8469
8470
8471fi
8472if test -z "$ac_cv_prog_LIPO"; then
8473  ac_ct_LIPO=$LIPO
8474  # Extract the first word of "lipo", so it can be a program name with args.
8475set dummy lipo; ac_word=$2
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477$as_echo_n "checking for $ac_word... " >&6; }
8478if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8479  $as_echo_n "(cached) " >&6
8480else
8481  if test -n "$ac_ct_LIPO"; then
8482  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8483else
8484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487  IFS=$as_save_IFS
8488  test -z "$as_dir" && as_dir=.
8489    for ac_exec_ext in '' $ac_executable_extensions; do
8490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8491    ac_cv_prog_ac_ct_LIPO="lipo"
8492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493    break 2
8494  fi
8495done
8496  done
8497IFS=$as_save_IFS
8498
8499fi
8500fi
8501ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8502if test -n "$ac_ct_LIPO"; then
8503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8504$as_echo "$ac_ct_LIPO" >&6; }
8505else
8506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507$as_echo "no" >&6; }
8508fi
8509
8510  if test "x$ac_ct_LIPO" = x; then
8511    LIPO=":"
8512  else
8513    case $cross_compiling:$ac_tool_warned in
8514yes:)
8515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8517ac_tool_warned=yes ;;
8518esac
8519    LIPO=$ac_ct_LIPO
8520  fi
8521else
8522  LIPO="$ac_cv_prog_LIPO"
8523fi
8524
8525    if test -n "$ac_tool_prefix"; then
8526  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8527set dummy ${ac_tool_prefix}otool; ac_word=$2
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529$as_echo_n "checking for $ac_word... " >&6; }
8530if ${ac_cv_prog_OTOOL+:} false; then :
8531  $as_echo_n "(cached) " >&6
8532else
8533  if test -n "$OTOOL"; then
8534  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8535else
8536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $PATH
8538do
8539  IFS=$as_save_IFS
8540  test -z "$as_dir" && as_dir=.
8541    for ac_exec_ext in '' $ac_executable_extensions; do
8542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545    break 2
8546  fi
8547done
8548  done
8549IFS=$as_save_IFS
8550
8551fi
8552fi
8553OTOOL=$ac_cv_prog_OTOOL
8554if test -n "$OTOOL"; then
8555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8556$as_echo "$OTOOL" >&6; }
8557else
8558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559$as_echo "no" >&6; }
8560fi
8561
8562
8563fi
8564if test -z "$ac_cv_prog_OTOOL"; then
8565  ac_ct_OTOOL=$OTOOL
8566  # Extract the first word of "otool", so it can be a program name with args.
8567set dummy otool; ac_word=$2
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569$as_echo_n "checking for $ac_word... " >&6; }
8570if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8571  $as_echo_n "(cached) " >&6
8572else
8573  if test -n "$ac_ct_OTOOL"; then
8574  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8575else
8576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577for as_dir in $PATH
8578do
8579  IFS=$as_save_IFS
8580  test -z "$as_dir" && as_dir=.
8581    for ac_exec_ext in '' $ac_executable_extensions; do
8582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8583    ac_cv_prog_ac_ct_OTOOL="otool"
8584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8585    break 2
8586  fi
8587done
8588  done
8589IFS=$as_save_IFS
8590
8591fi
8592fi
8593ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8594if test -n "$ac_ct_OTOOL"; then
8595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8596$as_echo "$ac_ct_OTOOL" >&6; }
8597else
8598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599$as_echo "no" >&6; }
8600fi
8601
8602  if test "x$ac_ct_OTOOL" = x; then
8603    OTOOL=":"
8604  else
8605    case $cross_compiling:$ac_tool_warned in
8606yes:)
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8609ac_tool_warned=yes ;;
8610esac
8611    OTOOL=$ac_ct_OTOOL
8612  fi
8613else
8614  OTOOL="$ac_cv_prog_OTOOL"
8615fi
8616
8617    if test -n "$ac_tool_prefix"; then
8618  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8619set dummy ${ac_tool_prefix}otool64; ac_word=$2
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621$as_echo_n "checking for $ac_word... " >&6; }
8622if ${ac_cv_prog_OTOOL64+:} false; then :
8623  $as_echo_n "(cached) " >&6
8624else
8625  if test -n "$OTOOL64"; then
8626  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8627else
8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631  IFS=$as_save_IFS
8632  test -z "$as_dir" && as_dir=.
8633    for ac_exec_ext in '' $ac_executable_extensions; do
8634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637    break 2
8638  fi
8639done
8640  done
8641IFS=$as_save_IFS
8642
8643fi
8644fi
8645OTOOL64=$ac_cv_prog_OTOOL64
8646if test -n "$OTOOL64"; then
8647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8648$as_echo "$OTOOL64" >&6; }
8649else
8650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651$as_echo "no" >&6; }
8652fi
8653
8654
8655fi
8656if test -z "$ac_cv_prog_OTOOL64"; then
8657  ac_ct_OTOOL64=$OTOOL64
8658  # Extract the first word of "otool64", so it can be a program name with args.
8659set dummy otool64; ac_word=$2
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661$as_echo_n "checking for $ac_word... " >&6; }
8662if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8663  $as_echo_n "(cached) " >&6
8664else
8665  if test -n "$ac_ct_OTOOL64"; then
8666  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8667else
8668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669for as_dir in $PATH
8670do
8671  IFS=$as_save_IFS
8672  test -z "$as_dir" && as_dir=.
8673    for ac_exec_ext in '' $ac_executable_extensions; do
8674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8675    ac_cv_prog_ac_ct_OTOOL64="otool64"
8676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677    break 2
8678  fi
8679done
8680  done
8681IFS=$as_save_IFS
8682
8683fi
8684fi
8685ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8686if test -n "$ac_ct_OTOOL64"; then
8687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8688$as_echo "$ac_ct_OTOOL64" >&6; }
8689else
8690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
8692fi
8693
8694  if test "x$ac_ct_OTOOL64" = x; then
8695    OTOOL64=":"
8696  else
8697    case $cross_compiling:$ac_tool_warned in
8698yes:)
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8701ac_tool_warned=yes ;;
8702esac
8703    OTOOL64=$ac_ct_OTOOL64
8704  fi
8705else
8706  OTOOL64="$ac_cv_prog_OTOOL64"
8707fi
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8736$as_echo_n "checking for -single_module linker flag... " >&6; }
8737if ${lt_cv_apple_cc_single_mod+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  lt_cv_apple_cc_single_mod=no
8741      if test -z "$LT_MULTI_MODULE"; then
8742	# By default we will add the -single_module flag. You can override
8743	# by either setting the environment variable LT_MULTI_MODULE
8744	# non-empty at configure time, or by adding -multi_module to the
8745	# link flags.
8746	rm -rf libconftest.dylib*
8747	echo "int foo(void){return 1;}" > conftest.c
8748	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8749-dynamiclib -Wl,-single_module conftest.c" >&5
8750	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8751	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8752        _lt_result=$?
8753	# If there is a non-empty error log, and "single_module"
8754	# appears in it, assume the flag caused a linker warning
8755        if test -s conftest.err && $GREP single_module conftest.err; then
8756	  cat conftest.err >&5
8757	# Otherwise, if the output was created with a 0 exit code from
8758	# the compiler, it worked.
8759	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8760	  lt_cv_apple_cc_single_mod=yes
8761	else
8762	  cat conftest.err >&5
8763	fi
8764	rm -rf libconftest.dylib*
8765	rm -f conftest.*
8766      fi
8767fi
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8769$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8770
8771    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8772$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8773if ${lt_cv_ld_exported_symbols_list+:} false; then :
8774  $as_echo_n "(cached) " >&6
8775else
8776  lt_cv_ld_exported_symbols_list=no
8777      save_LDFLAGS=$LDFLAGS
8778      echo "_main" > conftest.sym
8779      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8780      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781/* end confdefs.h.  */
8782
8783int
8784main ()
8785{
8786
8787  ;
8788  return 0;
8789}
8790_ACEOF
8791if ac_fn_c_try_link "$LINENO"; then :
8792  lt_cv_ld_exported_symbols_list=yes
8793else
8794  lt_cv_ld_exported_symbols_list=no
8795fi
8796rm -f core conftest.err conftest.$ac_objext \
8797    conftest$ac_exeext conftest.$ac_ext
8798	LDFLAGS=$save_LDFLAGS
8799
8800fi
8801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8802$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8803
8804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8805$as_echo_n "checking for -force_load linker flag... " >&6; }
8806if ${lt_cv_ld_force_load+:} false; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  lt_cv_ld_force_load=no
8810      cat > conftest.c << _LT_EOF
8811int forced_loaded() { return 2;}
8812_LT_EOF
8813      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8814      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8815      echo "$AR cru libconftest.a conftest.o" >&5
8816      $AR cru libconftest.a conftest.o 2>&5
8817      echo "$RANLIB libconftest.a" >&5
8818      $RANLIB libconftest.a 2>&5
8819      cat > conftest.c << _LT_EOF
8820int main() { return 0;}
8821_LT_EOF
8822      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8823      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8824      _lt_result=$?
8825      if test -s conftest.err && $GREP force_load conftest.err; then
8826	cat conftest.err >&5
8827      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8828	lt_cv_ld_force_load=yes
8829      else
8830	cat conftest.err >&5
8831      fi
8832        rm -f conftest.err libconftest.a conftest conftest.c
8833        rm -rf conftest.dSYM
8834
8835fi
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8837$as_echo "$lt_cv_ld_force_load" >&6; }
8838    case $host_os in
8839    rhapsody* | darwin1.[012])
8840      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8841    darwin1.*)
8842      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8843    darwin*) # darwin 5.x on
8844      # if running on 10.5 or later, the deployment target defaults
8845      # to the OS version, if on x86, and 10.4, the deployment
8846      # target defaults to 10.4. Don't you love it?
8847      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8848	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8849	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8850	10.[012][,.]*)
8851	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8852	10.*)
8853	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8854      esac
8855    ;;
8856  esac
8857    if test yes = "$lt_cv_apple_cc_single_mod"; then
8858      _lt_dar_single_mod='$single_module'
8859    fi
8860    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8861      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8862    else
8863      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8864    fi
8865    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8866      _lt_dsymutil='~$DSYMUTIL $lib || :'
8867    else
8868      _lt_dsymutil=
8869    fi
8870    ;;
8871  esac
8872
8873# func_munge_path_list VARIABLE PATH
8874# -----------------------------------
8875# VARIABLE is name of variable containing _space_ separated list of
8876# directories to be munged by the contents of PATH, which is string
8877# having a format:
8878# "DIR[:DIR]:"
8879#       string "DIR[ DIR]" will be prepended to VARIABLE
8880# ":DIR[:DIR]"
8881#       string "DIR[ DIR]" will be appended to VARIABLE
8882# "DIRP[:DIRP]::[DIRA:]DIRA"
8883#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8884#       "DIRA[ DIRA]" will be appended to VARIABLE
8885# "DIR[:DIR]"
8886#       VARIABLE will be replaced by "DIR[ DIR]"
8887func_munge_path_list ()
8888{
8889    case x$2 in
8890    x)
8891        ;;
8892    *:)
8893        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8894        ;;
8895    x:*)
8896        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8897        ;;
8898    *::*)
8899        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8900        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8901        ;;
8902    *)
8903        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8904        ;;
8905    esac
8906}
8907
8908for ac_header in dlfcn.h
8909do :
8910  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8911"
8912if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8913  cat >>confdefs.h <<_ACEOF
8914#define HAVE_DLFCN_H 1
8915_ACEOF
8916
8917fi
8918
8919done
8920
8921
8922
8923
8924func_stripname_cnf ()
8925{
8926  case $2 in
8927  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8928  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8929  esac
8930} # func_stripname_cnf
8931
8932
8933
8934
8935
8936# Set options
8937# Check whether --enable-static was given.
8938if test "${enable_static+set}" = set; then :
8939  enableval=$enable_static; p=${PACKAGE-default}
8940    case $enableval in
8941    yes) enable_static=yes ;;
8942    no) enable_static=no ;;
8943    *)
8944     enable_static=no
8945      # Look at the argument we got.  We use all the common list separators.
8946      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8947      for pkg in $enableval; do
8948	IFS=$lt_save_ifs
8949	if test "X$pkg" = "X$p"; then
8950	  enable_static=yes
8951	fi
8952      done
8953      IFS=$lt_save_ifs
8954      ;;
8955    esac
8956else
8957  enable_static=no
8958fi
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969        enable_dlopen=no
8970
8971
8972  enable_win32_dll=no
8973
8974
8975            # Check whether --enable-shared was given.
8976if test "${enable_shared+set}" = set; then :
8977  enableval=$enable_shared; p=${PACKAGE-default}
8978    case $enableval in
8979    yes) enable_shared=yes ;;
8980    no) enable_shared=no ;;
8981    *)
8982      enable_shared=no
8983      # Look at the argument we got.  We use all the common list separators.
8984      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8985      for pkg in $enableval; do
8986	IFS=$lt_save_ifs
8987	if test "X$pkg" = "X$p"; then
8988	  enable_shared=yes
8989	fi
8990      done
8991      IFS=$lt_save_ifs
8992      ;;
8993    esac
8994else
8995  enable_shared=yes
8996fi
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008# Check whether --with-pic was given.
9009if test "${with_pic+set}" = set; then :
9010  withval=$with_pic; lt_p=${PACKAGE-default}
9011    case $withval in
9012    yes|no) pic_mode=$withval ;;
9013    *)
9014      pic_mode=default
9015      # Look at the argument we got.  We use all the common list separators.
9016      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9017      for lt_pkg in $withval; do
9018	IFS=$lt_save_ifs
9019	if test "X$lt_pkg" = "X$lt_p"; then
9020	  pic_mode=yes
9021	fi
9022      done
9023      IFS=$lt_save_ifs
9024      ;;
9025    esac
9026else
9027  pic_mode=default
9028fi
9029
9030
9031
9032
9033
9034
9035
9036
9037  # Check whether --enable-fast-install was given.
9038if test "${enable_fast_install+set}" = set; then :
9039  enableval=$enable_fast_install; p=${PACKAGE-default}
9040    case $enableval in
9041    yes) enable_fast_install=yes ;;
9042    no) enable_fast_install=no ;;
9043    *)
9044      enable_fast_install=no
9045      # Look at the argument we got.  We use all the common list separators.
9046      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9047      for pkg in $enableval; do
9048	IFS=$lt_save_ifs
9049	if test "X$pkg" = "X$p"; then
9050	  enable_fast_install=yes
9051	fi
9052      done
9053      IFS=$lt_save_ifs
9054      ;;
9055    esac
9056else
9057  enable_fast_install=yes
9058fi
9059
9060
9061
9062
9063
9064
9065
9066
9067  shared_archive_member_spec=
9068case $host,$enable_shared in
9069power*-*-aix[5-9]*,yes)
9070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9071$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9072
9073# Check whether --with-aix-soname was given.
9074if test "${with_aix_soname+set}" = set; then :
9075  withval=$with_aix_soname; case $withval in
9076    aix|svr4|both)
9077      ;;
9078    *)
9079      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9080      ;;
9081    esac
9082    lt_cv_with_aix_soname=$with_aix_soname
9083else
9084  if ${lt_cv_with_aix_soname+:} false; then :
9085  $as_echo_n "(cached) " >&6
9086else
9087  lt_cv_with_aix_soname=aix
9088fi
9089
9090    with_aix_soname=$lt_cv_with_aix_soname
9091fi
9092
9093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9094$as_echo "$with_aix_soname" >&6; }
9095  if test aix != "$with_aix_soname"; then
9096    # For the AIX way of multilib, we name the shared archive member
9097    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9098    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9099    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9100    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9101    if test 64 = "${OBJECT_MODE-32}"; then
9102      shared_archive_member_spec=shr_64
9103    else
9104      shared_archive_member_spec=shr
9105    fi
9106  fi
9107  ;;
9108*)
9109  with_aix_soname=aix
9110  ;;
9111esac
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122# This can be used to rebuild libtool when needed
9123LIBTOOL_DEPS=$ltmain
9124
9125# Always use our own libtool.
9126LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157test -z "$LN_S" && LN_S="ln -s"
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172if test -n "${ZSH_VERSION+set}"; then
9173   setopt NO_GLOB_SUBST
9174fi
9175
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9177$as_echo_n "checking for objdir... " >&6; }
9178if ${lt_cv_objdir+:} false; then :
9179  $as_echo_n "(cached) " >&6
9180else
9181  rm -f .libs 2>/dev/null
9182mkdir .libs 2>/dev/null
9183if test -d .libs; then
9184  lt_cv_objdir=.libs
9185else
9186  # MS-DOS does not allow filenames that begin with a dot.
9187  lt_cv_objdir=_libs
9188fi
9189rmdir .libs 2>/dev/null
9190fi
9191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9192$as_echo "$lt_cv_objdir" >&6; }
9193objdir=$lt_cv_objdir
9194
9195
9196
9197
9198
9199cat >>confdefs.h <<_ACEOF
9200#define LT_OBJDIR "$lt_cv_objdir/"
9201_ACEOF
9202
9203
9204
9205
9206case $host_os in
9207aix3*)
9208  # AIX sometimes has problems with the GCC collect2 program.  For some
9209  # reason, if we set the COLLECT_NAMES environment variable, the problems
9210  # vanish in a puff of smoke.
9211  if test set != "${COLLECT_NAMES+set}"; then
9212    COLLECT_NAMES=
9213    export COLLECT_NAMES
9214  fi
9215  ;;
9216esac
9217
9218# Global variables:
9219ofile=libtool
9220can_build_shared=yes
9221
9222# All known linkers require a '.a' archive for static linking (except MSVC,
9223# which needs '.lib').
9224libext=a
9225
9226with_gnu_ld=$lt_cv_prog_gnu_ld
9227
9228old_CC=$CC
9229old_CFLAGS=$CFLAGS
9230
9231# Set sane defaults for various variables
9232test -z "$CC" && CC=cc
9233test -z "$LTCC" && LTCC=$CC
9234test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9235test -z "$LD" && LD=ld
9236test -z "$ac_objext" && ac_objext=o
9237
9238func_cc_basename $compiler
9239cc_basename=$func_cc_basename_result
9240
9241
9242# Only perform the check for file, if the check method requires it
9243test -z "$MAGIC_CMD" && MAGIC_CMD=file
9244case $deplibs_check_method in
9245file_magic*)
9246  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9248$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9249if ${lt_cv_path_MAGIC_CMD+:} false; then :
9250  $as_echo_n "(cached) " >&6
9251else
9252  case $MAGIC_CMD in
9253[\\/*] |  ?:[\\/]*)
9254  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9255  ;;
9256*)
9257  lt_save_MAGIC_CMD=$MAGIC_CMD
9258  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9259  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9260  for ac_dir in $ac_dummy; do
9261    IFS=$lt_save_ifs
9262    test -z "$ac_dir" && ac_dir=.
9263    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9264      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9265      if test -n "$file_magic_test_file"; then
9266	case $deplibs_check_method in
9267	"file_magic "*)
9268	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9269	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9270	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9271	    $EGREP "$file_magic_regex" > /dev/null; then
9272	    :
9273	  else
9274	    cat <<_LT_EOF 1>&2
9275
9276*** Warning: the command libtool uses to detect shared libraries,
9277*** $file_magic_cmd, produces output that libtool cannot recognize.
9278*** The result is that libtool may fail to recognize shared libraries
9279*** as such.  This will affect the creation of libtool libraries that
9280*** depend on shared libraries, but programs linked with such libtool
9281*** libraries will work regardless of this problem.  Nevertheless, you
9282*** may want to report the problem to your system manager and/or to
9283*** bug-libtool@gnu.org
9284
9285_LT_EOF
9286	  fi ;;
9287	esac
9288      fi
9289      break
9290    fi
9291  done
9292  IFS=$lt_save_ifs
9293  MAGIC_CMD=$lt_save_MAGIC_CMD
9294  ;;
9295esac
9296fi
9297
9298MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9299if test -n "$MAGIC_CMD"; then
9300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9301$as_echo "$MAGIC_CMD" >&6; }
9302else
9303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304$as_echo "no" >&6; }
9305fi
9306
9307
9308
9309
9310
9311if test -z "$lt_cv_path_MAGIC_CMD"; then
9312  if test -n "$ac_tool_prefix"; then
9313    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9314$as_echo_n "checking for file... " >&6; }
9315if ${lt_cv_path_MAGIC_CMD+:} false; then :
9316  $as_echo_n "(cached) " >&6
9317else
9318  case $MAGIC_CMD in
9319[\\/*] |  ?:[\\/]*)
9320  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9321  ;;
9322*)
9323  lt_save_MAGIC_CMD=$MAGIC_CMD
9324  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9325  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9326  for ac_dir in $ac_dummy; do
9327    IFS=$lt_save_ifs
9328    test -z "$ac_dir" && ac_dir=.
9329    if test -f "$ac_dir/file"; then
9330      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9331      if test -n "$file_magic_test_file"; then
9332	case $deplibs_check_method in
9333	"file_magic "*)
9334	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9335	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9336	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9337	    $EGREP "$file_magic_regex" > /dev/null; then
9338	    :
9339	  else
9340	    cat <<_LT_EOF 1>&2
9341
9342*** Warning: the command libtool uses to detect shared libraries,
9343*** $file_magic_cmd, produces output that libtool cannot recognize.
9344*** The result is that libtool may fail to recognize shared libraries
9345*** as such.  This will affect the creation of libtool libraries that
9346*** depend on shared libraries, but programs linked with such libtool
9347*** libraries will work regardless of this problem.  Nevertheless, you
9348*** may want to report the problem to your system manager and/or to
9349*** bug-libtool@gnu.org
9350
9351_LT_EOF
9352	  fi ;;
9353	esac
9354      fi
9355      break
9356    fi
9357  done
9358  IFS=$lt_save_ifs
9359  MAGIC_CMD=$lt_save_MAGIC_CMD
9360  ;;
9361esac
9362fi
9363
9364MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9365if test -n "$MAGIC_CMD"; then
9366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9367$as_echo "$MAGIC_CMD" >&6; }
9368else
9369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370$as_echo "no" >&6; }
9371fi
9372
9373
9374  else
9375    MAGIC_CMD=:
9376  fi
9377fi
9378
9379  fi
9380  ;;
9381esac
9382
9383# Use C for the default configuration in the libtool script
9384
9385lt_save_CC=$CC
9386ac_ext=c
9387ac_cpp='$CPP $CPPFLAGS'
9388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9390ac_compiler_gnu=$ac_cv_c_compiler_gnu
9391
9392
9393# Source file extension for C test sources.
9394ac_ext=c
9395
9396# Object file extension for compiled C test sources.
9397objext=o
9398objext=$objext
9399
9400# Code to be used in simple compile tests
9401lt_simple_compile_test_code="int some_variable = 0;"
9402
9403# Code to be used in simple link tests
9404lt_simple_link_test_code='int main(){return(0);}'
9405
9406
9407
9408
9409
9410
9411
9412# If no C compiler was specified, use CC.
9413LTCC=${LTCC-"$CC"}
9414
9415# If no C compiler flags were specified, use CFLAGS.
9416LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9417
9418# Allow CC to be a program name with arguments.
9419compiler=$CC
9420
9421# Save the default compiler, since it gets overwritten when the other
9422# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9423compiler_DEFAULT=$CC
9424
9425# save warnings/boilerplate of simple test code
9426ac_outfile=conftest.$ac_objext
9427echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9428eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9429_lt_compiler_boilerplate=`cat conftest.err`
9430$RM conftest*
9431
9432ac_outfile=conftest.$ac_objext
9433echo "$lt_simple_link_test_code" >conftest.$ac_ext
9434eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9435_lt_linker_boilerplate=`cat conftest.err`
9436$RM -r conftest*
9437
9438
9439## CAVEAT EMPTOR:
9440## There is no encapsulation within the following macros, do not change
9441## the running order or otherwise move them around unless you know exactly
9442## what you are doing...
9443if test -n "$compiler"; then
9444
9445lt_prog_compiler_no_builtin_flag=
9446
9447if test yes = "$GCC"; then
9448  case $cc_basename in
9449  nvcc*)
9450    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9451  *)
9452    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9453  esac
9454
9455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9456$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9457if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9458  $as_echo_n "(cached) " >&6
9459else
9460  lt_cv_prog_compiler_rtti_exceptions=no
9461   ac_outfile=conftest.$ac_objext
9462   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9463   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9464   # Insert the option either (1) after the last *FLAGS variable, or
9465   # (2) before a word containing "conftest.", or (3) at the end.
9466   # Note that $ac_compile itself does not contain backslashes and begins
9467   # with a dollar sign (not a hyphen), so the echo should work correctly.
9468   # The option is referenced via a variable to avoid confusing sed.
9469   lt_compile=`echo "$ac_compile" | $SED \
9470   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9472   -e 's:$: $lt_compiler_flag:'`
9473   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9474   (eval "$lt_compile" 2>conftest.err)
9475   ac_status=$?
9476   cat conftest.err >&5
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   if (exit $ac_status) && test -s "$ac_outfile"; then
9479     # The compiler can only warn and ignore the option if not recognized
9480     # So say no if there are warnings other than the usual output.
9481     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9482     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9483     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9484       lt_cv_prog_compiler_rtti_exceptions=yes
9485     fi
9486   fi
9487   $RM conftest*
9488
9489fi
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9491$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9492
9493if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9494    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9495else
9496    :
9497fi
9498
9499fi
9500
9501
9502
9503
9504
9505
9506  lt_prog_compiler_wl=
9507lt_prog_compiler_pic=
9508lt_prog_compiler_static=
9509
9510
9511  if test yes = "$GCC"; then
9512    lt_prog_compiler_wl='-Wl,'
9513    lt_prog_compiler_static='-static'
9514
9515    case $host_os in
9516      aix*)
9517      # All AIX code is PIC.
9518      if test ia64 = "$host_cpu"; then
9519	# AIX 5 now supports IA64 processor
9520	lt_prog_compiler_static='-Bstatic'
9521      fi
9522      lt_prog_compiler_pic='-fPIC'
9523      ;;
9524
9525    amigaos*)
9526      case $host_cpu in
9527      powerpc)
9528            # see comment about AmigaOS4 .so support
9529            lt_prog_compiler_pic='-fPIC'
9530        ;;
9531      m68k)
9532            # FIXME: we need at least 68020 code to build shared libraries, but
9533            # adding the '-m68020' flag to GCC prevents building anything better,
9534            # like '-m68040'.
9535            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9536        ;;
9537      esac
9538      ;;
9539
9540    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9541      # PIC is the default for these OSes.
9542      ;;
9543
9544    mingw* | cygwin* | pw32* | os2* | cegcc*)
9545      # This hack is so that the source file can tell whether it is being
9546      # built for inclusion in a dll (and should export symbols for example).
9547      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9548      # (--disable-auto-import) libraries
9549      lt_prog_compiler_pic='-DDLL_EXPORT'
9550      case $host_os in
9551      os2*)
9552	lt_prog_compiler_static='$wl-static'
9553	;;
9554      esac
9555      ;;
9556
9557    darwin* | rhapsody*)
9558      # PIC is the default on this platform
9559      # Common symbols not allowed in MH_DYLIB files
9560      lt_prog_compiler_pic='-fno-common'
9561      ;;
9562
9563    haiku*)
9564      # PIC is the default for Haiku.
9565      # The "-static" flag exists, but is broken.
9566      lt_prog_compiler_static=
9567      ;;
9568
9569    hpux*)
9570      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9571      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9572      # sets the default TLS model and affects inlining.
9573      case $host_cpu in
9574      hppa*64*)
9575	# +Z the default
9576	;;
9577      *)
9578	lt_prog_compiler_pic='-fPIC'
9579	;;
9580      esac
9581      ;;
9582
9583    interix[3-9]*)
9584      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9585      # Instead, we relocate shared libraries at runtime.
9586      ;;
9587
9588    msdosdjgpp*)
9589      # Just because we use GCC doesn't mean we suddenly get shared libraries
9590      # on systems that don't support them.
9591      lt_prog_compiler_can_build_shared=no
9592      enable_shared=no
9593      ;;
9594
9595    *nto* | *qnx*)
9596      # QNX uses GNU C++, but need to define -shared option too, otherwise
9597      # it will coredump.
9598      lt_prog_compiler_pic='-fPIC -shared'
9599      ;;
9600
9601    sysv4*MP*)
9602      if test -d /usr/nec; then
9603	lt_prog_compiler_pic=-Kconform_pic
9604      fi
9605      ;;
9606
9607    *)
9608      lt_prog_compiler_pic='-fPIC'
9609      ;;
9610    esac
9611
9612    case $cc_basename in
9613    nvcc*) # Cuda Compiler Driver 2.2
9614      lt_prog_compiler_wl='-Xlinker '
9615      if test -n "$lt_prog_compiler_pic"; then
9616        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9617      fi
9618      ;;
9619    esac
9620  else
9621    # PORTME Check for flag to pass linker flags through the system compiler.
9622    case $host_os in
9623    aix*)
9624      lt_prog_compiler_wl='-Wl,'
9625      if test ia64 = "$host_cpu"; then
9626	# AIX 5 now supports IA64 processor
9627	lt_prog_compiler_static='-Bstatic'
9628      else
9629	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9630      fi
9631      ;;
9632
9633    darwin* | rhapsody*)
9634      # PIC is the default on this platform
9635      # Common symbols not allowed in MH_DYLIB files
9636      lt_prog_compiler_pic='-fno-common'
9637      case $cc_basename in
9638      nagfor*)
9639        # NAG Fortran compiler
9640        lt_prog_compiler_wl='-Wl,-Wl,,'
9641        lt_prog_compiler_pic='-PIC'
9642        lt_prog_compiler_static='-Bstatic'
9643        ;;
9644      esac
9645      ;;
9646
9647    mingw* | cygwin* | pw32* | os2* | cegcc*)
9648      # This hack is so that the source file can tell whether it is being
9649      # built for inclusion in a dll (and should export symbols for example).
9650      lt_prog_compiler_pic='-DDLL_EXPORT'
9651      case $host_os in
9652      os2*)
9653	lt_prog_compiler_static='$wl-static'
9654	;;
9655      esac
9656      ;;
9657
9658    hpux9* | hpux10* | hpux11*)
9659      lt_prog_compiler_wl='-Wl,'
9660      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9661      # not for PA HP-UX.
9662      case $host_cpu in
9663      hppa*64*|ia64*)
9664	# +Z the default
9665	;;
9666      *)
9667	lt_prog_compiler_pic='+Z'
9668	;;
9669      esac
9670      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9671      lt_prog_compiler_static='$wl-a ${wl}archive'
9672      ;;
9673
9674    irix5* | irix6* | nonstopux*)
9675      lt_prog_compiler_wl='-Wl,'
9676      # PIC (with -KPIC) is the default.
9677      lt_prog_compiler_static='-non_shared'
9678      ;;
9679
9680    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9681      case $cc_basename in
9682      # old Intel for x86_64, which still supported -KPIC.
9683      ecc*)
9684	lt_prog_compiler_wl='-Wl,'
9685	lt_prog_compiler_pic='-KPIC'
9686	lt_prog_compiler_static='-static'
9687        ;;
9688      # icc used to be incompatible with GCC.
9689      # ICC 10 doesn't accept -KPIC any more.
9690      icc* | ifort*)
9691	lt_prog_compiler_wl='-Wl,'
9692	lt_prog_compiler_pic='-fPIC'
9693	lt_prog_compiler_static='-static'
9694        ;;
9695      # Lahey Fortran 8.1.
9696      lf95*)
9697	lt_prog_compiler_wl='-Wl,'
9698	lt_prog_compiler_pic='--shared'
9699	lt_prog_compiler_static='--static'
9700	;;
9701      nagfor*)
9702	# NAG Fortran compiler
9703	lt_prog_compiler_wl='-Wl,-Wl,,'
9704	lt_prog_compiler_pic='-PIC'
9705	lt_prog_compiler_static='-Bstatic'
9706	;;
9707      tcc*)
9708	# Fabrice Bellard et al's Tiny C Compiler
9709	lt_prog_compiler_wl='-Wl,'
9710	lt_prog_compiler_pic='-fPIC'
9711	lt_prog_compiler_static='-static'
9712	;;
9713      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9714        # Portland Group compilers (*not* the Pentium gcc compiler,
9715	# which looks to be a dead project)
9716	lt_prog_compiler_wl='-Wl,'
9717	lt_prog_compiler_pic='-fpic'
9718	lt_prog_compiler_static='-Bstatic'
9719        ;;
9720      ccc*)
9721        lt_prog_compiler_wl='-Wl,'
9722        # All Alpha code is PIC.
9723        lt_prog_compiler_static='-non_shared'
9724        ;;
9725      xl* | bgxl* | bgf* | mpixl*)
9726	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9727	lt_prog_compiler_wl='-Wl,'
9728	lt_prog_compiler_pic='-qpic'
9729	lt_prog_compiler_static='-qstaticlink'
9730	;;
9731      *)
9732	case `$CC -V 2>&1 | sed 5q` in
9733	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9734	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9735	  lt_prog_compiler_pic='-KPIC'
9736	  lt_prog_compiler_static='-Bstatic'
9737	  lt_prog_compiler_wl=''
9738	  ;;
9739	*Sun\ F* | *Sun*Fortran*)
9740	  lt_prog_compiler_pic='-KPIC'
9741	  lt_prog_compiler_static='-Bstatic'
9742	  lt_prog_compiler_wl='-Qoption ld '
9743	  ;;
9744	*Sun\ C*)
9745	  # Sun C 5.9
9746	  lt_prog_compiler_pic='-KPIC'
9747	  lt_prog_compiler_static='-Bstatic'
9748	  lt_prog_compiler_wl='-Wl,'
9749	  ;;
9750        *Intel*\ [CF]*Compiler*)
9751	  lt_prog_compiler_wl='-Wl,'
9752	  lt_prog_compiler_pic='-fPIC'
9753	  lt_prog_compiler_static='-static'
9754	  ;;
9755	*Portland\ Group*)
9756	  lt_prog_compiler_wl='-Wl,'
9757	  lt_prog_compiler_pic='-fpic'
9758	  lt_prog_compiler_static='-Bstatic'
9759	  ;;
9760	esac
9761	;;
9762      esac
9763      ;;
9764
9765    newsos6)
9766      lt_prog_compiler_pic='-KPIC'
9767      lt_prog_compiler_static='-Bstatic'
9768      ;;
9769
9770    *nto* | *qnx*)
9771      # QNX uses GNU C++, but need to define -shared option too, otherwise
9772      # it will coredump.
9773      lt_prog_compiler_pic='-fPIC -shared'
9774      ;;
9775
9776    osf3* | osf4* | osf5*)
9777      lt_prog_compiler_wl='-Wl,'
9778      # All OSF/1 code is PIC.
9779      lt_prog_compiler_static='-non_shared'
9780      ;;
9781
9782    rdos*)
9783      lt_prog_compiler_static='-non_shared'
9784      ;;
9785
9786    solaris*)
9787      lt_prog_compiler_pic='-KPIC'
9788      lt_prog_compiler_static='-Bstatic'
9789      case $cc_basename in
9790      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9791	lt_prog_compiler_wl='-Qoption ld ';;
9792      *)
9793	lt_prog_compiler_wl='-Wl,';;
9794      esac
9795      ;;
9796
9797    sunos4*)
9798      lt_prog_compiler_wl='-Qoption ld '
9799      lt_prog_compiler_pic='-PIC'
9800      lt_prog_compiler_static='-Bstatic'
9801      ;;
9802
9803    sysv4 | sysv4.2uw2* | sysv4.3*)
9804      lt_prog_compiler_wl='-Wl,'
9805      lt_prog_compiler_pic='-KPIC'
9806      lt_prog_compiler_static='-Bstatic'
9807      ;;
9808
9809    sysv4*MP*)
9810      if test -d /usr/nec; then
9811	lt_prog_compiler_pic='-Kconform_pic'
9812	lt_prog_compiler_static='-Bstatic'
9813      fi
9814      ;;
9815
9816    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9817      lt_prog_compiler_wl='-Wl,'
9818      lt_prog_compiler_pic='-KPIC'
9819      lt_prog_compiler_static='-Bstatic'
9820      ;;
9821
9822    unicos*)
9823      lt_prog_compiler_wl='-Wl,'
9824      lt_prog_compiler_can_build_shared=no
9825      ;;
9826
9827    uts4*)
9828      lt_prog_compiler_pic='-pic'
9829      lt_prog_compiler_static='-Bstatic'
9830      ;;
9831
9832    *)
9833      lt_prog_compiler_can_build_shared=no
9834      ;;
9835    esac
9836  fi
9837
9838case $host_os in
9839  # For platforms that do not support PIC, -DPIC is meaningless:
9840  *djgpp*)
9841    lt_prog_compiler_pic=
9842    ;;
9843  *)
9844    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9845    ;;
9846esac
9847
9848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9849$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9850if ${lt_cv_prog_compiler_pic+:} false; then :
9851  $as_echo_n "(cached) " >&6
9852else
9853  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9854fi
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9856$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9857lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9858
9859#
9860# Check to make sure the PIC flag actually works.
9861#
9862if test -n "$lt_prog_compiler_pic"; then
9863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9864$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9865if ${lt_cv_prog_compiler_pic_works+:} false; then :
9866  $as_echo_n "(cached) " >&6
9867else
9868  lt_cv_prog_compiler_pic_works=no
9869   ac_outfile=conftest.$ac_objext
9870   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9871   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9872   # Insert the option either (1) after the last *FLAGS variable, or
9873   # (2) before a word containing "conftest.", or (3) at the end.
9874   # Note that $ac_compile itself does not contain backslashes and begins
9875   # with a dollar sign (not a hyphen), so the echo should work correctly.
9876   # The option is referenced via a variable to avoid confusing sed.
9877   lt_compile=`echo "$ac_compile" | $SED \
9878   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9879   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9880   -e 's:$: $lt_compiler_flag:'`
9881   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9882   (eval "$lt_compile" 2>conftest.err)
9883   ac_status=$?
9884   cat conftest.err >&5
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   if (exit $ac_status) && test -s "$ac_outfile"; then
9887     # The compiler can only warn and ignore the option if not recognized
9888     # So say no if there are warnings other than the usual output.
9889     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9890     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9891     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9892       lt_cv_prog_compiler_pic_works=yes
9893     fi
9894   fi
9895   $RM conftest*
9896
9897fi
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9899$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9900
9901if test yes = "$lt_cv_prog_compiler_pic_works"; then
9902    case $lt_prog_compiler_pic in
9903     "" | " "*) ;;
9904     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9905     esac
9906else
9907    lt_prog_compiler_pic=
9908     lt_prog_compiler_can_build_shared=no
9909fi
9910
9911fi
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923#
9924# Check to make sure the static flag actually works.
9925#
9926wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9928$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9929if ${lt_cv_prog_compiler_static_works+:} false; then :
9930  $as_echo_n "(cached) " >&6
9931else
9932  lt_cv_prog_compiler_static_works=no
9933   save_LDFLAGS=$LDFLAGS
9934   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9935   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9936   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9937     # The linker can only warn and ignore the option if not recognized
9938     # So say no if there are warnings
9939     if test -s conftest.err; then
9940       # Append any errors to the config.log.
9941       cat conftest.err 1>&5
9942       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9943       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9944       if diff conftest.exp conftest.er2 >/dev/null; then
9945         lt_cv_prog_compiler_static_works=yes
9946       fi
9947     else
9948       lt_cv_prog_compiler_static_works=yes
9949     fi
9950   fi
9951   $RM -r conftest*
9952   LDFLAGS=$save_LDFLAGS
9953
9954fi
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9956$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9957
9958if test yes = "$lt_cv_prog_compiler_static_works"; then
9959    :
9960else
9961    lt_prog_compiler_static=
9962fi
9963
9964
9965
9966
9967
9968
9969
9970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9971$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9972if ${lt_cv_prog_compiler_c_o+:} false; then :
9973  $as_echo_n "(cached) " >&6
9974else
9975  lt_cv_prog_compiler_c_o=no
9976   $RM -r conftest 2>/dev/null
9977   mkdir conftest
9978   cd conftest
9979   mkdir out
9980   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9981
9982   lt_compiler_flag="-o out/conftest2.$ac_objext"
9983   # Insert the option either (1) after the last *FLAGS variable, or
9984   # (2) before a word containing "conftest.", or (3) at the end.
9985   # Note that $ac_compile itself does not contain backslashes and begins
9986   # with a dollar sign (not a hyphen), so the echo should work correctly.
9987   lt_compile=`echo "$ac_compile" | $SED \
9988   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9989   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9990   -e 's:$: $lt_compiler_flag:'`
9991   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9992   (eval "$lt_compile" 2>out/conftest.err)
9993   ac_status=$?
9994   cat out/conftest.err >&5
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9997   then
9998     # The compiler can only warn and ignore the option if not recognized
9999     # So say no if there are warnings
10000     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10001     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10002     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10003       lt_cv_prog_compiler_c_o=yes
10004     fi
10005   fi
10006   chmod u+w . 2>&5
10007   $RM conftest*
10008   # SGI C++ compiler will create directory out/ii_files/ for
10009   # template instantiation
10010   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10011   $RM out/* && rmdir out
10012   cd ..
10013   $RM -r conftest
10014   $RM conftest*
10015
10016fi
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10018$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10019
10020
10021
10022
10023
10024
10025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10026$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10027if ${lt_cv_prog_compiler_c_o+:} false; then :
10028  $as_echo_n "(cached) " >&6
10029else
10030  lt_cv_prog_compiler_c_o=no
10031   $RM -r conftest 2>/dev/null
10032   mkdir conftest
10033   cd conftest
10034   mkdir out
10035   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10036
10037   lt_compiler_flag="-o out/conftest2.$ac_objext"
10038   # Insert the option either (1) after the last *FLAGS variable, or
10039   # (2) before a word containing "conftest.", or (3) at the end.
10040   # Note that $ac_compile itself does not contain backslashes and begins
10041   # with a dollar sign (not a hyphen), so the echo should work correctly.
10042   lt_compile=`echo "$ac_compile" | $SED \
10043   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10044   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10045   -e 's:$: $lt_compiler_flag:'`
10046   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10047   (eval "$lt_compile" 2>out/conftest.err)
10048   ac_status=$?
10049   cat out/conftest.err >&5
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10052   then
10053     # The compiler can only warn and ignore the option if not recognized
10054     # So say no if there are warnings
10055     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10056     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10057     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10058       lt_cv_prog_compiler_c_o=yes
10059     fi
10060   fi
10061   chmod u+w . 2>&5
10062   $RM conftest*
10063   # SGI C++ compiler will create directory out/ii_files/ for
10064   # template instantiation
10065   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10066   $RM out/* && rmdir out
10067   cd ..
10068   $RM -r conftest
10069   $RM conftest*
10070
10071fi
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10073$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10074
10075
10076
10077
10078hard_links=nottested
10079if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10080  # do not overwrite the value of need_locks provided by the user
10081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10082$as_echo_n "checking if we can lock with hard links... " >&6; }
10083  hard_links=yes
10084  $RM conftest*
10085  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10086  touch conftest.a
10087  ln conftest.a conftest.b 2>&5 || hard_links=no
10088  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10090$as_echo "$hard_links" >&6; }
10091  if test no = "$hard_links"; then
10092    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10093$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10094    need_locks=warn
10095  fi
10096else
10097  need_locks=no
10098fi
10099
10100
10101
10102
10103
10104
10105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10106$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10107
10108  runpath_var=
10109  allow_undefined_flag=
10110  always_export_symbols=no
10111  archive_cmds=
10112  archive_expsym_cmds=
10113  compiler_needs_object=no
10114  enable_shared_with_static_runtimes=no
10115  export_dynamic_flag_spec=
10116  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10117  hardcode_automatic=no
10118  hardcode_direct=no
10119  hardcode_direct_absolute=no
10120  hardcode_libdir_flag_spec=
10121  hardcode_libdir_separator=
10122  hardcode_minus_L=no
10123  hardcode_shlibpath_var=unsupported
10124  inherit_rpath=no
10125  link_all_deplibs=unknown
10126  module_cmds=
10127  module_expsym_cmds=
10128  old_archive_from_new_cmds=
10129  old_archive_from_expsyms_cmds=
10130  thread_safe_flag_spec=
10131  whole_archive_flag_spec=
10132  # include_expsyms should be a list of space-separated symbols to be *always*
10133  # included in the symbol list
10134  include_expsyms=
10135  # exclude_expsyms can be an extended regexp of symbols to exclude
10136  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10137  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10138  # as well as any symbol that contains 'd'.
10139  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10140  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10141  # platforms (ab)use it in PIC code, but their linkers get confused if
10142  # the symbol is explicitly referenced.  Since portable code cannot
10143  # rely on this symbol name, it's probably fine to never include it in
10144  # preloaded symbol tables.
10145  # Exclude shared library initialization/finalization symbols.
10146  extract_expsyms_cmds=
10147
10148  case $host_os in
10149  cygwin* | mingw* | pw32* | cegcc*)
10150    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10151    # When not using gcc, we currently assume that we are using
10152    # Microsoft Visual C++.
10153    if test yes != "$GCC"; then
10154      with_gnu_ld=no
10155    fi
10156    ;;
10157  interix*)
10158    # we just hope/assume this is gcc and not c89 (= MSVC++)
10159    with_gnu_ld=yes
10160    ;;
10161  openbsd* | bitrig*)
10162    with_gnu_ld=no
10163    ;;
10164  linux* | k*bsd*-gnu | gnu*)
10165    link_all_deplibs=no
10166    ;;
10167  esac
10168
10169  ld_shlibs=yes
10170
10171  # On some targets, GNU ld is compatible enough with the native linker
10172  # that we're better off using the native interface for both.
10173  lt_use_gnu_ld_interface=no
10174  if test yes = "$with_gnu_ld"; then
10175    case $host_os in
10176      aix*)
10177	# The AIX port of GNU ld has always aspired to compatibility
10178	# with the native linker.  However, as the warning in the GNU ld
10179	# block says, versions before 2.19.5* couldn't really create working
10180	# shared libraries, regardless of the interface used.
10181	case `$LD -v 2>&1` in
10182	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10183	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10184	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10185	  *)
10186	    lt_use_gnu_ld_interface=yes
10187	    ;;
10188	esac
10189	;;
10190      *)
10191	lt_use_gnu_ld_interface=yes
10192	;;
10193    esac
10194  fi
10195
10196  if test yes = "$lt_use_gnu_ld_interface"; then
10197    # If archive_cmds runs LD, not CC, wlarc should be empty
10198    wlarc='$wl'
10199
10200    # Set some defaults for GNU ld with shared library support. These
10201    # are reset later if shared libraries are not supported. Putting them
10202    # here allows them to be overridden if necessary.
10203    runpath_var=LD_RUN_PATH
10204    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10205    export_dynamic_flag_spec='$wl--export-dynamic'
10206    # ancient GNU ld didn't support --whole-archive et. al.
10207    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10208      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10209    else
10210      whole_archive_flag_spec=
10211    fi
10212    supports_anon_versioning=no
10213    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10214      *GNU\ gold*) supports_anon_versioning=yes ;;
10215      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10216      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10217      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10218      *\ 2.11.*) ;; # other 2.11 versions
10219      *) supports_anon_versioning=yes ;;
10220    esac
10221
10222    # See if GNU ld supports shared libraries.
10223    case $host_os in
10224    aix[3-9]*)
10225      # On AIX/PPC, the GNU linker is very broken
10226      if test ia64 != "$host_cpu"; then
10227	ld_shlibs=no
10228	cat <<_LT_EOF 1>&2
10229
10230*** Warning: the GNU linker, at least up to release 2.19, is reported
10231*** to be unable to reliably create shared libraries on AIX.
10232*** Therefore, libtool is disabling shared libraries support.  If you
10233*** really care for shared libraries, you may want to install binutils
10234*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10235*** You will then need to restart the configuration process.
10236
10237_LT_EOF
10238      fi
10239      ;;
10240
10241    amigaos*)
10242      case $host_cpu in
10243      powerpc)
10244            # see comment about AmigaOS4 .so support
10245            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10246            archive_expsym_cmds=''
10247        ;;
10248      m68k)
10249            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)'
10250            hardcode_libdir_flag_spec='-L$libdir'
10251            hardcode_minus_L=yes
10252        ;;
10253      esac
10254      ;;
10255
10256    beos*)
10257      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10258	allow_undefined_flag=unsupported
10259	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10260	# support --undefined.  This deserves some investigation.  FIXME
10261	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10262      else
10263	ld_shlibs=no
10264      fi
10265      ;;
10266
10267    cygwin* | mingw* | pw32* | cegcc*)
10268      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10269      # as there is no search path for DLLs.
10270      hardcode_libdir_flag_spec='-L$libdir'
10271      export_dynamic_flag_spec='$wl--export-all-symbols'
10272      allow_undefined_flag=unsupported
10273      always_export_symbols=no
10274      enable_shared_with_static_runtimes=yes
10275      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'
10276      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10277
10278      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10279        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10280	# If the export-symbols file already is a .def file, use it as
10281	# is; otherwise, prepend EXPORTS...
10282	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10283          cp $export_symbols $output_objdir/$soname.def;
10284        else
10285          echo EXPORTS > $output_objdir/$soname.def;
10286          cat $export_symbols >> $output_objdir/$soname.def;
10287        fi~
10288        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10289      else
10290	ld_shlibs=no
10291      fi
10292      ;;
10293
10294    haiku*)
10295      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10296      link_all_deplibs=yes
10297      ;;
10298
10299    os2*)
10300      hardcode_libdir_flag_spec='-L$libdir'
10301      hardcode_minus_L=yes
10302      allow_undefined_flag=unsupported
10303      shrext_cmds=.dll
10304      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10305	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10306	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10307	$ECHO EXPORTS >> $output_objdir/$libname.def~
10308	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10309	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10310	emximp -o $lib $output_objdir/$libname.def'
10311      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10312	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10313	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10314	$ECHO EXPORTS >> $output_objdir/$libname.def~
10315	prefix_cmds="$SED"~
10316	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10317	  prefix_cmds="$prefix_cmds -e 1d";
10318	fi~
10319	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10320	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10321	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10322	emximp -o $lib $output_objdir/$libname.def'
10323      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10324      enable_shared_with_static_runtimes=yes
10325      ;;
10326
10327    interix[3-9]*)
10328      hardcode_direct=no
10329      hardcode_shlibpath_var=no
10330      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10331      export_dynamic_flag_spec='$wl-E'
10332      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10333      # Instead, shared libraries are loaded at an image base (0x10000000 by
10334      # default) and relocated if they conflict, which is a slow very memory
10335      # consuming and fragmenting process.  To avoid this, we pick a random,
10336      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10337      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10338      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10339      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'
10340      ;;
10341
10342    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10343      tmp_diet=no
10344      if test linux-dietlibc = "$host_os"; then
10345	case $cc_basename in
10346	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10347	esac
10348      fi
10349      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10350	 && test no = "$tmp_diet"
10351      then
10352	tmp_addflag=' $pic_flag'
10353	tmp_sharedflag='-shared'
10354	case $cc_basename,$host_cpu in
10355        pgcc*)				# Portland Group C compiler
10356	  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'
10357	  tmp_addflag=' $pic_flag'
10358	  ;;
10359	pgf77* | pgf90* | pgf95* | pgfortran*)
10360					# Portland Group f77 and f90 compilers
10361	  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'
10362	  tmp_addflag=' $pic_flag -Mnomain' ;;
10363	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10364	  tmp_addflag=' -i_dynamic' ;;
10365	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10366	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10367	ifc* | ifort*)			# Intel Fortran compiler
10368	  tmp_addflag=' -nofor_main' ;;
10369	lf95*)				# Lahey Fortran 8.1
10370	  whole_archive_flag_spec=
10371	  tmp_sharedflag='--shared' ;;
10372        nagfor*)                        # NAGFOR 5.3
10373          tmp_sharedflag='-Wl,-shared' ;;
10374	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10375	  tmp_sharedflag='-qmkshrobj'
10376	  tmp_addflag= ;;
10377	nvcc*)	# Cuda Compiler Driver 2.2
10378	  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'
10379	  compiler_needs_object=yes
10380	  ;;
10381	esac
10382	case `$CC -V 2>&1 | sed 5q` in
10383	*Sun\ C*)			# Sun C 5.9
10384	  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'
10385	  compiler_needs_object=yes
10386	  tmp_sharedflag='-G' ;;
10387	*Sun\ F*)			# Sun Fortran 8.3
10388	  tmp_sharedflag='-G' ;;
10389	esac
10390	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10391
10392        if test yes = "$supports_anon_versioning"; then
10393          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10394            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10395            echo "local: *; };" >> $output_objdir/$libname.ver~
10396            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10397        fi
10398
10399	case $cc_basename in
10400	tcc*)
10401	  export_dynamic_flag_spec='-rdynamic'
10402	  ;;
10403	xlf* | bgf* | bgxlf* | mpixlf*)
10404	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10405	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10406	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10407	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10408	  if test yes = "$supports_anon_versioning"; then
10409	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10410              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10411              echo "local: *; };" >> $output_objdir/$libname.ver~
10412              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10413	  fi
10414	  ;;
10415	esac
10416      else
10417        ld_shlibs=no
10418      fi
10419      ;;
10420
10421    netbsd* | netbsdelf*-gnu)
10422      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10423	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10424	wlarc=
10425      else
10426	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10427	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10428      fi
10429      ;;
10430
10431    solaris*)
10432      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10433	ld_shlibs=no
10434	cat <<_LT_EOF 1>&2
10435
10436*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10437*** create shared libraries on Solaris systems.  Therefore, libtool
10438*** is disabling shared libraries support.  We urge you to upgrade GNU
10439*** binutils to release 2.9.1 or newer.  Another option is to modify
10440*** your PATH or compiler configuration so that the native linker is
10441*** used, and then restart.
10442
10443_LT_EOF
10444      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10445	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10446	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10447      else
10448	ld_shlibs=no
10449      fi
10450      ;;
10451
10452    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10453      case `$LD -v 2>&1` in
10454        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10455	ld_shlibs=no
10456	cat <<_LT_EOF 1>&2
10457
10458*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10459*** reliably create shared libraries on SCO systems.  Therefore, libtool
10460*** is disabling shared libraries support.  We urge you to upgrade GNU
10461*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10462*** your PATH or compiler configuration so that the native linker is
10463*** used, and then restart.
10464
10465_LT_EOF
10466	;;
10467	*)
10468	  # For security reasons, it is highly recommended that you always
10469	  # use absolute paths for naming shared libraries, and exclude the
10470	  # DT_RUNPATH tag from executables and libraries.  But doing so
10471	  # requires that you compile everything twice, which is a pain.
10472	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10473	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10474	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10475	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10476	  else
10477	    ld_shlibs=no
10478	  fi
10479	;;
10480      esac
10481      ;;
10482
10483    sunos4*)
10484      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10485      wlarc=
10486      hardcode_direct=yes
10487      hardcode_shlibpath_var=no
10488      ;;
10489
10490    *)
10491      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10492	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10493	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10494      else
10495	ld_shlibs=no
10496      fi
10497      ;;
10498    esac
10499
10500    if test no = "$ld_shlibs"; then
10501      runpath_var=
10502      hardcode_libdir_flag_spec=
10503      export_dynamic_flag_spec=
10504      whole_archive_flag_spec=
10505    fi
10506  else
10507    # PORTME fill in a description of your system's linker (not GNU ld)
10508    case $host_os in
10509    aix3*)
10510      allow_undefined_flag=unsupported
10511      always_export_symbols=yes
10512      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'
10513      # Note: this linker hardcodes the directories in LIBPATH if there
10514      # are no directories specified by -L.
10515      hardcode_minus_L=yes
10516      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10517	# Neither direct hardcoding nor static linking is supported with a
10518	# broken collect2.
10519	hardcode_direct=unsupported
10520      fi
10521      ;;
10522
10523    aix[4-9]*)
10524      if test ia64 = "$host_cpu"; then
10525	# On IA64, the linker does run time linking by default, so we don't
10526	# have to do anything special.
10527	aix_use_runtimelinking=no
10528	exp_sym_flag='-Bexport'
10529	no_entry_flag=
10530      else
10531	# If we're using GNU nm, then we don't want the "-C" option.
10532	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10533	# Without the "-l" option, or with the "-B" option, AIX nm treats
10534	# weak defined symbols like other global defined symbols, whereas
10535	# GNU nm marks them as "W".
10536	# While the 'weak' keyword is ignored in the Export File, we need
10537	# it in the Import File for the 'aix-soname' feature, so we have
10538	# to replace the "-B" option with "-P" for AIX nm.
10539	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10540	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10541	else
10542	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10543	fi
10544	aix_use_runtimelinking=no
10545
10546	# Test if we are trying to use run time linking or normal
10547	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10548	# have runtime linking enabled, and use it for executables.
10549	# For shared libraries, we enable/disable runtime linking
10550	# depending on the kind of the shared library created -
10551	# when "with_aix_soname,aix_use_runtimelinking" is:
10552	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10553	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10554	#            lib.a           static archive
10555	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10556	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10557	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10558	#            lib.a(lib.so.V) shared, rtl:no
10559	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10560	#            lib.a           static archive
10561	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10562	  for ld_flag in $LDFLAGS; do
10563	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10564	    aix_use_runtimelinking=yes
10565	    break
10566	  fi
10567	  done
10568	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10569	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10570	    # so we don't have lib.a shared libs to link our executables.
10571	    # We have to force runtime linking in this case.
10572	    aix_use_runtimelinking=yes
10573	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10574	  fi
10575	  ;;
10576	esac
10577
10578	exp_sym_flag='-bexport'
10579	no_entry_flag='-bnoentry'
10580      fi
10581
10582      # When large executables or shared objects are built, AIX ld can
10583      # have problems creating the table of contents.  If linking a library
10584      # or program results in "error TOC overflow" add -mminimal-toc to
10585      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10586      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10587
10588      archive_cmds=''
10589      hardcode_direct=yes
10590      hardcode_direct_absolute=yes
10591      hardcode_libdir_separator=':'
10592      link_all_deplibs=yes
10593      file_list_spec='$wl-f,'
10594      case $with_aix_soname,$aix_use_runtimelinking in
10595      aix,*) ;; # traditional, no import file
10596      svr4,* | *,yes) # use import file
10597	# The Import File defines what to hardcode.
10598	hardcode_direct=no
10599	hardcode_direct_absolute=no
10600	;;
10601      esac
10602
10603      if test yes = "$GCC"; then
10604	case $host_os in aix4.[012]|aix4.[012].*)
10605	# We only want to do this on AIX 4.2 and lower, the check
10606	# below for broken collect2 doesn't work under 4.3+
10607	  collect2name=`$CC -print-prog-name=collect2`
10608	  if test -f "$collect2name" &&
10609	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10610	  then
10611	  # We have reworked collect2
10612	  :
10613	  else
10614	  # We have old collect2
10615	  hardcode_direct=unsupported
10616	  # It fails to find uninstalled libraries when the uninstalled
10617	  # path is not listed in the libpath.  Setting hardcode_minus_L
10618	  # to unsupported forces relinking
10619	  hardcode_minus_L=yes
10620	  hardcode_libdir_flag_spec='-L$libdir'
10621	  hardcode_libdir_separator=
10622	  fi
10623	  ;;
10624	esac
10625	shared_flag='-shared'
10626	if test yes = "$aix_use_runtimelinking"; then
10627	  shared_flag="$shared_flag "'$wl-G'
10628	fi
10629	# Need to ensure runtime linking is disabled for the traditional
10630	# shared library, or the linker may eventually find shared libraries
10631	# /with/ Import File - we do not want to mix them.
10632	shared_flag_aix='-shared'
10633	shared_flag_svr4='-shared $wl-G'
10634      else
10635	# not using gcc
10636	if test ia64 = "$host_cpu"; then
10637	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10638	# chokes on -Wl,-G. The following line is correct:
10639	  shared_flag='-G'
10640	else
10641	  if test yes = "$aix_use_runtimelinking"; then
10642	    shared_flag='$wl-G'
10643	  else
10644	    shared_flag='$wl-bM:SRE'
10645	  fi
10646	  shared_flag_aix='$wl-bM:SRE'
10647	  shared_flag_svr4='$wl-G'
10648	fi
10649      fi
10650
10651      export_dynamic_flag_spec='$wl-bexpall'
10652      # It seems that -bexpall does not export symbols beginning with
10653      # underscore (_), so it is better to generate a list of symbols to export.
10654      always_export_symbols=yes
10655      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10656	# Warning - without using the other runtime loading flags (-brtl),
10657	# -berok will link without error, but may produce a broken library.
10658	allow_undefined_flag='-berok'
10659        # Determine the default libpath from the value encoded in an
10660        # empty executable.
10661        if test set = "${lt_cv_aix_libpath+set}"; then
10662  aix_libpath=$lt_cv_aix_libpath
10663else
10664  if ${lt_cv_aix_libpath_+:} false; then :
10665  $as_echo_n "(cached) " >&6
10666else
10667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668/* end confdefs.h.  */
10669
10670int
10671main ()
10672{
10673
10674  ;
10675  return 0;
10676}
10677_ACEOF
10678if ac_fn_c_try_link "$LINENO"; then :
10679
10680  lt_aix_libpath_sed='
10681      /Import File Strings/,/^$/ {
10682	  /^0/ {
10683	      s/^0  *\([^ ]*\) *$/\1/
10684	      p
10685	  }
10686      }'
10687  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10688  # Check for a 64-bit object if we didn't find anything.
10689  if test -z "$lt_cv_aix_libpath_"; then
10690    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10691  fi
10692fi
10693rm -f core conftest.err conftest.$ac_objext \
10694    conftest$ac_exeext conftest.$ac_ext
10695  if test -z "$lt_cv_aix_libpath_"; then
10696    lt_cv_aix_libpath_=/usr/lib:/lib
10697  fi
10698
10699fi
10700
10701  aix_libpath=$lt_cv_aix_libpath_
10702fi
10703
10704        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10705        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10706      else
10707	if test ia64 = "$host_cpu"; then
10708	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10709	  allow_undefined_flag="-z nodefs"
10710	  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"
10711	else
10712	 # Determine the default libpath from the value encoded in an
10713	 # empty executable.
10714	 if test set = "${lt_cv_aix_libpath+set}"; then
10715  aix_libpath=$lt_cv_aix_libpath
10716else
10717  if ${lt_cv_aix_libpath_+:} false; then :
10718  $as_echo_n "(cached) " >&6
10719else
10720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721/* end confdefs.h.  */
10722
10723int
10724main ()
10725{
10726
10727  ;
10728  return 0;
10729}
10730_ACEOF
10731if ac_fn_c_try_link "$LINENO"; then :
10732
10733  lt_aix_libpath_sed='
10734      /Import File Strings/,/^$/ {
10735	  /^0/ {
10736	      s/^0  *\([^ ]*\) *$/\1/
10737	      p
10738	  }
10739      }'
10740  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10741  # Check for a 64-bit object if we didn't find anything.
10742  if test -z "$lt_cv_aix_libpath_"; then
10743    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10744  fi
10745fi
10746rm -f core conftest.err conftest.$ac_objext \
10747    conftest$ac_exeext conftest.$ac_ext
10748  if test -z "$lt_cv_aix_libpath_"; then
10749    lt_cv_aix_libpath_=/usr/lib:/lib
10750  fi
10751
10752fi
10753
10754  aix_libpath=$lt_cv_aix_libpath_
10755fi
10756
10757	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10758	  # Warning - without using the other run time loading flags,
10759	  # -berok will link without error, but may produce a broken library.
10760	  no_undefined_flag=' $wl-bernotok'
10761	  allow_undefined_flag=' $wl-berok'
10762	  if test yes = "$with_gnu_ld"; then
10763	    # We only use this code for GNU lds that support --whole-archive.
10764	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10765	  else
10766	    # Exported symbols can be pulled into shared objects from archives
10767	    whole_archive_flag_spec='$convenience'
10768	  fi
10769	  archive_cmds_need_lc=yes
10770	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10771	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10772	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10773	  if test svr4 != "$with_aix_soname"; then
10774	    # This is similar to how AIX traditionally builds its shared libraries.
10775	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10776	  fi
10777	  if test aix != "$with_aix_soname"; then
10778	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10779	  else
10780	    # used by -dlpreopen to get the symbols
10781	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10782	  fi
10783	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10784	fi
10785      fi
10786      ;;
10787
10788    amigaos*)
10789      case $host_cpu in
10790      powerpc)
10791            # see comment about AmigaOS4 .so support
10792            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10793            archive_expsym_cmds=''
10794        ;;
10795      m68k)
10796            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)'
10797            hardcode_libdir_flag_spec='-L$libdir'
10798            hardcode_minus_L=yes
10799        ;;
10800      esac
10801      ;;
10802
10803    bsdi[45]*)
10804      export_dynamic_flag_spec=-rdynamic
10805      ;;
10806
10807    cygwin* | mingw* | pw32* | cegcc*)
10808      # When not using gcc, we currently assume that we are using
10809      # Microsoft Visual C++.
10810      # hardcode_libdir_flag_spec is actually meaningless, as there is
10811      # no search path for DLLs.
10812      case $cc_basename in
10813      cl*)
10814	# Native MSVC
10815	hardcode_libdir_flag_spec=' '
10816	allow_undefined_flag=unsupported
10817	always_export_symbols=yes
10818	file_list_spec='@'
10819	# Tell ltmain to make .lib files, not .a files.
10820	libext=lib
10821	# Tell ltmain to make .dll files, not .so files.
10822	shrext_cmds=.dll
10823	# FIXME: Setting linknames here is a bad hack.
10824	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10825	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10826            cp "$export_symbols" "$output_objdir/$soname.def";
10827            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10828          else
10829            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10830          fi~
10831          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10832          linknames='
10833	# The linker will not automatically build a static lib if we build a DLL.
10834	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10835	enable_shared_with_static_runtimes=yes
10836	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10837	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10838	# Don't use ranlib
10839	old_postinstall_cmds='chmod 644 $oldlib'
10840	postlink_cmds='lt_outputfile="@OUTPUT@"~
10841          lt_tool_outputfile="@TOOL_OUTPUT@"~
10842          case $lt_outputfile in
10843            *.exe|*.EXE) ;;
10844            *)
10845              lt_outputfile=$lt_outputfile.exe
10846              lt_tool_outputfile=$lt_tool_outputfile.exe
10847              ;;
10848          esac~
10849          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10850            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10851            $RM "$lt_outputfile.manifest";
10852          fi'
10853	;;
10854      *)
10855	# Assume MSVC wrapper
10856	hardcode_libdir_flag_spec=' '
10857	allow_undefined_flag=unsupported
10858	# Tell ltmain to make .lib files, not .a files.
10859	libext=lib
10860	# Tell ltmain to make .dll files, not .so files.
10861	shrext_cmds=.dll
10862	# FIXME: Setting linknames here is a bad hack.
10863	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10864	# The linker will automatically build a .lib file if we build a DLL.
10865	old_archive_from_new_cmds='true'
10866	# FIXME: Should let the user specify the lib program.
10867	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10868	enable_shared_with_static_runtimes=yes
10869	;;
10870      esac
10871      ;;
10872
10873    darwin* | rhapsody*)
10874
10875
10876  archive_cmds_need_lc=no
10877  hardcode_direct=no
10878  hardcode_automatic=yes
10879  hardcode_shlibpath_var=unsupported
10880  if test yes = "$lt_cv_ld_force_load"; then
10881    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\"`'
10882
10883  else
10884    whole_archive_flag_spec=''
10885  fi
10886  link_all_deplibs=yes
10887  allow_undefined_flag=$_lt_dar_allow_undefined
10888  case $cc_basename in
10889     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10890     *) _lt_dar_can_shared=$GCC ;;
10891  esac
10892  if test yes = "$_lt_dar_can_shared"; then
10893    output_verbose_link_cmd=func_echo_all
10894    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10895    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10896    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"
10897    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"
10898
10899  else
10900  ld_shlibs=no
10901  fi
10902
10903      ;;
10904
10905    dgux*)
10906      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10907      hardcode_libdir_flag_spec='-L$libdir'
10908      hardcode_shlibpath_var=no
10909      ;;
10910
10911    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10912    # support.  Future versions do this automatically, but an explicit c++rt0.o
10913    # does not break anything, and helps significantly (at the cost of a little
10914    # extra space).
10915    freebsd2.2*)
10916      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10917      hardcode_libdir_flag_spec='-R$libdir'
10918      hardcode_direct=yes
10919      hardcode_shlibpath_var=no
10920      ;;
10921
10922    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10923    freebsd2.*)
10924      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10925      hardcode_direct=yes
10926      hardcode_minus_L=yes
10927      hardcode_shlibpath_var=no
10928      ;;
10929
10930    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10931    freebsd* | dragonfly*)
10932      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10933      hardcode_libdir_flag_spec='-R$libdir'
10934      hardcode_direct=yes
10935      hardcode_shlibpath_var=no
10936      ;;
10937
10938    hpux9*)
10939      if test yes = "$GCC"; then
10940	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10941      else
10942	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10943      fi
10944      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10945      hardcode_libdir_separator=:
10946      hardcode_direct=yes
10947
10948      # hardcode_minus_L: Not really in the search PATH,
10949      # but as the default location of the library.
10950      hardcode_minus_L=yes
10951      export_dynamic_flag_spec='$wl-E'
10952      ;;
10953
10954    hpux10*)
10955      if test yes,no = "$GCC,$with_gnu_ld"; then
10956	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10957      else
10958	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10959      fi
10960      if test no = "$with_gnu_ld"; then
10961	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10962	hardcode_libdir_separator=:
10963	hardcode_direct=yes
10964	hardcode_direct_absolute=yes
10965	export_dynamic_flag_spec='$wl-E'
10966	# hardcode_minus_L: Not really in the search PATH,
10967	# but as the default location of the library.
10968	hardcode_minus_L=yes
10969      fi
10970      ;;
10971
10972    hpux11*)
10973      if test yes,no = "$GCC,$with_gnu_ld"; then
10974	case $host_cpu in
10975	hppa*64*)
10976	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10977	  ;;
10978	ia64*)
10979	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10980	  ;;
10981	*)
10982	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10983	  ;;
10984	esac
10985      else
10986	case $host_cpu in
10987	hppa*64*)
10988	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10989	  ;;
10990	ia64*)
10991	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10992	  ;;
10993	*)
10994
10995	  # Older versions of the 11.00 compiler do not understand -b yet
10996	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10997	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10998$as_echo_n "checking if $CC understands -b... " >&6; }
10999if ${lt_cv_prog_compiler__b+:} false; then :
11000  $as_echo_n "(cached) " >&6
11001else
11002  lt_cv_prog_compiler__b=no
11003   save_LDFLAGS=$LDFLAGS
11004   LDFLAGS="$LDFLAGS -b"
11005   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11006   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11007     # The linker can only warn and ignore the option if not recognized
11008     # So say no if there are warnings
11009     if test -s conftest.err; then
11010       # Append any errors to the config.log.
11011       cat conftest.err 1>&5
11012       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11013       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11014       if diff conftest.exp conftest.er2 >/dev/null; then
11015         lt_cv_prog_compiler__b=yes
11016       fi
11017     else
11018       lt_cv_prog_compiler__b=yes
11019     fi
11020   fi
11021   $RM -r conftest*
11022   LDFLAGS=$save_LDFLAGS
11023
11024fi
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11026$as_echo "$lt_cv_prog_compiler__b" >&6; }
11027
11028if test yes = "$lt_cv_prog_compiler__b"; then
11029    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11030else
11031    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11032fi
11033
11034	  ;;
11035	esac
11036      fi
11037      if test no = "$with_gnu_ld"; then
11038	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11039	hardcode_libdir_separator=:
11040
11041	case $host_cpu in
11042	hppa*64*|ia64*)
11043	  hardcode_direct=no
11044	  hardcode_shlibpath_var=no
11045	  ;;
11046	*)
11047	  hardcode_direct=yes
11048	  hardcode_direct_absolute=yes
11049	  export_dynamic_flag_spec='$wl-E'
11050
11051	  # hardcode_minus_L: Not really in the search PATH,
11052	  # but as the default location of the library.
11053	  hardcode_minus_L=yes
11054	  ;;
11055	esac
11056      fi
11057      ;;
11058
11059    irix5* | irix6* | nonstopux*)
11060      if test yes = "$GCC"; then
11061	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'
11062	# Try to use the -exported_symbol ld option, if it does not
11063	# work, assume that -exports_file does not work either and
11064	# implicitly export all symbols.
11065	# This should be the same for all languages, so no per-tag cache variable.
11066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11067$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11068if ${lt_cv_irix_exported_symbol+:} false; then :
11069  $as_echo_n "(cached) " >&6
11070else
11071  save_LDFLAGS=$LDFLAGS
11072	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11073	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074/* end confdefs.h.  */
11075int foo (void) { return 0; }
11076_ACEOF
11077if ac_fn_c_try_link "$LINENO"; then :
11078  lt_cv_irix_exported_symbol=yes
11079else
11080  lt_cv_irix_exported_symbol=no
11081fi
11082rm -f core conftest.err conftest.$ac_objext \
11083    conftest$ac_exeext conftest.$ac_ext
11084           LDFLAGS=$save_LDFLAGS
11085fi
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11087$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11088	if test yes = "$lt_cv_irix_exported_symbol"; then
11089          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'
11090	fi
11091	link_all_deplibs=no
11092      else
11093	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'
11094	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'
11095      fi
11096      archive_cmds_need_lc='no'
11097      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11098      hardcode_libdir_separator=:
11099      inherit_rpath=yes
11100      link_all_deplibs=yes
11101      ;;
11102
11103    linux*)
11104      case $cc_basename in
11105      tcc*)
11106	# Fabrice Bellard et al's Tiny C Compiler
11107	ld_shlibs=yes
11108	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11109	;;
11110      esac
11111      ;;
11112
11113    netbsd* | netbsdelf*-gnu)
11114      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11115	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11116      else
11117	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11118      fi
11119      hardcode_libdir_flag_spec='-R$libdir'
11120      hardcode_direct=yes
11121      hardcode_shlibpath_var=no
11122      ;;
11123
11124    newsos6)
11125      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11126      hardcode_direct=yes
11127      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11128      hardcode_libdir_separator=:
11129      hardcode_shlibpath_var=no
11130      ;;
11131
11132    *nto* | *qnx*)
11133      ;;
11134
11135    openbsd* | bitrig*)
11136      if test -f /usr/libexec/ld.so; then
11137	hardcode_direct=yes
11138	hardcode_shlibpath_var=no
11139	hardcode_direct_absolute=yes
11140	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11141	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11142	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11143	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11144	  export_dynamic_flag_spec='$wl-E'
11145	else
11146	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11147	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11148	fi
11149      else
11150	ld_shlibs=no
11151      fi
11152      ;;
11153
11154    os2*)
11155      hardcode_libdir_flag_spec='-L$libdir'
11156      hardcode_minus_L=yes
11157      allow_undefined_flag=unsupported
11158      shrext_cmds=.dll
11159      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11160	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11161	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11162	$ECHO EXPORTS >> $output_objdir/$libname.def~
11163	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11164	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11165	emximp -o $lib $output_objdir/$libname.def'
11166      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11167	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11168	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11169	$ECHO EXPORTS >> $output_objdir/$libname.def~
11170	prefix_cmds="$SED"~
11171	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11172	  prefix_cmds="$prefix_cmds -e 1d";
11173	fi~
11174	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11175	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11176	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11177	emximp -o $lib $output_objdir/$libname.def'
11178      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11179      enable_shared_with_static_runtimes=yes
11180      ;;
11181
11182    osf3*)
11183      if test yes = "$GCC"; then
11184	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11185	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'
11186      else
11187	allow_undefined_flag=' -expect_unresolved \*'
11188	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'
11189      fi
11190      archive_cmds_need_lc='no'
11191      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11192      hardcode_libdir_separator=:
11193      ;;
11194
11195    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11196      if test yes = "$GCC"; then
11197	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11198	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'
11199	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11200      else
11201	allow_undefined_flag=' -expect_unresolved \*'
11202	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'
11203	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~
11204          $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'
11205
11206	# Both c and cxx compiler support -rpath directly
11207	hardcode_libdir_flag_spec='-rpath $libdir'
11208      fi
11209      archive_cmds_need_lc='no'
11210      hardcode_libdir_separator=:
11211      ;;
11212
11213    solaris*)
11214      no_undefined_flag=' -z defs'
11215      if test yes = "$GCC"; then
11216	wlarc='$wl'
11217	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11218	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11219          $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'
11220      else
11221	case `$CC -V 2>&1` in
11222	*"Compilers 5.0"*)
11223	  wlarc=''
11224	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11225	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11226            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11227	  ;;
11228	*)
11229	  wlarc='$wl'
11230	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11231	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11232            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11233	  ;;
11234	esac
11235      fi
11236      hardcode_libdir_flag_spec='-R$libdir'
11237      hardcode_shlibpath_var=no
11238      case $host_os in
11239      solaris2.[0-5] | solaris2.[0-5].*) ;;
11240      *)
11241	# The compiler driver will combine and reorder linker options,
11242	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11243	# but is careful enough not to reorder.
11244	# Supported since Solaris 2.6 (maybe 2.5.1?)
11245	if test yes = "$GCC"; then
11246	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11247	else
11248	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11249	fi
11250	;;
11251      esac
11252      link_all_deplibs=yes
11253      ;;
11254
11255    sunos4*)
11256      if test sequent = "$host_vendor"; then
11257	# Use $CC to link under sequent, because it throws in some extra .o
11258	# files that make .init and .fini sections work.
11259	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11260      else
11261	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11262      fi
11263      hardcode_libdir_flag_spec='-L$libdir'
11264      hardcode_direct=yes
11265      hardcode_minus_L=yes
11266      hardcode_shlibpath_var=no
11267      ;;
11268
11269    sysv4)
11270      case $host_vendor in
11271	sni)
11272	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11273	  hardcode_direct=yes # is this really true???
11274	;;
11275	siemens)
11276	  ## LD is ld it makes a PLAMLIB
11277	  ## CC just makes a GrossModule.
11278	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11279	  reload_cmds='$CC -r -o $output$reload_objs'
11280	  hardcode_direct=no
11281        ;;
11282	motorola)
11283	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11284	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11285	;;
11286      esac
11287      runpath_var='LD_RUN_PATH'
11288      hardcode_shlibpath_var=no
11289      ;;
11290
11291    sysv4.3*)
11292      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11293      hardcode_shlibpath_var=no
11294      export_dynamic_flag_spec='-Bexport'
11295      ;;
11296
11297    sysv4*MP*)
11298      if test -d /usr/nec; then
11299	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11300	hardcode_shlibpath_var=no
11301	runpath_var=LD_RUN_PATH
11302	hardcode_runpath_var=yes
11303	ld_shlibs=yes
11304      fi
11305      ;;
11306
11307    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11308      no_undefined_flag='$wl-z,text'
11309      archive_cmds_need_lc=no
11310      hardcode_shlibpath_var=no
11311      runpath_var='LD_RUN_PATH'
11312
11313      if test yes = "$GCC"; then
11314	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11315	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11316      else
11317	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11318	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11319      fi
11320      ;;
11321
11322    sysv5* | sco3.2v5* | sco5v6*)
11323      # Note: We CANNOT use -z defs as we might desire, because we do not
11324      # link with -lc, and that would cause any symbols used from libc to
11325      # always be unresolved, which means just about no library would
11326      # ever link correctly.  If we're not using GNU ld we use -z text
11327      # though, which does catch some bad symbols but isn't as heavy-handed
11328      # as -z defs.
11329      no_undefined_flag='$wl-z,text'
11330      allow_undefined_flag='$wl-z,nodefs'
11331      archive_cmds_need_lc=no
11332      hardcode_shlibpath_var=no
11333      hardcode_libdir_flag_spec='$wl-R,$libdir'
11334      hardcode_libdir_separator=':'
11335      link_all_deplibs=yes
11336      export_dynamic_flag_spec='$wl-Bexport'
11337      runpath_var='LD_RUN_PATH'
11338
11339      if test yes = "$GCC"; then
11340	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11341	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11342      else
11343	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11344	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11345      fi
11346      ;;
11347
11348    uts4*)
11349      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11350      hardcode_libdir_flag_spec='-L$libdir'
11351      hardcode_shlibpath_var=no
11352      ;;
11353
11354    *)
11355      ld_shlibs=no
11356      ;;
11357    esac
11358
11359    if test sni = "$host_vendor"; then
11360      case $host in
11361      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11362	export_dynamic_flag_spec='$wl-Blargedynsym'
11363	;;
11364      esac
11365    fi
11366  fi
11367
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11369$as_echo "$ld_shlibs" >&6; }
11370test no = "$ld_shlibs" && can_build_shared=no
11371
11372with_gnu_ld=$with_gnu_ld
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388#
11389# Do we need to explicitly link libc?
11390#
11391case "x$archive_cmds_need_lc" in
11392x|xyes)
11393  # Assume -lc should be added
11394  archive_cmds_need_lc=yes
11395
11396  if test yes,yes = "$GCC,$enable_shared"; then
11397    case $archive_cmds in
11398    *'~'*)
11399      # FIXME: we may have to deal with multi-command sequences.
11400      ;;
11401    '$CC '*)
11402      # Test whether the compiler implicitly links with -lc since on some
11403      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11404      # to ld, don't add -lc before -lgcc.
11405      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11406$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11407if ${lt_cv_archive_cmds_need_lc+:} false; then :
11408  $as_echo_n "(cached) " >&6
11409else
11410  $RM conftest*
11411	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11412
11413	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11414  (eval $ac_compile) 2>&5
11415  ac_status=$?
11416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11417  test $ac_status = 0; } 2>conftest.err; then
11418	  soname=conftest
11419	  lib=conftest
11420	  libobjs=conftest.$ac_objext
11421	  deplibs=
11422	  wl=$lt_prog_compiler_wl
11423	  pic_flag=$lt_prog_compiler_pic
11424	  compiler_flags=-v
11425	  linker_flags=-v
11426	  verstring=
11427	  output_objdir=.
11428	  libname=conftest
11429	  lt_save_allow_undefined_flag=$allow_undefined_flag
11430	  allow_undefined_flag=
11431	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11432  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11433  ac_status=$?
11434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11435  test $ac_status = 0; }
11436	  then
11437	    lt_cv_archive_cmds_need_lc=no
11438	  else
11439	    lt_cv_archive_cmds_need_lc=yes
11440	  fi
11441	  allow_undefined_flag=$lt_save_allow_undefined_flag
11442	else
11443	  cat conftest.err 1>&5
11444	fi
11445	$RM conftest*
11446
11447fi
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11449$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11450      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11451      ;;
11452    esac
11453  fi
11454  ;;
11455esac
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11609$as_echo_n "checking dynamic linker characteristics... " >&6; }
11610
11611if test yes = "$GCC"; then
11612  case $host_os in
11613    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11614    *) lt_awk_arg='/^libraries:/' ;;
11615  esac
11616  case $host_os in
11617    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11618    *) lt_sed_strip_eq='s|=/|/|g' ;;
11619  esac
11620  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11621  case $lt_search_path_spec in
11622  *\;*)
11623    # if the path contains ";" then we assume it to be the separator
11624    # otherwise default to the standard path separator (i.e. ":") - it is
11625    # assumed that no part of a normal pathname contains ";" but that should
11626    # okay in the real world where ";" in dirpaths is itself problematic.
11627    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11628    ;;
11629  *)
11630    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11631    ;;
11632  esac
11633  # Ok, now we have the path, separated by spaces, we can step through it
11634  # and add multilib dir if necessary...
11635  lt_tmp_lt_search_path_spec=
11636  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11637  # ...but if some path component already ends with the multilib dir we assume
11638  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11639  case "$lt_multi_os_dir; $lt_search_path_spec " in
11640  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11641    lt_multi_os_dir=
11642    ;;
11643  esac
11644  for lt_sys_path in $lt_search_path_spec; do
11645    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11646      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11647    elif test -n "$lt_multi_os_dir"; then
11648      test -d "$lt_sys_path" && \
11649	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11650    fi
11651  done
11652  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11653BEGIN {RS = " "; FS = "/|\n";} {
11654  lt_foo = "";
11655  lt_count = 0;
11656  for (lt_i = NF; lt_i > 0; lt_i--) {
11657    if ($lt_i != "" && $lt_i != ".") {
11658      if ($lt_i == "..") {
11659        lt_count++;
11660      } else {
11661        if (lt_count == 0) {
11662          lt_foo = "/" $lt_i lt_foo;
11663        } else {
11664          lt_count--;
11665        }
11666      }
11667    }
11668  }
11669  if (lt_foo != "") { lt_freq[lt_foo]++; }
11670  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11671}'`
11672  # AWK program above erroneously prepends '/' to C:/dos/paths
11673  # for these hosts.
11674  case $host_os in
11675    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11676      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11677  esac
11678  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11679else
11680  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11681fi
11682library_names_spec=
11683libname_spec='lib$name'
11684soname_spec=
11685shrext_cmds=.so
11686postinstall_cmds=
11687postuninstall_cmds=
11688finish_cmds=
11689finish_eval=
11690shlibpath_var=
11691shlibpath_overrides_runpath=unknown
11692version_type=none
11693dynamic_linker="$host_os ld.so"
11694sys_lib_dlsearch_path_spec="/lib /usr/lib"
11695need_lib_prefix=unknown
11696hardcode_into_libs=no
11697
11698# when you set need_version to no, make sure it does not cause -set_version
11699# flags to be left without arguments
11700need_version=unknown
11701
11702
11703
11704case $host_os in
11705aix3*)
11706  version_type=linux # correct to gnu/linux during the next big refactor
11707  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11708  shlibpath_var=LIBPATH
11709
11710  # AIX 3 has no versioning support, so we append a major version to the name.
11711  soname_spec='$libname$release$shared_ext$major'
11712  ;;
11713
11714aix[4-9]*)
11715  version_type=linux # correct to gnu/linux during the next big refactor
11716  need_lib_prefix=no
11717  need_version=no
11718  hardcode_into_libs=yes
11719  if test ia64 = "$host_cpu"; then
11720    # AIX 5 supports IA64
11721    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11722    shlibpath_var=LD_LIBRARY_PATH
11723  else
11724    # With GCC up to 2.95.x, collect2 would create an import file
11725    # for dependence libraries.  The import file would start with
11726    # the line '#! .'.  This would cause the generated library to
11727    # depend on '.', always an invalid library.  This was fixed in
11728    # development snapshots of GCC prior to 3.0.
11729    case $host_os in
11730      aix4 | aix4.[01] | aix4.[01].*)
11731      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11732	   echo ' yes '
11733	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11734	:
11735      else
11736	can_build_shared=no
11737      fi
11738      ;;
11739    esac
11740    # Using Import Files as archive members, it is possible to support
11741    # filename-based versioning of shared library archives on AIX. While
11742    # this would work for both with and without runtime linking, it will
11743    # prevent static linking of such archives. So we do filename-based
11744    # shared library versioning with .so extension only, which is used
11745    # when both runtime linking and shared linking is enabled.
11746    # Unfortunately, runtime linking may impact performance, so we do
11747    # not want this to be the default eventually. Also, we use the
11748    # versioned .so libs for executables only if there is the -brtl
11749    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11750    # To allow for filename-based versioning support, we need to create
11751    # libNAME.so.V as an archive file, containing:
11752    # *) an Import File, referring to the versioned filename of the
11753    #    archive as well as the shared archive member, telling the
11754    #    bitwidth (32 or 64) of that shared object, and providing the
11755    #    list of exported symbols of that shared object, eventually
11756    #    decorated with the 'weak' keyword
11757    # *) the shared object with the F_LOADONLY flag set, to really avoid
11758    #    it being seen by the linker.
11759    # At run time we better use the real file rather than another symlink,
11760    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11761
11762    case $with_aix_soname,$aix_use_runtimelinking in
11763    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11764    # soname into executable. Probably we can add versioning support to
11765    # collect2, so additional links can be useful in future.
11766    aix,yes) # traditional libtool
11767      dynamic_linker='AIX unversionable lib.so'
11768      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11769      # instead of lib<name>.a to let people know that these are not
11770      # typical AIX shared libraries.
11771      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11772      ;;
11773    aix,no) # traditional AIX only
11774      dynamic_linker='AIX lib.a(lib.so.V)'
11775      # We preserve .a as extension for shared libraries through AIX4.2
11776      # and later when we are not doing run time linking.
11777      library_names_spec='$libname$release.a $libname.a'
11778      soname_spec='$libname$release$shared_ext$major'
11779      ;;
11780    svr4,*) # full svr4 only
11781      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11782      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11783      # We do not specify a path in Import Files, so LIBPATH fires.
11784      shlibpath_overrides_runpath=yes
11785      ;;
11786    *,yes) # both, prefer svr4
11787      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11788      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11789      # unpreferred sharedlib libNAME.a needs extra handling
11790      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11791      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11792      # We do not specify a path in Import Files, so LIBPATH fires.
11793      shlibpath_overrides_runpath=yes
11794      ;;
11795    *,no) # both, prefer aix
11796      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11797      library_names_spec='$libname$release.a $libname.a'
11798      soname_spec='$libname$release$shared_ext$major'
11799      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11800      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11801      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11802      ;;
11803    esac
11804    shlibpath_var=LIBPATH
11805  fi
11806  ;;
11807
11808amigaos*)
11809  case $host_cpu in
11810  powerpc)
11811    # Since July 2007 AmigaOS4 officially supports .so libraries.
11812    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11813    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11814    ;;
11815  m68k)
11816    library_names_spec='$libname.ixlibrary $libname.a'
11817    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11818    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11819    ;;
11820  esac
11821  ;;
11822
11823beos*)
11824  library_names_spec='$libname$shared_ext'
11825  dynamic_linker="$host_os ld.so"
11826  shlibpath_var=LIBRARY_PATH
11827  ;;
11828
11829bsdi[45]*)
11830  version_type=linux # correct to gnu/linux during the next big refactor
11831  need_version=no
11832  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11833  soname_spec='$libname$release$shared_ext$major'
11834  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11835  shlibpath_var=LD_LIBRARY_PATH
11836  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11837  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11838  # the default ld.so.conf also contains /usr/contrib/lib and
11839  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11840  # libtool to hard-code these into programs
11841  ;;
11842
11843cygwin* | mingw* | pw32* | cegcc*)
11844  version_type=windows
11845  shrext_cmds=.dll
11846  need_version=no
11847  need_lib_prefix=no
11848
11849  case $GCC,$cc_basename in
11850  yes,*)
11851    # gcc
11852    library_names_spec='$libname.dll.a'
11853    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11854    postinstall_cmds='base_file=`basename \$file`~
11855      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11856      dldir=$destdir/`dirname \$dlpath`~
11857      test -d \$dldir || mkdir -p \$dldir~
11858      $install_prog $dir/$dlname \$dldir/$dlname~
11859      chmod a+x \$dldir/$dlname~
11860      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11861        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11862      fi'
11863    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11864      dlpath=$dir/\$dldll~
11865       $RM \$dlpath'
11866    shlibpath_overrides_runpath=yes
11867
11868    case $host_os in
11869    cygwin*)
11870      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11871      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11872
11873      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11874      ;;
11875    mingw* | cegcc*)
11876      # MinGW DLLs use traditional 'lib' prefix
11877      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11878      ;;
11879    pw32*)
11880      # pw32 DLLs use 'pw' prefix rather than 'lib'
11881      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11882      ;;
11883    esac
11884    dynamic_linker='Win32 ld.exe'
11885    ;;
11886
11887  *,cl*)
11888    # Native MSVC
11889    libname_spec='$name'
11890    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11891    library_names_spec='$libname.dll.lib'
11892
11893    case $build_os in
11894    mingw*)
11895      sys_lib_search_path_spec=
11896      lt_save_ifs=$IFS
11897      IFS=';'
11898      for lt_path in $LIB
11899      do
11900        IFS=$lt_save_ifs
11901        # Let DOS variable expansion print the short 8.3 style file name.
11902        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11903        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11904      done
11905      IFS=$lt_save_ifs
11906      # Convert to MSYS style.
11907      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11908      ;;
11909    cygwin*)
11910      # Convert to unix form, then to dos form, then back to unix form
11911      # but this time dos style (no spaces!) so that the unix form looks
11912      # like /cygdrive/c/PROGRA~1:/cygdr...
11913      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11914      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11915      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11916      ;;
11917    *)
11918      sys_lib_search_path_spec=$LIB
11919      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11920        # It is most probably a Windows format PATH.
11921        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11922      else
11923        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11924      fi
11925      # FIXME: find the short name or the path components, as spaces are
11926      # common. (e.g. "Program Files" -> "PROGRA~1")
11927      ;;
11928    esac
11929
11930    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11931    postinstall_cmds='base_file=`basename \$file`~
11932      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11933      dldir=$destdir/`dirname \$dlpath`~
11934      test -d \$dldir || mkdir -p \$dldir~
11935      $install_prog $dir/$dlname \$dldir/$dlname'
11936    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11937      dlpath=$dir/\$dldll~
11938       $RM \$dlpath'
11939    shlibpath_overrides_runpath=yes
11940    dynamic_linker='Win32 link.exe'
11941    ;;
11942
11943  *)
11944    # Assume MSVC wrapper
11945    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11946    dynamic_linker='Win32 ld.exe'
11947    ;;
11948  esac
11949  # FIXME: first we should search . and the directory the executable is in
11950  shlibpath_var=PATH
11951  ;;
11952
11953darwin* | rhapsody*)
11954  dynamic_linker="$host_os dyld"
11955  version_type=darwin
11956  need_lib_prefix=no
11957  need_version=no
11958  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11959  soname_spec='$libname$release$major$shared_ext'
11960  shlibpath_overrides_runpath=yes
11961  shlibpath_var=DYLD_LIBRARY_PATH
11962  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11963
11964  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11965  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11966  ;;
11967
11968dgux*)
11969  version_type=linux # correct to gnu/linux during the next big refactor
11970  need_lib_prefix=no
11971  need_version=no
11972  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11973  soname_spec='$libname$release$shared_ext$major'
11974  shlibpath_var=LD_LIBRARY_PATH
11975  ;;
11976
11977freebsd* | dragonfly*)
11978  # DragonFly does not have aout.  When/if they implement a new
11979  # versioning mechanism, adjust this.
11980  if test -x /usr/bin/objformat; then
11981    objformat=`/usr/bin/objformat`
11982  else
11983    case $host_os in
11984    freebsd[23].*) objformat=aout ;;
11985    *) objformat=elf ;;
11986    esac
11987  fi
11988  version_type=freebsd-$objformat
11989  case $version_type in
11990    freebsd-elf*)
11991      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11992      soname_spec='$libname$release$shared_ext$major'
11993      need_version=no
11994      need_lib_prefix=no
11995      ;;
11996    freebsd-*)
11997      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11998      need_version=yes
11999      ;;
12000  esac
12001  shlibpath_var=LD_LIBRARY_PATH
12002  case $host_os in
12003  freebsd2.*)
12004    shlibpath_overrides_runpath=yes
12005    ;;
12006  freebsd3.[01]* | freebsdelf3.[01]*)
12007    shlibpath_overrides_runpath=yes
12008    hardcode_into_libs=yes
12009    ;;
12010  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12011  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12012    shlibpath_overrides_runpath=no
12013    hardcode_into_libs=yes
12014    ;;
12015  *) # from 4.6 on, and DragonFly
12016    shlibpath_overrides_runpath=yes
12017    hardcode_into_libs=yes
12018    ;;
12019  esac
12020  ;;
12021
12022haiku*)
12023  version_type=linux # correct to gnu/linux during the next big refactor
12024  need_lib_prefix=no
12025  need_version=no
12026  dynamic_linker="$host_os runtime_loader"
12027  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12028  soname_spec='$libname$release$shared_ext$major'
12029  shlibpath_var=LIBRARY_PATH
12030  shlibpath_overrides_runpath=no
12031  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12032  hardcode_into_libs=yes
12033  ;;
12034
12035hpux9* | hpux10* | hpux11*)
12036  # Give a soname corresponding to the major version so that dld.sl refuses to
12037  # link against other versions.
12038  version_type=sunos
12039  need_lib_prefix=no
12040  need_version=no
12041  case $host_cpu in
12042  ia64*)
12043    shrext_cmds='.so'
12044    hardcode_into_libs=yes
12045    dynamic_linker="$host_os dld.so"
12046    shlibpath_var=LD_LIBRARY_PATH
12047    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12048    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12049    soname_spec='$libname$release$shared_ext$major'
12050    if test 32 = "$HPUX_IA64_MODE"; then
12051      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12052      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12053    else
12054      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12055      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12056    fi
12057    ;;
12058  hppa*64*)
12059    shrext_cmds='.sl'
12060    hardcode_into_libs=yes
12061    dynamic_linker="$host_os dld.sl"
12062    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12063    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12064    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12065    soname_spec='$libname$release$shared_ext$major'
12066    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12067    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12068    ;;
12069  *)
12070    shrext_cmds='.sl'
12071    dynamic_linker="$host_os dld.sl"
12072    shlibpath_var=SHLIB_PATH
12073    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12074    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12075    soname_spec='$libname$release$shared_ext$major'
12076    ;;
12077  esac
12078  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12079  postinstall_cmds='chmod 555 $lib'
12080  # or fails outright, so override atomically:
12081  install_override_mode=555
12082  ;;
12083
12084interix[3-9]*)
12085  version_type=linux # correct to gnu/linux during the next big refactor
12086  need_lib_prefix=no
12087  need_version=no
12088  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12089  soname_spec='$libname$release$shared_ext$major'
12090  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12091  shlibpath_var=LD_LIBRARY_PATH
12092  shlibpath_overrides_runpath=no
12093  hardcode_into_libs=yes
12094  ;;
12095
12096irix5* | irix6* | nonstopux*)
12097  case $host_os in
12098    nonstopux*) version_type=nonstopux ;;
12099    *)
12100	if test yes = "$lt_cv_prog_gnu_ld"; then
12101		version_type=linux # correct to gnu/linux during the next big refactor
12102	else
12103		version_type=irix
12104	fi ;;
12105  esac
12106  need_lib_prefix=no
12107  need_version=no
12108  soname_spec='$libname$release$shared_ext$major'
12109  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12110  case $host_os in
12111  irix5* | nonstopux*)
12112    libsuff= shlibsuff=
12113    ;;
12114  *)
12115    case $LD in # libtool.m4 will add one of these switches to LD
12116    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12117      libsuff= shlibsuff= libmagic=32-bit;;
12118    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12119      libsuff=32 shlibsuff=N32 libmagic=N32;;
12120    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12121      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12122    *) libsuff= shlibsuff= libmagic=never-match;;
12123    esac
12124    ;;
12125  esac
12126  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12127  shlibpath_overrides_runpath=no
12128  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12129  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12130  hardcode_into_libs=yes
12131  ;;
12132
12133# No shared lib support for Linux oldld, aout, or coff.
12134linux*oldld* | linux*aout* | linux*coff*)
12135  dynamic_linker=no
12136  ;;
12137
12138linux*android*)
12139  version_type=none # Android doesn't support versioned libraries.
12140  need_lib_prefix=no
12141  need_version=no
12142  library_names_spec='$libname$release$shared_ext'
12143  soname_spec='$libname$release$shared_ext'
12144  finish_cmds=
12145  shlibpath_var=LD_LIBRARY_PATH
12146  shlibpath_overrides_runpath=yes
12147
12148  # This implies no fast_install, which is unacceptable.
12149  # Some rework will be needed to allow for fast_install
12150  # before this can be enabled.
12151  hardcode_into_libs=yes
12152
12153  dynamic_linker='Android linker'
12154  # Don't embed -rpath directories since the linker doesn't support them.
12155  hardcode_libdir_flag_spec='-L$libdir'
12156  ;;
12157
12158# This must be glibc/ELF.
12159linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12160  version_type=linux # correct to gnu/linux during the next big refactor
12161  need_lib_prefix=no
12162  need_version=no
12163  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12164  soname_spec='$libname$release$shared_ext$major'
12165  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12166  shlibpath_var=LD_LIBRARY_PATH
12167  shlibpath_overrides_runpath=no
12168
12169  # Some binutils ld are patched to set DT_RUNPATH
12170  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12171  $as_echo_n "(cached) " >&6
12172else
12173  lt_cv_shlibpath_overrides_runpath=no
12174    save_LDFLAGS=$LDFLAGS
12175    save_libdir=$libdir
12176    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12177	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12178    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179/* end confdefs.h.  */
12180
12181int
12182main ()
12183{
12184
12185  ;
12186  return 0;
12187}
12188_ACEOF
12189if ac_fn_c_try_link "$LINENO"; then :
12190  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12191  lt_cv_shlibpath_overrides_runpath=yes
12192fi
12193fi
12194rm -f core conftest.err conftest.$ac_objext \
12195    conftest$ac_exeext conftest.$ac_ext
12196    LDFLAGS=$save_LDFLAGS
12197    libdir=$save_libdir
12198
12199fi
12200
12201  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12202
12203  # This implies no fast_install, which is unacceptable.
12204  # Some rework will be needed to allow for fast_install
12205  # before this can be enabled.
12206  hardcode_into_libs=yes
12207
12208  # Ideally, we could use ldconfig to report *all* directores which are
12209  # searched for libraries, however this is still not possible.  Aside from not
12210  # being certain /sbin/ldconfig is available, command
12211  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12212  # even though it is searched at run-time.  Try to do the best guess by
12213  # appending ld.so.conf contents (and includes) to the search path.
12214  if test -f /etc/ld.so.conf; then
12215    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' ' '`
12216    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12217  fi
12218
12219  # We used to test for /lib/ld.so.1 and disable shared libraries on
12220  # powerpc, because MkLinux only supported shared libraries with the
12221  # GNU dynamic linker.  Since this was broken with cross compilers,
12222  # most powerpc-linux boxes support dynamic linking these days and
12223  # people can always --disable-shared, the test was removed, and we
12224  # assume the GNU/Linux dynamic linker is in use.
12225  dynamic_linker='GNU/Linux ld.so'
12226  ;;
12227
12228netbsdelf*-gnu)
12229  version_type=linux
12230  need_lib_prefix=no
12231  need_version=no
12232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12233  soname_spec='${libname}${release}${shared_ext}$major'
12234  shlibpath_var=LD_LIBRARY_PATH
12235  shlibpath_overrides_runpath=no
12236  hardcode_into_libs=yes
12237  dynamic_linker='NetBSD ld.elf_so'
12238  ;;
12239
12240netbsd*)
12241  version_type=sunos
12242  need_lib_prefix=no
12243  need_version=no
12244  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12245    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12246    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12247    dynamic_linker='NetBSD (a.out) ld.so'
12248  else
12249    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12250    soname_spec='$libname$release$shared_ext$major'
12251    dynamic_linker='NetBSD ld.elf_so'
12252  fi
12253  shlibpath_var=LD_LIBRARY_PATH
12254  shlibpath_overrides_runpath=yes
12255  hardcode_into_libs=yes
12256  ;;
12257
12258newsos6)
12259  version_type=linux # correct to gnu/linux during the next big refactor
12260  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12261  shlibpath_var=LD_LIBRARY_PATH
12262  shlibpath_overrides_runpath=yes
12263  ;;
12264
12265*nto* | *qnx*)
12266  version_type=qnx
12267  need_lib_prefix=no
12268  need_version=no
12269  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12270  soname_spec='$libname$release$shared_ext$major'
12271  shlibpath_var=LD_LIBRARY_PATH
12272  shlibpath_overrides_runpath=no
12273  hardcode_into_libs=yes
12274  dynamic_linker='ldqnx.so'
12275  ;;
12276
12277openbsd* | bitrig*)
12278  version_type=sunos
12279  sys_lib_dlsearch_path_spec=/usr/lib
12280  need_lib_prefix=no
12281  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12282    need_version=no
12283  else
12284    need_version=yes
12285  fi
12286  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12287  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12288  shlibpath_var=LD_LIBRARY_PATH
12289  shlibpath_overrides_runpath=yes
12290  ;;
12291
12292os2*)
12293  libname_spec='$name'
12294  version_type=windows
12295  shrext_cmds=.dll
12296  need_version=no
12297  need_lib_prefix=no
12298  # OS/2 can only load a DLL with a base name of 8 characters or less.
12299  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12300    v=$($ECHO $release$versuffix | tr -d .-);
12301    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12302    $ECHO $n$v`$shared_ext'
12303  library_names_spec='${libname}_dll.$libext'
12304  dynamic_linker='OS/2 ld.exe'
12305  shlibpath_var=BEGINLIBPATH
12306  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12307  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12308  postinstall_cmds='base_file=`basename \$file`~
12309    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12310    dldir=$destdir/`dirname \$dlpath`~
12311    test -d \$dldir || mkdir -p \$dldir~
12312    $install_prog $dir/$dlname \$dldir/$dlname~
12313    chmod a+x \$dldir/$dlname~
12314    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12315      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12316    fi'
12317  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12318    dlpath=$dir/\$dldll~
12319    $RM \$dlpath'
12320  ;;
12321
12322osf3* | osf4* | osf5*)
12323  version_type=osf
12324  need_lib_prefix=no
12325  need_version=no
12326  soname_spec='$libname$release$shared_ext$major'
12327  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12328  shlibpath_var=LD_LIBRARY_PATH
12329  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12330  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12331  ;;
12332
12333rdos*)
12334  dynamic_linker=no
12335  ;;
12336
12337solaris*)
12338  version_type=linux # correct to gnu/linux during the next big refactor
12339  need_lib_prefix=no
12340  need_version=no
12341  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12342  soname_spec='$libname$release$shared_ext$major'
12343  shlibpath_var=LD_LIBRARY_PATH
12344  shlibpath_overrides_runpath=yes
12345  hardcode_into_libs=yes
12346  # ldd complains unless libraries are executable
12347  postinstall_cmds='chmod +x $lib'
12348  ;;
12349
12350sunos4*)
12351  version_type=sunos
12352  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12353  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12354  shlibpath_var=LD_LIBRARY_PATH
12355  shlibpath_overrides_runpath=yes
12356  if test yes = "$with_gnu_ld"; then
12357    need_lib_prefix=no
12358  fi
12359  need_version=yes
12360  ;;
12361
12362sysv4 | sysv4.3*)
12363  version_type=linux # correct to gnu/linux during the next big refactor
12364  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12365  soname_spec='$libname$release$shared_ext$major'
12366  shlibpath_var=LD_LIBRARY_PATH
12367  case $host_vendor in
12368    sni)
12369      shlibpath_overrides_runpath=no
12370      need_lib_prefix=no
12371      runpath_var=LD_RUN_PATH
12372      ;;
12373    siemens)
12374      need_lib_prefix=no
12375      ;;
12376    motorola)
12377      need_lib_prefix=no
12378      need_version=no
12379      shlibpath_overrides_runpath=no
12380      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12381      ;;
12382  esac
12383  ;;
12384
12385sysv4*MP*)
12386  if test -d /usr/nec; then
12387    version_type=linux # correct to gnu/linux during the next big refactor
12388    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12389    soname_spec='$libname$shared_ext.$major'
12390    shlibpath_var=LD_LIBRARY_PATH
12391  fi
12392  ;;
12393
12394sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12395  version_type=sco
12396  need_lib_prefix=no
12397  need_version=no
12398  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12399  soname_spec='$libname$release$shared_ext$major'
12400  shlibpath_var=LD_LIBRARY_PATH
12401  shlibpath_overrides_runpath=yes
12402  hardcode_into_libs=yes
12403  if test yes = "$with_gnu_ld"; then
12404    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12405  else
12406    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12407    case $host_os in
12408      sco3.2v5*)
12409        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12410	;;
12411    esac
12412  fi
12413  sys_lib_dlsearch_path_spec='/usr/lib'
12414  ;;
12415
12416tpf*)
12417  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12418  version_type=linux # correct to gnu/linux during the next big refactor
12419  need_lib_prefix=no
12420  need_version=no
12421  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422  shlibpath_var=LD_LIBRARY_PATH
12423  shlibpath_overrides_runpath=no
12424  hardcode_into_libs=yes
12425  ;;
12426
12427uts4*)
12428  version_type=linux # correct to gnu/linux during the next big refactor
12429  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12430  soname_spec='$libname$release$shared_ext$major'
12431  shlibpath_var=LD_LIBRARY_PATH
12432  ;;
12433
12434*)
12435  dynamic_linker=no
12436  ;;
12437esac
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12439$as_echo "$dynamic_linker" >&6; }
12440test no = "$dynamic_linker" && can_build_shared=no
12441
12442variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12443if test yes = "$GCC"; then
12444  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12445fi
12446
12447if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12448  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12449fi
12450
12451if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12452  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12453fi
12454
12455# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12456configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12457
12458# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12459func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12460
12461# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12462configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12561$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12562hardcode_action=
12563if test -n "$hardcode_libdir_flag_spec" ||
12564   test -n "$runpath_var" ||
12565   test yes = "$hardcode_automatic"; then
12566
12567  # We can hardcode non-existent directories.
12568  if test no != "$hardcode_direct" &&
12569     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12570     # have to relink, otherwise we might link with an installed library
12571     # when we should be linking with a yet-to-be-installed one
12572     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12573     test no != "$hardcode_minus_L"; then
12574    # Linking always hardcodes the temporary library directory.
12575    hardcode_action=relink
12576  else
12577    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12578    hardcode_action=immediate
12579  fi
12580else
12581  # We cannot hardcode anything, or else we can only hardcode existing
12582  # directories.
12583  hardcode_action=unsupported
12584fi
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12586$as_echo "$hardcode_action" >&6; }
12587
12588if test relink = "$hardcode_action" ||
12589   test yes = "$inherit_rpath"; then
12590  # Fast installation is not supported
12591  enable_fast_install=no
12592elif test yes = "$shlibpath_overrides_runpath" ||
12593     test no = "$enable_shared"; then
12594  # Fast installation is not necessary
12595  enable_fast_install=needless
12596fi
12597
12598
12599
12600
12601
12602
12603  if test yes != "$enable_dlopen"; then
12604  enable_dlopen=unknown
12605  enable_dlopen_self=unknown
12606  enable_dlopen_self_static=unknown
12607else
12608  lt_cv_dlopen=no
12609  lt_cv_dlopen_libs=
12610
12611  case $host_os in
12612  beos*)
12613    lt_cv_dlopen=load_add_on
12614    lt_cv_dlopen_libs=
12615    lt_cv_dlopen_self=yes
12616    ;;
12617
12618  mingw* | pw32* | cegcc*)
12619    lt_cv_dlopen=LoadLibrary
12620    lt_cv_dlopen_libs=
12621    ;;
12622
12623  cygwin*)
12624    lt_cv_dlopen=dlopen
12625    lt_cv_dlopen_libs=
12626    ;;
12627
12628  darwin*)
12629    # if libdl is installed we need to link against it
12630    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12631$as_echo_n "checking for dlopen in -ldl... " >&6; }
12632if ${ac_cv_lib_dl_dlopen+:} false; then :
12633  $as_echo_n "(cached) " >&6
12634else
12635  ac_check_lib_save_LIBS=$LIBS
12636LIBS="-ldl  $LIBS"
12637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638/* end confdefs.h.  */
12639
12640/* Override any GCC internal prototype to avoid an error.
12641   Use char because int might match the return type of a GCC
12642   builtin and then its argument prototype would still apply.  */
12643#ifdef __cplusplus
12644extern "C"
12645#endif
12646char dlopen ();
12647int
12648main ()
12649{
12650return dlopen ();
12651  ;
12652  return 0;
12653}
12654_ACEOF
12655if ac_fn_c_try_link "$LINENO"; then :
12656  ac_cv_lib_dl_dlopen=yes
12657else
12658  ac_cv_lib_dl_dlopen=no
12659fi
12660rm -f core conftest.err conftest.$ac_objext \
12661    conftest$ac_exeext conftest.$ac_ext
12662LIBS=$ac_check_lib_save_LIBS
12663fi
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12665$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12666if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12667  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12668else
12669
12670    lt_cv_dlopen=dyld
12671    lt_cv_dlopen_libs=
12672    lt_cv_dlopen_self=yes
12673
12674fi
12675
12676    ;;
12677
12678  tpf*)
12679    # Don't try to run any link tests for TPF.  We know it's impossible
12680    # because TPF is a cross-compiler, and we know how we open DSOs.
12681    lt_cv_dlopen=dlopen
12682    lt_cv_dlopen_libs=
12683    lt_cv_dlopen_self=no
12684    ;;
12685
12686  *)
12687    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12688if test "x$ac_cv_func_shl_load" = xyes; then :
12689  lt_cv_dlopen=shl_load
12690else
12691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12692$as_echo_n "checking for shl_load in -ldld... " >&6; }
12693if ${ac_cv_lib_dld_shl_load+:} false; then :
12694  $as_echo_n "(cached) " >&6
12695else
12696  ac_check_lib_save_LIBS=$LIBS
12697LIBS="-ldld  $LIBS"
12698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699/* end confdefs.h.  */
12700
12701/* Override any GCC internal prototype to avoid an error.
12702   Use char because int might match the return type of a GCC
12703   builtin and then its argument prototype would still apply.  */
12704#ifdef __cplusplus
12705extern "C"
12706#endif
12707char shl_load ();
12708int
12709main ()
12710{
12711return shl_load ();
12712  ;
12713  return 0;
12714}
12715_ACEOF
12716if ac_fn_c_try_link "$LINENO"; then :
12717  ac_cv_lib_dld_shl_load=yes
12718else
12719  ac_cv_lib_dld_shl_load=no
12720fi
12721rm -f core conftest.err conftest.$ac_objext \
12722    conftest$ac_exeext conftest.$ac_ext
12723LIBS=$ac_check_lib_save_LIBS
12724fi
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12726$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12727if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12728  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12729else
12730  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12731if test "x$ac_cv_func_dlopen" = xyes; then :
12732  lt_cv_dlopen=dlopen
12733else
12734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12735$as_echo_n "checking for dlopen in -ldl... " >&6; }
12736if ${ac_cv_lib_dl_dlopen+:} false; then :
12737  $as_echo_n "(cached) " >&6
12738else
12739  ac_check_lib_save_LIBS=$LIBS
12740LIBS="-ldl  $LIBS"
12741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742/* end confdefs.h.  */
12743
12744/* Override any GCC internal prototype to avoid an error.
12745   Use char because int might match the return type of a GCC
12746   builtin and then its argument prototype would still apply.  */
12747#ifdef __cplusplus
12748extern "C"
12749#endif
12750char dlopen ();
12751int
12752main ()
12753{
12754return dlopen ();
12755  ;
12756  return 0;
12757}
12758_ACEOF
12759if ac_fn_c_try_link "$LINENO"; then :
12760  ac_cv_lib_dl_dlopen=yes
12761else
12762  ac_cv_lib_dl_dlopen=no
12763fi
12764rm -f core conftest.err conftest.$ac_objext \
12765    conftest$ac_exeext conftest.$ac_ext
12766LIBS=$ac_check_lib_save_LIBS
12767fi
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12769$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12770if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12771  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12772else
12773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12774$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12775if ${ac_cv_lib_svld_dlopen+:} false; then :
12776  $as_echo_n "(cached) " >&6
12777else
12778  ac_check_lib_save_LIBS=$LIBS
12779LIBS="-lsvld  $LIBS"
12780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781/* end confdefs.h.  */
12782
12783/* Override any GCC internal prototype to avoid an error.
12784   Use char because int might match the return type of a GCC
12785   builtin and then its argument prototype would still apply.  */
12786#ifdef __cplusplus
12787extern "C"
12788#endif
12789char dlopen ();
12790int
12791main ()
12792{
12793return dlopen ();
12794  ;
12795  return 0;
12796}
12797_ACEOF
12798if ac_fn_c_try_link "$LINENO"; then :
12799  ac_cv_lib_svld_dlopen=yes
12800else
12801  ac_cv_lib_svld_dlopen=no
12802fi
12803rm -f core conftest.err conftest.$ac_objext \
12804    conftest$ac_exeext conftest.$ac_ext
12805LIBS=$ac_check_lib_save_LIBS
12806fi
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12808$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12809if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12810  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12811else
12812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12813$as_echo_n "checking for dld_link in -ldld... " >&6; }
12814if ${ac_cv_lib_dld_dld_link+:} false; then :
12815  $as_echo_n "(cached) " >&6
12816else
12817  ac_check_lib_save_LIBS=$LIBS
12818LIBS="-ldld  $LIBS"
12819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820/* end confdefs.h.  */
12821
12822/* Override any GCC internal prototype to avoid an error.
12823   Use char because int might match the return type of a GCC
12824   builtin and then its argument prototype would still apply.  */
12825#ifdef __cplusplus
12826extern "C"
12827#endif
12828char dld_link ();
12829int
12830main ()
12831{
12832return dld_link ();
12833  ;
12834  return 0;
12835}
12836_ACEOF
12837if ac_fn_c_try_link "$LINENO"; then :
12838  ac_cv_lib_dld_dld_link=yes
12839else
12840  ac_cv_lib_dld_dld_link=no
12841fi
12842rm -f core conftest.err conftest.$ac_objext \
12843    conftest$ac_exeext conftest.$ac_ext
12844LIBS=$ac_check_lib_save_LIBS
12845fi
12846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12847$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12848if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12849  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12850fi
12851
12852
12853fi
12854
12855
12856fi
12857
12858
12859fi
12860
12861
12862fi
12863
12864
12865fi
12866
12867    ;;
12868  esac
12869
12870  if test no = "$lt_cv_dlopen"; then
12871    enable_dlopen=no
12872  else
12873    enable_dlopen=yes
12874  fi
12875
12876  case $lt_cv_dlopen in
12877  dlopen)
12878    save_CPPFLAGS=$CPPFLAGS
12879    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12880
12881    save_LDFLAGS=$LDFLAGS
12882    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12883
12884    save_LIBS=$LIBS
12885    LIBS="$lt_cv_dlopen_libs $LIBS"
12886
12887    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12888$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12889if ${lt_cv_dlopen_self+:} false; then :
12890  $as_echo_n "(cached) " >&6
12891else
12892  	  if test yes = "$cross_compiling"; then :
12893  lt_cv_dlopen_self=cross
12894else
12895  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12896  lt_status=$lt_dlunknown
12897  cat > conftest.$ac_ext <<_LT_EOF
12898#line $LINENO "configure"
12899#include "confdefs.h"
12900
12901#if HAVE_DLFCN_H
12902#include <dlfcn.h>
12903#endif
12904
12905#include <stdio.h>
12906
12907#ifdef RTLD_GLOBAL
12908#  define LT_DLGLOBAL		RTLD_GLOBAL
12909#else
12910#  ifdef DL_GLOBAL
12911#    define LT_DLGLOBAL		DL_GLOBAL
12912#  else
12913#    define LT_DLGLOBAL		0
12914#  endif
12915#endif
12916
12917/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12918   find out it does not work in some platform. */
12919#ifndef LT_DLLAZY_OR_NOW
12920#  ifdef RTLD_LAZY
12921#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12922#  else
12923#    ifdef DL_LAZY
12924#      define LT_DLLAZY_OR_NOW		DL_LAZY
12925#    else
12926#      ifdef RTLD_NOW
12927#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12928#      else
12929#        ifdef DL_NOW
12930#          define LT_DLLAZY_OR_NOW	DL_NOW
12931#        else
12932#          define LT_DLLAZY_OR_NOW	0
12933#        endif
12934#      endif
12935#    endif
12936#  endif
12937#endif
12938
12939/* When -fvisibility=hidden is used, assume the code has been annotated
12940   correspondingly for the symbols needed.  */
12941#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12942int fnord () __attribute__((visibility("default")));
12943#endif
12944
12945int fnord () { return 42; }
12946int main ()
12947{
12948  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12949  int status = $lt_dlunknown;
12950
12951  if (self)
12952    {
12953      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12954      else
12955        {
12956	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12957          else puts (dlerror ());
12958	}
12959      /* dlclose (self); */
12960    }
12961  else
12962    puts (dlerror ());
12963
12964  return status;
12965}
12966_LT_EOF
12967  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12968  (eval $ac_link) 2>&5
12969  ac_status=$?
12970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12971  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12972    (./conftest; exit; ) >&5 2>/dev/null
12973    lt_status=$?
12974    case x$lt_status in
12975      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12976      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12977      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12978    esac
12979  else :
12980    # compilation failed
12981    lt_cv_dlopen_self=no
12982  fi
12983fi
12984rm -fr conftest*
12985
12986
12987fi
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12989$as_echo "$lt_cv_dlopen_self" >&6; }
12990
12991    if test yes = "$lt_cv_dlopen_self"; then
12992      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12993      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12994$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12995if ${lt_cv_dlopen_self_static+:} false; then :
12996  $as_echo_n "(cached) " >&6
12997else
12998  	  if test yes = "$cross_compiling"; then :
12999  lt_cv_dlopen_self_static=cross
13000else
13001  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13002  lt_status=$lt_dlunknown
13003  cat > conftest.$ac_ext <<_LT_EOF
13004#line $LINENO "configure"
13005#include "confdefs.h"
13006
13007#if HAVE_DLFCN_H
13008#include <dlfcn.h>
13009#endif
13010
13011#include <stdio.h>
13012
13013#ifdef RTLD_GLOBAL
13014#  define LT_DLGLOBAL		RTLD_GLOBAL
13015#else
13016#  ifdef DL_GLOBAL
13017#    define LT_DLGLOBAL		DL_GLOBAL
13018#  else
13019#    define LT_DLGLOBAL		0
13020#  endif
13021#endif
13022
13023/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13024   find out it does not work in some platform. */
13025#ifndef LT_DLLAZY_OR_NOW
13026#  ifdef RTLD_LAZY
13027#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13028#  else
13029#    ifdef DL_LAZY
13030#      define LT_DLLAZY_OR_NOW		DL_LAZY
13031#    else
13032#      ifdef RTLD_NOW
13033#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13034#      else
13035#        ifdef DL_NOW
13036#          define LT_DLLAZY_OR_NOW	DL_NOW
13037#        else
13038#          define LT_DLLAZY_OR_NOW	0
13039#        endif
13040#      endif
13041#    endif
13042#  endif
13043#endif
13044
13045/* When -fvisibility=hidden is used, assume the code has been annotated
13046   correspondingly for the symbols needed.  */
13047#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13048int fnord () __attribute__((visibility("default")));
13049#endif
13050
13051int fnord () { return 42; }
13052int main ()
13053{
13054  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13055  int status = $lt_dlunknown;
13056
13057  if (self)
13058    {
13059      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13060      else
13061        {
13062	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13063          else puts (dlerror ());
13064	}
13065      /* dlclose (self); */
13066    }
13067  else
13068    puts (dlerror ());
13069
13070  return status;
13071}
13072_LT_EOF
13073  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13074  (eval $ac_link) 2>&5
13075  ac_status=$?
13076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13077  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13078    (./conftest; exit; ) >&5 2>/dev/null
13079    lt_status=$?
13080    case x$lt_status in
13081      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13082      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13083      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13084    esac
13085  else :
13086    # compilation failed
13087    lt_cv_dlopen_self_static=no
13088  fi
13089fi
13090rm -fr conftest*
13091
13092
13093fi
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13095$as_echo "$lt_cv_dlopen_self_static" >&6; }
13096    fi
13097
13098    CPPFLAGS=$save_CPPFLAGS
13099    LDFLAGS=$save_LDFLAGS
13100    LIBS=$save_LIBS
13101    ;;
13102  esac
13103
13104  case $lt_cv_dlopen_self in
13105  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13106  *) enable_dlopen_self=unknown ;;
13107  esac
13108
13109  case $lt_cv_dlopen_self_static in
13110  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13111  *) enable_dlopen_self_static=unknown ;;
13112  esac
13113fi
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131striplib=
13132old_striplib=
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13134$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13135if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13136  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13137  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13139$as_echo "yes" >&6; }
13140else
13141# FIXME - insert some real tests, host_os isn't really good enough
13142  case $host_os in
13143  darwin*)
13144    if test -n "$STRIP"; then
13145      striplib="$STRIP -x"
13146      old_striplib="$STRIP -S"
13147      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148$as_echo "yes" >&6; }
13149    else
13150      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151$as_echo "no" >&6; }
13152    fi
13153    ;;
13154  *)
13155    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156$as_echo "no" >&6; }
13157    ;;
13158  esac
13159fi
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172  # Report what library types will actually be built
13173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13174$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13176$as_echo "$can_build_shared" >&6; }
13177
13178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13179$as_echo_n "checking whether to build shared libraries... " >&6; }
13180  test no = "$can_build_shared" && enable_shared=no
13181
13182  # On AIX, shared libraries and static libraries use the same namespace, and
13183  # are all built from PIC.
13184  case $host_os in
13185  aix3*)
13186    test yes = "$enable_shared" && enable_static=no
13187    if test -n "$RANLIB"; then
13188      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13189      postinstall_cmds='$RANLIB $lib'
13190    fi
13191    ;;
13192
13193  aix[4-9]*)
13194    if test ia64 != "$host_cpu"; then
13195      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13196      yes,aix,yes) ;;			# shared object as lib.so file only
13197      yes,svr4,*) ;;			# shared object as lib.so archive member only
13198      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13199      esac
13200    fi
13201    ;;
13202  esac
13203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13204$as_echo "$enable_shared" >&6; }
13205
13206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13207$as_echo_n "checking whether to build static libraries... " >&6; }
13208  # Make sure either enable_shared or enable_static is yes.
13209  test yes = "$enable_shared" || enable_static=yes
13210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13211$as_echo "$enable_static" >&6; }
13212
13213
13214
13215
13216fi
13217ac_ext=c
13218ac_cpp='$CPP $CPPFLAGS'
13219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13221ac_compiler_gnu=$ac_cv_c_compiler_gnu
13222
13223CC=$lt_save_CC
13224
13225      if test -n "$CXX" && ( test no != "$CXX" &&
13226    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13227    (test g++ != "$CXX"))); then
13228  ac_ext=cpp
13229ac_cpp='$CXXCPP $CPPFLAGS'
13230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13234$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13235if test -z "$CXXCPP"; then
13236  if ${ac_cv_prog_CXXCPP+:} false; then :
13237  $as_echo_n "(cached) " >&6
13238else
13239      # Double quotes because CXXCPP needs to be expanded
13240    for CXXCPP in "$CXX -E" "/lib/cpp"
13241    do
13242      ac_preproc_ok=false
13243for ac_cxx_preproc_warn_flag in '' yes
13244do
13245  # Use a header file that comes with gcc, so configuring glibc
13246  # with a fresh cross-compiler works.
13247  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13248  # <limits.h> exists even on freestanding compilers.
13249  # On the NeXT, cc -E runs the code through the compiler's parser,
13250  # not just through cpp. "Syntax error" is here to catch this case.
13251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252/* end confdefs.h.  */
13253#ifdef __STDC__
13254# include <limits.h>
13255#else
13256# include <assert.h>
13257#endif
13258		     Syntax error
13259_ACEOF
13260if ac_fn_cxx_try_cpp "$LINENO"; then :
13261
13262else
13263  # Broken: fails on valid input.
13264continue
13265fi
13266rm -f conftest.err conftest.i conftest.$ac_ext
13267
13268  # OK, works on sane cases.  Now check whether nonexistent headers
13269  # can be detected and how.
13270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271/* end confdefs.h.  */
13272#include <ac_nonexistent.h>
13273_ACEOF
13274if ac_fn_cxx_try_cpp "$LINENO"; then :
13275  # Broken: success on invalid input.
13276continue
13277else
13278  # Passes both tests.
13279ac_preproc_ok=:
13280break
13281fi
13282rm -f conftest.err conftest.i conftest.$ac_ext
13283
13284done
13285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13286rm -f conftest.i conftest.err conftest.$ac_ext
13287if $ac_preproc_ok; then :
13288  break
13289fi
13290
13291    done
13292    ac_cv_prog_CXXCPP=$CXXCPP
13293
13294fi
13295  CXXCPP=$ac_cv_prog_CXXCPP
13296else
13297  ac_cv_prog_CXXCPP=$CXXCPP
13298fi
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13300$as_echo "$CXXCPP" >&6; }
13301ac_preproc_ok=false
13302for ac_cxx_preproc_warn_flag in '' yes
13303do
13304  # Use a header file that comes with gcc, so configuring glibc
13305  # with a fresh cross-compiler works.
13306  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13307  # <limits.h> exists even on freestanding compilers.
13308  # On the NeXT, cc -E runs the code through the compiler's parser,
13309  # not just through cpp. "Syntax error" is here to catch this case.
13310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311/* end confdefs.h.  */
13312#ifdef __STDC__
13313# include <limits.h>
13314#else
13315# include <assert.h>
13316#endif
13317		     Syntax error
13318_ACEOF
13319if ac_fn_cxx_try_cpp "$LINENO"; then :
13320
13321else
13322  # Broken: fails on valid input.
13323continue
13324fi
13325rm -f conftest.err conftest.i conftest.$ac_ext
13326
13327  # OK, works on sane cases.  Now check whether nonexistent headers
13328  # can be detected and how.
13329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330/* end confdefs.h.  */
13331#include <ac_nonexistent.h>
13332_ACEOF
13333if ac_fn_cxx_try_cpp "$LINENO"; then :
13334  # Broken: success on invalid input.
13335continue
13336else
13337  # Passes both tests.
13338ac_preproc_ok=:
13339break
13340fi
13341rm -f conftest.err conftest.i conftest.$ac_ext
13342
13343done
13344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13345rm -f conftest.i conftest.err conftest.$ac_ext
13346if $ac_preproc_ok; then :
13347
13348else
13349  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13351as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13352See \`config.log' for more details" "$LINENO" 5; }
13353fi
13354
13355ac_ext=c
13356ac_cpp='$CPP $CPPFLAGS'
13357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13359ac_compiler_gnu=$ac_cv_c_compiler_gnu
13360
13361else
13362  _lt_caught_CXX_error=yes
13363fi
13364
13365ac_ext=cpp
13366ac_cpp='$CXXCPP $CPPFLAGS'
13367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13370
13371archive_cmds_need_lc_CXX=no
13372allow_undefined_flag_CXX=
13373always_export_symbols_CXX=no
13374archive_expsym_cmds_CXX=
13375compiler_needs_object_CXX=no
13376export_dynamic_flag_spec_CXX=
13377hardcode_direct_CXX=no
13378hardcode_direct_absolute_CXX=no
13379hardcode_libdir_flag_spec_CXX=
13380hardcode_libdir_separator_CXX=
13381hardcode_minus_L_CXX=no
13382hardcode_shlibpath_var_CXX=unsupported
13383hardcode_automatic_CXX=no
13384inherit_rpath_CXX=no
13385module_cmds_CXX=
13386module_expsym_cmds_CXX=
13387link_all_deplibs_CXX=unknown
13388old_archive_cmds_CXX=$old_archive_cmds
13389reload_flag_CXX=$reload_flag
13390reload_cmds_CXX=$reload_cmds
13391no_undefined_flag_CXX=
13392whole_archive_flag_spec_CXX=
13393enable_shared_with_static_runtimes_CXX=no
13394
13395# Source file extension for C++ test sources.
13396ac_ext=cpp
13397
13398# Object file extension for compiled C++ test sources.
13399objext=o
13400objext_CXX=$objext
13401
13402# No sense in running all these tests if we already determined that
13403# the CXX compiler isn't working.  Some variables (like enable_shared)
13404# are currently assumed to apply to all compilers on this platform,
13405# and will be corrupted by setting them based on a non-working compiler.
13406if test yes != "$_lt_caught_CXX_error"; then
13407  # Code to be used in simple compile tests
13408  lt_simple_compile_test_code="int some_variable = 0;"
13409
13410  # Code to be used in simple link tests
13411  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13412
13413  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13414
13415
13416
13417
13418
13419
13420# If no C compiler was specified, use CC.
13421LTCC=${LTCC-"$CC"}
13422
13423# If no C compiler flags were specified, use CFLAGS.
13424LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13425
13426# Allow CC to be a program name with arguments.
13427compiler=$CC
13428
13429
13430  # save warnings/boilerplate of simple test code
13431  ac_outfile=conftest.$ac_objext
13432echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13433eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13434_lt_compiler_boilerplate=`cat conftest.err`
13435$RM conftest*
13436
13437  ac_outfile=conftest.$ac_objext
13438echo "$lt_simple_link_test_code" >conftest.$ac_ext
13439eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13440_lt_linker_boilerplate=`cat conftest.err`
13441$RM -r conftest*
13442
13443
13444  # Allow CC to be a program name with arguments.
13445  lt_save_CC=$CC
13446  lt_save_CFLAGS=$CFLAGS
13447  lt_save_LD=$LD
13448  lt_save_GCC=$GCC
13449  GCC=$GXX
13450  lt_save_with_gnu_ld=$with_gnu_ld
13451  lt_save_path_LD=$lt_cv_path_LD
13452  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13453    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13454  else
13455    $as_unset lt_cv_prog_gnu_ld
13456  fi
13457  if test -n "${lt_cv_path_LDCXX+set}"; then
13458    lt_cv_path_LD=$lt_cv_path_LDCXX
13459  else
13460    $as_unset lt_cv_path_LD
13461  fi
13462  test -z "${LDCXX+set}" || LD=$LDCXX
13463  CC=${CXX-"c++"}
13464  CFLAGS=$CXXFLAGS
13465  compiler=$CC
13466  compiler_CXX=$CC
13467  func_cc_basename $compiler
13468cc_basename=$func_cc_basename_result
13469
13470
13471  if test -n "$compiler"; then
13472    # We don't want -fno-exception when compiling C++ code, so set the
13473    # no_builtin_flag separately
13474    if test yes = "$GXX"; then
13475      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13476    else
13477      lt_prog_compiler_no_builtin_flag_CXX=
13478    fi
13479
13480    if test yes = "$GXX"; then
13481      # Set up default GNU C++ configuration
13482
13483
13484
13485# Check whether --with-gnu-ld was given.
13486if test "${with_gnu_ld+set}" = set; then :
13487  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13488else
13489  with_gnu_ld=no
13490fi
13491
13492ac_prog=ld
13493if test yes = "$GCC"; then
13494  # Check if gcc -print-prog-name=ld gives a path.
13495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13496$as_echo_n "checking for ld used by $CC... " >&6; }
13497  case $host in
13498  *-*-mingw*)
13499    # gcc leaves a trailing carriage return, which upsets mingw
13500    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13501  *)
13502    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13503  esac
13504  case $ac_prog in
13505    # Accept absolute paths.
13506    [\\/]* | ?:[\\/]*)
13507      re_direlt='/[^/][^/]*/\.\./'
13508      # Canonicalize the pathname of ld
13509      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13510      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13511	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13512      done
13513      test -z "$LD" && LD=$ac_prog
13514      ;;
13515  "")
13516    # If it fails, then pretend we aren't using GCC.
13517    ac_prog=ld
13518    ;;
13519  *)
13520    # If it is relative, then search for the first ld in PATH.
13521    with_gnu_ld=unknown
13522    ;;
13523  esac
13524elif test yes = "$with_gnu_ld"; then
13525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13526$as_echo_n "checking for GNU ld... " >&6; }
13527else
13528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13529$as_echo_n "checking for non-GNU ld... " >&6; }
13530fi
13531if ${lt_cv_path_LD+:} false; then :
13532  $as_echo_n "(cached) " >&6
13533else
13534  if test -z "$LD"; then
13535  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13536  for ac_dir in $PATH; do
13537    IFS=$lt_save_ifs
13538    test -z "$ac_dir" && ac_dir=.
13539    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13540      lt_cv_path_LD=$ac_dir/$ac_prog
13541      # Check to see if the program is GNU ld.  I'd rather use --version,
13542      # but apparently some variants of GNU ld only accept -v.
13543      # Break only if it was the GNU/non-GNU ld that we prefer.
13544      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13545      *GNU* | *'with BFD'*)
13546	test no != "$with_gnu_ld" && break
13547	;;
13548      *)
13549	test yes != "$with_gnu_ld" && break
13550	;;
13551      esac
13552    fi
13553  done
13554  IFS=$lt_save_ifs
13555else
13556  lt_cv_path_LD=$LD # Let the user override the test with a path.
13557fi
13558fi
13559
13560LD=$lt_cv_path_LD
13561if test -n "$LD"; then
13562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13563$as_echo "$LD" >&6; }
13564else
13565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566$as_echo "no" >&6; }
13567fi
13568test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13570$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13571if ${lt_cv_prog_gnu_ld+:} false; then :
13572  $as_echo_n "(cached) " >&6
13573else
13574  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13575case `$LD -v 2>&1 </dev/null` in
13576*GNU* | *'with BFD'*)
13577  lt_cv_prog_gnu_ld=yes
13578  ;;
13579*)
13580  lt_cv_prog_gnu_ld=no
13581  ;;
13582esac
13583fi
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13585$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13586with_gnu_ld=$lt_cv_prog_gnu_ld
13587
13588
13589
13590
13591
13592
13593
13594      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13595      # archiving commands below assume that GNU ld is being used.
13596      if test yes = "$with_gnu_ld"; then
13597        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13598        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'
13599
13600        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13601        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13602
13603        # If archive_cmds runs LD, not CC, wlarc should be empty
13604        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13605        #     investigate it a little bit more. (MM)
13606        wlarc='$wl'
13607
13608        # ancient GNU ld didn't support --whole-archive et. al.
13609        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13610	  $GREP 'no-whole-archive' > /dev/null; then
13611          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13612        else
13613          whole_archive_flag_spec_CXX=
13614        fi
13615      else
13616        with_gnu_ld=no
13617        wlarc=
13618
13619        # A generic and very simple default shared library creation
13620        # command for GNU C++ for the case where it uses the native
13621        # linker, instead of GNU ld.  If possible, this setting should
13622        # overridden to take advantage of the native linker features on
13623        # the platform it is being used on.
13624        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13625      fi
13626
13627      # Commands to make compiler produce verbose output that lists
13628      # what "hidden" libraries, object files and flags are used when
13629      # linking a shared library.
13630      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13631
13632    else
13633      GXX=no
13634      with_gnu_ld=no
13635      wlarc=
13636    fi
13637
13638    # PORTME: fill in a description of your system's C++ link characteristics
13639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13640$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13641    ld_shlibs_CXX=yes
13642    case $host_os in
13643      aix3*)
13644        # FIXME: insert proper C++ library support
13645        ld_shlibs_CXX=no
13646        ;;
13647      aix[4-9]*)
13648        if test ia64 = "$host_cpu"; then
13649          # On IA64, the linker does run time linking by default, so we don't
13650          # have to do anything special.
13651          aix_use_runtimelinking=no
13652          exp_sym_flag='-Bexport'
13653          no_entry_flag=
13654        else
13655          aix_use_runtimelinking=no
13656
13657          # Test if we are trying to use run time linking or normal
13658          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13659          # have runtime linking enabled, and use it for executables.
13660          # For shared libraries, we enable/disable runtime linking
13661          # depending on the kind of the shared library created -
13662          # when "with_aix_soname,aix_use_runtimelinking" is:
13663          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13664          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13665          #            lib.a           static archive
13666          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13667          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13668          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13669          #            lib.a(lib.so.V) shared, rtl:no
13670          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13671          #            lib.a           static archive
13672          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13673	    for ld_flag in $LDFLAGS; do
13674	      case $ld_flag in
13675	      *-brtl*)
13676	        aix_use_runtimelinking=yes
13677	        break
13678	        ;;
13679	      esac
13680	    done
13681	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13682	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13683	      # so we don't have lib.a shared libs to link our executables.
13684	      # We have to force runtime linking in this case.
13685	      aix_use_runtimelinking=yes
13686	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13687	    fi
13688	    ;;
13689          esac
13690
13691          exp_sym_flag='-bexport'
13692          no_entry_flag='-bnoentry'
13693        fi
13694
13695        # When large executables or shared objects are built, AIX ld can
13696        # have problems creating the table of contents.  If linking a library
13697        # or program results in "error TOC overflow" add -mminimal-toc to
13698        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13699        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13700
13701        archive_cmds_CXX=''
13702        hardcode_direct_CXX=yes
13703        hardcode_direct_absolute_CXX=yes
13704        hardcode_libdir_separator_CXX=':'
13705        link_all_deplibs_CXX=yes
13706        file_list_spec_CXX='$wl-f,'
13707        case $with_aix_soname,$aix_use_runtimelinking in
13708        aix,*) ;;	# no import file
13709        svr4,* | *,yes) # use import file
13710          # The Import File defines what to hardcode.
13711          hardcode_direct_CXX=no
13712          hardcode_direct_absolute_CXX=no
13713          ;;
13714        esac
13715
13716        if test yes = "$GXX"; then
13717          case $host_os in aix4.[012]|aix4.[012].*)
13718          # We only want to do this on AIX 4.2 and lower, the check
13719          # below for broken collect2 doesn't work under 4.3+
13720	  collect2name=`$CC -print-prog-name=collect2`
13721	  if test -f "$collect2name" &&
13722	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13723	  then
13724	    # We have reworked collect2
13725	    :
13726	  else
13727	    # We have old collect2
13728	    hardcode_direct_CXX=unsupported
13729	    # It fails to find uninstalled libraries when the uninstalled
13730	    # path is not listed in the libpath.  Setting hardcode_minus_L
13731	    # to unsupported forces relinking
13732	    hardcode_minus_L_CXX=yes
13733	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13734	    hardcode_libdir_separator_CXX=
13735	  fi
13736          esac
13737          shared_flag='-shared'
13738	  if test yes = "$aix_use_runtimelinking"; then
13739	    shared_flag=$shared_flag' $wl-G'
13740	  fi
13741	  # Need to ensure runtime linking is disabled for the traditional
13742	  # shared library, or the linker may eventually find shared libraries
13743	  # /with/ Import File - we do not want to mix them.
13744	  shared_flag_aix='-shared'
13745	  shared_flag_svr4='-shared $wl-G'
13746        else
13747          # not using gcc
13748          if test ia64 = "$host_cpu"; then
13749	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13750	  # chokes on -Wl,-G. The following line is correct:
13751	  shared_flag='-G'
13752          else
13753	    if test yes = "$aix_use_runtimelinking"; then
13754	      shared_flag='$wl-G'
13755	    else
13756	      shared_flag='$wl-bM:SRE'
13757	    fi
13758	    shared_flag_aix='$wl-bM:SRE'
13759	    shared_flag_svr4='$wl-G'
13760          fi
13761        fi
13762
13763        export_dynamic_flag_spec_CXX='$wl-bexpall'
13764        # It seems that -bexpall does not export symbols beginning with
13765        # underscore (_), so it is better to generate a list of symbols to
13766	# export.
13767        always_export_symbols_CXX=yes
13768	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13769          # Warning - without using the other runtime loading flags (-brtl),
13770          # -berok will link without error, but may produce a broken library.
13771          # The "-G" linker flag allows undefined symbols.
13772          no_undefined_flag_CXX='-bernotok'
13773          # Determine the default libpath from the value encoded in an empty
13774          # executable.
13775          if test set = "${lt_cv_aix_libpath+set}"; then
13776  aix_libpath=$lt_cv_aix_libpath
13777else
13778  if ${lt_cv_aix_libpath__CXX+:} false; then :
13779  $as_echo_n "(cached) " >&6
13780else
13781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782/* end confdefs.h.  */
13783
13784int
13785main ()
13786{
13787
13788  ;
13789  return 0;
13790}
13791_ACEOF
13792if ac_fn_cxx_try_link "$LINENO"; then :
13793
13794  lt_aix_libpath_sed='
13795      /Import File Strings/,/^$/ {
13796	  /^0/ {
13797	      s/^0  *\([^ ]*\) *$/\1/
13798	      p
13799	  }
13800      }'
13801  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13802  # Check for a 64-bit object if we didn't find anything.
13803  if test -z "$lt_cv_aix_libpath__CXX"; then
13804    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13805  fi
13806fi
13807rm -f core conftest.err conftest.$ac_objext \
13808    conftest$ac_exeext conftest.$ac_ext
13809  if test -z "$lt_cv_aix_libpath__CXX"; then
13810    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13811  fi
13812
13813fi
13814
13815  aix_libpath=$lt_cv_aix_libpath__CXX
13816fi
13817
13818          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13819
13820          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13821        else
13822          if test ia64 = "$host_cpu"; then
13823	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13824	    allow_undefined_flag_CXX="-z nodefs"
13825	    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"
13826          else
13827	    # Determine the default libpath from the value encoded in an
13828	    # empty executable.
13829	    if test set = "${lt_cv_aix_libpath+set}"; then
13830  aix_libpath=$lt_cv_aix_libpath
13831else
13832  if ${lt_cv_aix_libpath__CXX+:} false; then :
13833  $as_echo_n "(cached) " >&6
13834else
13835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836/* end confdefs.h.  */
13837
13838int
13839main ()
13840{
13841
13842  ;
13843  return 0;
13844}
13845_ACEOF
13846if ac_fn_cxx_try_link "$LINENO"; then :
13847
13848  lt_aix_libpath_sed='
13849      /Import File Strings/,/^$/ {
13850	  /^0/ {
13851	      s/^0  *\([^ ]*\) *$/\1/
13852	      p
13853	  }
13854      }'
13855  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13856  # Check for a 64-bit object if we didn't find anything.
13857  if test -z "$lt_cv_aix_libpath__CXX"; then
13858    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13859  fi
13860fi
13861rm -f core conftest.err conftest.$ac_objext \
13862    conftest$ac_exeext conftest.$ac_ext
13863  if test -z "$lt_cv_aix_libpath__CXX"; then
13864    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13865  fi
13866
13867fi
13868
13869  aix_libpath=$lt_cv_aix_libpath__CXX
13870fi
13871
13872	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13873	    # Warning - without using the other run time loading flags,
13874	    # -berok will link without error, but may produce a broken library.
13875	    no_undefined_flag_CXX=' $wl-bernotok'
13876	    allow_undefined_flag_CXX=' $wl-berok'
13877	    if test yes = "$with_gnu_ld"; then
13878	      # We only use this code for GNU lds that support --whole-archive.
13879	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13880	    else
13881	      # Exported symbols can be pulled into shared objects from archives
13882	      whole_archive_flag_spec_CXX='$convenience'
13883	    fi
13884	    archive_cmds_need_lc_CXX=yes
13885	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13886	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13887	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13888	    if test svr4 != "$with_aix_soname"; then
13889	      # This is similar to how AIX traditionally builds its shared
13890	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13891	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13892	    fi
13893	    if test aix != "$with_aix_soname"; then
13894	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13895	    else
13896	      # used by -dlpreopen to get the symbols
13897	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13898	    fi
13899	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13900          fi
13901        fi
13902        ;;
13903
13904      beos*)
13905	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13906	  allow_undefined_flag_CXX=unsupported
13907	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13908	  # support --undefined.  This deserves some investigation.  FIXME
13909	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13910	else
13911	  ld_shlibs_CXX=no
13912	fi
13913	;;
13914
13915      chorus*)
13916        case $cc_basename in
13917          *)
13918	  # FIXME: insert proper C++ library support
13919	  ld_shlibs_CXX=no
13920	  ;;
13921        esac
13922        ;;
13923
13924      cygwin* | mingw* | pw32* | cegcc*)
13925	case $GXX,$cc_basename in
13926	,cl* | no,cl*)
13927	  # Native MSVC
13928	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13929	  # no search path for DLLs.
13930	  hardcode_libdir_flag_spec_CXX=' '
13931	  allow_undefined_flag_CXX=unsupported
13932	  always_export_symbols_CXX=yes
13933	  file_list_spec_CXX='@'
13934	  # Tell ltmain to make .lib files, not .a files.
13935	  libext=lib
13936	  # Tell ltmain to make .dll files, not .so files.
13937	  shrext_cmds=.dll
13938	  # FIXME: Setting linknames here is a bad hack.
13939	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13940	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13941              cp "$export_symbols" "$output_objdir/$soname.def";
13942              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13943            else
13944              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13945            fi~
13946            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13947            linknames='
13948	  # The linker will not automatically build a static lib if we build a DLL.
13949	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13950	  enable_shared_with_static_runtimes_CXX=yes
13951	  # Don't use ranlib
13952	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13953	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13954            lt_tool_outputfile="@TOOL_OUTPUT@"~
13955            case $lt_outputfile in
13956              *.exe|*.EXE) ;;
13957              *)
13958                lt_outputfile=$lt_outputfile.exe
13959                lt_tool_outputfile=$lt_tool_outputfile.exe
13960                ;;
13961            esac~
13962            func_to_tool_file "$lt_outputfile"~
13963            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13964              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13965              $RM "$lt_outputfile.manifest";
13966            fi'
13967	  ;;
13968	*)
13969	  # g++
13970	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13971	  # as there is no search path for DLLs.
13972	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13973	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13974	  allow_undefined_flag_CXX=unsupported
13975	  always_export_symbols_CXX=no
13976	  enable_shared_with_static_runtimes_CXX=yes
13977
13978	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13979	    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'
13980	    # If the export-symbols file already is a .def file, use it as
13981	    # is; otherwise, prepend EXPORTS...
13982	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13983              cp $export_symbols $output_objdir/$soname.def;
13984            else
13985              echo EXPORTS > $output_objdir/$soname.def;
13986              cat $export_symbols >> $output_objdir/$soname.def;
13987            fi~
13988            $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'
13989	  else
13990	    ld_shlibs_CXX=no
13991	  fi
13992	  ;;
13993	esac
13994	;;
13995      darwin* | rhapsody*)
13996
13997
13998  archive_cmds_need_lc_CXX=no
13999  hardcode_direct_CXX=no
14000  hardcode_automatic_CXX=yes
14001  hardcode_shlibpath_var_CXX=unsupported
14002  if test yes = "$lt_cv_ld_force_load"; then
14003    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\"`'
14004
14005  else
14006    whole_archive_flag_spec_CXX=''
14007  fi
14008  link_all_deplibs_CXX=yes
14009  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14010  case $cc_basename in
14011     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14012     *) _lt_dar_can_shared=$GCC ;;
14013  esac
14014  if test yes = "$_lt_dar_can_shared"; then
14015    output_verbose_link_cmd=func_echo_all
14016    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"
14017    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14018    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"
14019    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"
14020       if test yes != "$lt_cv_apple_cc_single_mod"; then
14021      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"
14022      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"
14023    fi
14024
14025  else
14026  ld_shlibs_CXX=no
14027  fi
14028
14029	;;
14030
14031      os2*)
14032	hardcode_libdir_flag_spec_CXX='-L$libdir'
14033	hardcode_minus_L_CXX=yes
14034	allow_undefined_flag_CXX=unsupported
14035	shrext_cmds=.dll
14036	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14037	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14038	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14039	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14040	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14041	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14042	  emximp -o $lib $output_objdir/$libname.def'
14043	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14044	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14045	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14046	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14047	  prefix_cmds="$SED"~
14048	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14049	    prefix_cmds="$prefix_cmds -e 1d";
14050	  fi~
14051	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14052	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14053	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14054	  emximp -o $lib $output_objdir/$libname.def'
14055	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14056	enable_shared_with_static_runtimes_CXX=yes
14057	;;
14058
14059      dgux*)
14060        case $cc_basename in
14061          ec++*)
14062	    # FIXME: insert proper C++ library support
14063	    ld_shlibs_CXX=no
14064	    ;;
14065          ghcx*)
14066	    # Green Hills C++ Compiler
14067	    # FIXME: insert proper C++ library support
14068	    ld_shlibs_CXX=no
14069	    ;;
14070          *)
14071	    # FIXME: insert proper C++ library support
14072	    ld_shlibs_CXX=no
14073	    ;;
14074        esac
14075        ;;
14076
14077      freebsd2.*)
14078        # C++ shared libraries reported to be fairly broken before
14079	# switch to ELF
14080        ld_shlibs_CXX=no
14081        ;;
14082
14083      freebsd-elf*)
14084        archive_cmds_need_lc_CXX=no
14085        ;;
14086
14087      freebsd* | dragonfly*)
14088        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14089        # conventions
14090        ld_shlibs_CXX=yes
14091        ;;
14092
14093      haiku*)
14094        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14095        link_all_deplibs_CXX=yes
14096        ;;
14097
14098      hpux9*)
14099        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14100        hardcode_libdir_separator_CXX=:
14101        export_dynamic_flag_spec_CXX='$wl-E'
14102        hardcode_direct_CXX=yes
14103        hardcode_minus_L_CXX=yes # Not in the search PATH,
14104				             # but as the default
14105				             # location of the library.
14106
14107        case $cc_basename in
14108          CC*)
14109            # FIXME: insert proper C++ library support
14110            ld_shlibs_CXX=no
14111            ;;
14112          aCC*)
14113            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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14114            # Commands to make compiler produce verbose output that lists
14115            # what "hidden" libraries, object files and flags are used when
14116            # linking a shared library.
14117            #
14118            # There doesn't appear to be a way to prevent this compiler from
14119            # explicitly linking system object files so we need to strip them
14120            # from the output so that they don't get included in the library
14121            # dependencies.
14122            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"'
14123            ;;
14124          *)
14125            if test yes = "$GXX"; then
14126              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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14127            else
14128              # FIXME: insert proper C++ library support
14129              ld_shlibs_CXX=no
14130            fi
14131            ;;
14132        esac
14133        ;;
14134
14135      hpux10*|hpux11*)
14136        if test no = "$with_gnu_ld"; then
14137	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14138	  hardcode_libdir_separator_CXX=:
14139
14140          case $host_cpu in
14141            hppa*64*|ia64*)
14142              ;;
14143            *)
14144	      export_dynamic_flag_spec_CXX='$wl-E'
14145              ;;
14146          esac
14147        fi
14148        case $host_cpu in
14149          hppa*64*|ia64*)
14150            hardcode_direct_CXX=no
14151            hardcode_shlibpath_var_CXX=no
14152            ;;
14153          *)
14154            hardcode_direct_CXX=yes
14155            hardcode_direct_absolute_CXX=yes
14156            hardcode_minus_L_CXX=yes # Not in the search PATH,
14157					         # but as the default
14158					         # location of the library.
14159            ;;
14160        esac
14161
14162        case $cc_basename in
14163          CC*)
14164	    # FIXME: insert proper C++ library support
14165	    ld_shlibs_CXX=no
14166	    ;;
14167          aCC*)
14168	    case $host_cpu in
14169	      hppa*64*)
14170	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14171	        ;;
14172	      ia64*)
14173	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14174	        ;;
14175	      *)
14176	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14177	        ;;
14178	    esac
14179	    # Commands to make compiler produce verbose output that lists
14180	    # what "hidden" libraries, object files and flags are used when
14181	    # linking a shared library.
14182	    #
14183	    # There doesn't appear to be a way to prevent this compiler from
14184	    # explicitly linking system object files so we need to strip them
14185	    # from the output so that they don't get included in the library
14186	    # dependencies.
14187	    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"'
14188	    ;;
14189          *)
14190	    if test yes = "$GXX"; then
14191	      if test no = "$with_gnu_ld"; then
14192	        case $host_cpu in
14193	          hppa*64*)
14194	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14195	            ;;
14196	          ia64*)
14197	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14198	            ;;
14199	          *)
14200	            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'
14201	            ;;
14202	        esac
14203	      fi
14204	    else
14205	      # FIXME: insert proper C++ library support
14206	      ld_shlibs_CXX=no
14207	    fi
14208	    ;;
14209        esac
14210        ;;
14211
14212      interix[3-9]*)
14213	hardcode_direct_CXX=no
14214	hardcode_shlibpath_var_CXX=no
14215	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14216	export_dynamic_flag_spec_CXX='$wl-E'
14217	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14218	# Instead, shared libraries are loaded at an image base (0x10000000 by
14219	# default) and relocated if they conflict, which is a slow very memory
14220	# consuming and fragmenting process.  To avoid this, we pick a random,
14221	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14222	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14223	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'
14224	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'
14225	;;
14226      irix5* | irix6*)
14227        case $cc_basename in
14228          CC*)
14229	    # SGI C++
14230	    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'
14231
14232	    # Archives containing C++ object files must be created using
14233	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14234	    # necessary to make sure instantiated templates are included
14235	    # in the archive.
14236	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14237	    ;;
14238          *)
14239	    if test yes = "$GXX"; then
14240	      if test no = "$with_gnu_ld"; then
14241	        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'
14242	      else
14243	        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'
14244	      fi
14245	    fi
14246	    link_all_deplibs_CXX=yes
14247	    ;;
14248        esac
14249        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14250        hardcode_libdir_separator_CXX=:
14251        inherit_rpath_CXX=yes
14252        ;;
14253
14254      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14255        case $cc_basename in
14256          KCC*)
14257	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14258
14259	    # KCC will only create a shared library if the output file
14260	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14261	    # to its proper name (with version) after linking.
14262	    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'
14263	    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'
14264	    # Commands to make compiler produce verbose output that lists
14265	    # what "hidden" libraries, object files and flags are used when
14266	    # linking a shared library.
14267	    #
14268	    # There doesn't appear to be a way to prevent this compiler from
14269	    # explicitly linking system object files so we need to strip them
14270	    # from the output so that they don't get included in the library
14271	    # dependencies.
14272	    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"'
14273
14274	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14275	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14276
14277	    # Archives containing C++ object files must be created using
14278	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14279	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14280	    ;;
14281	  icpc* | ecpc* )
14282	    # Intel C++
14283	    with_gnu_ld=yes
14284	    # version 8.0 and above of icpc choke on multiply defined symbols
14285	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14286	    # earlier do not add the objects themselves.
14287	    case `$CC -V 2>&1` in
14288	      *"Version 7."*)
14289	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14290		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'
14291		;;
14292	      *)  # Version 8.0 or newer
14293	        tmp_idyn=
14294	        case $host_cpu in
14295		  ia64*) tmp_idyn=' -i_dynamic';;
14296		esac
14297	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14298		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'
14299		;;
14300	    esac
14301	    archive_cmds_need_lc_CXX=no
14302	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14303	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14304	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14305	    ;;
14306          pgCC* | pgcpp*)
14307            # Portland Group C++ compiler
14308	    case `$CC -V` in
14309	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14310	      prelink_cmds_CXX='tpldir=Template.dir~
14311               rm -rf $tpldir~
14312               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14313               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14314	      old_archive_cmds_CXX='tpldir=Template.dir~
14315                rm -rf $tpldir~
14316                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14317                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14318                $RANLIB $oldlib'
14319	      archive_cmds_CXX='tpldir=Template.dir~
14320                rm -rf $tpldir~
14321                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14322                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14323	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14324                rm -rf $tpldir~
14325                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14326                $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'
14327	      ;;
14328	    *) # Version 6 and above use weak symbols
14329	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14330	      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'
14331	      ;;
14332	    esac
14333
14334	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14335	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14336	    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'
14337            ;;
14338	  cxx*)
14339	    # Compaq C++
14340	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14341	    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'
14342
14343	    runpath_var=LD_RUN_PATH
14344	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14345	    hardcode_libdir_separator_CXX=:
14346
14347	    # Commands to make compiler produce verbose output that lists
14348	    # what "hidden" libraries, object files and flags are used when
14349	    # linking a shared library.
14350	    #
14351	    # There doesn't appear to be a way to prevent this compiler from
14352	    # explicitly linking system object files so we need to strip them
14353	    # from the output so that they don't get included in the library
14354	    # dependencies.
14355	    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'
14356	    ;;
14357	  xl* | mpixl* | bgxl*)
14358	    # IBM XL 8.0 on PPC, with GNU ld
14359	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14360	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14361	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14362	    if test yes = "$supports_anon_versioning"; then
14363	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14364                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14365                echo "local: *; };" >> $output_objdir/$libname.ver~
14366                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14367	    fi
14368	    ;;
14369	  *)
14370	    case `$CC -V 2>&1 | sed 5q` in
14371	    *Sun\ C*)
14372	      # Sun C++ 5.9
14373	      no_undefined_flag_CXX=' -zdefs'
14374	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14375	      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'
14376	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14377	      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'
14378	      compiler_needs_object_CXX=yes
14379
14380	      # Not sure whether something based on
14381	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14382	      # would be better.
14383	      output_verbose_link_cmd='func_echo_all'
14384
14385	      # Archives containing C++ object files must be created using
14386	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14387	      # necessary to make sure instantiated templates are included
14388	      # in the archive.
14389	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14390	      ;;
14391	    esac
14392	    ;;
14393	esac
14394	;;
14395
14396      lynxos*)
14397        # FIXME: insert proper C++ library support
14398	ld_shlibs_CXX=no
14399	;;
14400
14401      m88k*)
14402        # FIXME: insert proper C++ library support
14403        ld_shlibs_CXX=no
14404	;;
14405
14406      mvs*)
14407        case $cc_basename in
14408          cxx*)
14409	    # FIXME: insert proper C++ library support
14410	    ld_shlibs_CXX=no
14411	    ;;
14412	  *)
14413	    # FIXME: insert proper C++ library support
14414	    ld_shlibs_CXX=no
14415	    ;;
14416	esac
14417	;;
14418
14419      netbsd*)
14420        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14421	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14422	  wlarc=
14423	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14424	  hardcode_direct_CXX=yes
14425	  hardcode_shlibpath_var_CXX=no
14426	fi
14427	# Workaround some broken pre-1.5 toolchains
14428	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14429	;;
14430
14431      *nto* | *qnx*)
14432        ld_shlibs_CXX=yes
14433	;;
14434
14435      openbsd* | bitrig*)
14436	if test -f /usr/libexec/ld.so; then
14437	  hardcode_direct_CXX=yes
14438	  hardcode_shlibpath_var_CXX=no
14439	  hardcode_direct_absolute_CXX=yes
14440	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14441	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14442	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14443	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14444	    export_dynamic_flag_spec_CXX='$wl-E'
14445	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14446	  fi
14447	  output_verbose_link_cmd=func_echo_all
14448	else
14449	  ld_shlibs_CXX=no
14450	fi
14451	;;
14452
14453      osf3* | osf4* | osf5*)
14454        case $cc_basename in
14455          KCC*)
14456	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14457
14458	    # KCC will only create a shared library if the output file
14459	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14460	    # to its proper name (with version) after linking.
14461	    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'
14462
14463	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14464	    hardcode_libdir_separator_CXX=:
14465
14466	    # Archives containing C++ object files must be created using
14467	    # the KAI C++ compiler.
14468	    case $host in
14469	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14470	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14471	    esac
14472	    ;;
14473          RCC*)
14474	    # Rational C++ 2.4.1
14475	    # FIXME: insert proper C++ library support
14476	    ld_shlibs_CXX=no
14477	    ;;
14478          cxx*)
14479	    case $host in
14480	      osf3*)
14481	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14482	        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'
14483	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14484		;;
14485	      *)
14486	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14487	        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'
14488	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14489                  echo "-hidden">> $lib.exp~
14490                  $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~
14491                  $RM $lib.exp'
14492	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14493		;;
14494	    esac
14495
14496	    hardcode_libdir_separator_CXX=:
14497
14498	    # Commands to make compiler produce verbose output that lists
14499	    # what "hidden" libraries, object files and flags are used when
14500	    # linking a shared library.
14501	    #
14502	    # There doesn't appear to be a way to prevent this compiler from
14503	    # explicitly linking system object files so we need to strip them
14504	    # from the output so that they don't get included in the library
14505	    # dependencies.
14506	    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"'
14507	    ;;
14508	  *)
14509	    if test yes,no = "$GXX,$with_gnu_ld"; then
14510	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14511	      case $host in
14512	        osf3*)
14513	          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'
14514		  ;;
14515	        *)
14516	          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'
14517		  ;;
14518	      esac
14519
14520	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14521	      hardcode_libdir_separator_CXX=:
14522
14523	      # Commands to make compiler produce verbose output that lists
14524	      # what "hidden" libraries, object files and flags are used when
14525	      # linking a shared library.
14526	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14527
14528	    else
14529	      # FIXME: insert proper C++ library support
14530	      ld_shlibs_CXX=no
14531	    fi
14532	    ;;
14533        esac
14534        ;;
14535
14536      psos*)
14537        # FIXME: insert proper C++ library support
14538        ld_shlibs_CXX=no
14539        ;;
14540
14541      sunos4*)
14542        case $cc_basename in
14543          CC*)
14544	    # Sun C++ 4.x
14545	    # FIXME: insert proper C++ library support
14546	    ld_shlibs_CXX=no
14547	    ;;
14548          lcc*)
14549	    # Lucid
14550	    # FIXME: insert proper C++ library support
14551	    ld_shlibs_CXX=no
14552	    ;;
14553          *)
14554	    # FIXME: insert proper C++ library support
14555	    ld_shlibs_CXX=no
14556	    ;;
14557        esac
14558        ;;
14559
14560      solaris*)
14561        case $cc_basename in
14562          CC* | sunCC*)
14563	    # Sun C++ 4.2, 5.x and Centerline C++
14564            archive_cmds_need_lc_CXX=yes
14565	    no_undefined_flag_CXX=' -zdefs'
14566	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14567	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14568              $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'
14569
14570	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14571	    hardcode_shlibpath_var_CXX=no
14572	    case $host_os in
14573	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14574	      *)
14575		# The compiler driver will combine and reorder linker options,
14576		# but understands '-z linker_flag'.
14577	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14578		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14579	        ;;
14580	    esac
14581	    link_all_deplibs_CXX=yes
14582
14583	    output_verbose_link_cmd='func_echo_all'
14584
14585	    # Archives containing C++ object files must be created using
14586	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14587	    # necessary to make sure instantiated templates are included
14588	    # in the archive.
14589	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14590	    ;;
14591          gcx*)
14592	    # Green Hills C++ Compiler
14593	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14594
14595	    # The C++ compiler must be used to create the archive.
14596	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14597	    ;;
14598          *)
14599	    # GNU C++ compiler with Solaris linker
14600	    if test yes,no = "$GXX,$with_gnu_ld"; then
14601	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14602	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14603	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14604	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14605                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14606
14607	        # Commands to make compiler produce verbose output that lists
14608	        # what "hidden" libraries, object files and flags are used when
14609	        # linking a shared library.
14610	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14611	      else
14612	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14613	        # platform.
14614	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14615	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14616                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14617
14618	        # Commands to make compiler produce verbose output that lists
14619	        # what "hidden" libraries, object files and flags are used when
14620	        # linking a shared library.
14621	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14622	      fi
14623
14624	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14625	      case $host_os in
14626		solaris2.[0-5] | solaris2.[0-5].*) ;;
14627		*)
14628		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14629		  ;;
14630	      esac
14631	    fi
14632	    ;;
14633        esac
14634        ;;
14635
14636    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14637      no_undefined_flag_CXX='$wl-z,text'
14638      archive_cmds_need_lc_CXX=no
14639      hardcode_shlibpath_var_CXX=no
14640      runpath_var='LD_RUN_PATH'
14641
14642      case $cc_basename in
14643        CC*)
14644	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14645	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14646	  ;;
14647	*)
14648	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14649	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14650	  ;;
14651      esac
14652      ;;
14653
14654      sysv5* | sco3.2v5* | sco5v6*)
14655	# Note: We CANNOT use -z defs as we might desire, because we do not
14656	# link with -lc, and that would cause any symbols used from libc to
14657	# always be unresolved, which means just about no library would
14658	# ever link correctly.  If we're not using GNU ld we use -z text
14659	# though, which does catch some bad symbols but isn't as heavy-handed
14660	# as -z defs.
14661	no_undefined_flag_CXX='$wl-z,text'
14662	allow_undefined_flag_CXX='$wl-z,nodefs'
14663	archive_cmds_need_lc_CXX=no
14664	hardcode_shlibpath_var_CXX=no
14665	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14666	hardcode_libdir_separator_CXX=':'
14667	link_all_deplibs_CXX=yes
14668	export_dynamic_flag_spec_CXX='$wl-Bexport'
14669	runpath_var='LD_RUN_PATH'
14670
14671	case $cc_basename in
14672          CC*)
14673	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14674	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14675	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14676              '"$old_archive_cmds_CXX"
14677	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14678              '"$reload_cmds_CXX"
14679	    ;;
14680	  *)
14681	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14682	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14683	    ;;
14684	esac
14685      ;;
14686
14687      tandem*)
14688        case $cc_basename in
14689          NCC*)
14690	    # NonStop-UX NCC 3.20
14691	    # FIXME: insert proper C++ library support
14692	    ld_shlibs_CXX=no
14693	    ;;
14694          *)
14695	    # FIXME: insert proper C++ library support
14696	    ld_shlibs_CXX=no
14697	    ;;
14698        esac
14699        ;;
14700
14701      vxworks*)
14702        # FIXME: insert proper C++ library support
14703        ld_shlibs_CXX=no
14704        ;;
14705
14706      *)
14707        # FIXME: insert proper C++ library support
14708        ld_shlibs_CXX=no
14709        ;;
14710    esac
14711
14712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14713$as_echo "$ld_shlibs_CXX" >&6; }
14714    test no = "$ld_shlibs_CXX" && can_build_shared=no
14715
14716    GCC_CXX=$GXX
14717    LD_CXX=$LD
14718
14719    ## CAVEAT EMPTOR:
14720    ## There is no encapsulation within the following macros, do not change
14721    ## the running order or otherwise move them around unless you know exactly
14722    ## what you are doing...
14723    # Dependencies to place before and after the object being linked:
14724predep_objects_CXX=
14725postdep_objects_CXX=
14726predeps_CXX=
14727postdeps_CXX=
14728compiler_lib_search_path_CXX=
14729
14730cat > conftest.$ac_ext <<_LT_EOF
14731class Foo
14732{
14733public:
14734  Foo (void) { a = 0; }
14735private:
14736  int a;
14737};
14738_LT_EOF
14739
14740
14741_lt_libdeps_save_CFLAGS=$CFLAGS
14742case "$CC $CFLAGS " in #(
14743*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14744*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14745*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14746esac
14747
14748if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14749  (eval $ac_compile) 2>&5
14750  ac_status=$?
14751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14752  test $ac_status = 0; }; then
14753  # Parse the compiler output and extract the necessary
14754  # objects, libraries and library flags.
14755
14756  # Sentinel used to keep track of whether or not we are before
14757  # the conftest object file.
14758  pre_test_object_deps_done=no
14759
14760  for p in `eval "$output_verbose_link_cmd"`; do
14761    case $prev$p in
14762
14763    -L* | -R* | -l*)
14764       # Some compilers place space between "-{L,R}" and the path.
14765       # Remove the space.
14766       if test x-L = "$p" ||
14767          test x-R = "$p"; then
14768	 prev=$p
14769	 continue
14770       fi
14771
14772       # Expand the sysroot to ease extracting the directories later.
14773       if test -z "$prev"; then
14774         case $p in
14775         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14776         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14777         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14778         esac
14779       fi
14780       case $p in
14781       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14782       esac
14783       if test no = "$pre_test_object_deps_done"; then
14784	 case $prev in
14785	 -L | -R)
14786	   # Internal compiler library paths should come after those
14787	   # provided the user.  The postdeps already come after the
14788	   # user supplied libs so there is no need to process them.
14789	   if test -z "$compiler_lib_search_path_CXX"; then
14790	     compiler_lib_search_path_CXX=$prev$p
14791	   else
14792	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14793	   fi
14794	   ;;
14795	 # The "-l" case would never come before the object being
14796	 # linked, so don't bother handling this case.
14797	 esac
14798       else
14799	 if test -z "$postdeps_CXX"; then
14800	   postdeps_CXX=$prev$p
14801	 else
14802	   postdeps_CXX="${postdeps_CXX} $prev$p"
14803	 fi
14804       fi
14805       prev=
14806       ;;
14807
14808    *.lto.$objext) ;; # Ignore GCC LTO objects
14809    *.$objext)
14810       # This assumes that the test object file only shows up
14811       # once in the compiler output.
14812       if test "$p" = "conftest.$objext"; then
14813	 pre_test_object_deps_done=yes
14814	 continue
14815       fi
14816
14817       if test no = "$pre_test_object_deps_done"; then
14818	 if test -z "$predep_objects_CXX"; then
14819	   predep_objects_CXX=$p
14820	 else
14821	   predep_objects_CXX="$predep_objects_CXX $p"
14822	 fi
14823       else
14824	 if test -z "$postdep_objects_CXX"; then
14825	   postdep_objects_CXX=$p
14826	 else
14827	   postdep_objects_CXX="$postdep_objects_CXX $p"
14828	 fi
14829       fi
14830       ;;
14831
14832    *) ;; # Ignore the rest.
14833
14834    esac
14835  done
14836
14837  # Clean up.
14838  rm -f a.out a.exe
14839else
14840  echo "libtool.m4: error: problem compiling CXX test program"
14841fi
14842
14843$RM -f confest.$objext
14844CFLAGS=$_lt_libdeps_save_CFLAGS
14845
14846# PORTME: override above test on systems where it is broken
14847case $host_os in
14848interix[3-9]*)
14849  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14850  # hack all around it, let's just trust "g++" to DTRT.
14851  predep_objects_CXX=
14852  postdep_objects_CXX=
14853  postdeps_CXX=
14854  ;;
14855esac
14856
14857
14858case " $postdeps_CXX " in
14859*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14860esac
14861 compiler_lib_search_dirs_CXX=
14862if test -n "${compiler_lib_search_path_CXX}"; then
14863 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14864fi
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896    lt_prog_compiler_wl_CXX=
14897lt_prog_compiler_pic_CXX=
14898lt_prog_compiler_static_CXX=
14899
14900
14901  # C++ specific cases for pic, static, wl, etc.
14902  if test yes = "$GXX"; then
14903    lt_prog_compiler_wl_CXX='-Wl,'
14904    lt_prog_compiler_static_CXX='-static'
14905
14906    case $host_os in
14907    aix*)
14908      # All AIX code is PIC.
14909      if test ia64 = "$host_cpu"; then
14910	# AIX 5 now supports IA64 processor
14911	lt_prog_compiler_static_CXX='-Bstatic'
14912      fi
14913      lt_prog_compiler_pic_CXX='-fPIC'
14914      ;;
14915
14916    amigaos*)
14917      case $host_cpu in
14918      powerpc)
14919            # see comment about AmigaOS4 .so support
14920            lt_prog_compiler_pic_CXX='-fPIC'
14921        ;;
14922      m68k)
14923            # FIXME: we need at least 68020 code to build shared libraries, but
14924            # adding the '-m68020' flag to GCC prevents building anything better,
14925            # like '-m68040'.
14926            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14927        ;;
14928      esac
14929      ;;
14930
14931    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14932      # PIC is the default for these OSes.
14933      ;;
14934    mingw* | cygwin* | os2* | pw32* | cegcc*)
14935      # This hack is so that the source file can tell whether it is being
14936      # built for inclusion in a dll (and should export symbols for example).
14937      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14938      # (--disable-auto-import) libraries
14939      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14940      case $host_os in
14941      os2*)
14942	lt_prog_compiler_static_CXX='$wl-static'
14943	;;
14944      esac
14945      ;;
14946    darwin* | rhapsody*)
14947      # PIC is the default on this platform
14948      # Common symbols not allowed in MH_DYLIB files
14949      lt_prog_compiler_pic_CXX='-fno-common'
14950      ;;
14951    *djgpp*)
14952      # DJGPP does not support shared libraries at all
14953      lt_prog_compiler_pic_CXX=
14954      ;;
14955    haiku*)
14956      # PIC is the default for Haiku.
14957      # The "-static" flag exists, but is broken.
14958      lt_prog_compiler_static_CXX=
14959      ;;
14960    interix[3-9]*)
14961      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14962      # Instead, we relocate shared libraries at runtime.
14963      ;;
14964    sysv4*MP*)
14965      if test -d /usr/nec; then
14966	lt_prog_compiler_pic_CXX=-Kconform_pic
14967      fi
14968      ;;
14969    hpux*)
14970      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14971      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14972      # sets the default TLS model and affects inlining.
14973      case $host_cpu in
14974      hppa*64*)
14975	;;
14976      *)
14977	lt_prog_compiler_pic_CXX='-fPIC'
14978	;;
14979      esac
14980      ;;
14981    *qnx* | *nto*)
14982      # QNX uses GNU C++, but need to define -shared option too, otherwise
14983      # it will coredump.
14984      lt_prog_compiler_pic_CXX='-fPIC -shared'
14985      ;;
14986    *)
14987      lt_prog_compiler_pic_CXX='-fPIC'
14988      ;;
14989    esac
14990  else
14991    case $host_os in
14992      aix[4-9]*)
14993	# All AIX code is PIC.
14994	if test ia64 = "$host_cpu"; then
14995	  # AIX 5 now supports IA64 processor
14996	  lt_prog_compiler_static_CXX='-Bstatic'
14997	else
14998	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14999	fi
15000	;;
15001      chorus*)
15002	case $cc_basename in
15003	cxch68*)
15004	  # Green Hills C++ Compiler
15005	  # _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"
15006	  ;;
15007	esac
15008	;;
15009      mingw* | cygwin* | os2* | pw32* | cegcc*)
15010	# This hack is so that the source file can tell whether it is being
15011	# built for inclusion in a dll (and should export symbols for example).
15012	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15013	;;
15014      dgux*)
15015	case $cc_basename in
15016	  ec++*)
15017	    lt_prog_compiler_pic_CXX='-KPIC'
15018	    ;;
15019	  ghcx*)
15020	    # Green Hills C++ Compiler
15021	    lt_prog_compiler_pic_CXX='-pic'
15022	    ;;
15023	  *)
15024	    ;;
15025	esac
15026	;;
15027      freebsd* | dragonfly*)
15028	# FreeBSD uses GNU C++
15029	;;
15030      hpux9* | hpux10* | hpux11*)
15031	case $cc_basename in
15032	  CC*)
15033	    lt_prog_compiler_wl_CXX='-Wl,'
15034	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15035	    if test ia64 != "$host_cpu"; then
15036	      lt_prog_compiler_pic_CXX='+Z'
15037	    fi
15038	    ;;
15039	  aCC*)
15040	    lt_prog_compiler_wl_CXX='-Wl,'
15041	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15042	    case $host_cpu in
15043	    hppa*64*|ia64*)
15044	      # +Z the default
15045	      ;;
15046	    *)
15047	      lt_prog_compiler_pic_CXX='+Z'
15048	      ;;
15049	    esac
15050	    ;;
15051	  *)
15052	    ;;
15053	esac
15054	;;
15055      interix*)
15056	# This is c89, which is MS Visual C++ (no shared libs)
15057	# Anyone wants to do a port?
15058	;;
15059      irix5* | irix6* | nonstopux*)
15060	case $cc_basename in
15061	  CC*)
15062	    lt_prog_compiler_wl_CXX='-Wl,'
15063	    lt_prog_compiler_static_CXX='-non_shared'
15064	    # CC pic flag -KPIC is the default.
15065	    ;;
15066	  *)
15067	    ;;
15068	esac
15069	;;
15070      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15071	case $cc_basename in
15072	  KCC*)
15073	    # KAI C++ Compiler
15074	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15075	    lt_prog_compiler_pic_CXX='-fPIC'
15076	    ;;
15077	  ecpc* )
15078	    # old Intel C++ for x86_64, which still supported -KPIC.
15079	    lt_prog_compiler_wl_CXX='-Wl,'
15080	    lt_prog_compiler_pic_CXX='-KPIC'
15081	    lt_prog_compiler_static_CXX='-static'
15082	    ;;
15083	  icpc* )
15084	    # Intel C++, used to be incompatible with GCC.
15085	    # ICC 10 doesn't accept -KPIC any more.
15086	    lt_prog_compiler_wl_CXX='-Wl,'
15087	    lt_prog_compiler_pic_CXX='-fPIC'
15088	    lt_prog_compiler_static_CXX='-static'
15089	    ;;
15090	  pgCC* | pgcpp*)
15091	    # Portland Group C++ compiler
15092	    lt_prog_compiler_wl_CXX='-Wl,'
15093	    lt_prog_compiler_pic_CXX='-fpic'
15094	    lt_prog_compiler_static_CXX='-Bstatic'
15095	    ;;
15096	  cxx*)
15097	    # Compaq C++
15098	    # Make sure the PIC flag is empty.  It appears that all Alpha
15099	    # Linux and Compaq Tru64 Unix objects are PIC.
15100	    lt_prog_compiler_pic_CXX=
15101	    lt_prog_compiler_static_CXX='-non_shared'
15102	    ;;
15103	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15104	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15105	    lt_prog_compiler_wl_CXX='-Wl,'
15106	    lt_prog_compiler_pic_CXX='-qpic'
15107	    lt_prog_compiler_static_CXX='-qstaticlink'
15108	    ;;
15109	  *)
15110	    case `$CC -V 2>&1 | sed 5q` in
15111	    *Sun\ C*)
15112	      # Sun C++ 5.9
15113	      lt_prog_compiler_pic_CXX='-KPIC'
15114	      lt_prog_compiler_static_CXX='-Bstatic'
15115	      lt_prog_compiler_wl_CXX='-Qoption ld '
15116	      ;;
15117	    esac
15118	    ;;
15119	esac
15120	;;
15121      lynxos*)
15122	;;
15123      m88k*)
15124	;;
15125      mvs*)
15126	case $cc_basename in
15127	  cxx*)
15128	    lt_prog_compiler_pic_CXX='-W c,exportall'
15129	    ;;
15130	  *)
15131	    ;;
15132	esac
15133	;;
15134      netbsd* | netbsdelf*-gnu)
15135	;;
15136      *qnx* | *nto*)
15137        # QNX uses GNU C++, but need to define -shared option too, otherwise
15138        # it will coredump.
15139        lt_prog_compiler_pic_CXX='-fPIC -shared'
15140        ;;
15141      osf3* | osf4* | osf5*)
15142	case $cc_basename in
15143	  KCC*)
15144	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15145	    ;;
15146	  RCC*)
15147	    # Rational C++ 2.4.1
15148	    lt_prog_compiler_pic_CXX='-pic'
15149	    ;;
15150	  cxx*)
15151	    # Digital/Compaq C++
15152	    lt_prog_compiler_wl_CXX='-Wl,'
15153	    # Make sure the PIC flag is empty.  It appears that all Alpha
15154	    # Linux and Compaq Tru64 Unix objects are PIC.
15155	    lt_prog_compiler_pic_CXX=
15156	    lt_prog_compiler_static_CXX='-non_shared'
15157	    ;;
15158	  *)
15159	    ;;
15160	esac
15161	;;
15162      psos*)
15163	;;
15164      solaris*)
15165	case $cc_basename in
15166	  CC* | sunCC*)
15167	    # Sun C++ 4.2, 5.x and Centerline C++
15168	    lt_prog_compiler_pic_CXX='-KPIC'
15169	    lt_prog_compiler_static_CXX='-Bstatic'
15170	    lt_prog_compiler_wl_CXX='-Qoption ld '
15171	    ;;
15172	  gcx*)
15173	    # Green Hills C++ Compiler
15174	    lt_prog_compiler_pic_CXX='-PIC'
15175	    ;;
15176	  *)
15177	    ;;
15178	esac
15179	;;
15180      sunos4*)
15181	case $cc_basename in
15182	  CC*)
15183	    # Sun C++ 4.x
15184	    lt_prog_compiler_pic_CXX='-pic'
15185	    lt_prog_compiler_static_CXX='-Bstatic'
15186	    ;;
15187	  lcc*)
15188	    # Lucid
15189	    lt_prog_compiler_pic_CXX='-pic'
15190	    ;;
15191	  *)
15192	    ;;
15193	esac
15194	;;
15195      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15196	case $cc_basename in
15197	  CC*)
15198	    lt_prog_compiler_wl_CXX='-Wl,'
15199	    lt_prog_compiler_pic_CXX='-KPIC'
15200	    lt_prog_compiler_static_CXX='-Bstatic'
15201	    ;;
15202	esac
15203	;;
15204      tandem*)
15205	case $cc_basename in
15206	  NCC*)
15207	    # NonStop-UX NCC 3.20
15208	    lt_prog_compiler_pic_CXX='-KPIC'
15209	    ;;
15210	  *)
15211	    ;;
15212	esac
15213	;;
15214      vxworks*)
15215	;;
15216      *)
15217	lt_prog_compiler_can_build_shared_CXX=no
15218	;;
15219    esac
15220  fi
15221
15222case $host_os in
15223  # For platforms that do not support PIC, -DPIC is meaningless:
15224  *djgpp*)
15225    lt_prog_compiler_pic_CXX=
15226    ;;
15227  *)
15228    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15229    ;;
15230esac
15231
15232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15233$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15234if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15235  $as_echo_n "(cached) " >&6
15236else
15237  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15238fi
15239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15240$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15241lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15242
15243#
15244# Check to make sure the PIC flag actually works.
15245#
15246if test -n "$lt_prog_compiler_pic_CXX"; then
15247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15248$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15249if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15250  $as_echo_n "(cached) " >&6
15251else
15252  lt_cv_prog_compiler_pic_works_CXX=no
15253   ac_outfile=conftest.$ac_objext
15254   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15255   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15256   # Insert the option either (1) after the last *FLAGS variable, or
15257   # (2) before a word containing "conftest.", or (3) at the end.
15258   # Note that $ac_compile itself does not contain backslashes and begins
15259   # with a dollar sign (not a hyphen), so the echo should work correctly.
15260   # The option is referenced via a variable to avoid confusing sed.
15261   lt_compile=`echo "$ac_compile" | $SED \
15262   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15263   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15264   -e 's:$: $lt_compiler_flag:'`
15265   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15266   (eval "$lt_compile" 2>conftest.err)
15267   ac_status=$?
15268   cat conftest.err >&5
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   if (exit $ac_status) && test -s "$ac_outfile"; then
15271     # The compiler can only warn and ignore the option if not recognized
15272     # So say no if there are warnings other than the usual output.
15273     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15274     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15275     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15276       lt_cv_prog_compiler_pic_works_CXX=yes
15277     fi
15278   fi
15279   $RM conftest*
15280
15281fi
15282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15283$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15284
15285if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15286    case $lt_prog_compiler_pic_CXX in
15287     "" | " "*) ;;
15288     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15289     esac
15290else
15291    lt_prog_compiler_pic_CXX=
15292     lt_prog_compiler_can_build_shared_CXX=no
15293fi
15294
15295fi
15296
15297
15298
15299
15300
15301#
15302# Check to make sure the static flag actually works.
15303#
15304wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15306$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15307if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15308  $as_echo_n "(cached) " >&6
15309else
15310  lt_cv_prog_compiler_static_works_CXX=no
15311   save_LDFLAGS=$LDFLAGS
15312   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15313   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15314   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15315     # The linker can only warn and ignore the option if not recognized
15316     # So say no if there are warnings
15317     if test -s conftest.err; then
15318       # Append any errors to the config.log.
15319       cat conftest.err 1>&5
15320       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15321       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15322       if diff conftest.exp conftest.er2 >/dev/null; then
15323         lt_cv_prog_compiler_static_works_CXX=yes
15324       fi
15325     else
15326       lt_cv_prog_compiler_static_works_CXX=yes
15327     fi
15328   fi
15329   $RM -r conftest*
15330   LDFLAGS=$save_LDFLAGS
15331
15332fi
15333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15334$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15335
15336if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15337    :
15338else
15339    lt_prog_compiler_static_CXX=
15340fi
15341
15342
15343
15344
15345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15346$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15347if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15348  $as_echo_n "(cached) " >&6
15349else
15350  lt_cv_prog_compiler_c_o_CXX=no
15351   $RM -r conftest 2>/dev/null
15352   mkdir conftest
15353   cd conftest
15354   mkdir out
15355   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15356
15357   lt_compiler_flag="-o out/conftest2.$ac_objext"
15358   # Insert the option either (1) after the last *FLAGS variable, or
15359   # (2) before a word containing "conftest.", or (3) at the end.
15360   # Note that $ac_compile itself does not contain backslashes and begins
15361   # with a dollar sign (not a hyphen), so the echo should work correctly.
15362   lt_compile=`echo "$ac_compile" | $SED \
15363   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15364   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15365   -e 's:$: $lt_compiler_flag:'`
15366   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15367   (eval "$lt_compile" 2>out/conftest.err)
15368   ac_status=$?
15369   cat out/conftest.err >&5
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15372   then
15373     # The compiler can only warn and ignore the option if not recognized
15374     # So say no if there are warnings
15375     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15376     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15377     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15378       lt_cv_prog_compiler_c_o_CXX=yes
15379     fi
15380   fi
15381   chmod u+w . 2>&5
15382   $RM conftest*
15383   # SGI C++ compiler will create directory out/ii_files/ for
15384   # template instantiation
15385   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15386   $RM out/* && rmdir out
15387   cd ..
15388   $RM -r conftest
15389   $RM conftest*
15390
15391fi
15392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15393$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15394
15395
15396
15397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15398$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15399if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15400  $as_echo_n "(cached) " >&6
15401else
15402  lt_cv_prog_compiler_c_o_CXX=no
15403   $RM -r conftest 2>/dev/null
15404   mkdir conftest
15405   cd conftest
15406   mkdir out
15407   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15408
15409   lt_compiler_flag="-o out/conftest2.$ac_objext"
15410   # Insert the option either (1) after the last *FLAGS variable, or
15411   # (2) before a word containing "conftest.", or (3) at the end.
15412   # Note that $ac_compile itself does not contain backslashes and begins
15413   # with a dollar sign (not a hyphen), so the echo should work correctly.
15414   lt_compile=`echo "$ac_compile" | $SED \
15415   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15416   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15417   -e 's:$: $lt_compiler_flag:'`
15418   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15419   (eval "$lt_compile" 2>out/conftest.err)
15420   ac_status=$?
15421   cat out/conftest.err >&5
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15424   then
15425     # The compiler can only warn and ignore the option if not recognized
15426     # So say no if there are warnings
15427     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15428     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15429     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15430       lt_cv_prog_compiler_c_o_CXX=yes
15431     fi
15432   fi
15433   chmod u+w . 2>&5
15434   $RM conftest*
15435   # SGI C++ compiler will create directory out/ii_files/ for
15436   # template instantiation
15437   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15438   $RM out/* && rmdir out
15439   cd ..
15440   $RM -r conftest
15441   $RM conftest*
15442
15443fi
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15445$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15446
15447
15448
15449
15450hard_links=nottested
15451if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15452  # do not overwrite the value of need_locks provided by the user
15453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15454$as_echo_n "checking if we can lock with hard links... " >&6; }
15455  hard_links=yes
15456  $RM conftest*
15457  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15458  touch conftest.a
15459  ln conftest.a conftest.b 2>&5 || hard_links=no
15460  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15462$as_echo "$hard_links" >&6; }
15463  if test no = "$hard_links"; then
15464    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15465$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15466    need_locks=warn
15467  fi
15468else
15469  need_locks=no
15470fi
15471
15472
15473
15474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15475$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15476
15477  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15478  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15479  case $host_os in
15480  aix[4-9]*)
15481    # If we're using GNU nm, then we don't want the "-C" option.
15482    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15483    # Without the "-l" option, or with the "-B" option, AIX nm treats
15484    # weak defined symbols like other global defined symbols, whereas
15485    # GNU nm marks them as "W".
15486    # While the 'weak' keyword is ignored in the Export File, we need
15487    # it in the Import File for the 'aix-soname' feature, so we have
15488    # to replace the "-B" option with "-P" for AIX nm.
15489    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15490      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15491    else
15492      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15493    fi
15494    ;;
15495  pw32*)
15496    export_symbols_cmds_CXX=$ltdll_cmds
15497    ;;
15498  cygwin* | mingw* | cegcc*)
15499    case $cc_basename in
15500    cl*)
15501      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15502      ;;
15503    *)
15504      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'
15505      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15506      ;;
15507    esac
15508    ;;
15509  linux* | k*bsd*-gnu | gnu*)
15510    link_all_deplibs_CXX=no
15511    ;;
15512  *)
15513    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15514    ;;
15515  esac
15516
15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15518$as_echo "$ld_shlibs_CXX" >&6; }
15519test no = "$ld_shlibs_CXX" && can_build_shared=no
15520
15521with_gnu_ld_CXX=$with_gnu_ld
15522
15523
15524
15525
15526
15527
15528#
15529# Do we need to explicitly link libc?
15530#
15531case "x$archive_cmds_need_lc_CXX" in
15532x|xyes)
15533  # Assume -lc should be added
15534  archive_cmds_need_lc_CXX=yes
15535
15536  if test yes,yes = "$GCC,$enable_shared"; then
15537    case $archive_cmds_CXX in
15538    *'~'*)
15539      # FIXME: we may have to deal with multi-command sequences.
15540      ;;
15541    '$CC '*)
15542      # Test whether the compiler implicitly links with -lc since on some
15543      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15544      # to ld, don't add -lc before -lgcc.
15545      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15546$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15547if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15548  $as_echo_n "(cached) " >&6
15549else
15550  $RM conftest*
15551	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15552
15553	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15554  (eval $ac_compile) 2>&5
15555  ac_status=$?
15556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15557  test $ac_status = 0; } 2>conftest.err; then
15558	  soname=conftest
15559	  lib=conftest
15560	  libobjs=conftest.$ac_objext
15561	  deplibs=
15562	  wl=$lt_prog_compiler_wl_CXX
15563	  pic_flag=$lt_prog_compiler_pic_CXX
15564	  compiler_flags=-v
15565	  linker_flags=-v
15566	  verstring=
15567	  output_objdir=.
15568	  libname=conftest
15569	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15570	  allow_undefined_flag_CXX=
15571	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15572  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15573  ac_status=$?
15574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15575  test $ac_status = 0; }
15576	  then
15577	    lt_cv_archive_cmds_need_lc_CXX=no
15578	  else
15579	    lt_cv_archive_cmds_need_lc_CXX=yes
15580	  fi
15581	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15582	else
15583	  cat conftest.err 1>&5
15584	fi
15585	$RM conftest*
15586
15587fi
15588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15589$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15590      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15591      ;;
15592    esac
15593  fi
15594  ;;
15595esac
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15659$as_echo_n "checking dynamic linker characteristics... " >&6; }
15660
15661library_names_spec=
15662libname_spec='lib$name'
15663soname_spec=
15664shrext_cmds=.so
15665postinstall_cmds=
15666postuninstall_cmds=
15667finish_cmds=
15668finish_eval=
15669shlibpath_var=
15670shlibpath_overrides_runpath=unknown
15671version_type=none
15672dynamic_linker="$host_os ld.so"
15673sys_lib_dlsearch_path_spec="/lib /usr/lib"
15674need_lib_prefix=unknown
15675hardcode_into_libs=no
15676
15677# when you set need_version to no, make sure it does not cause -set_version
15678# flags to be left without arguments
15679need_version=unknown
15680
15681
15682
15683case $host_os in
15684aix3*)
15685  version_type=linux # correct to gnu/linux during the next big refactor
15686  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15687  shlibpath_var=LIBPATH
15688
15689  # AIX 3 has no versioning support, so we append a major version to the name.
15690  soname_spec='$libname$release$shared_ext$major'
15691  ;;
15692
15693aix[4-9]*)
15694  version_type=linux # correct to gnu/linux during the next big refactor
15695  need_lib_prefix=no
15696  need_version=no
15697  hardcode_into_libs=yes
15698  if test ia64 = "$host_cpu"; then
15699    # AIX 5 supports IA64
15700    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15701    shlibpath_var=LD_LIBRARY_PATH
15702  else
15703    # With GCC up to 2.95.x, collect2 would create an import file
15704    # for dependence libraries.  The import file would start with
15705    # the line '#! .'.  This would cause the generated library to
15706    # depend on '.', always an invalid library.  This was fixed in
15707    # development snapshots of GCC prior to 3.0.
15708    case $host_os in
15709      aix4 | aix4.[01] | aix4.[01].*)
15710      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15711	   echo ' yes '
15712	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15713	:
15714      else
15715	can_build_shared=no
15716      fi
15717      ;;
15718    esac
15719    # Using Import Files as archive members, it is possible to support
15720    # filename-based versioning of shared library archives on AIX. While
15721    # this would work for both with and without runtime linking, it will
15722    # prevent static linking of such archives. So we do filename-based
15723    # shared library versioning with .so extension only, which is used
15724    # when both runtime linking and shared linking is enabled.
15725    # Unfortunately, runtime linking may impact performance, so we do
15726    # not want this to be the default eventually. Also, we use the
15727    # versioned .so libs for executables only if there is the -brtl
15728    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15729    # To allow for filename-based versioning support, we need to create
15730    # libNAME.so.V as an archive file, containing:
15731    # *) an Import File, referring to the versioned filename of the
15732    #    archive as well as the shared archive member, telling the
15733    #    bitwidth (32 or 64) of that shared object, and providing the
15734    #    list of exported symbols of that shared object, eventually
15735    #    decorated with the 'weak' keyword
15736    # *) the shared object with the F_LOADONLY flag set, to really avoid
15737    #    it being seen by the linker.
15738    # At run time we better use the real file rather than another symlink,
15739    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15740
15741    case $with_aix_soname,$aix_use_runtimelinking in
15742    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15743    # soname into executable. Probably we can add versioning support to
15744    # collect2, so additional links can be useful in future.
15745    aix,yes) # traditional libtool
15746      dynamic_linker='AIX unversionable lib.so'
15747      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15748      # instead of lib<name>.a to let people know that these are not
15749      # typical AIX shared libraries.
15750      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15751      ;;
15752    aix,no) # traditional AIX only
15753      dynamic_linker='AIX lib.a(lib.so.V)'
15754      # We preserve .a as extension for shared libraries through AIX4.2
15755      # and later when we are not doing run time linking.
15756      library_names_spec='$libname$release.a $libname.a'
15757      soname_spec='$libname$release$shared_ext$major'
15758      ;;
15759    svr4,*) # full svr4 only
15760      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15761      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15762      # We do not specify a path in Import Files, so LIBPATH fires.
15763      shlibpath_overrides_runpath=yes
15764      ;;
15765    *,yes) # both, prefer svr4
15766      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15767      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15768      # unpreferred sharedlib libNAME.a needs extra handling
15769      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15770      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15771      # We do not specify a path in Import Files, so LIBPATH fires.
15772      shlibpath_overrides_runpath=yes
15773      ;;
15774    *,no) # both, prefer aix
15775      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15776      library_names_spec='$libname$release.a $libname.a'
15777      soname_spec='$libname$release$shared_ext$major'
15778      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15779      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15780      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15781      ;;
15782    esac
15783    shlibpath_var=LIBPATH
15784  fi
15785  ;;
15786
15787amigaos*)
15788  case $host_cpu in
15789  powerpc)
15790    # Since July 2007 AmigaOS4 officially supports .so libraries.
15791    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15792    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15793    ;;
15794  m68k)
15795    library_names_spec='$libname.ixlibrary $libname.a'
15796    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15797    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15798    ;;
15799  esac
15800  ;;
15801
15802beos*)
15803  library_names_spec='$libname$shared_ext'
15804  dynamic_linker="$host_os ld.so"
15805  shlibpath_var=LIBRARY_PATH
15806  ;;
15807
15808bsdi[45]*)
15809  version_type=linux # correct to gnu/linux during the next big refactor
15810  need_version=no
15811  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15812  soname_spec='$libname$release$shared_ext$major'
15813  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15814  shlibpath_var=LD_LIBRARY_PATH
15815  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15816  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15817  # the default ld.so.conf also contains /usr/contrib/lib and
15818  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15819  # libtool to hard-code these into programs
15820  ;;
15821
15822cygwin* | mingw* | pw32* | cegcc*)
15823  version_type=windows
15824  shrext_cmds=.dll
15825  need_version=no
15826  need_lib_prefix=no
15827
15828  case $GCC,$cc_basename in
15829  yes,*)
15830    # gcc
15831    library_names_spec='$libname.dll.a'
15832    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15833    postinstall_cmds='base_file=`basename \$file`~
15834      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15835      dldir=$destdir/`dirname \$dlpath`~
15836      test -d \$dldir || mkdir -p \$dldir~
15837      $install_prog $dir/$dlname \$dldir/$dlname~
15838      chmod a+x \$dldir/$dlname~
15839      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15840        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15841      fi'
15842    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15843      dlpath=$dir/\$dldll~
15844       $RM \$dlpath'
15845    shlibpath_overrides_runpath=yes
15846
15847    case $host_os in
15848    cygwin*)
15849      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15850      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15851
15852      ;;
15853    mingw* | cegcc*)
15854      # MinGW DLLs use traditional 'lib' prefix
15855      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15856      ;;
15857    pw32*)
15858      # pw32 DLLs use 'pw' prefix rather than 'lib'
15859      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15860      ;;
15861    esac
15862    dynamic_linker='Win32 ld.exe'
15863    ;;
15864
15865  *,cl*)
15866    # Native MSVC
15867    libname_spec='$name'
15868    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15869    library_names_spec='$libname.dll.lib'
15870
15871    case $build_os in
15872    mingw*)
15873      sys_lib_search_path_spec=
15874      lt_save_ifs=$IFS
15875      IFS=';'
15876      for lt_path in $LIB
15877      do
15878        IFS=$lt_save_ifs
15879        # Let DOS variable expansion print the short 8.3 style file name.
15880        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15881        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15882      done
15883      IFS=$lt_save_ifs
15884      # Convert to MSYS style.
15885      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15886      ;;
15887    cygwin*)
15888      # Convert to unix form, then to dos form, then back to unix form
15889      # but this time dos style (no spaces!) so that the unix form looks
15890      # like /cygdrive/c/PROGRA~1:/cygdr...
15891      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15892      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15893      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15894      ;;
15895    *)
15896      sys_lib_search_path_spec=$LIB
15897      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15898        # It is most probably a Windows format PATH.
15899        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15900      else
15901        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15902      fi
15903      # FIXME: find the short name or the path components, as spaces are
15904      # common. (e.g. "Program Files" -> "PROGRA~1")
15905      ;;
15906    esac
15907
15908    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15909    postinstall_cmds='base_file=`basename \$file`~
15910      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15911      dldir=$destdir/`dirname \$dlpath`~
15912      test -d \$dldir || mkdir -p \$dldir~
15913      $install_prog $dir/$dlname \$dldir/$dlname'
15914    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15915      dlpath=$dir/\$dldll~
15916       $RM \$dlpath'
15917    shlibpath_overrides_runpath=yes
15918    dynamic_linker='Win32 link.exe'
15919    ;;
15920
15921  *)
15922    # Assume MSVC wrapper
15923    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15924    dynamic_linker='Win32 ld.exe'
15925    ;;
15926  esac
15927  # FIXME: first we should search . and the directory the executable is in
15928  shlibpath_var=PATH
15929  ;;
15930
15931darwin* | rhapsody*)
15932  dynamic_linker="$host_os dyld"
15933  version_type=darwin
15934  need_lib_prefix=no
15935  need_version=no
15936  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15937  soname_spec='$libname$release$major$shared_ext'
15938  shlibpath_overrides_runpath=yes
15939  shlibpath_var=DYLD_LIBRARY_PATH
15940  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15941
15942  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15943  ;;
15944
15945dgux*)
15946  version_type=linux # correct to gnu/linux during the next big refactor
15947  need_lib_prefix=no
15948  need_version=no
15949  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15950  soname_spec='$libname$release$shared_ext$major'
15951  shlibpath_var=LD_LIBRARY_PATH
15952  ;;
15953
15954freebsd* | dragonfly*)
15955  # DragonFly does not have aout.  When/if they implement a new
15956  # versioning mechanism, adjust this.
15957  if test -x /usr/bin/objformat; then
15958    objformat=`/usr/bin/objformat`
15959  else
15960    case $host_os in
15961    freebsd[23].*) objformat=aout ;;
15962    *) objformat=elf ;;
15963    esac
15964  fi
15965  version_type=freebsd-$objformat
15966  case $version_type in
15967    freebsd-elf*)
15968      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15969      soname_spec='$libname$release$shared_ext$major'
15970      need_version=no
15971      need_lib_prefix=no
15972      ;;
15973    freebsd-*)
15974      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15975      need_version=yes
15976      ;;
15977  esac
15978  shlibpath_var=LD_LIBRARY_PATH
15979  case $host_os in
15980  freebsd2.*)
15981    shlibpath_overrides_runpath=yes
15982    ;;
15983  freebsd3.[01]* | freebsdelf3.[01]*)
15984    shlibpath_overrides_runpath=yes
15985    hardcode_into_libs=yes
15986    ;;
15987  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15988  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15989    shlibpath_overrides_runpath=no
15990    hardcode_into_libs=yes
15991    ;;
15992  *) # from 4.6 on, and DragonFly
15993    shlibpath_overrides_runpath=yes
15994    hardcode_into_libs=yes
15995    ;;
15996  esac
15997  ;;
15998
15999haiku*)
16000  version_type=linux # correct to gnu/linux during the next big refactor
16001  need_lib_prefix=no
16002  need_version=no
16003  dynamic_linker="$host_os runtime_loader"
16004  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16005  soname_spec='$libname$release$shared_ext$major'
16006  shlibpath_var=LIBRARY_PATH
16007  shlibpath_overrides_runpath=no
16008  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16009  hardcode_into_libs=yes
16010  ;;
16011
16012hpux9* | hpux10* | hpux11*)
16013  # Give a soname corresponding to the major version so that dld.sl refuses to
16014  # link against other versions.
16015  version_type=sunos
16016  need_lib_prefix=no
16017  need_version=no
16018  case $host_cpu in
16019  ia64*)
16020    shrext_cmds='.so'
16021    hardcode_into_libs=yes
16022    dynamic_linker="$host_os dld.so"
16023    shlibpath_var=LD_LIBRARY_PATH
16024    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16025    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16026    soname_spec='$libname$release$shared_ext$major'
16027    if test 32 = "$HPUX_IA64_MODE"; then
16028      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16029      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16030    else
16031      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16032      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16033    fi
16034    ;;
16035  hppa*64*)
16036    shrext_cmds='.sl'
16037    hardcode_into_libs=yes
16038    dynamic_linker="$host_os dld.sl"
16039    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16040    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16041    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16042    soname_spec='$libname$release$shared_ext$major'
16043    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16044    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16045    ;;
16046  *)
16047    shrext_cmds='.sl'
16048    dynamic_linker="$host_os dld.sl"
16049    shlibpath_var=SHLIB_PATH
16050    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16051    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16052    soname_spec='$libname$release$shared_ext$major'
16053    ;;
16054  esac
16055  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16056  postinstall_cmds='chmod 555 $lib'
16057  # or fails outright, so override atomically:
16058  install_override_mode=555
16059  ;;
16060
16061interix[3-9]*)
16062  version_type=linux # correct to gnu/linux during the next big refactor
16063  need_lib_prefix=no
16064  need_version=no
16065  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16066  soname_spec='$libname$release$shared_ext$major'
16067  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16068  shlibpath_var=LD_LIBRARY_PATH
16069  shlibpath_overrides_runpath=no
16070  hardcode_into_libs=yes
16071  ;;
16072
16073irix5* | irix6* | nonstopux*)
16074  case $host_os in
16075    nonstopux*) version_type=nonstopux ;;
16076    *)
16077	if test yes = "$lt_cv_prog_gnu_ld"; then
16078		version_type=linux # correct to gnu/linux during the next big refactor
16079	else
16080		version_type=irix
16081	fi ;;
16082  esac
16083  need_lib_prefix=no
16084  need_version=no
16085  soname_spec='$libname$release$shared_ext$major'
16086  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16087  case $host_os in
16088  irix5* | nonstopux*)
16089    libsuff= shlibsuff=
16090    ;;
16091  *)
16092    case $LD in # libtool.m4 will add one of these switches to LD
16093    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16094      libsuff= shlibsuff= libmagic=32-bit;;
16095    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16096      libsuff=32 shlibsuff=N32 libmagic=N32;;
16097    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16098      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16099    *) libsuff= shlibsuff= libmagic=never-match;;
16100    esac
16101    ;;
16102  esac
16103  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16104  shlibpath_overrides_runpath=no
16105  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16106  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16107  hardcode_into_libs=yes
16108  ;;
16109
16110# No shared lib support for Linux oldld, aout, or coff.
16111linux*oldld* | linux*aout* | linux*coff*)
16112  dynamic_linker=no
16113  ;;
16114
16115linux*android*)
16116  version_type=none # Android doesn't support versioned libraries.
16117  need_lib_prefix=no
16118  need_version=no
16119  library_names_spec='$libname$release$shared_ext'
16120  soname_spec='$libname$release$shared_ext'
16121  finish_cmds=
16122  shlibpath_var=LD_LIBRARY_PATH
16123  shlibpath_overrides_runpath=yes
16124
16125  # This implies no fast_install, which is unacceptable.
16126  # Some rework will be needed to allow for fast_install
16127  # before this can be enabled.
16128  hardcode_into_libs=yes
16129
16130  dynamic_linker='Android linker'
16131  # Don't embed -rpath directories since the linker doesn't support them.
16132  hardcode_libdir_flag_spec_CXX='-L$libdir'
16133  ;;
16134
16135# This must be glibc/ELF.
16136linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16137  version_type=linux # correct to gnu/linux during the next big refactor
16138  need_lib_prefix=no
16139  need_version=no
16140  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16141  soname_spec='$libname$release$shared_ext$major'
16142  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16143  shlibpath_var=LD_LIBRARY_PATH
16144  shlibpath_overrides_runpath=no
16145
16146  # Some binutils ld are patched to set DT_RUNPATH
16147  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16148  $as_echo_n "(cached) " >&6
16149else
16150  lt_cv_shlibpath_overrides_runpath=no
16151    save_LDFLAGS=$LDFLAGS
16152    save_libdir=$libdir
16153    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16154	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16155    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156/* end confdefs.h.  */
16157
16158int
16159main ()
16160{
16161
16162  ;
16163  return 0;
16164}
16165_ACEOF
16166if ac_fn_cxx_try_link "$LINENO"; then :
16167  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16168  lt_cv_shlibpath_overrides_runpath=yes
16169fi
16170fi
16171rm -f core conftest.err conftest.$ac_objext \
16172    conftest$ac_exeext conftest.$ac_ext
16173    LDFLAGS=$save_LDFLAGS
16174    libdir=$save_libdir
16175
16176fi
16177
16178  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16179
16180  # This implies no fast_install, which is unacceptable.
16181  # Some rework will be needed to allow for fast_install
16182  # before this can be enabled.
16183  hardcode_into_libs=yes
16184
16185  # Ideally, we could use ldconfig to report *all* directores which are
16186  # searched for libraries, however this is still not possible.  Aside from not
16187  # being certain /sbin/ldconfig is available, command
16188  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16189  # even though it is searched at run-time.  Try to do the best guess by
16190  # appending ld.so.conf contents (and includes) to the search path.
16191  if test -f /etc/ld.so.conf; then
16192    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' ' '`
16193    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16194  fi
16195
16196  # We used to test for /lib/ld.so.1 and disable shared libraries on
16197  # powerpc, because MkLinux only supported shared libraries with the
16198  # GNU dynamic linker.  Since this was broken with cross compilers,
16199  # most powerpc-linux boxes support dynamic linking these days and
16200  # people can always --disable-shared, the test was removed, and we
16201  # assume the GNU/Linux dynamic linker is in use.
16202  dynamic_linker='GNU/Linux ld.so'
16203  ;;
16204
16205netbsdelf*-gnu)
16206  version_type=linux
16207  need_lib_prefix=no
16208  need_version=no
16209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16210  soname_spec='${libname}${release}${shared_ext}$major'
16211  shlibpath_var=LD_LIBRARY_PATH
16212  shlibpath_overrides_runpath=no
16213  hardcode_into_libs=yes
16214  dynamic_linker='NetBSD ld.elf_so'
16215  ;;
16216
16217netbsd*)
16218  version_type=sunos
16219  need_lib_prefix=no
16220  need_version=no
16221  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16222    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16223    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16224    dynamic_linker='NetBSD (a.out) ld.so'
16225  else
16226    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16227    soname_spec='$libname$release$shared_ext$major'
16228    dynamic_linker='NetBSD ld.elf_so'
16229  fi
16230  shlibpath_var=LD_LIBRARY_PATH
16231  shlibpath_overrides_runpath=yes
16232  hardcode_into_libs=yes
16233  ;;
16234
16235newsos6)
16236  version_type=linux # correct to gnu/linux during the next big refactor
16237  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16238  shlibpath_var=LD_LIBRARY_PATH
16239  shlibpath_overrides_runpath=yes
16240  ;;
16241
16242*nto* | *qnx*)
16243  version_type=qnx
16244  need_lib_prefix=no
16245  need_version=no
16246  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16247  soname_spec='$libname$release$shared_ext$major'
16248  shlibpath_var=LD_LIBRARY_PATH
16249  shlibpath_overrides_runpath=no
16250  hardcode_into_libs=yes
16251  dynamic_linker='ldqnx.so'
16252  ;;
16253
16254openbsd* | bitrig*)
16255  version_type=sunos
16256  sys_lib_dlsearch_path_spec=/usr/lib
16257  need_lib_prefix=no
16258  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16259    need_version=no
16260  else
16261    need_version=yes
16262  fi
16263  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16264  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16265  shlibpath_var=LD_LIBRARY_PATH
16266  shlibpath_overrides_runpath=yes
16267  ;;
16268
16269os2*)
16270  libname_spec='$name'
16271  version_type=windows
16272  shrext_cmds=.dll
16273  need_version=no
16274  need_lib_prefix=no
16275  # OS/2 can only load a DLL with a base name of 8 characters or less.
16276  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16277    v=$($ECHO $release$versuffix | tr -d .-);
16278    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16279    $ECHO $n$v`$shared_ext'
16280  library_names_spec='${libname}_dll.$libext'
16281  dynamic_linker='OS/2 ld.exe'
16282  shlibpath_var=BEGINLIBPATH
16283  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16284  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16285  postinstall_cmds='base_file=`basename \$file`~
16286    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16287    dldir=$destdir/`dirname \$dlpath`~
16288    test -d \$dldir || mkdir -p \$dldir~
16289    $install_prog $dir/$dlname \$dldir/$dlname~
16290    chmod a+x \$dldir/$dlname~
16291    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16292      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16293    fi'
16294  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16295    dlpath=$dir/\$dldll~
16296    $RM \$dlpath'
16297  ;;
16298
16299osf3* | osf4* | osf5*)
16300  version_type=osf
16301  need_lib_prefix=no
16302  need_version=no
16303  soname_spec='$libname$release$shared_ext$major'
16304  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16305  shlibpath_var=LD_LIBRARY_PATH
16306  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16307  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16308  ;;
16309
16310rdos*)
16311  dynamic_linker=no
16312  ;;
16313
16314solaris*)
16315  version_type=linux # correct to gnu/linux during the next big refactor
16316  need_lib_prefix=no
16317  need_version=no
16318  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16319  soname_spec='$libname$release$shared_ext$major'
16320  shlibpath_var=LD_LIBRARY_PATH
16321  shlibpath_overrides_runpath=yes
16322  hardcode_into_libs=yes
16323  # ldd complains unless libraries are executable
16324  postinstall_cmds='chmod +x $lib'
16325  ;;
16326
16327sunos4*)
16328  version_type=sunos
16329  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16330  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16331  shlibpath_var=LD_LIBRARY_PATH
16332  shlibpath_overrides_runpath=yes
16333  if test yes = "$with_gnu_ld"; then
16334    need_lib_prefix=no
16335  fi
16336  need_version=yes
16337  ;;
16338
16339sysv4 | sysv4.3*)
16340  version_type=linux # correct to gnu/linux during the next big refactor
16341  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16342  soname_spec='$libname$release$shared_ext$major'
16343  shlibpath_var=LD_LIBRARY_PATH
16344  case $host_vendor in
16345    sni)
16346      shlibpath_overrides_runpath=no
16347      need_lib_prefix=no
16348      runpath_var=LD_RUN_PATH
16349      ;;
16350    siemens)
16351      need_lib_prefix=no
16352      ;;
16353    motorola)
16354      need_lib_prefix=no
16355      need_version=no
16356      shlibpath_overrides_runpath=no
16357      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16358      ;;
16359  esac
16360  ;;
16361
16362sysv4*MP*)
16363  if test -d /usr/nec; then
16364    version_type=linux # correct to gnu/linux during the next big refactor
16365    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16366    soname_spec='$libname$shared_ext.$major'
16367    shlibpath_var=LD_LIBRARY_PATH
16368  fi
16369  ;;
16370
16371sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16372  version_type=sco
16373  need_lib_prefix=no
16374  need_version=no
16375  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16376  soname_spec='$libname$release$shared_ext$major'
16377  shlibpath_var=LD_LIBRARY_PATH
16378  shlibpath_overrides_runpath=yes
16379  hardcode_into_libs=yes
16380  if test yes = "$with_gnu_ld"; then
16381    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16382  else
16383    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16384    case $host_os in
16385      sco3.2v5*)
16386        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16387	;;
16388    esac
16389  fi
16390  sys_lib_dlsearch_path_spec='/usr/lib'
16391  ;;
16392
16393tpf*)
16394  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16395  version_type=linux # correct to gnu/linux during the next big refactor
16396  need_lib_prefix=no
16397  need_version=no
16398  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16399  shlibpath_var=LD_LIBRARY_PATH
16400  shlibpath_overrides_runpath=no
16401  hardcode_into_libs=yes
16402  ;;
16403
16404uts4*)
16405  version_type=linux # correct to gnu/linux during the next big refactor
16406  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16407  soname_spec='$libname$release$shared_ext$major'
16408  shlibpath_var=LD_LIBRARY_PATH
16409  ;;
16410
16411*)
16412  dynamic_linker=no
16413  ;;
16414esac
16415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16416$as_echo "$dynamic_linker" >&6; }
16417test no = "$dynamic_linker" && can_build_shared=no
16418
16419variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16420if test yes = "$GCC"; then
16421  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16422fi
16423
16424if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16425  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16426fi
16427
16428if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16429  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16430fi
16431
16432# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16433configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16434
16435# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16436func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16437
16438# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16439configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16481$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16482hardcode_action_CXX=
16483if test -n "$hardcode_libdir_flag_spec_CXX" ||
16484   test -n "$runpath_var_CXX" ||
16485   test yes = "$hardcode_automatic_CXX"; then
16486
16487  # We can hardcode non-existent directories.
16488  if test no != "$hardcode_direct_CXX" &&
16489     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16490     # have to relink, otherwise we might link with an installed library
16491     # when we should be linking with a yet-to-be-installed one
16492     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16493     test no != "$hardcode_minus_L_CXX"; then
16494    # Linking always hardcodes the temporary library directory.
16495    hardcode_action_CXX=relink
16496  else
16497    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16498    hardcode_action_CXX=immediate
16499  fi
16500else
16501  # We cannot hardcode anything, or else we can only hardcode existing
16502  # directories.
16503  hardcode_action_CXX=unsupported
16504fi
16505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16506$as_echo "$hardcode_action_CXX" >&6; }
16507
16508if test relink = "$hardcode_action_CXX" ||
16509   test yes = "$inherit_rpath_CXX"; then
16510  # Fast installation is not supported
16511  enable_fast_install=no
16512elif test yes = "$shlibpath_overrides_runpath" ||
16513     test no = "$enable_shared"; then
16514  # Fast installation is not necessary
16515  enable_fast_install=needless
16516fi
16517
16518
16519
16520
16521
16522
16523
16524  fi # test -n "$compiler"
16525
16526  CC=$lt_save_CC
16527  CFLAGS=$lt_save_CFLAGS
16528  LDCXX=$LD
16529  LD=$lt_save_LD
16530  GCC=$lt_save_GCC
16531  with_gnu_ld=$lt_save_with_gnu_ld
16532  lt_cv_path_LDCXX=$lt_cv_path_LD
16533  lt_cv_path_LD=$lt_save_path_LD
16534  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16535  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16536fi # test yes != "$_lt_caught_CXX_error"
16537
16538ac_ext=c
16539ac_cpp='$CPP $CPPFLAGS'
16540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16542ac_compiler_gnu=$ac_cv_c_compiler_gnu
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558        ac_config_commands="$ac_config_commands libtool"
16559
16560
16561
16562
16563# Only expand once:
16564
16565
16566if test "$GXX" != "yes"; then
16567    as_fn_error $? "GNU C++ compiler not found, not building LLVM" "$LINENO" 5
16568fi
16569
16570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
16571$as_echo_n "checking for GNU make... " >&6; }
16572if ${llvm_cv_gnu_make_command+:} false; then :
16573  $as_echo_n "(cached) " >&6
16574else
16575  llvm_cv_gnu_make_command=''
16576 for a in "$MAKE" make gmake gnumake ; do
16577  if test -z "$a" ; then continue ; fi ;
16578  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
16579  then
16580   llvm_cv_gnu_make_command=$a ;
16581   break;
16582  fi
16583 done
16584fi
16585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
16586$as_echo "$llvm_cv_gnu_make_command" >&6; }
16587 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
16588   ifGNUmake='' ;
16589 else
16590   ifGNUmake='#' ;
16591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
16592$as_echo "\"Not found\"" >&6; };
16593 fi
16594
16595
16596GMAKE="$llvm_cv_gnu_make_command"
16597
16598
16599
16600# Check whether --enable-llvm was given.
16601if test "${enable_llvm+set}" = set; then :
16602  enableval=$enable_llvm; enable_llvm=$enableval
16603else
16604  enable_llvm="auto"
16605fi
16606
16607
16608if test "$enable_llvm" != "no"; then
16609
16610
16611# Check whether --with-system-llvm was given.
16612if test "${with_system_llvm+set}" = set; then :
16613  withval=$with_system_llvm; system_llvm=$withval; if test "$enable_llvm" = "auto"; then enable_llvm="yes"; fi
16614else
16615  system_llvm="yes"
16616fi
16617
16618
16619case "$system_llvm" in
16620  yes)
16621     # Extract the first word of "llvm-config", so it can be a program name with args.
16622set dummy llvm-config; ac_word=$2
16623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16624$as_echo_n "checking for $ac_word... " >&6; }
16625if ${ac_cv_path_llvmconfig+:} false; then :
16626  $as_echo_n "(cached) " >&6
16627else
16628  case $llvmconfig in
16629  [\\/]* | ?:[\\/]*)
16630  ac_cv_path_llvmconfig="$llvmconfig" # Let the user override the test with a path.
16631  ;;
16632  *)
16633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634for as_dir in $PATH
16635do
16636  IFS=$as_save_IFS
16637  test -z "$as_dir" && as_dir=.
16638    for ac_exec_ext in '' $ac_executable_extensions; do
16639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16640    ac_cv_path_llvmconfig="$as_dir/$ac_word$ac_exec_ext"
16641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16642    break 2
16643  fi
16644done
16645  done
16646IFS=$as_save_IFS
16647
16648  ;;
16649esac
16650fi
16651llvmconfig=$ac_cv_path_llvmconfig
16652if test -n "$llvmconfig"; then
16653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvmconfig" >&5
16654$as_echo "$llvmconfig" >&6; }
16655else
16656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657$as_echo "no" >&6; }
16658fi
16659
16660
16661     if test "x$llvmconfig" = "x"; then
16662         llvmoptserrmsg="llvm-config cannot be found within PATH"
16663     fi
16664     ;;
16665  no) ;;
16666  *)
16667     if test -d "$withval"; then
16668         # Extract the first word of "llvm-config", so it can be a program name with args.
16669set dummy llvm-config; ac_word=$2
16670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16671$as_echo_n "checking for $ac_word... " >&6; }
16672if ${ac_cv_path_llvmconfig+:} false; then :
16673  $as_echo_n "(cached) " >&6
16674else
16675  case $llvmconfig in
16676  [\\/]* | ?:[\\/]*)
16677  ac_cv_path_llvmconfig="$llvmconfig" # Let the user override the test with a path.
16678  ;;
16679  *)
16680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16681for as_dir in $withval/bin
16682do
16683  IFS=$as_save_IFS
16684  test -z "$as_dir" && as_dir=.
16685    for ac_exec_ext in '' $ac_executable_extensions; do
16686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16687    ac_cv_path_llvmconfig="$as_dir/$ac_word$ac_exec_ext"
16688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16689    break 2
16690  fi
16691done
16692  done
16693IFS=$as_save_IFS
16694
16695  ;;
16696esac
16697fi
16698llvmconfig=$ac_cv_path_llvmconfig
16699if test -n "$llvmconfig"; then
16700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvmconfig" >&5
16701$as_echo "$llvmconfig" >&6; }
16702else
16703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16704$as_echo "no" >&6; }
16705fi
16706
16707
16708     else
16709         llvmconfig=$withval
16710         if test ! -x "$llvmconfig"; then
16711             llvmconfig=""
16712         fi
16713     fi
16714
16715     if test "x$llvmconfig" = "x"; then
16716         llvmoptserrmsg="llvm-config does not exist at $withval"
16717     fi
16718     ;;
16719esac
16720
16721if test "x$llvmconfig" != "x"; then
16722
16723
16724# Check whether --with-llvm-linking was given.
16725if test "${with_llvm_linking+set}" = set; then :
16726  withval=$with_llvm_linking; if test "x$llvmconfig" = "x"; then
16727   as_fn_error $? "Failed to configure LLVM, and LLVM linking was specified without valid llvm-config" "$LINENO" 5
16728else
16729   case "$withval" in
16730     static)
16731         llvm_linking="static"
16732         ;;
16733     dynamic)
16734         llvm_linking="dynamic"
16735         ;;
16736     *)
16737         as_fn_error $? "Invalid argument to --with-llvm-linking" "$LINENO" 5
16738   esac
16739fi
16740
16741else
16742  llvm_linking="dynamic"
16743fi
16744
16745
16746llvmver=`$llvmconfig --version`
16747
16748else
16749llvmver="2.8"
16750system_llvm="internal"
16751
16752fi
16753fi
16754if test "x$llvmflagerrmsg" != "x"; then
16755    as_fn_error $? "$llvmflagerrmsg" "$LINENO" 5
16756fi
16757
16758if test "x$llvmconfig" != "x"; then
16759    { $as_echo "$as_me:${as_lineno-$LINENO}: Using external LLVM" >&5
16760$as_echo "$as_me: Using external LLVM" >&6;}
16761else
16762    packaged_llvm="yes"
16763
16764
16765subdirs="$subdirs llvm"
16766
16767fi
16768
16769llvmver_prefix=`expr "$llvmver" : '\([^0-9]*\)'`
16770llvmver_frag=${llvmver#$llvmver_prefix}
16771
16772llvmver_major=`expr "$llvmver_frag" : '\([0-9]*\)'`
16773llvmver_frag=${llvmver_frag#*\.}
16774llvmver_minor=`expr "$llvmver_frag" : '\([0-9]*\)'`
16775llvmver_frag=${llvmver_frag#*\.}
16776llvmver_patch=`expr "$llvmver_frag" : '\([0-9]*\)'`
16777
16778llvmver_suffix=
16779if test "x$llvmver_patch" = "x"; then
16780    llvmver_patch=0
16781fi
16782
16783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported LLVM version" >&5
16784$as_echo_n "checking for supported LLVM version... " >&6; }
16785llvmver_test=${llvmver_major}${llvmver_minor}${llvmver_patch}
16786if test "x$packaged_llvm" = "xyes"; then
16787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($llvmver)" >&5
16788$as_echo "ok ($llvmver)" >&6; }
16789elif test $llvmver_test -lt 290; then
16790    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($llvmver)" >&5
16791$as_echo "no ($llvmver)" >&6; }
16792    as_fn_error $? "LLVM >= 2.9 required, but \"$llvmver\"($llvmver_test) found" "$LINENO" 5
16793elif test $llvmver_test -lt 360; then
16794    llvmcomp="jit nativecodegen scalaropts ipo"
16795    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($llvmver)" >&5
16796$as_echo "ok ($llvmver)" >&6; }
16797elif test $llvmver_test -lt 370; then
16798            llvmcomp="mcjit nativecodegen scalaropts ipo x86asmparser powerpcasmparser"
16799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($llvmver)" >&5
16800$as_echo "ok ($llvmver)" >&6; }
16801else
16802    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($llvmver)" >&5
16803$as_echo "no ($llvmver)" >&6; }
16804    as_fn_error $? "LLVM < 3.7 required, but \"$llvmver\"($llvmver_test) found" "$LINENO" 5
16805fi
16806
16807if test "x$llvmconfig" != "x"; then
16808    LLVMCONFIG_CXXFLAGS=`$llvmconfig --cxxflags`
16809
16810
16811    if test "x$llvm_linking" = "xdynamic"; then
16812        LLVMCONFIG_LDFLAGS=`$llvmconfig --ldflags`
16813
16814        LLVMCONFIG_LIBS=-lLLVM-$llvmver
16815
16816
16817    else
16818        if test $llvmver_test -ge 350; then
16819                      ldflags=`$llvmconfig --ldflags`
16820           syslibs=`$llvmconfig --system-libs`
16821           LLVMCONFIG_LDFLAGS="$ldflags $syslibs"
16822
16823        else
16824           LLVMCONFIG_LDFLAGS=`$llvmconfig --ldflags`
16825
16826        fi
16827        LLVMCONFIG_LIBS=`$llvmconfig --libs $llvmcomp`
16828
16829        LLVMCONFIG_LIBFILES=`$llvmconfig --libfiles $llvmcomp`
16830
16831    fi
16832
16833    { $as_echo "$as_me:${as_lineno-$LINENO}: CXXFLAGS from llvm-config: $LLVMCONFIG_CXXFLAGS" >&5
16834$as_echo "$as_me: CXXFLAGS from llvm-config: $LLVMCONFIG_CXXFLAGS" >&6;}
16835    { $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS from llvm-config: $LLVMCONFIG_LDFLAGS" >&5
16836$as_echo "$as_me: LDFLAGS from llvm-config: $LLVMCONFIG_LDFLAGS" >&6;}
16837    { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS from llvm-config: $LLVMCONFIG_LIBS" >&5
16838$as_echo "$as_me: LIBS from llvm-config: $LLVMCONFIG_LIBS" >&6;}
16839fi
16840llvmver_int=${llvmver_major}${llvmver_minor}
16841LLVM_VERSION=$llvmver_int
16842
16843
16844# Check whether --enable-llvm was given.
16845if test "${enable_llvm+set}" = set; then :
16846  enableval=$enable_llvm; enable_llvm=$enableval
16847else
16848  enable_llvm="auto"
16849fi
16850
16851
16852# Check whether --enable-optimized was given.
16853if test "${enable_optimized+set}" = set; then :
16854  enableval=$enable_optimized; enable_optimized=$enableval
16855else
16856  enable_optimized=default
16857fi
16858
16859 if test "x$enable_optimized" = "xno"; then
16860  DEBUG_BUILD_TRUE=
16861  DEBUG_BUILD_FALSE='#'
16862else
16863  DEBUG_BUILD_TRUE='#'
16864  DEBUG_BUILD_FALSE=
16865fi
16866
16867
16868if test "$enable_optimized" = "default"; then
16869    ac_configure_args="$ac_configure_args --enable-optimized"
16870fi
16871
16872ac_configure_args="$ac_configure_args llvm_cv_gnu_make_command=make"
16873# Check whether --enable-all-jit-targets was given.
16874if test "${enable_all_jit_targets+set}" = set; then :
16875  enableval=$enable_all_jit_targets; enable_alltargets=$enableval
16876else
16877  enable_alltargets=no
16878fi
16879
16880if test "$enable_alltargets" = "yes"; then
16881    new_args="$ac_configure_args --enable-targets=x86,powerpc --enable-bindings=none --enable-libffi=no --without-llvmgcc --without-llvmgxx"
16882else
16883    new_args="$ac_configure_args --enable-targets=host-only --enable-bindings=none --enable-libffi=no --without-llvmgcc --without-llvmgxx"
16884fi
16885ac_configure_args=`echo $new_args | sed -e 's/-Werror //g'`
16886
16887if test "$enable_llvm" = "auto"; then
16888                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported C++ compiler version" >&5
16889$as_echo_n "checking for supported C++ compiler version... " >&6; }
16890    gxx_version=`${CXX} -dumpversion` ||
16891    as_fn_error $? "Unable to get GNU C++ compiler version" "$LINENO" 5
16892    case "${gxx_version}" in
16893     [03].*)
16894	as_fn_error $? "C++ compiler too old (${gxx_version})" "$LINENO" 5
16895        ;;
16896     4.1.[1]*)
16897        as_fn_error $? "C++ compiler is buggy" "$LINENO" 5
16898        ;;
16899     *)
16900        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gxx_version})" >&5
16901$as_echo "ok (${gxx_version})" >&6; }
16902    esac
16903
16904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported OS" >&5
16905$as_echo_n "checking for supported OS... " >&6; }
16906    case "$target_cpu" in
16907	i?86|amd64|x86_64|powerpc*)
16908	    case "$target_os" in
16909		darwin*|freebsd*|kfreebsd*|openbsd*|netbsd*|dragonfly*|linux*|solaris*|win32*|mingw*)
16910		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($target_cpu-$target_os)" >&5
16911$as_echo "ok ($target_cpu-$target_os)" >&6; }
16912		    ;;
16913		*)
16914                    as_fn_error $? "OS $target_os is not supported, not building LLVM" "$LINENO" 5
16915                    ;;
16916	    esac
16917	    ;;
16918	alpha*|arm*)
16919	    as_fn_error $? "CPU support is untested, not building LLVM" "$LINENO" 5
16920	    ;;
16921	*)
16922	    as_fn_error $? "Unsupported CPU for JIT: $target_cpu, not building LLVM" "$LINENO" 5
16923	    ;;
16924    esac
16925fi
16926
16927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libstdc++" >&5
16928$as_echo_n "checking for working libstdc++... " >&6; }
16929ac_ext=cpp
16930ac_cpp='$CXXCPP $CPPFLAGS'
16931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16934
16935if test "$cross_compiling" = yes; then :
16936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937/* end confdefs.h.  */
16938
16939	#include <iostream>
16940	int main()
16941	{
16942	    // this causes an @GLIBCXX_3.4.9 symbol to be linked in -O2 mode
16943	    std::cout << "test";
16944	    return 0;
16945	}
16946
16947_ACEOF
16948if ac_fn_cxx_try_link "$LINENO"; then :
16949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16950$as_echo "yes" >&6; }
16951else
16952  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16954as_fn_error $? "failed
16955See \`config.log' for more details" "$LINENO" 5; }
16956
16957fi
16958rm -f core conftest.err conftest.$ac_objext \
16959    conftest$ac_exeext conftest.$ac_ext
16960else
16961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962/* end confdefs.h.  */
16963
16964	#include <iostream>
16965	int main()
16966	{
16967	    // this causes an @GLIBCXX_3.4.9 symbol to be linked in -O2 mode
16968	    std::cout << "test";
16969	    return 0;
16970    }
16971
16972_ACEOF
16973if ac_fn_cxx_try_run "$LINENO"; then :
16974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16975$as_echo "yes" >&6; }
16976else
16977  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16979as_fn_error $? "failed
16980See \`config.log' for more details" "$LINENO" 5; }
16981fi
16982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16983  conftest.$ac_objext conftest.beam conftest.$ac_ext
16984fi
16985
16986ac_ext=c
16987ac_cpp='$CPP $CPPFLAGS'
16988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16990ac_compiler_gnu=$ac_cv_c_compiler_gnu
16991
16992
16993build_x86=no
16994build_ppc=no
16995case "$target_cpu" in
16996    i?86|amd64|x86_64)
16997	    build_x86=yes
16998	    ;;
16999    powerpc*)
17000	    build_ppc=yes
17001	    ;;
17002esac
17003
17004# FreeBSD is only one which needs something else than -pthread,
17005# according to the logic in ClamAV's main configure.in.
17006case "$target_os" in
17007freebsd[45]*)
17008    THREAD_LIBS="-pthread -lc_r"
17009    ;;
17010fre[e]bsd*)
17011    THREAD_LIBS="-lthr"
17012    ;;
17013darwin*)
17014    # none required
17015    THREAD_LIBS=
17016    ;;
17017
17018*)
17019    THREAD_LIBS="-pthread"
17020esac
17021
17022
17023if test "$enable_alltargets" = "yes"; then
17024	build_x86=yes
17025	build_ppc=yes
17026fi
17027if test "$ac_cv_c_bigendian" = "universal"; then
17028    { $as_echo "$as_me:${as_lineno-$LINENO}: Universal build detected" >&5
17029$as_echo "$as_me: Universal build detected" >&6;}
17030    build_x86=yes
17031    build_ppc=yes
17032fi
17033{ $as_echo "$as_me:${as_lineno-$LINENO}: Building X86 backend: $build_x86" >&5
17034$as_echo "$as_me: Building X86 backend: $build_x86" >&6;}
17035{ $as_echo "$as_me:${as_lineno-$LINENO}: Building PPC backend: $build_ppc" >&5
17036$as_echo "$as_me: Building PPC backend: $build_ppc" >&6;}
17037 if test "$build_x86" = "yes"; then
17038  BUILD_X86_TRUE=
17039  BUILD_X86_FALSE='#'
17040else
17041  BUILD_X86_TRUE='#'
17042  BUILD_X86_FALSE=
17043fi
17044
17045 if test "$build_ppc" = "yes"; then
17046  BUILD_PPC_TRUE=
17047  BUILD_PPC_FALSE='#'
17048else
17049  BUILD_PPC_TRUE='#'
17050  BUILD_PPC_FALSE=
17051fi
17052
17053
17054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5
17055$as_echo_n "checking optional compiler flags... " >&6; }
17056NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
17057
17058NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
17059
17060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
17061$as_echo "$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
17062
17063 if test -n "$llvmconfig"; then
17064  BUILD_EXTERNAL_LLVM_TRUE=
17065  BUILD_EXTERNAL_LLVM_FALSE='#'
17066else
17067  BUILD_EXTERNAL_LLVM_TRUE='#'
17068  BUILD_EXTERNAL_LLVM_FALSE=
17069fi
17070
17071
17072ac_config_files="$ac_config_files Makefile"
17073
17074cat >confcache <<\_ACEOF
17075# This file is a shell script that caches the results of configure
17076# tests run on this system so they can be shared between configure
17077# scripts and configure runs, see configure's option --config-cache.
17078# It is not useful on other systems.  If it contains results you don't
17079# want to keep, you may remove or edit it.
17080#
17081# config.status only pays attention to the cache file if you give it
17082# the --recheck option to rerun configure.
17083#
17084# `ac_cv_env_foo' variables (set or unset) will be overridden when
17085# loading this file, other *unset* `ac_cv_foo' will be assigned the
17086# following values.
17087
17088_ACEOF
17089
17090# The following way of writing the cache mishandles newlines in values,
17091# but we know of no workaround that is simple, portable, and efficient.
17092# So, we kill variables containing newlines.
17093# Ultrix sh set writes to stderr and can't be redirected directly,
17094# and sets the high bit in the cache file unless we assign to the vars.
17095(
17096  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17097    eval ac_val=\$$ac_var
17098    case $ac_val in #(
17099    *${as_nl}*)
17100      case $ac_var in #(
17101      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17102$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17103      esac
17104      case $ac_var in #(
17105      _ | IFS | as_nl) ;; #(
17106      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17107      *) { eval $ac_var=; unset $ac_var;} ;;
17108      esac ;;
17109    esac
17110  done
17111
17112  (set) 2>&1 |
17113    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17114    *${as_nl}ac_space=\ *)
17115      # `set' does not quote correctly, so add quotes: double-quote
17116      # substitution turns \\\\ into \\, and sed turns \\ into \.
17117      sed -n \
17118	"s/'/'\\\\''/g;
17119	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17120      ;; #(
17121    *)
17122      # `set' quotes correctly as required by POSIX, so do not add quotes.
17123      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17124      ;;
17125    esac |
17126    sort
17127) |
17128  sed '
17129     /^ac_cv_env_/b end
17130     t clear
17131     :clear
17132     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17133     t end
17134     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17135     :end' >>confcache
17136if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17137  if test -w "$cache_file"; then
17138    if test "x$cache_file" != "x/dev/null"; then
17139      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17140$as_echo "$as_me: updating cache $cache_file" >&6;}
17141      if test ! -f "$cache_file" || test -h "$cache_file"; then
17142	cat confcache >"$cache_file"
17143      else
17144        case $cache_file in #(
17145        */* | ?:*)
17146	  mv -f confcache "$cache_file"$$ &&
17147	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17148        *)
17149	  mv -f confcache "$cache_file" ;;
17150	esac
17151      fi
17152    fi
17153  else
17154    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17155$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17156  fi
17157fi
17158rm -f confcache
17159
17160test "x$prefix" = xNONE && prefix=$ac_default_prefix
17161# Let make expand exec_prefix.
17162test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17163
17164DEFS=-DHAVE_CONFIG_H
17165
17166ac_libobjs=
17167ac_ltlibobjs=
17168U=
17169for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17170  # 1. Remove the extension, and $U if already installed.
17171  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17172  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17173  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17174  #    will be set to the directory where LIBOBJS objects are built.
17175  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17176  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17177done
17178LIBOBJS=$ac_libobjs
17179
17180LTLIBOBJS=$ac_ltlibobjs
17181
17182
17183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17184$as_echo_n "checking that generated files are newer than configure... " >&6; }
17185   if test -n "$am_sleep_pid"; then
17186     # Hide warnings about reused PIDs.
17187     wait $am_sleep_pid 2>/dev/null
17188   fi
17189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17190$as_echo "done" >&6; }
17191 if test -n "$EXEEXT"; then
17192  am__EXEEXT_TRUE=
17193  am__EXEEXT_FALSE='#'
17194else
17195  am__EXEEXT_TRUE='#'
17196  am__EXEEXT_FALSE=
17197fi
17198
17199if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17200  as_fn_error $? "conditional \"AMDEP\" was never defined.
17201Usually this means the macro was only invoked conditionally." "$LINENO" 5
17202fi
17203if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17204  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17205Usually this means the macro was only invoked conditionally." "$LINENO" 5
17206fi
17207if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17208  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17209Usually this means the macro was only invoked conditionally." "$LINENO" 5
17210fi
17211
17212if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17213  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17214Usually this means the macro was only invoked conditionally." "$LINENO" 5
17215fi
17216if test -z "${DEBUG_BUILD_TRUE}" && test -z "${DEBUG_BUILD_FALSE}"; then
17217  as_fn_error $? "conditional \"DEBUG_BUILD\" was never defined.
17218Usually this means the macro was only invoked conditionally." "$LINENO" 5
17219fi
17220if test -z "${BUILD_X86_TRUE}" && test -z "${BUILD_X86_FALSE}"; then
17221  as_fn_error $? "conditional \"BUILD_X86\" was never defined.
17222Usually this means the macro was only invoked conditionally." "$LINENO" 5
17223fi
17224if test -z "${BUILD_PPC_TRUE}" && test -z "${BUILD_PPC_FALSE}"; then
17225  as_fn_error $? "conditional \"BUILD_PPC\" was never defined.
17226Usually this means the macro was only invoked conditionally." "$LINENO" 5
17227fi
17228if test -z "${BUILD_EXTERNAL_LLVM_TRUE}" && test -z "${BUILD_EXTERNAL_LLVM_FALSE}"; then
17229  as_fn_error $? "conditional \"BUILD_EXTERNAL_LLVM\" was never defined.
17230Usually this means the macro was only invoked conditionally." "$LINENO" 5
17231fi
17232
17233: "${CONFIG_STATUS=./config.status}"
17234ac_write_fail=0
17235ac_clean_files_save=$ac_clean_files
17236ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17237{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17238$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17239as_write_fail=0
17240cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17241#! $SHELL
17242# Generated by $as_me.
17243# Run this file to recreate the current configuration.
17244# Compiler output produced by configure, useful for debugging
17245# configure, is in config.log if it exists.
17246
17247debug=false
17248ac_cs_recheck=false
17249ac_cs_silent=false
17250
17251SHELL=\${CONFIG_SHELL-$SHELL}
17252export SHELL
17253_ASEOF
17254cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17255## -------------------- ##
17256## M4sh Initialization. ##
17257## -------------------- ##
17258
17259# Be more Bourne compatible
17260DUALCASE=1; export DUALCASE # for MKS sh
17261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17262  emulate sh
17263  NULLCMD=:
17264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17265  # is contrary to our usage.  Disable this feature.
17266  alias -g '${1+"$@"}'='"$@"'
17267  setopt NO_GLOB_SUBST
17268else
17269  case `(set -o) 2>/dev/null` in #(
17270  *posix*) :
17271    set -o posix ;; #(
17272  *) :
17273     ;;
17274esac
17275fi
17276
17277
17278as_nl='
17279'
17280export as_nl
17281# Printing a long string crashes Solaris 7 /usr/bin/printf.
17282as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17283as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17284as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17285# Prefer a ksh shell builtin over an external printf program on Solaris,
17286# but without wasting forks for bash or zsh.
17287if test -z "$BASH_VERSION$ZSH_VERSION" \
17288    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17289  as_echo='print -r --'
17290  as_echo_n='print -rn --'
17291elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17292  as_echo='printf %s\n'
17293  as_echo_n='printf %s'
17294else
17295  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17296    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17297    as_echo_n='/usr/ucb/echo -n'
17298  else
17299    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17300    as_echo_n_body='eval
17301      arg=$1;
17302      case $arg in #(
17303      *"$as_nl"*)
17304	expr "X$arg" : "X\\(.*\\)$as_nl";
17305	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17306      esac;
17307      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17308    '
17309    export as_echo_n_body
17310    as_echo_n='sh -c $as_echo_n_body as_echo'
17311  fi
17312  export as_echo_body
17313  as_echo='sh -c $as_echo_body as_echo'
17314fi
17315
17316# The user is always right.
17317if test "${PATH_SEPARATOR+set}" != set; then
17318  PATH_SEPARATOR=:
17319  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17320    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17321      PATH_SEPARATOR=';'
17322  }
17323fi
17324
17325
17326# IFS
17327# We need space, tab and new line, in precisely that order.  Quoting is
17328# there to prevent editors from complaining about space-tab.
17329# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17330# splitting by setting IFS to empty value.)
17331IFS=" ""	$as_nl"
17332
17333# Find who we are.  Look in the path if we contain no directory separator.
17334as_myself=
17335case $0 in #((
17336  *[\\/]* ) as_myself=$0 ;;
17337  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17338for as_dir in $PATH
17339do
17340  IFS=$as_save_IFS
17341  test -z "$as_dir" && as_dir=.
17342    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17343  done
17344IFS=$as_save_IFS
17345
17346     ;;
17347esac
17348# We did not find ourselves, most probably we were run as `sh COMMAND'
17349# in which case we are not to be found in the path.
17350if test "x$as_myself" = x; then
17351  as_myself=$0
17352fi
17353if test ! -f "$as_myself"; then
17354  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17355  exit 1
17356fi
17357
17358# Unset variables that we do not need and which cause bugs (e.g. in
17359# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17360# suppresses any "Segmentation fault" message there.  '((' could
17361# trigger a bug in pdksh 5.2.14.
17362for as_var in BASH_ENV ENV MAIL MAILPATH
17363do eval test x\${$as_var+set} = xset \
17364  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17365done
17366PS1='$ '
17367PS2='> '
17368PS4='+ '
17369
17370# NLS nuisances.
17371LC_ALL=C
17372export LC_ALL
17373LANGUAGE=C
17374export LANGUAGE
17375
17376# CDPATH.
17377(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17378
17379
17380# as_fn_error STATUS ERROR [LINENO LOG_FD]
17381# ----------------------------------------
17382# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17383# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17384# script with STATUS, using 1 if that was 0.
17385as_fn_error ()
17386{
17387  as_status=$1; test $as_status -eq 0 && as_status=1
17388  if test "$4"; then
17389    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17390    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17391  fi
17392  $as_echo "$as_me: error: $2" >&2
17393  as_fn_exit $as_status
17394} # as_fn_error
17395
17396
17397# as_fn_set_status STATUS
17398# -----------------------
17399# Set $? to STATUS, without forking.
17400as_fn_set_status ()
17401{
17402  return $1
17403} # as_fn_set_status
17404
17405# as_fn_exit STATUS
17406# -----------------
17407# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17408as_fn_exit ()
17409{
17410  set +e
17411  as_fn_set_status $1
17412  exit $1
17413} # as_fn_exit
17414
17415# as_fn_unset VAR
17416# ---------------
17417# Portably unset VAR.
17418as_fn_unset ()
17419{
17420  { eval $1=; unset $1;}
17421}
17422as_unset=as_fn_unset
17423# as_fn_append VAR VALUE
17424# ----------------------
17425# Append the text in VALUE to the end of the definition contained in VAR. Take
17426# advantage of any shell optimizations that allow amortized linear growth over
17427# repeated appends, instead of the typical quadratic growth present in naive
17428# implementations.
17429if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17430  eval 'as_fn_append ()
17431  {
17432    eval $1+=\$2
17433  }'
17434else
17435  as_fn_append ()
17436  {
17437    eval $1=\$$1\$2
17438  }
17439fi # as_fn_append
17440
17441# as_fn_arith ARG...
17442# ------------------
17443# Perform arithmetic evaluation on the ARGs, and store the result in the
17444# global $as_val. Take advantage of shells that can avoid forks. The arguments
17445# must be portable across $(()) and expr.
17446if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17447  eval 'as_fn_arith ()
17448  {
17449    as_val=$(( $* ))
17450  }'
17451else
17452  as_fn_arith ()
17453  {
17454    as_val=`expr "$@" || test $? -eq 1`
17455  }
17456fi # as_fn_arith
17457
17458
17459if expr a : '\(a\)' >/dev/null 2>&1 &&
17460   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17461  as_expr=expr
17462else
17463  as_expr=false
17464fi
17465
17466if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17467  as_basename=basename
17468else
17469  as_basename=false
17470fi
17471
17472if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17473  as_dirname=dirname
17474else
17475  as_dirname=false
17476fi
17477
17478as_me=`$as_basename -- "$0" ||
17479$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17480	 X"$0" : 'X\(//\)$' \| \
17481	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17482$as_echo X/"$0" |
17483    sed '/^.*\/\([^/][^/]*\)\/*$/{
17484	    s//\1/
17485	    q
17486	  }
17487	  /^X\/\(\/\/\)$/{
17488	    s//\1/
17489	    q
17490	  }
17491	  /^X\/\(\/\).*/{
17492	    s//\1/
17493	    q
17494	  }
17495	  s/.*/./; q'`
17496
17497# Avoid depending upon Character Ranges.
17498as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17499as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17500as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17501as_cr_digits='0123456789'
17502as_cr_alnum=$as_cr_Letters$as_cr_digits
17503
17504ECHO_C= ECHO_N= ECHO_T=
17505case `echo -n x` in #(((((
17506-n*)
17507  case `echo 'xy\c'` in
17508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17509  xy)  ECHO_C='\c';;
17510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17511       ECHO_T='	';;
17512  esac;;
17513*)
17514  ECHO_N='-n';;
17515esac
17516
17517rm -f conf$$ conf$$.exe conf$$.file
17518if test -d conf$$.dir; then
17519  rm -f conf$$.dir/conf$$.file
17520else
17521  rm -f conf$$.dir
17522  mkdir conf$$.dir 2>/dev/null
17523fi
17524if (echo >conf$$.file) 2>/dev/null; then
17525  if ln -s conf$$.file conf$$ 2>/dev/null; then
17526    as_ln_s='ln -s'
17527    # ... but there are two gotchas:
17528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17530    # In both cases, we have to default to `cp -pR'.
17531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17532      as_ln_s='cp -pR'
17533  elif ln conf$$.file conf$$ 2>/dev/null; then
17534    as_ln_s=ln
17535  else
17536    as_ln_s='cp -pR'
17537  fi
17538else
17539  as_ln_s='cp -pR'
17540fi
17541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17542rmdir conf$$.dir 2>/dev/null
17543
17544
17545# as_fn_mkdir_p
17546# -------------
17547# Create "$as_dir" as a directory, including parents if necessary.
17548as_fn_mkdir_p ()
17549{
17550
17551  case $as_dir in #(
17552  -*) as_dir=./$as_dir;;
17553  esac
17554  test -d "$as_dir" || eval $as_mkdir_p || {
17555    as_dirs=
17556    while :; do
17557      case $as_dir in #(
17558      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17559      *) as_qdir=$as_dir;;
17560      esac
17561      as_dirs="'$as_qdir' $as_dirs"
17562      as_dir=`$as_dirname -- "$as_dir" ||
17563$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17564	 X"$as_dir" : 'X\(//\)[^/]' \| \
17565	 X"$as_dir" : 'X\(//\)$' \| \
17566	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17567$as_echo X"$as_dir" |
17568    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17569	    s//\1/
17570	    q
17571	  }
17572	  /^X\(\/\/\)[^/].*/{
17573	    s//\1/
17574	    q
17575	  }
17576	  /^X\(\/\/\)$/{
17577	    s//\1/
17578	    q
17579	  }
17580	  /^X\(\/\).*/{
17581	    s//\1/
17582	    q
17583	  }
17584	  s/.*/./; q'`
17585      test -d "$as_dir" && break
17586    done
17587    test -z "$as_dirs" || eval "mkdir $as_dirs"
17588  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17589
17590
17591} # as_fn_mkdir_p
17592if mkdir -p . 2>/dev/null; then
17593  as_mkdir_p='mkdir -p "$as_dir"'
17594else
17595  test -d ./-p && rmdir ./-p
17596  as_mkdir_p=false
17597fi
17598
17599
17600# as_fn_executable_p FILE
17601# -----------------------
17602# Test if FILE is an executable regular file.
17603as_fn_executable_p ()
17604{
17605  test -f "$1" && test -x "$1"
17606} # as_fn_executable_p
17607as_test_x='test -x'
17608as_executable_p=as_fn_executable_p
17609
17610# Sed expression to map a string onto a valid CPP name.
17611as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17612
17613# Sed expression to map a string onto a valid variable name.
17614as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17615
17616
17617exec 6>&1
17618## ----------------------------------- ##
17619## Main body of $CONFIG_STATUS script. ##
17620## ----------------------------------- ##
17621_ASEOF
17622test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17623
17624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17625# Save the log message, to keep $0 and so on meaningful, and to
17626# report actual input values of CONFIG_FILES etc. instead of their
17627# values after options handling.
17628ac_log="
17629This file was extended by libclamavc++ $as_me devel, which was
17630generated by GNU Autoconf 2.69.  Invocation command line was
17631
17632  CONFIG_FILES    = $CONFIG_FILES
17633  CONFIG_HEADERS  = $CONFIG_HEADERS
17634  CONFIG_LINKS    = $CONFIG_LINKS
17635  CONFIG_COMMANDS = $CONFIG_COMMANDS
17636  $ $0 $@
17637
17638on `(hostname || uname -n) 2>/dev/null | sed 1q`
17639"
17640
17641_ACEOF
17642
17643case $ac_config_files in *"
17644"*) set x $ac_config_files; shift; ac_config_files=$*;;
17645esac
17646
17647case $ac_config_headers in *"
17648"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17649esac
17650
17651
17652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17653# Files that config.status was made for.
17654config_files="$ac_config_files"
17655config_headers="$ac_config_headers"
17656config_commands="$ac_config_commands"
17657
17658_ACEOF
17659
17660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17661ac_cs_usage="\
17662\`$as_me' instantiates files and other configuration actions
17663from templates according to the current configuration.  Unless the files
17664and actions are specified as TAGs, all are instantiated by default.
17665
17666Usage: $0 [OPTION]... [TAG]...
17667
17668  -h, --help       print this help, then exit
17669  -V, --version    print version number and configuration settings, then exit
17670      --config     print configuration, then exit
17671  -q, --quiet, --silent
17672                   do not print progress messages
17673  -d, --debug      don't remove temporary files
17674      --recheck    update $as_me by reconfiguring in the same conditions
17675      --file=FILE[:TEMPLATE]
17676                   instantiate the configuration file FILE
17677      --header=FILE[:TEMPLATE]
17678                   instantiate the configuration header FILE
17679
17680Configuration files:
17681$config_files
17682
17683Configuration headers:
17684$config_headers
17685
17686Configuration commands:
17687$config_commands
17688
17689Report bugs to <https://github.com/Cisco-Talos/clamav/issues>."
17690
17691_ACEOF
17692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17693ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17694ac_cs_version="\\
17695libclamavc++ config.status devel
17696configured by $0, generated by GNU Autoconf 2.69,
17697  with options \\"\$ac_cs_config\\"
17698
17699Copyright (C) 2012 Free Software Foundation, Inc.
17700This config.status script is free software; the Free Software Foundation
17701gives unlimited permission to copy, distribute and modify it."
17702
17703ac_pwd='$ac_pwd'
17704srcdir='$srcdir'
17705INSTALL='$INSTALL'
17706MKDIR_P='$MKDIR_P'
17707AWK='$AWK'
17708test -n "\$AWK" || AWK=awk
17709_ACEOF
17710
17711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17712# The default lists apply if the user does not specify any file.
17713ac_need_defaults=:
17714while test $# != 0
17715do
17716  case $1 in
17717  --*=?*)
17718    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17719    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17720    ac_shift=:
17721    ;;
17722  --*=)
17723    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17724    ac_optarg=
17725    ac_shift=:
17726    ;;
17727  *)
17728    ac_option=$1
17729    ac_optarg=$2
17730    ac_shift=shift
17731    ;;
17732  esac
17733
17734  case $ac_option in
17735  # Handling of the options.
17736  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17737    ac_cs_recheck=: ;;
17738  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17739    $as_echo "$ac_cs_version"; exit ;;
17740  --config | --confi | --conf | --con | --co | --c )
17741    $as_echo "$ac_cs_config"; exit ;;
17742  --debug | --debu | --deb | --de | --d | -d )
17743    debug=: ;;
17744  --file | --fil | --fi | --f )
17745    $ac_shift
17746    case $ac_optarg in
17747    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17748    '') as_fn_error $? "missing file argument" ;;
17749    esac
17750    as_fn_append CONFIG_FILES " '$ac_optarg'"
17751    ac_need_defaults=false;;
17752  --header | --heade | --head | --hea )
17753    $ac_shift
17754    case $ac_optarg in
17755    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17756    esac
17757    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17758    ac_need_defaults=false;;
17759  --he | --h)
17760    # Conflict between --help and --header
17761    as_fn_error $? "ambiguous option: \`$1'
17762Try \`$0 --help' for more information.";;
17763  --help | --hel | -h )
17764    $as_echo "$ac_cs_usage"; exit ;;
17765  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17766  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17767    ac_cs_silent=: ;;
17768
17769  # This is an error.
17770  -*) as_fn_error $? "unrecognized option: \`$1'
17771Try \`$0 --help' for more information." ;;
17772
17773  *) as_fn_append ac_config_targets " $1"
17774     ac_need_defaults=false ;;
17775
17776  esac
17777  shift
17778done
17779
17780ac_configure_extra_args=
17781
17782if $ac_cs_silent; then
17783  exec 6>/dev/null
17784  ac_configure_extra_args="$ac_configure_extra_args --silent"
17785fi
17786
17787_ACEOF
17788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17789if \$ac_cs_recheck; then
17790  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17791  shift
17792  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17793  CONFIG_SHELL='$SHELL'
17794  export CONFIG_SHELL
17795  exec "\$@"
17796fi
17797
17798_ACEOF
17799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17800exec 5>>config.log
17801{
17802  echo
17803  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17804## Running $as_me. ##
17805_ASBOX
17806  $as_echo "$ac_log"
17807} >&5
17808
17809_ACEOF
17810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17811#
17812# INIT-COMMANDS
17813#
17814AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17815
17816
17817# The HP-UX ksh and POSIX shell print the target directory to stdout
17818# if CDPATH is set.
17819(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17820
17821sed_quote_subst='$sed_quote_subst'
17822double_quote_subst='$double_quote_subst'
17823delay_variable_subst='$delay_variable_subst'
17824macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17825macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17826enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17827enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17828pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17829enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17830shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17831SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17832ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17833PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17834host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17835host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17836host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17837build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17838build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17839build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17840SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17841Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17842GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17843EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17844FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17845LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17846NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17847LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17848max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17849ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17850exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17851lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17852lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17853lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17854lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17855lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17856reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17857reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17858OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17859deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17860file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17861file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17862want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17863DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17864sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17865AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17866AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17867archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17868STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17869RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17870old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17871old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17872old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17873lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17874CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17875CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17876compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17877GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17878lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17879lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17880lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17881lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17882lt_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"`'
17883lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17884nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17885lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17886lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17887objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17888MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17889lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17890lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17891lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17892lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17893lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17894need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17895MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17896DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17897NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17898LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17899OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17900OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17901libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17902shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17903extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17904archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17905enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17906export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17907whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17908compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17909old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17910old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17911archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17912archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17913module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17914module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17915with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17916allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17917no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17918hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17919hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17920hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17921hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17922hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17923hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17924hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17925inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17926link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17927always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17928export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17929exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17930include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17931prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17932postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17933file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17934variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17935need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17936need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17937version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17938runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17939shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17940shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17941libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17942library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17943soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17944install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17945postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17946postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17947finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17948finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17949hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17950sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17951configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17952configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17953hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17954enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17955enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17956enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17957old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17958striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17959compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17960predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17961postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17962predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17963postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17964compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17965LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17966reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17967reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17968old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17969compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17970GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17971lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17972lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17973lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17974lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17975lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17976archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17977enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17978export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17979whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17980compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17981old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17982old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17983archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17984archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17985module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17986module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17987with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17988allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17989no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17990hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17991hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17992hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17993hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17994hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17995hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17996hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17997inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17998link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17999always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18000export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18001exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18002include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18003prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18004postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18005file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18006hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18007compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18008predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18009postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18010predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18011postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18012compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18013
18014LTCC='$LTCC'
18015LTCFLAGS='$LTCFLAGS'
18016compiler='$compiler_DEFAULT'
18017
18018# A function that is used when there is no print builtin or printf.
18019func_fallback_echo ()
18020{
18021  eval 'cat <<_LTECHO_EOF
18022\$1
18023_LTECHO_EOF'
18024}
18025
18026# Quote evaled strings.
18027for var in SHELL \
18028ECHO \
18029PATH_SEPARATOR \
18030SED \
18031GREP \
18032EGREP \
18033FGREP \
18034LD \
18035NM \
18036LN_S \
18037lt_SP2NL \
18038lt_NL2SP \
18039reload_flag \
18040OBJDUMP \
18041deplibs_check_method \
18042file_magic_cmd \
18043file_magic_glob \
18044want_nocaseglob \
18045DLLTOOL \
18046sharedlib_from_linklib_cmd \
18047AR \
18048AR_FLAGS \
18049archiver_list_spec \
18050STRIP \
18051RANLIB \
18052CC \
18053CFLAGS \
18054compiler \
18055lt_cv_sys_global_symbol_pipe \
18056lt_cv_sys_global_symbol_to_cdecl \
18057lt_cv_sys_global_symbol_to_import \
18058lt_cv_sys_global_symbol_to_c_name_address \
18059lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18060lt_cv_nm_interface \
18061nm_file_list_spec \
18062lt_cv_truncate_bin \
18063lt_prog_compiler_no_builtin_flag \
18064lt_prog_compiler_pic \
18065lt_prog_compiler_wl \
18066lt_prog_compiler_static \
18067lt_cv_prog_compiler_c_o \
18068need_locks \
18069MANIFEST_TOOL \
18070DSYMUTIL \
18071NMEDIT \
18072LIPO \
18073OTOOL \
18074OTOOL64 \
18075shrext_cmds \
18076export_dynamic_flag_spec \
18077whole_archive_flag_spec \
18078compiler_needs_object \
18079with_gnu_ld \
18080allow_undefined_flag \
18081no_undefined_flag \
18082hardcode_libdir_flag_spec \
18083hardcode_libdir_separator \
18084exclude_expsyms \
18085include_expsyms \
18086file_list_spec \
18087variables_saved_for_relink \
18088libname_spec \
18089library_names_spec \
18090soname_spec \
18091install_override_mode \
18092finish_eval \
18093old_striplib \
18094striplib \
18095compiler_lib_search_dirs \
18096predep_objects \
18097postdep_objects \
18098predeps \
18099postdeps \
18100compiler_lib_search_path \
18101LD_CXX \
18102reload_flag_CXX \
18103compiler_CXX \
18104lt_prog_compiler_no_builtin_flag_CXX \
18105lt_prog_compiler_pic_CXX \
18106lt_prog_compiler_wl_CXX \
18107lt_prog_compiler_static_CXX \
18108lt_cv_prog_compiler_c_o_CXX \
18109export_dynamic_flag_spec_CXX \
18110whole_archive_flag_spec_CXX \
18111compiler_needs_object_CXX \
18112with_gnu_ld_CXX \
18113allow_undefined_flag_CXX \
18114no_undefined_flag_CXX \
18115hardcode_libdir_flag_spec_CXX \
18116hardcode_libdir_separator_CXX \
18117exclude_expsyms_CXX \
18118include_expsyms_CXX \
18119file_list_spec_CXX \
18120compiler_lib_search_dirs_CXX \
18121predep_objects_CXX \
18122postdep_objects_CXX \
18123predeps_CXX \
18124postdeps_CXX \
18125compiler_lib_search_path_CXX; do
18126    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18127    *[\\\\\\\`\\"\\\$]*)
18128      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18129      ;;
18130    *)
18131      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18132      ;;
18133    esac
18134done
18135
18136# Double-quote double-evaled strings.
18137for var in reload_cmds \
18138old_postinstall_cmds \
18139old_postuninstall_cmds \
18140old_archive_cmds \
18141extract_expsyms_cmds \
18142old_archive_from_new_cmds \
18143old_archive_from_expsyms_cmds \
18144archive_cmds \
18145archive_expsym_cmds \
18146module_cmds \
18147module_expsym_cmds \
18148export_symbols_cmds \
18149prelink_cmds \
18150postlink_cmds \
18151postinstall_cmds \
18152postuninstall_cmds \
18153finish_cmds \
18154sys_lib_search_path_spec \
18155configure_time_dlsearch_path \
18156configure_time_lt_sys_library_path \
18157reload_cmds_CXX \
18158old_archive_cmds_CXX \
18159old_archive_from_new_cmds_CXX \
18160old_archive_from_expsyms_cmds_CXX \
18161archive_cmds_CXX \
18162archive_expsym_cmds_CXX \
18163module_cmds_CXX \
18164module_expsym_cmds_CXX \
18165export_symbols_cmds_CXX \
18166prelink_cmds_CXX \
18167postlink_cmds_CXX; do
18168    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18169    *[\\\\\\\`\\"\\\$]*)
18170      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18171      ;;
18172    *)
18173      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18174      ;;
18175    esac
18176done
18177
18178ac_aux_dir='$ac_aux_dir'
18179
18180# See if we are running on zsh, and set the options that allow our
18181# commands through without removal of \ escapes INIT.
18182if test -n "\${ZSH_VERSION+set}"; then
18183   setopt NO_GLOB_SUBST
18184fi
18185
18186
18187    PACKAGE='$PACKAGE'
18188    VERSION='$VERSION'
18189    RM='$RM'
18190    ofile='$ofile'
18191
18192
18193
18194
18195
18196
18197_ACEOF
18198
18199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18200
18201# Handling of arguments.
18202for ac_config_target in $ac_config_targets
18203do
18204  case $ac_config_target in
18205    "clamavcxx-config.h") CONFIG_HEADERS="$CONFIG_HEADERS clamavcxx-config.h" ;;
18206    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18207    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18208    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18209
18210  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18211  esac
18212done
18213
18214
18215# If the user did not use the arguments to specify the items to instantiate,
18216# then the envvar interface is used.  Set only those that are not.
18217# We use the long form for the default assignment because of an extremely
18218# bizarre bug on SunOS 4.1.3.
18219if $ac_need_defaults; then
18220  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18221  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18222  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18223fi
18224
18225# Have a temporary directory for convenience.  Make it in the build tree
18226# simply because there is no reason against having it here, and in addition,
18227# creating and moving files from /tmp can sometimes cause problems.
18228# Hook for its removal unless debugging.
18229# Note that there is a small window in which the directory will not be cleaned:
18230# after its creation but before its name has been assigned to `$tmp'.
18231$debug ||
18232{
18233  tmp= ac_tmp=
18234  trap 'exit_status=$?
18235  : "${ac_tmp:=$tmp}"
18236  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18237' 0
18238  trap 'as_fn_exit 1' 1 2 13 15
18239}
18240# Create a (secure) tmp directory for tmp files.
18241
18242{
18243  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18244  test -d "$tmp"
18245}  ||
18246{
18247  tmp=./conf$$-$RANDOM
18248  (umask 077 && mkdir "$tmp")
18249} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18250ac_tmp=$tmp
18251
18252# Set up the scripts for CONFIG_FILES section.
18253# No need to generate them if there are no CONFIG_FILES.
18254# This happens for instance with `./config.status config.h'.
18255if test -n "$CONFIG_FILES"; then
18256
18257
18258ac_cr=`echo X | tr X '\015'`
18259# On cygwin, bash can eat \r inside `` if the user requested igncr.
18260# But we know of no other shell where ac_cr would be empty at this
18261# point, so we can use a bashism as a fallback.
18262if test "x$ac_cr" = x; then
18263  eval ac_cr=\$\'\\r\'
18264fi
18265ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18266if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18267  ac_cs_awk_cr='\\r'
18268else
18269  ac_cs_awk_cr=$ac_cr
18270fi
18271
18272echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18273_ACEOF
18274
18275
18276{
18277  echo "cat >conf$$subs.awk <<_ACEOF" &&
18278  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18279  echo "_ACEOF"
18280} >conf$$subs.sh ||
18281  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18282ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18283ac_delim='%!_!# '
18284for ac_last_try in false false false false false :; do
18285  . ./conf$$subs.sh ||
18286    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18287
18288  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18289  if test $ac_delim_n = $ac_delim_num; then
18290    break
18291  elif $ac_last_try; then
18292    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18293  else
18294    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18295  fi
18296done
18297rm -f conf$$subs.sh
18298
18299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18300cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18301_ACEOF
18302sed -n '
18303h
18304s/^/S["/; s/!.*/"]=/
18305p
18306g
18307s/^[^!]*!//
18308:repl
18309t repl
18310s/'"$ac_delim"'$//
18311t delim
18312:nl
18313h
18314s/\(.\{148\}\)..*/\1/
18315t more1
18316s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18317p
18318n
18319b repl
18320:more1
18321s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18322p
18323g
18324s/.\{148\}//
18325t nl
18326:delim
18327h
18328s/\(.\{148\}\)..*/\1/
18329t more2
18330s/["\\]/\\&/g; s/^/"/; s/$/"/
18331p
18332b
18333:more2
18334s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18335p
18336g
18337s/.\{148\}//
18338t delim
18339' <conf$$subs.awk | sed '
18340/^[^""]/{
18341  N
18342  s/\n//
18343}
18344' >>$CONFIG_STATUS || ac_write_fail=1
18345rm -f conf$$subs.awk
18346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18347_ACAWK
18348cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18349  for (key in S) S_is_set[key] = 1
18350  FS = ""
18351
18352}
18353{
18354  line = $ 0
18355  nfields = split(line, field, "@")
18356  substed = 0
18357  len = length(field[1])
18358  for (i = 2; i < nfields; i++) {
18359    key = field[i]
18360    keylen = length(key)
18361    if (S_is_set[key]) {
18362      value = S[key]
18363      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18364      len += length(value) + length(field[++i])
18365      substed = 1
18366    } else
18367      len += 1 + keylen
18368  }
18369
18370  print line
18371}
18372
18373_ACAWK
18374_ACEOF
18375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18376if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18377  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18378else
18379  cat
18380fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18381  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18382_ACEOF
18383
18384# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18385# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18386# trailing colons and then remove the whole line if VPATH becomes empty
18387# (actually we leave an empty line to preserve line numbers).
18388if test "x$srcdir" = x.; then
18389  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18390h
18391s///
18392s/^/:/
18393s/[	 ]*$/:/
18394s/:\$(srcdir):/:/g
18395s/:\${srcdir}:/:/g
18396s/:@srcdir@:/:/g
18397s/^:*//
18398s/:*$//
18399x
18400s/\(=[	 ]*\).*/\1/
18401G
18402s/\n//
18403s/^[^=]*=[	 ]*$//
18404}'
18405fi
18406
18407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18408fi # test -n "$CONFIG_FILES"
18409
18410# Set up the scripts for CONFIG_HEADERS section.
18411# No need to generate them if there are no CONFIG_HEADERS.
18412# This happens for instance with `./config.status Makefile'.
18413if test -n "$CONFIG_HEADERS"; then
18414cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18415BEGIN {
18416_ACEOF
18417
18418# Transform confdefs.h into an awk script `defines.awk', embedded as
18419# here-document in config.status, that substitutes the proper values into
18420# config.h.in to produce config.h.
18421
18422# Create a delimiter string that does not exist in confdefs.h, to ease
18423# handling of long lines.
18424ac_delim='%!_!# '
18425for ac_last_try in false false :; do
18426  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18427  if test -z "$ac_tt"; then
18428    break
18429  elif $ac_last_try; then
18430    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18431  else
18432    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18433  fi
18434done
18435
18436# For the awk script, D is an array of macro values keyed by name,
18437# likewise P contains macro parameters if any.  Preserve backslash
18438# newline sequences.
18439
18440ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18441sed -n '
18442s/.\{148\}/&'"$ac_delim"'/g
18443t rset
18444:rset
18445s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18446t def
18447d
18448:def
18449s/\\$//
18450t bsnl
18451s/["\\]/\\&/g
18452s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18453D["\1"]=" \3"/p
18454s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18455d
18456:bsnl
18457s/["\\]/\\&/g
18458s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18459D["\1"]=" \3\\\\\\n"\\/p
18460t cont
18461s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18462t cont
18463d
18464:cont
18465n
18466s/.\{148\}/&'"$ac_delim"'/g
18467t clear
18468:clear
18469s/\\$//
18470t bsnlc
18471s/["\\]/\\&/g; s/^/"/; s/$/"/p
18472d
18473:bsnlc
18474s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18475b cont
18476' <confdefs.h | sed '
18477s/'"$ac_delim"'/"\\\
18478"/g' >>$CONFIG_STATUS || ac_write_fail=1
18479
18480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18481  for (key in D) D_is_set[key] = 1
18482  FS = ""
18483}
18484/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18485  line = \$ 0
18486  split(line, arg, " ")
18487  if (arg[1] == "#") {
18488    defundef = arg[2]
18489    mac1 = arg[3]
18490  } else {
18491    defundef = substr(arg[1], 2)
18492    mac1 = arg[2]
18493  }
18494  split(mac1, mac2, "(") #)
18495  macro = mac2[1]
18496  prefix = substr(line, 1, index(line, defundef) - 1)
18497  if (D_is_set[macro]) {
18498    # Preserve the white space surrounding the "#".
18499    print prefix "define", macro P[macro] D[macro]
18500    next
18501  } else {
18502    # Replace #undef with comments.  This is necessary, for example,
18503    # in the case of _POSIX_SOURCE, which is predefined and required
18504    # on some systems where configure will not decide to define it.
18505    if (defundef == "undef") {
18506      print "/*", prefix defundef, macro, "*/"
18507      next
18508    }
18509  }
18510}
18511{ print }
18512_ACAWK
18513_ACEOF
18514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18515  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18516fi # test -n "$CONFIG_HEADERS"
18517
18518
18519eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18520shift
18521for ac_tag
18522do
18523  case $ac_tag in
18524  :[FHLC]) ac_mode=$ac_tag; continue;;
18525  esac
18526  case $ac_mode$ac_tag in
18527  :[FHL]*:*);;
18528  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18529  :[FH]-) ac_tag=-:-;;
18530  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18531  esac
18532  ac_save_IFS=$IFS
18533  IFS=:
18534  set x $ac_tag
18535  IFS=$ac_save_IFS
18536  shift
18537  ac_file=$1
18538  shift
18539
18540  case $ac_mode in
18541  :L) ac_source=$1;;
18542  :[FH])
18543    ac_file_inputs=
18544    for ac_f
18545    do
18546      case $ac_f in
18547      -) ac_f="$ac_tmp/stdin";;
18548      *) # Look for the file first in the build tree, then in the source tree
18549	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18550	 # because $ac_f cannot contain `:'.
18551	 test -f "$ac_f" ||
18552	   case $ac_f in
18553	   [\\/$]*) false;;
18554	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18555	   esac ||
18556	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18557      esac
18558      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18559      as_fn_append ac_file_inputs " '$ac_f'"
18560    done
18561
18562    # Let's still pretend it is `configure' which instantiates (i.e., don't
18563    # use $as_me), people would be surprised to read:
18564    #    /* config.h.  Generated by config.status.  */
18565    configure_input='Generated from '`
18566	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18567	`' by configure.'
18568    if test x"$ac_file" != x-; then
18569      configure_input="$ac_file.  $configure_input"
18570      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18571$as_echo "$as_me: creating $ac_file" >&6;}
18572    fi
18573    # Neutralize special characters interpreted by sed in replacement strings.
18574    case $configure_input in #(
18575    *\&* | *\|* | *\\* )
18576       ac_sed_conf_input=`$as_echo "$configure_input" |
18577       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18578    *) ac_sed_conf_input=$configure_input;;
18579    esac
18580
18581    case $ac_tag in
18582    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18583      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18584    esac
18585    ;;
18586  esac
18587
18588  ac_dir=`$as_dirname -- "$ac_file" ||
18589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18590	 X"$ac_file" : 'X\(//\)[^/]' \| \
18591	 X"$ac_file" : 'X\(//\)$' \| \
18592	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18593$as_echo X"$ac_file" |
18594    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18595	    s//\1/
18596	    q
18597	  }
18598	  /^X\(\/\/\)[^/].*/{
18599	    s//\1/
18600	    q
18601	  }
18602	  /^X\(\/\/\)$/{
18603	    s//\1/
18604	    q
18605	  }
18606	  /^X\(\/\).*/{
18607	    s//\1/
18608	    q
18609	  }
18610	  s/.*/./; q'`
18611  as_dir="$ac_dir"; as_fn_mkdir_p
18612  ac_builddir=.
18613
18614case "$ac_dir" in
18615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18616*)
18617  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18618  # A ".." for each directory in $ac_dir_suffix.
18619  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18620  case $ac_top_builddir_sub in
18621  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18622  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18623  esac ;;
18624esac
18625ac_abs_top_builddir=$ac_pwd
18626ac_abs_builddir=$ac_pwd$ac_dir_suffix
18627# for backward compatibility:
18628ac_top_builddir=$ac_top_build_prefix
18629
18630case $srcdir in
18631  .)  # We are building in place.
18632    ac_srcdir=.
18633    ac_top_srcdir=$ac_top_builddir_sub
18634    ac_abs_top_srcdir=$ac_pwd ;;
18635  [\\/]* | ?:[\\/]* )  # Absolute name.
18636    ac_srcdir=$srcdir$ac_dir_suffix;
18637    ac_top_srcdir=$srcdir
18638    ac_abs_top_srcdir=$srcdir ;;
18639  *) # Relative name.
18640    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18641    ac_top_srcdir=$ac_top_build_prefix$srcdir
18642    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18643esac
18644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18645
18646
18647  case $ac_mode in
18648  :F)
18649  #
18650  # CONFIG_FILE
18651  #
18652
18653  case $INSTALL in
18654  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18655  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18656  esac
18657  ac_MKDIR_P=$MKDIR_P
18658  case $MKDIR_P in
18659  [\\/$]* | ?:[\\/]* ) ;;
18660  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18661  esac
18662_ACEOF
18663
18664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18665# If the template does not know about datarootdir, expand it.
18666# FIXME: This hack should be removed a few years after 2.60.
18667ac_datarootdir_hack=; ac_datarootdir_seen=
18668ac_sed_dataroot='
18669/datarootdir/ {
18670  p
18671  q
18672}
18673/@datadir@/p
18674/@docdir@/p
18675/@infodir@/p
18676/@localedir@/p
18677/@mandir@/p'
18678case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18679*datarootdir*) ac_datarootdir_seen=yes;;
18680*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18681  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18682$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18683_ACEOF
18684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18685  ac_datarootdir_hack='
18686  s&@datadir@&$datadir&g
18687  s&@docdir@&$docdir&g
18688  s&@infodir@&$infodir&g
18689  s&@localedir@&$localedir&g
18690  s&@mandir@&$mandir&g
18691  s&\\\${datarootdir}&$datarootdir&g' ;;
18692esac
18693_ACEOF
18694
18695# Neutralize VPATH when `$srcdir' = `.'.
18696# Shell code in configure.ac might set extrasub.
18697# FIXME: do we really want to maintain this feature?
18698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18699ac_sed_extra="$ac_vpsub
18700$extrasub
18701_ACEOF
18702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18703:t
18704/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18705s|@configure_input@|$ac_sed_conf_input|;t t
18706s&@top_builddir@&$ac_top_builddir_sub&;t t
18707s&@top_build_prefix@&$ac_top_build_prefix&;t t
18708s&@srcdir@&$ac_srcdir&;t t
18709s&@abs_srcdir@&$ac_abs_srcdir&;t t
18710s&@top_srcdir@&$ac_top_srcdir&;t t
18711s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18712s&@builddir@&$ac_builddir&;t t
18713s&@abs_builddir@&$ac_abs_builddir&;t t
18714s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18715s&@INSTALL@&$ac_INSTALL&;t t
18716s&@MKDIR_P@&$ac_MKDIR_P&;t t
18717$ac_datarootdir_hack
18718"
18719eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18720  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18721
18722test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18723  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18724  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18725      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18726  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18727which seems to be undefined.  Please make sure it is defined" >&5
18728$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18729which seems to be undefined.  Please make sure it is defined" >&2;}
18730
18731  rm -f "$ac_tmp/stdin"
18732  case $ac_file in
18733  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18734  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18735  esac \
18736  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18737 ;;
18738  :H)
18739  #
18740  # CONFIG_HEADER
18741  #
18742  if test x"$ac_file" != x-; then
18743    {
18744      $as_echo "/* $configure_input  */" \
18745      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18746    } >"$ac_tmp/config.h" \
18747      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18748    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18749      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18750$as_echo "$as_me: $ac_file is unchanged" >&6;}
18751    else
18752      rm -f "$ac_file"
18753      mv "$ac_tmp/config.h" "$ac_file" \
18754	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18755    fi
18756  else
18757    $as_echo "/* $configure_input  */" \
18758      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18759      || as_fn_error $? "could not create -" "$LINENO" 5
18760  fi
18761# Compute "$ac_file"'s index in $config_headers.
18762_am_arg="$ac_file"
18763_am_stamp_count=1
18764for _am_header in $config_headers :; do
18765  case $_am_header in
18766    $_am_arg | $_am_arg:* )
18767      break ;;
18768    * )
18769      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18770  esac
18771done
18772echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18773$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18774	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18775	 X"$_am_arg" : 'X\(//\)$' \| \
18776	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18777$as_echo X"$_am_arg" |
18778    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18779	    s//\1/
18780	    q
18781	  }
18782	  /^X\(\/\/\)[^/].*/{
18783	    s//\1/
18784	    q
18785	  }
18786	  /^X\(\/\/\)$/{
18787	    s//\1/
18788	    q
18789	  }
18790	  /^X\(\/\).*/{
18791	    s//\1/
18792	    q
18793	  }
18794	  s/.*/./; q'`/stamp-h$_am_stamp_count
18795 ;;
18796
18797  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18798$as_echo "$as_me: executing $ac_file commands" >&6;}
18799 ;;
18800  esac
18801
18802
18803  case $ac_file$ac_mode in
18804    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18805  # Older Autoconf quotes --file arguments for eval, but not when files
18806  # are listed without --file.  Let's play safe and only enable the eval
18807  # if we detect the quoting.
18808  case $CONFIG_FILES in
18809  *\'*) eval set x "$CONFIG_FILES" ;;
18810  *)   set x $CONFIG_FILES ;;
18811  esac
18812  shift
18813  for mf
18814  do
18815    # Strip MF so we end up with the name of the file.
18816    mf=`echo "$mf" | sed -e 's/:.*$//'`
18817    # Check whether this is an Automake generated Makefile or not.
18818    # We used to match only the files named 'Makefile.in', but
18819    # some people rename them; so instead we look at the file content.
18820    # Grep'ing the first line is not enough: some people post-process
18821    # each Makefile.in and add a new line on top of each file to say so.
18822    # Grep'ing the whole file is not good either: AIX grep has a line
18823    # limit of 2048, but all sed's we know have understand at least 4000.
18824    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18825      dirpart=`$as_dirname -- "$mf" ||
18826$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18827	 X"$mf" : 'X\(//\)[^/]' \| \
18828	 X"$mf" : 'X\(//\)$' \| \
18829	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18830$as_echo X"$mf" |
18831    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18832	    s//\1/
18833	    q
18834	  }
18835	  /^X\(\/\/\)[^/].*/{
18836	    s//\1/
18837	    q
18838	  }
18839	  /^X\(\/\/\)$/{
18840	    s//\1/
18841	    q
18842	  }
18843	  /^X\(\/\).*/{
18844	    s//\1/
18845	    q
18846	  }
18847	  s/.*/./; q'`
18848    else
18849      continue
18850    fi
18851    # Extract the definition of DEPDIR, am__include, and am__quote
18852    # from the Makefile without running 'make'.
18853    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18854    test -z "$DEPDIR" && continue
18855    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18856    test -z "$am__include" && continue
18857    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18858    # Find all dependency output files, they are included files with
18859    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18860    # simplest approach to changing $(DEPDIR) to its actual value in the
18861    # expansion.
18862    for file in `sed -n "
18863      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18864	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18865      # Make sure the directory exists.
18866      test -f "$dirpart/$file" && continue
18867      fdir=`$as_dirname -- "$file" ||
18868$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18869	 X"$file" : 'X\(//\)[^/]' \| \
18870	 X"$file" : 'X\(//\)$' \| \
18871	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18872$as_echo X"$file" |
18873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18874	    s//\1/
18875	    q
18876	  }
18877	  /^X\(\/\/\)[^/].*/{
18878	    s//\1/
18879	    q
18880	  }
18881	  /^X\(\/\/\)$/{
18882	    s//\1/
18883	    q
18884	  }
18885	  /^X\(\/\).*/{
18886	    s//\1/
18887	    q
18888	  }
18889	  s/.*/./; q'`
18890      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18891      # echo "creating $dirpart/$file"
18892      echo '# dummy' > "$dirpart/$file"
18893    done
18894  done
18895}
18896 ;;
18897    "libtool":C)
18898
18899    # See if we are running on zsh, and set the options that allow our
18900    # commands through without removal of \ escapes.
18901    if test -n "${ZSH_VERSION+set}"; then
18902      setopt NO_GLOB_SUBST
18903    fi
18904
18905    cfgfile=${ofile}T
18906    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18907    $RM "$cfgfile"
18908
18909    cat <<_LT_EOF >> "$cfgfile"
18910#! $SHELL
18911# Generated automatically by $as_me ($PACKAGE) $VERSION
18912# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18913
18914# Provide generalized library-building support services.
18915# Written by Gordon Matzigkeit, 1996
18916
18917# Copyright (C) 2014 Free Software Foundation, Inc.
18918# This is free software; see the source for copying conditions.  There is NO
18919# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18920
18921# GNU Libtool is free software; you can redistribute it and/or modify
18922# it under the terms of the GNU General Public License as published by
18923# the Free Software Foundation; either version 2 of of the License, or
18924# (at your option) any later version.
18925#
18926# As a special exception to the GNU General Public License, if you
18927# distribute this file as part of a program or library that is built
18928# using GNU Libtool, you may include this file under the  same
18929# distribution terms that you use for the rest of that program.
18930#
18931# GNU Libtool is distributed in the hope that it will be useful, but
18932# WITHOUT ANY WARRANTY; without even the implied warranty of
18933# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18934# GNU General Public License for more details.
18935#
18936# You should have received a copy of the GNU General Public License
18937# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18938
18939
18940# The names of the tagged configurations supported by this script.
18941available_tags='CXX '
18942
18943# Configured defaults for sys_lib_dlsearch_path munging.
18944: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18945
18946# ### BEGIN LIBTOOL CONFIG
18947
18948# Which release of libtool.m4 was used?
18949macro_version=$macro_version
18950macro_revision=$macro_revision
18951
18952# Whether or not to build static libraries.
18953build_old_libs=$enable_static
18954
18955# Whether or not to build shared libraries.
18956build_libtool_libs=$enable_shared
18957
18958# What type of objects to build.
18959pic_mode=$pic_mode
18960
18961# Whether or not to optimize for fast installation.
18962fast_install=$enable_fast_install
18963
18964# Shared archive member basename,for filename based shared library versioning on AIX.
18965shared_archive_member_spec=$shared_archive_member_spec
18966
18967# Shell to use when invoking shell scripts.
18968SHELL=$lt_SHELL
18969
18970# An echo program that protects backslashes.
18971ECHO=$lt_ECHO
18972
18973# The PATH separator for the build system.
18974PATH_SEPARATOR=$lt_PATH_SEPARATOR
18975
18976# The host system.
18977host_alias=$host_alias
18978host=$host
18979host_os=$host_os
18980
18981# The build system.
18982build_alias=$build_alias
18983build=$build
18984build_os=$build_os
18985
18986# A sed program that does not truncate output.
18987SED=$lt_SED
18988
18989# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18990Xsed="\$SED -e 1s/^X//"
18991
18992# A grep program that handles long lines.
18993GREP=$lt_GREP
18994
18995# An ERE matcher.
18996EGREP=$lt_EGREP
18997
18998# A literal string matcher.
18999FGREP=$lt_FGREP
19000
19001# A BSD- or MS-compatible name lister.
19002NM=$lt_NM
19003
19004# Whether we need soft or hard links.
19005LN_S=$lt_LN_S
19006
19007# What is the maximum length of a command?
19008max_cmd_len=$max_cmd_len
19009
19010# Object file suffix (normally "o").
19011objext=$ac_objext
19012
19013# Executable file suffix (normally "").
19014exeext=$exeext
19015
19016# whether the shell understands "unset".
19017lt_unset=$lt_unset
19018
19019# turn spaces into newlines.
19020SP2NL=$lt_lt_SP2NL
19021
19022# turn newlines into spaces.
19023NL2SP=$lt_lt_NL2SP
19024
19025# convert \$build file names to \$host format.
19026to_host_file_cmd=$lt_cv_to_host_file_cmd
19027
19028# convert \$build files to toolchain format.
19029to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19030
19031# An object symbol dumper.
19032OBJDUMP=$lt_OBJDUMP
19033
19034# Method to check whether dependent libraries are shared objects.
19035deplibs_check_method=$lt_deplibs_check_method
19036
19037# Command to use when deplibs_check_method = "file_magic".
19038file_magic_cmd=$lt_file_magic_cmd
19039
19040# How to find potential files when deplibs_check_method = "file_magic".
19041file_magic_glob=$lt_file_magic_glob
19042
19043# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19044want_nocaseglob=$lt_want_nocaseglob
19045
19046# DLL creation program.
19047DLLTOOL=$lt_DLLTOOL
19048
19049# Command to associate shared and link libraries.
19050sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19051
19052# The archiver.
19053AR=$lt_AR
19054
19055# Flags to create an archive.
19056AR_FLAGS=$lt_AR_FLAGS
19057
19058# How to feed a file listing to the archiver.
19059archiver_list_spec=$lt_archiver_list_spec
19060
19061# A symbol stripping program.
19062STRIP=$lt_STRIP
19063
19064# Commands used to install an old-style archive.
19065RANLIB=$lt_RANLIB
19066old_postinstall_cmds=$lt_old_postinstall_cmds
19067old_postuninstall_cmds=$lt_old_postuninstall_cmds
19068
19069# Whether to use a lock for old archive extraction.
19070lock_old_archive_extraction=$lock_old_archive_extraction
19071
19072# A C compiler.
19073LTCC=$lt_CC
19074
19075# LTCC compiler flags.
19076LTCFLAGS=$lt_CFLAGS
19077
19078# Take the output of nm and produce a listing of raw symbols and C names.
19079global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19080
19081# Transform the output of nm in a proper C declaration.
19082global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19083
19084# Transform the output of nm into a list of symbols to manually relocate.
19085global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19086
19087# Transform the output of nm in a C name address pair.
19088global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19089
19090# Transform the output of nm in a C name address pair when lib prefix is needed.
19091global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19092
19093# The name lister interface.
19094nm_interface=$lt_lt_cv_nm_interface
19095
19096# Specify filename containing input files for \$NM.
19097nm_file_list_spec=$lt_nm_file_list_spec
19098
19099# The root where to search for dependent libraries,and where our libraries should be installed.
19100lt_sysroot=$lt_sysroot
19101
19102# Command to truncate a binary pipe.
19103lt_truncate_bin=$lt_lt_cv_truncate_bin
19104
19105# The name of the directory that contains temporary libtool files.
19106objdir=$objdir
19107
19108# Used to examine libraries when file_magic_cmd begins with "file".
19109MAGIC_CMD=$MAGIC_CMD
19110
19111# Must we lock files when doing compilation?
19112need_locks=$lt_need_locks
19113
19114# Manifest tool.
19115MANIFEST_TOOL=$lt_MANIFEST_TOOL
19116
19117# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19118DSYMUTIL=$lt_DSYMUTIL
19119
19120# Tool to change global to local symbols on Mac OS X.
19121NMEDIT=$lt_NMEDIT
19122
19123# Tool to manipulate fat objects and archives on Mac OS X.
19124LIPO=$lt_LIPO
19125
19126# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19127OTOOL=$lt_OTOOL
19128
19129# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19130OTOOL64=$lt_OTOOL64
19131
19132# Old archive suffix (normally "a").
19133libext=$libext
19134
19135# Shared library suffix (normally ".so").
19136shrext_cmds=$lt_shrext_cmds
19137
19138# The commands to extract the exported symbol list from a shared archive.
19139extract_expsyms_cmds=$lt_extract_expsyms_cmds
19140
19141# Variables whose values should be saved in libtool wrapper scripts and
19142# restored at link time.
19143variables_saved_for_relink=$lt_variables_saved_for_relink
19144
19145# Do we need the "lib" prefix for modules?
19146need_lib_prefix=$need_lib_prefix
19147
19148# Do we need a version for libraries?
19149need_version=$need_version
19150
19151# Library versioning type.
19152version_type=$version_type
19153
19154# Shared library runtime path variable.
19155runpath_var=$runpath_var
19156
19157# Shared library path variable.
19158shlibpath_var=$shlibpath_var
19159
19160# Is shlibpath searched before the hard-coded library search path?
19161shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19162
19163# Format of library name prefix.
19164libname_spec=$lt_libname_spec
19165
19166# List of archive names.  First name is the real one, the rest are links.
19167# The last name is the one that the linker finds with -lNAME
19168library_names_spec=$lt_library_names_spec
19169
19170# The coded name of the library, if different from the real name.
19171soname_spec=$lt_soname_spec
19172
19173# Permission mode override for installation of shared libraries.
19174install_override_mode=$lt_install_override_mode
19175
19176# Command to use after installation of a shared archive.
19177postinstall_cmds=$lt_postinstall_cmds
19178
19179# Command to use after uninstallation of a shared archive.
19180postuninstall_cmds=$lt_postuninstall_cmds
19181
19182# Commands used to finish a libtool library installation in a directory.
19183finish_cmds=$lt_finish_cmds
19184
19185# As "finish_cmds", except a single script fragment to be evaled but
19186# not shown.
19187finish_eval=$lt_finish_eval
19188
19189# Whether we should hardcode library paths into libraries.
19190hardcode_into_libs=$hardcode_into_libs
19191
19192# Compile-time system search path for libraries.
19193sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19194
19195# Detected run-time system search path for libraries.
19196sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19197
19198# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19199configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19200
19201# Whether dlopen is supported.
19202dlopen_support=$enable_dlopen
19203
19204# Whether dlopen of programs is supported.
19205dlopen_self=$enable_dlopen_self
19206
19207# Whether dlopen of statically linked programs is supported.
19208dlopen_self_static=$enable_dlopen_self_static
19209
19210# Commands to strip libraries.
19211old_striplib=$lt_old_striplib
19212striplib=$lt_striplib
19213
19214
19215# The linker used to build libraries.
19216LD=$lt_LD
19217
19218# How to create reloadable object files.
19219reload_flag=$lt_reload_flag
19220reload_cmds=$lt_reload_cmds
19221
19222# Commands used to build an old-style archive.
19223old_archive_cmds=$lt_old_archive_cmds
19224
19225# A language specific compiler.
19226CC=$lt_compiler
19227
19228# Is the compiler the GNU compiler?
19229with_gcc=$GCC
19230
19231# Compiler flag to turn off builtin functions.
19232no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19233
19234# Additional compiler flags for building library objects.
19235pic_flag=$lt_lt_prog_compiler_pic
19236
19237# How to pass a linker flag through the compiler.
19238wl=$lt_lt_prog_compiler_wl
19239
19240# Compiler flag to prevent dynamic linking.
19241link_static_flag=$lt_lt_prog_compiler_static
19242
19243# Does compiler simultaneously support -c and -o options?
19244compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19245
19246# Whether or not to add -lc for building shared libraries.
19247build_libtool_need_lc=$archive_cmds_need_lc
19248
19249# Whether or not to disallow shared libs when runtime libs are static.
19250allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19251
19252# Compiler flag to allow reflexive dlopens.
19253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19254
19255# Compiler flag to generate shared objects directly from archives.
19256whole_archive_flag_spec=$lt_whole_archive_flag_spec
19257
19258# Whether the compiler copes with passing no objects directly.
19259compiler_needs_object=$lt_compiler_needs_object
19260
19261# Create an old-style archive from a shared archive.
19262old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19263
19264# Create a temporary old-style archive to link instead of a shared archive.
19265old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19266
19267# Commands used to build a shared archive.
19268archive_cmds=$lt_archive_cmds
19269archive_expsym_cmds=$lt_archive_expsym_cmds
19270
19271# Commands used to build a loadable module if different from building
19272# a shared archive.
19273module_cmds=$lt_module_cmds
19274module_expsym_cmds=$lt_module_expsym_cmds
19275
19276# Whether we are building with GNU ld or not.
19277with_gnu_ld=$lt_with_gnu_ld
19278
19279# Flag that allows shared libraries with undefined symbols to be built.
19280allow_undefined_flag=$lt_allow_undefined_flag
19281
19282# Flag that enforces no undefined symbols.
19283no_undefined_flag=$lt_no_undefined_flag
19284
19285# Flag to hardcode \$libdir into a binary during linking.
19286# This must work even if \$libdir does not exist
19287hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19288
19289# Whether we need a single "-rpath" flag with a separated argument.
19290hardcode_libdir_separator=$lt_hardcode_libdir_separator
19291
19292# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19293# DIR into the resulting binary.
19294hardcode_direct=$hardcode_direct
19295
19296# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19297# DIR into the resulting binary and the resulting library dependency is
19298# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19299# library is relocated.
19300hardcode_direct_absolute=$hardcode_direct_absolute
19301
19302# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19303# into the resulting binary.
19304hardcode_minus_L=$hardcode_minus_L
19305
19306# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19307# into the resulting binary.
19308hardcode_shlibpath_var=$hardcode_shlibpath_var
19309
19310# Set to "yes" if building a shared library automatically hardcodes DIR
19311# into the library and all subsequent libraries and executables linked
19312# against it.
19313hardcode_automatic=$hardcode_automatic
19314
19315# Set to yes if linker adds runtime paths of dependent libraries
19316# to runtime path list.
19317inherit_rpath=$inherit_rpath
19318
19319# Whether libtool must link a program against all its dependency libraries.
19320link_all_deplibs=$link_all_deplibs
19321
19322# Set to "yes" if exported symbols are required.
19323always_export_symbols=$always_export_symbols
19324
19325# The commands to list exported symbols.
19326export_symbols_cmds=$lt_export_symbols_cmds
19327
19328# Symbols that should not be listed in the preloaded symbols.
19329exclude_expsyms=$lt_exclude_expsyms
19330
19331# Symbols that must always be exported.
19332include_expsyms=$lt_include_expsyms
19333
19334# Commands necessary for linking programs (against libraries) with templates.
19335prelink_cmds=$lt_prelink_cmds
19336
19337# Commands necessary for finishing linking programs.
19338postlink_cmds=$lt_postlink_cmds
19339
19340# Specify filename containing input files.
19341file_list_spec=$lt_file_list_spec
19342
19343# How to hardcode a shared library path into an executable.
19344hardcode_action=$hardcode_action
19345
19346# The directories searched by this compiler when creating a shared library.
19347compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19348
19349# Dependencies to place before and after the objects being linked to
19350# create a shared library.
19351predep_objects=$lt_predep_objects
19352postdep_objects=$lt_postdep_objects
19353predeps=$lt_predeps
19354postdeps=$lt_postdeps
19355
19356# The library search path used internally by the compiler when linking
19357# a shared library.
19358compiler_lib_search_path=$lt_compiler_lib_search_path
19359
19360# ### END LIBTOOL CONFIG
19361
19362_LT_EOF
19363
19364    cat <<'_LT_EOF' >> "$cfgfile"
19365
19366# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19367
19368# func_munge_path_list VARIABLE PATH
19369# -----------------------------------
19370# VARIABLE is name of variable containing _space_ separated list of
19371# directories to be munged by the contents of PATH, which is string
19372# having a format:
19373# "DIR[:DIR]:"
19374#       string "DIR[ DIR]" will be prepended to VARIABLE
19375# ":DIR[:DIR]"
19376#       string "DIR[ DIR]" will be appended to VARIABLE
19377# "DIRP[:DIRP]::[DIRA:]DIRA"
19378#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19379#       "DIRA[ DIRA]" will be appended to VARIABLE
19380# "DIR[:DIR]"
19381#       VARIABLE will be replaced by "DIR[ DIR]"
19382func_munge_path_list ()
19383{
19384    case x$2 in
19385    x)
19386        ;;
19387    *:)
19388        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19389        ;;
19390    x:*)
19391        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19392        ;;
19393    *::*)
19394        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19395        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19396        ;;
19397    *)
19398        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19399        ;;
19400    esac
19401}
19402
19403
19404# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19405func_cc_basename ()
19406{
19407    for cc_temp in $*""; do
19408      case $cc_temp in
19409        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19410        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19411        \-*) ;;
19412        *) break;;
19413      esac
19414    done
19415    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19416}
19417
19418
19419# ### END FUNCTIONS SHARED WITH CONFIGURE
19420
19421_LT_EOF
19422
19423  case $host_os in
19424  aix3*)
19425    cat <<\_LT_EOF >> "$cfgfile"
19426# AIX sometimes has problems with the GCC collect2 program.  For some
19427# reason, if we set the COLLECT_NAMES environment variable, the problems
19428# vanish in a puff of smoke.
19429if test set != "${COLLECT_NAMES+set}"; then
19430  COLLECT_NAMES=
19431  export COLLECT_NAMES
19432fi
19433_LT_EOF
19434    ;;
19435  esac
19436
19437
19438ltmain=$ac_aux_dir/ltmain.sh
19439
19440
19441  # We use sed instead of cat because bash on DJGPP gets confused if
19442  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19443  # text mode, it properly converts lines to CR/LF.  This bash problem
19444  # is reportedly fixed, but why not run on old versions too?
19445  sed '$q' "$ltmain" >> "$cfgfile" \
19446     || (rm -f "$cfgfile"; exit 1)
19447
19448   mv -f "$cfgfile" "$ofile" ||
19449    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19450  chmod +x "$ofile"
19451
19452
19453    cat <<_LT_EOF >> "$ofile"
19454
19455# ### BEGIN LIBTOOL TAG CONFIG: CXX
19456
19457# The linker used to build libraries.
19458LD=$lt_LD_CXX
19459
19460# How to create reloadable object files.
19461reload_flag=$lt_reload_flag_CXX
19462reload_cmds=$lt_reload_cmds_CXX
19463
19464# Commands used to build an old-style archive.
19465old_archive_cmds=$lt_old_archive_cmds_CXX
19466
19467# A language specific compiler.
19468CC=$lt_compiler_CXX
19469
19470# Is the compiler the GNU compiler?
19471with_gcc=$GCC_CXX
19472
19473# Compiler flag to turn off builtin functions.
19474no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19475
19476# Additional compiler flags for building library objects.
19477pic_flag=$lt_lt_prog_compiler_pic_CXX
19478
19479# How to pass a linker flag through the compiler.
19480wl=$lt_lt_prog_compiler_wl_CXX
19481
19482# Compiler flag to prevent dynamic linking.
19483link_static_flag=$lt_lt_prog_compiler_static_CXX
19484
19485# Does compiler simultaneously support -c and -o options?
19486compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19487
19488# Whether or not to add -lc for building shared libraries.
19489build_libtool_need_lc=$archive_cmds_need_lc_CXX
19490
19491# Whether or not to disallow shared libs when runtime libs are static.
19492allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19493
19494# Compiler flag to allow reflexive dlopens.
19495export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19496
19497# Compiler flag to generate shared objects directly from archives.
19498whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19499
19500# Whether the compiler copes with passing no objects directly.
19501compiler_needs_object=$lt_compiler_needs_object_CXX
19502
19503# Create an old-style archive from a shared archive.
19504old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19505
19506# Create a temporary old-style archive to link instead of a shared archive.
19507old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19508
19509# Commands used to build a shared archive.
19510archive_cmds=$lt_archive_cmds_CXX
19511archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19512
19513# Commands used to build a loadable module if different from building
19514# a shared archive.
19515module_cmds=$lt_module_cmds_CXX
19516module_expsym_cmds=$lt_module_expsym_cmds_CXX
19517
19518# Whether we are building with GNU ld or not.
19519with_gnu_ld=$lt_with_gnu_ld_CXX
19520
19521# Flag that allows shared libraries with undefined symbols to be built.
19522allow_undefined_flag=$lt_allow_undefined_flag_CXX
19523
19524# Flag that enforces no undefined symbols.
19525no_undefined_flag=$lt_no_undefined_flag_CXX
19526
19527# Flag to hardcode \$libdir into a binary during linking.
19528# This must work even if \$libdir does not exist
19529hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19530
19531# Whether we need a single "-rpath" flag with a separated argument.
19532hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19533
19534# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19535# DIR into the resulting binary.
19536hardcode_direct=$hardcode_direct_CXX
19537
19538# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19539# DIR into the resulting binary and the resulting library dependency is
19540# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19541# library is relocated.
19542hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19543
19544# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19545# into the resulting binary.
19546hardcode_minus_L=$hardcode_minus_L_CXX
19547
19548# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19549# into the resulting binary.
19550hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19551
19552# Set to "yes" if building a shared library automatically hardcodes DIR
19553# into the library and all subsequent libraries and executables linked
19554# against it.
19555hardcode_automatic=$hardcode_automatic_CXX
19556
19557# Set to yes if linker adds runtime paths of dependent libraries
19558# to runtime path list.
19559inherit_rpath=$inherit_rpath_CXX
19560
19561# Whether libtool must link a program against all its dependency libraries.
19562link_all_deplibs=$link_all_deplibs_CXX
19563
19564# Set to "yes" if exported symbols are required.
19565always_export_symbols=$always_export_symbols_CXX
19566
19567# The commands to list exported symbols.
19568export_symbols_cmds=$lt_export_symbols_cmds_CXX
19569
19570# Symbols that should not be listed in the preloaded symbols.
19571exclude_expsyms=$lt_exclude_expsyms_CXX
19572
19573# Symbols that must always be exported.
19574include_expsyms=$lt_include_expsyms_CXX
19575
19576# Commands necessary for linking programs (against libraries) with templates.
19577prelink_cmds=$lt_prelink_cmds_CXX
19578
19579# Commands necessary for finishing linking programs.
19580postlink_cmds=$lt_postlink_cmds_CXX
19581
19582# Specify filename containing input files.
19583file_list_spec=$lt_file_list_spec_CXX
19584
19585# How to hardcode a shared library path into an executable.
19586hardcode_action=$hardcode_action_CXX
19587
19588# The directories searched by this compiler when creating a shared library.
19589compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19590
19591# Dependencies to place before and after the objects being linked to
19592# create a shared library.
19593predep_objects=$lt_predep_objects_CXX
19594postdep_objects=$lt_postdep_objects_CXX
19595predeps=$lt_predeps_CXX
19596postdeps=$lt_postdeps_CXX
19597
19598# The library search path used internally by the compiler when linking
19599# a shared library.
19600compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19601
19602# ### END LIBTOOL TAG CONFIG: CXX
19603_LT_EOF
19604
19605 ;;
19606
19607  esac
19608done # for ac_tag
19609
19610
19611as_fn_exit 0
19612_ACEOF
19613ac_clean_files=$ac_clean_files_save
19614
19615test $ac_write_fail = 0 ||
19616  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19617
19618
19619# configure is writing to config.log, and then calls config.status.
19620# config.status does its own redirection, appending to config.log.
19621# Unfortunately, on DOS this fails, as config.log is still kept open
19622# by configure, so config.status won't be able to write to it; its
19623# output is simply discarded.  So we exec the FD to /dev/null,
19624# effectively closing config.log, so it can be properly (re)opened and
19625# appended to by config.status.  When coming back to configure, we
19626# need to make the FD available again.
19627if test "$no_create" != yes; then
19628  ac_cs_success=:
19629  ac_config_status_args=
19630  test "$silent" = yes &&
19631    ac_config_status_args="$ac_config_status_args --quiet"
19632  exec 5>/dev/null
19633  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19634  exec 5>>config.log
19635  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19636  # would make configure fail if this is the last instruction.
19637  $ac_cs_success || as_fn_exit 1
19638fi
19639
19640#
19641# CONFIG_SUBDIRS section.
19642#
19643if test "$no_recursion" != yes; then
19644
19645  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19646  # so they do not pile up.
19647  ac_sub_configure_args=
19648  ac_prev=
19649  eval "set x $ac_configure_args"
19650  shift
19651  for ac_arg
19652  do
19653    if test -n "$ac_prev"; then
19654      ac_prev=
19655      continue
19656    fi
19657    case $ac_arg in
19658    -cache-file | --cache-file | --cache-fil | --cache-fi \
19659    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19660      ac_prev=cache_file ;;
19661    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19662    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19663    | --c=*)
19664      ;;
19665    --config-cache | -C)
19666      ;;
19667    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19668      ac_prev=srcdir ;;
19669    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19670      ;;
19671    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19672      ac_prev=prefix ;;
19673    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19674      ;;
19675    --disable-option-checking)
19676      ;;
19677    *)
19678      case $ac_arg in
19679      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19680      esac
19681      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19682    esac
19683  done
19684
19685  # Always prepend --prefix to ensure using the same prefix
19686  # in subdir configurations.
19687  ac_arg="--prefix=$prefix"
19688  case $ac_arg in
19689  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19690  esac
19691  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19692
19693  # Pass --silent
19694  if test "$silent" = yes; then
19695    ac_sub_configure_args="--silent $ac_sub_configure_args"
19696  fi
19697
19698  # Always prepend --disable-option-checking to silence warnings, since
19699  # different subdirs can have different --enable and --with options.
19700  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19701
19702  ac_popdir=`pwd`
19703  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19704
19705    # Do not complain, so a configure script can configure whichever
19706    # parts of a large source tree are present.
19707    test -d "$srcdir/$ac_dir" || continue
19708
19709    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19710    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19711    $as_echo "$ac_msg" >&6
19712    as_dir="$ac_dir"; as_fn_mkdir_p
19713    ac_builddir=.
19714
19715case "$ac_dir" in
19716.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19717*)
19718  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19719  # A ".." for each directory in $ac_dir_suffix.
19720  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19721  case $ac_top_builddir_sub in
19722  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19723  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19724  esac ;;
19725esac
19726ac_abs_top_builddir=$ac_pwd
19727ac_abs_builddir=$ac_pwd$ac_dir_suffix
19728# for backward compatibility:
19729ac_top_builddir=$ac_top_build_prefix
19730
19731case $srcdir in
19732  .)  # We are building in place.
19733    ac_srcdir=.
19734    ac_top_srcdir=$ac_top_builddir_sub
19735    ac_abs_top_srcdir=$ac_pwd ;;
19736  [\\/]* | ?:[\\/]* )  # Absolute name.
19737    ac_srcdir=$srcdir$ac_dir_suffix;
19738    ac_top_srcdir=$srcdir
19739    ac_abs_top_srcdir=$srcdir ;;
19740  *) # Relative name.
19741    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19742    ac_top_srcdir=$ac_top_build_prefix$srcdir
19743    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19744esac
19745ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19746
19747
19748    cd "$ac_dir"
19749
19750    # Check for guested configure; otherwise get Cygnus style configure.
19751    if test -f "$ac_srcdir/configure.gnu"; then
19752      ac_sub_configure=$ac_srcdir/configure.gnu
19753    elif test -f "$ac_srcdir/configure"; then
19754      ac_sub_configure=$ac_srcdir/configure
19755    elif test -f "$ac_srcdir/configure.in"; then
19756      # This should be Cygnus configure.
19757      ac_sub_configure=$ac_aux_dir/configure
19758    else
19759      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19760$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19761      ac_sub_configure=
19762    fi
19763
19764    # The recursion is here.
19765    if test -n "$ac_sub_configure"; then
19766      # Make the cache file name correct relative to the subdirectory.
19767      case $cache_file in
19768      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19769      *) # Relative name.
19770	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19771      esac
19772
19773      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19774$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19775      # The eval makes quoting arguments work.
19776      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19777	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19778	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19779    fi
19780
19781    cd "$ac_popdir"
19782  done
19783fi
19784if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19785  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19786$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19787fi
19788
19789