1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Google C++ Mocking Framework 1.8.0.
4#
5# Report bugs to <googlemock@googlegroups.com>.
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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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: googlemock@googlegroups.com about your system,
279$0: 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='Google C++ Mocking Framework'
592PACKAGE_TARNAME='gmock'
593PACKAGE_VERSION='1.8.0'
594PACKAGE_STRING='Google C++ Mocking Framework 1.8.0'
595PACKAGE_BUGREPORT='googlemock@googlegroups.com'
596PACKAGE_URL=''
597
598ac_unique_file="./LICENSE"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639GTEST_VERSION
640GTEST_LIBS
641GTEST_LDFLAGS
642GTEST_CXXFLAGS
643GTEST_CPPFLAGS
644GTEST_CONFIG
645HAVE_PTHREADS_FALSE
646HAVE_PTHREADS_TRUE
647PTHREAD_CFLAGS
648PTHREAD_LIBS
649PTHREAD_CC
650acx_pthread_config
651HAVE_PYTHON_FALSE
652HAVE_PYTHON_TRUE
653PYTHON
654CXXCPP
655CPP
656LT_SYS_LIBRARY_PATH
657OTOOL64
658OTOOL
659LIPO
660NMEDIT
661DSYMUTIL
662MANIFEST_TOOL
663RANLIB
664ac_ct_AR
665AR
666DLLTOOL
667OBJDUMP
668LN_S
669NM
670ac_ct_DUMPBIN
671DUMPBIN
672LD
673FGREP
674EGREP
675GREP
676SED
677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
685LIBTOOL
686am__fastdepCXX_FALSE
687am__fastdepCXX_TRUE
688CXXDEPMODE
689ac_ct_CXX
690CXXFLAGS
691CXX
692am__fastdepCC_FALSE
693am__fastdepCC_TRUE
694CCDEPMODE
695am__nodep
696AMDEPBACKSLASH
697AMDEP_FALSE
698AMDEP_TRUE
699am__include
700DEPDIR
701OBJEXT
702EXEEXT
703ac_ct_CC
704CPPFLAGS
705LDFLAGS
706CFLAGS
707CC
708AM_BACKSLASH
709AM_DEFAULT_VERBOSITY
710AM_DEFAULT_V
711AM_V
712am__untar
713am__tar
714AMTAR
715am__leading_dot
716SET_MAKE
717AWK
718mkdir_p
719MKDIR_P
720INSTALL_STRIP_PROGRAM
721STRIP
722install_sh
723MAKEINFO
724AUTOHEADER
725AUTOMAKE
726AUTOCONF
727ACLOCAL
728VERSION
729PACKAGE
730CYGPATH_W
731am__isrc
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754runstatedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL
774am__quote'
775ac_subst_files=''
776ac_user_opts='
777enable_option_checking
778enable_silent_rules
779enable_dependency_tracking
780enable_shared
781enable_static
782with_pic
783enable_fast_install
784with_aix_soname
785with_gnu_ld
786with_sysroot
787enable_libtool_lock
788with_pthreads
789with_gtest
790enable_external_gtest
791'
792      ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
800CXX
801CXXFLAGS
802CCC
803LT_SYS_LIBRARY_PATH
804CPP
805CXXCPP
806GTEST_CONFIG
807GTEST_CPPFLAGS
808GTEST_CXXFLAGS
809GTEST_LDFLAGS
810GTEST_LIBS
811GTEST_VERSION'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850runstatedir='${localstatedir}/run'
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
862
863ac_prev=
864ac_dashdash=
865for ac_option
866do
867  # If the previous option needs an argument, assign it.
868  if test -n "$ac_prev"; then
869    eval $ac_prev=\$ac_option
870    ac_prev=
871    continue
872  fi
873
874  case $ac_option in
875  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876  *=)   ac_optarg= ;;
877  *)    ac_optarg=yes ;;
878  esac
879
880  # Accept the important Cygnus configure options, so we can diagnose typos.
881
882  case $ac_dashdash$ac_option in
883  --)
884    ac_dashdash=yes ;;
885
886  -bindir | --bindir | --bindi | --bind | --bin | --bi)
887    ac_prev=bindir ;;
888  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889    bindir=$ac_optarg ;;
890
891  -build | --build | --buil | --bui | --bu)
892    ac_prev=build_alias ;;
893  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894    build_alias=$ac_optarg ;;
895
896  -cache-file | --cache-file | --cache-fil | --cache-fi \
897  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898    ac_prev=cache_file ;;
899  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901    cache_file=$ac_optarg ;;
902
903  --config-cache | -C)
904    cache_file=config.cache ;;
905
906  -datadir | --datadir | --datadi | --datad)
907    ac_prev=datadir ;;
908  -datadir=* | --datadir=* | --datadi=* | --datad=*)
909    datadir=$ac_optarg ;;
910
911  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912  | --dataroo | --dataro | --datar)
913    ac_prev=datarootdir ;;
914  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916    datarootdir=$ac_optarg ;;
917
918  -disable-* | --disable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=no ;;
933
934  -docdir | --docdir | --docdi | --doc | --do)
935    ac_prev=docdir ;;
936  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937    docdir=$ac_optarg ;;
938
939  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940    ac_prev=dvidir ;;
941  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942    dvidir=$ac_optarg ;;
943
944  -enable-* | --enable-*)
945    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946    # Reject names that are not valid shell variable names.
947    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948      as_fn_error $? "invalid feature name: $ac_useropt"
949    ac_useropt_orig=$ac_useropt
950    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951    case $ac_user_opts in
952      *"
953"enable_$ac_useropt"
954"*) ;;
955      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956	 ac_unrecognized_sep=', ';;
957    esac
958    eval enable_$ac_useropt=\$ac_optarg ;;
959
960  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962  | --exec | --exe | --ex)
963    ac_prev=exec_prefix ;;
964  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966  | --exec=* | --exe=* | --ex=*)
967    exec_prefix=$ac_optarg ;;
968
969  -gas | --gas | --ga | --g)
970    # Obsolete; use --with-gas.
971    with_gas=yes ;;
972
973  -help | --help | --hel | --he | -h)
974    ac_init_help=long ;;
975  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976    ac_init_help=recursive ;;
977  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978    ac_init_help=short ;;
979
980  -host | --host | --hos | --ho)
981    ac_prev=host_alias ;;
982  -host=* | --host=* | --hos=* | --ho=*)
983    host_alias=$ac_optarg ;;
984
985  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986    ac_prev=htmldir ;;
987  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988  | --ht=*)
989    htmldir=$ac_optarg ;;
990
991  -includedir | --includedir | --includedi | --included | --include \
992  | --includ | --inclu | --incl | --inc)
993    ac_prev=includedir ;;
994  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995  | --includ=* | --inclu=* | --incl=* | --inc=*)
996    includedir=$ac_optarg ;;
997
998  -infodir | --infodir | --infodi | --infod | --info | --inf)
999    ac_prev=infodir ;;
1000  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001    infodir=$ac_optarg ;;
1002
1003  -libdir | --libdir | --libdi | --libd)
1004    ac_prev=libdir ;;
1005  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006    libdir=$ac_optarg ;;
1007
1008  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009  | --libexe | --libex | --libe)
1010    ac_prev=libexecdir ;;
1011  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012  | --libexe=* | --libex=* | --libe=*)
1013    libexecdir=$ac_optarg ;;
1014
1015  -localedir | --localedir | --localedi | --localed | --locale)
1016    ac_prev=localedir ;;
1017  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018    localedir=$ac_optarg ;;
1019
1020  -localstatedir | --localstatedir | --localstatedi | --localstated \
1021  | --localstate | --localstat | --localsta | --localst | --locals)
1022    ac_prev=localstatedir ;;
1023  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025    localstatedir=$ac_optarg ;;
1026
1027  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028    ac_prev=mandir ;;
1029  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030    mandir=$ac_optarg ;;
1031
1032  -nfp | --nfp | --nf)
1033    # Obsolete; use --without-fp.
1034    with_fp=no ;;
1035
1036  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037  | --no-cr | --no-c | -n)
1038    no_create=yes ;;
1039
1040  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042    no_recursion=yes ;;
1043
1044  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046  | --oldin | --oldi | --old | --ol | --o)
1047    ac_prev=oldincludedir ;;
1048  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051    oldincludedir=$ac_optarg ;;
1052
1053  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054    ac_prev=prefix ;;
1055  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056    prefix=$ac_optarg ;;
1057
1058  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059  | --program-pre | --program-pr | --program-p)
1060    ac_prev=program_prefix ;;
1061  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063    program_prefix=$ac_optarg ;;
1064
1065  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066  | --program-suf | --program-su | --program-s)
1067    ac_prev=program_suffix ;;
1068  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070    program_suffix=$ac_optarg ;;
1071
1072  -program-transform-name | --program-transform-name \
1073  | --program-transform-nam | --program-transform-na \
1074  | --program-transform-n | --program-transform- \
1075  | --program-transform | --program-transfor \
1076  | --program-transfo | --program-transf \
1077  | --program-trans | --program-tran \
1078  | --progr-tra | --program-tr | --program-t)
1079    ac_prev=program_transform_name ;;
1080  -program-transform-name=* | --program-transform-name=* \
1081  | --program-transform-nam=* | --program-transform-na=* \
1082  | --program-transform-n=* | --program-transform-=* \
1083  | --program-transform=* | --program-transfor=* \
1084  | --program-transfo=* | --program-transf=* \
1085  | --program-trans=* | --program-tran=* \
1086  | --progr-tra=* | --program-tr=* | --program-t=*)
1087    program_transform_name=$ac_optarg ;;
1088
1089  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090    ac_prev=pdfdir ;;
1091  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092    pdfdir=$ac_optarg ;;
1093
1094  -psdir | --psdir | --psdi | --psd | --ps)
1095    ac_prev=psdir ;;
1096  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097    psdir=$ac_optarg ;;
1098
1099  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100  | -silent | --silent | --silen | --sile | --sil)
1101    silent=yes ;;
1102
1103  -runstatedir | --runstatedir | --runstatedi | --runstated \
1104  | --runstate | --runstat | --runsta | --runst | --runs \
1105  | --run | --ru | --r)
1106    ac_prev=runstatedir ;;
1107  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1108  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1109  | --run=* | --ru=* | --r=*)
1110    runstatedir=$ac_optarg ;;
1111
1112  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113    ac_prev=sbindir ;;
1114  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115  | --sbi=* | --sb=*)
1116    sbindir=$ac_optarg ;;
1117
1118  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120  | --sharedst | --shareds | --shared | --share | --shar \
1121  | --sha | --sh)
1122    ac_prev=sharedstatedir ;;
1123  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126  | --sha=* | --sh=*)
1127    sharedstatedir=$ac_optarg ;;
1128
1129  -site | --site | --sit)
1130    ac_prev=site ;;
1131  -site=* | --site=* | --sit=*)
1132    site=$ac_optarg ;;
1133
1134  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135    ac_prev=srcdir ;;
1136  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137    srcdir=$ac_optarg ;;
1138
1139  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140  | --syscon | --sysco | --sysc | --sys | --sy)
1141    ac_prev=sysconfdir ;;
1142  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144    sysconfdir=$ac_optarg ;;
1145
1146  -target | --target | --targe | --targ | --tar | --ta | --t)
1147    ac_prev=target_alias ;;
1148  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149    target_alias=$ac_optarg ;;
1150
1151  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152    verbose=yes ;;
1153
1154  -version | --version | --versio | --versi | --vers | -V)
1155    ac_init_version=: ;;
1156
1157  -with-* | --with-*)
1158    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159    # Reject names that are not valid shell variable names.
1160    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161      as_fn_error $? "invalid package name: $ac_useropt"
1162    ac_useropt_orig=$ac_useropt
1163    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164    case $ac_user_opts in
1165      *"
1166"with_$ac_useropt"
1167"*) ;;
1168      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169	 ac_unrecognized_sep=', ';;
1170    esac
1171    eval with_$ac_useropt=\$ac_optarg ;;
1172
1173  -without-* | --without-*)
1174    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175    # Reject names that are not valid shell variable names.
1176    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177      as_fn_error $? "invalid package name: $ac_useropt"
1178    ac_useropt_orig=$ac_useropt
1179    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180    case $ac_user_opts in
1181      *"
1182"with_$ac_useropt"
1183"*) ;;
1184      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185	 ac_unrecognized_sep=', ';;
1186    esac
1187    eval with_$ac_useropt=no ;;
1188
1189  --x)
1190    # Obsolete; use --with-x.
1191    with_x=yes ;;
1192
1193  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194  | --x-incl | --x-inc | --x-in | --x-i)
1195    ac_prev=x_includes ;;
1196  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198    x_includes=$ac_optarg ;;
1199
1200  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202    ac_prev=x_libraries ;;
1203  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205    x_libraries=$ac_optarg ;;
1206
1207  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1208Try \`$0 --help' for more information"
1209    ;;
1210
1211  *=*)
1212    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213    # Reject names that are not valid shell variable names.
1214    case $ac_envvar in #(
1215      '' | [0-9]* | *[!_$as_cr_alnum]* )
1216      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1217    esac
1218    eval $ac_envvar=\$ac_optarg
1219    export $ac_envvar ;;
1220
1221  *)
1222    # FIXME: should be removed in autoconf 3.0.
1223    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227    ;;
1228
1229  esac
1230done
1231
1232if test -n "$ac_prev"; then
1233  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234  as_fn_error $? "missing argument to $ac_option"
1235fi
1236
1237if test -n "$ac_unrecognized_opts"; then
1238  case $enable_option_checking in
1239    no) ;;
1240    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1241    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242  esac
1243fi
1244
1245# Check all directory arguments for consistency.
1246for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247		datadir sysconfdir sharedstatedir localstatedir includedir \
1248		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249		libdir localedir mandir runstatedir
1250do
1251  eval ac_val=\$$ac_var
1252  # Remove trailing slashes.
1253  case $ac_val in
1254    */ )
1255      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256      eval $ac_var=\$ac_val;;
1257  esac
1258  # Be sure to have absolute directory names.
1259  case $ac_val in
1260    [\\/$]* | ?:[\\/]* )  continue;;
1261    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262  esac
1263  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264done
1265
1266# There might be people who depend on the old broken behavior: `$host'
1267# used to hold the argument of --host etc.
1268# FIXME: To remove some day.
1269build=$build_alias
1270host=$host_alias
1271target=$target_alias
1272
1273# FIXME: To remove some day.
1274if test "x$host_alias" != x; then
1275  if test "x$build_alias" = x; then
1276    cross_compiling=maybe
1277  elif test "x$build_alias" != "x$host_alias"; then
1278    cross_compiling=yes
1279  fi
1280fi
1281
1282ac_tool_prefix=
1283test -n "$host_alias" && ac_tool_prefix=$host_alias-
1284
1285test "$silent" = yes && exec 6>/dev/null
1286
1287
1288ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289ac_ls_di=`ls -di .` &&
1290ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291  as_fn_error $? "working directory cannot be determined"
1292test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293  as_fn_error $? "pwd does not report name of working directory"
1294
1295
1296# Find the source files, if location was not specified.
1297if test -z "$srcdir"; then
1298  ac_srcdir_defaulted=yes
1299  # Try the directory containing this script, then the parent directory.
1300  ac_confdir=`$as_dirname -- "$as_myself" ||
1301$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302	 X"$as_myself" : 'X\(//\)[^/]' \| \
1303	 X"$as_myself" : 'X\(//\)$' \| \
1304	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305$as_echo X"$as_myself" |
1306    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\/\)[^/].*/{
1311	    s//\1/
1312	    q
1313	  }
1314	  /^X\(\/\/\)$/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\).*/{
1319	    s//\1/
1320	    q
1321	  }
1322	  s/.*/./; q'`
1323  srcdir=$ac_confdir
1324  if test ! -r "$srcdir/$ac_unique_file"; then
1325    srcdir=..
1326  fi
1327else
1328  ac_srcdir_defaulted=no
1329fi
1330if test ! -r "$srcdir/$ac_unique_file"; then
1331  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1333fi
1334ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335ac_abs_confdir=`(
1336	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1337	pwd)`
1338# When building in place, set srcdir=.
1339if test "$ac_abs_confdir" = "$ac_pwd"; then
1340  srcdir=.
1341fi
1342# Remove unnecessary trailing slashes from srcdir.
1343# Double slashes in file names in object file debugging info
1344# mess up M-x gdb in Emacs.
1345case $srcdir in
1346*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347esac
1348for ac_var in $ac_precious_vars; do
1349  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350  eval ac_env_${ac_var}_value=\$${ac_var}
1351  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353done
1354
1355#
1356# Report the --help message.
1357#
1358if test "$ac_init_help" = "long"; then
1359  # Omit some internal or obsolete options to make the list less imposing.
1360  # This message is too long to be a string in the A/UX 3.1 sh.
1361  cat <<_ACEOF
1362\`configure' configures Google C++ Mocking Framework 1.8.0 to adapt to many kinds of systems.
1363
1364Usage: $0 [OPTION]... [VAR=VALUE]...
1365
1366To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367VAR=VALUE.  See below for descriptions of some of the useful variables.
1368
1369Defaults for the options are specified in brackets.
1370
1371Configuration:
1372  -h, --help              display this help and exit
1373      --help=short        display options specific to this package
1374      --help=recursive    display the short help of all the included packages
1375  -V, --version           display version information and exit
1376  -q, --quiet, --silent   do not print \`checking ...' messages
1377      --cache-file=FILE   cache test results in FILE [disabled]
1378  -C, --config-cache      alias for \`--cache-file=config.cache'
1379  -n, --no-create         do not create output files
1380      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1381
1382Installation directories:
1383  --prefix=PREFIX         install architecture-independent files in PREFIX
1384                          [$ac_default_prefix]
1385  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1386                          [PREFIX]
1387
1388By default, \`make install' will install all the files in
1389\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1390an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391for instance \`--prefix=\$HOME'.
1392
1393For better control, use the options below.
1394
1395Fine tuning of the installation directories:
1396  --bindir=DIR            user executables [EPREFIX/bin]
1397  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1398  --libexecdir=DIR        program executables [EPREFIX/libexec]
1399  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1400  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1401  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1402  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1403  --libdir=DIR            object code libraries [EPREFIX/lib]
1404  --includedir=DIR        C header files [PREFIX/include]
1405  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1406  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1407  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1408  --infodir=DIR           info documentation [DATAROOTDIR/info]
1409  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1410  --mandir=DIR            man documentation [DATAROOTDIR/man]
1411  --docdir=DIR            documentation root [DATAROOTDIR/doc/gmock]
1412  --htmldir=DIR           html documentation [DOCDIR]
1413  --dvidir=DIR            dvi documentation [DOCDIR]
1414  --pdfdir=DIR            pdf documentation [DOCDIR]
1415  --psdir=DIR             ps documentation [DOCDIR]
1416_ACEOF
1417
1418  cat <<\_ACEOF
1419
1420Program names:
1421  --program-prefix=PREFIX            prepend PREFIX to installed program names
1422  --program-suffix=SUFFIX            append SUFFIX to installed program names
1423  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1424
1425System types:
1426  --build=BUILD     configure for building on BUILD [guessed]
1427  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1428_ACEOF
1429fi
1430
1431if test -n "$ac_init_help"; then
1432  case $ac_init_help in
1433     short | recursive ) echo "Configuration of Google C++ Mocking Framework 1.8.0:";;
1434   esac
1435  cat <<\_ACEOF
1436
1437Optional Features:
1438  --disable-option-checking  ignore unrecognized --enable/--with options
1439  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1440  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1441  --enable-silent-rules   less verbose build output (undo: "make V=1")
1442  --disable-silent-rules  verbose build output (undo: "make V=0")
1443  --enable-dependency-tracking
1444                          do not reject slow dependency extractors
1445  --disable-dependency-tracking
1446                          speeds up one-time build
1447  --enable-shared[=PKGS]  build shared libraries [default=yes]
1448  --enable-static[=PKGS]  build static libraries [default=yes]
1449  --enable-fast-install[=PKGS]
1450                          optimize for fast installation [default=yes]
1451  --disable-libtool-lock  avoid locking (might break parallel builds)
1452  --disable-external-gtest
1453                          Disables any detection or use of a system installed
1454                          or user provided gtest. Any option to '--with-gtest'
1455                          is ignored. (Default is enabled.)
1456
1457
1458Optional Packages:
1459  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1462                          both]
1463  --with-aix-soname=aix|svr4|both
1464                          shared library versioning (aka "SONAME") variant to
1465                          provide on AIX, [default=aix].
1466  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1467  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1468                          compiler's sysroot if not specified).
1469  --with-pthreads         use pthreads (default is yes)
1470  --with-gtest            Specifies how to find the gtest package. If no
1471                          arguments are given, the default behavior, a system
1472                          installed gtest will be used if present, and an
1473                          internal version built otherwise. If a path is
1474                          provided, the gtest built or installed at that
1475                          prefix will be used.
1476
1477Some influential environment variables:
1478  CC          C compiler command
1479  CFLAGS      C compiler flags
1480  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1481              nonstandard directory <lib dir>
1482  LIBS        libraries to pass to the linker, e.g. -l<library>
1483  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484              you have headers in a nonstandard directory <include dir>
1485  CXX         C++ compiler command
1486  CXXFLAGS    C++ compiler flags
1487  LT_SYS_LIBRARY_PATH
1488              User-defined run-time library search path.
1489  CPP         C preprocessor
1490  CXXCPP      C++ preprocessor
1491  GTEST_CONFIG
1492              The exact path of Google Test's 'gtest-config' script.
1493  GTEST_CPPFLAGS
1494              C-like preprocessor flags for Google Test.
1495  GTEST_CXXFLAGS
1496              C++ compile flags for Google Test.
1497  GTEST_LDFLAGS
1498              Linker path and option flags for Google Test.
1499  GTEST_LIBS  Library linking flags for Google Test.
1500  GTEST_VERSION
1501              The version of Google Test available.
1502
1503Use these variables to override the choices made by `configure' or to help
1504it to find libraries and programs with nonstandard names/locations.
1505
1506Report bugs to <googlemock@googlegroups.com>.
1507_ACEOF
1508ac_status=$?
1509fi
1510
1511if test "$ac_init_help" = "recursive"; then
1512  # If there are subdirs, report their specific --help.
1513  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514    test -d "$ac_dir" ||
1515      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516      continue
1517    ac_builddir=.
1518
1519case "$ac_dir" in
1520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521*)
1522  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523  # A ".." for each directory in $ac_dir_suffix.
1524  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525  case $ac_top_builddir_sub in
1526  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528  esac ;;
1529esac
1530ac_abs_top_builddir=$ac_pwd
1531ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532# for backward compatibility:
1533ac_top_builddir=$ac_top_build_prefix
1534
1535case $srcdir in
1536  .)  # We are building in place.
1537    ac_srcdir=.
1538    ac_top_srcdir=$ac_top_builddir_sub
1539    ac_abs_top_srcdir=$ac_pwd ;;
1540  [\\/]* | ?:[\\/]* )  # Absolute name.
1541    ac_srcdir=$srcdir$ac_dir_suffix;
1542    ac_top_srcdir=$srcdir
1543    ac_abs_top_srcdir=$srcdir ;;
1544  *) # Relative name.
1545    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546    ac_top_srcdir=$ac_top_build_prefix$srcdir
1547    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548esac
1549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551    cd "$ac_dir" || { ac_status=$?; continue; }
1552    # Check for guested configure.
1553    if test -f "$ac_srcdir/configure.gnu"; then
1554      echo &&
1555      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556    elif test -f "$ac_srcdir/configure"; then
1557      echo &&
1558      $SHELL "$ac_srcdir/configure" --help=recursive
1559    else
1560      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561    fi || ac_status=$?
1562    cd "$ac_pwd" || { ac_status=$?; break; }
1563  done
1564fi
1565
1566test -n "$ac_init_help" && exit $ac_status
1567if $ac_init_version; then
1568  cat <<\_ACEOF
1569Google C++ Mocking Framework configure 1.8.0
1570generated by GNU Autoconf 2.69
1571
1572Copyright (C) 2012 Free Software Foundation, Inc.
1573This configure script is free software; the Free Software Foundation
1574gives unlimited permission to copy, distribute and modify it.
1575_ACEOF
1576  exit
1577fi
1578
1579## ------------------------ ##
1580## Autoconf initialization. ##
1581## ------------------------ ##
1582
1583# ac_fn_c_try_compile LINENO
1584# --------------------------
1585# Try to compile conftest.$ac_ext, and return whether this succeeded.
1586ac_fn_c_try_compile ()
1587{
1588  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589  rm -f conftest.$ac_objext
1590  if { { ac_try="$ac_compile"
1591case "(($ac_try" in
1592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593  *) ac_try_echo=$ac_try;;
1594esac
1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596$as_echo "$ac_try_echo"; } >&5
1597  (eval "$ac_compile") 2>conftest.err
1598  ac_status=$?
1599  if test -s conftest.err; then
1600    grep -v '^ *+' conftest.err >conftest.er1
1601    cat conftest.er1 >&5
1602    mv -f conftest.er1 conftest.err
1603  fi
1604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605  test $ac_status = 0; } && {
1606	 test -z "$ac_c_werror_flag" ||
1607	 test ! -s conftest.err
1608       } && test -s conftest.$ac_objext; then :
1609  ac_retval=0
1610else
1611  $as_echo "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614	ac_retval=1
1615fi
1616  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617  as_fn_set_status $ac_retval
1618
1619} # ac_fn_c_try_compile
1620
1621# ac_fn_cxx_try_compile LINENO
1622# ----------------------------
1623# Try to compile conftest.$ac_ext, and return whether this succeeded.
1624ac_fn_cxx_try_compile ()
1625{
1626  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627  rm -f conftest.$ac_objext
1628  if { { ac_try="$ac_compile"
1629case "(($ac_try" in
1630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631  *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635  (eval "$ac_compile") 2>conftest.err
1636  ac_status=$?
1637  if test -s conftest.err; then
1638    grep -v '^ *+' conftest.err >conftest.er1
1639    cat conftest.er1 >&5
1640    mv -f conftest.er1 conftest.err
1641  fi
1642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643  test $ac_status = 0; } && {
1644	 test -z "$ac_cxx_werror_flag" ||
1645	 test ! -s conftest.err
1646       } && test -s conftest.$ac_objext; then :
1647  ac_retval=0
1648else
1649  $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652	ac_retval=1
1653fi
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655  as_fn_set_status $ac_retval
1656
1657} # ac_fn_cxx_try_compile
1658
1659# ac_fn_c_try_link LINENO
1660# -----------------------
1661# Try to link conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_link ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  rm -f conftest.$ac_objext conftest$ac_exeext
1666  if { { ac_try="$ac_link"
1667case "(($ac_try" in
1668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669  *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673  (eval "$ac_link") 2>conftest.err
1674  ac_status=$?
1675  if test -s conftest.err; then
1676    grep -v '^ *+' conftest.err >conftest.er1
1677    cat conftest.er1 >&5
1678    mv -f conftest.er1 conftest.err
1679  fi
1680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681  test $ac_status = 0; } && {
1682	 test -z "$ac_c_werror_flag" ||
1683	 test ! -s conftest.err
1684       } && test -s conftest$ac_exeext && {
1685	 test "$cross_compiling" = yes ||
1686	 test -x conftest$ac_exeext
1687       }; then :
1688  ac_retval=0
1689else
1690  $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693	ac_retval=1
1694fi
1695  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697  # interfere with the next link command; also delete a directory that is
1698  # left behind by Apple's compiler.  We do this before executing the actions.
1699  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701  as_fn_set_status $ac_retval
1702
1703} # ac_fn_c_try_link
1704
1705# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706# -------------------------------------------------------
1707# Tests whether HEADER exists and can be compiled using the include files in
1708# INCLUDES, setting the cache variable VAR accordingly.
1709ac_fn_c_check_header_compile ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713$as_echo_n "checking for $2... " >&6; }
1714if eval \${$3+:} false; then :
1715  $as_echo_n "(cached) " >&6
1716else
1717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h.  */
1719$4
1720#include <$2>
1721_ACEOF
1722if ac_fn_c_try_compile "$LINENO"; then :
1723  eval "$3=yes"
1724else
1725  eval "$3=no"
1726fi
1727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728fi
1729eval ac_res=\$$3
1730	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
1732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734} # ac_fn_c_check_header_compile
1735
1736# ac_fn_c_try_cpp LINENO
1737# ----------------------
1738# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_c_try_cpp ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  if { { ac_try="$ac_cpp conftest.$ac_ext"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750  ac_status=$?
1751  if test -s conftest.err; then
1752    grep -v '^ *+' conftest.err >conftest.er1
1753    cat conftest.er1 >&5
1754    mv -f conftest.er1 conftest.err
1755  fi
1756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } > conftest.i && {
1758	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759	 test ! -s conftest.err
1760       }; then :
1761  ac_retval=0
1762else
1763  $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766    ac_retval=1
1767fi
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769  as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_cpp
1772
1773# ac_fn_c_try_run LINENO
1774# ----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776# that executables *can* be run.
1777ac_fn_c_try_run ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783  *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787  (eval "$ac_link") 2>&5
1788  ac_status=$?
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791  { { case "(($ac_try" in
1792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793  *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797  (eval "$ac_try") 2>&5
1798  ac_status=$?
1799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800  test $ac_status = 0; }; }; then :
1801  ac_retval=0
1802else
1803  $as_echo "$as_me: program exited with status $ac_status" >&5
1804       $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807       ac_retval=$ac_status
1808fi
1809  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811  as_fn_set_status $ac_retval
1812
1813} # ac_fn_c_try_run
1814
1815# ac_fn_c_check_func LINENO FUNC VAR
1816# ----------------------------------
1817# Tests whether FUNC exists, setting the cache variable VAR accordingly
1818ac_fn_c_check_func ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822$as_echo_n "checking for $2... " >&6; }
1823if eval \${$3+:} false; then :
1824  $as_echo_n "(cached) " >&6
1825else
1826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h.  */
1828/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1830#define $2 innocuous_$2
1831
1832/* System header to define __stub macros and hopefully few prototypes,
1833    which can conflict with char $2 (); below.
1834    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835    <limits.h> exists even on freestanding compilers.  */
1836
1837#ifdef __STDC__
1838# include <limits.h>
1839#else
1840# include <assert.h>
1841#endif
1842
1843#undef $2
1844
1845/* Override any GCC internal prototype to avoid an error.
1846   Use char because int might match the return type of a GCC
1847   builtin and then its argument prototype would still apply.  */
1848#ifdef __cplusplus
1849extern "C"
1850#endif
1851char $2 ();
1852/* The GNU C library defines this for functions which it implements
1853    to always fail with ENOSYS.  Some functions are actually named
1854    something starting with __ and the normal name is an alias.  */
1855#if defined __stub_$2 || defined __stub___$2
1856choke me
1857#endif
1858
1859int
1860main ()
1861{
1862return $2 ();
1863  ;
1864  return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_link "$LINENO"; then :
1868  eval "$3=yes"
1869else
1870  eval "$3=no"
1871fi
1872rm -f core conftest.err conftest.$ac_objext \
1873    conftest$ac_exeext conftest.$ac_ext
1874fi
1875eval ac_res=\$$3
1876	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880} # ac_fn_c_check_func
1881
1882# ac_fn_cxx_try_cpp LINENO
1883# ------------------------
1884# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1885ac_fn_cxx_try_cpp ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  if { { ac_try="$ac_cpp conftest.$ac_ext"
1889case "(($ac_try" in
1890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891  *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1896  ac_status=$?
1897  if test -s conftest.err; then
1898    grep -v '^ *+' conftest.err >conftest.er1
1899    cat conftest.er1 >&5
1900    mv -f conftest.er1 conftest.err
1901  fi
1902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903  test $ac_status = 0; } > conftest.i && {
1904	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1905	 test ! -s conftest.err
1906       }; then :
1907  ac_retval=0
1908else
1909  $as_echo "$as_me: failed program was:" >&5
1910sed 's/^/| /' conftest.$ac_ext >&5
1911
1912    ac_retval=1
1913fi
1914  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915  as_fn_set_status $ac_retval
1916
1917} # ac_fn_cxx_try_cpp
1918
1919# ac_fn_cxx_try_link LINENO
1920# -------------------------
1921# Try to link conftest.$ac_ext, and return whether this succeeded.
1922ac_fn_cxx_try_link ()
1923{
1924  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925  rm -f conftest.$ac_objext conftest$ac_exeext
1926  if { { ac_try="$ac_link"
1927case "(($ac_try" in
1928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929  *) ac_try_echo=$ac_try;;
1930esac
1931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932$as_echo "$ac_try_echo"; } >&5
1933  (eval "$ac_link") 2>conftest.err
1934  ac_status=$?
1935  if test -s conftest.err; then
1936    grep -v '^ *+' conftest.err >conftest.er1
1937    cat conftest.er1 >&5
1938    mv -f conftest.er1 conftest.err
1939  fi
1940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941  test $ac_status = 0; } && {
1942	 test -z "$ac_cxx_werror_flag" ||
1943	 test ! -s conftest.err
1944       } && test -s conftest$ac_exeext && {
1945	 test "$cross_compiling" = yes ||
1946	 test -x conftest$ac_exeext
1947       }; then :
1948  ac_retval=0
1949else
1950  $as_echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
1953	ac_retval=1
1954fi
1955  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1956  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1957  # interfere with the next link command; also delete a directory that is
1958  # left behind by Apple's compiler.  We do this before executing the actions.
1959  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961  as_fn_set_status $ac_retval
1962
1963} # ac_fn_cxx_try_link
1964cat >config.log <<_ACEOF
1965This file contains any messages produced by compilers while
1966running configure, to aid debugging if configure makes a mistake.
1967
1968It was created by Google C++ Mocking Framework $as_me 1.8.0, which was
1969generated by GNU Autoconf 2.69.  Invocation command line was
1970
1971  $ $0 $@
1972
1973_ACEOF
1974exec 5>>config.log
1975{
1976cat <<_ASUNAME
1977## --------- ##
1978## Platform. ##
1979## --------- ##
1980
1981hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1982uname -m = `(uname -m) 2>/dev/null || echo unknown`
1983uname -r = `(uname -r) 2>/dev/null || echo unknown`
1984uname -s = `(uname -s) 2>/dev/null || echo unknown`
1985uname -v = `(uname -v) 2>/dev/null || echo unknown`
1986
1987/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1988/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1989
1990/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1991/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1992/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1993/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1994/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1995/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1996/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1997
1998_ASUNAME
1999
2000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003  IFS=$as_save_IFS
2004  test -z "$as_dir" && as_dir=.
2005    $as_echo "PATH: $as_dir"
2006  done
2007IFS=$as_save_IFS
2008
2009} >&5
2010
2011cat >&5 <<_ACEOF
2012
2013
2014## ----------- ##
2015## Core tests. ##
2016## ----------- ##
2017
2018_ACEOF
2019
2020
2021# Keep a trace of the command line.
2022# Strip out --no-create and --no-recursion so they do not pile up.
2023# Strip out --silent because we don't want to record it for future runs.
2024# Also quote any args containing shell meta-characters.
2025# Make two passes to allow for proper duplicate-argument suppression.
2026ac_configure_args=
2027ac_configure_args0=
2028ac_configure_args1=
2029ac_must_keep_next=false
2030for ac_pass in 1 2
2031do
2032  for ac_arg
2033  do
2034    case $ac_arg in
2035    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2036    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2037    | -silent | --silent | --silen | --sile | --sil)
2038      continue ;;
2039    *\'*)
2040      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2041    esac
2042    case $ac_pass in
2043    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2044    2)
2045      as_fn_append ac_configure_args1 " '$ac_arg'"
2046      if test $ac_must_keep_next = true; then
2047	ac_must_keep_next=false # Got value, back to normal.
2048      else
2049	case $ac_arg in
2050	  *=* | --config-cache | -C | -disable-* | --disable-* \
2051	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2052	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2053	  | -with-* | --with-* | -without-* | --without-* | --x)
2054	    case "$ac_configure_args0 " in
2055	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2056	    esac
2057	    ;;
2058	  -* ) ac_must_keep_next=true ;;
2059	esac
2060      fi
2061      as_fn_append ac_configure_args " '$ac_arg'"
2062      ;;
2063    esac
2064  done
2065done
2066{ ac_configure_args0=; unset ac_configure_args0;}
2067{ ac_configure_args1=; unset ac_configure_args1;}
2068
2069# When interrupted or exit'd, cleanup temporary files, and complete
2070# config.log.  We remove comments because anyway the quotes in there
2071# would cause problems or look ugly.
2072# WARNING: Use '\'' to represent an apostrophe within the trap.
2073# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2074trap 'exit_status=$?
2075  # Save into config.log some information that might help in debugging.
2076  {
2077    echo
2078
2079    $as_echo "## ---------------- ##
2080## Cache variables. ##
2081## ---------------- ##"
2082    echo
2083    # The following way of writing the cache mishandles newlines in values,
2084(
2085  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2086    eval ac_val=\$$ac_var
2087    case $ac_val in #(
2088    *${as_nl}*)
2089      case $ac_var in #(
2090      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2092      esac
2093      case $ac_var in #(
2094      _ | IFS | as_nl) ;; #(
2095      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096      *) { eval $ac_var=; unset $ac_var;} ;;
2097      esac ;;
2098    esac
2099  done
2100  (set) 2>&1 |
2101    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2102    *${as_nl}ac_space=\ *)
2103      sed -n \
2104	"s/'\''/'\''\\\\'\'''\''/g;
2105	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2106      ;; #(
2107    *)
2108      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2109      ;;
2110    esac |
2111    sort
2112)
2113    echo
2114
2115    $as_echo "## ----------------- ##
2116## Output variables. ##
2117## ----------------- ##"
2118    echo
2119    for ac_var in $ac_subst_vars
2120    do
2121      eval ac_val=\$$ac_var
2122      case $ac_val in
2123      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124      esac
2125      $as_echo "$ac_var='\''$ac_val'\''"
2126    done | sort
2127    echo
2128
2129    if test -n "$ac_subst_files"; then
2130      $as_echo "## ------------------- ##
2131## File substitutions. ##
2132## ------------------- ##"
2133      echo
2134      for ac_var in $ac_subst_files
2135      do
2136	eval ac_val=\$$ac_var
2137	case $ac_val in
2138	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139	esac
2140	$as_echo "$ac_var='\''$ac_val'\''"
2141      done | sort
2142      echo
2143    fi
2144
2145    if test -s confdefs.h; then
2146      $as_echo "## ----------- ##
2147## confdefs.h. ##
2148## ----------- ##"
2149      echo
2150      cat confdefs.h
2151      echo
2152    fi
2153    test "$ac_signal" != 0 &&
2154      $as_echo "$as_me: caught signal $ac_signal"
2155    $as_echo "$as_me: exit $exit_status"
2156  } >&5
2157  rm -f core *.core core.conftest.* &&
2158    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2159    exit $exit_status
2160' 0
2161for ac_signal in 1 2 13 15; do
2162  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2163done
2164ac_signal=0
2165
2166# confdefs.h avoids OS command line length limits that DEFS can exceed.
2167rm -f -r conftest* confdefs.h
2168
2169$as_echo "/* confdefs.h */" > confdefs.h
2170
2171# Predefined preprocessor variables.
2172
2173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_NAME "$PACKAGE_NAME"
2175_ACEOF
2176
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2179_ACEOF
2180
2181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_VERSION "$PACKAGE_VERSION"
2183_ACEOF
2184
2185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_STRING "$PACKAGE_STRING"
2187_ACEOF
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2191_ACEOF
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_URL "$PACKAGE_URL"
2195_ACEOF
2196
2197
2198# Let the site file select an alternate cache file if it wants to.
2199# Prefer an explicitly selected file to automatically selected ones.
2200ac_site_file1=NONE
2201ac_site_file2=NONE
2202if test -n "$CONFIG_SITE"; then
2203  # We do not want a PATH search for config.site.
2204  case $CONFIG_SITE in #((
2205    -*)  ac_site_file1=./$CONFIG_SITE;;
2206    */*) ac_site_file1=$CONFIG_SITE;;
2207    *)   ac_site_file1=./$CONFIG_SITE;;
2208  esac
2209elif test "x$prefix" != xNONE; then
2210  ac_site_file1=$prefix/share/config.site
2211  ac_site_file2=$prefix/etc/config.site
2212else
2213  ac_site_file1=$ac_default_prefix/share/config.site
2214  ac_site_file2=$ac_default_prefix/etc/config.site
2215fi
2216for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2217do
2218  test "x$ac_site_file" = xNONE && continue
2219  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2220    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222    sed 's/^/| /' "$ac_site_file" >&5
2223    . "$ac_site_file" \
2224      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226as_fn_error $? "failed to load site script $ac_site_file
2227See \`config.log' for more details" "$LINENO" 5; }
2228  fi
2229done
2230
2231if test -r "$cache_file"; then
2232  # Some versions of bash will fail to source /dev/null (special files
2233  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2234  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2235    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236$as_echo "$as_me: loading cache $cache_file" >&6;}
2237    case $cache_file in
2238      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2239      *)                      . "./$cache_file";;
2240    esac
2241  fi
2242else
2243  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244$as_echo "$as_me: creating cache $cache_file" >&6;}
2245  >$cache_file
2246fi
2247
2248# Check that the precious variables saved in the cache have kept the same
2249# value.
2250ac_cache_corrupted=false
2251for ac_var in $ac_precious_vars; do
2252  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2253  eval ac_new_set=\$ac_env_${ac_var}_set
2254  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2255  eval ac_new_val=\$ac_env_${ac_var}_value
2256  case $ac_old_set,$ac_new_set in
2257    set,)
2258      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2259$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2260      ac_cache_corrupted=: ;;
2261    ,set)
2262      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2263$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2264      ac_cache_corrupted=: ;;
2265    ,);;
2266    *)
2267      if test "x$ac_old_val" != "x$ac_new_val"; then
2268	# differences in whitespace do not lead to failure.
2269	ac_old_val_w=`echo x $ac_old_val`
2270	ac_new_val_w=`echo x $ac_new_val`
2271	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2272	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2273$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2274	  ac_cache_corrupted=:
2275	else
2276	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2277$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2278	  eval $ac_var=\$ac_old_val
2279	fi
2280	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2281$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2282	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2283$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2284      fi;;
2285  esac
2286  # Pass precious variables to config.status.
2287  if test "$ac_new_set" = set; then
2288    case $ac_new_val in
2289    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2290    *) ac_arg=$ac_var=$ac_new_val ;;
2291    esac
2292    case " $ac_configure_args " in
2293      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2294      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2295    esac
2296  fi
2297done
2298if $ac_cache_corrupted; then
2299  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2302$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2303  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2304fi
2305## -------------------- ##
2306## Main body of script. ##
2307## -------------------- ##
2308
2309ac_ext=c
2310ac_cpp='$CPP $CPPFLAGS'
2311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314
2315
2316
2317# Provide various options to initialize the Autoconf and configure processes.
2318
2319
2320ac_aux_dir=
2321for ac_dir in build-aux "$srcdir"/build-aux; do
2322  if test -f "$ac_dir/install-sh"; then
2323    ac_aux_dir=$ac_dir
2324    ac_install_sh="$ac_aux_dir/install-sh -c"
2325    break
2326  elif test -f "$ac_dir/install.sh"; then
2327    ac_aux_dir=$ac_dir
2328    ac_install_sh="$ac_aux_dir/install.sh -c"
2329    break
2330  elif test -f "$ac_dir/shtool"; then
2331    ac_aux_dir=$ac_dir
2332    ac_install_sh="$ac_aux_dir/shtool install -c"
2333    break
2334  fi
2335done
2336if test -z "$ac_aux_dir"; then
2337  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2338fi
2339
2340# These three variables are undocumented and unsupported,
2341# and are intended to be withdrawn in a future Autoconf release.
2342# They can cause serious problems if a builder's source tree is in a directory
2343# whose full name contains unusual characters.
2344ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2345ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2346ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2347
2348
2349ac_config_headers="$ac_config_headers build-aux/config.h"
2350
2351ac_config_files="$ac_config_files Makefile"
2352
2353ac_config_files="$ac_config_files scripts/gmock-config"
2354
2355
2356# Initialize Automake with various options. We require at least v1.9, prevent
2357# pedantic complaints about package files, and enable various distribution
2358# targets.
2359am__api_version='1.16'
2360
2361# Find a good install program.  We prefer a C program (faster),
2362# so one script is as good as another.  But avoid the broken or
2363# incompatible versions:
2364# SysV /etc/install, /usr/sbin/install
2365# SunOS /usr/etc/install
2366# IRIX /sbin/install
2367# AIX /bin/install
2368# AmigaOS /C/install, which installs bootblocks on floppy discs
2369# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2370# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2371# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2372# OS/2's system install, which has a completely different semantic
2373# ./install, which can be erroneously created by make from ./install.sh.
2374# Reject install programs that cannot install multiple files.
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2376$as_echo_n "checking for a BSD-compatible install... " >&6; }
2377if test -z "$INSTALL"; then
2378if ${ac_cv_path_install+:} false; then :
2379  $as_echo_n "(cached) " >&6
2380else
2381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH
2383do
2384  IFS=$as_save_IFS
2385  test -z "$as_dir" && as_dir=.
2386    # Account for people who put trailing slashes in PATH elements.
2387case $as_dir/ in #((
2388  ./ | .// | /[cC]/* | \
2389  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2390  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2391  /usr/ucb/* ) ;;
2392  *)
2393    # OSF1 and SCO ODT 3.0 have their own names for install.
2394    # Don't use installbsd from OSF since it installs stuff as root
2395    # by default.
2396    for ac_prog in ginstall scoinst install; do
2397      for ac_exec_ext in '' $ac_executable_extensions; do
2398	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2399	  if test $ac_prog = install &&
2400	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401	    # AIX install.  It has an incompatible calling convention.
2402	    :
2403	  elif test $ac_prog = install &&
2404	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2405	    # program-specific install script used by HP pwplus--don't use.
2406	    :
2407	  else
2408	    rm -rf conftest.one conftest.two conftest.dir
2409	    echo one > conftest.one
2410	    echo two > conftest.two
2411	    mkdir conftest.dir
2412	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2413	      test -s conftest.one && test -s conftest.two &&
2414	      test -s conftest.dir/conftest.one &&
2415	      test -s conftest.dir/conftest.two
2416	    then
2417	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2418	      break 3
2419	    fi
2420	  fi
2421	fi
2422      done
2423    done
2424    ;;
2425esac
2426
2427  done
2428IFS=$as_save_IFS
2429
2430rm -rf conftest.one conftest.two conftest.dir
2431
2432fi
2433  if test "${ac_cv_path_install+set}" = set; then
2434    INSTALL=$ac_cv_path_install
2435  else
2436    # As a last resort, use the slow shell script.  Don't cache a
2437    # value for INSTALL within a source directory, because that will
2438    # break other packages using the cache if that directory is
2439    # removed, or if the value is a relative name.
2440    INSTALL=$ac_install_sh
2441  fi
2442fi
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2444$as_echo "$INSTALL" >&6; }
2445
2446# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2447# It thinks the first close brace ends the variable substitution.
2448test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2449
2450test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2451
2452test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2453
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2455$as_echo_n "checking whether build environment is sane... " >&6; }
2456# Reject unsafe characters in $srcdir or the absolute working directory
2457# name.  Accept space and tab only in the latter.
2458am_lf='
2459'
2460case `pwd` in
2461  *[\\\"\#\$\&\'\`$am_lf]*)
2462    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2463esac
2464case $srcdir in
2465  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2466    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2467esac
2468
2469# Do 'set' in a subshell so we don't clobber the current shell's
2470# arguments.  Must try -L first in case configure is actually a
2471# symlink; some systems play weird games with the mod time of symlinks
2472# (eg FreeBSD returns the mod time of the symlink's containing
2473# directory).
2474if (
2475   am_has_slept=no
2476   for am_try in 1 2; do
2477     echo "timestamp, slept: $am_has_slept" > conftest.file
2478     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2479     if test "$*" = "X"; then
2480	# -L didn't work.
2481	set X `ls -t "$srcdir/configure" conftest.file`
2482     fi
2483     if test "$*" != "X $srcdir/configure conftest.file" \
2484	&& test "$*" != "X conftest.file $srcdir/configure"; then
2485
2486	# If neither matched, then we have a broken ls.  This can happen
2487	# if, for instance, CONFIG_SHELL is bash and it inherits a
2488	# broken ls alias from the environment.  This has actually
2489	# happened.  Such a system could not be considered "sane".
2490	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2491  alias in your environment" "$LINENO" 5
2492     fi
2493     if test "$2" = conftest.file || test $am_try -eq 2; then
2494       break
2495     fi
2496     # Just in case.
2497     sleep 1
2498     am_has_slept=yes
2499   done
2500   test "$2" = conftest.file
2501   )
2502then
2503   # Ok.
2504   :
2505else
2506   as_fn_error $? "newly created file is older than distributed files!
2507Check your system clock" "$LINENO" 5
2508fi
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2510$as_echo "yes" >&6; }
2511# If we didn't sleep, we still need to ensure time stamps of config.status and
2512# generated files are strictly newer.
2513am_sleep_pid=
2514if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2515  ( sleep 1 ) &
2516  am_sleep_pid=$!
2517fi
2518
2519rm -f conftest.file
2520
2521test "$program_prefix" != NONE &&
2522  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2523# Use a double $ so make ignores it.
2524test "$program_suffix" != NONE &&
2525  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2526# Double any \ or $.
2527# By default was `s,x,x', remove it if useless.
2528ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2529program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2530
2531# Expand $ac_aux_dir to an absolute path.
2532am_aux_dir=`cd "$ac_aux_dir" && pwd`
2533
2534if test x"${MISSING+set}" != xset; then
2535  MISSING="\${SHELL} '$am_aux_dir/missing'"
2536fi
2537# Use eval to expand $SHELL
2538if eval "$MISSING --is-lightweight"; then
2539  am_missing_run="$MISSING "
2540else
2541  am_missing_run=
2542  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2543$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2544fi
2545
2546if test x"${install_sh+set}" != xset; then
2547  case $am_aux_dir in
2548  *\ * | *\	*)
2549    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2550  *)
2551    install_sh="\${SHELL} $am_aux_dir/install-sh"
2552  esac
2553fi
2554
2555# Installed binaries are usually stripped using 'strip' when the user
2556# run "make install-strip".  However 'strip' might not be the right
2557# tool to use in cross-compilation environments, therefore Automake
2558# will honor the 'STRIP' environment variable to overrule this program.
2559if test "$cross_compiling" != no; then
2560  if test -n "$ac_tool_prefix"; then
2561  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2562set dummy ${ac_tool_prefix}strip; ac_word=$2
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564$as_echo_n "checking for $ac_word... " >&6; }
2565if ${ac_cv_prog_STRIP+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  if test -n "$STRIP"; then
2569  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574  IFS=$as_save_IFS
2575  test -z "$as_dir" && as_dir=.
2576    for ac_exec_ext in '' $ac_executable_extensions; do
2577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580    break 2
2581  fi
2582done
2583  done
2584IFS=$as_save_IFS
2585
2586fi
2587fi
2588STRIP=$ac_cv_prog_STRIP
2589if test -n "$STRIP"; then
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2591$as_echo "$STRIP" >&6; }
2592else
2593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594$as_echo "no" >&6; }
2595fi
2596
2597
2598fi
2599if test -z "$ac_cv_prog_STRIP"; then
2600  ac_ct_STRIP=$STRIP
2601  # Extract the first word of "strip", so it can be a program name with args.
2602set dummy strip; ac_word=$2
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604$as_echo_n "checking for $ac_word... " >&6; }
2605if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2606  $as_echo_n "(cached) " >&6
2607else
2608  if test -n "$ac_ct_STRIP"; then
2609  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2610else
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614  IFS=$as_save_IFS
2615  test -z "$as_dir" && as_dir=.
2616    for ac_exec_ext in '' $ac_executable_extensions; do
2617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618    ac_cv_prog_ac_ct_STRIP="strip"
2619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2620    break 2
2621  fi
2622done
2623  done
2624IFS=$as_save_IFS
2625
2626fi
2627fi
2628ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2629if test -n "$ac_ct_STRIP"; then
2630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2631$as_echo "$ac_ct_STRIP" >&6; }
2632else
2633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634$as_echo "no" >&6; }
2635fi
2636
2637  if test "x$ac_ct_STRIP" = x; then
2638    STRIP=":"
2639  else
2640    case $cross_compiling:$ac_tool_warned in
2641yes:)
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2644ac_tool_warned=yes ;;
2645esac
2646    STRIP=$ac_ct_STRIP
2647  fi
2648else
2649  STRIP="$ac_cv_prog_STRIP"
2650fi
2651
2652fi
2653INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2654
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2656$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2657if test -z "$MKDIR_P"; then
2658  if ${ac_cv_path_mkdir+:} false; then :
2659  $as_echo_n "(cached) " >&6
2660else
2661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2663do
2664  IFS=$as_save_IFS
2665  test -z "$as_dir" && as_dir=.
2666    for ac_prog in mkdir gmkdir; do
2667	 for ac_exec_ext in '' $ac_executable_extensions; do
2668	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2669	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2670	     'mkdir (GNU coreutils) '* | \
2671	     'mkdir (coreutils) '* | \
2672	     'mkdir (fileutils) '4.1*)
2673	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2674	       break 3;;
2675	   esac
2676	 done
2677       done
2678  done
2679IFS=$as_save_IFS
2680
2681fi
2682
2683  test -d ./--version && rmdir ./--version
2684  if test "${ac_cv_path_mkdir+set}" = set; then
2685    MKDIR_P="$ac_cv_path_mkdir -p"
2686  else
2687    # As a last resort, use the slow shell script.  Don't cache a
2688    # value for MKDIR_P within a source directory, because that will
2689    # break other packages using the cache if that directory is
2690    # removed, or if the value is a relative name.
2691    MKDIR_P="$ac_install_sh -d"
2692  fi
2693fi
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2695$as_echo "$MKDIR_P" >&6; }
2696
2697for ac_prog in gawk mawk nawk awk
2698do
2699  # Extract the first word of "$ac_prog", so it can be a program name with args.
2700set dummy $ac_prog; ac_word=$2
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702$as_echo_n "checking for $ac_word... " >&6; }
2703if ${ac_cv_prog_AWK+:} false; then :
2704  $as_echo_n "(cached) " >&6
2705else
2706  if test -n "$AWK"; then
2707  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712  IFS=$as_save_IFS
2713  test -z "$as_dir" && as_dir=.
2714    for ac_exec_ext in '' $ac_executable_extensions; do
2715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716    ac_cv_prog_AWK="$ac_prog"
2717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718    break 2
2719  fi
2720done
2721  done
2722IFS=$as_save_IFS
2723
2724fi
2725fi
2726AWK=$ac_cv_prog_AWK
2727if test -n "$AWK"; then
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2729$as_echo "$AWK" >&6; }
2730else
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732$as_echo "no" >&6; }
2733fi
2734
2735
2736  test -n "$AWK" && break
2737done
2738
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2740$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2741set x ${MAKE-make}
2742ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2743if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2744  $as_echo_n "(cached) " >&6
2745else
2746  cat >conftest.make <<\_ACEOF
2747SHELL = /bin/sh
2748all:
2749	@echo '@@@%%%=$(MAKE)=@@@%%%'
2750_ACEOF
2751# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2752case `${MAKE-make} -f conftest.make 2>/dev/null` in
2753  *@@@%%%=?*=@@@%%%*)
2754    eval ac_cv_prog_make_${ac_make}_set=yes;;
2755  *)
2756    eval ac_cv_prog_make_${ac_make}_set=no;;
2757esac
2758rm -f conftest.make
2759fi
2760if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2762$as_echo "yes" >&6; }
2763  SET_MAKE=
2764else
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766$as_echo "no" >&6; }
2767  SET_MAKE="MAKE=${MAKE-make}"
2768fi
2769
2770rm -rf .tst 2>/dev/null
2771mkdir .tst 2>/dev/null
2772if test -d .tst; then
2773  am__leading_dot=.
2774else
2775  am__leading_dot=_
2776fi
2777rmdir .tst 2>/dev/null
2778
2779# Check whether --enable-silent-rules was given.
2780if test "${enable_silent_rules+set}" = set; then :
2781  enableval=$enable_silent_rules;
2782fi
2783
2784case $enable_silent_rules in # (((
2785  yes) AM_DEFAULT_VERBOSITY=0;;
2786   no) AM_DEFAULT_VERBOSITY=1;;
2787    *) AM_DEFAULT_VERBOSITY=1;;
2788esac
2789am_make=${MAKE-make}
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2791$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2792if ${am_cv_make_support_nested_variables+:} false; then :
2793  $as_echo_n "(cached) " >&6
2794else
2795  if $as_echo 'TRUE=$(BAR$(V))
2796BAR0=false
2797BAR1=true
2798V=1
2799am__doit:
2800	@$(TRUE)
2801.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2802  am_cv_make_support_nested_variables=yes
2803else
2804  am_cv_make_support_nested_variables=no
2805fi
2806fi
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2808$as_echo "$am_cv_make_support_nested_variables" >&6; }
2809if test $am_cv_make_support_nested_variables = yes; then
2810    AM_V='$(V)'
2811  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2812else
2813  AM_V=$AM_DEFAULT_VERBOSITY
2814  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2815fi
2816AM_BACKSLASH='\'
2817
2818if test "`cd $srcdir && pwd`" != "`pwd`"; then
2819  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2820  # is not polluted with repeated "-I."
2821  am__isrc=' -I$(srcdir)'
2822  # test to see if srcdir already configured
2823  if test -f $srcdir/config.status; then
2824    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2825  fi
2826fi
2827
2828# test whether we have cygpath
2829if test -z "$CYGPATH_W"; then
2830  if (cygpath --version) >/dev/null 2>/dev/null; then
2831    CYGPATH_W='cygpath -w'
2832  else
2833    CYGPATH_W=echo
2834  fi
2835fi
2836
2837
2838# Define the identity of the package.
2839 PACKAGE='gmock'
2840 VERSION='1.8.0'
2841
2842
2843cat >>confdefs.h <<_ACEOF
2844#define PACKAGE "$PACKAGE"
2845_ACEOF
2846
2847
2848cat >>confdefs.h <<_ACEOF
2849#define VERSION "$VERSION"
2850_ACEOF
2851
2852# Some tools Automake needs.
2853
2854ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2855
2856
2857AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2858
2859
2860AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2861
2862
2863AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2864
2865
2866MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2867
2868# For better backward compatibility.  To be removed once Automake 1.9.x
2869# dies out for good.  For more background, see:
2870# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2871# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2872mkdir_p='$(MKDIR_P)'
2873
2874# We need awk for the "check" target (and possibly the TAP driver).  The
2875# system "awk" is bad on some platforms.
2876# Always define AMTAR for backward compatibility.  Yes, it's still used
2877# in the wild :-(  We should find a proper way to deprecate it ...
2878AMTAR='$${TAR-tar}'
2879
2880
2881# We'll loop over all known methods to create a tar archive until one works.
2882_am_tools='gnutar  pax cpio none'
2883
2884am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2885
2886
2887
2888
2889
2890
2891# POSIX will say in a future version that running "rm -f" with no argument
2892# is OK; and we want to be able to make that assumption in our Makefile
2893# recipes.  So use an aggressive probe to check that the usage we want is
2894# actually supported "in the wild" to an acceptable degree.
2895# See automake bug#10828.
2896# To make any issue more visible, cause the running configure to be aborted
2897# by default if the 'rm' program in use doesn't match our expectations; the
2898# user can still override this though.
2899if rm -f && rm -fr && rm -rf; then : OK; else
2900  cat >&2 <<'END'
2901Oops!
2902
2903Your 'rm' program seems unable to run without file operands specified
2904on the command line, even when the '-f' option is present.  This is contrary
2905to the behaviour of most rm programs out there, and not conforming with
2906the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2907
2908Please tell bug-automake@gnu.org about your system, including the value
2909of your $PATH and any error possibly output before this message.  This
2910can help us improve future automake versions.
2911
2912END
2913  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2914    echo 'Configuration will proceed anyway, since you have set the' >&2
2915    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2916    echo >&2
2917  else
2918    cat >&2 <<'END'
2919Aborting the configuration process, to ensure you take notice of the issue.
2920
2921You can download and install GNU coreutils to get an 'rm' implementation
2922that behaves properly: <https://www.gnu.org/software/coreutils/>.
2923
2924If you want to complete the configuration process using your problematic
2925'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2926to "yes", and re-run configure.
2927
2928END
2929    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2930  fi
2931fi
2932
2933
2934# Check for programs used in building Google Test.
2935ac_ext=c
2936ac_cpp='$CPP $CPPFLAGS'
2937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940if test -n "$ac_tool_prefix"; then
2941  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2942set dummy ${ac_tool_prefix}gcc; ac_word=$2
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if ${ac_cv_prog_CC+:} false; then :
2946  $as_echo_n "(cached) " >&6
2947else
2948  if test -n "$CC"; then
2949  ac_cv_prog_CC="$CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954  IFS=$as_save_IFS
2955  test -z "$as_dir" && as_dir=.
2956    for ac_exec_ext in '' $ac_executable_extensions; do
2957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960    break 2
2961  fi
2962done
2963  done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971$as_echo "$CC" >&6; }
2972else
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978fi
2979if test -z "$ac_cv_prog_CC"; then
2980  ac_ct_CC=$CC
2981  # Extract the first word of "gcc", so it can be a program name with args.
2982set dummy gcc; ac_word=$2
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
2985if ${ac_cv_prog_ac_ct_CC+:} false; then :
2986  $as_echo_n "(cached) " >&6
2987else
2988  if test -n "$ac_ct_CC"; then
2989  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994  IFS=$as_save_IFS
2995  test -z "$as_dir" && as_dir=.
2996    for ac_exec_ext in '' $ac_executable_extensions; do
2997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998    ac_cv_prog_ac_ct_CC="gcc"
2999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000    break 2
3001  fi
3002done
3003  done
3004IFS=$as_save_IFS
3005
3006fi
3007fi
3008ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009if test -n "$ac_ct_CC"; then
3010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011$as_echo "$ac_ct_CC" >&6; }
3012else
3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
3015fi
3016
3017  if test "x$ac_ct_CC" = x; then
3018    CC=""
3019  else
3020    case $cross_compiling:$ac_tool_warned in
3021yes:)
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3024ac_tool_warned=yes ;;
3025esac
3026    CC=$ac_ct_CC
3027  fi
3028else
3029  CC="$ac_cv_prog_CC"
3030fi
3031
3032if test -z "$CC"; then
3033          if test -n "$ac_tool_prefix"; then
3034    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3035set dummy ${ac_tool_prefix}cc; ac_word=$2
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037$as_echo_n "checking for $ac_word... " >&6; }
3038if ${ac_cv_prog_CC+:} false; then :
3039  $as_echo_n "(cached) " >&6
3040else
3041  if test -n "$CC"; then
3042  ac_cv_prog_CC="$CC" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047  IFS=$as_save_IFS
3048  test -z "$as_dir" && as_dir=.
3049    for ac_exec_ext in '' $ac_executable_extensions; do
3050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051    ac_cv_prog_CC="${ac_tool_prefix}cc"
3052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053    break 2
3054  fi
3055done
3056  done
3057IFS=$as_save_IFS
3058
3059fi
3060fi
3061CC=$ac_cv_prog_CC
3062if test -n "$CC"; then
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064$as_echo "$CC" >&6; }
3065else
3066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067$as_echo "no" >&6; }
3068fi
3069
3070
3071  fi
3072fi
3073if test -z "$CC"; then
3074  # Extract the first word of "cc", so it can be a program name with args.
3075set dummy cc; ac_word=$2
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077$as_echo_n "checking for $ac_word... " >&6; }
3078if ${ac_cv_prog_CC+:} false; then :
3079  $as_echo_n "(cached) " >&6
3080else
3081  if test -n "$CC"; then
3082  ac_cv_prog_CC="$CC" # Let the user override the test.
3083else
3084  ac_prog_rejected=no
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088  IFS=$as_save_IFS
3089  test -z "$as_dir" && as_dir=.
3090    for ac_exec_ext in '' $ac_executable_extensions; do
3091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3093       ac_prog_rejected=yes
3094       continue
3095     fi
3096    ac_cv_prog_CC="cc"
3097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098    break 2
3099  fi
3100done
3101  done
3102IFS=$as_save_IFS
3103
3104if test $ac_prog_rejected = yes; then
3105  # We found a bogon in the path, so make sure we never use it.
3106  set dummy $ac_cv_prog_CC
3107  shift
3108  if test $# != 0; then
3109    # We chose a different compiler from the bogus one.
3110    # However, it has the same basename, so the bogon will be chosen
3111    # first if we set CC to just the basename; use the full file name.
3112    shift
3113    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3114  fi
3115fi
3116fi
3117fi
3118CC=$ac_cv_prog_CC
3119if test -n "$CC"; then
3120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121$as_echo "$CC" >&6; }
3122else
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124$as_echo "no" >&6; }
3125fi
3126
3127
3128fi
3129if test -z "$CC"; then
3130  if test -n "$ac_tool_prefix"; then
3131  for ac_prog in cl.exe
3132  do
3133    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136$as_echo_n "checking for $ac_word... " >&6; }
3137if ${ac_cv_prog_CC+:} false; then :
3138  $as_echo_n "(cached) " >&6
3139else
3140  if test -n "$CC"; then
3141  ac_cv_prog_CC="$CC" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146  IFS=$as_save_IFS
3147  test -z "$as_dir" && as_dir=.
3148    for ac_exec_ext in '' $ac_executable_extensions; do
3149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152    break 2
3153  fi
3154done
3155  done
3156IFS=$as_save_IFS
3157
3158fi
3159fi
3160CC=$ac_cv_prog_CC
3161if test -n "$CC"; then
3162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163$as_echo "$CC" >&6; }
3164else
3165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167fi
3168
3169
3170    test -n "$CC" && break
3171  done
3172fi
3173if test -z "$CC"; then
3174  ac_ct_CC=$CC
3175  for ac_prog in cl.exe
3176do
3177  # Extract the first word of "$ac_prog", so it can be a program name with args.
3178set dummy $ac_prog; ac_word=$2
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180$as_echo_n "checking for $ac_word... " >&6; }
3181if ${ac_cv_prog_ac_ct_CC+:} false; then :
3182  $as_echo_n "(cached) " >&6
3183else
3184  if test -n "$ac_ct_CC"; then
3185  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186else
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190  IFS=$as_save_IFS
3191  test -z "$as_dir" && as_dir=.
3192    for ac_exec_ext in '' $ac_executable_extensions; do
3193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194    ac_cv_prog_ac_ct_CC="$ac_prog"
3195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196    break 2
3197  fi
3198done
3199  done
3200IFS=$as_save_IFS
3201
3202fi
3203fi
3204ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205if test -n "$ac_ct_CC"; then
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207$as_echo "$ac_ct_CC" >&6; }
3208else
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210$as_echo "no" >&6; }
3211fi
3212
3213
3214  test -n "$ac_ct_CC" && break
3215done
3216
3217  if test "x$ac_ct_CC" = x; then
3218    CC=""
3219  else
3220    case $cross_compiling:$ac_tool_warned in
3221yes:)
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224ac_tool_warned=yes ;;
3225esac
3226    CC=$ac_ct_CC
3227  fi
3228fi
3229
3230fi
3231
3232
3233test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235as_fn_error $? "no acceptable C compiler found in \$PATH
3236See \`config.log' for more details" "$LINENO" 5; }
3237
3238# Provide some information about the compiler.
3239$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3240set X $ac_compile
3241ac_compiler=$2
3242for ac_option in --version -v -V -qversion; do
3243  { { ac_try="$ac_compiler $ac_option >&5"
3244case "(($ac_try" in
3245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246  *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3251  ac_status=$?
3252  if test -s conftest.err; then
3253    sed '10a\
3254... rest of stderr output deleted ...
3255         10q' conftest.err >conftest.er1
3256    cat conftest.er1 >&5
3257  fi
3258  rm -f conftest.er1 conftest.err
3259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260  test $ac_status = 0; }
3261done
3262
3263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h.  */
3265
3266int
3267main ()
3268{
3269
3270  ;
3271  return 0;
3272}
3273_ACEOF
3274ac_clean_files_save=$ac_clean_files
3275ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3276# Try to create an executable without -o first, disregard a.out.
3277# It will help us diagnose broken compilers, and finding out an intuition
3278# of exeext.
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3280$as_echo_n "checking whether the C compiler works... " >&6; }
3281ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3282
3283# The possible output files:
3284ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3285
3286ac_rmfiles=
3287for ac_file in $ac_files
3288do
3289  case $ac_file in
3290    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3291    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3292  esac
3293done
3294rm -f $ac_rmfiles
3295
3296if { { ac_try="$ac_link_default"
3297case "(($ac_try" in
3298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299  *) ac_try_echo=$ac_try;;
3300esac
3301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302$as_echo "$ac_try_echo"; } >&5
3303  (eval "$ac_link_default") 2>&5
3304  ac_status=$?
3305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306  test $ac_status = 0; }; then :
3307  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3308# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3309# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3310# so that the user can short-circuit this test for compilers unknown to
3311# Autoconf.
3312for ac_file in $ac_files ''
3313do
3314  test -f "$ac_file" || continue
3315  case $ac_file in
3316    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3317	;;
3318    [ab].out )
3319	# We found the default executable, but exeext='' is most
3320	# certainly right.
3321	break;;
3322    *.* )
3323	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3324	then :; else
3325	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326	fi
3327	# We set ac_cv_exeext here because the later test for it is not
3328	# safe: cross compilers may not add the suffix if given an `-o'
3329	# argument, so we may need to know it at that point already.
3330	# Even if this section looks crufty: it has the advantage of
3331	# actually working.
3332	break;;
3333    * )
3334	break;;
3335  esac
3336done
3337test "$ac_cv_exeext" = no && ac_cv_exeext=
3338
3339else
3340  ac_file=''
3341fi
3342if test -z "$ac_file"; then :
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344$as_echo "no" >&6; }
3345$as_echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350as_fn_error 77 "C compiler cannot create executables
3351See \`config.log' for more details" "$LINENO" 5; }
3352else
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354$as_echo "yes" >&6; }
3355fi
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3357$as_echo_n "checking for C compiler default output file name... " >&6; }
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3359$as_echo "$ac_file" >&6; }
3360ac_exeext=$ac_cv_exeext
3361
3362rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3363ac_clean_files=$ac_clean_files_save
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3365$as_echo_n "checking for suffix of executables... " >&6; }
3366if { { ac_try="$ac_link"
3367case "(($ac_try" in
3368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369  *) ac_try_echo=$ac_try;;
3370esac
3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372$as_echo "$ac_try_echo"; } >&5
3373  (eval "$ac_link") 2>&5
3374  ac_status=$?
3375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376  test $ac_status = 0; }; then :
3377  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3378# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3379# work properly (i.e., refer to `conftest.exe'), while it won't with
3380# `rm'.
3381for ac_file in conftest.exe conftest conftest.*; do
3382  test -f "$ac_file" || continue
3383  case $ac_file in
3384    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3385    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386	  break;;
3387    * ) break;;
3388  esac
3389done
3390else
3391  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3394See \`config.log' for more details" "$LINENO" 5; }
3395fi
3396rm -f conftest conftest$ac_cv_exeext
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3398$as_echo "$ac_cv_exeext" >&6; }
3399
3400rm -f conftest.$ac_ext
3401EXEEXT=$ac_cv_exeext
3402ac_exeext=$EXEEXT
3403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405#include <stdio.h>
3406int
3407main ()
3408{
3409FILE *f = fopen ("conftest.out", "w");
3410 return ferror (f) || fclose (f) != 0;
3411
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416ac_clean_files="$ac_clean_files conftest.out"
3417# Check that the compiler produces executables we can run.  If not, either
3418# the compiler is broken, or we cross compile.
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3420$as_echo_n "checking whether we are cross compiling... " >&6; }
3421if test "$cross_compiling" != yes; then
3422  { { ac_try="$ac_link"
3423case "(($ac_try" in
3424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425  *) ac_try_echo=$ac_try;;
3426esac
3427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428$as_echo "$ac_try_echo"; } >&5
3429  (eval "$ac_link") 2>&5
3430  ac_status=$?
3431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432  test $ac_status = 0; }
3433  if { ac_try='./conftest$ac_cv_exeext'
3434  { { case "(($ac_try" in
3435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436  *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
3440  (eval "$ac_try") 2>&5
3441  ac_status=$?
3442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443  test $ac_status = 0; }; }; then
3444    cross_compiling=no
3445  else
3446    if test "$cross_compiling" = maybe; then
3447	cross_compiling=yes
3448    else
3449	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451as_fn_error $? "cannot run C compiled programs.
3452If you meant to cross compile, use \`--host'.
3453See \`config.log' for more details" "$LINENO" 5; }
3454    fi
3455  fi
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3458$as_echo "$cross_compiling" >&6; }
3459
3460rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3461ac_clean_files=$ac_clean_files_save
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3463$as_echo_n "checking for suffix of object files... " >&6; }
3464if ${ac_cv_objext+:} false; then :
3465  $as_echo_n "(cached) " >&6
3466else
3467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469
3470int
3471main ()
3472{
3473
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478rm -f conftest.o conftest.obj
3479if { { ac_try="$ac_compile"
3480case "(($ac_try" in
3481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482  *) ac_try_echo=$ac_try;;
3483esac
3484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485$as_echo "$ac_try_echo"; } >&5
3486  (eval "$ac_compile") 2>&5
3487  ac_status=$?
3488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489  test $ac_status = 0; }; then :
3490  for ac_file in conftest.o conftest.obj conftest.*; do
3491  test -f "$ac_file" || continue;
3492  case $ac_file in
3493    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3494    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3495       break;;
3496  esac
3497done
3498else
3499  $as_echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504as_fn_error $? "cannot compute suffix of object files: cannot compile
3505See \`config.log' for more details" "$LINENO" 5; }
3506fi
3507rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508fi
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3510$as_echo "$ac_cv_objext" >&6; }
3511OBJEXT=$ac_cv_objext
3512ac_objext=$OBJEXT
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3514$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3515if ${ac_cv_c_compiler_gnu+:} false; then :
3516  $as_echo_n "(cached) " >&6
3517else
3518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524#ifndef __GNUC__
3525       choke me
3526#endif
3527
3528  ;
3529  return 0;
3530}
3531_ACEOF
3532if ac_fn_c_try_compile "$LINENO"; then :
3533  ac_compiler_gnu=yes
3534else
3535  ac_compiler_gnu=no
3536fi
3537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3542$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3543if test $ac_compiler_gnu = yes; then
3544  GCC=yes
3545else
3546  GCC=
3547fi
3548ac_test_CFLAGS=${CFLAGS+set}
3549ac_save_CFLAGS=$CFLAGS
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3551$as_echo_n "checking whether $CC accepts -g... " >&6; }
3552if ${ac_cv_prog_cc_g+:} false; then :
3553  $as_echo_n "(cached) " >&6
3554else
3555  ac_save_c_werror_flag=$ac_c_werror_flag
3556   ac_c_werror_flag=yes
3557   ac_cv_prog_cc_g=no
3558   CFLAGS="-g"
3559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h.  */
3561
3562int
3563main ()
3564{
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570if ac_fn_c_try_compile "$LINENO"; then :
3571  ac_cv_prog_cc_g=yes
3572else
3573  CFLAGS=""
3574      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576
3577int
3578main ()
3579{
3580
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585if ac_fn_c_try_compile "$LINENO"; then :
3586
3587else
3588  ac_c_werror_flag=$ac_save_c_werror_flag
3589	 CFLAGS="-g"
3590	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601if ac_fn_c_try_compile "$LINENO"; then :
3602  ac_cv_prog_cc_g=yes
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607fi
3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609   ac_c_werror_flag=$ac_save_c_werror_flag
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3612$as_echo "$ac_cv_prog_cc_g" >&6; }
3613if test "$ac_test_CFLAGS" = set; then
3614  CFLAGS=$ac_save_CFLAGS
3615elif test $ac_cv_prog_cc_g = yes; then
3616  if test "$GCC" = yes; then
3617    CFLAGS="-g -O2"
3618  else
3619    CFLAGS="-g"
3620  fi
3621else
3622  if test "$GCC" = yes; then
3623    CFLAGS="-O2"
3624  else
3625    CFLAGS=
3626  fi
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3629$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3630if ${ac_cv_prog_cc_c89+:} false; then :
3631  $as_echo_n "(cached) " >&6
3632else
3633  ac_cv_prog_cc_c89=no
3634ac_save_CC=$CC
3635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h.  */
3637#include <stdarg.h>
3638#include <stdio.h>
3639struct stat;
3640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3641struct buf { int x; };
3642FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643static char *e (p, i)
3644     char **p;
3645     int i;
3646{
3647  return p[i];
3648}
3649static char *f (char * (*g) (char **, int), char **p, ...)
3650{
3651  char *s;
3652  va_list v;
3653  va_start (v,p);
3654  s = g (p, va_arg (v,int));
3655  va_end (v);
3656  return s;
3657}
3658
3659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3660   function prototypes and stuff, but not '\xHH' hex character constants.
3661   These don't provoke an error unfortunately, instead are silently treated
3662   as 'x'.  The following induces an error, until -std is added to get
3663   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3664   array size at least.  It's necessary to write '\x00'==0 to get something
3665   that's true only with -std.  */
3666int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667
3668/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3669   inside strings and character constants.  */
3670#define FOO(x) 'x'
3671int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3672
3673int test (int i, double x);
3674struct s1 {int (*f) (int a);};
3675struct s2 {int (*f) (double a);};
3676int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3677int argc;
3678char **argv;
3679int
3680main ()
3681{
3682return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3688	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689do
3690  CC="$ac_save_CC $ac_arg"
3691  if ac_fn_c_try_compile "$LINENO"; then :
3692  ac_cv_prog_cc_c89=$ac_arg
3693fi
3694rm -f core conftest.err conftest.$ac_objext
3695  test "x$ac_cv_prog_cc_c89" != "xno" && break
3696done
3697rm -f conftest.$ac_ext
3698CC=$ac_save_CC
3699
3700fi
3701# AC_CACHE_VAL
3702case "x$ac_cv_prog_cc_c89" in
3703  x)
3704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3705$as_echo "none needed" >&6; } ;;
3706  xno)
3707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708$as_echo "unsupported" >&6; } ;;
3709  *)
3710    CC="$CC $ac_cv_prog_cc_c89"
3711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3712$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3713esac
3714if test "x$ac_cv_prog_cc_c89" != xno; then :
3715
3716fi
3717
3718ac_ext=c
3719ac_cpp='$CPP $CPPFLAGS'
3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724ac_ext=c
3725ac_cpp='$CPP $CPPFLAGS'
3726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3730$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3731if ${am_cv_prog_cc_c_o+:} false; then :
3732  $as_echo_n "(cached) " >&6
3733else
3734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736
3737int
3738main ()
3739{
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745  # Make sure it works both with $CC and with simple cc.
3746  # Following AC_PROG_CC_C_O, we do the test twice because some
3747  # compilers refuse to overwrite an existing .o file with -o,
3748  # though they will create one.
3749  am_cv_prog_cc_c_o=yes
3750  for am_i in 1 2; do
3751    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3752   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3753   ac_status=$?
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); } \
3756         && test -f conftest2.$ac_objext; then
3757      : OK
3758    else
3759      am_cv_prog_cc_c_o=no
3760      break
3761    fi
3762  done
3763  rm -f core conftest*
3764  unset am_i
3765fi
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3767$as_echo "$am_cv_prog_cc_c_o" >&6; }
3768if test "$am_cv_prog_cc_c_o" != yes; then
3769   # Losing compiler, so override with the script.
3770   # FIXME: It is wrong to rewrite CC.
3771   # But if we don't then we get into trouble of one sort or another.
3772   # A longer-term fix would be to have automake use am__CC in this case,
3773   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3774   CC="$am_aux_dir/compile $CC"
3775fi
3776ac_ext=c
3777ac_cpp='$CPP $CPPFLAGS'
3778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781
3782DEPDIR="${am__leading_dot}deps"
3783
3784ac_config_commands="$ac_config_commands depfiles"
3785
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3787$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3788cat > confinc.mk << 'END'
3789am__doit:
3790	@echo this is the am__doit target >confinc.out
3791.PHONY: am__doit
3792END
3793am__include="#"
3794am__quote=
3795# BSD make does it like this.
3796echo '.include "confinc.mk" # ignored' > confmf.BSD
3797# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3798echo 'include confinc.mk # ignored' > confmf.GNU
3799_am_result=no
3800for s in GNU BSD; do
3801  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3802   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }
3806  case $?:`cat confinc.out 2>/dev/null` in #(
3807  '0:this is the am__doit target') :
3808    case $s in #(
3809  BSD) :
3810    am__include='.include' am__quote='"' ;; #(
3811  *) :
3812    am__include='include' am__quote='' ;;
3813esac ;; #(
3814  *) :
3815     ;;
3816esac
3817  if test "$am__include" != "#"; then
3818    _am_result="yes ($s style)"
3819    break
3820  fi
3821done
3822rm -f confinc.* confmf.*
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3824$as_echo "${_am_result}" >&6; }
3825
3826# Check whether --enable-dependency-tracking was given.
3827if test "${enable_dependency_tracking+set}" = set; then :
3828  enableval=$enable_dependency_tracking;
3829fi
3830
3831if test "x$enable_dependency_tracking" != xno; then
3832  am_depcomp="$ac_aux_dir/depcomp"
3833  AMDEPBACKSLASH='\'
3834  am__nodep='_no'
3835fi
3836 if test "x$enable_dependency_tracking" != xno; then
3837  AMDEP_TRUE=
3838  AMDEP_FALSE='#'
3839else
3840  AMDEP_TRUE='#'
3841  AMDEP_FALSE=
3842fi
3843
3844
3845
3846depcc="$CC"   am_compiler_list=
3847
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3849$as_echo_n "checking dependency style of $depcc... " >&6; }
3850if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3851  $as_echo_n "(cached) " >&6
3852else
3853  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3854  # We make a subdir and do the tests there.  Otherwise we can end up
3855  # making bogus files that we don't know about and never remove.  For
3856  # instance it was reported that on HP-UX the gcc test will end up
3857  # making a dummy file named 'D' -- because '-MD' means "put the output
3858  # in D".
3859  rm -rf conftest.dir
3860  mkdir conftest.dir
3861  # Copy depcomp to subdir because otherwise we won't find it if we're
3862  # using a relative directory.
3863  cp "$am_depcomp" conftest.dir
3864  cd conftest.dir
3865  # We will build objects and dependencies in a subdirectory because
3866  # it helps to detect inapplicable dependency modes.  For instance
3867  # both Tru64's cc and ICC support -MD to output dependencies as a
3868  # side effect of compilation, but ICC will put the dependencies in
3869  # the current directory while Tru64 will put them in the object
3870  # directory.
3871  mkdir sub
3872
3873  am_cv_CC_dependencies_compiler_type=none
3874  if test "$am_compiler_list" = ""; then
3875     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3876  fi
3877  am__universal=false
3878  case " $depcc " in #(
3879     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3880     esac
3881
3882  for depmode in $am_compiler_list; do
3883    # Setup a source with many dependencies, because some compilers
3884    # like to wrap large dependency lists on column 80 (with \), and
3885    # we should not choose a depcomp mode which is confused by this.
3886    #
3887    # We need to recreate these files for each test, as the compiler may
3888    # overwrite some of them when testing with obscure command lines.
3889    # This happens at least with the AIX C compiler.
3890    : > sub/conftest.c
3891    for i in 1 2 3 4 5 6; do
3892      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3893      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3894      # Solaris 10 /bin/sh.
3895      echo '/* dummy */' > sub/conftst$i.h
3896    done
3897    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3898
3899    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3900    # mode.  It turns out that the SunPro C++ compiler does not properly
3901    # handle '-M -o', and we need to detect this.  Also, some Intel
3902    # versions had trouble with output in subdirs.
3903    am__obj=sub/conftest.${OBJEXT-o}
3904    am__minus_obj="-o $am__obj"
3905    case $depmode in
3906    gcc)
3907      # This depmode causes a compiler race in universal mode.
3908      test "$am__universal" = false || continue
3909      ;;
3910    nosideeffect)
3911      # After this tag, mechanisms are not by side-effect, so they'll
3912      # only be used when explicitly requested.
3913      if test "x$enable_dependency_tracking" = xyes; then
3914	continue
3915      else
3916	break
3917      fi
3918      ;;
3919    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3920      # This compiler won't grok '-c -o', but also, the minuso test has
3921      # not run yet.  These depmodes are late enough in the game, and
3922      # so weak that their functioning should not be impacted.
3923      am__obj=conftest.${OBJEXT-o}
3924      am__minus_obj=
3925      ;;
3926    none) break ;;
3927    esac
3928    if depmode=$depmode \
3929       source=sub/conftest.c object=$am__obj \
3930       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3931       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3932         >/dev/null 2>conftest.err &&
3933       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3934       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3935       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3936       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3937      # icc doesn't choke on unknown options, it will just issue warnings
3938      # or remarks (even with -Werror).  So we grep stderr for any message
3939      # that says an option was ignored or not supported.
3940      # When given -MP, icc 7.0 and 7.1 complain thusly:
3941      #   icc: Command line warning: ignoring option '-M'; no argument required
3942      # The diagnosis changed in icc 8.0:
3943      #   icc: Command line remark: option '-MP' not supported
3944      if (grep 'ignoring option' conftest.err ||
3945          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3946        am_cv_CC_dependencies_compiler_type=$depmode
3947        break
3948      fi
3949    fi
3950  done
3951
3952  cd ..
3953  rm -rf conftest.dir
3954else
3955  am_cv_CC_dependencies_compiler_type=none
3956fi
3957
3958fi
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3960$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3961CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3962
3963 if
3964  test "x$enable_dependency_tracking" != xno \
3965  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3966  am__fastdepCC_TRUE=
3967  am__fastdepCC_FALSE='#'
3968else
3969  am__fastdepCC_TRUE='#'
3970  am__fastdepCC_FALSE=
3971fi
3972
3973
3974ac_ext=cpp
3975ac_cpp='$CXXCPP $CPPFLAGS'
3976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3979if test -z "$CXX"; then
3980  if test -n "$CCC"; then
3981    CXX=$CCC
3982  else
3983    if test -n "$ac_tool_prefix"; then
3984  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3985  do
3986    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989$as_echo_n "checking for $ac_word... " >&6; }
3990if ${ac_cv_prog_CXX+:} false; then :
3991  $as_echo_n "(cached) " >&6
3992else
3993  if test -n "$CXX"; then
3994  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3995else
3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
3998do
3999  IFS=$as_save_IFS
4000  test -z "$as_dir" && as_dir=.
4001    for ac_exec_ext in '' $ac_executable_extensions; do
4002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005    break 2
4006  fi
4007done
4008  done
4009IFS=$as_save_IFS
4010
4011fi
4012fi
4013CXX=$ac_cv_prog_CXX
4014if test -n "$CXX"; then
4015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4016$as_echo "$CXX" >&6; }
4017else
4018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019$as_echo "no" >&6; }
4020fi
4021
4022
4023    test -n "$CXX" && break
4024  done
4025fi
4026if test -z "$CXX"; then
4027  ac_ct_CXX=$CXX
4028  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4029do
4030  # Extract the first word of "$ac_prog", so it can be a program name with args.
4031set dummy $ac_prog; ac_word=$2
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033$as_echo_n "checking for $ac_word... " >&6; }
4034if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4035  $as_echo_n "(cached) " >&6
4036else
4037  if test -n "$ac_ct_CXX"; then
4038  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4039else
4040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041for as_dir in $PATH
4042do
4043  IFS=$as_save_IFS
4044  test -z "$as_dir" && as_dir=.
4045    for ac_exec_ext in '' $ac_executable_extensions; do
4046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047    ac_cv_prog_ac_ct_CXX="$ac_prog"
4048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049    break 2
4050  fi
4051done
4052  done
4053IFS=$as_save_IFS
4054
4055fi
4056fi
4057ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4058if test -n "$ac_ct_CXX"; then
4059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4060$as_echo "$ac_ct_CXX" >&6; }
4061else
4062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063$as_echo "no" >&6; }
4064fi
4065
4066
4067  test -n "$ac_ct_CXX" && break
4068done
4069
4070  if test "x$ac_ct_CXX" = x; then
4071    CXX="g++"
4072  else
4073    case $cross_compiling:$ac_tool_warned in
4074yes:)
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4077ac_tool_warned=yes ;;
4078esac
4079    CXX=$ac_ct_CXX
4080  fi
4081fi
4082
4083  fi
4084fi
4085# Provide some information about the compiler.
4086$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4087set X $ac_compile
4088ac_compiler=$2
4089for ac_option in --version -v -V -qversion; do
4090  { { ac_try="$ac_compiler $ac_option >&5"
4091case "(($ac_try" in
4092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093  *) ac_try_echo=$ac_try;;
4094esac
4095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096$as_echo "$ac_try_echo"; } >&5
4097  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4098  ac_status=$?
4099  if test -s conftest.err; then
4100    sed '10a\
4101... rest of stderr output deleted ...
4102         10q' conftest.err >conftest.er1
4103    cat conftest.er1 >&5
4104  fi
4105  rm -f conftest.er1 conftest.err
4106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107  test $ac_status = 0; }
4108done
4109
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4111$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4112if ${ac_cv_cxx_compiler_gnu+:} false; then :
4113  $as_echo_n "(cached) " >&6
4114else
4115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117
4118int
4119main ()
4120{
4121#ifndef __GNUC__
4122       choke me
4123#endif
4124
4125  ;
4126  return 0;
4127}
4128_ACEOF
4129if ac_fn_cxx_try_compile "$LINENO"; then :
4130  ac_compiler_gnu=yes
4131else
4132  ac_compiler_gnu=no
4133fi
4134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4136
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4139$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4140if test $ac_compiler_gnu = yes; then
4141  GXX=yes
4142else
4143  GXX=
4144fi
4145ac_test_CXXFLAGS=${CXXFLAGS+set}
4146ac_save_CXXFLAGS=$CXXFLAGS
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4148$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4149if ${ac_cv_prog_cxx_g+:} false; then :
4150  $as_echo_n "(cached) " >&6
4151else
4152  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4153   ac_cxx_werror_flag=yes
4154   ac_cv_prog_cxx_g=no
4155   CXXFLAGS="-g"
4156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h.  */
4158
4159int
4160main ()
4161{
4162
4163  ;
4164  return 0;
4165}
4166_ACEOF
4167if ac_fn_cxx_try_compile "$LINENO"; then :
4168  ac_cv_prog_cxx_g=yes
4169else
4170  CXXFLAGS=""
4171      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172/* end confdefs.h.  */
4173
4174int
4175main ()
4176{
4177
4178  ;
4179  return 0;
4180}
4181_ACEOF
4182if ac_fn_cxx_try_compile "$LINENO"; then :
4183
4184else
4185  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4186	 CXXFLAGS="-g"
4187	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h.  */
4189
4190int
4191main ()
4192{
4193
4194  ;
4195  return 0;
4196}
4197_ACEOF
4198if ac_fn_cxx_try_compile "$LINENO"; then :
4199  ac_cv_prog_cxx_g=yes
4200fi
4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202fi
4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204fi
4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4207fi
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4209$as_echo "$ac_cv_prog_cxx_g" >&6; }
4210if test "$ac_test_CXXFLAGS" = set; then
4211  CXXFLAGS=$ac_save_CXXFLAGS
4212elif test $ac_cv_prog_cxx_g = yes; then
4213  if test "$GXX" = yes; then
4214    CXXFLAGS="-g -O2"
4215  else
4216    CXXFLAGS="-g"
4217  fi
4218else
4219  if test "$GXX" = yes; then
4220    CXXFLAGS="-O2"
4221  else
4222    CXXFLAGS=
4223  fi
4224fi
4225ac_ext=c
4226ac_cpp='$CPP $CPPFLAGS'
4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231depcc="$CXX"  am_compiler_list=
4232
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4234$as_echo_n "checking dependency style of $depcc... " >&6; }
4235if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4236  $as_echo_n "(cached) " >&6
4237else
4238  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4239  # We make a subdir and do the tests there.  Otherwise we can end up
4240  # making bogus files that we don't know about and never remove.  For
4241  # instance it was reported that on HP-UX the gcc test will end up
4242  # making a dummy file named 'D' -- because '-MD' means "put the output
4243  # in D".
4244  rm -rf conftest.dir
4245  mkdir conftest.dir
4246  # Copy depcomp to subdir because otherwise we won't find it if we're
4247  # using a relative directory.
4248  cp "$am_depcomp" conftest.dir
4249  cd conftest.dir
4250  # We will build objects and dependencies in a subdirectory because
4251  # it helps to detect inapplicable dependency modes.  For instance
4252  # both Tru64's cc and ICC support -MD to output dependencies as a
4253  # side effect of compilation, but ICC will put the dependencies in
4254  # the current directory while Tru64 will put them in the object
4255  # directory.
4256  mkdir sub
4257
4258  am_cv_CXX_dependencies_compiler_type=none
4259  if test "$am_compiler_list" = ""; then
4260     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4261  fi
4262  am__universal=false
4263  case " $depcc " in #(
4264     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4265     esac
4266
4267  for depmode in $am_compiler_list; do
4268    # Setup a source with many dependencies, because some compilers
4269    # like to wrap large dependency lists on column 80 (with \), and
4270    # we should not choose a depcomp mode which is confused by this.
4271    #
4272    # We need to recreate these files for each test, as the compiler may
4273    # overwrite some of them when testing with obscure command lines.
4274    # This happens at least with the AIX C compiler.
4275    : > sub/conftest.c
4276    for i in 1 2 3 4 5 6; do
4277      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4278      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4279      # Solaris 10 /bin/sh.
4280      echo '/* dummy */' > sub/conftst$i.h
4281    done
4282    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4283
4284    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4285    # mode.  It turns out that the SunPro C++ compiler does not properly
4286    # handle '-M -o', and we need to detect this.  Also, some Intel
4287    # versions had trouble with output in subdirs.
4288    am__obj=sub/conftest.${OBJEXT-o}
4289    am__minus_obj="-o $am__obj"
4290    case $depmode in
4291    gcc)
4292      # This depmode causes a compiler race in universal mode.
4293      test "$am__universal" = false || continue
4294      ;;
4295    nosideeffect)
4296      # After this tag, mechanisms are not by side-effect, so they'll
4297      # only be used when explicitly requested.
4298      if test "x$enable_dependency_tracking" = xyes; then
4299	continue
4300      else
4301	break
4302      fi
4303      ;;
4304    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4305      # This compiler won't grok '-c -o', but also, the minuso test has
4306      # not run yet.  These depmodes are late enough in the game, and
4307      # so weak that their functioning should not be impacted.
4308      am__obj=conftest.${OBJEXT-o}
4309      am__minus_obj=
4310      ;;
4311    none) break ;;
4312    esac
4313    if depmode=$depmode \
4314       source=sub/conftest.c object=$am__obj \
4315       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4316       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4317         >/dev/null 2>conftest.err &&
4318       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4319       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4320       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4321       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4322      # icc doesn't choke on unknown options, it will just issue warnings
4323      # or remarks (even with -Werror).  So we grep stderr for any message
4324      # that says an option was ignored or not supported.
4325      # When given -MP, icc 7.0 and 7.1 complain thusly:
4326      #   icc: Command line warning: ignoring option '-M'; no argument required
4327      # The diagnosis changed in icc 8.0:
4328      #   icc: Command line remark: option '-MP' not supported
4329      if (grep 'ignoring option' conftest.err ||
4330          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4331        am_cv_CXX_dependencies_compiler_type=$depmode
4332        break
4333      fi
4334    fi
4335  done
4336
4337  cd ..
4338  rm -rf conftest.dir
4339else
4340  am_cv_CXX_dependencies_compiler_type=none
4341fi
4342
4343fi
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4345$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4346CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4347
4348 if
4349  test "x$enable_dependency_tracking" != xno \
4350  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4351  am__fastdepCXX_TRUE=
4352  am__fastdepCXX_FALSE='#'
4353else
4354  am__fastdepCXX_TRUE='#'
4355  am__fastdepCXX_FALSE=
4356fi
4357
4358
4359ac_ext=cpp
4360ac_cpp='$CXXCPP $CPPFLAGS'
4361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4364
4365case `pwd` in
4366  *\ * | *\	*)
4367    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4368$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4369esac
4370
4371
4372
4373macro_version='2.4.6'
4374macro_revision='2.4.6'
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388ltmain=$ac_aux_dir/ltmain.sh
4389
4390# Make sure we can run config.sub.
4391$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4392  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4393
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4395$as_echo_n "checking build system type... " >&6; }
4396if ${ac_cv_build+:} false; then :
4397  $as_echo_n "(cached) " >&6
4398else
4399  ac_build_alias=$build_alias
4400test "x$ac_build_alias" = x &&
4401  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4402test "x$ac_build_alias" = x &&
4403  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4404ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4405  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4406
4407fi
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4409$as_echo "$ac_cv_build" >&6; }
4410case $ac_cv_build in
4411*-*-*) ;;
4412*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4413esac
4414build=$ac_cv_build
4415ac_save_IFS=$IFS; IFS='-'
4416set x $ac_cv_build
4417shift
4418build_cpu=$1
4419build_vendor=$2
4420shift; shift
4421# Remember, the first character of IFS is used to create $*,
4422# except with old shells:
4423build_os=$*
4424IFS=$ac_save_IFS
4425case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4426
4427
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4429$as_echo_n "checking host system type... " >&6; }
4430if ${ac_cv_host+:} false; then :
4431  $as_echo_n "(cached) " >&6
4432else
4433  if test "x$host_alias" = x; then
4434  ac_cv_host=$ac_cv_build
4435else
4436  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4437    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4438fi
4439
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4442$as_echo "$ac_cv_host" >&6; }
4443case $ac_cv_host in
4444*-*-*) ;;
4445*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4446esac
4447host=$ac_cv_host
4448ac_save_IFS=$IFS; IFS='-'
4449set x $ac_cv_host
4450shift
4451host_cpu=$1
4452host_vendor=$2
4453shift; shift
4454# Remember, the first character of IFS is used to create $*,
4455# except with old shells:
4456host_os=$*
4457IFS=$ac_save_IFS
4458case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4459
4460
4461# Backslashify metacharacters that are still active within
4462# double-quoted strings.
4463sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4464
4465# Same as above, but do not quote variable references.
4466double_quote_subst='s/\(["`\\]\)/\\\1/g'
4467
4468# Sed substitution to delay expansion of an escaped shell variable in a
4469# double_quote_subst'ed string.
4470delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4471
4472# Sed substitution to delay expansion of an escaped single quote.
4473delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4474
4475# Sed substitution to avoid accidental globbing in evaled expressions
4476no_glob_subst='s/\*/\\\*/g'
4477
4478ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4479ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4480ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4481
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4483$as_echo_n "checking how to print strings... " >&6; }
4484# Test print first, because it will be a builtin if present.
4485if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4486   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4487  ECHO='print -r --'
4488elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4489  ECHO='printf %s\n'
4490else
4491  # Use this function as a fallback that always works.
4492  func_fallback_echo ()
4493  {
4494    eval 'cat <<_LTECHO_EOF
4495$1
4496_LTECHO_EOF'
4497  }
4498  ECHO='func_fallback_echo'
4499fi
4500
4501# func_echo_all arg...
4502# Invoke $ECHO with all args, space-separated.
4503func_echo_all ()
4504{
4505    $ECHO ""
4506}
4507
4508case $ECHO in
4509  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4510$as_echo "printf" >&6; } ;;
4511  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4512$as_echo "print -r" >&6; } ;;
4513  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4514$as_echo "cat" >&6; } ;;
4515esac
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4531$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4532if ${ac_cv_path_SED+:} false; then :
4533  $as_echo_n "(cached) " >&6
4534else
4535            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4536     for ac_i in 1 2 3 4 5 6 7; do
4537       ac_script="$ac_script$as_nl$ac_script"
4538     done
4539     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4540     { ac_script=; unset ac_script;}
4541     if test -z "$SED"; then
4542  ac_path_SED_found=false
4543  # Loop through the user's path and test for each of PROGNAME-LIST
4544  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547  IFS=$as_save_IFS
4548  test -z "$as_dir" && as_dir=.
4549    for ac_prog in sed gsed; do
4550    for ac_exec_ext in '' $ac_executable_extensions; do
4551      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4552      as_fn_executable_p "$ac_path_SED" || continue
4553# Check for GNU ac_path_SED and select it if it is found.
4554  # Check for GNU $ac_path_SED
4555case `"$ac_path_SED" --version 2>&1` in
4556*GNU*)
4557  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4558*)
4559  ac_count=0
4560  $as_echo_n 0123456789 >"conftest.in"
4561  while :
4562  do
4563    cat "conftest.in" "conftest.in" >"conftest.tmp"
4564    mv "conftest.tmp" "conftest.in"
4565    cp "conftest.in" "conftest.nl"
4566    $as_echo '' >> "conftest.nl"
4567    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569    as_fn_arith $ac_count + 1 && ac_count=$as_val
4570    if test $ac_count -gt ${ac_path_SED_max-0}; then
4571      # Best one so far, save it but keep looking for a better one
4572      ac_cv_path_SED="$ac_path_SED"
4573      ac_path_SED_max=$ac_count
4574    fi
4575    # 10*(2^10) chars as input seems more than enough
4576    test $ac_count -gt 10 && break
4577  done
4578  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579esac
4580
4581      $ac_path_SED_found && break 3
4582    done
4583  done
4584  done
4585IFS=$as_save_IFS
4586  if test -z "$ac_cv_path_SED"; then
4587    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4588  fi
4589else
4590  ac_cv_path_SED=$SED
4591fi
4592
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4595$as_echo "$ac_cv_path_SED" >&6; }
4596 SED="$ac_cv_path_SED"
4597  rm -f conftest.sed
4598
4599test -z "$SED" && SED=sed
4600Xsed="$SED -e 1s/^X//"
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4613$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4614if ${ac_cv_path_GREP+:} false; then :
4615  $as_echo_n "(cached) " >&6
4616else
4617  if test -z "$GREP"; then
4618  ac_path_GREP_found=false
4619  # Loop through the user's path and test for each of PROGNAME-LIST
4620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4622do
4623  IFS=$as_save_IFS
4624  test -z "$as_dir" && as_dir=.
4625    for ac_prog in grep ggrep; do
4626    for ac_exec_ext in '' $ac_executable_extensions; do
4627      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4628      as_fn_executable_p "$ac_path_GREP" || continue
4629# Check for GNU ac_path_GREP and select it if it is found.
4630  # Check for GNU $ac_path_GREP
4631case `"$ac_path_GREP" --version 2>&1` in
4632*GNU*)
4633  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4634*)
4635  ac_count=0
4636  $as_echo_n 0123456789 >"conftest.in"
4637  while :
4638  do
4639    cat "conftest.in" "conftest.in" >"conftest.tmp"
4640    mv "conftest.tmp" "conftest.in"
4641    cp "conftest.in" "conftest.nl"
4642    $as_echo 'GREP' >> "conftest.nl"
4643    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645    as_fn_arith $ac_count + 1 && ac_count=$as_val
4646    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4647      # Best one so far, save it but keep looking for a better one
4648      ac_cv_path_GREP="$ac_path_GREP"
4649      ac_path_GREP_max=$ac_count
4650    fi
4651    # 10*(2^10) chars as input seems more than enough
4652    test $ac_count -gt 10 && break
4653  done
4654  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4655esac
4656
4657      $ac_path_GREP_found && break 3
4658    done
4659  done
4660  done
4661IFS=$as_save_IFS
4662  if test -z "$ac_cv_path_GREP"; then
4663    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4664  fi
4665else
4666  ac_cv_path_GREP=$GREP
4667fi
4668
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4671$as_echo "$ac_cv_path_GREP" >&6; }
4672 GREP="$ac_cv_path_GREP"
4673
4674
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4676$as_echo_n "checking for egrep... " >&6; }
4677if ${ac_cv_path_EGREP+:} false; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4681   then ac_cv_path_EGREP="$GREP -E"
4682   else
4683     if test -z "$EGREP"; then
4684  ac_path_EGREP_found=false
4685  # Loop through the user's path and test for each of PROGNAME-LIST
4686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4688do
4689  IFS=$as_save_IFS
4690  test -z "$as_dir" && as_dir=.
4691    for ac_prog in egrep; do
4692    for ac_exec_ext in '' $ac_executable_extensions; do
4693      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4694      as_fn_executable_p "$ac_path_EGREP" || continue
4695# Check for GNU ac_path_EGREP and select it if it is found.
4696  # Check for GNU $ac_path_EGREP
4697case `"$ac_path_EGREP" --version 2>&1` in
4698*GNU*)
4699  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4700*)
4701  ac_count=0
4702  $as_echo_n 0123456789 >"conftest.in"
4703  while :
4704  do
4705    cat "conftest.in" "conftest.in" >"conftest.tmp"
4706    mv "conftest.tmp" "conftest.in"
4707    cp "conftest.in" "conftest.nl"
4708    $as_echo 'EGREP' >> "conftest.nl"
4709    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4711    as_fn_arith $ac_count + 1 && ac_count=$as_val
4712    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4713      # Best one so far, save it but keep looking for a better one
4714      ac_cv_path_EGREP="$ac_path_EGREP"
4715      ac_path_EGREP_max=$ac_count
4716    fi
4717    # 10*(2^10) chars as input seems more than enough
4718    test $ac_count -gt 10 && break
4719  done
4720  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4721esac
4722
4723      $ac_path_EGREP_found && break 3
4724    done
4725  done
4726  done
4727IFS=$as_save_IFS
4728  if test -z "$ac_cv_path_EGREP"; then
4729    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4730  fi
4731else
4732  ac_cv_path_EGREP=$EGREP
4733fi
4734
4735   fi
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4738$as_echo "$ac_cv_path_EGREP" >&6; }
4739 EGREP="$ac_cv_path_EGREP"
4740
4741
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4743$as_echo_n "checking for fgrep... " >&6; }
4744if ${ac_cv_path_FGREP+:} false; then :
4745  $as_echo_n "(cached) " >&6
4746else
4747  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4748   then ac_cv_path_FGREP="$GREP -F"
4749   else
4750     if test -z "$FGREP"; then
4751  ac_path_FGREP_found=false
4752  # Loop through the user's path and test for each of PROGNAME-LIST
4753  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4755do
4756  IFS=$as_save_IFS
4757  test -z "$as_dir" && as_dir=.
4758    for ac_prog in fgrep; do
4759    for ac_exec_ext in '' $ac_executable_extensions; do
4760      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4761      as_fn_executable_p "$ac_path_FGREP" || continue
4762# Check for GNU ac_path_FGREP and select it if it is found.
4763  # Check for GNU $ac_path_FGREP
4764case `"$ac_path_FGREP" --version 2>&1` in
4765*GNU*)
4766  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4767*)
4768  ac_count=0
4769  $as_echo_n 0123456789 >"conftest.in"
4770  while :
4771  do
4772    cat "conftest.in" "conftest.in" >"conftest.tmp"
4773    mv "conftest.tmp" "conftest.in"
4774    cp "conftest.in" "conftest.nl"
4775    $as_echo 'FGREP' >> "conftest.nl"
4776    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4777    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4778    as_fn_arith $ac_count + 1 && ac_count=$as_val
4779    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4780      # Best one so far, save it but keep looking for a better one
4781      ac_cv_path_FGREP="$ac_path_FGREP"
4782      ac_path_FGREP_max=$ac_count
4783    fi
4784    # 10*(2^10) chars as input seems more than enough
4785    test $ac_count -gt 10 && break
4786  done
4787  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788esac
4789
4790      $ac_path_FGREP_found && break 3
4791    done
4792  done
4793  done
4794IFS=$as_save_IFS
4795  if test -z "$ac_cv_path_FGREP"; then
4796    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4797  fi
4798else
4799  ac_cv_path_FGREP=$FGREP
4800fi
4801
4802   fi
4803fi
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4805$as_echo "$ac_cv_path_FGREP" >&6; }
4806 FGREP="$ac_cv_path_FGREP"
4807
4808
4809test -z "$GREP" && GREP=grep
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829# Check whether --with-gnu-ld was given.
4830if test "${with_gnu_ld+set}" = set; then :
4831  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4832else
4833  with_gnu_ld=no
4834fi
4835
4836ac_prog=ld
4837if test yes = "$GCC"; then
4838  # Check if gcc -print-prog-name=ld gives a path.
4839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4840$as_echo_n "checking for ld used by $CC... " >&6; }
4841  case $host in
4842  *-*-mingw*)
4843    # gcc leaves a trailing carriage return, which upsets mingw
4844    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4845  *)
4846    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4847  esac
4848  case $ac_prog in
4849    # Accept absolute paths.
4850    [\\/]* | ?:[\\/]*)
4851      re_direlt='/[^/][^/]*/\.\./'
4852      # Canonicalize the pathname of ld
4853      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4854      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4855	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4856      done
4857      test -z "$LD" && LD=$ac_prog
4858      ;;
4859  "")
4860    # If it fails, then pretend we aren't using GCC.
4861    ac_prog=ld
4862    ;;
4863  *)
4864    # If it is relative, then search for the first ld in PATH.
4865    with_gnu_ld=unknown
4866    ;;
4867  esac
4868elif test yes = "$with_gnu_ld"; then
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4870$as_echo_n "checking for GNU ld... " >&6; }
4871else
4872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4873$as_echo_n "checking for non-GNU ld... " >&6; }
4874fi
4875if ${lt_cv_path_LD+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  if test -z "$LD"; then
4879  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4880  for ac_dir in $PATH; do
4881    IFS=$lt_save_ifs
4882    test -z "$ac_dir" && ac_dir=.
4883    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4884      lt_cv_path_LD=$ac_dir/$ac_prog
4885      # Check to see if the program is GNU ld.  I'd rather use --version,
4886      # but apparently some variants of GNU ld only accept -v.
4887      # Break only if it was the GNU/non-GNU ld that we prefer.
4888      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4889      *GNU* | *'with BFD'*)
4890	test no != "$with_gnu_ld" && break
4891	;;
4892      *)
4893	test yes != "$with_gnu_ld" && break
4894	;;
4895      esac
4896    fi
4897  done
4898  IFS=$lt_save_ifs
4899else
4900  lt_cv_path_LD=$LD # Let the user override the test with a path.
4901fi
4902fi
4903
4904LD=$lt_cv_path_LD
4905if test -n "$LD"; then
4906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4907$as_echo "$LD" >&6; }
4908else
4909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910$as_echo "no" >&6; }
4911fi
4912test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4914$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4915if ${lt_cv_prog_gnu_ld+:} false; then :
4916  $as_echo_n "(cached) " >&6
4917else
4918  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4919case `$LD -v 2>&1 </dev/null` in
4920*GNU* | *'with BFD'*)
4921  lt_cv_prog_gnu_ld=yes
4922  ;;
4923*)
4924  lt_cv_prog_gnu_ld=no
4925  ;;
4926esac
4927fi
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4929$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4930with_gnu_ld=$lt_cv_prog_gnu_ld
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4941$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4942if ${lt_cv_path_NM+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  if test -n "$NM"; then
4946  # Let the user override the test.
4947  lt_cv_path_NM=$NM
4948else
4949  lt_nm_to_check=${ac_tool_prefix}nm
4950  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4951    lt_nm_to_check="$lt_nm_to_check nm"
4952  fi
4953  for lt_tmp_nm in $lt_nm_to_check; do
4954    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4955    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4956      IFS=$lt_save_ifs
4957      test -z "$ac_dir" && ac_dir=.
4958      tmp_nm=$ac_dir/$lt_tmp_nm
4959      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4960	# Check to see if the nm accepts a BSD-compat flag.
4961	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4962	#   nm: unknown option "B" ignored
4963	# Tru64's nm complains that /dev/null is an invalid object file
4964	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4965	case $build_os in
4966	mingw*) lt_bad_file=conftest.nm/nofile ;;
4967	*) lt_bad_file=/dev/null ;;
4968	esac
4969	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4970	*$lt_bad_file* | *'Invalid file or object type'*)
4971	  lt_cv_path_NM="$tmp_nm -B"
4972	  break 2
4973	  ;;
4974	*)
4975	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4976	  */dev/null*)
4977	    lt_cv_path_NM="$tmp_nm -p"
4978	    break 2
4979	    ;;
4980	  *)
4981	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4982	    continue # so that we can try to find one that supports BSD flags
4983	    ;;
4984	  esac
4985	  ;;
4986	esac
4987      fi
4988    done
4989    IFS=$lt_save_ifs
4990  done
4991  : ${lt_cv_path_NM=no}
4992fi
4993fi
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4995$as_echo "$lt_cv_path_NM" >&6; }
4996if test no != "$lt_cv_path_NM"; then
4997  NM=$lt_cv_path_NM
4998else
4999  # Didn't find any BSD compatible name lister, look for dumpbin.
5000  if test -n "$DUMPBIN"; then :
5001    # Let the user override the test.
5002  else
5003    if test -n "$ac_tool_prefix"; then
5004  for ac_prog in dumpbin "link -dump"
5005  do
5006    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5007set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
5010if ${ac_cv_prog_DUMPBIN+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  if test -n "$DUMPBIN"; then
5014  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5015else
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019  IFS=$as_save_IFS
5020  test -z "$as_dir" && as_dir=.
5021    for ac_exec_ext in '' $ac_executable_extensions; do
5022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025    break 2
5026  fi
5027done
5028  done
5029IFS=$as_save_IFS
5030
5031fi
5032fi
5033DUMPBIN=$ac_cv_prog_DUMPBIN
5034if test -n "$DUMPBIN"; then
5035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5036$as_echo "$DUMPBIN" >&6; }
5037else
5038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5040fi
5041
5042
5043    test -n "$DUMPBIN" && break
5044  done
5045fi
5046if test -z "$DUMPBIN"; then
5047  ac_ct_DUMPBIN=$DUMPBIN
5048  for ac_prog in dumpbin "link -dump"
5049do
5050  # Extract the first word of "$ac_prog", so it can be a program name with args.
5051set dummy $ac_prog; ac_word=$2
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053$as_echo_n "checking for $ac_word... " >&6; }
5054if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5055  $as_echo_n "(cached) " >&6
5056else
5057  if test -n "$ac_ct_DUMPBIN"; then
5058  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5059else
5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063  IFS=$as_save_IFS
5064  test -z "$as_dir" && as_dir=.
5065    for ac_exec_ext in '' $ac_executable_extensions; do
5066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069    break 2
5070  fi
5071done
5072  done
5073IFS=$as_save_IFS
5074
5075fi
5076fi
5077ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5078if test -n "$ac_ct_DUMPBIN"; then
5079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5080$as_echo "$ac_ct_DUMPBIN" >&6; }
5081else
5082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083$as_echo "no" >&6; }
5084fi
5085
5086
5087  test -n "$ac_ct_DUMPBIN" && break
5088done
5089
5090  if test "x$ac_ct_DUMPBIN" = x; then
5091    DUMPBIN=":"
5092  else
5093    case $cross_compiling:$ac_tool_warned in
5094yes:)
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5097ac_tool_warned=yes ;;
5098esac
5099    DUMPBIN=$ac_ct_DUMPBIN
5100  fi
5101fi
5102
5103    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5104    *COFF*)
5105      DUMPBIN="$DUMPBIN -symbols -headers"
5106      ;;
5107    *)
5108      DUMPBIN=:
5109      ;;
5110    esac
5111  fi
5112
5113  if test : != "$DUMPBIN"; then
5114    NM=$DUMPBIN
5115  fi
5116fi
5117test -z "$NM" && NM=nm
5118
5119
5120
5121
5122
5123
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5125$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5126if ${lt_cv_nm_interface+:} false; then :
5127  $as_echo_n "(cached) " >&6
5128else
5129  lt_cv_nm_interface="BSD nm"
5130  echo "int some_variable = 0;" > conftest.$ac_ext
5131  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5132  (eval "$ac_compile" 2>conftest.err)
5133  cat conftest.err >&5
5134  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5135  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5136  cat conftest.err >&5
5137  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5138  cat conftest.out >&5
5139  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5140    lt_cv_nm_interface="MS dumpbin"
5141  fi
5142  rm -f conftest*
5143fi
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5145$as_echo "$lt_cv_nm_interface" >&6; }
5146
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5148$as_echo_n "checking whether ln -s works... " >&6; }
5149LN_S=$as_ln_s
5150if test "$LN_S" = "ln -s"; then
5151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5152$as_echo "yes" >&6; }
5153else
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5155$as_echo "no, using $LN_S" >&6; }
5156fi
5157
5158# find the maximum length of command line arguments
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5160$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5161if ${lt_cv_sys_max_cmd_len+:} false; then :
5162  $as_echo_n "(cached) " >&6
5163else
5164    i=0
5165  teststring=ABCD
5166
5167  case $build_os in
5168  msdosdjgpp*)
5169    # On DJGPP, this test can blow up pretty badly due to problems in libc
5170    # (any single argument exceeding 2000 bytes causes a buffer overrun
5171    # during glob expansion).  Even if it were fixed, the result of this
5172    # check would be larger than it should be.
5173    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5174    ;;
5175
5176  gnu*)
5177    # Under GNU Hurd, this test is not required because there is
5178    # no limit to the length of command line arguments.
5179    # Libtool will interpret -1 as no limit whatsoever
5180    lt_cv_sys_max_cmd_len=-1;
5181    ;;
5182
5183  cygwin* | mingw* | cegcc*)
5184    # On Win9x/ME, this test blows up -- it succeeds, but takes
5185    # about 5 minutes as the teststring grows exponentially.
5186    # Worse, since 9x/ME are not pre-emptively multitasking,
5187    # you end up with a "frozen" computer, even though with patience
5188    # the test eventually succeeds (with a max line length of 256k).
5189    # Instead, let's just punt: use the minimum linelength reported by
5190    # all of the supported platforms: 8192 (on NT/2K/XP).
5191    lt_cv_sys_max_cmd_len=8192;
5192    ;;
5193
5194  mint*)
5195    # On MiNT this can take a long time and run out of memory.
5196    lt_cv_sys_max_cmd_len=8192;
5197    ;;
5198
5199  amigaos*)
5200    # On AmigaOS with pdksh, this test takes hours, literally.
5201    # So we just punt and use a minimum line length of 8192.
5202    lt_cv_sys_max_cmd_len=8192;
5203    ;;
5204
5205  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5206    # This has been around since 386BSD, at least.  Likely further.
5207    if test -x /sbin/sysctl; then
5208      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5209    elif test -x /usr/sbin/sysctl; then
5210      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5211    else
5212      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5213    fi
5214    # And add a safety zone
5215    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5216    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5217    ;;
5218
5219  interix*)
5220    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5221    lt_cv_sys_max_cmd_len=196608
5222    ;;
5223
5224  os2*)
5225    # The test takes a long time on OS/2.
5226    lt_cv_sys_max_cmd_len=8192
5227    ;;
5228
5229  osf*)
5230    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5231    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5232    # nice to cause kernel panics so lets avoid the loop below.
5233    # First set a reasonable default.
5234    lt_cv_sys_max_cmd_len=16384
5235    #
5236    if test -x /sbin/sysconfig; then
5237      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5238        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5239      esac
5240    fi
5241    ;;
5242  sco3.2v5*)
5243    lt_cv_sys_max_cmd_len=102400
5244    ;;
5245  sysv5* | sco5v6* | sysv4.2uw2*)
5246    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5247    if test -n "$kargmax"; then
5248      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5249    else
5250      lt_cv_sys_max_cmd_len=32768
5251    fi
5252    ;;
5253  *)
5254    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5255    if test -n "$lt_cv_sys_max_cmd_len" && \
5256       test undefined != "$lt_cv_sys_max_cmd_len"; then
5257      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5258      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5259    else
5260      # Make teststring a little bigger before we do anything with it.
5261      # a 1K string should be a reasonable start.
5262      for i in 1 2 3 4 5 6 7 8; do
5263        teststring=$teststring$teststring
5264      done
5265      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5266      # If test is not a shell built-in, we'll probably end up computing a
5267      # maximum length that is only half of the actual maximum length, but
5268      # we can't tell.
5269      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5270	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5271	      test 17 != "$i" # 1/2 MB should be enough
5272      do
5273        i=`expr $i + 1`
5274        teststring=$teststring$teststring
5275      done
5276      # Only check the string length outside the loop.
5277      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5278      teststring=
5279      # Add a significant safety factor because C++ compilers can tack on
5280      # massive amounts of additional arguments before passing them to the
5281      # linker.  It appears as though 1/2 is a usable value.
5282      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5283    fi
5284    ;;
5285  esac
5286
5287fi
5288
5289if test -n "$lt_cv_sys_max_cmd_len"; then
5290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5291$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5292else
5293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5294$as_echo "none" >&6; }
5295fi
5296max_cmd_len=$lt_cv_sys_max_cmd_len
5297
5298
5299
5300
5301
5302
5303: ${CP="cp -f"}
5304: ${MV="mv -f"}
5305: ${RM="rm -f"}
5306
5307if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5308  lt_unset=unset
5309else
5310  lt_unset=false
5311fi
5312
5313
5314
5315
5316
5317# test EBCDIC or ASCII
5318case `echo X|tr X '\101'` in
5319 A) # ASCII based system
5320    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5321  lt_SP2NL='tr \040 \012'
5322  lt_NL2SP='tr \015\012 \040\040'
5323  ;;
5324 *) # EBCDIC based system
5325  lt_SP2NL='tr \100 \n'
5326  lt_NL2SP='tr \r\n \100\100'
5327  ;;
5328esac
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5339$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5340if ${lt_cv_to_host_file_cmd+:} false; then :
5341  $as_echo_n "(cached) " >&6
5342else
5343  case $host in
5344  *-*-mingw* )
5345    case $build in
5346      *-*-mingw* ) # actually msys
5347        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5348        ;;
5349      *-*-cygwin* )
5350        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5351        ;;
5352      * ) # otherwise, assume *nix
5353        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5354        ;;
5355    esac
5356    ;;
5357  *-*-cygwin* )
5358    case $build in
5359      *-*-mingw* ) # actually msys
5360        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5361        ;;
5362      *-*-cygwin* )
5363        lt_cv_to_host_file_cmd=func_convert_file_noop
5364        ;;
5365      * ) # otherwise, assume *nix
5366        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5367        ;;
5368    esac
5369    ;;
5370  * ) # unhandled hosts (and "normal" native builds)
5371    lt_cv_to_host_file_cmd=func_convert_file_noop
5372    ;;
5373esac
5374
5375fi
5376
5377to_host_file_cmd=$lt_cv_to_host_file_cmd
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5379$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5380
5381
5382
5383
5384
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5386$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5387if ${lt_cv_to_tool_file_cmd+:} false; then :
5388  $as_echo_n "(cached) " >&6
5389else
5390  #assume ordinary cross tools, or native build.
5391lt_cv_to_tool_file_cmd=func_convert_file_noop
5392case $host in
5393  *-*-mingw* )
5394    case $build in
5395      *-*-mingw* ) # actually msys
5396        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5397        ;;
5398    esac
5399    ;;
5400esac
5401
5402fi
5403
5404to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5406$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5407
5408
5409
5410
5411
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5413$as_echo_n "checking for $LD option to reload object files... " >&6; }
5414if ${lt_cv_ld_reload_flag+:} false; then :
5415  $as_echo_n "(cached) " >&6
5416else
5417  lt_cv_ld_reload_flag='-r'
5418fi
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5420$as_echo "$lt_cv_ld_reload_flag" >&6; }
5421reload_flag=$lt_cv_ld_reload_flag
5422case $reload_flag in
5423"" | " "*) ;;
5424*) reload_flag=" $reload_flag" ;;
5425esac
5426reload_cmds='$LD$reload_flag -o $output$reload_objs'
5427case $host_os in
5428  cygwin* | mingw* | pw32* | cegcc*)
5429    if test yes != "$GCC"; then
5430      reload_cmds=false
5431    fi
5432    ;;
5433  darwin*)
5434    if test yes = "$GCC"; then
5435      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5436    else
5437      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5438    fi
5439    ;;
5440esac
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450if test -n "$ac_tool_prefix"; then
5451  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5452set dummy ${ac_tool_prefix}objdump; ac_word=$2
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
5455if ${ac_cv_prog_OBJDUMP+:} false; then :
5456  $as_echo_n "(cached) " >&6
5457else
5458  if test -n "$OBJDUMP"; then
5459  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464  IFS=$as_save_IFS
5465  test -z "$as_dir" && as_dir=.
5466    for ac_exec_ext in '' $ac_executable_extensions; do
5467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470    break 2
5471  fi
5472done
5473  done
5474IFS=$as_save_IFS
5475
5476fi
5477fi
5478OBJDUMP=$ac_cv_prog_OBJDUMP
5479if test -n "$OBJDUMP"; then
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5481$as_echo "$OBJDUMP" >&6; }
5482else
5483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484$as_echo "no" >&6; }
5485fi
5486
5487
5488fi
5489if test -z "$ac_cv_prog_OBJDUMP"; then
5490  ac_ct_OBJDUMP=$OBJDUMP
5491  # Extract the first word of "objdump", so it can be a program name with args.
5492set dummy objdump; ac_word=$2
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494$as_echo_n "checking for $ac_word... " >&6; }
5495if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5496  $as_echo_n "(cached) " >&6
5497else
5498  if test -n "$ac_ct_OBJDUMP"; then
5499  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5500else
5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH
5503do
5504  IFS=$as_save_IFS
5505  test -z "$as_dir" && as_dir=.
5506    for ac_exec_ext in '' $ac_executable_extensions; do
5507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510    break 2
5511  fi
5512done
5513  done
5514IFS=$as_save_IFS
5515
5516fi
5517fi
5518ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5519if test -n "$ac_ct_OBJDUMP"; then
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5521$as_echo "$ac_ct_OBJDUMP" >&6; }
5522else
5523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524$as_echo "no" >&6; }
5525fi
5526
5527  if test "x$ac_ct_OBJDUMP" = x; then
5528    OBJDUMP="false"
5529  else
5530    case $cross_compiling:$ac_tool_warned in
5531yes:)
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5534ac_tool_warned=yes ;;
5535esac
5536    OBJDUMP=$ac_ct_OBJDUMP
5537  fi
5538else
5539  OBJDUMP="$ac_cv_prog_OBJDUMP"
5540fi
5541
5542test -z "$OBJDUMP" && OBJDUMP=objdump
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5553$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5554if ${lt_cv_deplibs_check_method+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  lt_cv_file_magic_cmd='$MAGIC_CMD'
5558lt_cv_file_magic_test_file=
5559lt_cv_deplibs_check_method='unknown'
5560# Need to set the preceding variable on all platforms that support
5561# interlibrary dependencies.
5562# 'none' -- dependencies not supported.
5563# 'unknown' -- same as none, but documents that we really don't know.
5564# 'pass_all' -- all dependencies passed with no checks.
5565# 'test_compile' -- check by making test program.
5566# 'file_magic [[regex]]' -- check by looking for files in library path
5567# that responds to the $file_magic_cmd with a given extended regex.
5568# If you have 'file' or equivalent on your system and you're not sure
5569# whether 'pass_all' will *always* work, you probably want this one.
5570
5571case $host_os in
5572aix[4-9]*)
5573  lt_cv_deplibs_check_method=pass_all
5574  ;;
5575
5576beos*)
5577  lt_cv_deplibs_check_method=pass_all
5578  ;;
5579
5580bsdi[45]*)
5581  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5582  lt_cv_file_magic_cmd='/usr/bin/file -L'
5583  lt_cv_file_magic_test_file=/shlib/libc.so
5584  ;;
5585
5586cygwin*)
5587  # func_win32_libid is a shell function defined in ltmain.sh
5588  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5589  lt_cv_file_magic_cmd='func_win32_libid'
5590  ;;
5591
5592mingw* | pw32*)
5593  # Base MSYS/MinGW do not provide the 'file' command needed by
5594  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5595  # unless we find 'file', for example because we are cross-compiling.
5596  if ( file / ) >/dev/null 2>&1; then
5597    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5598    lt_cv_file_magic_cmd='func_win32_libid'
5599  else
5600    # Keep this pattern in sync with the one in func_win32_libid.
5601    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5602    lt_cv_file_magic_cmd='$OBJDUMP -f'
5603  fi
5604  ;;
5605
5606cegcc*)
5607  # use the weaker test based on 'objdump'. See mingw*.
5608  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5609  lt_cv_file_magic_cmd='$OBJDUMP -f'
5610  ;;
5611
5612darwin* | rhapsody*)
5613  lt_cv_deplibs_check_method=pass_all
5614  ;;
5615
5616freebsd* | dragonfly*)
5617  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5618    case $host_cpu in
5619    i*86 )
5620      # Not sure whether the presence of OpenBSD here was a mistake.
5621      # Let's accept both of them until this is cleared up.
5622      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5623      lt_cv_file_magic_cmd=/usr/bin/file
5624      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5625      ;;
5626    esac
5627  else
5628    lt_cv_deplibs_check_method=pass_all
5629  fi
5630  ;;
5631
5632haiku*)
5633  lt_cv_deplibs_check_method=pass_all
5634  ;;
5635
5636hpux10.20* | hpux11*)
5637  lt_cv_file_magic_cmd=/usr/bin/file
5638  case $host_cpu in
5639  ia64*)
5640    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5641    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5642    ;;
5643  hppa*64*)
5644    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]'
5645    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5646    ;;
5647  *)
5648    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5649    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5650    ;;
5651  esac
5652  ;;
5653
5654interix[3-9]*)
5655  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5656  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5657  ;;
5658
5659irix5* | irix6* | nonstopux*)
5660  case $LD in
5661  *-32|*"-32 ") libmagic=32-bit;;
5662  *-n32|*"-n32 ") libmagic=N32;;
5663  *-64|*"-64 ") libmagic=64-bit;;
5664  *) libmagic=never-match;;
5665  esac
5666  lt_cv_deplibs_check_method=pass_all
5667  ;;
5668
5669# This must be glibc/ELF.
5670linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5671  lt_cv_deplibs_check_method=pass_all
5672  ;;
5673
5674netbsd* | netbsdelf*-gnu)
5675  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5676    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5677  else
5678    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5679  fi
5680  ;;
5681
5682newos6*)
5683  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5684  lt_cv_file_magic_cmd=/usr/bin/file
5685  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5686  ;;
5687
5688*nto* | *qnx*)
5689  lt_cv_deplibs_check_method=pass_all
5690  ;;
5691
5692openbsd* | bitrig*)
5693  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5694    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5695  else
5696    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5697  fi
5698  ;;
5699
5700osf3* | osf4* | osf5*)
5701  lt_cv_deplibs_check_method=pass_all
5702  ;;
5703
5704rdos*)
5705  lt_cv_deplibs_check_method=pass_all
5706  ;;
5707
5708solaris*)
5709  lt_cv_deplibs_check_method=pass_all
5710  ;;
5711
5712sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5713  lt_cv_deplibs_check_method=pass_all
5714  ;;
5715
5716sysv4 | sysv4.3*)
5717  case $host_vendor in
5718  motorola)
5719    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]'
5720    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5721    ;;
5722  ncr)
5723    lt_cv_deplibs_check_method=pass_all
5724    ;;
5725  sequent)
5726    lt_cv_file_magic_cmd='/bin/file'
5727    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5728    ;;
5729  sni)
5730    lt_cv_file_magic_cmd='/bin/file'
5731    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5732    lt_cv_file_magic_test_file=/lib/libc.so
5733    ;;
5734  siemens)
5735    lt_cv_deplibs_check_method=pass_all
5736    ;;
5737  pc)
5738    lt_cv_deplibs_check_method=pass_all
5739    ;;
5740  esac
5741  ;;
5742
5743tpf*)
5744  lt_cv_deplibs_check_method=pass_all
5745  ;;
5746os2*)
5747  lt_cv_deplibs_check_method=pass_all
5748  ;;
5749esac
5750
5751fi
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5753$as_echo "$lt_cv_deplibs_check_method" >&6; }
5754
5755file_magic_glob=
5756want_nocaseglob=no
5757if test "$build" = "$host"; then
5758  case $host_os in
5759  mingw* | pw32*)
5760    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5761      want_nocaseglob=yes
5762    else
5763      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5764    fi
5765    ;;
5766  esac
5767fi
5768
5769file_magic_cmd=$lt_cv_file_magic_cmd
5770deplibs_check_method=$lt_cv_deplibs_check_method
5771test -z "$deplibs_check_method" && deplibs_check_method=unknown
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794if test -n "$ac_tool_prefix"; then
5795  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5796set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798$as_echo_n "checking for $ac_word... " >&6; }
5799if ${ac_cv_prog_DLLTOOL+:} false; then :
5800  $as_echo_n "(cached) " >&6
5801else
5802  if test -n "$DLLTOOL"; then
5803  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5804else
5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808  IFS=$as_save_IFS
5809  test -z "$as_dir" && as_dir=.
5810    for ac_exec_ext in '' $ac_executable_extensions; do
5811  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814    break 2
5815  fi
5816done
5817  done
5818IFS=$as_save_IFS
5819
5820fi
5821fi
5822DLLTOOL=$ac_cv_prog_DLLTOOL
5823if test -n "$DLLTOOL"; then
5824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5825$as_echo "$DLLTOOL" >&6; }
5826else
5827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828$as_echo "no" >&6; }
5829fi
5830
5831
5832fi
5833if test -z "$ac_cv_prog_DLLTOOL"; then
5834  ac_ct_DLLTOOL=$DLLTOOL
5835  # Extract the first word of "dlltool", so it can be a program name with args.
5836set dummy dlltool; ac_word=$2
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838$as_echo_n "checking for $ac_word... " >&6; }
5839if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5840  $as_echo_n "(cached) " >&6
5841else
5842  if test -n "$ac_ct_DLLTOOL"; then
5843  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5844else
5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848  IFS=$as_save_IFS
5849  test -z "$as_dir" && as_dir=.
5850    for ac_exec_ext in '' $ac_executable_extensions; do
5851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854    break 2
5855  fi
5856done
5857  done
5858IFS=$as_save_IFS
5859
5860fi
5861fi
5862ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5863if test -n "$ac_ct_DLLTOOL"; then
5864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5865$as_echo "$ac_ct_DLLTOOL" >&6; }
5866else
5867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
5869fi
5870
5871  if test "x$ac_ct_DLLTOOL" = x; then
5872    DLLTOOL="false"
5873  else
5874    case $cross_compiling:$ac_tool_warned in
5875yes:)
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878ac_tool_warned=yes ;;
5879esac
5880    DLLTOOL=$ac_ct_DLLTOOL
5881  fi
5882else
5883  DLLTOOL="$ac_cv_prog_DLLTOOL"
5884fi
5885
5886test -z "$DLLTOOL" && DLLTOOL=dlltool
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5898$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5899if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5900  $as_echo_n "(cached) " >&6
5901else
5902  lt_cv_sharedlib_from_linklib_cmd='unknown'
5903
5904case $host_os in
5905cygwin* | mingw* | pw32* | cegcc*)
5906  # two different shell functions defined in ltmain.sh;
5907  # decide which one to use based on capabilities of $DLLTOOL
5908  case `$DLLTOOL --help 2>&1` in
5909  *--identify-strict*)
5910    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5911    ;;
5912  *)
5913    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5914    ;;
5915  esac
5916  ;;
5917*)
5918  # fallback: assume linklib IS sharedlib
5919  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5920  ;;
5921esac
5922
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5925$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5926sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5927test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5928
5929
5930
5931
5932
5933
5934
5935
5936if test -n "$ac_tool_prefix"; then
5937  for ac_prog in ar
5938  do
5939    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5940set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942$as_echo_n "checking for $ac_word... " >&6; }
5943if ${ac_cv_prog_AR+:} false; then :
5944  $as_echo_n "(cached) " >&6
5945else
5946  if test -n "$AR"; then
5947  ac_cv_prog_AR="$AR" # Let the user override the test.
5948else
5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH
5951do
5952  IFS=$as_save_IFS
5953  test -z "$as_dir" && as_dir=.
5954    for ac_exec_ext in '' $ac_executable_extensions; do
5955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5956    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958    break 2
5959  fi
5960done
5961  done
5962IFS=$as_save_IFS
5963
5964fi
5965fi
5966AR=$ac_cv_prog_AR
5967if test -n "$AR"; then
5968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5969$as_echo "$AR" >&6; }
5970else
5971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972$as_echo "no" >&6; }
5973fi
5974
5975
5976    test -n "$AR" && break
5977  done
5978fi
5979if test -z "$AR"; then
5980  ac_ct_AR=$AR
5981  for ac_prog in ar
5982do
5983  # Extract the first word of "$ac_prog", so it can be a program name with args.
5984set dummy $ac_prog; ac_word=$2
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986$as_echo_n "checking for $ac_word... " >&6; }
5987if ${ac_cv_prog_ac_ct_AR+:} false; then :
5988  $as_echo_n "(cached) " >&6
5989else
5990  if test -n "$ac_ct_AR"; then
5991  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5992else
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996  IFS=$as_save_IFS
5997  test -z "$as_dir" && as_dir=.
5998    for ac_exec_ext in '' $ac_executable_extensions; do
5999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000    ac_cv_prog_ac_ct_AR="$ac_prog"
6001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002    break 2
6003  fi
6004done
6005  done
6006IFS=$as_save_IFS
6007
6008fi
6009fi
6010ac_ct_AR=$ac_cv_prog_ac_ct_AR
6011if test -n "$ac_ct_AR"; then
6012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6013$as_echo "$ac_ct_AR" >&6; }
6014else
6015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016$as_echo "no" >&6; }
6017fi
6018
6019
6020  test -n "$ac_ct_AR" && break
6021done
6022
6023  if test "x$ac_ct_AR" = x; then
6024    AR="false"
6025  else
6026    case $cross_compiling:$ac_tool_warned in
6027yes:)
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6030ac_tool_warned=yes ;;
6031esac
6032    AR=$ac_ct_AR
6033  fi
6034fi
6035
6036: ${AR=ar}
6037: ${AR_FLAGS=cr}
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6050$as_echo_n "checking for archiver @FILE support... " >&6; }
6051if ${lt_cv_ar_at_file+:} false; then :
6052  $as_echo_n "(cached) " >&6
6053else
6054  lt_cv_ar_at_file=no
6055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h.  */
6057
6058int
6059main ()
6060{
6061
6062  ;
6063  return 0;
6064}
6065_ACEOF
6066if ac_fn_cxx_try_compile "$LINENO"; then :
6067  echo conftest.$ac_objext > conftest.lst
6068      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6069      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6070  (eval $lt_ar_try) 2>&5
6071  ac_status=$?
6072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6073  test $ac_status = 0; }
6074      if test 0 -eq "$ac_status"; then
6075	# Ensure the archiver fails upon bogus file names.
6076	rm -f conftest.$ac_objext libconftest.a
6077	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6078  (eval $lt_ar_try) 2>&5
6079  ac_status=$?
6080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6081  test $ac_status = 0; }
6082	if test 0 -ne "$ac_status"; then
6083          lt_cv_ar_at_file=@
6084        fi
6085      fi
6086      rm -f conftest.* libconftest.a
6087
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090
6091fi
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6093$as_echo "$lt_cv_ar_at_file" >&6; }
6094
6095if test no = "$lt_cv_ar_at_file"; then
6096  archiver_list_spec=
6097else
6098  archiver_list_spec=$lt_cv_ar_at_file
6099fi
6100
6101
6102
6103
6104
6105
6106
6107if test -n "$ac_tool_prefix"; then
6108  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6109set dummy ${ac_tool_prefix}strip; ac_word=$2
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111$as_echo_n "checking for $ac_word... " >&6; }
6112if ${ac_cv_prog_STRIP+:} false; then :
6113  $as_echo_n "(cached) " >&6
6114else
6115  if test -n "$STRIP"; then
6116  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121  IFS=$as_save_IFS
6122  test -z "$as_dir" && as_dir=.
6123    for ac_exec_ext in '' $ac_executable_extensions; do
6124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127    break 2
6128  fi
6129done
6130  done
6131IFS=$as_save_IFS
6132
6133fi
6134fi
6135STRIP=$ac_cv_prog_STRIP
6136if test -n "$STRIP"; then
6137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6138$as_echo "$STRIP" >&6; }
6139else
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141$as_echo "no" >&6; }
6142fi
6143
6144
6145fi
6146if test -z "$ac_cv_prog_STRIP"; then
6147  ac_ct_STRIP=$STRIP
6148  # Extract the first word of "strip", so it can be a program name with args.
6149set dummy strip; ac_word=$2
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151$as_echo_n "checking for $ac_word... " >&6; }
6152if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  if test -n "$ac_ct_STRIP"; then
6156  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161  IFS=$as_save_IFS
6162  test -z "$as_dir" && as_dir=.
6163    for ac_exec_ext in '' $ac_executable_extensions; do
6164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165    ac_cv_prog_ac_ct_STRIP="strip"
6166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167    break 2
6168  fi
6169done
6170  done
6171IFS=$as_save_IFS
6172
6173fi
6174fi
6175ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6176if test -n "$ac_ct_STRIP"; then
6177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6178$as_echo "$ac_ct_STRIP" >&6; }
6179else
6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184  if test "x$ac_ct_STRIP" = x; then
6185    STRIP=":"
6186  else
6187    case $cross_compiling:$ac_tool_warned in
6188yes:)
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191ac_tool_warned=yes ;;
6192esac
6193    STRIP=$ac_ct_STRIP
6194  fi
6195else
6196  STRIP="$ac_cv_prog_STRIP"
6197fi
6198
6199test -z "$STRIP" && STRIP=:
6200
6201
6202
6203
6204
6205
6206if test -n "$ac_tool_prefix"; then
6207  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6208set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210$as_echo_n "checking for $ac_word... " >&6; }
6211if ${ac_cv_prog_RANLIB+:} false; then :
6212  $as_echo_n "(cached) " >&6
6213else
6214  if test -n "$RANLIB"; then
6215  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220  IFS=$as_save_IFS
6221  test -z "$as_dir" && as_dir=.
6222    for ac_exec_ext in '' $ac_executable_extensions; do
6223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226    break 2
6227  fi
6228done
6229  done
6230IFS=$as_save_IFS
6231
6232fi
6233fi
6234RANLIB=$ac_cv_prog_RANLIB
6235if test -n "$RANLIB"; then
6236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6237$as_echo "$RANLIB" >&6; }
6238else
6239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240$as_echo "no" >&6; }
6241fi
6242
6243
6244fi
6245if test -z "$ac_cv_prog_RANLIB"; then
6246  ac_ct_RANLIB=$RANLIB
6247  # Extract the first word of "ranlib", so it can be a program name with args.
6248set dummy ranlib; ac_word=$2
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250$as_echo_n "checking for $ac_word... " >&6; }
6251if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6252  $as_echo_n "(cached) " >&6
6253else
6254  if test -n "$ac_ct_RANLIB"; then
6255  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6256else
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260  IFS=$as_save_IFS
6261  test -z "$as_dir" && as_dir=.
6262    for ac_exec_ext in '' $ac_executable_extensions; do
6263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264    ac_cv_prog_ac_ct_RANLIB="ranlib"
6265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266    break 2
6267  fi
6268done
6269  done
6270IFS=$as_save_IFS
6271
6272fi
6273fi
6274ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6275if test -n "$ac_ct_RANLIB"; then
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6277$as_echo "$ac_ct_RANLIB" >&6; }
6278else
6279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280$as_echo "no" >&6; }
6281fi
6282
6283  if test "x$ac_ct_RANLIB" = x; then
6284    RANLIB=":"
6285  else
6286    case $cross_compiling:$ac_tool_warned in
6287yes:)
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290ac_tool_warned=yes ;;
6291esac
6292    RANLIB=$ac_ct_RANLIB
6293  fi
6294else
6295  RANLIB="$ac_cv_prog_RANLIB"
6296fi
6297
6298test -z "$RANLIB" && RANLIB=:
6299
6300
6301
6302
6303
6304
6305# Determine commands to create old-style static archives.
6306old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6307old_postinstall_cmds='chmod 644 $oldlib'
6308old_postuninstall_cmds=
6309
6310if test -n "$RANLIB"; then
6311  case $host_os in
6312  bitrig* | openbsd*)
6313    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6314    ;;
6315  *)
6316    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6317    ;;
6318  esac
6319  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6320fi
6321
6322case $host_os in
6323  darwin*)
6324    lock_old_archive_extraction=yes ;;
6325  *)
6326    lock_old_archive_extraction=no ;;
6327esac
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367# If no C compiler was specified, use CC.
6368LTCC=${LTCC-"$CC"}
6369
6370# If no C compiler flags were specified, use CFLAGS.
6371LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6372
6373# Allow CC to be a program name with arguments.
6374compiler=$CC
6375
6376
6377# Check for command to grab the raw symbol name followed by C symbol from nm.
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6379$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6380if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6381  $as_echo_n "(cached) " >&6
6382else
6383
6384# These are sane defaults that work on at least a few old systems.
6385# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6386
6387# Character class describing NM global symbol codes.
6388symcode='[BCDEGRST]'
6389
6390# Regexp to match symbols that can be accessed directly from C.
6391sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6392
6393# Define system-specific variables.
6394case $host_os in
6395aix*)
6396  symcode='[BCDT]'
6397  ;;
6398cygwin* | mingw* | pw32* | cegcc*)
6399  symcode='[ABCDGISTW]'
6400  ;;
6401hpux*)
6402  if test ia64 = "$host_cpu"; then
6403    symcode='[ABCDEGRST]'
6404  fi
6405  ;;
6406irix* | nonstopux*)
6407  symcode='[BCDEGRST]'
6408  ;;
6409osf*)
6410  symcode='[BCDEGQRST]'
6411  ;;
6412solaris*)
6413  symcode='[BDRT]'
6414  ;;
6415sco3.2v5*)
6416  symcode='[DT]'
6417  ;;
6418sysv4.2uw2*)
6419  symcode='[DT]'
6420  ;;
6421sysv5* | sco5v6* | unixware* | OpenUNIX*)
6422  symcode='[ABDT]'
6423  ;;
6424sysv4)
6425  symcode='[DFNSTU]'
6426  ;;
6427esac
6428
6429# If we're using GNU nm, then use its standard symbol codes.
6430case `$NM -V 2>&1` in
6431*GNU* | *'with BFD'*)
6432  symcode='[ABCDGIRSTW]' ;;
6433esac
6434
6435if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6436  # Gets list of data symbols to import.
6437  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6438  # Adjust the below global symbol transforms to fixup imported variables.
6439  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6440  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6441  lt_c_name_lib_hook="\
6442  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6443  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6444else
6445  # Disable hooks by default.
6446  lt_cv_sys_global_symbol_to_import=
6447  lt_cdecl_hook=
6448  lt_c_name_hook=
6449  lt_c_name_lib_hook=
6450fi
6451
6452# Transform an extracted symbol line into a proper C declaration.
6453# Some systems (esp. on ia64) link data and code symbols differently,
6454# so use this general approach.
6455lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6456$lt_cdecl_hook\
6457" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6458" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6459
6460# Transform an extracted symbol line into symbol name and symbol address
6461lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6462$lt_c_name_hook\
6463" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6464" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6465
6466# Transform an extracted symbol line into symbol name with lib prefix and
6467# symbol address.
6468lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6469$lt_c_name_lib_hook\
6470" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6471" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6472" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6473
6474# Handle CRLF in mingw tool chain
6475opt_cr=
6476case $build_os in
6477mingw*)
6478  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6479  ;;
6480esac
6481
6482# Try without a prefix underscore, then with it.
6483for ac_symprfx in "" "_"; do
6484
6485  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6486  symxfrm="\\1 $ac_symprfx\\2 \\2"
6487
6488  # Write the raw and C identifiers.
6489  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6490    # Fake it for dumpbin and say T for any non-static function,
6491    # D for any global variable and I for any imported variable.
6492    # Also find C++ and __fastcall symbols from MSVC++,
6493    # which start with @ or ?.
6494    lt_cv_sys_global_symbol_pipe="$AWK '"\
6495"     {last_section=section; section=\$ 3};"\
6496"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6497"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6498"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6499"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6500"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6501"     \$ 0!~/External *\|/{next};"\
6502"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6503"     {if(hide[section]) next};"\
6504"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6505"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6506"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6507"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6508"     ' prfx=^$ac_symprfx"
6509  else
6510    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6511  fi
6512  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6513
6514  # Check to see that the pipe works correctly.
6515  pipe_works=no
6516
6517  rm -f conftest*
6518  cat > conftest.$ac_ext <<_LT_EOF
6519#ifdef __cplusplus
6520extern "C" {
6521#endif
6522char nm_test_var;
6523void nm_test_func(void);
6524void nm_test_func(void){}
6525#ifdef __cplusplus
6526}
6527#endif
6528int main(){nm_test_var='a';nm_test_func();return(0);}
6529_LT_EOF
6530
6531  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6532  (eval $ac_compile) 2>&5
6533  ac_status=$?
6534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535  test $ac_status = 0; }; then
6536    # Now try to grab the symbols.
6537    nlist=conftest.nm
6538    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6539    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6540      # Try sorting and uniquifying the output.
6541      if sort "$nlist" | uniq > "$nlist"T; then
6542	mv -f "$nlist"T "$nlist"
6543      else
6544	rm -f "$nlist"T
6545      fi
6546
6547      # Make sure that we snagged all the symbols we need.
6548      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6549	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6550	  cat <<_LT_EOF > conftest.$ac_ext
6551/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6552#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6553/* DATA imports from DLLs on WIN32 can't be const, because runtime
6554   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6555# define LT_DLSYM_CONST
6556#elif defined __osf__
6557/* This system does not cope well with relocations in const data.  */
6558# define LT_DLSYM_CONST
6559#else
6560# define LT_DLSYM_CONST const
6561#endif
6562
6563#ifdef __cplusplus
6564extern "C" {
6565#endif
6566
6567_LT_EOF
6568	  # Now generate the symbol file.
6569	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6570
6571	  cat <<_LT_EOF >> conftest.$ac_ext
6572
6573/* The mapping between symbol names and symbols.  */
6574LT_DLSYM_CONST struct {
6575  const char *name;
6576  void       *address;
6577}
6578lt__PROGRAM__LTX_preloaded_symbols[] =
6579{
6580  { "@PROGRAM@", (void *) 0 },
6581_LT_EOF
6582	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6583	  cat <<\_LT_EOF >> conftest.$ac_ext
6584  {0, (void *) 0}
6585};
6586
6587/* This works around a problem in FreeBSD linker */
6588#ifdef FREEBSD_WORKAROUND
6589static const void *lt_preloaded_setup() {
6590  return lt__PROGRAM__LTX_preloaded_symbols;
6591}
6592#endif
6593
6594#ifdef __cplusplus
6595}
6596#endif
6597_LT_EOF
6598	  # Now try linking the two files.
6599	  mv conftest.$ac_objext conftstm.$ac_objext
6600	  lt_globsym_save_LIBS=$LIBS
6601	  lt_globsym_save_CFLAGS=$CFLAGS
6602	  LIBS=conftstm.$ac_objext
6603	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6604	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6605  (eval $ac_link) 2>&5
6606  ac_status=$?
6607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6609	    pipe_works=yes
6610	  fi
6611	  LIBS=$lt_globsym_save_LIBS
6612	  CFLAGS=$lt_globsym_save_CFLAGS
6613	else
6614	  echo "cannot find nm_test_func in $nlist" >&5
6615	fi
6616      else
6617	echo "cannot find nm_test_var in $nlist" >&5
6618      fi
6619    else
6620      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6621    fi
6622  else
6623    echo "$progname: failed program was:" >&5
6624    cat conftest.$ac_ext >&5
6625  fi
6626  rm -rf conftest* conftst*
6627
6628  # Do not use the global_symbol_pipe unless it works.
6629  if test yes = "$pipe_works"; then
6630    break
6631  else
6632    lt_cv_sys_global_symbol_pipe=
6633  fi
6634done
6635
6636fi
6637
6638if test -z "$lt_cv_sys_global_symbol_pipe"; then
6639  lt_cv_sys_global_symbol_to_cdecl=
6640fi
6641if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6643$as_echo "failed" >&6; }
6644else
6645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6646$as_echo "ok" >&6; }
6647fi
6648
6649# Response file support.
6650if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6651  nm_file_list_spec='@'
6652elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6653  nm_file_list_spec='@'
6654fi
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6693$as_echo_n "checking for sysroot... " >&6; }
6694
6695# Check whether --with-sysroot was given.
6696if test "${with_sysroot+set}" = set; then :
6697  withval=$with_sysroot;
6698else
6699  with_sysroot=no
6700fi
6701
6702
6703lt_sysroot=
6704case $with_sysroot in #(
6705 yes)
6706   if test yes = "$GCC"; then
6707     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6708   fi
6709   ;; #(
6710 /*)
6711   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6712   ;; #(
6713 no|'')
6714   ;; #(
6715 *)
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6717$as_echo "$with_sysroot" >&6; }
6718   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6719   ;;
6720esac
6721
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6723$as_echo "${lt_sysroot:-no}" >&6; }
6724
6725
6726
6727
6728
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6730$as_echo_n "checking for a working dd... " >&6; }
6731if ${ac_cv_path_lt_DD+:} false; then :
6732  $as_echo_n "(cached) " >&6
6733else
6734  printf 0123456789abcdef0123456789abcdef >conftest.i
6735cat conftest.i conftest.i >conftest2.i
6736: ${lt_DD:=$DD}
6737if test -z "$lt_DD"; then
6738  ac_path_lt_DD_found=false
6739  # Loop through the user's path and test for each of PROGNAME-LIST
6740  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741for as_dir in $PATH
6742do
6743  IFS=$as_save_IFS
6744  test -z "$as_dir" && as_dir=.
6745    for ac_prog in dd; do
6746    for ac_exec_ext in '' $ac_executable_extensions; do
6747      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6748      as_fn_executable_p "$ac_path_lt_DD" || continue
6749if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6750  cmp -s conftest.i conftest.out \
6751  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6752fi
6753      $ac_path_lt_DD_found && break 3
6754    done
6755  done
6756  done
6757IFS=$as_save_IFS
6758  if test -z "$ac_cv_path_lt_DD"; then
6759    :
6760  fi
6761else
6762  ac_cv_path_lt_DD=$lt_DD
6763fi
6764
6765rm -f conftest.i conftest2.i conftest.out
6766fi
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6768$as_echo "$ac_cv_path_lt_DD" >&6; }
6769
6770
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6772$as_echo_n "checking how to truncate binary pipes... " >&6; }
6773if ${lt_cv_truncate_bin+:} false; then :
6774  $as_echo_n "(cached) " >&6
6775else
6776  printf 0123456789abcdef0123456789abcdef >conftest.i
6777cat conftest.i conftest.i >conftest2.i
6778lt_cv_truncate_bin=
6779if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6780  cmp -s conftest.i conftest.out \
6781  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6782fi
6783rm -f conftest.i conftest2.i conftest.out
6784test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6785fi
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6787$as_echo "$lt_cv_truncate_bin" >&6; }
6788
6789
6790
6791
6792
6793
6794
6795# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6796func_cc_basename ()
6797{
6798    for cc_temp in $*""; do
6799      case $cc_temp in
6800        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6801        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6802        \-*) ;;
6803        *) break;;
6804      esac
6805    done
6806    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6807}
6808
6809
6810# Check whether --enable-libtool-lock was given.
6811if test "${enable_libtool_lock+set}" = set; then :
6812  enableval=$enable_libtool_lock;
6813fi
6814
6815test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6816
6817# Some flags need to be propagated to the compiler or linker for good
6818# libtool support.
6819case $host in
6820ia64-*-hpux*)
6821  # Find out what ABI is being produced by ac_compile, and set mode
6822  # options accordingly.
6823  echo 'int i;' > conftest.$ac_ext
6824  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6825  (eval $ac_compile) 2>&5
6826  ac_status=$?
6827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828  test $ac_status = 0; }; then
6829    case `/usr/bin/file conftest.$ac_objext` in
6830      *ELF-32*)
6831	HPUX_IA64_MODE=32
6832	;;
6833      *ELF-64*)
6834	HPUX_IA64_MODE=64
6835	;;
6836    esac
6837  fi
6838  rm -rf conftest*
6839  ;;
6840*-*-irix6*)
6841  # Find out what ABI is being produced by ac_compile, and set linker
6842  # options accordingly.
6843  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6844  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845  (eval $ac_compile) 2>&5
6846  ac_status=$?
6847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848  test $ac_status = 0; }; then
6849    if test yes = "$lt_cv_prog_gnu_ld"; then
6850      case `/usr/bin/file conftest.$ac_objext` in
6851	*32-bit*)
6852	  LD="${LD-ld} -melf32bsmip"
6853	  ;;
6854	*N32*)
6855	  LD="${LD-ld} -melf32bmipn32"
6856	  ;;
6857	*64-bit*)
6858	  LD="${LD-ld} -melf64bmip"
6859	;;
6860      esac
6861    else
6862      case `/usr/bin/file conftest.$ac_objext` in
6863	*32-bit*)
6864	  LD="${LD-ld} -32"
6865	  ;;
6866	*N32*)
6867	  LD="${LD-ld} -n32"
6868	  ;;
6869	*64-bit*)
6870	  LD="${LD-ld} -64"
6871	  ;;
6872      esac
6873    fi
6874  fi
6875  rm -rf conftest*
6876  ;;
6877
6878mips64*-*linux*)
6879  # Find out what ABI is being produced by ac_compile, and set linker
6880  # options accordingly.
6881  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6882  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883  (eval $ac_compile) 2>&5
6884  ac_status=$?
6885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886  test $ac_status = 0; }; then
6887    emul=elf
6888    case `/usr/bin/file conftest.$ac_objext` in
6889      *32-bit*)
6890	emul="${emul}32"
6891	;;
6892      *64-bit*)
6893	emul="${emul}64"
6894	;;
6895    esac
6896    case `/usr/bin/file conftest.$ac_objext` in
6897      *MSB*)
6898	emul="${emul}btsmip"
6899	;;
6900      *LSB*)
6901	emul="${emul}ltsmip"
6902	;;
6903    esac
6904    case `/usr/bin/file conftest.$ac_objext` in
6905      *N32*)
6906	emul="${emul}n32"
6907	;;
6908    esac
6909    LD="${LD-ld} -m $emul"
6910  fi
6911  rm -rf conftest*
6912  ;;
6913
6914x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6915s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6916  # Find out what ABI is being produced by ac_compile, and set linker
6917  # options accordingly.  Note that the listed cases only cover the
6918  # situations where additional linker options are needed (such as when
6919  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6920  # vice versa); the common cases where no linker options are needed do
6921  # not appear in the list.
6922  echo 'int i;' > conftest.$ac_ext
6923  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6924  (eval $ac_compile) 2>&5
6925  ac_status=$?
6926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6927  test $ac_status = 0; }; then
6928    case `/usr/bin/file conftest.o` in
6929      *32-bit*)
6930	case $host in
6931	  x86_64-*kfreebsd*-gnu)
6932	    LD="${LD-ld} -m elf_i386_fbsd"
6933	    ;;
6934	  x86_64-*linux*)
6935	    case `/usr/bin/file conftest.o` in
6936	      *x86-64*)
6937		LD="${LD-ld} -m elf32_x86_64"
6938		;;
6939	      *)
6940		LD="${LD-ld} -m elf_i386"
6941		;;
6942	    esac
6943	    ;;
6944	  powerpc64le-*linux*)
6945	    LD="${LD-ld} -m elf32lppclinux"
6946	    ;;
6947	  powerpc64-*linux*)
6948	    LD="${LD-ld} -m elf32ppclinux"
6949	    ;;
6950	  s390x-*linux*)
6951	    LD="${LD-ld} -m elf_s390"
6952	    ;;
6953	  sparc64-*linux*)
6954	    LD="${LD-ld} -m elf32_sparc"
6955	    ;;
6956	esac
6957	;;
6958      *64-bit*)
6959	case $host in
6960	  x86_64-*kfreebsd*-gnu)
6961	    LD="${LD-ld} -m elf_x86_64_fbsd"
6962	    ;;
6963	  x86_64-*linux*)
6964	    LD="${LD-ld} -m elf_x86_64"
6965	    ;;
6966	  powerpcle-*linux*)
6967	    LD="${LD-ld} -m elf64lppc"
6968	    ;;
6969	  powerpc-*linux*)
6970	    LD="${LD-ld} -m elf64ppc"
6971	    ;;
6972	  s390*-*linux*|s390*-*tpf*)
6973	    LD="${LD-ld} -m elf64_s390"
6974	    ;;
6975	  sparc*-*linux*)
6976	    LD="${LD-ld} -m elf64_sparc"
6977	    ;;
6978	esac
6979	;;
6980    esac
6981  fi
6982  rm -rf conftest*
6983  ;;
6984
6985*-*-sco3.2v5*)
6986  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6987  SAVE_CFLAGS=$CFLAGS
6988  CFLAGS="$CFLAGS -belf"
6989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6990$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6991if ${lt_cv_cc_needs_belf+:} false; then :
6992  $as_echo_n "(cached) " >&6
6993else
6994  ac_ext=c
6995ac_cpp='$CPP $CPPFLAGS'
6996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998ac_compiler_gnu=$ac_cv_c_compiler_gnu
6999
7000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h.  */
7002
7003int
7004main ()
7005{
7006
7007  ;
7008  return 0;
7009}
7010_ACEOF
7011if ac_fn_c_try_link "$LINENO"; then :
7012  lt_cv_cc_needs_belf=yes
7013else
7014  lt_cv_cc_needs_belf=no
7015fi
7016rm -f core conftest.err conftest.$ac_objext \
7017    conftest$ac_exeext conftest.$ac_ext
7018     ac_ext=c
7019ac_cpp='$CPP $CPPFLAGS'
7020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7022ac_compiler_gnu=$ac_cv_c_compiler_gnu
7023
7024fi
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7026$as_echo "$lt_cv_cc_needs_belf" >&6; }
7027  if test yes != "$lt_cv_cc_needs_belf"; then
7028    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7029    CFLAGS=$SAVE_CFLAGS
7030  fi
7031  ;;
7032*-*solaris*)
7033  # Find out what ABI is being produced by ac_compile, and set linker
7034  # options accordingly.
7035  echo 'int i;' > conftest.$ac_ext
7036  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7037  (eval $ac_compile) 2>&5
7038  ac_status=$?
7039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040  test $ac_status = 0; }; then
7041    case `/usr/bin/file conftest.o` in
7042    *64-bit*)
7043      case $lt_cv_prog_gnu_ld in
7044      yes*)
7045        case $host in
7046        i?86-*-solaris*|x86_64-*-solaris*)
7047          LD="${LD-ld} -m elf_x86_64"
7048          ;;
7049        sparc*-*-solaris*)
7050          LD="${LD-ld} -m elf64_sparc"
7051          ;;
7052        esac
7053        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7054        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7055          LD=${LD-ld}_sol2
7056        fi
7057        ;;
7058      *)
7059	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7060	  LD="${LD-ld} -64"
7061	fi
7062	;;
7063      esac
7064      ;;
7065    esac
7066  fi
7067  rm -rf conftest*
7068  ;;
7069esac
7070
7071need_locks=$enable_libtool_lock
7072
7073if test -n "$ac_tool_prefix"; then
7074  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7075set dummy ${ac_tool_prefix}mt; ac_word=$2
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077$as_echo_n "checking for $ac_word... " >&6; }
7078if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7079  $as_echo_n "(cached) " >&6
7080else
7081  if test -n "$MANIFEST_TOOL"; then
7082  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7083else
7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087  IFS=$as_save_IFS
7088  test -z "$as_dir" && as_dir=.
7089    for ac_exec_ext in '' $ac_executable_extensions; do
7090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093    break 2
7094  fi
7095done
7096  done
7097IFS=$as_save_IFS
7098
7099fi
7100fi
7101MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7102if test -n "$MANIFEST_TOOL"; then
7103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7104$as_echo "$MANIFEST_TOOL" >&6; }
7105else
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107$as_echo "no" >&6; }
7108fi
7109
7110
7111fi
7112if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7113  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7114  # Extract the first word of "mt", so it can be a program name with args.
7115set dummy mt; ac_word=$2
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117$as_echo_n "checking for $ac_word... " >&6; }
7118if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7119  $as_echo_n "(cached) " >&6
7120else
7121  if test -n "$ac_ct_MANIFEST_TOOL"; then
7122  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127  IFS=$as_save_IFS
7128  test -z "$as_dir" && as_dir=.
7129    for ac_exec_ext in '' $ac_executable_extensions; do
7130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133    break 2
7134  fi
7135done
7136  done
7137IFS=$as_save_IFS
7138
7139fi
7140fi
7141ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7142if test -n "$ac_ct_MANIFEST_TOOL"; then
7143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7144$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7145else
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147$as_echo "no" >&6; }
7148fi
7149
7150  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7151    MANIFEST_TOOL=":"
7152  else
7153    case $cross_compiling:$ac_tool_warned in
7154yes:)
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157ac_tool_warned=yes ;;
7158esac
7159    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7160  fi
7161else
7162  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7163fi
7164
7165test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7167$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7168if ${lt_cv_path_mainfest_tool+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  lt_cv_path_mainfest_tool=no
7172  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7173  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7174  cat conftest.err >&5
7175  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7176    lt_cv_path_mainfest_tool=yes
7177  fi
7178  rm -f conftest*
7179fi
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7181$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7182if test yes != "$lt_cv_path_mainfest_tool"; then
7183  MANIFEST_TOOL=:
7184fi
7185
7186
7187
7188
7189
7190
7191  case $host_os in
7192    rhapsody* | darwin*)
7193    if test -n "$ac_tool_prefix"; then
7194  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7195set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197$as_echo_n "checking for $ac_word... " >&6; }
7198if ${ac_cv_prog_DSYMUTIL+:} false; then :
7199  $as_echo_n "(cached) " >&6
7200else
7201  if test -n "$DSYMUTIL"; then
7202  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207  IFS=$as_save_IFS
7208  test -z "$as_dir" && as_dir=.
7209    for ac_exec_ext in '' $ac_executable_extensions; do
7210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213    break 2
7214  fi
7215done
7216  done
7217IFS=$as_save_IFS
7218
7219fi
7220fi
7221DSYMUTIL=$ac_cv_prog_DSYMUTIL
7222if test -n "$DSYMUTIL"; then
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7224$as_echo "$DSYMUTIL" >&6; }
7225else
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227$as_echo "no" >&6; }
7228fi
7229
7230
7231fi
7232if test -z "$ac_cv_prog_DSYMUTIL"; then
7233  ac_ct_DSYMUTIL=$DSYMUTIL
7234  # Extract the first word of "dsymutil", so it can be a program name with args.
7235set dummy dsymutil; ac_word=$2
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237$as_echo_n "checking for $ac_word... " >&6; }
7238if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7239  $as_echo_n "(cached) " >&6
7240else
7241  if test -n "$ac_ct_DSYMUTIL"; then
7242  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7243else
7244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247  IFS=$as_save_IFS
7248  test -z "$as_dir" && as_dir=.
7249    for ac_exec_ext in '' $ac_executable_extensions; do
7250  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253    break 2
7254  fi
7255done
7256  done
7257IFS=$as_save_IFS
7258
7259fi
7260fi
7261ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7262if test -n "$ac_ct_DSYMUTIL"; then
7263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7264$as_echo "$ac_ct_DSYMUTIL" >&6; }
7265else
7266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267$as_echo "no" >&6; }
7268fi
7269
7270  if test "x$ac_ct_DSYMUTIL" = x; then
7271    DSYMUTIL=":"
7272  else
7273    case $cross_compiling:$ac_tool_warned in
7274yes:)
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277ac_tool_warned=yes ;;
7278esac
7279    DSYMUTIL=$ac_ct_DSYMUTIL
7280  fi
7281else
7282  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7283fi
7284
7285    if test -n "$ac_tool_prefix"; then
7286  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7287set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289$as_echo_n "checking for $ac_word... " >&6; }
7290if ${ac_cv_prog_NMEDIT+:} false; then :
7291  $as_echo_n "(cached) " >&6
7292else
7293  if test -n "$NMEDIT"; then
7294  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7295else
7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299  IFS=$as_save_IFS
7300  test -z "$as_dir" && as_dir=.
7301    for ac_exec_ext in '' $ac_executable_extensions; do
7302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305    break 2
7306  fi
7307done
7308  done
7309IFS=$as_save_IFS
7310
7311fi
7312fi
7313NMEDIT=$ac_cv_prog_NMEDIT
7314if test -n "$NMEDIT"; then
7315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7316$as_echo "$NMEDIT" >&6; }
7317else
7318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319$as_echo "no" >&6; }
7320fi
7321
7322
7323fi
7324if test -z "$ac_cv_prog_NMEDIT"; then
7325  ac_ct_NMEDIT=$NMEDIT
7326  # Extract the first word of "nmedit", so it can be a program name with args.
7327set dummy nmedit; ac_word=$2
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329$as_echo_n "checking for $ac_word... " >&6; }
7330if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7331  $as_echo_n "(cached) " >&6
7332else
7333  if test -n "$ac_ct_NMEDIT"; then
7334  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7335else
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339  IFS=$as_save_IFS
7340  test -z "$as_dir" && as_dir=.
7341    for ac_exec_ext in '' $ac_executable_extensions; do
7342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345    break 2
7346  fi
7347done
7348  done
7349IFS=$as_save_IFS
7350
7351fi
7352fi
7353ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7354if test -n "$ac_ct_NMEDIT"; then
7355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7356$as_echo "$ac_ct_NMEDIT" >&6; }
7357else
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359$as_echo "no" >&6; }
7360fi
7361
7362  if test "x$ac_ct_NMEDIT" = x; then
7363    NMEDIT=":"
7364  else
7365    case $cross_compiling:$ac_tool_warned in
7366yes:)
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369ac_tool_warned=yes ;;
7370esac
7371    NMEDIT=$ac_ct_NMEDIT
7372  fi
7373else
7374  NMEDIT="$ac_cv_prog_NMEDIT"
7375fi
7376
7377    if test -n "$ac_tool_prefix"; then
7378  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7379set dummy ${ac_tool_prefix}lipo; ac_word=$2
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381$as_echo_n "checking for $ac_word... " >&6; }
7382if ${ac_cv_prog_LIPO+:} false; then :
7383  $as_echo_n "(cached) " >&6
7384else
7385  if test -n "$LIPO"; then
7386  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7387else
7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391  IFS=$as_save_IFS
7392  test -z "$as_dir" && as_dir=.
7393    for ac_exec_ext in '' $ac_executable_extensions; do
7394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397    break 2
7398  fi
7399done
7400  done
7401IFS=$as_save_IFS
7402
7403fi
7404fi
7405LIPO=$ac_cv_prog_LIPO
7406if test -n "$LIPO"; then
7407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7408$as_echo "$LIPO" >&6; }
7409else
7410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411$as_echo "no" >&6; }
7412fi
7413
7414
7415fi
7416if test -z "$ac_cv_prog_LIPO"; then
7417  ac_ct_LIPO=$LIPO
7418  # Extract the first word of "lipo", so it can be a program name with args.
7419set dummy lipo; ac_word=$2
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421$as_echo_n "checking for $ac_word... " >&6; }
7422if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7423  $as_echo_n "(cached) " >&6
7424else
7425  if test -n "$ac_ct_LIPO"; then
7426  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7427else
7428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429for as_dir in $PATH
7430do
7431  IFS=$as_save_IFS
7432  test -z "$as_dir" && as_dir=.
7433    for ac_exec_ext in '' $ac_executable_extensions; do
7434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435    ac_cv_prog_ac_ct_LIPO="lipo"
7436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437    break 2
7438  fi
7439done
7440  done
7441IFS=$as_save_IFS
7442
7443fi
7444fi
7445ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7446if test -n "$ac_ct_LIPO"; then
7447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7448$as_echo "$ac_ct_LIPO" >&6; }
7449else
7450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451$as_echo "no" >&6; }
7452fi
7453
7454  if test "x$ac_ct_LIPO" = x; then
7455    LIPO=":"
7456  else
7457    case $cross_compiling:$ac_tool_warned in
7458yes:)
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461ac_tool_warned=yes ;;
7462esac
7463    LIPO=$ac_ct_LIPO
7464  fi
7465else
7466  LIPO="$ac_cv_prog_LIPO"
7467fi
7468
7469    if test -n "$ac_tool_prefix"; then
7470  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7471set dummy ${ac_tool_prefix}otool; ac_word=$2
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473$as_echo_n "checking for $ac_word... " >&6; }
7474if ${ac_cv_prog_OTOOL+:} false; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477  if test -n "$OTOOL"; then
7478  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7479else
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483  IFS=$as_save_IFS
7484  test -z "$as_dir" && as_dir=.
7485    for ac_exec_ext in '' $ac_executable_extensions; do
7486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489    break 2
7490  fi
7491done
7492  done
7493IFS=$as_save_IFS
7494
7495fi
7496fi
7497OTOOL=$ac_cv_prog_OTOOL
7498if test -n "$OTOOL"; then
7499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7500$as_echo "$OTOOL" >&6; }
7501else
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503$as_echo "no" >&6; }
7504fi
7505
7506
7507fi
7508if test -z "$ac_cv_prog_OTOOL"; then
7509  ac_ct_OTOOL=$OTOOL
7510  # Extract the first word of "otool", so it can be a program name with args.
7511set dummy otool; ac_word=$2
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513$as_echo_n "checking for $ac_word... " >&6; }
7514if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  if test -n "$ac_ct_OTOOL"; then
7518  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7519else
7520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523  IFS=$as_save_IFS
7524  test -z "$as_dir" && as_dir=.
7525    for ac_exec_ext in '' $ac_executable_extensions; do
7526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527    ac_cv_prog_ac_ct_OTOOL="otool"
7528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529    break 2
7530  fi
7531done
7532  done
7533IFS=$as_save_IFS
7534
7535fi
7536fi
7537ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7538if test -n "$ac_ct_OTOOL"; then
7539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7540$as_echo "$ac_ct_OTOOL" >&6; }
7541else
7542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543$as_echo "no" >&6; }
7544fi
7545
7546  if test "x$ac_ct_OTOOL" = x; then
7547    OTOOL=":"
7548  else
7549    case $cross_compiling:$ac_tool_warned in
7550yes:)
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553ac_tool_warned=yes ;;
7554esac
7555    OTOOL=$ac_ct_OTOOL
7556  fi
7557else
7558  OTOOL="$ac_cv_prog_OTOOL"
7559fi
7560
7561    if test -n "$ac_tool_prefix"; then
7562  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7563set dummy ${ac_tool_prefix}otool64; ac_word=$2
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565$as_echo_n "checking for $ac_word... " >&6; }
7566if ${ac_cv_prog_OTOOL64+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  if test -n "$OTOOL64"; then
7570  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575  IFS=$as_save_IFS
7576  test -z "$as_dir" && as_dir=.
7577    for ac_exec_ext in '' $ac_executable_extensions; do
7578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581    break 2
7582  fi
7583done
7584  done
7585IFS=$as_save_IFS
7586
7587fi
7588fi
7589OTOOL64=$ac_cv_prog_OTOOL64
7590if test -n "$OTOOL64"; then
7591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7592$as_echo "$OTOOL64" >&6; }
7593else
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595$as_echo "no" >&6; }
7596fi
7597
7598
7599fi
7600if test -z "$ac_cv_prog_OTOOL64"; then
7601  ac_ct_OTOOL64=$OTOOL64
7602  # Extract the first word of "otool64", so it can be a program name with args.
7603set dummy otool64; ac_word=$2
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605$as_echo_n "checking for $ac_word... " >&6; }
7606if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7607  $as_echo_n "(cached) " >&6
7608else
7609  if test -n "$ac_ct_OTOOL64"; then
7610  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615  IFS=$as_save_IFS
7616  test -z "$as_dir" && as_dir=.
7617    for ac_exec_ext in '' $ac_executable_extensions; do
7618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619    ac_cv_prog_ac_ct_OTOOL64="otool64"
7620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621    break 2
7622  fi
7623done
7624  done
7625IFS=$as_save_IFS
7626
7627fi
7628fi
7629ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7630if test -n "$ac_ct_OTOOL64"; then
7631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7632$as_echo "$ac_ct_OTOOL64" >&6; }
7633else
7634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635$as_echo "no" >&6; }
7636fi
7637
7638  if test "x$ac_ct_OTOOL64" = x; then
7639    OTOOL64=":"
7640  else
7641    case $cross_compiling:$ac_tool_warned in
7642yes:)
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7645ac_tool_warned=yes ;;
7646esac
7647    OTOOL64=$ac_ct_OTOOL64
7648  fi
7649else
7650  OTOOL64="$ac_cv_prog_OTOOL64"
7651fi
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7680$as_echo_n "checking for -single_module linker flag... " >&6; }
7681if ${lt_cv_apple_cc_single_mod+:} false; then :
7682  $as_echo_n "(cached) " >&6
7683else
7684  lt_cv_apple_cc_single_mod=no
7685      if test -z "$LT_MULTI_MODULE"; then
7686	# By default we will add the -single_module flag. You can override
7687	# by either setting the environment variable LT_MULTI_MODULE
7688	# non-empty at configure time, or by adding -multi_module to the
7689	# link flags.
7690	rm -rf libconftest.dylib*
7691	echo "int foo(void){return 1;}" > conftest.c
7692	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7693-dynamiclib -Wl,-single_module conftest.c" >&5
7694	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7695	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7696        _lt_result=$?
7697	# If there is a non-empty error log, and "single_module"
7698	# appears in it, assume the flag caused a linker warning
7699        if test -s conftest.err && $GREP single_module conftest.err; then
7700	  cat conftest.err >&5
7701	# Otherwise, if the output was created with a 0 exit code from
7702	# the compiler, it worked.
7703	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7704	  lt_cv_apple_cc_single_mod=yes
7705	else
7706	  cat conftest.err >&5
7707	fi
7708	rm -rf libconftest.dylib*
7709	rm -f conftest.*
7710      fi
7711fi
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7713$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7714
7715    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7716$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7717if ${lt_cv_ld_exported_symbols_list+:} false; then :
7718  $as_echo_n "(cached) " >&6
7719else
7720  lt_cv_ld_exported_symbols_list=no
7721      save_LDFLAGS=$LDFLAGS
7722      echo "_main" > conftest.sym
7723      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7724      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h.  */
7726
7727int
7728main ()
7729{
7730
7731  ;
7732  return 0;
7733}
7734_ACEOF
7735if ac_fn_c_try_link "$LINENO"; then :
7736  lt_cv_ld_exported_symbols_list=yes
7737else
7738  lt_cv_ld_exported_symbols_list=no
7739fi
7740rm -f core conftest.err conftest.$ac_objext \
7741    conftest$ac_exeext conftest.$ac_ext
7742	LDFLAGS=$save_LDFLAGS
7743
7744fi
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7746$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7747
7748    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7749$as_echo_n "checking for -force_load linker flag... " >&6; }
7750if ${lt_cv_ld_force_load+:} false; then :
7751  $as_echo_n "(cached) " >&6
7752else
7753  lt_cv_ld_force_load=no
7754      cat > conftest.c << _LT_EOF
7755int forced_loaded() { return 2;}
7756_LT_EOF
7757      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7758      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7759      echo "$AR cr libconftest.a conftest.o" >&5
7760      $AR cr libconftest.a conftest.o 2>&5
7761      echo "$RANLIB libconftest.a" >&5
7762      $RANLIB libconftest.a 2>&5
7763      cat > conftest.c << _LT_EOF
7764int main() { return 0;}
7765_LT_EOF
7766      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7767      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7768      _lt_result=$?
7769      if test -s conftest.err && $GREP force_load conftest.err; then
7770	cat conftest.err >&5
7771      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7772	lt_cv_ld_force_load=yes
7773      else
7774	cat conftest.err >&5
7775      fi
7776        rm -f conftest.err libconftest.a conftest conftest.c
7777        rm -rf conftest.dSYM
7778
7779fi
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7781$as_echo "$lt_cv_ld_force_load" >&6; }
7782    case $host_os in
7783    rhapsody* | darwin1.[012])
7784      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7785    darwin1.*)
7786      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7787    darwin*) # darwin 5.x on
7788      # if running on 10.5 or later, the deployment target defaults
7789      # to the OS version, if on x86, and 10.4, the deployment
7790      # target defaults to 10.4. Don't you love it?
7791      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7792	10.0,*86*-darwin8*|10.0,*-darwin[912]*)
7793	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7794	10.[012][,.]*)
7795	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7796	10.*|11.*)
7797	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7798      esac
7799    ;;
7800  esac
7801    if test yes = "$lt_cv_apple_cc_single_mod"; then
7802      _lt_dar_single_mod='$single_module'
7803    fi
7804    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7805      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7806    else
7807      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7808    fi
7809    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7810      _lt_dsymutil='~$DSYMUTIL $lib || :'
7811    else
7812      _lt_dsymutil=
7813    fi
7814    ;;
7815  esac
7816
7817# func_munge_path_list VARIABLE PATH
7818# -----------------------------------
7819# VARIABLE is name of variable containing _space_ separated list of
7820# directories to be munged by the contents of PATH, which is string
7821# having a format:
7822# "DIR[:DIR]:"
7823#       string "DIR[ DIR]" will be prepended to VARIABLE
7824# ":DIR[:DIR]"
7825#       string "DIR[ DIR]" will be appended to VARIABLE
7826# "DIRP[:DIRP]::[DIRA:]DIRA"
7827#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7828#       "DIRA[ DIRA]" will be appended to VARIABLE
7829# "DIR[:DIR]"
7830#       VARIABLE will be replaced by "DIR[ DIR]"
7831func_munge_path_list ()
7832{
7833    case x$2 in
7834    x)
7835        ;;
7836    *:)
7837        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7838        ;;
7839    x:*)
7840        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7841        ;;
7842    *::*)
7843        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7844        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7845        ;;
7846    *)
7847        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7848        ;;
7849    esac
7850}
7851
7852ac_ext=c
7853ac_cpp='$CPP $CPPFLAGS'
7854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856ac_compiler_gnu=$ac_cv_c_compiler_gnu
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7858$as_echo_n "checking how to run the C preprocessor... " >&6; }
7859# On Suns, sometimes $CPP names a directory.
7860if test -n "$CPP" && test -d "$CPP"; then
7861  CPP=
7862fi
7863if test -z "$CPP"; then
7864  if ${ac_cv_prog_CPP+:} false; then :
7865  $as_echo_n "(cached) " >&6
7866else
7867      # Double quotes because CPP needs to be expanded
7868    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7869    do
7870      ac_preproc_ok=false
7871for ac_c_preproc_warn_flag in '' yes
7872do
7873  # Use a header file that comes with gcc, so configuring glibc
7874  # with a fresh cross-compiler works.
7875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7876  # <limits.h> exists even on freestanding compilers.
7877  # On the NeXT, cc -E runs the code through the compiler's parser,
7878  # not just through cpp. "Syntax error" is here to catch this case.
7879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880/* end confdefs.h.  */
7881#ifdef __STDC__
7882# include <limits.h>
7883#else
7884# include <assert.h>
7885#endif
7886		     Syntax error
7887_ACEOF
7888if ac_fn_c_try_cpp "$LINENO"; then :
7889
7890else
7891  # Broken: fails on valid input.
7892continue
7893fi
7894rm -f conftest.err conftest.i conftest.$ac_ext
7895
7896  # OK, works on sane cases.  Now check whether nonexistent headers
7897  # can be detected and how.
7898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h.  */
7900#include <ac_nonexistent.h>
7901_ACEOF
7902if ac_fn_c_try_cpp "$LINENO"; then :
7903  # Broken: success on invalid input.
7904continue
7905else
7906  # Passes both tests.
7907ac_preproc_ok=:
7908break
7909fi
7910rm -f conftest.err conftest.i conftest.$ac_ext
7911
7912done
7913# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7914rm -f conftest.i conftest.err conftest.$ac_ext
7915if $ac_preproc_ok; then :
7916  break
7917fi
7918
7919    done
7920    ac_cv_prog_CPP=$CPP
7921
7922fi
7923  CPP=$ac_cv_prog_CPP
7924else
7925  ac_cv_prog_CPP=$CPP
7926fi
7927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7928$as_echo "$CPP" >&6; }
7929ac_preproc_ok=false
7930for ac_c_preproc_warn_flag in '' yes
7931do
7932  # Use a header file that comes with gcc, so configuring glibc
7933  # with a fresh cross-compiler works.
7934  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7935  # <limits.h> exists even on freestanding compilers.
7936  # On the NeXT, cc -E runs the code through the compiler's parser,
7937  # not just through cpp. "Syntax error" is here to catch this case.
7938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939/* end confdefs.h.  */
7940#ifdef __STDC__
7941# include <limits.h>
7942#else
7943# include <assert.h>
7944#endif
7945		     Syntax error
7946_ACEOF
7947if ac_fn_c_try_cpp "$LINENO"; then :
7948
7949else
7950  # Broken: fails on valid input.
7951continue
7952fi
7953rm -f conftest.err conftest.i conftest.$ac_ext
7954
7955  # OK, works on sane cases.  Now check whether nonexistent headers
7956  # can be detected and how.
7957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958/* end confdefs.h.  */
7959#include <ac_nonexistent.h>
7960_ACEOF
7961if ac_fn_c_try_cpp "$LINENO"; then :
7962  # Broken: success on invalid input.
7963continue
7964else
7965  # Passes both tests.
7966ac_preproc_ok=:
7967break
7968fi
7969rm -f conftest.err conftest.i conftest.$ac_ext
7970
7971done
7972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7973rm -f conftest.i conftest.err conftest.$ac_ext
7974if $ac_preproc_ok; then :
7975
7976else
7977  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7979as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7980See \`config.log' for more details" "$LINENO" 5; }
7981fi
7982
7983ac_ext=c
7984ac_cpp='$CPP $CPPFLAGS'
7985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7987ac_compiler_gnu=$ac_cv_c_compiler_gnu
7988
7989
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7991$as_echo_n "checking for ANSI C header files... " >&6; }
7992if ${ac_cv_header_stdc+:} false; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996/* end confdefs.h.  */
7997#include <stdlib.h>
7998#include <stdarg.h>
7999#include <string.h>
8000#include <float.h>
8001
8002int
8003main ()
8004{
8005
8006  ;
8007  return 0;
8008}
8009_ACEOF
8010if ac_fn_c_try_compile "$LINENO"; then :
8011  ac_cv_header_stdc=yes
8012else
8013  ac_cv_header_stdc=no
8014fi
8015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016
8017if test $ac_cv_header_stdc = yes; then
8018  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020/* end confdefs.h.  */
8021#include <string.h>
8022
8023_ACEOF
8024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8025  $EGREP "memchr" >/dev/null 2>&1; then :
8026
8027else
8028  ac_cv_header_stdc=no
8029fi
8030rm -f conftest*
8031
8032fi
8033
8034if test $ac_cv_header_stdc = yes; then
8035  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037/* end confdefs.h.  */
8038#include <stdlib.h>
8039
8040_ACEOF
8041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8042  $EGREP "free" >/dev/null 2>&1; then :
8043
8044else
8045  ac_cv_header_stdc=no
8046fi
8047rm -f conftest*
8048
8049fi
8050
8051if test $ac_cv_header_stdc = yes; then
8052  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8053  if test "$cross_compiling" = yes; then :
8054  :
8055else
8056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057/* end confdefs.h.  */
8058#include <ctype.h>
8059#include <stdlib.h>
8060#if ((' ' & 0x0FF) == 0x020)
8061# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8062# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8063#else
8064# define ISLOWER(c) \
8065		   (('a' <= (c) && (c) <= 'i') \
8066		     || ('j' <= (c) && (c) <= 'r') \
8067		     || ('s' <= (c) && (c) <= 'z'))
8068# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8069#endif
8070
8071#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8072int
8073main ()
8074{
8075  int i;
8076  for (i = 0; i < 256; i++)
8077    if (XOR (islower (i), ISLOWER (i))
8078	|| toupper (i) != TOUPPER (i))
8079      return 2;
8080  return 0;
8081}
8082_ACEOF
8083if ac_fn_c_try_run "$LINENO"; then :
8084
8085else
8086  ac_cv_header_stdc=no
8087fi
8088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8089  conftest.$ac_objext conftest.beam conftest.$ac_ext
8090fi
8091
8092fi
8093fi
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8095$as_echo "$ac_cv_header_stdc" >&6; }
8096if test $ac_cv_header_stdc = yes; then
8097
8098$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8099
8100fi
8101
8102# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8103for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8104		  inttypes.h stdint.h unistd.h
8105do :
8106  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8108"
8109if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8110  cat >>confdefs.h <<_ACEOF
8111#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8112_ACEOF
8113
8114fi
8115
8116done
8117
8118
8119for ac_header in dlfcn.h
8120do :
8121  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8122"
8123if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8124  cat >>confdefs.h <<_ACEOF
8125#define HAVE_DLFCN_H 1
8126_ACEOF
8127
8128fi
8129
8130done
8131
8132
8133
8134func_stripname_cnf ()
8135{
8136  case $2 in
8137  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8138  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8139  esac
8140} # func_stripname_cnf
8141
8142
8143
8144
8145
8146# Set options
8147
8148
8149
8150        enable_dlopen=no
8151
8152
8153  enable_win32_dll=no
8154
8155
8156            # Check whether --enable-shared was given.
8157if test "${enable_shared+set}" = set; then :
8158  enableval=$enable_shared; p=${PACKAGE-default}
8159    case $enableval in
8160    yes) enable_shared=yes ;;
8161    no) enable_shared=no ;;
8162    *)
8163      enable_shared=no
8164      # Look at the argument we got.  We use all the common list separators.
8165      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8166      for pkg in $enableval; do
8167	IFS=$lt_save_ifs
8168	if test "X$pkg" = "X$p"; then
8169	  enable_shared=yes
8170	fi
8171      done
8172      IFS=$lt_save_ifs
8173      ;;
8174    esac
8175else
8176  enable_shared=yes
8177fi
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187  # Check whether --enable-static was given.
8188if test "${enable_static+set}" = set; then :
8189  enableval=$enable_static; p=${PACKAGE-default}
8190    case $enableval in
8191    yes) enable_static=yes ;;
8192    no) enable_static=no ;;
8193    *)
8194     enable_static=no
8195      # Look at the argument we got.  We use all the common list separators.
8196      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8197      for pkg in $enableval; do
8198	IFS=$lt_save_ifs
8199	if test "X$pkg" = "X$p"; then
8200	  enable_static=yes
8201	fi
8202      done
8203      IFS=$lt_save_ifs
8204      ;;
8205    esac
8206else
8207  enable_static=yes
8208fi
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219# Check whether --with-pic was given.
8220if test "${with_pic+set}" = set; then :
8221  withval=$with_pic; lt_p=${PACKAGE-default}
8222    case $withval in
8223    yes|no) pic_mode=$withval ;;
8224    *)
8225      pic_mode=default
8226      # Look at the argument we got.  We use all the common list separators.
8227      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8228      for lt_pkg in $withval; do
8229	IFS=$lt_save_ifs
8230	if test "X$lt_pkg" = "X$lt_p"; then
8231	  pic_mode=yes
8232	fi
8233      done
8234      IFS=$lt_save_ifs
8235      ;;
8236    esac
8237else
8238  pic_mode=default
8239fi
8240
8241
8242
8243
8244
8245
8246
8247
8248  # Check whether --enable-fast-install was given.
8249if test "${enable_fast_install+set}" = set; then :
8250  enableval=$enable_fast_install; p=${PACKAGE-default}
8251    case $enableval in
8252    yes) enable_fast_install=yes ;;
8253    no) enable_fast_install=no ;;
8254    *)
8255      enable_fast_install=no
8256      # Look at the argument we got.  We use all the common list separators.
8257      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8258      for pkg in $enableval; do
8259	IFS=$lt_save_ifs
8260	if test "X$pkg" = "X$p"; then
8261	  enable_fast_install=yes
8262	fi
8263      done
8264      IFS=$lt_save_ifs
8265      ;;
8266    esac
8267else
8268  enable_fast_install=yes
8269fi
8270
8271
8272
8273
8274
8275
8276
8277
8278  shared_archive_member_spec=
8279case $host,$enable_shared in
8280power*-*-aix[5-9]*,yes)
8281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8282$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8283
8284# Check whether --with-aix-soname was given.
8285if test "${with_aix_soname+set}" = set; then :
8286  withval=$with_aix_soname; case $withval in
8287    aix|svr4|both)
8288      ;;
8289    *)
8290      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8291      ;;
8292    esac
8293    lt_cv_with_aix_soname=$with_aix_soname
8294else
8295  if ${lt_cv_with_aix_soname+:} false; then :
8296  $as_echo_n "(cached) " >&6
8297else
8298  lt_cv_with_aix_soname=aix
8299fi
8300
8301    with_aix_soname=$lt_cv_with_aix_soname
8302fi
8303
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8305$as_echo "$with_aix_soname" >&6; }
8306  if test aix != "$with_aix_soname"; then
8307    # For the AIX way of multilib, we name the shared archive member
8308    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8309    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8310    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8311    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8312    if test 64 = "${OBJECT_MODE-32}"; then
8313      shared_archive_member_spec=shr_64
8314    else
8315      shared_archive_member_spec=shr
8316    fi
8317  fi
8318  ;;
8319*)
8320  with_aix_soname=aix
8321  ;;
8322esac
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333# This can be used to rebuild libtool when needed
8334LIBTOOL_DEPS=$ltmain
8335
8336# Always use our own libtool.
8337LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368test -z "$LN_S" && LN_S="ln -s"
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383if test -n "${ZSH_VERSION+set}"; then
8384   setopt NO_GLOB_SUBST
8385fi
8386
8387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8388$as_echo_n "checking for objdir... " >&6; }
8389if ${lt_cv_objdir+:} false; then :
8390  $as_echo_n "(cached) " >&6
8391else
8392  rm -f .libs 2>/dev/null
8393mkdir .libs 2>/dev/null
8394if test -d .libs; then
8395  lt_cv_objdir=.libs
8396else
8397  # MS-DOS does not allow filenames that begin with a dot.
8398  lt_cv_objdir=_libs
8399fi
8400rmdir .libs 2>/dev/null
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8403$as_echo "$lt_cv_objdir" >&6; }
8404objdir=$lt_cv_objdir
8405
8406
8407
8408
8409
8410cat >>confdefs.h <<_ACEOF
8411#define LT_OBJDIR "$lt_cv_objdir/"
8412_ACEOF
8413
8414
8415
8416
8417case $host_os in
8418aix3*)
8419  # AIX sometimes has problems with the GCC collect2 program.  For some
8420  # reason, if we set the COLLECT_NAMES environment variable, the problems
8421  # vanish in a puff of smoke.
8422  if test set != "${COLLECT_NAMES+set}"; then
8423    COLLECT_NAMES=
8424    export COLLECT_NAMES
8425  fi
8426  ;;
8427esac
8428
8429# Global variables:
8430ofile=libtool
8431can_build_shared=yes
8432
8433# All known linkers require a '.a' archive for static linking (except MSVC,
8434# which needs '.lib').
8435libext=a
8436
8437with_gnu_ld=$lt_cv_prog_gnu_ld
8438
8439old_CC=$CC
8440old_CFLAGS=$CFLAGS
8441
8442# Set sane defaults for various variables
8443test -z "$CC" && CC=cc
8444test -z "$LTCC" && LTCC=$CC
8445test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8446test -z "$LD" && LD=ld
8447test -z "$ac_objext" && ac_objext=o
8448
8449func_cc_basename $compiler
8450cc_basename=$func_cc_basename_result
8451
8452
8453# Only perform the check for file, if the check method requires it
8454test -z "$MAGIC_CMD" && MAGIC_CMD=file
8455case $deplibs_check_method in
8456file_magic*)
8457  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8458    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8459$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8460if ${lt_cv_path_MAGIC_CMD+:} false; then :
8461  $as_echo_n "(cached) " >&6
8462else
8463  case $MAGIC_CMD in
8464[\\/*] |  ?:[\\/]*)
8465  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8466  ;;
8467*)
8468  lt_save_MAGIC_CMD=$MAGIC_CMD
8469  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8470  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8471  for ac_dir in $ac_dummy; do
8472    IFS=$lt_save_ifs
8473    test -z "$ac_dir" && ac_dir=.
8474    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8475      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8476      if test -n "$file_magic_test_file"; then
8477	case $deplibs_check_method in
8478	"file_magic "*)
8479	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8480	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8481	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8482	    $EGREP "$file_magic_regex" > /dev/null; then
8483	    :
8484	  else
8485	    cat <<_LT_EOF 1>&2
8486
8487*** Warning: the command libtool uses to detect shared libraries,
8488*** $file_magic_cmd, produces output that libtool cannot recognize.
8489*** The result is that libtool may fail to recognize shared libraries
8490*** as such.  This will affect the creation of libtool libraries that
8491*** depend on shared libraries, but programs linked with such libtool
8492*** libraries will work regardless of this problem.  Nevertheless, you
8493*** may want to report the problem to your system manager and/or to
8494*** bug-libtool@gnu.org
8495
8496_LT_EOF
8497	  fi ;;
8498	esac
8499      fi
8500      break
8501    fi
8502  done
8503  IFS=$lt_save_ifs
8504  MAGIC_CMD=$lt_save_MAGIC_CMD
8505  ;;
8506esac
8507fi
8508
8509MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8510if test -n "$MAGIC_CMD"; then
8511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8512$as_echo "$MAGIC_CMD" >&6; }
8513else
8514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515$as_echo "no" >&6; }
8516fi
8517
8518
8519
8520
8521
8522if test -z "$lt_cv_path_MAGIC_CMD"; then
8523  if test -n "$ac_tool_prefix"; then
8524    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8525$as_echo_n "checking for file... " >&6; }
8526if ${lt_cv_path_MAGIC_CMD+:} false; then :
8527  $as_echo_n "(cached) " >&6
8528else
8529  case $MAGIC_CMD in
8530[\\/*] |  ?:[\\/]*)
8531  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8532  ;;
8533*)
8534  lt_save_MAGIC_CMD=$MAGIC_CMD
8535  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8536  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537  for ac_dir in $ac_dummy; do
8538    IFS=$lt_save_ifs
8539    test -z "$ac_dir" && ac_dir=.
8540    if test -f "$ac_dir/file"; then
8541      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8542      if test -n "$file_magic_test_file"; then
8543	case $deplibs_check_method in
8544	"file_magic "*)
8545	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8547	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548	    $EGREP "$file_magic_regex" > /dev/null; then
8549	    :
8550	  else
8551	    cat <<_LT_EOF 1>&2
8552
8553*** Warning: the command libtool uses to detect shared libraries,
8554*** $file_magic_cmd, produces output that libtool cannot recognize.
8555*** The result is that libtool may fail to recognize shared libraries
8556*** as such.  This will affect the creation of libtool libraries that
8557*** depend on shared libraries, but programs linked with such libtool
8558*** libraries will work regardless of this problem.  Nevertheless, you
8559*** may want to report the problem to your system manager and/or to
8560*** bug-libtool@gnu.org
8561
8562_LT_EOF
8563	  fi ;;
8564	esac
8565      fi
8566      break
8567    fi
8568  done
8569  IFS=$lt_save_ifs
8570  MAGIC_CMD=$lt_save_MAGIC_CMD
8571  ;;
8572esac
8573fi
8574
8575MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8576if test -n "$MAGIC_CMD"; then
8577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8578$as_echo "$MAGIC_CMD" >&6; }
8579else
8580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581$as_echo "no" >&6; }
8582fi
8583
8584
8585  else
8586    MAGIC_CMD=:
8587  fi
8588fi
8589
8590  fi
8591  ;;
8592esac
8593
8594# Use C for the default configuration in the libtool script
8595
8596lt_save_CC=$CC
8597ac_ext=c
8598ac_cpp='$CPP $CPPFLAGS'
8599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8601ac_compiler_gnu=$ac_cv_c_compiler_gnu
8602
8603
8604# Source file extension for C test sources.
8605ac_ext=c
8606
8607# Object file extension for compiled C test sources.
8608objext=o
8609objext=$objext
8610
8611# Code to be used in simple compile tests
8612lt_simple_compile_test_code="int some_variable = 0;"
8613
8614# Code to be used in simple link tests
8615lt_simple_link_test_code='int main(){return(0);}'
8616
8617
8618
8619
8620
8621
8622
8623# If no C compiler was specified, use CC.
8624LTCC=${LTCC-"$CC"}
8625
8626# If no C compiler flags were specified, use CFLAGS.
8627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8628
8629# Allow CC to be a program name with arguments.
8630compiler=$CC
8631
8632# Save the default compiler, since it gets overwritten when the other
8633# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8634compiler_DEFAULT=$CC
8635
8636# save warnings/boilerplate of simple test code
8637ac_outfile=conftest.$ac_objext
8638echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8639eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8640_lt_compiler_boilerplate=`cat conftest.err`
8641$RM conftest*
8642
8643ac_outfile=conftest.$ac_objext
8644echo "$lt_simple_link_test_code" >conftest.$ac_ext
8645eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8646_lt_linker_boilerplate=`cat conftest.err`
8647$RM -r conftest*
8648
8649
8650if test -n "$compiler"; then
8651
8652lt_prog_compiler_no_builtin_flag=
8653
8654if test yes = "$GCC"; then
8655  case $cc_basename in
8656  nvcc*)
8657    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8658  *)
8659    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8660  esac
8661
8662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8663$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8664if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8665  $as_echo_n "(cached) " >&6
8666else
8667  lt_cv_prog_compiler_rtti_exceptions=no
8668   ac_outfile=conftest.$ac_objext
8669   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8670   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8671   # Insert the option either (1) after the last *FLAGS variable, or
8672   # (2) before a word containing "conftest.", or (3) at the end.
8673   # Note that $ac_compile itself does not contain backslashes and begins
8674   # with a dollar sign (not a hyphen), so the echo should work correctly.
8675   # The option is referenced via a variable to avoid confusing sed.
8676   lt_compile=`echo "$ac_compile" | $SED \
8677   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8678   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8679   -e 's:$: $lt_compiler_flag:'`
8680   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8681   (eval "$lt_compile" 2>conftest.err)
8682   ac_status=$?
8683   cat conftest.err >&5
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   if (exit $ac_status) && test -s "$ac_outfile"; then
8686     # The compiler can only warn and ignore the option if not recognized
8687     # So say no if there are warnings other than the usual output.
8688     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8689     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8690     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8691       lt_cv_prog_compiler_rtti_exceptions=yes
8692     fi
8693   fi
8694   $RM conftest*
8695
8696fi
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8698$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8699
8700if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8701    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8702else
8703    :
8704fi
8705
8706fi
8707
8708
8709
8710
8711
8712
8713  lt_prog_compiler_wl=
8714lt_prog_compiler_pic=
8715lt_prog_compiler_static=
8716
8717
8718  if test yes = "$GCC"; then
8719    lt_prog_compiler_wl='-Wl,'
8720    lt_prog_compiler_static='-static'
8721
8722    case $host_os in
8723      aix*)
8724      # All AIX code is PIC.
8725      if test ia64 = "$host_cpu"; then
8726	# AIX 5 now supports IA64 processor
8727	lt_prog_compiler_static='-Bstatic'
8728      fi
8729      lt_prog_compiler_pic='-fPIC'
8730      ;;
8731
8732    amigaos*)
8733      case $host_cpu in
8734      powerpc)
8735            # see comment about AmigaOS4 .so support
8736            lt_prog_compiler_pic='-fPIC'
8737        ;;
8738      m68k)
8739            # FIXME: we need at least 68020 code to build shared libraries, but
8740            # adding the '-m68020' flag to GCC prevents building anything better,
8741            # like '-m68040'.
8742            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8743        ;;
8744      esac
8745      ;;
8746
8747    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8748      # PIC is the default for these OSes.
8749      ;;
8750
8751    mingw* | cygwin* | pw32* | os2* | cegcc*)
8752      # This hack is so that the source file can tell whether it is being
8753      # built for inclusion in a dll (and should export symbols for example).
8754      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8755      # (--disable-auto-import) libraries
8756      lt_prog_compiler_pic='-DDLL_EXPORT'
8757      case $host_os in
8758      os2*)
8759	lt_prog_compiler_static='$wl-static'
8760	;;
8761      esac
8762      ;;
8763
8764    darwin* | rhapsody*)
8765      # PIC is the default on this platform
8766      # Common symbols not allowed in MH_DYLIB files
8767      lt_prog_compiler_pic='-fno-common'
8768      ;;
8769
8770    haiku*)
8771      # PIC is the default for Haiku.
8772      # The "-static" flag exists, but is broken.
8773      lt_prog_compiler_static=
8774      ;;
8775
8776    hpux*)
8777      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8778      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8779      # sets the default TLS model and affects inlining.
8780      case $host_cpu in
8781      hppa*64*)
8782	# +Z the default
8783	;;
8784      *)
8785	lt_prog_compiler_pic='-fPIC'
8786	;;
8787      esac
8788      ;;
8789
8790    interix[3-9]*)
8791      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8792      # Instead, we relocate shared libraries at runtime.
8793      ;;
8794
8795    msdosdjgpp*)
8796      # Just because we use GCC doesn't mean we suddenly get shared libraries
8797      # on systems that don't support them.
8798      lt_prog_compiler_can_build_shared=no
8799      enable_shared=no
8800      ;;
8801
8802    *nto* | *qnx*)
8803      # QNX uses GNU C++, but need to define -shared option too, otherwise
8804      # it will coredump.
8805      lt_prog_compiler_pic='-fPIC -shared'
8806      ;;
8807
8808    sysv4*MP*)
8809      if test -d /usr/nec; then
8810	lt_prog_compiler_pic=-Kconform_pic
8811      fi
8812      ;;
8813
8814    *)
8815      lt_prog_compiler_pic='-fPIC'
8816      ;;
8817    esac
8818
8819    case $cc_basename in
8820    nvcc*) # Cuda Compiler Driver 2.2
8821      lt_prog_compiler_wl='-Xlinker '
8822      if test -n "$lt_prog_compiler_pic"; then
8823        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8824      fi
8825      ;;
8826    esac
8827  else
8828    # PORTME Check for flag to pass linker flags through the system compiler.
8829    case $host_os in
8830    aix*)
8831      lt_prog_compiler_wl='-Wl,'
8832      if test ia64 = "$host_cpu"; then
8833	# AIX 5 now supports IA64 processor
8834	lt_prog_compiler_static='-Bstatic'
8835      else
8836	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8837      fi
8838      ;;
8839
8840    darwin* | rhapsody*)
8841      # PIC is the default on this platform
8842      # Common symbols not allowed in MH_DYLIB files
8843      lt_prog_compiler_pic='-fno-common'
8844      case $cc_basename in
8845      nagfor*)
8846        # NAG Fortran compiler
8847        lt_prog_compiler_wl='-Wl,-Wl,,'
8848        lt_prog_compiler_pic='-PIC'
8849        lt_prog_compiler_static='-Bstatic'
8850        ;;
8851      esac
8852      ;;
8853
8854    mingw* | cygwin* | pw32* | os2* | cegcc*)
8855      # This hack is so that the source file can tell whether it is being
8856      # built for inclusion in a dll (and should export symbols for example).
8857      lt_prog_compiler_pic='-DDLL_EXPORT'
8858      case $host_os in
8859      os2*)
8860	lt_prog_compiler_static='$wl-static'
8861	;;
8862      esac
8863      ;;
8864
8865    hpux9* | hpux10* | hpux11*)
8866      lt_prog_compiler_wl='-Wl,'
8867      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8868      # not for PA HP-UX.
8869      case $host_cpu in
8870      hppa*64*|ia64*)
8871	# +Z the default
8872	;;
8873      *)
8874	lt_prog_compiler_pic='+Z'
8875	;;
8876      esac
8877      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8878      lt_prog_compiler_static='$wl-a ${wl}archive'
8879      ;;
8880
8881    irix5* | irix6* | nonstopux*)
8882      lt_prog_compiler_wl='-Wl,'
8883      # PIC (with -KPIC) is the default.
8884      lt_prog_compiler_static='-non_shared'
8885      ;;
8886
8887    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8888      case $cc_basename in
8889      # old Intel for x86_64, which still supported -KPIC.
8890      ecc*)
8891	lt_prog_compiler_wl='-Wl,'
8892	lt_prog_compiler_pic='-KPIC'
8893	lt_prog_compiler_static='-static'
8894        ;;
8895      # flang / f18. f95 an alias for gfortran or flang on Debian
8896      flang* | f18* | f95*)
8897	lt_prog_compiler_wl='-Wl,'
8898	lt_prog_compiler_pic='-fPIC'
8899	lt_prog_compiler_static='-static'
8900        ;;
8901      # icc used to be incompatible with GCC.
8902      # ICC 10 doesn't accept -KPIC any more.
8903      icc* | ifort*)
8904	lt_prog_compiler_wl='-Wl,'
8905	lt_prog_compiler_pic='-fPIC'
8906	lt_prog_compiler_static='-static'
8907        ;;
8908      # Lahey Fortran 8.1.
8909      lf95*)
8910	lt_prog_compiler_wl='-Wl,'
8911	lt_prog_compiler_pic='--shared'
8912	lt_prog_compiler_static='--static'
8913	;;
8914      nagfor*)
8915	# NAG Fortran compiler
8916	lt_prog_compiler_wl='-Wl,-Wl,,'
8917	lt_prog_compiler_pic='-PIC'
8918	lt_prog_compiler_static='-Bstatic'
8919	;;
8920      tcc*)
8921	# Fabrice Bellard et al's Tiny C Compiler
8922	lt_prog_compiler_wl='-Wl,'
8923	lt_prog_compiler_pic='-fPIC'
8924	lt_prog_compiler_static='-static'
8925	;;
8926      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8927        # Portland Group compilers (*not* the Pentium gcc compiler,
8928	# which looks to be a dead project)
8929	lt_prog_compiler_wl='-Wl,'
8930	lt_prog_compiler_pic='-fpic'
8931	lt_prog_compiler_static='-Bstatic'
8932        ;;
8933      ccc*)
8934        lt_prog_compiler_wl='-Wl,'
8935        # All Alpha code is PIC.
8936        lt_prog_compiler_static='-non_shared'
8937        ;;
8938      xl* | bgxl* | bgf* | mpixl*)
8939	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8940	lt_prog_compiler_wl='-Wl,'
8941	lt_prog_compiler_pic='-qpic'
8942	lt_prog_compiler_static='-qstaticlink'
8943	;;
8944      *)
8945	case `$CC -V 2>&1 | sed 5q` in
8946	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8947	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8948	  lt_prog_compiler_pic='-KPIC'
8949	  lt_prog_compiler_static='-Bstatic'
8950	  lt_prog_compiler_wl=''
8951	  ;;
8952	*Sun\ F* | *Sun*Fortran*)
8953	  lt_prog_compiler_pic='-KPIC'
8954	  lt_prog_compiler_static='-Bstatic'
8955	  lt_prog_compiler_wl='-Qoption ld '
8956	  ;;
8957	*Sun\ C*)
8958	  # Sun C 5.9
8959	  lt_prog_compiler_pic='-KPIC'
8960	  lt_prog_compiler_static='-Bstatic'
8961	  lt_prog_compiler_wl='-Wl,'
8962	  ;;
8963        *Intel*\ [CF]*Compiler*)
8964	  lt_prog_compiler_wl='-Wl,'
8965	  lt_prog_compiler_pic='-fPIC'
8966	  lt_prog_compiler_static='-static'
8967	  ;;
8968	*Portland\ Group*)
8969	  lt_prog_compiler_wl='-Wl,'
8970	  lt_prog_compiler_pic='-fpic'
8971	  lt_prog_compiler_static='-Bstatic'
8972	  ;;
8973	esac
8974	;;
8975      esac
8976      ;;
8977
8978    newsos6)
8979      lt_prog_compiler_pic='-KPIC'
8980      lt_prog_compiler_static='-Bstatic'
8981      ;;
8982
8983    *nto* | *qnx*)
8984      # QNX uses GNU C++, but need to define -shared option too, otherwise
8985      # it will coredump.
8986      lt_prog_compiler_pic='-fPIC -shared'
8987      ;;
8988
8989    osf3* | osf4* | osf5*)
8990      lt_prog_compiler_wl='-Wl,'
8991      # All OSF/1 code is PIC.
8992      lt_prog_compiler_static='-non_shared'
8993      ;;
8994
8995    rdos*)
8996      lt_prog_compiler_static='-non_shared'
8997      ;;
8998
8999    solaris*)
9000      lt_prog_compiler_pic='-KPIC'
9001      lt_prog_compiler_static='-Bstatic'
9002      case $cc_basename in
9003      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9004	lt_prog_compiler_wl='-Qoption ld ';;
9005      *)
9006	lt_prog_compiler_wl='-Wl,';;
9007      esac
9008      ;;
9009
9010    sunos4*)
9011      lt_prog_compiler_wl='-Qoption ld '
9012      lt_prog_compiler_pic='-PIC'
9013      lt_prog_compiler_static='-Bstatic'
9014      ;;
9015
9016    sysv4 | sysv4.2uw2* | sysv4.3*)
9017      lt_prog_compiler_wl='-Wl,'
9018      lt_prog_compiler_pic='-KPIC'
9019      lt_prog_compiler_static='-Bstatic'
9020      ;;
9021
9022    sysv4*MP*)
9023      if test -d /usr/nec; then
9024	lt_prog_compiler_pic='-Kconform_pic'
9025	lt_prog_compiler_static='-Bstatic'
9026      fi
9027      ;;
9028
9029    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9030      lt_prog_compiler_wl='-Wl,'
9031      lt_prog_compiler_pic='-KPIC'
9032      lt_prog_compiler_static='-Bstatic'
9033      ;;
9034
9035    unicos*)
9036      lt_prog_compiler_wl='-Wl,'
9037      lt_prog_compiler_can_build_shared=no
9038      ;;
9039
9040    uts4*)
9041      lt_prog_compiler_pic='-pic'
9042      lt_prog_compiler_static='-Bstatic'
9043      ;;
9044
9045    *)
9046      lt_prog_compiler_can_build_shared=no
9047      ;;
9048    esac
9049  fi
9050
9051case $host_os in
9052  # For platforms that do not support PIC, -DPIC is meaningless:
9053  *djgpp*)
9054    lt_prog_compiler_pic=
9055    ;;
9056  *)
9057    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9058    ;;
9059esac
9060
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9062$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9063if ${lt_cv_prog_compiler_pic+:} false; then :
9064  $as_echo_n "(cached) " >&6
9065else
9066  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9067fi
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9069$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9070lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9071
9072#
9073# Check to make sure the PIC flag actually works.
9074#
9075if test -n "$lt_prog_compiler_pic"; then
9076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9077$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9078if ${lt_cv_prog_compiler_pic_works+:} false; then :
9079  $as_echo_n "(cached) " >&6
9080else
9081  lt_cv_prog_compiler_pic_works=no
9082   ac_outfile=conftest.$ac_objext
9083   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9084   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9085   # Insert the option either (1) after the last *FLAGS variable, or
9086   # (2) before a word containing "conftest.", or (3) at the end.
9087   # Note that $ac_compile itself does not contain backslashes and begins
9088   # with a dollar sign (not a hyphen), so the echo should work correctly.
9089   # The option is referenced via a variable to avoid confusing sed.
9090   lt_compile=`echo "$ac_compile" | $SED \
9091   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9092   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9093   -e 's:$: $lt_compiler_flag:'`
9094   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9095   (eval "$lt_compile" 2>conftest.err)
9096   ac_status=$?
9097   cat conftest.err >&5
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   if (exit $ac_status) && test -s "$ac_outfile"; then
9100     # The compiler can only warn and ignore the option if not recognized
9101     # So say no if there are warnings other than the usual output.
9102     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9103     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9104     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9105       lt_cv_prog_compiler_pic_works=yes
9106     fi
9107   fi
9108   $RM conftest*
9109
9110fi
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9112$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9113
9114if test yes = "$lt_cv_prog_compiler_pic_works"; then
9115    case $lt_prog_compiler_pic in
9116     "" | " "*) ;;
9117     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9118     esac
9119else
9120    lt_prog_compiler_pic=
9121     lt_prog_compiler_can_build_shared=no
9122fi
9123
9124fi
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136#
9137# Check to make sure the static flag actually works.
9138#
9139wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9141$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9142if ${lt_cv_prog_compiler_static_works+:} false; then :
9143  $as_echo_n "(cached) " >&6
9144else
9145  lt_cv_prog_compiler_static_works=no
9146   save_LDFLAGS=$LDFLAGS
9147   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9148   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9149   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9150     # The linker can only warn and ignore the option if not recognized
9151     # So say no if there are warnings
9152     if test -s conftest.err; then
9153       # Append any errors to the config.log.
9154       cat conftest.err 1>&5
9155       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9156       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9157       if diff conftest.exp conftest.er2 >/dev/null; then
9158         lt_cv_prog_compiler_static_works=yes
9159       fi
9160     else
9161       lt_cv_prog_compiler_static_works=yes
9162     fi
9163   fi
9164   $RM -r conftest*
9165   LDFLAGS=$save_LDFLAGS
9166
9167fi
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9169$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9170
9171if test yes = "$lt_cv_prog_compiler_static_works"; then
9172    :
9173else
9174    lt_prog_compiler_static=
9175fi
9176
9177
9178
9179
9180
9181
9182
9183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9184$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9185if ${lt_cv_prog_compiler_c_o+:} false; then :
9186  $as_echo_n "(cached) " >&6
9187else
9188  lt_cv_prog_compiler_c_o=no
9189   $RM -r conftest 2>/dev/null
9190   mkdir conftest
9191   cd conftest
9192   mkdir out
9193   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9194
9195   lt_compiler_flag="-o out/conftest2.$ac_objext"
9196   # Insert the option either (1) after the last *FLAGS variable, or
9197   # (2) before a word containing "conftest.", or (3) at the end.
9198   # Note that $ac_compile itself does not contain backslashes and begins
9199   # with a dollar sign (not a hyphen), so the echo should work correctly.
9200   lt_compile=`echo "$ac_compile" | $SED \
9201   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9202   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9203   -e 's:$: $lt_compiler_flag:'`
9204   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9205   (eval "$lt_compile" 2>out/conftest.err)
9206   ac_status=$?
9207   cat out/conftest.err >&5
9208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9210   then
9211     # The compiler can only warn and ignore the option if not recognized
9212     # So say no if there are warnings
9213     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9214     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9215     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9216       lt_cv_prog_compiler_c_o=yes
9217     fi
9218   fi
9219   chmod u+w . 2>&5
9220   $RM conftest*
9221   # SGI C++ compiler will create directory out/ii_files/ for
9222   # template instantiation
9223   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9224   $RM out/* && rmdir out
9225   cd ..
9226   $RM -r conftest
9227   $RM conftest*
9228
9229fi
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9231$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9232
9233
9234
9235
9236
9237
9238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9239$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9240if ${lt_cv_prog_compiler_c_o+:} false; then :
9241  $as_echo_n "(cached) " >&6
9242else
9243  lt_cv_prog_compiler_c_o=no
9244   $RM -r conftest 2>/dev/null
9245   mkdir conftest
9246   cd conftest
9247   mkdir out
9248   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9249
9250   lt_compiler_flag="-o out/conftest2.$ac_objext"
9251   # Insert the option either (1) after the last *FLAGS variable, or
9252   # (2) before a word containing "conftest.", or (3) at the end.
9253   # Note that $ac_compile itself does not contain backslashes and begins
9254   # with a dollar sign (not a hyphen), so the echo should work correctly.
9255   lt_compile=`echo "$ac_compile" | $SED \
9256   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9257   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9258   -e 's:$: $lt_compiler_flag:'`
9259   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9260   (eval "$lt_compile" 2>out/conftest.err)
9261   ac_status=$?
9262   cat out/conftest.err >&5
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9265   then
9266     # The compiler can only warn and ignore the option if not recognized
9267     # So say no if there are warnings
9268     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9269     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9270     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9271       lt_cv_prog_compiler_c_o=yes
9272     fi
9273   fi
9274   chmod u+w . 2>&5
9275   $RM conftest*
9276   # SGI C++ compiler will create directory out/ii_files/ for
9277   # template instantiation
9278   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9279   $RM out/* && rmdir out
9280   cd ..
9281   $RM -r conftest
9282   $RM conftest*
9283
9284fi
9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9286$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9287
9288
9289
9290
9291hard_links=nottested
9292if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9293  # do not overwrite the value of need_locks provided by the user
9294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9295$as_echo_n "checking if we can lock with hard links... " >&6; }
9296  hard_links=yes
9297  $RM conftest*
9298  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9299  touch conftest.a
9300  ln conftest.a conftest.b 2>&5 || hard_links=no
9301  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9303$as_echo "$hard_links" >&6; }
9304  if test no = "$hard_links"; then
9305    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9306$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9307    need_locks=warn
9308  fi
9309else
9310  need_locks=no
9311fi
9312
9313
9314
9315
9316
9317
9318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9319$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9320
9321  runpath_var=
9322  allow_undefined_flag=
9323  always_export_symbols=no
9324  archive_cmds=
9325  archive_expsym_cmds=
9326  compiler_needs_object=no
9327  enable_shared_with_static_runtimes=no
9328  export_dynamic_flag_spec=
9329  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9330  hardcode_automatic=no
9331  hardcode_direct=no
9332  hardcode_direct_absolute=no
9333  hardcode_libdir_flag_spec=
9334  hardcode_libdir_separator=
9335  hardcode_minus_L=no
9336  hardcode_shlibpath_var=unsupported
9337  inherit_rpath=no
9338  link_all_deplibs=unknown
9339  module_cmds=
9340  module_expsym_cmds=
9341  old_archive_from_new_cmds=
9342  old_archive_from_expsyms_cmds=
9343  thread_safe_flag_spec=
9344  whole_archive_flag_spec=
9345  # include_expsyms should be a list of space-separated symbols to be *always*
9346  # included in the symbol list
9347  include_expsyms=
9348  # exclude_expsyms can be an extended regexp of symbols to exclude
9349  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9350  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9351  # as well as any symbol that contains 'd'.
9352  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9353  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9354  # platforms (ab)use it in PIC code, but their linkers get confused if
9355  # the symbol is explicitly referenced.  Since portable code cannot
9356  # rely on this symbol name, it's probably fine to never include it in
9357  # preloaded symbol tables.
9358  # Exclude shared library initialization/finalization symbols.
9359  extract_expsyms_cmds=
9360
9361  case $host_os in
9362  cygwin* | mingw* | pw32* | cegcc*)
9363    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9364    # When not using gcc, we currently assume that we are using
9365    # Microsoft Visual C++.
9366    if test yes != "$GCC"; then
9367      with_gnu_ld=no
9368    fi
9369    ;;
9370  interix*)
9371    # we just hope/assume this is gcc and not c89 (= MSVC++)
9372    with_gnu_ld=yes
9373    ;;
9374  openbsd* | bitrig*)
9375    with_gnu_ld=no
9376    ;;
9377  linux* | k*bsd*-gnu | gnu*)
9378    link_all_deplibs=no
9379    ;;
9380  esac
9381
9382  ld_shlibs=yes
9383
9384  # On some targets, GNU ld is compatible enough with the native linker
9385  # that we're better off using the native interface for both.
9386  lt_use_gnu_ld_interface=no
9387  if test yes = "$with_gnu_ld"; then
9388    case $host_os in
9389      aix*)
9390	# The AIX port of GNU ld has always aspired to compatibility
9391	# with the native linker.  However, as the warning in the GNU ld
9392	# block says, versions before 2.19.5* couldn't really create working
9393	# shared libraries, regardless of the interface used.
9394	case `$LD -v 2>&1` in
9395	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9396	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9397	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9398	  *)
9399	    lt_use_gnu_ld_interface=yes
9400	    ;;
9401	esac
9402	;;
9403      *)
9404	lt_use_gnu_ld_interface=yes
9405	;;
9406    esac
9407  fi
9408
9409  if test yes = "$lt_use_gnu_ld_interface"; then
9410    # If archive_cmds runs LD, not CC, wlarc should be empty
9411    wlarc='$wl'
9412
9413    # Set some defaults for GNU ld with shared library support. These
9414    # are reset later if shared libraries are not supported. Putting them
9415    # here allows them to be overridden if necessary.
9416    runpath_var=LD_RUN_PATH
9417    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9418    export_dynamic_flag_spec='$wl--export-dynamic'
9419    # ancient GNU ld didn't support --whole-archive et. al.
9420    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9421      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9422    else
9423      whole_archive_flag_spec=
9424    fi
9425    supports_anon_versioning=no
9426    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9427      *GNU\ gold*) supports_anon_versioning=yes ;;
9428      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9429      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9430      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9431      *\ 2.11.*) ;; # other 2.11 versions
9432      *) supports_anon_versioning=yes ;;
9433    esac
9434
9435    # See if GNU ld supports shared libraries.
9436    case $host_os in
9437    aix[3-9]*)
9438      # On AIX/PPC, the GNU linker is very broken
9439      if test ia64 != "$host_cpu"; then
9440	ld_shlibs=no
9441	cat <<_LT_EOF 1>&2
9442
9443*** Warning: the GNU linker, at least up to release 2.19, is reported
9444*** to be unable to reliably create shared libraries on AIX.
9445*** Therefore, libtool is disabling shared libraries support.  If you
9446*** really care for shared libraries, you may want to install binutils
9447*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9448*** You will then need to restart the configuration process.
9449
9450_LT_EOF
9451      fi
9452      ;;
9453
9454    amigaos*)
9455      case $host_cpu in
9456      powerpc)
9457            # see comment about AmigaOS4 .so support
9458            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9459            archive_expsym_cmds=''
9460        ;;
9461      m68k)
9462            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)'
9463            hardcode_libdir_flag_spec='-L$libdir'
9464            hardcode_minus_L=yes
9465        ;;
9466      esac
9467      ;;
9468
9469    beos*)
9470      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9471	allow_undefined_flag=unsupported
9472	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9473	# support --undefined.  This deserves some investigation.  FIXME
9474	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9475      else
9476	ld_shlibs=no
9477      fi
9478      ;;
9479
9480    cygwin* | mingw* | pw32* | cegcc*)
9481      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9482      # as there is no search path for DLLs.
9483      hardcode_libdir_flag_spec='-L$libdir'
9484      export_dynamic_flag_spec='$wl--export-all-symbols'
9485      allow_undefined_flag=unsupported
9486      always_export_symbols=no
9487      enable_shared_with_static_runtimes=yes
9488      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'
9489      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9490
9491      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9492        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9493	# If the export-symbols file already is a .def file, use it as
9494	# is; otherwise, prepend EXPORTS...
9495	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9496          cp $export_symbols $output_objdir/$soname.def;
9497        else
9498          echo EXPORTS > $output_objdir/$soname.def;
9499          cat $export_symbols >> $output_objdir/$soname.def;
9500        fi~
9501        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9502      else
9503	ld_shlibs=no
9504      fi
9505      ;;
9506
9507    haiku*)
9508      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9509      link_all_deplibs=yes
9510      ;;
9511
9512    os2*)
9513      hardcode_libdir_flag_spec='-L$libdir'
9514      hardcode_minus_L=yes
9515      allow_undefined_flag=unsupported
9516      shrext_cmds=.dll
9517      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9518	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9519	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9520	$ECHO EXPORTS >> $output_objdir/$libname.def~
9521	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9522	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9523	emximp -o $lib $output_objdir/$libname.def'
9524      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9525	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9526	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9527	$ECHO EXPORTS >> $output_objdir/$libname.def~
9528	prefix_cmds="$SED"~
9529	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9530	  prefix_cmds="$prefix_cmds -e 1d";
9531	fi~
9532	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9533	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9534	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9535	emximp -o $lib $output_objdir/$libname.def'
9536      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9537      enable_shared_with_static_runtimes=yes
9538      ;;
9539
9540    interix[3-9]*)
9541      hardcode_direct=no
9542      hardcode_shlibpath_var=no
9543      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9544      export_dynamic_flag_spec='$wl-E'
9545      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9546      # Instead, shared libraries are loaded at an image base (0x10000000 by
9547      # default) and relocated if they conflict, which is a slow very memory
9548      # consuming and fragmenting process.  To avoid this, we pick a random,
9549      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9550      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9551      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9552      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'
9553      ;;
9554
9555    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9556      tmp_diet=no
9557      if test linux-dietlibc = "$host_os"; then
9558	case $cc_basename in
9559	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9560	esac
9561      fi
9562      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9563	 && test no = "$tmp_diet"
9564      then
9565	tmp_addflag=' $pic_flag'
9566	tmp_sharedflag='-shared'
9567	case $cc_basename,$host_cpu in
9568        pgcc*)				# Portland Group C compiler
9569	  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'
9570	  tmp_addflag=' $pic_flag'
9571	  ;;
9572	pgf77* | pgf90* | pgf95* | pgfortran*)
9573					# Portland Group f77 and f90 compilers
9574	  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'
9575	  tmp_addflag=' $pic_flag -Mnomain' ;;
9576	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9577	  tmp_addflag=' -i_dynamic' ;;
9578	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9579	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9580	ifc* | ifort*)			# Intel Fortran compiler
9581	  tmp_addflag=' -nofor_main' ;;
9582	lf95*)				# Lahey Fortran 8.1
9583	  whole_archive_flag_spec=
9584	  tmp_sharedflag='--shared' ;;
9585        nagfor*)                        # NAGFOR 5.3
9586          tmp_sharedflag='-Wl,-shared' ;;
9587	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9588	  tmp_sharedflag='-qmkshrobj'
9589	  tmp_addflag= ;;
9590	nvcc*)	# Cuda Compiler Driver 2.2
9591	  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'
9592	  compiler_needs_object=yes
9593	  ;;
9594	esac
9595	case `$CC -V 2>&1 | sed 5q` in
9596	*Sun\ C*)			# Sun C 5.9
9597	  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'
9598	  compiler_needs_object=yes
9599	  tmp_sharedflag='-G' ;;
9600	*Sun\ F*)			# Sun Fortran 8.3
9601	  tmp_sharedflag='-G' ;;
9602	esac
9603	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9604
9605        if test yes = "$supports_anon_versioning"; then
9606          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9607            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9608            echo "local: *; };" >> $output_objdir/$libname.ver~
9609            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9610        fi
9611
9612	case $cc_basename in
9613	tcc*)
9614	  export_dynamic_flag_spec='-rdynamic'
9615	  ;;
9616	xlf* | bgf* | bgxlf* | mpixlf*)
9617	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9618	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9619	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9620	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9621	  if test yes = "$supports_anon_versioning"; then
9622	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9623              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9624              echo "local: *; };" >> $output_objdir/$libname.ver~
9625              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9626	  fi
9627	  ;;
9628	esac
9629      else
9630        ld_shlibs=no
9631      fi
9632      ;;
9633
9634    netbsd* | netbsdelf*-gnu)
9635      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9636	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9637	wlarc=
9638      else
9639	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9640	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9641      fi
9642      ;;
9643
9644    solaris*)
9645      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9646	ld_shlibs=no
9647	cat <<_LT_EOF 1>&2
9648
9649*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9650*** create shared libraries on Solaris systems.  Therefore, libtool
9651*** is disabling shared libraries support.  We urge you to upgrade GNU
9652*** binutils to release 2.9.1 or newer.  Another option is to modify
9653*** your PATH or compiler configuration so that the native linker is
9654*** used, and then restart.
9655
9656_LT_EOF
9657      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9658	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9659	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9660      else
9661	ld_shlibs=no
9662      fi
9663      ;;
9664
9665    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9666      case `$LD -v 2>&1` in
9667        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9668	ld_shlibs=no
9669	cat <<_LT_EOF 1>&2
9670
9671*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9672*** reliably create shared libraries on SCO systems.  Therefore, libtool
9673*** is disabling shared libraries support.  We urge you to upgrade GNU
9674*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9675*** your PATH or compiler configuration so that the native linker is
9676*** used, and then restart.
9677
9678_LT_EOF
9679	;;
9680	*)
9681	  # For security reasons, it is highly recommended that you always
9682	  # use absolute paths for naming shared libraries, and exclude the
9683	  # DT_RUNPATH tag from executables and libraries.  But doing so
9684	  # requires that you compile everything twice, which is a pain.
9685	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9686	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9687	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9688	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9689	  else
9690	    ld_shlibs=no
9691	  fi
9692	;;
9693      esac
9694      ;;
9695
9696    sunos4*)
9697      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9698      wlarc=
9699      hardcode_direct=yes
9700      hardcode_shlibpath_var=no
9701      ;;
9702
9703    *)
9704      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9705	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9706	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9707      else
9708	ld_shlibs=no
9709      fi
9710      ;;
9711    esac
9712
9713    if test no = "$ld_shlibs"; then
9714      runpath_var=
9715      hardcode_libdir_flag_spec=
9716      export_dynamic_flag_spec=
9717      whole_archive_flag_spec=
9718    fi
9719  else
9720    # PORTME fill in a description of your system's linker (not GNU ld)
9721    case $host_os in
9722    aix3*)
9723      allow_undefined_flag=unsupported
9724      always_export_symbols=yes
9725      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'
9726      # Note: this linker hardcodes the directories in LIBPATH if there
9727      # are no directories specified by -L.
9728      hardcode_minus_L=yes
9729      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9730	# Neither direct hardcoding nor static linking is supported with a
9731	# broken collect2.
9732	hardcode_direct=unsupported
9733      fi
9734      ;;
9735
9736    aix[4-9]*)
9737      if test ia64 = "$host_cpu"; then
9738	# On IA64, the linker does run time linking by default, so we don't
9739	# have to do anything special.
9740	aix_use_runtimelinking=no
9741	exp_sym_flag='-Bexport'
9742	no_entry_flag=
9743      else
9744	# If we're using GNU nm, then we don't want the "-C" option.
9745	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9746	# Without the "-l" option, or with the "-B" option, AIX nm treats
9747	# weak defined symbols like other global defined symbols, whereas
9748	# GNU nm marks them as "W".
9749	# While the 'weak' keyword is ignored in the Export File, we need
9750	# it in the Import File for the 'aix-soname' feature, so we have
9751	# to replace the "-B" option with "-P" for AIX nm.
9752	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9753	  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'
9754	else
9755	  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'
9756	fi
9757	aix_use_runtimelinking=no
9758
9759	# Test if we are trying to use run time linking or normal
9760	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9761	# have runtime linking enabled, and use it for executables.
9762	# For shared libraries, we enable/disable runtime linking
9763	# depending on the kind of the shared library created -
9764	# when "with_aix_soname,aix_use_runtimelinking" is:
9765	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9766	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9767	#            lib.a           static archive
9768	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9769	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9770	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9771	#            lib.a(lib.so.V) shared, rtl:no
9772	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9773	#            lib.a           static archive
9774	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9775	  for ld_flag in $LDFLAGS; do
9776	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9777	    aix_use_runtimelinking=yes
9778	    break
9779	  fi
9780	  done
9781	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9782	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9783	    # so we don't have lib.a shared libs to link our executables.
9784	    # We have to force runtime linking in this case.
9785	    aix_use_runtimelinking=yes
9786	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9787	  fi
9788	  ;;
9789	esac
9790
9791	exp_sym_flag='-bexport'
9792	no_entry_flag='-bnoentry'
9793      fi
9794
9795      # When large executables or shared objects are built, AIX ld can
9796      # have problems creating the table of contents.  If linking a library
9797      # or program results in "error TOC overflow" add -mminimal-toc to
9798      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9799      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9800
9801      archive_cmds=''
9802      hardcode_direct=yes
9803      hardcode_direct_absolute=yes
9804      hardcode_libdir_separator=':'
9805      link_all_deplibs=yes
9806      file_list_spec='$wl-f,'
9807      case $with_aix_soname,$aix_use_runtimelinking in
9808      aix,*) ;; # traditional, no import file
9809      svr4,* | *,yes) # use import file
9810	# The Import File defines what to hardcode.
9811	hardcode_direct=no
9812	hardcode_direct_absolute=no
9813	;;
9814      esac
9815
9816      if test yes = "$GCC"; then
9817	case $host_os in aix4.[012]|aix4.[012].*)
9818	# We only want to do this on AIX 4.2 and lower, the check
9819	# below for broken collect2 doesn't work under 4.3+
9820	  collect2name=`$CC -print-prog-name=collect2`
9821	  if test -f "$collect2name" &&
9822	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9823	  then
9824	  # We have reworked collect2
9825	  :
9826	  else
9827	  # We have old collect2
9828	  hardcode_direct=unsupported
9829	  # It fails to find uninstalled libraries when the uninstalled
9830	  # path is not listed in the libpath.  Setting hardcode_minus_L
9831	  # to unsupported forces relinking
9832	  hardcode_minus_L=yes
9833	  hardcode_libdir_flag_spec='-L$libdir'
9834	  hardcode_libdir_separator=
9835	  fi
9836	  ;;
9837	esac
9838	shared_flag='-shared'
9839	if test yes = "$aix_use_runtimelinking"; then
9840	  shared_flag="$shared_flag "'$wl-G'
9841	fi
9842	# Need to ensure runtime linking is disabled for the traditional
9843	# shared library, or the linker may eventually find shared libraries
9844	# /with/ Import File - we do not want to mix them.
9845	shared_flag_aix='-shared'
9846	shared_flag_svr4='-shared $wl-G'
9847      else
9848	# not using gcc
9849	if test ia64 = "$host_cpu"; then
9850	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9851	# chokes on -Wl,-G. The following line is correct:
9852	  shared_flag='-G'
9853	else
9854	  if test yes = "$aix_use_runtimelinking"; then
9855	    shared_flag='$wl-G'
9856	  else
9857	    shared_flag='$wl-bM:SRE'
9858	  fi
9859	  shared_flag_aix='$wl-bM:SRE'
9860	  shared_flag_svr4='$wl-G'
9861	fi
9862      fi
9863
9864      export_dynamic_flag_spec='$wl-bexpall'
9865      # It seems that -bexpall does not export symbols beginning with
9866      # underscore (_), so it is better to generate a list of symbols to export.
9867      always_export_symbols=yes
9868      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9869	# Warning - without using the other runtime loading flags (-brtl),
9870	# -berok will link without error, but may produce a broken library.
9871	allow_undefined_flag='-berok'
9872        # Determine the default libpath from the value encoded in an
9873        # empty executable.
9874        if test set = "${lt_cv_aix_libpath+set}"; then
9875  aix_libpath=$lt_cv_aix_libpath
9876else
9877  if ${lt_cv_aix_libpath_+:} false; then :
9878  $as_echo_n "(cached) " >&6
9879else
9880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881/* end confdefs.h.  */
9882
9883int
9884main ()
9885{
9886
9887  ;
9888  return 0;
9889}
9890_ACEOF
9891if ac_fn_c_try_link "$LINENO"; then :
9892
9893  lt_aix_libpath_sed='
9894      /Import File Strings/,/^$/ {
9895	  /^0/ {
9896	      s/^0  *\([^ ]*\) *$/\1/
9897	      p
9898	  }
9899      }'
9900  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9901  # Check for a 64-bit object if we didn't find anything.
9902  if test -z "$lt_cv_aix_libpath_"; then
9903    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9904  fi
9905fi
9906rm -f core conftest.err conftest.$ac_objext \
9907    conftest$ac_exeext conftest.$ac_ext
9908  if test -z "$lt_cv_aix_libpath_"; then
9909    lt_cv_aix_libpath_=/usr/lib:/lib
9910  fi
9911
9912fi
9913
9914  aix_libpath=$lt_cv_aix_libpath_
9915fi
9916
9917        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9918        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
9919      else
9920	if test ia64 = "$host_cpu"; then
9921	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9922	  allow_undefined_flag="-z nodefs"
9923	  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"
9924	else
9925	 # Determine the default libpath from the value encoded in an
9926	 # empty executable.
9927	 if test set = "${lt_cv_aix_libpath+set}"; then
9928  aix_libpath=$lt_cv_aix_libpath
9929else
9930  if ${lt_cv_aix_libpath_+:} false; then :
9931  $as_echo_n "(cached) " >&6
9932else
9933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934/* end confdefs.h.  */
9935
9936int
9937main ()
9938{
9939
9940  ;
9941  return 0;
9942}
9943_ACEOF
9944if ac_fn_c_try_link "$LINENO"; then :
9945
9946  lt_aix_libpath_sed='
9947      /Import File Strings/,/^$/ {
9948	  /^0/ {
9949	      s/^0  *\([^ ]*\) *$/\1/
9950	      p
9951	  }
9952      }'
9953  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9954  # Check for a 64-bit object if we didn't find anything.
9955  if test -z "$lt_cv_aix_libpath_"; then
9956    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9957  fi
9958fi
9959rm -f core conftest.err conftest.$ac_objext \
9960    conftest$ac_exeext conftest.$ac_ext
9961  if test -z "$lt_cv_aix_libpath_"; then
9962    lt_cv_aix_libpath_=/usr/lib:/lib
9963  fi
9964
9965fi
9966
9967  aix_libpath=$lt_cv_aix_libpath_
9968fi
9969
9970	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9971	  # Warning - without using the other run time loading flags,
9972	  # -berok will link without error, but may produce a broken library.
9973	  no_undefined_flag=' $wl-bernotok'
9974	  allow_undefined_flag=' $wl-berok'
9975	  if test yes = "$with_gnu_ld"; then
9976	    # We only use this code for GNU lds that support --whole-archive.
9977	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9978	  else
9979	    # Exported symbols can be pulled into shared objects from archives
9980	    whole_archive_flag_spec='$convenience'
9981	  fi
9982	  archive_cmds_need_lc=yes
9983	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9984	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9985	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9986	  if test svr4 != "$with_aix_soname"; then
9987	    # This is similar to how AIX traditionally builds its shared libraries.
9988	    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'
9989	  fi
9990	  if test aix != "$with_aix_soname"; then
9991	    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'
9992	  else
9993	    # used by -dlpreopen to get the symbols
9994	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9995	  fi
9996	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9997	fi
9998      fi
9999      ;;
10000
10001    amigaos*)
10002      case $host_cpu in
10003      powerpc)
10004            # see comment about AmigaOS4 .so support
10005            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10006            archive_expsym_cmds=''
10007        ;;
10008      m68k)
10009            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)'
10010            hardcode_libdir_flag_spec='-L$libdir'
10011            hardcode_minus_L=yes
10012        ;;
10013      esac
10014      ;;
10015
10016    bsdi[45]*)
10017      export_dynamic_flag_spec=-rdynamic
10018      ;;
10019
10020    cygwin* | mingw* | pw32* | cegcc*)
10021      # When not using gcc, we currently assume that we are using
10022      # Microsoft Visual C++.
10023      # hardcode_libdir_flag_spec is actually meaningless, as there is
10024      # no search path for DLLs.
10025      case $cc_basename in
10026      cl*)
10027	# Native MSVC
10028	hardcode_libdir_flag_spec=' '
10029	allow_undefined_flag=unsupported
10030	always_export_symbols=yes
10031	file_list_spec='@'
10032	# Tell ltmain to make .lib files, not .a files.
10033	libext=lib
10034	# Tell ltmain to make .dll files, not .so files.
10035	shrext_cmds=.dll
10036	# FIXME: Setting linknames here is a bad hack.
10037	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10038	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10039            cp "$export_symbols" "$output_objdir/$soname.def";
10040            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10041          else
10042            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10043          fi~
10044          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10045          linknames='
10046	# The linker will not automatically build a static lib if we build a DLL.
10047	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10048	enable_shared_with_static_runtimes=yes
10049	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10050	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10051	# Don't use ranlib
10052	old_postinstall_cmds='chmod 644 $oldlib'
10053	postlink_cmds='lt_outputfile="@OUTPUT@"~
10054          lt_tool_outputfile="@TOOL_OUTPUT@"~
10055          case $lt_outputfile in
10056            *.exe|*.EXE) ;;
10057            *)
10058              lt_outputfile=$lt_outputfile.exe
10059              lt_tool_outputfile=$lt_tool_outputfile.exe
10060              ;;
10061          esac~
10062          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10063            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10064            $RM "$lt_outputfile.manifest";
10065          fi'
10066	;;
10067      *)
10068	# Assume MSVC wrapper
10069	hardcode_libdir_flag_spec=' '
10070	allow_undefined_flag=unsupported
10071	# Tell ltmain to make .lib files, not .a files.
10072	libext=lib
10073	# Tell ltmain to make .dll files, not .so files.
10074	shrext_cmds=.dll
10075	# FIXME: Setting linknames here is a bad hack.
10076	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10077	# The linker will automatically build a .lib file if we build a DLL.
10078	old_archive_from_new_cmds='true'
10079	# FIXME: Should let the user specify the lib program.
10080	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10081	enable_shared_with_static_runtimes=yes
10082	;;
10083      esac
10084      ;;
10085
10086    darwin* | rhapsody*)
10087
10088
10089  archive_cmds_need_lc=no
10090  hardcode_direct=no
10091  hardcode_automatic=yes
10092  hardcode_shlibpath_var=unsupported
10093  if test yes = "$lt_cv_ld_force_load"; then
10094    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\"`'
10095
10096  else
10097    whole_archive_flag_spec=''
10098  fi
10099  link_all_deplibs=yes
10100  allow_undefined_flag=$_lt_dar_allow_undefined
10101  case $cc_basename in
10102     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10103     *) _lt_dar_can_shared=$GCC ;;
10104  esac
10105  if test yes = "$_lt_dar_can_shared"; then
10106    output_verbose_link_cmd=func_echo_all
10107    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10108    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10109    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"
10110    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"
10111
10112  else
10113  ld_shlibs=no
10114  fi
10115
10116      ;;
10117
10118    dgux*)
10119      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120      hardcode_libdir_flag_spec='-L$libdir'
10121      hardcode_shlibpath_var=no
10122      ;;
10123
10124    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10125    # support.  Future versions do this automatically, but an explicit c++rt0.o
10126    # does not break anything, and helps significantly (at the cost of a little
10127    # extra space).
10128    freebsd2.2*)
10129      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10130      hardcode_libdir_flag_spec='-R$libdir'
10131      hardcode_direct=yes
10132      hardcode_shlibpath_var=no
10133      ;;
10134
10135    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10136    freebsd2.*)
10137      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10138      hardcode_direct=yes
10139      hardcode_minus_L=yes
10140      hardcode_shlibpath_var=no
10141      ;;
10142
10143    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10144    freebsd* | dragonfly*)
10145      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10146      hardcode_libdir_flag_spec='-R$libdir'
10147      hardcode_direct=yes
10148      hardcode_shlibpath_var=no
10149      ;;
10150
10151    hpux9*)
10152      if test yes = "$GCC"; then
10153	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'
10154      else
10155	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'
10156      fi
10157      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10158      hardcode_libdir_separator=:
10159      hardcode_direct=yes
10160
10161      # hardcode_minus_L: Not really in the search PATH,
10162      # but as the default location of the library.
10163      hardcode_minus_L=yes
10164      export_dynamic_flag_spec='$wl-E'
10165      ;;
10166
10167    hpux10*)
10168      if test yes,no = "$GCC,$with_gnu_ld"; then
10169	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10170      else
10171	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10172      fi
10173      if test no = "$with_gnu_ld"; then
10174	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10175	hardcode_libdir_separator=:
10176	hardcode_direct=yes
10177	hardcode_direct_absolute=yes
10178	export_dynamic_flag_spec='$wl-E'
10179	# hardcode_minus_L: Not really in the search PATH,
10180	# but as the default location of the library.
10181	hardcode_minus_L=yes
10182      fi
10183      ;;
10184
10185    hpux11*)
10186      if test yes,no = "$GCC,$with_gnu_ld"; then
10187	case $host_cpu in
10188	hppa*64*)
10189	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10190	  ;;
10191	ia64*)
10192	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10193	  ;;
10194	*)
10195	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10196	  ;;
10197	esac
10198      else
10199	case $host_cpu in
10200	hppa*64*)
10201	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10202	  ;;
10203	ia64*)
10204	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10205	  ;;
10206	*)
10207
10208	  # Older versions of the 11.00 compiler do not understand -b yet
10209	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10210	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10211$as_echo_n "checking if $CC understands -b... " >&6; }
10212if ${lt_cv_prog_compiler__b+:} false; then :
10213  $as_echo_n "(cached) " >&6
10214else
10215  lt_cv_prog_compiler__b=no
10216   save_LDFLAGS=$LDFLAGS
10217   LDFLAGS="$LDFLAGS -b"
10218   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10219   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10220     # The linker can only warn and ignore the option if not recognized
10221     # So say no if there are warnings
10222     if test -s conftest.err; then
10223       # Append any errors to the config.log.
10224       cat conftest.err 1>&5
10225       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10226       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10227       if diff conftest.exp conftest.er2 >/dev/null; then
10228         lt_cv_prog_compiler__b=yes
10229       fi
10230     else
10231       lt_cv_prog_compiler__b=yes
10232     fi
10233   fi
10234   $RM -r conftest*
10235   LDFLAGS=$save_LDFLAGS
10236
10237fi
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10239$as_echo "$lt_cv_prog_compiler__b" >&6; }
10240
10241if test yes = "$lt_cv_prog_compiler__b"; then
10242    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10243else
10244    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10245fi
10246
10247	  ;;
10248	esac
10249      fi
10250      if test no = "$with_gnu_ld"; then
10251	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10252	hardcode_libdir_separator=:
10253
10254	case $host_cpu in
10255	hppa*64*|ia64*)
10256	  hardcode_direct=no
10257	  hardcode_shlibpath_var=no
10258	  ;;
10259	*)
10260	  hardcode_direct=yes
10261	  hardcode_direct_absolute=yes
10262	  export_dynamic_flag_spec='$wl-E'
10263
10264	  # hardcode_minus_L: Not really in the search PATH,
10265	  # but as the default location of the library.
10266	  hardcode_minus_L=yes
10267	  ;;
10268	esac
10269      fi
10270      ;;
10271
10272    irix5* | irix6* | nonstopux*)
10273      if test yes = "$GCC"; then
10274	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'
10275	# Try to use the -exported_symbol ld option, if it does not
10276	# work, assume that -exports_file does not work either and
10277	# implicitly export all symbols.
10278	# This should be the same for all languages, so no per-tag cache variable.
10279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10280$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10281if ${lt_cv_irix_exported_symbol+:} false; then :
10282  $as_echo_n "(cached) " >&6
10283else
10284  save_LDFLAGS=$LDFLAGS
10285	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10286	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287/* end confdefs.h.  */
10288int foo (void) { return 0; }
10289_ACEOF
10290if ac_fn_c_try_link "$LINENO"; then :
10291  lt_cv_irix_exported_symbol=yes
10292else
10293  lt_cv_irix_exported_symbol=no
10294fi
10295rm -f core conftest.err conftest.$ac_objext \
10296    conftest$ac_exeext conftest.$ac_ext
10297           LDFLAGS=$save_LDFLAGS
10298fi
10299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10300$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10301	if test yes = "$lt_cv_irix_exported_symbol"; then
10302          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'
10303	fi
10304	link_all_deplibs=no
10305      else
10306	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'
10307	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'
10308      fi
10309      archive_cmds_need_lc='no'
10310      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10311      hardcode_libdir_separator=:
10312      inherit_rpath=yes
10313      link_all_deplibs=yes
10314      ;;
10315
10316    linux*)
10317      case $cc_basename in
10318      tcc*)
10319	# Fabrice Bellard et al's Tiny C Compiler
10320	ld_shlibs=yes
10321	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10322	;;
10323      esac
10324      ;;
10325
10326    netbsd* | netbsdelf*-gnu)
10327      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10328	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10329      else
10330	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10331      fi
10332      hardcode_libdir_flag_spec='-R$libdir'
10333      hardcode_direct=yes
10334      hardcode_shlibpath_var=no
10335      ;;
10336
10337    newsos6)
10338      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339      hardcode_direct=yes
10340      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10341      hardcode_libdir_separator=:
10342      hardcode_shlibpath_var=no
10343      ;;
10344
10345    *nto* | *qnx*)
10346      ;;
10347
10348    openbsd* | bitrig*)
10349      if test -f /usr/libexec/ld.so; then
10350	hardcode_direct=yes
10351	hardcode_shlibpath_var=no
10352	hardcode_direct_absolute=yes
10353	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10354	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10355	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10356	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10357	  export_dynamic_flag_spec='$wl-E'
10358	else
10359	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10360	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10361	fi
10362      else
10363	ld_shlibs=no
10364      fi
10365      ;;
10366
10367    os2*)
10368      hardcode_libdir_flag_spec='-L$libdir'
10369      hardcode_minus_L=yes
10370      allow_undefined_flag=unsupported
10371      shrext_cmds=.dll
10372      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10373	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10374	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10375	$ECHO EXPORTS >> $output_objdir/$libname.def~
10376	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10377	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10378	emximp -o $lib $output_objdir/$libname.def'
10379      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10380	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10381	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10382	$ECHO EXPORTS >> $output_objdir/$libname.def~
10383	prefix_cmds="$SED"~
10384	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10385	  prefix_cmds="$prefix_cmds -e 1d";
10386	fi~
10387	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10388	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10389	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10390	emximp -o $lib $output_objdir/$libname.def'
10391      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10392      enable_shared_with_static_runtimes=yes
10393      ;;
10394
10395    osf3*)
10396      if test yes = "$GCC"; then
10397	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10398	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'
10399      else
10400	allow_undefined_flag=' -expect_unresolved \*'
10401	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'
10402      fi
10403      archive_cmds_need_lc='no'
10404      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10405      hardcode_libdir_separator=:
10406      ;;
10407
10408    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10409      if test yes = "$GCC"; then
10410	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10411	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'
10412	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10413      else
10414	allow_undefined_flag=' -expect_unresolved \*'
10415	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'
10416	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~
10417          $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'
10418
10419	# Both c and cxx compiler support -rpath directly
10420	hardcode_libdir_flag_spec='-rpath $libdir'
10421      fi
10422      archive_cmds_need_lc='no'
10423      hardcode_libdir_separator=:
10424      ;;
10425
10426    solaris*)
10427      no_undefined_flag=' -z defs'
10428      if test yes = "$GCC"; then
10429	wlarc='$wl'
10430	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10431	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10432          $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'
10433      else
10434	case `$CC -V 2>&1` in
10435	*"Compilers 5.0"*)
10436	  wlarc=''
10437	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10438	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10439            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10440	  ;;
10441	*)
10442	  wlarc='$wl'
10443	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10444	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10445            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10446	  ;;
10447	esac
10448      fi
10449      hardcode_libdir_flag_spec='-R$libdir'
10450      hardcode_shlibpath_var=no
10451      case $host_os in
10452      solaris2.[0-5] | solaris2.[0-5].*) ;;
10453      *)
10454	# The compiler driver will combine and reorder linker options,
10455	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10456	# but is careful enough not to reorder.
10457	# Supported since Solaris 2.6 (maybe 2.5.1?)
10458	if test yes = "$GCC"; then
10459	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10460	else
10461	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10462	fi
10463	;;
10464      esac
10465      link_all_deplibs=yes
10466      ;;
10467
10468    sunos4*)
10469      if test sequent = "$host_vendor"; then
10470	# Use $CC to link under sequent, because it throws in some extra .o
10471	# files that make .init and .fini sections work.
10472	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10473      else
10474	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10475      fi
10476      hardcode_libdir_flag_spec='-L$libdir'
10477      hardcode_direct=yes
10478      hardcode_minus_L=yes
10479      hardcode_shlibpath_var=no
10480      ;;
10481
10482    sysv4)
10483      case $host_vendor in
10484	sni)
10485	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10486	  hardcode_direct=yes # is this really true???
10487	;;
10488	siemens)
10489	  ## LD is ld it makes a PLAMLIB
10490	  ## CC just makes a GrossModule.
10491	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10492	  reload_cmds='$CC -r -o $output$reload_objs'
10493	  hardcode_direct=no
10494        ;;
10495	motorola)
10496	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10497	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10498	;;
10499      esac
10500      runpath_var='LD_RUN_PATH'
10501      hardcode_shlibpath_var=no
10502      ;;
10503
10504    sysv4.3*)
10505      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10506      hardcode_shlibpath_var=no
10507      export_dynamic_flag_spec='-Bexport'
10508      ;;
10509
10510    sysv4*MP*)
10511      if test -d /usr/nec; then
10512	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513	hardcode_shlibpath_var=no
10514	runpath_var=LD_RUN_PATH
10515	hardcode_runpath_var=yes
10516	ld_shlibs=yes
10517      fi
10518      ;;
10519
10520    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10521      no_undefined_flag='$wl-z,text'
10522      archive_cmds_need_lc=no
10523      hardcode_shlibpath_var=no
10524      runpath_var='LD_RUN_PATH'
10525
10526      if test yes = "$GCC"; then
10527	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10528	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10529      else
10530	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10531	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10532      fi
10533      ;;
10534
10535    sysv5* | sco3.2v5* | sco5v6*)
10536      # Note: We CANNOT use -z defs as we might desire, because we do not
10537      # link with -lc, and that would cause any symbols used from libc to
10538      # always be unresolved, which means just about no library would
10539      # ever link correctly.  If we're not using GNU ld we use -z text
10540      # though, which does catch some bad symbols but isn't as heavy-handed
10541      # as -z defs.
10542      no_undefined_flag='$wl-z,text'
10543      allow_undefined_flag='$wl-z,nodefs'
10544      archive_cmds_need_lc=no
10545      hardcode_shlibpath_var=no
10546      hardcode_libdir_flag_spec='$wl-R,$libdir'
10547      hardcode_libdir_separator=':'
10548      link_all_deplibs=yes
10549      export_dynamic_flag_spec='$wl-Bexport'
10550      runpath_var='LD_RUN_PATH'
10551
10552      if test yes = "$GCC"; then
10553	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10554	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10555      else
10556	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10557	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558      fi
10559      ;;
10560
10561    uts4*)
10562      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563      hardcode_libdir_flag_spec='-L$libdir'
10564      hardcode_shlibpath_var=no
10565      ;;
10566
10567    *)
10568      ld_shlibs=no
10569      ;;
10570    esac
10571
10572    if test sni = "$host_vendor"; then
10573      case $host in
10574      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10575	export_dynamic_flag_spec='$wl-Blargedynsym'
10576	;;
10577      esac
10578    fi
10579  fi
10580
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10582$as_echo "$ld_shlibs" >&6; }
10583test no = "$ld_shlibs" && can_build_shared=no
10584
10585with_gnu_ld=$with_gnu_ld
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601#
10602# Do we need to explicitly link libc?
10603#
10604case "x$archive_cmds_need_lc" in
10605x|xyes)
10606  # Assume -lc should be added
10607  archive_cmds_need_lc=yes
10608
10609  if test yes,yes = "$GCC,$enable_shared"; then
10610    case $archive_cmds in
10611    *'~'*)
10612      # FIXME: we may have to deal with multi-command sequences.
10613      ;;
10614    '$CC '*)
10615      # Test whether the compiler implicitly links with -lc since on some
10616      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10617      # to ld, don't add -lc before -lgcc.
10618      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10619$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10620if ${lt_cv_archive_cmds_need_lc+:} false; then :
10621  $as_echo_n "(cached) " >&6
10622else
10623  $RM conftest*
10624	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10625
10626	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10627  (eval $ac_compile) 2>&5
10628  ac_status=$?
10629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10630  test $ac_status = 0; } 2>conftest.err; then
10631	  soname=conftest
10632	  lib=conftest
10633	  libobjs=conftest.$ac_objext
10634	  deplibs=
10635	  wl=$lt_prog_compiler_wl
10636	  pic_flag=$lt_prog_compiler_pic
10637	  compiler_flags=-v
10638	  linker_flags=-v
10639	  verstring=
10640	  output_objdir=.
10641	  libname=conftest
10642	  lt_save_allow_undefined_flag=$allow_undefined_flag
10643	  allow_undefined_flag=
10644	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10645  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10646  ac_status=$?
10647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10648  test $ac_status = 0; }
10649	  then
10650	    lt_cv_archive_cmds_need_lc=no
10651	  else
10652	    lt_cv_archive_cmds_need_lc=yes
10653	  fi
10654	  allow_undefined_flag=$lt_save_allow_undefined_flag
10655	else
10656	  cat conftest.err 1>&5
10657	fi
10658	$RM conftest*
10659
10660fi
10661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10662$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10663      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10664      ;;
10665    esac
10666  fi
10667  ;;
10668esac
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10822$as_echo_n "checking dynamic linker characteristics... " >&6; }
10823
10824if test yes = "$GCC"; then
10825  case $host_os in
10826    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10827    *) lt_awk_arg='/^libraries:/' ;;
10828  esac
10829  case $host_os in
10830    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10831    *) lt_sed_strip_eq='s|=/|/|g' ;;
10832  esac
10833  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10834  case $lt_search_path_spec in
10835  *\;*)
10836    # if the path contains ";" then we assume it to be the separator
10837    # otherwise default to the standard path separator (i.e. ":") - it is
10838    # assumed that no part of a normal pathname contains ";" but that should
10839    # okay in the real world where ";" in dirpaths is itself problematic.
10840    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10841    ;;
10842  *)
10843    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10844    ;;
10845  esac
10846  # Ok, now we have the path, separated by spaces, we can step through it
10847  # and add multilib dir if necessary...
10848  lt_tmp_lt_search_path_spec=
10849  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10850  # ...but if some path component already ends with the multilib dir we assume
10851  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10852  case "$lt_multi_os_dir; $lt_search_path_spec " in
10853  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10854    lt_multi_os_dir=
10855    ;;
10856  esac
10857  for lt_sys_path in $lt_search_path_spec; do
10858    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10859      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10860    elif test -n "$lt_multi_os_dir"; then
10861      test -d "$lt_sys_path" && \
10862	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10863    fi
10864  done
10865  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10866BEGIN {RS = " "; FS = "/|\n";} {
10867  lt_foo = "";
10868  lt_count = 0;
10869  for (lt_i = NF; lt_i > 0; lt_i--) {
10870    if ($lt_i != "" && $lt_i != ".") {
10871      if ($lt_i == "..") {
10872        lt_count++;
10873      } else {
10874        if (lt_count == 0) {
10875          lt_foo = "/" $lt_i lt_foo;
10876        } else {
10877          lt_count--;
10878        }
10879      }
10880    }
10881  }
10882  if (lt_foo != "") { lt_freq[lt_foo]++; }
10883  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10884}'`
10885  # AWK program above erroneously prepends '/' to C:/dos/paths
10886  # for these hosts.
10887  case $host_os in
10888    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10889      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10890  esac
10891  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10892else
10893  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10894fi
10895library_names_spec=
10896libname_spec='lib$name'
10897soname_spec=
10898shrext_cmds=.so
10899postinstall_cmds=
10900postuninstall_cmds=
10901finish_cmds=
10902finish_eval=
10903shlibpath_var=
10904shlibpath_overrides_runpath=unknown
10905version_type=none
10906dynamic_linker="$host_os ld.so"
10907sys_lib_dlsearch_path_spec="/lib /usr/lib"
10908need_lib_prefix=unknown
10909hardcode_into_libs=no
10910
10911# when you set need_version to no, make sure it does not cause -set_version
10912# flags to be left without arguments
10913need_version=unknown
10914
10915
10916
10917case $host_os in
10918aix3*)
10919  version_type=linux # correct to gnu/linux during the next big refactor
10920  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10921  shlibpath_var=LIBPATH
10922
10923  # AIX 3 has no versioning support, so we append a major version to the name.
10924  soname_spec='$libname$release$shared_ext$major'
10925  ;;
10926
10927aix[4-9]*)
10928  version_type=linux # correct to gnu/linux during the next big refactor
10929  need_lib_prefix=no
10930  need_version=no
10931  hardcode_into_libs=yes
10932  if test ia64 = "$host_cpu"; then
10933    # AIX 5 supports IA64
10934    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10935    shlibpath_var=LD_LIBRARY_PATH
10936  else
10937    # With GCC up to 2.95.x, collect2 would create an import file
10938    # for dependence libraries.  The import file would start with
10939    # the line '#! .'.  This would cause the generated library to
10940    # depend on '.', always an invalid library.  This was fixed in
10941    # development snapshots of GCC prior to 3.0.
10942    case $host_os in
10943      aix4 | aix4.[01] | aix4.[01].*)
10944      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10945	   echo ' yes '
10946	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10947	:
10948      else
10949	can_build_shared=no
10950      fi
10951      ;;
10952    esac
10953    # Using Import Files as archive members, it is possible to support
10954    # filename-based versioning of shared library archives on AIX. While
10955    # this would work for both with and without runtime linking, it will
10956    # prevent static linking of such archives. So we do filename-based
10957    # shared library versioning with .so extension only, which is used
10958    # when both runtime linking and shared linking is enabled.
10959    # Unfortunately, runtime linking may impact performance, so we do
10960    # not want this to be the default eventually. Also, we use the
10961    # versioned .so libs for executables only if there is the -brtl
10962    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10963    # To allow for filename-based versioning support, we need to create
10964    # libNAME.so.V as an archive file, containing:
10965    # *) an Import File, referring to the versioned filename of the
10966    #    archive as well as the shared archive member, telling the
10967    #    bitwidth (32 or 64) of that shared object, and providing the
10968    #    list of exported symbols of that shared object, eventually
10969    #    decorated with the 'weak' keyword
10970    # *) the shared object with the F_LOADONLY flag set, to really avoid
10971    #    it being seen by the linker.
10972    # At run time we better use the real file rather than another symlink,
10973    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10974
10975    case $with_aix_soname,$aix_use_runtimelinking in
10976    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10977    # soname into executable. Probably we can add versioning support to
10978    # collect2, so additional links can be useful in future.
10979    aix,yes) # traditional libtool
10980      dynamic_linker='AIX unversionable lib.so'
10981      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10982      # instead of lib<name>.a to let people know that these are not
10983      # typical AIX shared libraries.
10984      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10985      ;;
10986    aix,no) # traditional AIX only
10987      dynamic_linker='AIX lib.a(lib.so.V)'
10988      # We preserve .a as extension for shared libraries through AIX4.2
10989      # and later when we are not doing run time linking.
10990      library_names_spec='$libname$release.a $libname.a'
10991      soname_spec='$libname$release$shared_ext$major'
10992      ;;
10993    svr4,*) # full svr4 only
10994      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10995      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10996      # We do not specify a path in Import Files, so LIBPATH fires.
10997      shlibpath_overrides_runpath=yes
10998      ;;
10999    *,yes) # both, prefer svr4
11000      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11001      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11002      # unpreferred sharedlib libNAME.a needs extra handling
11003      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"'
11004      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"'
11005      # We do not specify a path in Import Files, so LIBPATH fires.
11006      shlibpath_overrides_runpath=yes
11007      ;;
11008    *,no) # both, prefer aix
11009      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11010      library_names_spec='$libname$release.a $libname.a'
11011      soname_spec='$libname$release$shared_ext$major'
11012      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11013      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)'
11014      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"'
11015      ;;
11016    esac
11017    shlibpath_var=LIBPATH
11018  fi
11019  ;;
11020
11021amigaos*)
11022  case $host_cpu in
11023  powerpc)
11024    # Since July 2007 AmigaOS4 officially supports .so libraries.
11025    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11026    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11027    ;;
11028  m68k)
11029    library_names_spec='$libname.ixlibrary $libname.a'
11030    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11031    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'
11032    ;;
11033  esac
11034  ;;
11035
11036beos*)
11037  library_names_spec='$libname$shared_ext'
11038  dynamic_linker="$host_os ld.so"
11039  shlibpath_var=LIBRARY_PATH
11040  ;;
11041
11042bsdi[45]*)
11043  version_type=linux # correct to gnu/linux during the next big refactor
11044  need_version=no
11045  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11046  soname_spec='$libname$release$shared_ext$major'
11047  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11048  shlibpath_var=LD_LIBRARY_PATH
11049  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11050  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11051  # the default ld.so.conf also contains /usr/contrib/lib and
11052  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11053  # libtool to hard-code these into programs
11054  ;;
11055
11056cygwin* | mingw* | pw32* | cegcc*)
11057  version_type=windows
11058  shrext_cmds=.dll
11059  need_version=no
11060  need_lib_prefix=no
11061
11062  case $GCC,$cc_basename in
11063  yes,*)
11064    # gcc
11065    library_names_spec='$libname.dll.a'
11066    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11067    postinstall_cmds='base_file=`basename \$file`~
11068      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11069      dldir=$destdir/`dirname \$dlpath`~
11070      test -d \$dldir || mkdir -p \$dldir~
11071      $install_prog $dir/$dlname \$dldir/$dlname~
11072      chmod a+x \$dldir/$dlname~
11073      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11074        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11075      fi'
11076    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11077      dlpath=$dir/\$dldll~
11078       $RM \$dlpath'
11079    shlibpath_overrides_runpath=yes
11080
11081    case $host_os in
11082    cygwin*)
11083      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11084      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11085
11086      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11087      ;;
11088    mingw* | cegcc*)
11089      # MinGW DLLs use traditional 'lib' prefix
11090      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11091      ;;
11092    pw32*)
11093      # pw32 DLLs use 'pw' prefix rather than 'lib'
11094      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11095      ;;
11096    esac
11097    dynamic_linker='Win32 ld.exe'
11098    ;;
11099
11100  *,cl*)
11101    # Native MSVC
11102    libname_spec='$name'
11103    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11104    library_names_spec='$libname.dll.lib'
11105
11106    case $build_os in
11107    mingw*)
11108      sys_lib_search_path_spec=
11109      lt_save_ifs=$IFS
11110      IFS=';'
11111      for lt_path in $LIB
11112      do
11113        IFS=$lt_save_ifs
11114        # Let DOS variable expansion print the short 8.3 style file name.
11115        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11116        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11117      done
11118      IFS=$lt_save_ifs
11119      # Convert to MSYS style.
11120      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11121      ;;
11122    cygwin*)
11123      # Convert to unix form, then to dos form, then back to unix form
11124      # but this time dos style (no spaces!) so that the unix form looks
11125      # like /cygdrive/c/PROGRA~1:/cygdr...
11126      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11127      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11128      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11129      ;;
11130    *)
11131      sys_lib_search_path_spec=$LIB
11132      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11133        # It is most probably a Windows format PATH.
11134        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11135      else
11136        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11137      fi
11138      # FIXME: find the short name or the path components, as spaces are
11139      # common. (e.g. "Program Files" -> "PROGRA~1")
11140      ;;
11141    esac
11142
11143    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11144    postinstall_cmds='base_file=`basename \$file`~
11145      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11146      dldir=$destdir/`dirname \$dlpath`~
11147      test -d \$dldir || mkdir -p \$dldir~
11148      $install_prog $dir/$dlname \$dldir/$dlname'
11149    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11150      dlpath=$dir/\$dldll~
11151       $RM \$dlpath'
11152    shlibpath_overrides_runpath=yes
11153    dynamic_linker='Win32 link.exe'
11154    ;;
11155
11156  *)
11157    # Assume MSVC wrapper
11158    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11159    dynamic_linker='Win32 ld.exe'
11160    ;;
11161  esac
11162  # FIXME: first we should search . and the directory the executable is in
11163  shlibpath_var=PATH
11164  ;;
11165
11166darwin* | rhapsody*)
11167  dynamic_linker="$host_os dyld"
11168  version_type=darwin
11169  need_lib_prefix=no
11170  need_version=no
11171  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11172  soname_spec='$libname$release$major$shared_ext'
11173  shlibpath_overrides_runpath=yes
11174  shlibpath_var=DYLD_LIBRARY_PATH
11175  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11176
11177  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11178  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11179  ;;
11180
11181dgux*)
11182  version_type=linux # correct to gnu/linux during the next big refactor
11183  need_lib_prefix=no
11184  need_version=no
11185  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11186  soname_spec='$libname$release$shared_ext$major'
11187  shlibpath_var=LD_LIBRARY_PATH
11188  ;;
11189
11190freebsd* | dragonfly*)
11191  # DragonFly does not have aout.  When/if they implement a new
11192  # versioning mechanism, adjust this.
11193  if test -x /usr/bin/objformat; then
11194    objformat=`/usr/bin/objformat`
11195  else
11196    case $host_os in
11197    freebsd[23].*) objformat=aout ;;
11198    *) objformat=elf ;;
11199    esac
11200  fi
11201  version_type=freebsd-$objformat
11202  case $version_type in
11203    freebsd-elf*)
11204      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11205      soname_spec='$libname$release$shared_ext$major'
11206      need_version=no
11207      need_lib_prefix=no
11208      ;;
11209    freebsd-*)
11210      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11211      need_version=yes
11212      ;;
11213  esac
11214  shlibpath_var=LD_LIBRARY_PATH
11215  case $host_os in
11216  freebsd2.*)
11217    shlibpath_overrides_runpath=yes
11218    ;;
11219  freebsd3.[01]* | freebsdelf3.[01]*)
11220    shlibpath_overrides_runpath=yes
11221    hardcode_into_libs=yes
11222    ;;
11223  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11224  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11225    shlibpath_overrides_runpath=no
11226    hardcode_into_libs=yes
11227    ;;
11228  *) # from 4.6 on, and DragonFly
11229    shlibpath_overrides_runpath=yes
11230    hardcode_into_libs=yes
11231    ;;
11232  esac
11233  ;;
11234
11235haiku*)
11236  version_type=linux # correct to gnu/linux during the next big refactor
11237  need_lib_prefix=no
11238  need_version=no
11239  dynamic_linker="$host_os runtime_loader"
11240  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241  soname_spec='$libname$release$shared_ext$major'
11242  shlibpath_var=LIBRARY_PATH
11243  shlibpath_overrides_runpath=no
11244  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11245  hardcode_into_libs=yes
11246  ;;
11247
11248hpux9* | hpux10* | hpux11*)
11249  # Give a soname corresponding to the major version so that dld.sl refuses to
11250  # link against other versions.
11251  version_type=sunos
11252  need_lib_prefix=no
11253  need_version=no
11254  case $host_cpu in
11255  ia64*)
11256    shrext_cmds='.so'
11257    hardcode_into_libs=yes
11258    dynamic_linker="$host_os dld.so"
11259    shlibpath_var=LD_LIBRARY_PATH
11260    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11261    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11262    soname_spec='$libname$release$shared_ext$major'
11263    if test 32 = "$HPUX_IA64_MODE"; then
11264      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11265      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11266    else
11267      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11268      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11269    fi
11270    ;;
11271  hppa*64*)
11272    shrext_cmds='.sl'
11273    hardcode_into_libs=yes
11274    dynamic_linker="$host_os dld.sl"
11275    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11276    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11277    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11278    soname_spec='$libname$release$shared_ext$major'
11279    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11280    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11281    ;;
11282  *)
11283    shrext_cmds='.sl'
11284    dynamic_linker="$host_os dld.sl"
11285    shlibpath_var=SHLIB_PATH
11286    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11287    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11288    soname_spec='$libname$release$shared_ext$major'
11289    ;;
11290  esac
11291  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11292  postinstall_cmds='chmod 555 $lib'
11293  # or fails outright, so override atomically:
11294  install_override_mode=555
11295  ;;
11296
11297interix[3-9]*)
11298  version_type=linux # correct to gnu/linux during the next big refactor
11299  need_lib_prefix=no
11300  need_version=no
11301  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11302  soname_spec='$libname$release$shared_ext$major'
11303  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11304  shlibpath_var=LD_LIBRARY_PATH
11305  shlibpath_overrides_runpath=no
11306  hardcode_into_libs=yes
11307  ;;
11308
11309irix5* | irix6* | nonstopux*)
11310  case $host_os in
11311    nonstopux*) version_type=nonstopux ;;
11312    *)
11313	if test yes = "$lt_cv_prog_gnu_ld"; then
11314		version_type=linux # correct to gnu/linux during the next big refactor
11315	else
11316		version_type=irix
11317	fi ;;
11318  esac
11319  need_lib_prefix=no
11320  need_version=no
11321  soname_spec='$libname$release$shared_ext$major'
11322  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11323  case $host_os in
11324  irix5* | nonstopux*)
11325    libsuff= shlibsuff=
11326    ;;
11327  *)
11328    case $LD in # libtool.m4 will add one of these switches to LD
11329    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11330      libsuff= shlibsuff= libmagic=32-bit;;
11331    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11332      libsuff=32 shlibsuff=N32 libmagic=N32;;
11333    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11334      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11335    *) libsuff= shlibsuff= libmagic=never-match;;
11336    esac
11337    ;;
11338  esac
11339  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11340  shlibpath_overrides_runpath=no
11341  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11342  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11343  hardcode_into_libs=yes
11344  ;;
11345
11346# No shared lib support for Linux oldld, aout, or coff.
11347linux*oldld* | linux*aout* | linux*coff*)
11348  dynamic_linker=no
11349  ;;
11350
11351linux*android*)
11352  version_type=none # Android doesn't support versioned libraries.
11353  need_lib_prefix=no
11354  need_version=no
11355  library_names_spec='$libname$release$shared_ext'
11356  soname_spec='$libname$release$shared_ext'
11357  finish_cmds=
11358  shlibpath_var=LD_LIBRARY_PATH
11359  shlibpath_overrides_runpath=yes
11360
11361  # This implies no fast_install, which is unacceptable.
11362  # Some rework will be needed to allow for fast_install
11363  # before this can be enabled.
11364  hardcode_into_libs=yes
11365
11366  dynamic_linker='Android linker'
11367  # Don't embed -rpath directories since the linker doesn't support them.
11368  hardcode_libdir_flag_spec='-L$libdir'
11369  ;;
11370
11371# This must be glibc/ELF.
11372linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11373  version_type=linux # correct to gnu/linux during the next big refactor
11374  need_lib_prefix=no
11375  need_version=no
11376  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11377  soname_spec='$libname$release$shared_ext$major'
11378  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11379  shlibpath_var=LD_LIBRARY_PATH
11380  shlibpath_overrides_runpath=no
11381
11382  # Some binutils ld are patched to set DT_RUNPATH
11383  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11384  $as_echo_n "(cached) " >&6
11385else
11386  lt_cv_shlibpath_overrides_runpath=no
11387    save_LDFLAGS=$LDFLAGS
11388    save_libdir=$libdir
11389    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11390	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11391    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392/* end confdefs.h.  */
11393
11394int
11395main ()
11396{
11397
11398  ;
11399  return 0;
11400}
11401_ACEOF
11402if ac_fn_c_try_link "$LINENO"; then :
11403  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11404  lt_cv_shlibpath_overrides_runpath=yes
11405fi
11406fi
11407rm -f core conftest.err conftest.$ac_objext \
11408    conftest$ac_exeext conftest.$ac_ext
11409    LDFLAGS=$save_LDFLAGS
11410    libdir=$save_libdir
11411
11412fi
11413
11414  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11415
11416  # This implies no fast_install, which is unacceptable.
11417  # Some rework will be needed to allow for fast_install
11418  # before this can be enabled.
11419  hardcode_into_libs=yes
11420
11421  # Ideally, we could use ldconfig to report *all* directores which are
11422  # searched for libraries, however this is still not possible.  Aside from not
11423  # being certain /sbin/ldconfig is available, command
11424  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11425  # even though it is searched at run-time.  Try to do the best guess by
11426  # appending ld.so.conf contents (and includes) to the search path.
11427  if test -f /etc/ld.so.conf; then
11428    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' ' '`
11429    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11430  fi
11431
11432  # We used to test for /lib/ld.so.1 and disable shared libraries on
11433  # powerpc, because MkLinux only supported shared libraries with the
11434  # GNU dynamic linker.  Since this was broken with cross compilers,
11435  # most powerpc-linux boxes support dynamic linking these days and
11436  # people can always --disable-shared, the test was removed, and we
11437  # assume the GNU/Linux dynamic linker is in use.
11438  dynamic_linker='GNU/Linux ld.so'
11439  ;;
11440
11441netbsdelf*-gnu)
11442  version_type=linux
11443  need_lib_prefix=no
11444  need_version=no
11445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11446  soname_spec='${libname}${release}${shared_ext}$major'
11447  shlibpath_var=LD_LIBRARY_PATH
11448  shlibpath_overrides_runpath=no
11449  hardcode_into_libs=yes
11450  dynamic_linker='NetBSD ld.elf_so'
11451  ;;
11452
11453netbsd*)
11454  version_type=sunos
11455  need_lib_prefix=no
11456  need_version=no
11457  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11458    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11459    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11460    dynamic_linker='NetBSD (a.out) ld.so'
11461  else
11462    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11463    soname_spec='$libname$release$shared_ext$major'
11464    dynamic_linker='NetBSD ld.elf_so'
11465  fi
11466  shlibpath_var=LD_LIBRARY_PATH
11467  shlibpath_overrides_runpath=yes
11468  hardcode_into_libs=yes
11469  ;;
11470
11471newsos6)
11472  version_type=linux # correct to gnu/linux during the next big refactor
11473  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11474  shlibpath_var=LD_LIBRARY_PATH
11475  shlibpath_overrides_runpath=yes
11476  ;;
11477
11478*nto* | *qnx*)
11479  version_type=qnx
11480  need_lib_prefix=no
11481  need_version=no
11482  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483  soname_spec='$libname$release$shared_ext$major'
11484  shlibpath_var=LD_LIBRARY_PATH
11485  shlibpath_overrides_runpath=no
11486  hardcode_into_libs=yes
11487  dynamic_linker='ldqnx.so'
11488  ;;
11489
11490openbsd* | bitrig*)
11491  version_type=sunos
11492  sys_lib_dlsearch_path_spec=/usr/lib
11493  need_lib_prefix=no
11494  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11495    need_version=no
11496  else
11497    need_version=yes
11498  fi
11499  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11500  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11501  shlibpath_var=LD_LIBRARY_PATH
11502  shlibpath_overrides_runpath=yes
11503  ;;
11504
11505os2*)
11506  libname_spec='$name'
11507  version_type=windows
11508  shrext_cmds=.dll
11509  need_version=no
11510  need_lib_prefix=no
11511  # OS/2 can only load a DLL with a base name of 8 characters or less.
11512  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11513    v=$($ECHO $release$versuffix | tr -d .-);
11514    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11515    $ECHO $n$v`$shared_ext'
11516  library_names_spec='${libname}_dll.$libext'
11517  dynamic_linker='OS/2 ld.exe'
11518  shlibpath_var=BEGINLIBPATH
11519  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11520  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11521  postinstall_cmds='base_file=`basename \$file`~
11522    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11523    dldir=$destdir/`dirname \$dlpath`~
11524    test -d \$dldir || mkdir -p \$dldir~
11525    $install_prog $dir/$dlname \$dldir/$dlname~
11526    chmod a+x \$dldir/$dlname~
11527    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11528      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11529    fi'
11530  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11531    dlpath=$dir/\$dldll~
11532    $RM \$dlpath'
11533  ;;
11534
11535osf3* | osf4* | osf5*)
11536  version_type=osf
11537  need_lib_prefix=no
11538  need_version=no
11539  soname_spec='$libname$release$shared_ext$major'
11540  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11541  shlibpath_var=LD_LIBRARY_PATH
11542  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11543  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11544  ;;
11545
11546rdos*)
11547  dynamic_linker=no
11548  ;;
11549
11550solaris*)
11551  version_type=linux # correct to gnu/linux during the next big refactor
11552  need_lib_prefix=no
11553  need_version=no
11554  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11555  soname_spec='$libname$release$shared_ext$major'
11556  shlibpath_var=LD_LIBRARY_PATH
11557  shlibpath_overrides_runpath=yes
11558  hardcode_into_libs=yes
11559  # ldd complains unless libraries are executable
11560  postinstall_cmds='chmod +x $lib'
11561  ;;
11562
11563sunos4*)
11564  version_type=sunos
11565  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11566  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11567  shlibpath_var=LD_LIBRARY_PATH
11568  shlibpath_overrides_runpath=yes
11569  if test yes = "$with_gnu_ld"; then
11570    need_lib_prefix=no
11571  fi
11572  need_version=yes
11573  ;;
11574
11575sysv4 | sysv4.3*)
11576  version_type=linux # correct to gnu/linux during the next big refactor
11577  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11578  soname_spec='$libname$release$shared_ext$major'
11579  shlibpath_var=LD_LIBRARY_PATH
11580  case $host_vendor in
11581    sni)
11582      shlibpath_overrides_runpath=no
11583      need_lib_prefix=no
11584      runpath_var=LD_RUN_PATH
11585      ;;
11586    siemens)
11587      need_lib_prefix=no
11588      ;;
11589    motorola)
11590      need_lib_prefix=no
11591      need_version=no
11592      shlibpath_overrides_runpath=no
11593      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11594      ;;
11595  esac
11596  ;;
11597
11598sysv4*MP*)
11599  if test -d /usr/nec; then
11600    version_type=linux # correct to gnu/linux during the next big refactor
11601    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11602    soname_spec='$libname$shared_ext.$major'
11603    shlibpath_var=LD_LIBRARY_PATH
11604  fi
11605  ;;
11606
11607sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11608  version_type=sco
11609  need_lib_prefix=no
11610  need_version=no
11611  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11612  soname_spec='$libname$release$shared_ext$major'
11613  shlibpath_var=LD_LIBRARY_PATH
11614  shlibpath_overrides_runpath=yes
11615  hardcode_into_libs=yes
11616  if test yes = "$with_gnu_ld"; then
11617    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11618  else
11619    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11620    case $host_os in
11621      sco3.2v5*)
11622        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11623	;;
11624    esac
11625  fi
11626  sys_lib_dlsearch_path_spec='/usr/lib'
11627  ;;
11628
11629tpf*)
11630  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11631  version_type=linux # correct to gnu/linux during the next big refactor
11632  need_lib_prefix=no
11633  need_version=no
11634  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11635  shlibpath_var=LD_LIBRARY_PATH
11636  shlibpath_overrides_runpath=no
11637  hardcode_into_libs=yes
11638  ;;
11639
11640uts4*)
11641  version_type=linux # correct to gnu/linux during the next big refactor
11642  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11643  soname_spec='$libname$release$shared_ext$major'
11644  shlibpath_var=LD_LIBRARY_PATH
11645  ;;
11646
11647*)
11648  dynamic_linker=no
11649  ;;
11650esac
11651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11652$as_echo "$dynamic_linker" >&6; }
11653test no = "$dynamic_linker" && can_build_shared=no
11654
11655variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11656if test yes = "$GCC"; then
11657  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11658fi
11659
11660if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11661  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11662fi
11663
11664if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11665  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11666fi
11667
11668# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11669configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11670
11671# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11672func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11673
11674# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11675configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11774$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11775hardcode_action=
11776if test -n "$hardcode_libdir_flag_spec" ||
11777   test -n "$runpath_var" ||
11778   test yes = "$hardcode_automatic"; then
11779
11780  # We can hardcode non-existent directories.
11781  if test no != "$hardcode_direct" &&
11782     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11783     # have to relink, otherwise we might link with an installed library
11784     # when we should be linking with a yet-to-be-installed one
11785     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11786     test no != "$hardcode_minus_L"; then
11787    # Linking always hardcodes the temporary library directory.
11788    hardcode_action=relink
11789  else
11790    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11791    hardcode_action=immediate
11792  fi
11793else
11794  # We cannot hardcode anything, or else we can only hardcode existing
11795  # directories.
11796  hardcode_action=unsupported
11797fi
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11799$as_echo "$hardcode_action" >&6; }
11800
11801if test relink = "$hardcode_action" ||
11802   test yes = "$inherit_rpath"; then
11803  # Fast installation is not supported
11804  enable_fast_install=no
11805elif test yes = "$shlibpath_overrides_runpath" ||
11806     test no = "$enable_shared"; then
11807  # Fast installation is not necessary
11808  enable_fast_install=needless
11809fi
11810
11811
11812
11813
11814
11815
11816  if test yes != "$enable_dlopen"; then
11817  enable_dlopen=unknown
11818  enable_dlopen_self=unknown
11819  enable_dlopen_self_static=unknown
11820else
11821  lt_cv_dlopen=no
11822  lt_cv_dlopen_libs=
11823
11824  case $host_os in
11825  beos*)
11826    lt_cv_dlopen=load_add_on
11827    lt_cv_dlopen_libs=
11828    lt_cv_dlopen_self=yes
11829    ;;
11830
11831  mingw* | pw32* | cegcc*)
11832    lt_cv_dlopen=LoadLibrary
11833    lt_cv_dlopen_libs=
11834    ;;
11835
11836  cygwin*)
11837    lt_cv_dlopen=dlopen
11838    lt_cv_dlopen_libs=
11839    ;;
11840
11841  darwin*)
11842    # if libdl is installed we need to link against it
11843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11844$as_echo_n "checking for dlopen in -ldl... " >&6; }
11845if ${ac_cv_lib_dl_dlopen+:} false; then :
11846  $as_echo_n "(cached) " >&6
11847else
11848  ac_check_lib_save_LIBS=$LIBS
11849LIBS="-ldl  $LIBS"
11850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851/* end confdefs.h.  */
11852
11853/* Override any GCC internal prototype to avoid an error.
11854   Use char because int might match the return type of a GCC
11855   builtin and then its argument prototype would still apply.  */
11856#ifdef __cplusplus
11857extern "C"
11858#endif
11859char dlopen ();
11860int
11861main ()
11862{
11863return dlopen ();
11864  ;
11865  return 0;
11866}
11867_ACEOF
11868if ac_fn_c_try_link "$LINENO"; then :
11869  ac_cv_lib_dl_dlopen=yes
11870else
11871  ac_cv_lib_dl_dlopen=no
11872fi
11873rm -f core conftest.err conftest.$ac_objext \
11874    conftest$ac_exeext conftest.$ac_ext
11875LIBS=$ac_check_lib_save_LIBS
11876fi
11877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11878$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11879if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11880  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11881else
11882
11883    lt_cv_dlopen=dyld
11884    lt_cv_dlopen_libs=
11885    lt_cv_dlopen_self=yes
11886
11887fi
11888
11889    ;;
11890
11891  tpf*)
11892    # Don't try to run any link tests for TPF.  We know it's impossible
11893    # because TPF is a cross-compiler, and we know how we open DSOs.
11894    lt_cv_dlopen=dlopen
11895    lt_cv_dlopen_libs=
11896    lt_cv_dlopen_self=no
11897    ;;
11898
11899  *)
11900    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11901if test "x$ac_cv_func_shl_load" = xyes; then :
11902  lt_cv_dlopen=shl_load
11903else
11904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11905$as_echo_n "checking for shl_load in -ldld... " >&6; }
11906if ${ac_cv_lib_dld_shl_load+:} false; then :
11907  $as_echo_n "(cached) " >&6
11908else
11909  ac_check_lib_save_LIBS=$LIBS
11910LIBS="-ldld  $LIBS"
11911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912/* end confdefs.h.  */
11913
11914/* Override any GCC internal prototype to avoid an error.
11915   Use char because int might match the return type of a GCC
11916   builtin and then its argument prototype would still apply.  */
11917#ifdef __cplusplus
11918extern "C"
11919#endif
11920char shl_load ();
11921int
11922main ()
11923{
11924return shl_load ();
11925  ;
11926  return 0;
11927}
11928_ACEOF
11929if ac_fn_c_try_link "$LINENO"; then :
11930  ac_cv_lib_dld_shl_load=yes
11931else
11932  ac_cv_lib_dld_shl_load=no
11933fi
11934rm -f core conftest.err conftest.$ac_objext \
11935    conftest$ac_exeext conftest.$ac_ext
11936LIBS=$ac_check_lib_save_LIBS
11937fi
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11939$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11940if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11941  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11942else
11943  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11944if test "x$ac_cv_func_dlopen" = xyes; then :
11945  lt_cv_dlopen=dlopen
11946else
11947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11948$as_echo_n "checking for dlopen in -ldl... " >&6; }
11949if ${ac_cv_lib_dl_dlopen+:} false; then :
11950  $as_echo_n "(cached) " >&6
11951else
11952  ac_check_lib_save_LIBS=$LIBS
11953LIBS="-ldl  $LIBS"
11954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955/* end confdefs.h.  */
11956
11957/* Override any GCC internal prototype to avoid an error.
11958   Use char because int might match the return type of a GCC
11959   builtin and then its argument prototype would still apply.  */
11960#ifdef __cplusplus
11961extern "C"
11962#endif
11963char dlopen ();
11964int
11965main ()
11966{
11967return dlopen ();
11968  ;
11969  return 0;
11970}
11971_ACEOF
11972if ac_fn_c_try_link "$LINENO"; then :
11973  ac_cv_lib_dl_dlopen=yes
11974else
11975  ac_cv_lib_dl_dlopen=no
11976fi
11977rm -f core conftest.err conftest.$ac_objext \
11978    conftest$ac_exeext conftest.$ac_ext
11979LIBS=$ac_check_lib_save_LIBS
11980fi
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11982$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11983if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11984  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11985else
11986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11987$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11988if ${ac_cv_lib_svld_dlopen+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  ac_check_lib_save_LIBS=$LIBS
11992LIBS="-lsvld  $LIBS"
11993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994/* end confdefs.h.  */
11995
11996/* Override any GCC internal prototype to avoid an error.
11997   Use char because int might match the return type of a GCC
11998   builtin and then its argument prototype would still apply.  */
11999#ifdef __cplusplus
12000extern "C"
12001#endif
12002char dlopen ();
12003int
12004main ()
12005{
12006return dlopen ();
12007  ;
12008  return 0;
12009}
12010_ACEOF
12011if ac_fn_c_try_link "$LINENO"; then :
12012  ac_cv_lib_svld_dlopen=yes
12013else
12014  ac_cv_lib_svld_dlopen=no
12015fi
12016rm -f core conftest.err conftest.$ac_objext \
12017    conftest$ac_exeext conftest.$ac_ext
12018LIBS=$ac_check_lib_save_LIBS
12019fi
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12021$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12022if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12023  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12024else
12025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12026$as_echo_n "checking for dld_link in -ldld... " >&6; }
12027if ${ac_cv_lib_dld_dld_link+:} false; then :
12028  $as_echo_n "(cached) " >&6
12029else
12030  ac_check_lib_save_LIBS=$LIBS
12031LIBS="-ldld  $LIBS"
12032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033/* end confdefs.h.  */
12034
12035/* Override any GCC internal prototype to avoid an error.
12036   Use char because int might match the return type of a GCC
12037   builtin and then its argument prototype would still apply.  */
12038#ifdef __cplusplus
12039extern "C"
12040#endif
12041char dld_link ();
12042int
12043main ()
12044{
12045return dld_link ();
12046  ;
12047  return 0;
12048}
12049_ACEOF
12050if ac_fn_c_try_link "$LINENO"; then :
12051  ac_cv_lib_dld_dld_link=yes
12052else
12053  ac_cv_lib_dld_dld_link=no
12054fi
12055rm -f core conftest.err conftest.$ac_objext \
12056    conftest$ac_exeext conftest.$ac_ext
12057LIBS=$ac_check_lib_save_LIBS
12058fi
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12060$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12061if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12062  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12063fi
12064
12065
12066fi
12067
12068
12069fi
12070
12071
12072fi
12073
12074
12075fi
12076
12077
12078fi
12079
12080    ;;
12081  esac
12082
12083  if test no = "$lt_cv_dlopen"; then
12084    enable_dlopen=no
12085  else
12086    enable_dlopen=yes
12087  fi
12088
12089  case $lt_cv_dlopen in
12090  dlopen)
12091    save_CPPFLAGS=$CPPFLAGS
12092    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12093
12094    save_LDFLAGS=$LDFLAGS
12095    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12096
12097    save_LIBS=$LIBS
12098    LIBS="$lt_cv_dlopen_libs $LIBS"
12099
12100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12101$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12102if ${lt_cv_dlopen_self+:} false; then :
12103  $as_echo_n "(cached) " >&6
12104else
12105  	  if test yes = "$cross_compiling"; then :
12106  lt_cv_dlopen_self=cross
12107else
12108  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12109  lt_status=$lt_dlunknown
12110  cat > conftest.$ac_ext <<_LT_EOF
12111#line $LINENO "configure"
12112#include "confdefs.h"
12113
12114#if HAVE_DLFCN_H
12115#include <dlfcn.h>
12116#endif
12117
12118#include <stdio.h>
12119
12120#ifdef RTLD_GLOBAL
12121#  define LT_DLGLOBAL		RTLD_GLOBAL
12122#else
12123#  ifdef DL_GLOBAL
12124#    define LT_DLGLOBAL		DL_GLOBAL
12125#  else
12126#    define LT_DLGLOBAL		0
12127#  endif
12128#endif
12129
12130/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12131   find out it does not work in some platform. */
12132#ifndef LT_DLLAZY_OR_NOW
12133#  ifdef RTLD_LAZY
12134#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12135#  else
12136#    ifdef DL_LAZY
12137#      define LT_DLLAZY_OR_NOW		DL_LAZY
12138#    else
12139#      ifdef RTLD_NOW
12140#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12141#      else
12142#        ifdef DL_NOW
12143#          define LT_DLLAZY_OR_NOW	DL_NOW
12144#        else
12145#          define LT_DLLAZY_OR_NOW	0
12146#        endif
12147#      endif
12148#    endif
12149#  endif
12150#endif
12151
12152/* When -fvisibility=hidden is used, assume the code has been annotated
12153   correspondingly for the symbols needed.  */
12154#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12155int fnord () __attribute__((visibility("default")));
12156#endif
12157
12158int fnord () { return 42; }
12159int main ()
12160{
12161  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12162  int status = $lt_dlunknown;
12163
12164  if (self)
12165    {
12166      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12167      else
12168        {
12169	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12170          else puts (dlerror ());
12171	}
12172      /* dlclose (self); */
12173    }
12174  else
12175    puts (dlerror ());
12176
12177  return status;
12178}
12179_LT_EOF
12180  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12181  (eval $ac_link) 2>&5
12182  ac_status=$?
12183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12185    (./conftest; exit; ) >&5 2>/dev/null
12186    lt_status=$?
12187    case x$lt_status in
12188      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12189      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12190      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12191    esac
12192  else :
12193    # compilation failed
12194    lt_cv_dlopen_self=no
12195  fi
12196fi
12197rm -fr conftest*
12198
12199
12200fi
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12202$as_echo "$lt_cv_dlopen_self" >&6; }
12203
12204    if test yes = "$lt_cv_dlopen_self"; then
12205      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12206      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12207$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12208if ${lt_cv_dlopen_self_static+:} false; then :
12209  $as_echo_n "(cached) " >&6
12210else
12211  	  if test yes = "$cross_compiling"; then :
12212  lt_cv_dlopen_self_static=cross
12213else
12214  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12215  lt_status=$lt_dlunknown
12216  cat > conftest.$ac_ext <<_LT_EOF
12217#line $LINENO "configure"
12218#include "confdefs.h"
12219
12220#if HAVE_DLFCN_H
12221#include <dlfcn.h>
12222#endif
12223
12224#include <stdio.h>
12225
12226#ifdef RTLD_GLOBAL
12227#  define LT_DLGLOBAL		RTLD_GLOBAL
12228#else
12229#  ifdef DL_GLOBAL
12230#    define LT_DLGLOBAL		DL_GLOBAL
12231#  else
12232#    define LT_DLGLOBAL		0
12233#  endif
12234#endif
12235
12236/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12237   find out it does not work in some platform. */
12238#ifndef LT_DLLAZY_OR_NOW
12239#  ifdef RTLD_LAZY
12240#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12241#  else
12242#    ifdef DL_LAZY
12243#      define LT_DLLAZY_OR_NOW		DL_LAZY
12244#    else
12245#      ifdef RTLD_NOW
12246#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12247#      else
12248#        ifdef DL_NOW
12249#          define LT_DLLAZY_OR_NOW	DL_NOW
12250#        else
12251#          define LT_DLLAZY_OR_NOW	0
12252#        endif
12253#      endif
12254#    endif
12255#  endif
12256#endif
12257
12258/* When -fvisibility=hidden is used, assume the code has been annotated
12259   correspondingly for the symbols needed.  */
12260#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12261int fnord () __attribute__((visibility("default")));
12262#endif
12263
12264int fnord () { return 42; }
12265int main ()
12266{
12267  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12268  int status = $lt_dlunknown;
12269
12270  if (self)
12271    {
12272      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12273      else
12274        {
12275	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12276          else puts (dlerror ());
12277	}
12278      /* dlclose (self); */
12279    }
12280  else
12281    puts (dlerror ());
12282
12283  return status;
12284}
12285_LT_EOF
12286  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12287  (eval $ac_link) 2>&5
12288  ac_status=$?
12289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12290  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12291    (./conftest; exit; ) >&5 2>/dev/null
12292    lt_status=$?
12293    case x$lt_status in
12294      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12295      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12296      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12297    esac
12298  else :
12299    # compilation failed
12300    lt_cv_dlopen_self_static=no
12301  fi
12302fi
12303rm -fr conftest*
12304
12305
12306fi
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12308$as_echo "$lt_cv_dlopen_self_static" >&6; }
12309    fi
12310
12311    CPPFLAGS=$save_CPPFLAGS
12312    LDFLAGS=$save_LDFLAGS
12313    LIBS=$save_LIBS
12314    ;;
12315  esac
12316
12317  case $lt_cv_dlopen_self in
12318  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12319  *) enable_dlopen_self=unknown ;;
12320  esac
12321
12322  case $lt_cv_dlopen_self_static in
12323  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12324  *) enable_dlopen_self_static=unknown ;;
12325  esac
12326fi
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344striplib=
12345old_striplib=
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12347$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12348if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12349  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12350  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12352$as_echo "yes" >&6; }
12353else
12354# FIXME - insert some real tests, host_os isn't really good enough
12355  case $host_os in
12356  darwin*)
12357    if test -n "$STRIP"; then
12358      striplib="$STRIP -x"
12359      old_striplib="$STRIP -S"
12360      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12361$as_echo "yes" >&6; }
12362    else
12363      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364$as_echo "no" >&6; }
12365    fi
12366    ;;
12367  *)
12368    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369$as_echo "no" >&6; }
12370    ;;
12371  esac
12372fi
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385  # Report what library types will actually be built
12386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12387$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12389$as_echo "$can_build_shared" >&6; }
12390
12391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12392$as_echo_n "checking whether to build shared libraries... " >&6; }
12393  test no = "$can_build_shared" && enable_shared=no
12394
12395  # On AIX, shared libraries and static libraries use the same namespace, and
12396  # are all built from PIC.
12397  case $host_os in
12398  aix3*)
12399    test yes = "$enable_shared" && enable_static=no
12400    if test -n "$RANLIB"; then
12401      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12402      postinstall_cmds='$RANLIB $lib'
12403    fi
12404    ;;
12405
12406  aix[4-9]*)
12407    if test ia64 != "$host_cpu"; then
12408      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12409      yes,aix,yes) ;;			# shared object as lib.so file only
12410      yes,svr4,*) ;;			# shared object as lib.so archive member only
12411      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12412      esac
12413    fi
12414    ;;
12415  esac
12416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12417$as_echo "$enable_shared" >&6; }
12418
12419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12420$as_echo_n "checking whether to build static libraries... " >&6; }
12421  # Make sure either enable_shared or enable_static is yes.
12422  test yes = "$enable_shared" || enable_static=yes
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12424$as_echo "$enable_static" >&6; }
12425
12426
12427
12428
12429fi
12430ac_ext=cpp
12431ac_cpp='$CXXCPP $CPPFLAGS'
12432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12435
12436CC=$lt_save_CC
12437
12438      if test -n "$CXX" && ( test no != "$CXX" &&
12439    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12440    (test g++ != "$CXX"))); then
12441  ac_ext=cpp
12442ac_cpp='$CXXCPP $CPPFLAGS'
12443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12447$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12448if test -z "$CXXCPP"; then
12449  if ${ac_cv_prog_CXXCPP+:} false; then :
12450  $as_echo_n "(cached) " >&6
12451else
12452      # Double quotes because CXXCPP needs to be expanded
12453    for CXXCPP in "$CXX -E" "/lib/cpp"
12454    do
12455      ac_preproc_ok=false
12456for ac_cxx_preproc_warn_flag in '' yes
12457do
12458  # Use a header file that comes with gcc, so configuring glibc
12459  # with a fresh cross-compiler works.
12460  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12461  # <limits.h> exists even on freestanding compilers.
12462  # On the NeXT, cc -E runs the code through the compiler's parser,
12463  # not just through cpp. "Syntax error" is here to catch this case.
12464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465/* end confdefs.h.  */
12466#ifdef __STDC__
12467# include <limits.h>
12468#else
12469# include <assert.h>
12470#endif
12471		     Syntax error
12472_ACEOF
12473if ac_fn_cxx_try_cpp "$LINENO"; then :
12474
12475else
12476  # Broken: fails on valid input.
12477continue
12478fi
12479rm -f conftest.err conftest.i conftest.$ac_ext
12480
12481  # OK, works on sane cases.  Now check whether nonexistent headers
12482  # can be detected and how.
12483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484/* end confdefs.h.  */
12485#include <ac_nonexistent.h>
12486_ACEOF
12487if ac_fn_cxx_try_cpp "$LINENO"; then :
12488  # Broken: success on invalid input.
12489continue
12490else
12491  # Passes both tests.
12492ac_preproc_ok=:
12493break
12494fi
12495rm -f conftest.err conftest.i conftest.$ac_ext
12496
12497done
12498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12499rm -f conftest.i conftest.err conftest.$ac_ext
12500if $ac_preproc_ok; then :
12501  break
12502fi
12503
12504    done
12505    ac_cv_prog_CXXCPP=$CXXCPP
12506
12507fi
12508  CXXCPP=$ac_cv_prog_CXXCPP
12509else
12510  ac_cv_prog_CXXCPP=$CXXCPP
12511fi
12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12513$as_echo "$CXXCPP" >&6; }
12514ac_preproc_ok=false
12515for ac_cxx_preproc_warn_flag in '' yes
12516do
12517  # Use a header file that comes with gcc, so configuring glibc
12518  # with a fresh cross-compiler works.
12519  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12520  # <limits.h> exists even on freestanding compilers.
12521  # On the NeXT, cc -E runs the code through the compiler's parser,
12522  # not just through cpp. "Syntax error" is here to catch this case.
12523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524/* end confdefs.h.  */
12525#ifdef __STDC__
12526# include <limits.h>
12527#else
12528# include <assert.h>
12529#endif
12530		     Syntax error
12531_ACEOF
12532if ac_fn_cxx_try_cpp "$LINENO"; then :
12533
12534else
12535  # Broken: fails on valid input.
12536continue
12537fi
12538rm -f conftest.err conftest.i conftest.$ac_ext
12539
12540  # OK, works on sane cases.  Now check whether nonexistent headers
12541  # can be detected and how.
12542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543/* end confdefs.h.  */
12544#include <ac_nonexistent.h>
12545_ACEOF
12546if ac_fn_cxx_try_cpp "$LINENO"; then :
12547  # Broken: success on invalid input.
12548continue
12549else
12550  # Passes both tests.
12551ac_preproc_ok=:
12552break
12553fi
12554rm -f conftest.err conftest.i conftest.$ac_ext
12555
12556done
12557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12558rm -f conftest.i conftest.err conftest.$ac_ext
12559if $ac_preproc_ok; then :
12560
12561else
12562  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12564as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12565See \`config.log' for more details" "$LINENO" 5; }
12566fi
12567
12568ac_ext=cpp
12569ac_cpp='$CXXCPP $CPPFLAGS'
12570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12573
12574else
12575  _lt_caught_CXX_error=yes
12576fi
12577
12578ac_ext=cpp
12579ac_cpp='$CXXCPP $CPPFLAGS'
12580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12583
12584archive_cmds_need_lc_CXX=no
12585allow_undefined_flag_CXX=
12586always_export_symbols_CXX=no
12587archive_expsym_cmds_CXX=
12588compiler_needs_object_CXX=no
12589export_dynamic_flag_spec_CXX=
12590hardcode_direct_CXX=no
12591hardcode_direct_absolute_CXX=no
12592hardcode_libdir_flag_spec_CXX=
12593hardcode_libdir_separator_CXX=
12594hardcode_minus_L_CXX=no
12595hardcode_shlibpath_var_CXX=unsupported
12596hardcode_automatic_CXX=no
12597inherit_rpath_CXX=no
12598module_cmds_CXX=
12599module_expsym_cmds_CXX=
12600link_all_deplibs_CXX=unknown
12601old_archive_cmds_CXX=$old_archive_cmds
12602reload_flag_CXX=$reload_flag
12603reload_cmds_CXX=$reload_cmds
12604no_undefined_flag_CXX=
12605whole_archive_flag_spec_CXX=
12606enable_shared_with_static_runtimes_CXX=no
12607
12608# Source file extension for C++ test sources.
12609ac_ext=cpp
12610
12611# Object file extension for compiled C++ test sources.
12612objext=o
12613objext_CXX=$objext
12614
12615# No sense in running all these tests if we already determined that
12616# the CXX compiler isn't working.  Some variables (like enable_shared)
12617# are currently assumed to apply to all compilers on this platform,
12618# and will be corrupted by setting them based on a non-working compiler.
12619if test yes != "$_lt_caught_CXX_error"; then
12620  # Code to be used in simple compile tests
12621  lt_simple_compile_test_code="int some_variable = 0;"
12622
12623  # Code to be used in simple link tests
12624  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12625
12626  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12627
12628
12629
12630
12631
12632
12633# If no C compiler was specified, use CC.
12634LTCC=${LTCC-"$CC"}
12635
12636# If no C compiler flags were specified, use CFLAGS.
12637LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12638
12639# Allow CC to be a program name with arguments.
12640compiler=$CC
12641
12642
12643  # save warnings/boilerplate of simple test code
12644  ac_outfile=conftest.$ac_objext
12645echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12646eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12647_lt_compiler_boilerplate=`cat conftest.err`
12648$RM conftest*
12649
12650  ac_outfile=conftest.$ac_objext
12651echo "$lt_simple_link_test_code" >conftest.$ac_ext
12652eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12653_lt_linker_boilerplate=`cat conftest.err`
12654$RM -r conftest*
12655
12656
12657  # Allow CC to be a program name with arguments.
12658  lt_save_CC=$CC
12659  lt_save_CFLAGS=$CFLAGS
12660  lt_save_LD=$LD
12661  lt_save_GCC=$GCC
12662  GCC=$GXX
12663  lt_save_with_gnu_ld=$with_gnu_ld
12664  lt_save_path_LD=$lt_cv_path_LD
12665  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12666    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12667  else
12668    $as_unset lt_cv_prog_gnu_ld
12669  fi
12670  if test -n "${lt_cv_path_LDCXX+set}"; then
12671    lt_cv_path_LD=$lt_cv_path_LDCXX
12672  else
12673    $as_unset lt_cv_path_LD
12674  fi
12675  test -z "${LDCXX+set}" || LD=$LDCXX
12676  CC=${CXX-"c++"}
12677  CFLAGS=$CXXFLAGS
12678  compiler=$CC
12679  compiler_CXX=$CC
12680  func_cc_basename $compiler
12681cc_basename=$func_cc_basename_result
12682
12683
12684  if test -n "$compiler"; then
12685    # We don't want -fno-exception when compiling C++ code, so set the
12686    # no_builtin_flag separately
12687    if test yes = "$GXX"; then
12688      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12689    else
12690      lt_prog_compiler_no_builtin_flag_CXX=
12691    fi
12692
12693    if test yes = "$GXX"; then
12694      # Set up default GNU C++ configuration
12695
12696
12697
12698# Check whether --with-gnu-ld was given.
12699if test "${with_gnu_ld+set}" = set; then :
12700  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12701else
12702  with_gnu_ld=no
12703fi
12704
12705ac_prog=ld
12706if test yes = "$GCC"; then
12707  # Check if gcc -print-prog-name=ld gives a path.
12708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12709$as_echo_n "checking for ld used by $CC... " >&6; }
12710  case $host in
12711  *-*-mingw*)
12712    # gcc leaves a trailing carriage return, which upsets mingw
12713    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12714  *)
12715    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12716  esac
12717  case $ac_prog in
12718    # Accept absolute paths.
12719    [\\/]* | ?:[\\/]*)
12720      re_direlt='/[^/][^/]*/\.\./'
12721      # Canonicalize the pathname of ld
12722      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12723      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12724	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12725      done
12726      test -z "$LD" && LD=$ac_prog
12727      ;;
12728  "")
12729    # If it fails, then pretend we aren't using GCC.
12730    ac_prog=ld
12731    ;;
12732  *)
12733    # If it is relative, then search for the first ld in PATH.
12734    with_gnu_ld=unknown
12735    ;;
12736  esac
12737elif test yes = "$with_gnu_ld"; then
12738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12739$as_echo_n "checking for GNU ld... " >&6; }
12740else
12741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12742$as_echo_n "checking for non-GNU ld... " >&6; }
12743fi
12744if ${lt_cv_path_LD+:} false; then :
12745  $as_echo_n "(cached) " >&6
12746else
12747  if test -z "$LD"; then
12748  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12749  for ac_dir in $PATH; do
12750    IFS=$lt_save_ifs
12751    test -z "$ac_dir" && ac_dir=.
12752    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12753      lt_cv_path_LD=$ac_dir/$ac_prog
12754      # Check to see if the program is GNU ld.  I'd rather use --version,
12755      # but apparently some variants of GNU ld only accept -v.
12756      # Break only if it was the GNU/non-GNU ld that we prefer.
12757      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12758      *GNU* | *'with BFD'*)
12759	test no != "$with_gnu_ld" && break
12760	;;
12761      *)
12762	test yes != "$with_gnu_ld" && break
12763	;;
12764      esac
12765    fi
12766  done
12767  IFS=$lt_save_ifs
12768else
12769  lt_cv_path_LD=$LD # Let the user override the test with a path.
12770fi
12771fi
12772
12773LD=$lt_cv_path_LD
12774if test -n "$LD"; then
12775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12776$as_echo "$LD" >&6; }
12777else
12778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779$as_echo "no" >&6; }
12780fi
12781test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12783$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12784if ${lt_cv_prog_gnu_ld+:} false; then :
12785  $as_echo_n "(cached) " >&6
12786else
12787  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12788case `$LD -v 2>&1 </dev/null` in
12789*GNU* | *'with BFD'*)
12790  lt_cv_prog_gnu_ld=yes
12791  ;;
12792*)
12793  lt_cv_prog_gnu_ld=no
12794  ;;
12795esac
12796fi
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12798$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12799with_gnu_ld=$lt_cv_prog_gnu_ld
12800
12801
12802
12803
12804
12805
12806
12807      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12808      # archiving commands below assume that GNU ld is being used.
12809      if test yes = "$with_gnu_ld"; then
12810        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12811        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'
12812
12813        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12814        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12815
12816        # If archive_cmds runs LD, not CC, wlarc should be empty
12817        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12818        #     investigate it a little bit more. (MM)
12819        wlarc='$wl'
12820
12821        # ancient GNU ld didn't support --whole-archive et. al.
12822        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12823	  $GREP 'no-whole-archive' > /dev/null; then
12824          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12825        else
12826          whole_archive_flag_spec_CXX=
12827        fi
12828      else
12829        with_gnu_ld=no
12830        wlarc=
12831
12832        # A generic and very simple default shared library creation
12833        # command for GNU C++ for the case where it uses the native
12834        # linker, instead of GNU ld.  If possible, this setting should
12835        # overridden to take advantage of the native linker features on
12836        # the platform it is being used on.
12837        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12838      fi
12839
12840      # Commands to make compiler produce verbose output that lists
12841      # what "hidden" libraries, object files and flags are used when
12842      # linking a shared library.
12843      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
12844
12845    else
12846      GXX=no
12847      with_gnu_ld=no
12848      wlarc=
12849    fi
12850
12851    # PORTME: fill in a description of your system's C++ link characteristics
12852    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12853$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12854    ld_shlibs_CXX=yes
12855    case $host_os in
12856      aix3*)
12857        # FIXME: insert proper C++ library support
12858        ld_shlibs_CXX=no
12859        ;;
12860      aix[4-9]*)
12861        if test ia64 = "$host_cpu"; then
12862          # On IA64, the linker does run time linking by default, so we don't
12863          # have to do anything special.
12864          aix_use_runtimelinking=no
12865          exp_sym_flag='-Bexport'
12866          no_entry_flag=
12867        else
12868          aix_use_runtimelinking=no
12869
12870          # Test if we are trying to use run time linking or normal
12871          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12872          # have runtime linking enabled, and use it for executables.
12873          # For shared libraries, we enable/disable runtime linking
12874          # depending on the kind of the shared library created -
12875          # when "with_aix_soname,aix_use_runtimelinking" is:
12876          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12877          # "aix,yes"  lib.so          shared, rtl:yes, for executables
12878          #            lib.a           static archive
12879          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12880          #            lib.a(lib.so.V) shared, rtl:no,  for executables
12881          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12882          #            lib.a(lib.so.V) shared, rtl:no
12883          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12884          #            lib.a           static archive
12885          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12886	    for ld_flag in $LDFLAGS; do
12887	      case $ld_flag in
12888	      *-brtl*)
12889	        aix_use_runtimelinking=yes
12890	        break
12891	        ;;
12892	      esac
12893	    done
12894	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12895	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
12896	      # so we don't have lib.a shared libs to link our executables.
12897	      # We have to force runtime linking in this case.
12898	      aix_use_runtimelinking=yes
12899	      LDFLAGS="$LDFLAGS -Wl,-brtl"
12900	    fi
12901	    ;;
12902          esac
12903
12904          exp_sym_flag='-bexport'
12905          no_entry_flag='-bnoentry'
12906        fi
12907
12908        # When large executables or shared objects are built, AIX ld can
12909        # have problems creating the table of contents.  If linking a library
12910        # or program results in "error TOC overflow" add -mminimal-toc to
12911        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12912        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12913
12914        archive_cmds_CXX=''
12915        hardcode_direct_CXX=yes
12916        hardcode_direct_absolute_CXX=yes
12917        hardcode_libdir_separator_CXX=':'
12918        link_all_deplibs_CXX=yes
12919        file_list_spec_CXX='$wl-f,'
12920        case $with_aix_soname,$aix_use_runtimelinking in
12921        aix,*) ;;	# no import file
12922        svr4,* | *,yes) # use import file
12923          # The Import File defines what to hardcode.
12924          hardcode_direct_CXX=no
12925          hardcode_direct_absolute_CXX=no
12926          ;;
12927        esac
12928
12929        if test yes = "$GXX"; then
12930          case $host_os in aix4.[012]|aix4.[012].*)
12931          # We only want to do this on AIX 4.2 and lower, the check
12932          # below for broken collect2 doesn't work under 4.3+
12933	  collect2name=`$CC -print-prog-name=collect2`
12934	  if test -f "$collect2name" &&
12935	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12936	  then
12937	    # We have reworked collect2
12938	    :
12939	  else
12940	    # We have old collect2
12941	    hardcode_direct_CXX=unsupported
12942	    # It fails to find uninstalled libraries when the uninstalled
12943	    # path is not listed in the libpath.  Setting hardcode_minus_L
12944	    # to unsupported forces relinking
12945	    hardcode_minus_L_CXX=yes
12946	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12947	    hardcode_libdir_separator_CXX=
12948	  fi
12949          esac
12950          shared_flag='-shared'
12951	  if test yes = "$aix_use_runtimelinking"; then
12952	    shared_flag=$shared_flag' $wl-G'
12953	  fi
12954	  # Need to ensure runtime linking is disabled for the traditional
12955	  # shared library, or the linker may eventually find shared libraries
12956	  # /with/ Import File - we do not want to mix them.
12957	  shared_flag_aix='-shared'
12958	  shared_flag_svr4='-shared $wl-G'
12959        else
12960          # not using gcc
12961          if test ia64 = "$host_cpu"; then
12962	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12963	  # chokes on -Wl,-G. The following line is correct:
12964	  shared_flag='-G'
12965          else
12966	    if test yes = "$aix_use_runtimelinking"; then
12967	      shared_flag='$wl-G'
12968	    else
12969	      shared_flag='$wl-bM:SRE'
12970	    fi
12971	    shared_flag_aix='$wl-bM:SRE'
12972	    shared_flag_svr4='$wl-G'
12973          fi
12974        fi
12975
12976        export_dynamic_flag_spec_CXX='$wl-bexpall'
12977        # It seems that -bexpall does not export symbols beginning with
12978        # underscore (_), so it is better to generate a list of symbols to
12979	# export.
12980        always_export_symbols_CXX=yes
12981	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12982          # Warning - without using the other runtime loading flags (-brtl),
12983          # -berok will link without error, but may produce a broken library.
12984          # The "-G" linker flag allows undefined symbols.
12985          no_undefined_flag_CXX='-bernotok'
12986          # Determine the default libpath from the value encoded in an empty
12987          # executable.
12988          if test set = "${lt_cv_aix_libpath+set}"; then
12989  aix_libpath=$lt_cv_aix_libpath
12990else
12991  if ${lt_cv_aix_libpath__CXX+:} false; then :
12992  $as_echo_n "(cached) " >&6
12993else
12994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995/* end confdefs.h.  */
12996
12997int
12998main ()
12999{
13000
13001  ;
13002  return 0;
13003}
13004_ACEOF
13005if ac_fn_cxx_try_link "$LINENO"; then :
13006
13007  lt_aix_libpath_sed='
13008      /Import File Strings/,/^$/ {
13009	  /^0/ {
13010	      s/^0  *\([^ ]*\) *$/\1/
13011	      p
13012	  }
13013      }'
13014  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13015  # Check for a 64-bit object if we didn't find anything.
13016  if test -z "$lt_cv_aix_libpath__CXX"; then
13017    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13018  fi
13019fi
13020rm -f core conftest.err conftest.$ac_objext \
13021    conftest$ac_exeext conftest.$ac_ext
13022  if test -z "$lt_cv_aix_libpath__CXX"; then
13023    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13024  fi
13025
13026fi
13027
13028  aix_libpath=$lt_cv_aix_libpath__CXX
13029fi
13030
13031          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13032
13033          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
13034        else
13035          if test ia64 = "$host_cpu"; then
13036	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13037	    allow_undefined_flag_CXX="-z nodefs"
13038	    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"
13039          else
13040	    # Determine the default libpath from the value encoded in an
13041	    # empty executable.
13042	    if test set = "${lt_cv_aix_libpath+set}"; then
13043  aix_libpath=$lt_cv_aix_libpath
13044else
13045  if ${lt_cv_aix_libpath__CXX+:} false; then :
13046  $as_echo_n "(cached) " >&6
13047else
13048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049/* end confdefs.h.  */
13050
13051int
13052main ()
13053{
13054
13055  ;
13056  return 0;
13057}
13058_ACEOF
13059if ac_fn_cxx_try_link "$LINENO"; then :
13060
13061  lt_aix_libpath_sed='
13062      /Import File Strings/,/^$/ {
13063	  /^0/ {
13064	      s/^0  *\([^ ]*\) *$/\1/
13065	      p
13066	  }
13067      }'
13068  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13069  # Check for a 64-bit object if we didn't find anything.
13070  if test -z "$lt_cv_aix_libpath__CXX"; then
13071    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13072  fi
13073fi
13074rm -f core conftest.err conftest.$ac_objext \
13075    conftest$ac_exeext conftest.$ac_ext
13076  if test -z "$lt_cv_aix_libpath__CXX"; then
13077    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13078  fi
13079
13080fi
13081
13082  aix_libpath=$lt_cv_aix_libpath__CXX
13083fi
13084
13085	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13086	    # Warning - without using the other run time loading flags,
13087	    # -berok will link without error, but may produce a broken library.
13088	    no_undefined_flag_CXX=' $wl-bernotok'
13089	    allow_undefined_flag_CXX=' $wl-berok'
13090	    if test yes = "$with_gnu_ld"; then
13091	      # We only use this code for GNU lds that support --whole-archive.
13092	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13093	    else
13094	      # Exported symbols can be pulled into shared objects from archives
13095	      whole_archive_flag_spec_CXX='$convenience'
13096	    fi
13097	    archive_cmds_need_lc_CXX=yes
13098	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13099	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13100	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13101	    if test svr4 != "$with_aix_soname"; then
13102	      # This is similar to how AIX traditionally builds its shared
13103	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13104	      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'
13105	    fi
13106	    if test aix != "$with_aix_soname"; then
13107	      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'
13108	    else
13109	      # used by -dlpreopen to get the symbols
13110	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13111	    fi
13112	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13113          fi
13114        fi
13115        ;;
13116
13117      beos*)
13118	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13119	  allow_undefined_flag_CXX=unsupported
13120	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13121	  # support --undefined.  This deserves some investigation.  FIXME
13122	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13123	else
13124	  ld_shlibs_CXX=no
13125	fi
13126	;;
13127
13128      chorus*)
13129        case $cc_basename in
13130          *)
13131	  # FIXME: insert proper C++ library support
13132	  ld_shlibs_CXX=no
13133	  ;;
13134        esac
13135        ;;
13136
13137      cygwin* | mingw* | pw32* | cegcc*)
13138	case $GXX,$cc_basename in
13139	,cl* | no,cl*)
13140	  # Native MSVC
13141	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13142	  # no search path for DLLs.
13143	  hardcode_libdir_flag_spec_CXX=' '
13144	  allow_undefined_flag_CXX=unsupported
13145	  always_export_symbols_CXX=yes
13146	  file_list_spec_CXX='@'
13147	  # Tell ltmain to make .lib files, not .a files.
13148	  libext=lib
13149	  # Tell ltmain to make .dll files, not .so files.
13150	  shrext_cmds=.dll
13151	  # FIXME: Setting linknames here is a bad hack.
13152	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13153	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13154              cp "$export_symbols" "$output_objdir/$soname.def";
13155              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13156            else
13157              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13158            fi~
13159            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13160            linknames='
13161	  # The linker will not automatically build a static lib if we build a DLL.
13162	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13163	  enable_shared_with_static_runtimes_CXX=yes
13164	  # Don't use ranlib
13165	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13166	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13167            lt_tool_outputfile="@TOOL_OUTPUT@"~
13168            case $lt_outputfile in
13169              *.exe|*.EXE) ;;
13170              *)
13171                lt_outputfile=$lt_outputfile.exe
13172                lt_tool_outputfile=$lt_tool_outputfile.exe
13173                ;;
13174            esac~
13175            func_to_tool_file "$lt_outputfile"~
13176            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13177              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13178              $RM "$lt_outputfile.manifest";
13179            fi'
13180	  ;;
13181	*)
13182	  # g++
13183	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13184	  # as there is no search path for DLLs.
13185	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13186	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13187	  allow_undefined_flag_CXX=unsupported
13188	  always_export_symbols_CXX=no
13189	  enable_shared_with_static_runtimes_CXX=yes
13190
13191	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13192	    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'
13193	    # If the export-symbols file already is a .def file, use it as
13194	    # is; otherwise, prepend EXPORTS...
13195	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13196              cp $export_symbols $output_objdir/$soname.def;
13197            else
13198              echo EXPORTS > $output_objdir/$soname.def;
13199              cat $export_symbols >> $output_objdir/$soname.def;
13200            fi~
13201            $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'
13202	  else
13203	    ld_shlibs_CXX=no
13204	  fi
13205	  ;;
13206	esac
13207	;;
13208      darwin* | rhapsody*)
13209
13210
13211  archive_cmds_need_lc_CXX=no
13212  hardcode_direct_CXX=no
13213  hardcode_automatic_CXX=yes
13214  hardcode_shlibpath_var_CXX=unsupported
13215  if test yes = "$lt_cv_ld_force_load"; then
13216    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\"`'
13217
13218  else
13219    whole_archive_flag_spec_CXX=''
13220  fi
13221  link_all_deplibs_CXX=yes
13222  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13223  case $cc_basename in
13224     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13225     *) _lt_dar_can_shared=$GCC ;;
13226  esac
13227  if test yes = "$_lt_dar_can_shared"; then
13228    output_verbose_link_cmd=func_echo_all
13229    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"
13230    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13231    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"
13232    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"
13233       if test yes != "$lt_cv_apple_cc_single_mod"; then
13234      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"
13235      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"
13236    fi
13237
13238  else
13239  ld_shlibs_CXX=no
13240  fi
13241
13242	;;
13243
13244      os2*)
13245	hardcode_libdir_flag_spec_CXX='-L$libdir'
13246	hardcode_minus_L_CXX=yes
13247	allow_undefined_flag_CXX=unsupported
13248	shrext_cmds=.dll
13249	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13250	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13251	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13252	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13253	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13254	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13255	  emximp -o $lib $output_objdir/$libname.def'
13256	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13257	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13258	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13259	  $ECHO EXPORTS >> $output_objdir/$libname.def~
13260	  prefix_cmds="$SED"~
13261	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
13262	    prefix_cmds="$prefix_cmds -e 1d";
13263	  fi~
13264	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13265	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13266	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13267	  emximp -o $lib $output_objdir/$libname.def'
13268	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13269	enable_shared_with_static_runtimes_CXX=yes
13270	;;
13271
13272      dgux*)
13273        case $cc_basename in
13274          ec++*)
13275	    # FIXME: insert proper C++ library support
13276	    ld_shlibs_CXX=no
13277	    ;;
13278          ghcx*)
13279	    # Green Hills C++ Compiler
13280	    # FIXME: insert proper C++ library support
13281	    ld_shlibs_CXX=no
13282	    ;;
13283          *)
13284	    # FIXME: insert proper C++ library support
13285	    ld_shlibs_CXX=no
13286	    ;;
13287        esac
13288        ;;
13289
13290      freebsd2.*)
13291        # C++ shared libraries reported to be fairly broken before
13292	# switch to ELF
13293        ld_shlibs_CXX=no
13294        ;;
13295
13296      freebsd-elf*)
13297        archive_cmds_need_lc_CXX=no
13298        ;;
13299
13300      freebsd* | dragonfly*)
13301        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13302        # conventions
13303        ld_shlibs_CXX=yes
13304        ;;
13305
13306      haiku*)
13307        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13308        link_all_deplibs_CXX=yes
13309        ;;
13310
13311      hpux9*)
13312        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13313        hardcode_libdir_separator_CXX=:
13314        export_dynamic_flag_spec_CXX='$wl-E'
13315        hardcode_direct_CXX=yes
13316        hardcode_minus_L_CXX=yes # Not in the search PATH,
13317				             # but as the default
13318				             # location of the library.
13319
13320        case $cc_basename in
13321          CC*)
13322            # FIXME: insert proper C++ library support
13323            ld_shlibs_CXX=no
13324            ;;
13325          aCC*)
13326            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'
13327            # Commands to make compiler produce verbose output that lists
13328            # what "hidden" libraries, object files and flags are used when
13329            # linking a shared library.
13330            #
13331            # There doesn't appear to be a way to prevent this compiler from
13332            # explicitly linking system object files so we need to strip them
13333            # from the output so that they don't get included in the library
13334            # dependencies.
13335            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"'
13336            ;;
13337          *)
13338            if test yes = "$GXX"; then
13339              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'
13340            else
13341              # FIXME: insert proper C++ library support
13342              ld_shlibs_CXX=no
13343            fi
13344            ;;
13345        esac
13346        ;;
13347
13348      hpux10*|hpux11*)
13349        if test no = "$with_gnu_ld"; then
13350	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13351	  hardcode_libdir_separator_CXX=:
13352
13353          case $host_cpu in
13354            hppa*64*|ia64*)
13355              ;;
13356            *)
13357	      export_dynamic_flag_spec_CXX='$wl-E'
13358              ;;
13359          esac
13360        fi
13361        case $host_cpu in
13362          hppa*64*|ia64*)
13363            hardcode_direct_CXX=no
13364            hardcode_shlibpath_var_CXX=no
13365            ;;
13366          *)
13367            hardcode_direct_CXX=yes
13368            hardcode_direct_absolute_CXX=yes
13369            hardcode_minus_L_CXX=yes # Not in the search PATH,
13370					         # but as the default
13371					         # location of the library.
13372            ;;
13373        esac
13374
13375        case $cc_basename in
13376          CC*)
13377	    # FIXME: insert proper C++ library support
13378	    ld_shlibs_CXX=no
13379	    ;;
13380          aCC*)
13381	    case $host_cpu in
13382	      hppa*64*)
13383	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13384	        ;;
13385	      ia64*)
13386	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13387	        ;;
13388	      *)
13389	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13390	        ;;
13391	    esac
13392	    # Commands to make compiler produce verbose output that lists
13393	    # what "hidden" libraries, object files and flags are used when
13394	    # linking a shared library.
13395	    #
13396	    # There doesn't appear to be a way to prevent this compiler from
13397	    # explicitly linking system object files so we need to strip them
13398	    # from the output so that they don't get included in the library
13399	    # dependencies.
13400	    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"'
13401	    ;;
13402          *)
13403	    if test yes = "$GXX"; then
13404	      if test no = "$with_gnu_ld"; then
13405	        case $host_cpu in
13406	          hppa*64*)
13407	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13408	            ;;
13409	          ia64*)
13410	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13411	            ;;
13412	          *)
13413	            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'
13414	            ;;
13415	        esac
13416	      fi
13417	    else
13418	      # FIXME: insert proper C++ library support
13419	      ld_shlibs_CXX=no
13420	    fi
13421	    ;;
13422        esac
13423        ;;
13424
13425      interix[3-9]*)
13426	hardcode_direct_CXX=no
13427	hardcode_shlibpath_var_CXX=no
13428	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13429	export_dynamic_flag_spec_CXX='$wl-E'
13430	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13431	# Instead, shared libraries are loaded at an image base (0x10000000 by
13432	# default) and relocated if they conflict, which is a slow very memory
13433	# consuming and fragmenting process.  To avoid this, we pick a random,
13434	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13435	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13436	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'
13437	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'
13438	;;
13439      irix5* | irix6*)
13440        case $cc_basename in
13441          CC*)
13442	    # SGI C++
13443	    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'
13444
13445	    # Archives containing C++ object files must be created using
13446	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13447	    # necessary to make sure instantiated templates are included
13448	    # in the archive.
13449	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13450	    ;;
13451          *)
13452	    if test yes = "$GXX"; then
13453	      if test no = "$with_gnu_ld"; then
13454	        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'
13455	      else
13456	        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'
13457	      fi
13458	    fi
13459	    link_all_deplibs_CXX=yes
13460	    ;;
13461        esac
13462        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13463        hardcode_libdir_separator_CXX=:
13464        inherit_rpath_CXX=yes
13465        ;;
13466
13467      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13468        case $cc_basename in
13469          KCC*)
13470	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13471
13472	    # KCC will only create a shared library if the output file
13473	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13474	    # to its proper name (with version) after linking.
13475	    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'
13476	    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'
13477	    # Commands to make compiler produce verbose output that lists
13478	    # what "hidden" libraries, object files and flags are used when
13479	    # linking a shared library.
13480	    #
13481	    # There doesn't appear to be a way to prevent this compiler from
13482	    # explicitly linking system object files so we need to strip them
13483	    # from the output so that they don't get included in the library
13484	    # dependencies.
13485	    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"'
13486
13487	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13488	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13489
13490	    # Archives containing C++ object files must be created using
13491	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13492	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13493	    ;;
13494	  icpc* | ecpc* )
13495	    # Intel C++
13496	    with_gnu_ld=yes
13497	    # version 8.0 and above of icpc choke on multiply defined symbols
13498	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13499	    # earlier do not add the objects themselves.
13500	    case `$CC -V 2>&1` in
13501	      *"Version 7."*)
13502	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13503		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'
13504		;;
13505	      *)  # Version 8.0 or newer
13506	        tmp_idyn=
13507	        case $host_cpu in
13508		  ia64*) tmp_idyn=' -i_dynamic';;
13509		esac
13510	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13511		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'
13512		;;
13513	    esac
13514	    archive_cmds_need_lc_CXX=no
13515	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13516	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13517	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13518	    ;;
13519          pgCC* | pgcpp*)
13520            # Portland Group C++ compiler
13521	    case `$CC -V` in
13522	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13523	      prelink_cmds_CXX='tpldir=Template.dir~
13524               rm -rf $tpldir~
13525               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13526               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13527	      old_archive_cmds_CXX='tpldir=Template.dir~
13528                rm -rf $tpldir~
13529                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13530                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13531                $RANLIB $oldlib'
13532	      archive_cmds_CXX='tpldir=Template.dir~
13533                rm -rf $tpldir~
13534                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13535                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13536	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13537                rm -rf $tpldir~
13538                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13539                $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'
13540	      ;;
13541	    *) # Version 6 and above use weak symbols
13542	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13543	      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'
13544	      ;;
13545	    esac
13546
13547	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13548	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13549	    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'
13550            ;;
13551	  cxx*)
13552	    # Compaq C++
13553	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13554	    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'
13555
13556	    runpath_var=LD_RUN_PATH
13557	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13558	    hardcode_libdir_separator_CXX=:
13559
13560	    # Commands to make compiler produce verbose output that lists
13561	    # what "hidden" libraries, object files and flags are used when
13562	    # linking a shared library.
13563	    #
13564	    # There doesn't appear to be a way to prevent this compiler from
13565	    # explicitly linking system object files so we need to strip them
13566	    # from the output so that they don't get included in the library
13567	    # dependencies.
13568	    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'
13569	    ;;
13570	  xl* | mpixl* | bgxl*)
13571	    # IBM XL 8.0 on PPC, with GNU ld
13572	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13573	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13574	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13575	    if test yes = "$supports_anon_versioning"; then
13576	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13577                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13578                echo "local: *; };" >> $output_objdir/$libname.ver~
13579                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13580	    fi
13581	    ;;
13582	  *)
13583	    case `$CC -V 2>&1 | sed 5q` in
13584	    *Sun\ C*)
13585	      # Sun C++ 5.9
13586	      no_undefined_flag_CXX=' -zdefs'
13587	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13588	      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'
13589	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13590	      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'
13591	      compiler_needs_object_CXX=yes
13592
13593	      # Not sure whether something based on
13594	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13595	      # would be better.
13596	      output_verbose_link_cmd='func_echo_all'
13597
13598	      # Archives containing C++ object files must be created using
13599	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13600	      # necessary to make sure instantiated templates are included
13601	      # in the archive.
13602	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13603	      ;;
13604	    esac
13605	    ;;
13606	esac
13607	;;
13608
13609      lynxos*)
13610        # FIXME: insert proper C++ library support
13611	ld_shlibs_CXX=no
13612	;;
13613
13614      m88k*)
13615        # FIXME: insert proper C++ library support
13616        ld_shlibs_CXX=no
13617	;;
13618
13619      mvs*)
13620        case $cc_basename in
13621          cxx*)
13622	    # FIXME: insert proper C++ library support
13623	    ld_shlibs_CXX=no
13624	    ;;
13625	  *)
13626	    # FIXME: insert proper C++ library support
13627	    ld_shlibs_CXX=no
13628	    ;;
13629	esac
13630	;;
13631
13632      netbsd*)
13633        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13634	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13635	  wlarc=
13636	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13637	  hardcode_direct_CXX=yes
13638	  hardcode_shlibpath_var_CXX=no
13639	fi
13640	# Workaround some broken pre-1.5 toolchains
13641	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13642	;;
13643
13644      *nto* | *qnx*)
13645        ld_shlibs_CXX=yes
13646	;;
13647
13648      openbsd* | bitrig*)
13649	if test -f /usr/libexec/ld.so; then
13650	  hardcode_direct_CXX=yes
13651	  hardcode_shlibpath_var_CXX=no
13652	  hardcode_direct_absolute_CXX=yes
13653	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13654	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13655	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13656	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13657	    export_dynamic_flag_spec_CXX='$wl-E'
13658	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13659	  fi
13660	  output_verbose_link_cmd=func_echo_all
13661	else
13662	  ld_shlibs_CXX=no
13663	fi
13664	;;
13665
13666      osf3* | osf4* | osf5*)
13667        case $cc_basename in
13668          KCC*)
13669	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13670
13671	    # KCC will only create a shared library if the output file
13672	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13673	    # to its proper name (with version) after linking.
13674	    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'
13675
13676	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13677	    hardcode_libdir_separator_CXX=:
13678
13679	    # Archives containing C++ object files must be created using
13680	    # the KAI C++ compiler.
13681	    case $host in
13682	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13683	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13684	    esac
13685	    ;;
13686          RCC*)
13687	    # Rational C++ 2.4.1
13688	    # FIXME: insert proper C++ library support
13689	    ld_shlibs_CXX=no
13690	    ;;
13691          cxx*)
13692	    case $host in
13693	      osf3*)
13694	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13695	        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'
13696	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13697		;;
13698	      *)
13699	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13700	        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'
13701	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13702                  echo "-hidden">> $lib.exp~
13703                  $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~
13704                  $RM $lib.exp'
13705	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13706		;;
13707	    esac
13708
13709	    hardcode_libdir_separator_CXX=:
13710
13711	    # Commands to make compiler produce verbose output that lists
13712	    # what "hidden" libraries, object files and flags are used when
13713	    # linking a shared library.
13714	    #
13715	    # There doesn't appear to be a way to prevent this compiler from
13716	    # explicitly linking system object files so we need to strip them
13717	    # from the output so that they don't get included in the library
13718	    # dependencies.
13719	    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"'
13720	    ;;
13721	  *)
13722	    if test yes,no = "$GXX,$with_gnu_ld"; then
13723	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13724	      case $host in
13725	        osf3*)
13726	          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'
13727		  ;;
13728	        *)
13729	          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'
13730		  ;;
13731	      esac
13732
13733	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13734	      hardcode_libdir_separator_CXX=:
13735
13736	      # Commands to make compiler produce verbose output that lists
13737	      # what "hidden" libraries, object files and flags are used when
13738	      # linking a shared library.
13739	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13740
13741	    else
13742	      # FIXME: insert proper C++ library support
13743	      ld_shlibs_CXX=no
13744	    fi
13745	    ;;
13746        esac
13747        ;;
13748
13749      psos*)
13750        # FIXME: insert proper C++ library support
13751        ld_shlibs_CXX=no
13752        ;;
13753
13754      sunos4*)
13755        case $cc_basename in
13756          CC*)
13757	    # Sun C++ 4.x
13758	    # FIXME: insert proper C++ library support
13759	    ld_shlibs_CXX=no
13760	    ;;
13761          lcc*)
13762	    # Lucid
13763	    # FIXME: insert proper C++ library support
13764	    ld_shlibs_CXX=no
13765	    ;;
13766          *)
13767	    # FIXME: insert proper C++ library support
13768	    ld_shlibs_CXX=no
13769	    ;;
13770        esac
13771        ;;
13772
13773      solaris*)
13774        case $cc_basename in
13775          CC* | sunCC*)
13776	    # Sun C++ 4.2, 5.x and Centerline C++
13777            archive_cmds_need_lc_CXX=yes
13778	    no_undefined_flag_CXX=' -zdefs'
13779	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13780	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13781              $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'
13782
13783	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13784	    hardcode_shlibpath_var_CXX=no
13785	    case $host_os in
13786	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13787	      *)
13788		# The compiler driver will combine and reorder linker options,
13789		# but understands '-z linker_flag'.
13790	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13791		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13792	        ;;
13793	    esac
13794	    link_all_deplibs_CXX=yes
13795
13796	    output_verbose_link_cmd='func_echo_all'
13797
13798	    # Archives containing C++ object files must be created using
13799	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13800	    # necessary to make sure instantiated templates are included
13801	    # in the archive.
13802	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13803	    ;;
13804          gcx*)
13805	    # Green Hills C++ Compiler
13806	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13807
13808	    # The C++ compiler must be used to create the archive.
13809	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13810	    ;;
13811          *)
13812	    # GNU C++ compiler with Solaris linker
13813	    if test yes,no = "$GXX,$with_gnu_ld"; then
13814	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
13815	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13816	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13817	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13818                  $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'
13819
13820	        # Commands to make compiler produce verbose output that lists
13821	        # what "hidden" libraries, object files and flags are used when
13822	        # linking a shared library.
13823	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13824	      else
13825	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
13826	        # platform.
13827	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13828	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13829                  $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'
13830
13831	        # Commands to make compiler produce verbose output that lists
13832	        # what "hidden" libraries, object files and flags are used when
13833	        # linking a shared library.
13834	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13835	      fi
13836
13837	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13838	      case $host_os in
13839		solaris2.[0-5] | solaris2.[0-5].*) ;;
13840		*)
13841		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13842		  ;;
13843	      esac
13844	    fi
13845	    ;;
13846        esac
13847        ;;
13848
13849    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13850      no_undefined_flag_CXX='$wl-z,text'
13851      archive_cmds_need_lc_CXX=no
13852      hardcode_shlibpath_var_CXX=no
13853      runpath_var='LD_RUN_PATH'
13854
13855      case $cc_basename in
13856        CC*)
13857	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13858	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13859	  ;;
13860	*)
13861	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13862	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13863	  ;;
13864      esac
13865      ;;
13866
13867      sysv5* | sco3.2v5* | sco5v6*)
13868	# Note: We CANNOT use -z defs as we might desire, because we do not
13869	# link with -lc, and that would cause any symbols used from libc to
13870	# always be unresolved, which means just about no library would
13871	# ever link correctly.  If we're not using GNU ld we use -z text
13872	# though, which does catch some bad symbols but isn't as heavy-handed
13873	# as -z defs.
13874	no_undefined_flag_CXX='$wl-z,text'
13875	allow_undefined_flag_CXX='$wl-z,nodefs'
13876	archive_cmds_need_lc_CXX=no
13877	hardcode_shlibpath_var_CXX=no
13878	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13879	hardcode_libdir_separator_CXX=':'
13880	link_all_deplibs_CXX=yes
13881	export_dynamic_flag_spec_CXX='$wl-Bexport'
13882	runpath_var='LD_RUN_PATH'
13883
13884	case $cc_basename in
13885          CC*)
13886	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13887	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13888	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13889              '"$old_archive_cmds_CXX"
13890	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13891              '"$reload_cmds_CXX"
13892	    ;;
13893	  *)
13894	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13895	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13896	    ;;
13897	esac
13898      ;;
13899
13900      tandem*)
13901        case $cc_basename in
13902          NCC*)
13903	    # NonStop-UX NCC 3.20
13904	    # FIXME: insert proper C++ library support
13905	    ld_shlibs_CXX=no
13906	    ;;
13907          *)
13908	    # FIXME: insert proper C++ library support
13909	    ld_shlibs_CXX=no
13910	    ;;
13911        esac
13912        ;;
13913
13914      vxworks*)
13915        # FIXME: insert proper C++ library support
13916        ld_shlibs_CXX=no
13917        ;;
13918
13919      *)
13920        # FIXME: insert proper C++ library support
13921        ld_shlibs_CXX=no
13922        ;;
13923    esac
13924
13925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13926$as_echo "$ld_shlibs_CXX" >&6; }
13927    test no = "$ld_shlibs_CXX" && can_build_shared=no
13928
13929    GCC_CXX=$GXX
13930    LD_CXX=$LD
13931
13932    ## CAVEAT EMPTOR:
13933    ## There is no encapsulation within the following macros, do not change
13934    ## the running order or otherwise move them around unless you know exactly
13935    ## what you are doing...
13936    # Dependencies to place before and after the object being linked:
13937predep_objects_CXX=
13938postdep_objects_CXX=
13939predeps_CXX=
13940postdeps_CXX=
13941compiler_lib_search_path_CXX=
13942
13943cat > conftest.$ac_ext <<_LT_EOF
13944class Foo
13945{
13946public:
13947  Foo (void) { a = 0; }
13948private:
13949  int a;
13950};
13951_LT_EOF
13952
13953
13954_lt_libdeps_save_CFLAGS=$CFLAGS
13955case "$CC $CFLAGS " in #(
13956*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13957*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13958*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13959esac
13960
13961if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13962  (eval $ac_compile) 2>&5
13963  ac_status=$?
13964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13965  test $ac_status = 0; }; then
13966  # Parse the compiler output and extract the necessary
13967  # objects, libraries and library flags.
13968
13969  # Sentinel used to keep track of whether or not we are before
13970  # the conftest object file.
13971  pre_test_object_deps_done=no
13972
13973  for p in `eval "$output_verbose_link_cmd"`; do
13974    case $prev$p in
13975
13976    -L* | -R* | -l*)
13977       # Some compilers place space between "-{L,R}" and the path.
13978       # Remove the space.
13979       if test x-L = "$p" ||
13980          test x-R = "$p"; then
13981	 prev=$p
13982	 continue
13983       fi
13984
13985       # Expand the sysroot to ease extracting the directories later.
13986       if test -z "$prev"; then
13987         case $p in
13988         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13989         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13990         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13991         esac
13992       fi
13993       case $p in
13994       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13995       esac
13996       if test no = "$pre_test_object_deps_done"; then
13997	 case $prev in
13998	 -L | -R)
13999	   # Internal compiler library paths should come after those
14000	   # provided the user.  The postdeps already come after the
14001	   # user supplied libs so there is no need to process them.
14002	   if test -z "$compiler_lib_search_path_CXX"; then
14003	     compiler_lib_search_path_CXX=$prev$p
14004	   else
14005	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14006	   fi
14007	   ;;
14008	 # The "-l" case would never come before the object being
14009	 # linked, so don't bother handling this case.
14010	 esac
14011       else
14012	 if test -z "$postdeps_CXX"; then
14013	   postdeps_CXX=$prev$p
14014	 else
14015	   postdeps_CXX="${postdeps_CXX} $prev$p"
14016	 fi
14017       fi
14018       prev=
14019       ;;
14020
14021    *.lto.$objext) ;; # Ignore GCC LTO objects
14022    *.$objext)
14023       # This assumes that the test object file only shows up
14024       # once in the compiler output.
14025       if test "$p" = "conftest.$objext"; then
14026	 pre_test_object_deps_done=yes
14027	 continue
14028       fi
14029
14030       if test no = "$pre_test_object_deps_done"; then
14031	 if test -z "$predep_objects_CXX"; then
14032	   predep_objects_CXX=$p
14033	 else
14034	   predep_objects_CXX="$predep_objects_CXX $p"
14035	 fi
14036       else
14037	 if test -z "$postdep_objects_CXX"; then
14038	   postdep_objects_CXX=$p
14039	 else
14040	   postdep_objects_CXX="$postdep_objects_CXX $p"
14041	 fi
14042       fi
14043       ;;
14044
14045    *) ;; # Ignore the rest.
14046
14047    esac
14048  done
14049
14050  # Clean up.
14051  rm -f a.out a.exe
14052else
14053  echo "libtool.m4: error: problem compiling CXX test program"
14054fi
14055
14056$RM -f confest.$objext
14057CFLAGS=$_lt_libdeps_save_CFLAGS
14058
14059# PORTME: override above test on systems where it is broken
14060case $host_os in
14061interix[3-9]*)
14062  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14063  # hack all around it, let's just trust "g++" to DTRT.
14064  predep_objects_CXX=
14065  postdep_objects_CXX=
14066  postdeps_CXX=
14067  ;;
14068esac
14069
14070
14071case " $postdeps_CXX " in
14072*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14073esac
14074 compiler_lib_search_dirs_CXX=
14075if test -n "${compiler_lib_search_path_CXX}"; then
14076 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14077fi
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109    lt_prog_compiler_wl_CXX=
14110lt_prog_compiler_pic_CXX=
14111lt_prog_compiler_static_CXX=
14112
14113
14114  # C++ specific cases for pic, static, wl, etc.
14115  if test yes = "$GXX"; then
14116    lt_prog_compiler_wl_CXX='-Wl,'
14117    lt_prog_compiler_static_CXX='-static'
14118
14119    case $host_os in
14120    aix*)
14121      # All AIX code is PIC.
14122      if test ia64 = "$host_cpu"; then
14123	# AIX 5 now supports IA64 processor
14124	lt_prog_compiler_static_CXX='-Bstatic'
14125      fi
14126      lt_prog_compiler_pic_CXX='-fPIC'
14127      ;;
14128
14129    amigaos*)
14130      case $host_cpu in
14131      powerpc)
14132            # see comment about AmigaOS4 .so support
14133            lt_prog_compiler_pic_CXX='-fPIC'
14134        ;;
14135      m68k)
14136            # FIXME: we need at least 68020 code to build shared libraries, but
14137            # adding the '-m68020' flag to GCC prevents building anything better,
14138            # like '-m68040'.
14139            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14140        ;;
14141      esac
14142      ;;
14143
14144    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14145      # PIC is the default for these OSes.
14146      ;;
14147    mingw* | cygwin* | os2* | pw32* | cegcc*)
14148      # This hack is so that the source file can tell whether it is being
14149      # built for inclusion in a dll (and should export symbols for example).
14150      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14151      # (--disable-auto-import) libraries
14152      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14153      case $host_os in
14154      os2*)
14155	lt_prog_compiler_static_CXX='$wl-static'
14156	;;
14157      esac
14158      ;;
14159    darwin* | rhapsody*)
14160      # PIC is the default on this platform
14161      # Common symbols not allowed in MH_DYLIB files
14162      lt_prog_compiler_pic_CXX='-fno-common'
14163      ;;
14164    *djgpp*)
14165      # DJGPP does not support shared libraries at all
14166      lt_prog_compiler_pic_CXX=
14167      ;;
14168    haiku*)
14169      # PIC is the default for Haiku.
14170      # The "-static" flag exists, but is broken.
14171      lt_prog_compiler_static_CXX=
14172      ;;
14173    interix[3-9]*)
14174      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14175      # Instead, we relocate shared libraries at runtime.
14176      ;;
14177    sysv4*MP*)
14178      if test -d /usr/nec; then
14179	lt_prog_compiler_pic_CXX=-Kconform_pic
14180      fi
14181      ;;
14182    hpux*)
14183      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14184      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14185      # sets the default TLS model and affects inlining.
14186      case $host_cpu in
14187      hppa*64*)
14188	;;
14189      *)
14190	lt_prog_compiler_pic_CXX='-fPIC'
14191	;;
14192      esac
14193      ;;
14194    *qnx* | *nto*)
14195      # QNX uses GNU C++, but need to define -shared option too, otherwise
14196      # it will coredump.
14197      lt_prog_compiler_pic_CXX='-fPIC -shared'
14198      ;;
14199    *)
14200      lt_prog_compiler_pic_CXX='-fPIC'
14201      ;;
14202    esac
14203  else
14204    case $host_os in
14205      aix[4-9]*)
14206	# All AIX code is PIC.
14207	if test ia64 = "$host_cpu"; then
14208	  # AIX 5 now supports IA64 processor
14209	  lt_prog_compiler_static_CXX='-Bstatic'
14210	else
14211	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14212	fi
14213	;;
14214      chorus*)
14215	case $cc_basename in
14216	cxch68*)
14217	  # Green Hills C++ Compiler
14218	  # _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"
14219	  ;;
14220	esac
14221	;;
14222      mingw* | cygwin* | os2* | pw32* | cegcc*)
14223	# This hack is so that the source file can tell whether it is being
14224	# built for inclusion in a dll (and should export symbols for example).
14225	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14226	;;
14227      dgux*)
14228	case $cc_basename in
14229	  ec++*)
14230	    lt_prog_compiler_pic_CXX='-KPIC'
14231	    ;;
14232	  ghcx*)
14233	    # Green Hills C++ Compiler
14234	    lt_prog_compiler_pic_CXX='-pic'
14235	    ;;
14236	  *)
14237	    ;;
14238	esac
14239	;;
14240      freebsd* | dragonfly*)
14241	# FreeBSD uses GNU C++
14242	;;
14243      hpux9* | hpux10* | hpux11*)
14244	case $cc_basename in
14245	  CC*)
14246	    lt_prog_compiler_wl_CXX='-Wl,'
14247	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14248	    if test ia64 != "$host_cpu"; then
14249	      lt_prog_compiler_pic_CXX='+Z'
14250	    fi
14251	    ;;
14252	  aCC*)
14253	    lt_prog_compiler_wl_CXX='-Wl,'
14254	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14255	    case $host_cpu in
14256	    hppa*64*|ia64*)
14257	      # +Z the default
14258	      ;;
14259	    *)
14260	      lt_prog_compiler_pic_CXX='+Z'
14261	      ;;
14262	    esac
14263	    ;;
14264	  *)
14265	    ;;
14266	esac
14267	;;
14268      interix*)
14269	# This is c89, which is MS Visual C++ (no shared libs)
14270	# Anyone wants to do a port?
14271	;;
14272      irix5* | irix6* | nonstopux*)
14273	case $cc_basename in
14274	  CC*)
14275	    lt_prog_compiler_wl_CXX='-Wl,'
14276	    lt_prog_compiler_static_CXX='-non_shared'
14277	    # CC pic flag -KPIC is the default.
14278	    ;;
14279	  *)
14280	    ;;
14281	esac
14282	;;
14283      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14284	case $cc_basename in
14285	  KCC*)
14286	    # KAI C++ Compiler
14287	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14288	    lt_prog_compiler_pic_CXX='-fPIC'
14289	    ;;
14290	  ecpc* )
14291	    # old Intel C++ for x86_64, which still supported -KPIC.
14292	    lt_prog_compiler_wl_CXX='-Wl,'
14293	    lt_prog_compiler_pic_CXX='-KPIC'
14294	    lt_prog_compiler_static_CXX='-static'
14295	    ;;
14296	  icpc* )
14297	    # Intel C++, used to be incompatible with GCC.
14298	    # ICC 10 doesn't accept -KPIC any more.
14299	    lt_prog_compiler_wl_CXX='-Wl,'
14300	    lt_prog_compiler_pic_CXX='-fPIC'
14301	    lt_prog_compiler_static_CXX='-static'
14302	    ;;
14303	  pgCC* | pgcpp*)
14304	    # Portland Group C++ compiler
14305	    lt_prog_compiler_wl_CXX='-Wl,'
14306	    lt_prog_compiler_pic_CXX='-fpic'
14307	    lt_prog_compiler_static_CXX='-Bstatic'
14308	    ;;
14309	  cxx*)
14310	    # Compaq C++
14311	    # Make sure the PIC flag is empty.  It appears that all Alpha
14312	    # Linux and Compaq Tru64 Unix objects are PIC.
14313	    lt_prog_compiler_pic_CXX=
14314	    lt_prog_compiler_static_CXX='-non_shared'
14315	    ;;
14316	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14317	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14318	    lt_prog_compiler_wl_CXX='-Wl,'
14319	    lt_prog_compiler_pic_CXX='-qpic'
14320	    lt_prog_compiler_static_CXX='-qstaticlink'
14321	    ;;
14322	  *)
14323	    case `$CC -V 2>&1 | sed 5q` in
14324	    *Sun\ C*)
14325	      # Sun C++ 5.9
14326	      lt_prog_compiler_pic_CXX='-KPIC'
14327	      lt_prog_compiler_static_CXX='-Bstatic'
14328	      lt_prog_compiler_wl_CXX='-Qoption ld '
14329	      ;;
14330	    esac
14331	    ;;
14332	esac
14333	;;
14334      lynxos*)
14335	;;
14336      m88k*)
14337	;;
14338      mvs*)
14339	case $cc_basename in
14340	  cxx*)
14341	    lt_prog_compiler_pic_CXX='-W c,exportall'
14342	    ;;
14343	  *)
14344	    ;;
14345	esac
14346	;;
14347      netbsd* | netbsdelf*-gnu)
14348	;;
14349      *qnx* | *nto*)
14350        # QNX uses GNU C++, but need to define -shared option too, otherwise
14351        # it will coredump.
14352        lt_prog_compiler_pic_CXX='-fPIC -shared'
14353        ;;
14354      osf3* | osf4* | osf5*)
14355	case $cc_basename in
14356	  KCC*)
14357	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14358	    ;;
14359	  RCC*)
14360	    # Rational C++ 2.4.1
14361	    lt_prog_compiler_pic_CXX='-pic'
14362	    ;;
14363	  cxx*)
14364	    # Digital/Compaq C++
14365	    lt_prog_compiler_wl_CXX='-Wl,'
14366	    # Make sure the PIC flag is empty.  It appears that all Alpha
14367	    # Linux and Compaq Tru64 Unix objects are PIC.
14368	    lt_prog_compiler_pic_CXX=
14369	    lt_prog_compiler_static_CXX='-non_shared'
14370	    ;;
14371	  *)
14372	    ;;
14373	esac
14374	;;
14375      psos*)
14376	;;
14377      solaris*)
14378	case $cc_basename in
14379	  CC* | sunCC*)
14380	    # Sun C++ 4.2, 5.x and Centerline C++
14381	    lt_prog_compiler_pic_CXX='-KPIC'
14382	    lt_prog_compiler_static_CXX='-Bstatic'
14383	    lt_prog_compiler_wl_CXX='-Qoption ld '
14384	    ;;
14385	  gcx*)
14386	    # Green Hills C++ Compiler
14387	    lt_prog_compiler_pic_CXX='-PIC'
14388	    ;;
14389	  *)
14390	    ;;
14391	esac
14392	;;
14393      sunos4*)
14394	case $cc_basename in
14395	  CC*)
14396	    # Sun C++ 4.x
14397	    lt_prog_compiler_pic_CXX='-pic'
14398	    lt_prog_compiler_static_CXX='-Bstatic'
14399	    ;;
14400	  lcc*)
14401	    # Lucid
14402	    lt_prog_compiler_pic_CXX='-pic'
14403	    ;;
14404	  *)
14405	    ;;
14406	esac
14407	;;
14408      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14409	case $cc_basename in
14410	  CC*)
14411	    lt_prog_compiler_wl_CXX='-Wl,'
14412	    lt_prog_compiler_pic_CXX='-KPIC'
14413	    lt_prog_compiler_static_CXX='-Bstatic'
14414	    ;;
14415	esac
14416	;;
14417      tandem*)
14418	case $cc_basename in
14419	  NCC*)
14420	    # NonStop-UX NCC 3.20
14421	    lt_prog_compiler_pic_CXX='-KPIC'
14422	    ;;
14423	  *)
14424	    ;;
14425	esac
14426	;;
14427      vxworks*)
14428	;;
14429      *)
14430	lt_prog_compiler_can_build_shared_CXX=no
14431	;;
14432    esac
14433  fi
14434
14435case $host_os in
14436  # For platforms that do not support PIC, -DPIC is meaningless:
14437  *djgpp*)
14438    lt_prog_compiler_pic_CXX=
14439    ;;
14440  *)
14441    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14442    ;;
14443esac
14444
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14446$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14447if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14448  $as_echo_n "(cached) " >&6
14449else
14450  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14451fi
14452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14453$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14454lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14455
14456#
14457# Check to make sure the PIC flag actually works.
14458#
14459if test -n "$lt_prog_compiler_pic_CXX"; then
14460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14461$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14462if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14463  $as_echo_n "(cached) " >&6
14464else
14465  lt_cv_prog_compiler_pic_works_CXX=no
14466   ac_outfile=conftest.$ac_objext
14467   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14468   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14469   # Insert the option either (1) after the last *FLAGS variable, or
14470   # (2) before a word containing "conftest.", or (3) at the end.
14471   # Note that $ac_compile itself does not contain backslashes and begins
14472   # with a dollar sign (not a hyphen), so the echo should work correctly.
14473   # The option is referenced via a variable to avoid confusing sed.
14474   lt_compile=`echo "$ac_compile" | $SED \
14475   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14476   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14477   -e 's:$: $lt_compiler_flag:'`
14478   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14479   (eval "$lt_compile" 2>conftest.err)
14480   ac_status=$?
14481   cat conftest.err >&5
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   if (exit $ac_status) && test -s "$ac_outfile"; then
14484     # The compiler can only warn and ignore the option if not recognized
14485     # So say no if there are warnings other than the usual output.
14486     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14487     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14488     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14489       lt_cv_prog_compiler_pic_works_CXX=yes
14490     fi
14491   fi
14492   $RM conftest*
14493
14494fi
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14496$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14497
14498if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14499    case $lt_prog_compiler_pic_CXX in
14500     "" | " "*) ;;
14501     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14502     esac
14503else
14504    lt_prog_compiler_pic_CXX=
14505     lt_prog_compiler_can_build_shared_CXX=no
14506fi
14507
14508fi
14509
14510
14511
14512
14513
14514#
14515# Check to make sure the static flag actually works.
14516#
14517wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14519$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14520if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14521  $as_echo_n "(cached) " >&6
14522else
14523  lt_cv_prog_compiler_static_works_CXX=no
14524   save_LDFLAGS=$LDFLAGS
14525   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14526   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14527   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14528     # The linker can only warn and ignore the option if not recognized
14529     # So say no if there are warnings
14530     if test -s conftest.err; then
14531       # Append any errors to the config.log.
14532       cat conftest.err 1>&5
14533       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14534       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14535       if diff conftest.exp conftest.er2 >/dev/null; then
14536         lt_cv_prog_compiler_static_works_CXX=yes
14537       fi
14538     else
14539       lt_cv_prog_compiler_static_works_CXX=yes
14540     fi
14541   fi
14542   $RM -r conftest*
14543   LDFLAGS=$save_LDFLAGS
14544
14545fi
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14547$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14548
14549if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14550    :
14551else
14552    lt_prog_compiler_static_CXX=
14553fi
14554
14555
14556
14557
14558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14559$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14560if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14561  $as_echo_n "(cached) " >&6
14562else
14563  lt_cv_prog_compiler_c_o_CXX=no
14564   $RM -r conftest 2>/dev/null
14565   mkdir conftest
14566   cd conftest
14567   mkdir out
14568   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14569
14570   lt_compiler_flag="-o out/conftest2.$ac_objext"
14571   # Insert the option either (1) after the last *FLAGS variable, or
14572   # (2) before a word containing "conftest.", or (3) at the end.
14573   # Note that $ac_compile itself does not contain backslashes and begins
14574   # with a dollar sign (not a hyphen), so the echo should work correctly.
14575   lt_compile=`echo "$ac_compile" | $SED \
14576   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14577   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14578   -e 's:$: $lt_compiler_flag:'`
14579   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14580   (eval "$lt_compile" 2>out/conftest.err)
14581   ac_status=$?
14582   cat out/conftest.err >&5
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14585   then
14586     # The compiler can only warn and ignore the option if not recognized
14587     # So say no if there are warnings
14588     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14589     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14590     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14591       lt_cv_prog_compiler_c_o_CXX=yes
14592     fi
14593   fi
14594   chmod u+w . 2>&5
14595   $RM conftest*
14596   # SGI C++ compiler will create directory out/ii_files/ for
14597   # template instantiation
14598   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14599   $RM out/* && rmdir out
14600   cd ..
14601   $RM -r conftest
14602   $RM conftest*
14603
14604fi
14605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14606$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14607
14608
14609
14610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14611$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14612if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14613  $as_echo_n "(cached) " >&6
14614else
14615  lt_cv_prog_compiler_c_o_CXX=no
14616   $RM -r conftest 2>/dev/null
14617   mkdir conftest
14618   cd conftest
14619   mkdir out
14620   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14621
14622   lt_compiler_flag="-o out/conftest2.$ac_objext"
14623   # Insert the option either (1) after the last *FLAGS variable, or
14624   # (2) before a word containing "conftest.", or (3) at the end.
14625   # Note that $ac_compile itself does not contain backslashes and begins
14626   # with a dollar sign (not a hyphen), so the echo should work correctly.
14627   lt_compile=`echo "$ac_compile" | $SED \
14628   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14629   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14630   -e 's:$: $lt_compiler_flag:'`
14631   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14632   (eval "$lt_compile" 2>out/conftest.err)
14633   ac_status=$?
14634   cat out/conftest.err >&5
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14637   then
14638     # The compiler can only warn and ignore the option if not recognized
14639     # So say no if there are warnings
14640     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14641     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14642     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14643       lt_cv_prog_compiler_c_o_CXX=yes
14644     fi
14645   fi
14646   chmod u+w . 2>&5
14647   $RM conftest*
14648   # SGI C++ compiler will create directory out/ii_files/ for
14649   # template instantiation
14650   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14651   $RM out/* && rmdir out
14652   cd ..
14653   $RM -r conftest
14654   $RM conftest*
14655
14656fi
14657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14658$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14659
14660
14661
14662
14663hard_links=nottested
14664if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14665  # do not overwrite the value of need_locks provided by the user
14666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14667$as_echo_n "checking if we can lock with hard links... " >&6; }
14668  hard_links=yes
14669  $RM conftest*
14670  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14671  touch conftest.a
14672  ln conftest.a conftest.b 2>&5 || hard_links=no
14673  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14675$as_echo "$hard_links" >&6; }
14676  if test no = "$hard_links"; then
14677    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14678$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14679    need_locks=warn
14680  fi
14681else
14682  need_locks=no
14683fi
14684
14685
14686
14687    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14688$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14689
14690  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14691  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14692  case $host_os in
14693  aix[4-9]*)
14694    # If we're using GNU nm, then we don't want the "-C" option.
14695    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14696    # Without the "-l" option, or with the "-B" option, AIX nm treats
14697    # weak defined symbols like other global defined symbols, whereas
14698    # GNU nm marks them as "W".
14699    # While the 'weak' keyword is ignored in the Export File, we need
14700    # it in the Import File for the 'aix-soname' feature, so we have
14701    # to replace the "-B" option with "-P" for AIX nm.
14702    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14703      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'
14704    else
14705      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'
14706    fi
14707    ;;
14708  pw32*)
14709    export_symbols_cmds_CXX=$ltdll_cmds
14710    ;;
14711  cygwin* | mingw* | cegcc*)
14712    case $cc_basename in
14713    cl*)
14714      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14715      ;;
14716    *)
14717      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'
14718      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14719      ;;
14720    esac
14721    ;;
14722  linux* | k*bsd*-gnu | gnu*)
14723    link_all_deplibs_CXX=no
14724    ;;
14725  *)
14726    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14727    ;;
14728  esac
14729
14730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14731$as_echo "$ld_shlibs_CXX" >&6; }
14732test no = "$ld_shlibs_CXX" && can_build_shared=no
14733
14734with_gnu_ld_CXX=$with_gnu_ld
14735
14736
14737
14738
14739
14740
14741#
14742# Do we need to explicitly link libc?
14743#
14744case "x$archive_cmds_need_lc_CXX" in
14745x|xyes)
14746  # Assume -lc should be added
14747  archive_cmds_need_lc_CXX=yes
14748
14749  if test yes,yes = "$GCC,$enable_shared"; then
14750    case $archive_cmds_CXX in
14751    *'~'*)
14752      # FIXME: we may have to deal with multi-command sequences.
14753      ;;
14754    '$CC '*)
14755      # Test whether the compiler implicitly links with -lc since on some
14756      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14757      # to ld, don't add -lc before -lgcc.
14758      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14759$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14760if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14761  $as_echo_n "(cached) " >&6
14762else
14763  $RM conftest*
14764	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14765
14766	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14767  (eval $ac_compile) 2>&5
14768  ac_status=$?
14769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14770  test $ac_status = 0; } 2>conftest.err; then
14771	  soname=conftest
14772	  lib=conftest
14773	  libobjs=conftest.$ac_objext
14774	  deplibs=
14775	  wl=$lt_prog_compiler_wl_CXX
14776	  pic_flag=$lt_prog_compiler_pic_CXX
14777	  compiler_flags=-v
14778	  linker_flags=-v
14779	  verstring=
14780	  output_objdir=.
14781	  libname=conftest
14782	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14783	  allow_undefined_flag_CXX=
14784	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14785  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14786  ac_status=$?
14787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14788  test $ac_status = 0; }
14789	  then
14790	    lt_cv_archive_cmds_need_lc_CXX=no
14791	  else
14792	    lt_cv_archive_cmds_need_lc_CXX=yes
14793	  fi
14794	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14795	else
14796	  cat conftest.err 1>&5
14797	fi
14798	$RM conftest*
14799
14800fi
14801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14802$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14803      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14804      ;;
14805    esac
14806  fi
14807  ;;
14808esac
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14872$as_echo_n "checking dynamic linker characteristics... " >&6; }
14873
14874library_names_spec=
14875libname_spec='lib$name'
14876soname_spec=
14877shrext_cmds=.so
14878postinstall_cmds=
14879postuninstall_cmds=
14880finish_cmds=
14881finish_eval=
14882shlibpath_var=
14883shlibpath_overrides_runpath=unknown
14884version_type=none
14885dynamic_linker="$host_os ld.so"
14886sys_lib_dlsearch_path_spec="/lib /usr/lib"
14887need_lib_prefix=unknown
14888hardcode_into_libs=no
14889
14890# when you set need_version to no, make sure it does not cause -set_version
14891# flags to be left without arguments
14892need_version=unknown
14893
14894
14895
14896case $host_os in
14897aix3*)
14898  version_type=linux # correct to gnu/linux during the next big refactor
14899  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14900  shlibpath_var=LIBPATH
14901
14902  # AIX 3 has no versioning support, so we append a major version to the name.
14903  soname_spec='$libname$release$shared_ext$major'
14904  ;;
14905
14906aix[4-9]*)
14907  version_type=linux # correct to gnu/linux during the next big refactor
14908  need_lib_prefix=no
14909  need_version=no
14910  hardcode_into_libs=yes
14911  if test ia64 = "$host_cpu"; then
14912    # AIX 5 supports IA64
14913    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14914    shlibpath_var=LD_LIBRARY_PATH
14915  else
14916    # With GCC up to 2.95.x, collect2 would create an import file
14917    # for dependence libraries.  The import file would start with
14918    # the line '#! .'.  This would cause the generated library to
14919    # depend on '.', always an invalid library.  This was fixed in
14920    # development snapshots of GCC prior to 3.0.
14921    case $host_os in
14922      aix4 | aix4.[01] | aix4.[01].*)
14923      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14924	   echo ' yes '
14925	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14926	:
14927      else
14928	can_build_shared=no
14929      fi
14930      ;;
14931    esac
14932    # Using Import Files as archive members, it is possible to support
14933    # filename-based versioning of shared library archives on AIX. While
14934    # this would work for both with and without runtime linking, it will
14935    # prevent static linking of such archives. So we do filename-based
14936    # shared library versioning with .so extension only, which is used
14937    # when both runtime linking and shared linking is enabled.
14938    # Unfortunately, runtime linking may impact performance, so we do
14939    # not want this to be the default eventually. Also, we use the
14940    # versioned .so libs for executables only if there is the -brtl
14941    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14942    # To allow for filename-based versioning support, we need to create
14943    # libNAME.so.V as an archive file, containing:
14944    # *) an Import File, referring to the versioned filename of the
14945    #    archive as well as the shared archive member, telling the
14946    #    bitwidth (32 or 64) of that shared object, and providing the
14947    #    list of exported symbols of that shared object, eventually
14948    #    decorated with the 'weak' keyword
14949    # *) the shared object with the F_LOADONLY flag set, to really avoid
14950    #    it being seen by the linker.
14951    # At run time we better use the real file rather than another symlink,
14952    # but for link time we create the symlink libNAME.so -> libNAME.so.V
14953
14954    case $with_aix_soname,$aix_use_runtimelinking in
14955    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14956    # soname into executable. Probably we can add versioning support to
14957    # collect2, so additional links can be useful in future.
14958    aix,yes) # traditional libtool
14959      dynamic_linker='AIX unversionable lib.so'
14960      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14961      # instead of lib<name>.a to let people know that these are not
14962      # typical AIX shared libraries.
14963      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14964      ;;
14965    aix,no) # traditional AIX only
14966      dynamic_linker='AIX lib.a(lib.so.V)'
14967      # We preserve .a as extension for shared libraries through AIX4.2
14968      # and later when we are not doing run time linking.
14969      library_names_spec='$libname$release.a $libname.a'
14970      soname_spec='$libname$release$shared_ext$major'
14971      ;;
14972    svr4,*) # full svr4 only
14973      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14974      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14975      # We do not specify a path in Import Files, so LIBPATH fires.
14976      shlibpath_overrides_runpath=yes
14977      ;;
14978    *,yes) # both, prefer svr4
14979      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14980      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14981      # unpreferred sharedlib libNAME.a needs extra handling
14982      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"'
14983      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"'
14984      # We do not specify a path in Import Files, so LIBPATH fires.
14985      shlibpath_overrides_runpath=yes
14986      ;;
14987    *,no) # both, prefer aix
14988      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14989      library_names_spec='$libname$release.a $libname.a'
14990      soname_spec='$libname$release$shared_ext$major'
14991      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14992      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)'
14993      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"'
14994      ;;
14995    esac
14996    shlibpath_var=LIBPATH
14997  fi
14998  ;;
14999
15000amigaos*)
15001  case $host_cpu in
15002  powerpc)
15003    # Since July 2007 AmigaOS4 officially supports .so libraries.
15004    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15005    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15006    ;;
15007  m68k)
15008    library_names_spec='$libname.ixlibrary $libname.a'
15009    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15010    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'
15011    ;;
15012  esac
15013  ;;
15014
15015beos*)
15016  library_names_spec='$libname$shared_ext'
15017  dynamic_linker="$host_os ld.so"
15018  shlibpath_var=LIBRARY_PATH
15019  ;;
15020
15021bsdi[45]*)
15022  version_type=linux # correct to gnu/linux during the next big refactor
15023  need_version=no
15024  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15025  soname_spec='$libname$release$shared_ext$major'
15026  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15027  shlibpath_var=LD_LIBRARY_PATH
15028  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15029  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15030  # the default ld.so.conf also contains /usr/contrib/lib and
15031  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15032  # libtool to hard-code these into programs
15033  ;;
15034
15035cygwin* | mingw* | pw32* | cegcc*)
15036  version_type=windows
15037  shrext_cmds=.dll
15038  need_version=no
15039  need_lib_prefix=no
15040
15041  case $GCC,$cc_basename in
15042  yes,*)
15043    # gcc
15044    library_names_spec='$libname.dll.a'
15045    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15046    postinstall_cmds='base_file=`basename \$file`~
15047      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15048      dldir=$destdir/`dirname \$dlpath`~
15049      test -d \$dldir || mkdir -p \$dldir~
15050      $install_prog $dir/$dlname \$dldir/$dlname~
15051      chmod a+x \$dldir/$dlname~
15052      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15053        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15054      fi'
15055    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15056      dlpath=$dir/\$dldll~
15057       $RM \$dlpath'
15058    shlibpath_overrides_runpath=yes
15059
15060    case $host_os in
15061    cygwin*)
15062      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15063      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15064
15065      ;;
15066    mingw* | cegcc*)
15067      # MinGW DLLs use traditional 'lib' prefix
15068      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15069      ;;
15070    pw32*)
15071      # pw32 DLLs use 'pw' prefix rather than 'lib'
15072      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15073      ;;
15074    esac
15075    dynamic_linker='Win32 ld.exe'
15076    ;;
15077
15078  *,cl*)
15079    # Native MSVC
15080    libname_spec='$name'
15081    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15082    library_names_spec='$libname.dll.lib'
15083
15084    case $build_os in
15085    mingw*)
15086      sys_lib_search_path_spec=
15087      lt_save_ifs=$IFS
15088      IFS=';'
15089      for lt_path in $LIB
15090      do
15091        IFS=$lt_save_ifs
15092        # Let DOS variable expansion print the short 8.3 style file name.
15093        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15094        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15095      done
15096      IFS=$lt_save_ifs
15097      # Convert to MSYS style.
15098      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15099      ;;
15100    cygwin*)
15101      # Convert to unix form, then to dos form, then back to unix form
15102      # but this time dos style (no spaces!) so that the unix form looks
15103      # like /cygdrive/c/PROGRA~1:/cygdr...
15104      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15105      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15106      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15107      ;;
15108    *)
15109      sys_lib_search_path_spec=$LIB
15110      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15111        # It is most probably a Windows format PATH.
15112        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15113      else
15114        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15115      fi
15116      # FIXME: find the short name or the path components, as spaces are
15117      # common. (e.g. "Program Files" -> "PROGRA~1")
15118      ;;
15119    esac
15120
15121    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15122    postinstall_cmds='base_file=`basename \$file`~
15123      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15124      dldir=$destdir/`dirname \$dlpath`~
15125      test -d \$dldir || mkdir -p \$dldir~
15126      $install_prog $dir/$dlname \$dldir/$dlname'
15127    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15128      dlpath=$dir/\$dldll~
15129       $RM \$dlpath'
15130    shlibpath_overrides_runpath=yes
15131    dynamic_linker='Win32 link.exe'
15132    ;;
15133
15134  *)
15135    # Assume MSVC wrapper
15136    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15137    dynamic_linker='Win32 ld.exe'
15138    ;;
15139  esac
15140  # FIXME: first we should search . and the directory the executable is in
15141  shlibpath_var=PATH
15142  ;;
15143
15144darwin* | rhapsody*)
15145  dynamic_linker="$host_os dyld"
15146  version_type=darwin
15147  need_lib_prefix=no
15148  need_version=no
15149  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15150  soname_spec='$libname$release$major$shared_ext'
15151  shlibpath_overrides_runpath=yes
15152  shlibpath_var=DYLD_LIBRARY_PATH
15153  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15154
15155  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15156  ;;
15157
15158dgux*)
15159  version_type=linux # correct to gnu/linux during the next big refactor
15160  need_lib_prefix=no
15161  need_version=no
15162  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15163  soname_spec='$libname$release$shared_ext$major'
15164  shlibpath_var=LD_LIBRARY_PATH
15165  ;;
15166
15167freebsd* | dragonfly*)
15168  # DragonFly does not have aout.  When/if they implement a new
15169  # versioning mechanism, adjust this.
15170  if test -x /usr/bin/objformat; then
15171    objformat=`/usr/bin/objformat`
15172  else
15173    case $host_os in
15174    freebsd[23].*) objformat=aout ;;
15175    *) objformat=elf ;;
15176    esac
15177  fi
15178  version_type=freebsd-$objformat
15179  case $version_type in
15180    freebsd-elf*)
15181      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15182      soname_spec='$libname$release$shared_ext$major'
15183      need_version=no
15184      need_lib_prefix=no
15185      ;;
15186    freebsd-*)
15187      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15188      need_version=yes
15189      ;;
15190  esac
15191  shlibpath_var=LD_LIBRARY_PATH
15192  case $host_os in
15193  freebsd2.*)
15194    shlibpath_overrides_runpath=yes
15195    ;;
15196  freebsd3.[01]* | freebsdelf3.[01]*)
15197    shlibpath_overrides_runpath=yes
15198    hardcode_into_libs=yes
15199    ;;
15200  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15201  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15202    shlibpath_overrides_runpath=no
15203    hardcode_into_libs=yes
15204    ;;
15205  *) # from 4.6 on, and DragonFly
15206    shlibpath_overrides_runpath=yes
15207    hardcode_into_libs=yes
15208    ;;
15209  esac
15210  ;;
15211
15212haiku*)
15213  version_type=linux # correct to gnu/linux during the next big refactor
15214  need_lib_prefix=no
15215  need_version=no
15216  dynamic_linker="$host_os runtime_loader"
15217  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15218  soname_spec='$libname$release$shared_ext$major'
15219  shlibpath_var=LIBRARY_PATH
15220  shlibpath_overrides_runpath=no
15221  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15222  hardcode_into_libs=yes
15223  ;;
15224
15225hpux9* | hpux10* | hpux11*)
15226  # Give a soname corresponding to the major version so that dld.sl refuses to
15227  # link against other versions.
15228  version_type=sunos
15229  need_lib_prefix=no
15230  need_version=no
15231  case $host_cpu in
15232  ia64*)
15233    shrext_cmds='.so'
15234    hardcode_into_libs=yes
15235    dynamic_linker="$host_os dld.so"
15236    shlibpath_var=LD_LIBRARY_PATH
15237    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15238    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15239    soname_spec='$libname$release$shared_ext$major'
15240    if test 32 = "$HPUX_IA64_MODE"; then
15241      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15242      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15243    else
15244      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15245      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15246    fi
15247    ;;
15248  hppa*64*)
15249    shrext_cmds='.sl'
15250    hardcode_into_libs=yes
15251    dynamic_linker="$host_os dld.sl"
15252    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15253    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15254    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15255    soname_spec='$libname$release$shared_ext$major'
15256    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15257    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15258    ;;
15259  *)
15260    shrext_cmds='.sl'
15261    dynamic_linker="$host_os dld.sl"
15262    shlibpath_var=SHLIB_PATH
15263    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15264    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15265    soname_spec='$libname$release$shared_ext$major'
15266    ;;
15267  esac
15268  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15269  postinstall_cmds='chmod 555 $lib'
15270  # or fails outright, so override atomically:
15271  install_override_mode=555
15272  ;;
15273
15274interix[3-9]*)
15275  version_type=linux # correct to gnu/linux during the next big refactor
15276  need_lib_prefix=no
15277  need_version=no
15278  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15279  soname_spec='$libname$release$shared_ext$major'
15280  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15281  shlibpath_var=LD_LIBRARY_PATH
15282  shlibpath_overrides_runpath=no
15283  hardcode_into_libs=yes
15284  ;;
15285
15286irix5* | irix6* | nonstopux*)
15287  case $host_os in
15288    nonstopux*) version_type=nonstopux ;;
15289    *)
15290	if test yes = "$lt_cv_prog_gnu_ld"; then
15291		version_type=linux # correct to gnu/linux during the next big refactor
15292	else
15293		version_type=irix
15294	fi ;;
15295  esac
15296  need_lib_prefix=no
15297  need_version=no
15298  soname_spec='$libname$release$shared_ext$major'
15299  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15300  case $host_os in
15301  irix5* | nonstopux*)
15302    libsuff= shlibsuff=
15303    ;;
15304  *)
15305    case $LD in # libtool.m4 will add one of these switches to LD
15306    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15307      libsuff= shlibsuff= libmagic=32-bit;;
15308    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15309      libsuff=32 shlibsuff=N32 libmagic=N32;;
15310    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15311      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15312    *) libsuff= shlibsuff= libmagic=never-match;;
15313    esac
15314    ;;
15315  esac
15316  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15317  shlibpath_overrides_runpath=no
15318  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15319  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15320  hardcode_into_libs=yes
15321  ;;
15322
15323# No shared lib support for Linux oldld, aout, or coff.
15324linux*oldld* | linux*aout* | linux*coff*)
15325  dynamic_linker=no
15326  ;;
15327
15328linux*android*)
15329  version_type=none # Android doesn't support versioned libraries.
15330  need_lib_prefix=no
15331  need_version=no
15332  library_names_spec='$libname$release$shared_ext'
15333  soname_spec='$libname$release$shared_ext'
15334  finish_cmds=
15335  shlibpath_var=LD_LIBRARY_PATH
15336  shlibpath_overrides_runpath=yes
15337
15338  # This implies no fast_install, which is unacceptable.
15339  # Some rework will be needed to allow for fast_install
15340  # before this can be enabled.
15341  hardcode_into_libs=yes
15342
15343  dynamic_linker='Android linker'
15344  # Don't embed -rpath directories since the linker doesn't support them.
15345  hardcode_libdir_flag_spec_CXX='-L$libdir'
15346  ;;
15347
15348# This must be glibc/ELF.
15349linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15350  version_type=linux # correct to gnu/linux during the next big refactor
15351  need_lib_prefix=no
15352  need_version=no
15353  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15354  soname_spec='$libname$release$shared_ext$major'
15355  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15356  shlibpath_var=LD_LIBRARY_PATH
15357  shlibpath_overrides_runpath=no
15358
15359  # Some binutils ld are patched to set DT_RUNPATH
15360  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15361  $as_echo_n "(cached) " >&6
15362else
15363  lt_cv_shlibpath_overrides_runpath=no
15364    save_LDFLAGS=$LDFLAGS
15365    save_libdir=$libdir
15366    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15367	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15368    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369/* end confdefs.h.  */
15370
15371int
15372main ()
15373{
15374
15375  ;
15376  return 0;
15377}
15378_ACEOF
15379if ac_fn_cxx_try_link "$LINENO"; then :
15380  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15381  lt_cv_shlibpath_overrides_runpath=yes
15382fi
15383fi
15384rm -f core conftest.err conftest.$ac_objext \
15385    conftest$ac_exeext conftest.$ac_ext
15386    LDFLAGS=$save_LDFLAGS
15387    libdir=$save_libdir
15388
15389fi
15390
15391  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15392
15393  # This implies no fast_install, which is unacceptable.
15394  # Some rework will be needed to allow for fast_install
15395  # before this can be enabled.
15396  hardcode_into_libs=yes
15397
15398  # Ideally, we could use ldconfig to report *all* directores which are
15399  # searched for libraries, however this is still not possible.  Aside from not
15400  # being certain /sbin/ldconfig is available, command
15401  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15402  # even though it is searched at run-time.  Try to do the best guess by
15403  # appending ld.so.conf contents (and includes) to the search path.
15404  if test -f /etc/ld.so.conf; then
15405    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' ' '`
15406    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15407  fi
15408
15409  # We used to test for /lib/ld.so.1 and disable shared libraries on
15410  # powerpc, because MkLinux only supported shared libraries with the
15411  # GNU dynamic linker.  Since this was broken with cross compilers,
15412  # most powerpc-linux boxes support dynamic linking these days and
15413  # people can always --disable-shared, the test was removed, and we
15414  # assume the GNU/Linux dynamic linker is in use.
15415  dynamic_linker='GNU/Linux ld.so'
15416  ;;
15417
15418netbsdelf*-gnu)
15419  version_type=linux
15420  need_lib_prefix=no
15421  need_version=no
15422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15423  soname_spec='${libname}${release}${shared_ext}$major'
15424  shlibpath_var=LD_LIBRARY_PATH
15425  shlibpath_overrides_runpath=no
15426  hardcode_into_libs=yes
15427  dynamic_linker='NetBSD ld.elf_so'
15428  ;;
15429
15430netbsd*)
15431  version_type=sunos
15432  need_lib_prefix=no
15433  need_version=no
15434  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15435    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15436    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15437    dynamic_linker='NetBSD (a.out) ld.so'
15438  else
15439    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15440    soname_spec='$libname$release$shared_ext$major'
15441    dynamic_linker='NetBSD ld.elf_so'
15442  fi
15443  shlibpath_var=LD_LIBRARY_PATH
15444  shlibpath_overrides_runpath=yes
15445  hardcode_into_libs=yes
15446  ;;
15447
15448newsos6)
15449  version_type=linux # correct to gnu/linux during the next big refactor
15450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15451  shlibpath_var=LD_LIBRARY_PATH
15452  shlibpath_overrides_runpath=yes
15453  ;;
15454
15455*nto* | *qnx*)
15456  version_type=qnx
15457  need_lib_prefix=no
15458  need_version=no
15459  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15460  soname_spec='$libname$release$shared_ext$major'
15461  shlibpath_var=LD_LIBRARY_PATH
15462  shlibpath_overrides_runpath=no
15463  hardcode_into_libs=yes
15464  dynamic_linker='ldqnx.so'
15465  ;;
15466
15467openbsd* | bitrig*)
15468  version_type=sunos
15469  sys_lib_dlsearch_path_spec=/usr/lib
15470  need_lib_prefix=no
15471  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15472    need_version=no
15473  else
15474    need_version=yes
15475  fi
15476  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15477  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15478  shlibpath_var=LD_LIBRARY_PATH
15479  shlibpath_overrides_runpath=yes
15480  ;;
15481
15482os2*)
15483  libname_spec='$name'
15484  version_type=windows
15485  shrext_cmds=.dll
15486  need_version=no
15487  need_lib_prefix=no
15488  # OS/2 can only load a DLL with a base name of 8 characters or less.
15489  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15490    v=$($ECHO $release$versuffix | tr -d .-);
15491    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15492    $ECHO $n$v`$shared_ext'
15493  library_names_spec='${libname}_dll.$libext'
15494  dynamic_linker='OS/2 ld.exe'
15495  shlibpath_var=BEGINLIBPATH
15496  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15497  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15498  postinstall_cmds='base_file=`basename \$file`~
15499    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15500    dldir=$destdir/`dirname \$dlpath`~
15501    test -d \$dldir || mkdir -p \$dldir~
15502    $install_prog $dir/$dlname \$dldir/$dlname~
15503    chmod a+x \$dldir/$dlname~
15504    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15505      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15506    fi'
15507  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15508    dlpath=$dir/\$dldll~
15509    $RM \$dlpath'
15510  ;;
15511
15512osf3* | osf4* | osf5*)
15513  version_type=osf
15514  need_lib_prefix=no
15515  need_version=no
15516  soname_spec='$libname$release$shared_ext$major'
15517  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15518  shlibpath_var=LD_LIBRARY_PATH
15519  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15520  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15521  ;;
15522
15523rdos*)
15524  dynamic_linker=no
15525  ;;
15526
15527solaris*)
15528  version_type=linux # correct to gnu/linux during the next big refactor
15529  need_lib_prefix=no
15530  need_version=no
15531  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15532  soname_spec='$libname$release$shared_ext$major'
15533  shlibpath_var=LD_LIBRARY_PATH
15534  shlibpath_overrides_runpath=yes
15535  hardcode_into_libs=yes
15536  # ldd complains unless libraries are executable
15537  postinstall_cmds='chmod +x $lib'
15538  ;;
15539
15540sunos4*)
15541  version_type=sunos
15542  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15543  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15544  shlibpath_var=LD_LIBRARY_PATH
15545  shlibpath_overrides_runpath=yes
15546  if test yes = "$with_gnu_ld"; then
15547    need_lib_prefix=no
15548  fi
15549  need_version=yes
15550  ;;
15551
15552sysv4 | sysv4.3*)
15553  version_type=linux # correct to gnu/linux during the next big refactor
15554  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15555  soname_spec='$libname$release$shared_ext$major'
15556  shlibpath_var=LD_LIBRARY_PATH
15557  case $host_vendor in
15558    sni)
15559      shlibpath_overrides_runpath=no
15560      need_lib_prefix=no
15561      runpath_var=LD_RUN_PATH
15562      ;;
15563    siemens)
15564      need_lib_prefix=no
15565      ;;
15566    motorola)
15567      need_lib_prefix=no
15568      need_version=no
15569      shlibpath_overrides_runpath=no
15570      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15571      ;;
15572  esac
15573  ;;
15574
15575sysv4*MP*)
15576  if test -d /usr/nec; then
15577    version_type=linux # correct to gnu/linux during the next big refactor
15578    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15579    soname_spec='$libname$shared_ext.$major'
15580    shlibpath_var=LD_LIBRARY_PATH
15581  fi
15582  ;;
15583
15584sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15585  version_type=sco
15586  need_lib_prefix=no
15587  need_version=no
15588  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15589  soname_spec='$libname$release$shared_ext$major'
15590  shlibpath_var=LD_LIBRARY_PATH
15591  shlibpath_overrides_runpath=yes
15592  hardcode_into_libs=yes
15593  if test yes = "$with_gnu_ld"; then
15594    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15595  else
15596    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15597    case $host_os in
15598      sco3.2v5*)
15599        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15600	;;
15601    esac
15602  fi
15603  sys_lib_dlsearch_path_spec='/usr/lib'
15604  ;;
15605
15606tpf*)
15607  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15608  version_type=linux # correct to gnu/linux during the next big refactor
15609  need_lib_prefix=no
15610  need_version=no
15611  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15612  shlibpath_var=LD_LIBRARY_PATH
15613  shlibpath_overrides_runpath=no
15614  hardcode_into_libs=yes
15615  ;;
15616
15617uts4*)
15618  version_type=linux # correct to gnu/linux during the next big refactor
15619  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15620  soname_spec='$libname$release$shared_ext$major'
15621  shlibpath_var=LD_LIBRARY_PATH
15622  ;;
15623
15624*)
15625  dynamic_linker=no
15626  ;;
15627esac
15628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15629$as_echo "$dynamic_linker" >&6; }
15630test no = "$dynamic_linker" && can_build_shared=no
15631
15632variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15633if test yes = "$GCC"; then
15634  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15635fi
15636
15637if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15638  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15639fi
15640
15641if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15642  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15643fi
15644
15645# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15646configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15647
15648# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15649func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15650
15651# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15652configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15694$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15695hardcode_action_CXX=
15696if test -n "$hardcode_libdir_flag_spec_CXX" ||
15697   test -n "$runpath_var_CXX" ||
15698   test yes = "$hardcode_automatic_CXX"; then
15699
15700  # We can hardcode non-existent directories.
15701  if test no != "$hardcode_direct_CXX" &&
15702     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15703     # have to relink, otherwise we might link with an installed library
15704     # when we should be linking with a yet-to-be-installed one
15705     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15706     test no != "$hardcode_minus_L_CXX"; then
15707    # Linking always hardcodes the temporary library directory.
15708    hardcode_action_CXX=relink
15709  else
15710    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15711    hardcode_action_CXX=immediate
15712  fi
15713else
15714  # We cannot hardcode anything, or else we can only hardcode existing
15715  # directories.
15716  hardcode_action_CXX=unsupported
15717fi
15718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15719$as_echo "$hardcode_action_CXX" >&6; }
15720
15721if test relink = "$hardcode_action_CXX" ||
15722   test yes = "$inherit_rpath_CXX"; then
15723  # Fast installation is not supported
15724  enable_fast_install=no
15725elif test yes = "$shlibpath_overrides_runpath" ||
15726     test no = "$enable_shared"; then
15727  # Fast installation is not necessary
15728  enable_fast_install=needless
15729fi
15730
15731
15732
15733
15734
15735
15736
15737  fi # test -n "$compiler"
15738
15739  CC=$lt_save_CC
15740  CFLAGS=$lt_save_CFLAGS
15741  LDCXX=$LD
15742  LD=$lt_save_LD
15743  GCC=$lt_save_GCC
15744  with_gnu_ld=$lt_save_with_gnu_ld
15745  lt_cv_path_LDCXX=$lt_cv_path_LD
15746  lt_cv_path_LD=$lt_save_path_LD
15747  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15748  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15749fi # test yes != "$_lt_caught_CXX_error"
15750
15751ac_ext=cpp
15752ac_cpp='$CXXCPP $CPPFLAGS'
15753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771        ac_config_commands="$ac_config_commands libtool"
15772
15773
15774
15775
15776# Only expand once:
15777
15778
15779
15780# TODO(chandlerc@google.com): Currently we aren't running the Python tests
15781# against the interpreter detected by AM_PATH_PYTHON, and so we condition
15782# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
15783# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
15784# hashbang.
15785PYTHON=  # We *do not* allow the user to specify a python interpreter
15786# Extract the first word of "python", so it can be a program name with args.
15787set dummy python; ac_word=$2
15788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15789$as_echo_n "checking for $ac_word... " >&6; }
15790if ${ac_cv_path_PYTHON+:} false; then :
15791  $as_echo_n "(cached) " >&6
15792else
15793  case $PYTHON in
15794  [\\/]* | ?:[\\/]*)
15795  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15796  ;;
15797  *)
15798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15799for as_dir in $PATH
15800do
15801  IFS=$as_save_IFS
15802  test -z "$as_dir" && as_dir=.
15803    for ac_exec_ext in '' $ac_executable_extensions; do
15804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15805    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15807    break 2
15808  fi
15809done
15810  done
15811IFS=$as_save_IFS
15812
15813  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
15814  ;;
15815esac
15816fi
15817PYTHON=$ac_cv_path_PYTHON
15818if test -n "$PYTHON"; then
15819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15820$as_echo "$PYTHON" >&6; }
15821else
15822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15823$as_echo "no" >&6; }
15824fi
15825
15826
15827if test "$PYTHON" != ":"; then :
15828  prog="import sys
15829# split strings by '.' and convert to numeric.  Append some zeros
15830# because we need at least 4 digits for the hex conversion.
15831# map returns an iterator in Python 3.0 and a list in 2.x
15832minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
15833minverhex = 0
15834# xrange is not present in Python 3.0 and range returns an iterator
15835for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
15836sys.exit(sys.hexversion < minverhex)"
15837  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
15838   ($PYTHON -c "$prog") >&5 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); }; then :
15842  :
15843else
15844  PYTHON=":"
15845fi
15846fi
15847 if test "$PYTHON" != ":"; then
15848  HAVE_PYTHON_TRUE=
15849  HAVE_PYTHON_FALSE='#'
15850else
15851  HAVE_PYTHON_TRUE='#'
15852  HAVE_PYTHON_FALSE=
15853fi
15854
15855
15856# TODO(chandlerc@google.com) Check for the necessary system headers.
15857
15858# Configure pthreads.
15859
15860# Check whether --with-pthreads was given.
15861if test "${with_pthreads+set}" = set; then :
15862  withval=$with_pthreads; with_pthreads=$withval
15863else
15864  with_pthreads=check
15865fi
15866
15867
15868have_pthreads=no
15869if test "x$with_pthreads" != "xno"; then :
15870
15871
15872
15873ac_ext=c
15874ac_cpp='$CPP $CPPFLAGS'
15875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15877ac_compiler_gnu=$ac_cv_c_compiler_gnu
15878
15879acx_pthread_ok=no
15880
15881# We used to check for pthread.h first, but this fails if pthread.h
15882# requires special compiler flags (e.g. on True64 or Sequent).
15883# It gets checked for in the link test anyway.
15884
15885# First of all, check if the user has set any of the PTHREAD_LIBS,
15886# etcetera environment variables, and if threads linking works using
15887# them:
15888if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15889        save_CFLAGS="$CFLAGS"
15890        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15891        save_LIBS="$LIBS"
15892        LIBS="$PTHREAD_LIBS $LIBS"
15893        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15894$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15895        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896/* end confdefs.h.  */
15897
15898/* Override any GCC internal prototype to avoid an error.
15899   Use char because int might match the return type of a GCC
15900   builtin and then its argument prototype would still apply.  */
15901#ifdef __cplusplus
15902extern "C"
15903#endif
15904char pthread_join ();
15905int
15906main ()
15907{
15908return pthread_join ();
15909  ;
15910  return 0;
15911}
15912_ACEOF
15913if ac_fn_c_try_link "$LINENO"; then :
15914  acx_pthread_ok=yes
15915fi
15916rm -f core conftest.err conftest.$ac_objext \
15917    conftest$ac_exeext conftest.$ac_ext
15918        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15919$as_echo "$acx_pthread_ok" >&6; }
15920        if test x"$acx_pthread_ok" = xno; then
15921                PTHREAD_LIBS=""
15922                PTHREAD_CFLAGS=""
15923        fi
15924        LIBS="$save_LIBS"
15925        CFLAGS="$save_CFLAGS"
15926fi
15927
15928# We must check for the threads library under a number of different
15929# names; the ordering is very important because some systems
15930# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15931# libraries is broken (non-POSIX).
15932
15933# Create a list of thread flags to try.  Items starting with a "-" are
15934# C compiler flags, and other items are library names, except for "none"
15935# which indicates that we try without any flags at all, and "pthread-config"
15936# which is a program returning the flags for the Pth emulation library.
15937
15938acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15939
15940# The ordering *is* (sometimes) important.  Some notes on the
15941# individual items follow:
15942
15943# pthreads: AIX (must check this before -lpthread)
15944# none: in case threads are in libc; should be tried before -Kthread and
15945#       other compiler flags to prevent continual compiler warnings
15946# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15947# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15948# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15949# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15950# -pthreads: Solaris/gcc
15951# -mthreads: Mingw32/gcc, Lynx/gcc
15952# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15953#      doesn't hurt to check since this sometimes defines pthreads too;
15954#      also defines -D_REENTRANT)
15955#      ... -mt is also the pthreads flag for HP/aCC
15956# pthread: Linux, etcetera
15957# --thread-safe: KAI C++
15958# pthread-config: use pthread-config program (for GNU Pth library)
15959
15960case "${host_cpu}-${host_os}" in
15961        *solaris*)
15962
15963        # On Solaris (at least, for some versions), libc contains stubbed
15964        # (non-functional) versions of the pthreads routines, so link-based
15965        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15966        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15967        # a function called by this macro, so we could check for that, but
15968        # who knows whether they'll stub that too in a future libc.)  So,
15969        # we'll just look for -pthreads and -lpthread first:
15970
15971        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15972        ;;
15973esac
15974
15975if test x"$acx_pthread_ok" = xno; then
15976for flag in $acx_pthread_flags; do
15977
15978        case $flag in
15979                none)
15980                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15981$as_echo_n "checking whether pthreads work without any flags... " >&6; }
15982                ;;
15983
15984                -*)
15985                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15986$as_echo_n "checking whether pthreads work with $flag... " >&6; }
15987                PTHREAD_CFLAGS="$flag"
15988                ;;
15989
15990		pthread-config)
15991		# Extract the first word of "pthread-config", so it can be a program name with args.
15992set dummy pthread-config; ac_word=$2
15993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15994$as_echo_n "checking for $ac_word... " >&6; }
15995if ${ac_cv_prog_acx_pthread_config+:} false; then :
15996  $as_echo_n "(cached) " >&6
15997else
15998  if test -n "$acx_pthread_config"; then
15999  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16000else
16001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16002for as_dir in $PATH
16003do
16004  IFS=$as_save_IFS
16005  test -z "$as_dir" && as_dir=.
16006    for ac_exec_ext in '' $ac_executable_extensions; do
16007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16008    ac_cv_prog_acx_pthread_config="yes"
16009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16010    break 2
16011  fi
16012done
16013  done
16014IFS=$as_save_IFS
16015
16016  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16017fi
16018fi
16019acx_pthread_config=$ac_cv_prog_acx_pthread_config
16020if test -n "$acx_pthread_config"; then
16021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16022$as_echo "$acx_pthread_config" >&6; }
16023else
16024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025$as_echo "no" >&6; }
16026fi
16027
16028
16029		if test x"$acx_pthread_config" = xno; then continue; fi
16030		PTHREAD_CFLAGS="`pthread-config --cflags`"
16031		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16032		;;
16033
16034                *)
16035                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16036$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16037                PTHREAD_LIBS="-l$flag"
16038                ;;
16039        esac
16040
16041        save_LIBS="$LIBS"
16042        save_CFLAGS="$CFLAGS"
16043        LIBS="$PTHREAD_LIBS $LIBS"
16044        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16045
16046        # Check for various functions.  We must include pthread.h,
16047        # since some functions may be macros.  (On the Sequent, we
16048        # need a special flag -Kthread to make this header compile.)
16049        # We check for pthread_join because it is in -lpthread on IRIX
16050        # while pthread_create is in libc.  We check for pthread_attr_init
16051        # due to DEC craziness with -lpthreads.  We check for
16052        # pthread_cleanup_push because it is one of the few pthread
16053        # functions on Solaris that doesn't have a non-functional libc stub.
16054        # We try pthread_create on general principles.
16055        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056/* end confdefs.h.  */
16057#include <pthread.h>
16058int
16059main ()
16060{
16061pthread_t th; pthread_join(th, 0);
16062                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
16063                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16064  ;
16065  return 0;
16066}
16067_ACEOF
16068if ac_fn_c_try_link "$LINENO"; then :
16069  acx_pthread_ok=yes
16070fi
16071rm -f core conftest.err conftest.$ac_objext \
16072    conftest$ac_exeext conftest.$ac_ext
16073
16074        LIBS="$save_LIBS"
16075        CFLAGS="$save_CFLAGS"
16076
16077        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16078$as_echo "$acx_pthread_ok" >&6; }
16079        if test "x$acx_pthread_ok" = xyes; then
16080                break;
16081        fi
16082
16083        PTHREAD_LIBS=""
16084        PTHREAD_CFLAGS=""
16085done
16086fi
16087
16088# Various other checks:
16089if test "x$acx_pthread_ok" = xyes; then
16090        save_LIBS="$LIBS"
16091        LIBS="$PTHREAD_LIBS $LIBS"
16092        save_CFLAGS="$CFLAGS"
16093        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16094
16095        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16097$as_echo_n "checking for joinable pthread attribute... " >&6; }
16098	attr_name=unknown
16099	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16100	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101/* end confdefs.h.  */
16102#include <pthread.h>
16103int
16104main ()
16105{
16106int attr=$attr; return attr;
16107  ;
16108  return 0;
16109}
16110_ACEOF
16111if ac_fn_c_try_link "$LINENO"; then :
16112  attr_name=$attr; break
16113fi
16114rm -f core conftest.err conftest.$ac_objext \
16115    conftest$ac_exeext conftest.$ac_ext
16116	done
16117        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16118$as_echo "$attr_name" >&6; }
16119        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16120
16121cat >>confdefs.h <<_ACEOF
16122#define PTHREAD_CREATE_JOINABLE $attr_name
16123_ACEOF
16124
16125        fi
16126
16127        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16128$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16129        flag=no
16130        case "${host_cpu}-${host_os}" in
16131            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16132            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16133        esac
16134        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16135$as_echo "${flag}" >&6; }
16136        if test "x$flag" != xno; then
16137            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16138        fi
16139
16140        LIBS="$save_LIBS"
16141        CFLAGS="$save_CFLAGS"
16142        # More AIX lossage: must compile with xlc_r or cc_r
16143	if test x"$GCC" != xyes; then
16144          for ac_prog in xlc_r cc_r
16145do
16146  # Extract the first word of "$ac_prog", so it can be a program name with args.
16147set dummy $ac_prog; ac_word=$2
16148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16149$as_echo_n "checking for $ac_word... " >&6; }
16150if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16151  $as_echo_n "(cached) " >&6
16152else
16153  if test -n "$PTHREAD_CC"; then
16154  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16155else
16156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16157for as_dir in $PATH
16158do
16159  IFS=$as_save_IFS
16160  test -z "$as_dir" && as_dir=.
16161    for ac_exec_ext in '' $ac_executable_extensions; do
16162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16163    ac_cv_prog_PTHREAD_CC="$ac_prog"
16164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16165    break 2
16166  fi
16167done
16168  done
16169IFS=$as_save_IFS
16170
16171fi
16172fi
16173PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16174if test -n "$PTHREAD_CC"; then
16175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16176$as_echo "$PTHREAD_CC" >&6; }
16177else
16178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16179$as_echo "no" >&6; }
16180fi
16181
16182
16183  test -n "$PTHREAD_CC" && break
16184done
16185test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16186
16187        else
16188          PTHREAD_CC=$CC
16189	fi
16190
16191	# The next part tries to detect GCC inconsistency with -shared on some
16192	# architectures and systems. The problem is that in certain
16193	# configurations, when -shared is specified, GCC "forgets" to
16194	# internally use various flags which are still necessary.
16195
16196	#
16197	# Prepare the flags
16198	#
16199	save_CFLAGS="$CFLAGS"
16200	save_LIBS="$LIBS"
16201	save_CC="$CC"
16202
16203	# Try with the flags determined by the earlier checks.
16204	#
16205	# -Wl,-z,defs forces link-time symbol resolution, so that the
16206	# linking checks with -shared actually have any value
16207	#
16208	# FIXME: -fPIC is required for -shared on many architectures,
16209	# so we specify it here, but the right way would probably be to
16210	# properly detect whether it is actually required.
16211	CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16212	LIBS="$PTHREAD_LIBS $LIBS"
16213	CC="$PTHREAD_CC"
16214
16215	# In order not to create several levels of indentation, we test
16216	# the value of "$done" until we find the cure or run out of ideas.
16217	done="no"
16218
16219	# First, make sure the CFLAGS we added are actually accepted by our
16220	# compiler.  If not (and OS X's ld, for instance, does not accept -z),
16221	# then we can't do this test.
16222	if test x"$done" = xno; then
16223	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16224$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16225	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226/* end confdefs.h.  */
16227
16228int
16229main ()
16230{
16231
16232  ;
16233  return 0;
16234}
16235_ACEOF
16236if ac_fn_c_try_link "$LINENO"; then :
16237
16238else
16239  done=yes
16240fi
16241rm -f core conftest.err conftest.$ac_objext \
16242    conftest$ac_exeext conftest.$ac_ext
16243
16244	   if test "x$done" = xyes ; then
16245	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16246$as_echo "no" >&6; }
16247	   else
16248	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16249$as_echo "yes" >&6; }
16250	   fi
16251	fi
16252
16253	if test x"$done" = xno; then
16254	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16255$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16256	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257/* end confdefs.h.  */
16258#include <pthread.h>
16259int
16260main ()
16261{
16262pthread_t th; pthread_join(th, 0);
16263	      pthread_attr_init(0); pthread_cleanup_push(0, 0);
16264	      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16265  ;
16266  return 0;
16267}
16268_ACEOF
16269if ac_fn_c_try_link "$LINENO"; then :
16270  done=yes
16271fi
16272rm -f core conftest.err conftest.$ac_objext \
16273    conftest$ac_exeext conftest.$ac_ext
16274
16275	   if test "x$done" = xyes; then
16276	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16277$as_echo "yes" >&6; }
16278	   else
16279	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16280$as_echo "no" >&6; }
16281	   fi
16282	fi
16283
16284	#
16285	# Linux gcc on some architectures such as mips/mipsel forgets
16286	# about -lpthread
16287	#
16288	if test x"$done" = xno; then
16289	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16290$as_echo_n "checking whether -lpthread fixes that... " >&6; }
16291	   LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16292	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293/* end confdefs.h.  */
16294#include <pthread.h>
16295int
16296main ()
16297{
16298pthread_t th; pthread_join(th, 0);
16299	      pthread_attr_init(0); pthread_cleanup_push(0, 0);
16300	      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16301  ;
16302  return 0;
16303}
16304_ACEOF
16305if ac_fn_c_try_link "$LINENO"; then :
16306  done=yes
16307fi
16308rm -f core conftest.err conftest.$ac_objext \
16309    conftest$ac_exeext conftest.$ac_ext
16310
16311	   if test "x$done" = xyes; then
16312	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16313$as_echo "yes" >&6; }
16314	      PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16315	   else
16316	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16317$as_echo "no" >&6; }
16318	   fi
16319	fi
16320	#
16321	# FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16322	#
16323	if test x"$done" = xno; then
16324	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16325$as_echo_n "checking whether -lc_r fixes that... " >&6; }
16326	   LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16327	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328/* end confdefs.h.  */
16329#include <pthread.h>
16330int
16331main ()
16332{
16333pthread_t th; pthread_join(th, 0);
16334	        pthread_attr_init(0); pthread_cleanup_push(0, 0);
16335	        pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16336  ;
16337  return 0;
16338}
16339_ACEOF
16340if ac_fn_c_try_link "$LINENO"; then :
16341  done=yes
16342fi
16343rm -f core conftest.err conftest.$ac_objext \
16344    conftest$ac_exeext conftest.$ac_ext
16345
16346	   if test "x$done" = xyes; then
16347	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16348$as_echo "yes" >&6; }
16349	      PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16350	   else
16351	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16352$as_echo "no" >&6; }
16353	   fi
16354	fi
16355	if test x"$done" = xno; then
16356	   # OK, we have run out of ideas
16357	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16358$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16359
16360	   # so it's not safe to assume that we may use pthreads
16361	   acx_pthread_ok=no
16362	fi
16363
16364	CFLAGS="$save_CFLAGS"
16365	LIBS="$save_LIBS"
16366	CC="$save_CC"
16367else
16368        PTHREAD_CC="$CC"
16369fi
16370
16371
16372
16373
16374
16375# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16376if test x"$acx_pthread_ok" = xyes; then
16377
16378$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16379
16380        :
16381else
16382        acx_pthread_ok=no
16383        if test "x$with_pthreads" != "xcheck"; then :
16384  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16386as_fn_error $? "--with-pthreads was specified, but unable to be used
16387See \`config.log' for more details" "$LINENO" 5; }
16388fi
16389fi
16390ac_ext=cpp
16391ac_cpp='$CXXCPP $CPPFLAGS'
16392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16395
16396
16397       have_pthreads="$acx_pthread_ok"
16398fi
16399 if test "x$have_pthreads" == "xyes"; then
16400  HAVE_PTHREADS_TRUE=
16401  HAVE_PTHREADS_FALSE='#'
16402else
16403  HAVE_PTHREADS_TRUE='#'
16404  HAVE_PTHREADS_FALSE=
16405fi
16406
16407
16408
16409
16410# GoogleMock currently has hard dependencies upon GoogleTest above and beyond
16411# running its own test suite, so we both provide our own version in
16412# a subdirectory and provide some logic to use a custom version or a system
16413# installed version.
16414
16415# Check whether --with-gtest was given.
16416if test "${with_gtest+set}" = set; then :
16417  withval=$with_gtest;
16418else
16419  with_gtest=yes
16420fi
16421
16422# Check whether --enable-external-gtest was given.
16423if test "${enable_external_gtest+set}" = set; then :
16424  enableval=$enable_external_gtest;
16425else
16426  enable_external_gtest=yes
16427fi
16428
16429if test "x$with_gtest" == "xno"; then :
16430  as_fn_error $? "Support for GoogleTest was explicitly disabled. Currently GoogleMock has a hard
16431dependency upon GoogleTest to build, please provide a version, or allow
16432GoogleMock to use any installed version and fall back upon its internal
16433version." "$LINENO" 5
16434fi
16435
16436# Setup various GTEST variables. TODO(chandlerc@google.com): When these are
16437# used below, they should be used such that any pre-existing values always
16438# trump values we set them to, so that they can be used to selectively override
16439# details of the detection process.
16440
16441
16442
16443
16444
16445
16446HAVE_BUILT_GTEST="no"
16447
16448GTEST_MIN_VERSION="1.8.0"
16449
16450if test "x${enable_external_gtest}" = "xyes"; then :
16451  # Begin filling in variables as we are able.
16452      if test "x${with_gtest}" != "xyes"; then :
16453  if test -x "${with_gtest}/scripts/gtest-config"; then :
16454  GTEST_CONFIG="${with_gtest}/scripts/gtest-config"
16455else
16456  GTEST_CONFIG="${with_gtest}/bin/gtest-config"
16457fi
16458            if test -x "${GTEST_CONFIG}"; then :
16459
16460else
16461  as_fn_error $? "Unable to locate either a built or installed Google Test at '${with_gtest}'." "$LINENO" 5
16462
16463fi
16464fi
16465
16466      if test -x "${GTEST_CONFIG}"; then :
16467
16468else
16469  # Extract the first word of "gtest-config", so it can be a program name with args.
16470set dummy gtest-config; ac_word=$2
16471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16472$as_echo_n "checking for $ac_word... " >&6; }
16473if ${ac_cv_path_GTEST_CONFIG+:} false; then :
16474  $as_echo_n "(cached) " >&6
16475else
16476  case $GTEST_CONFIG in
16477  [\\/]* | ?:[\\/]*)
16478  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
16479  ;;
16480  *)
16481  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16482for as_dir in $PATH
16483do
16484  IFS=$as_save_IFS
16485  test -z "$as_dir" && as_dir=.
16486    for ac_exec_ext in '' $ac_executable_extensions; do
16487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16488    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16490    break 2
16491  fi
16492done
16493  done
16494IFS=$as_save_IFS
16495
16496  ;;
16497esac
16498fi
16499GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
16500if test -n "$GTEST_CONFIG"; then
16501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
16502$as_echo "$GTEST_CONFIG" >&6; }
16503else
16504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16505$as_echo "no" >&6; }
16506fi
16507
16508
16509fi
16510      if test -x "${GTEST_CONFIG}"; then :
16511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Google Test version >= ${GTEST_MIN_VERSION}" >&5
16512$as_echo_n "checking for Google Test version >= ${GTEST_MIN_VERSION}... " >&6; }
16513            if ${GTEST_CONFIG} --min-version=${GTEST_MIN_VERSION}; then :
16514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16515$as_echo "yes" >&6; }
16516                  HAVE_BUILT_GTEST="yes"
16517else
16518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16519$as_echo "no" >&6; }
16520fi
16521fi
16522fi
16523
16524if test "x${HAVE_BUILT_GTEST}" = "xyes"; then :
16525  GTEST_CPPFLAGS=`${GTEST_CONFIG} --cppflags`
16526      GTEST_CXXFLAGS=`${GTEST_CONFIG} --cxxflags`
16527      GTEST_LDFLAGS=`${GTEST_CONFIG} --ldflags`
16528      GTEST_LIBS=`${GTEST_CONFIG} --libs`
16529      GTEST_VERSION=`${GTEST_CONFIG} --version`
16530else
16531
16532      # GTEST_CONFIG needs to be executable both in a Makefile environment and
16533      # in a shell script environment, so resolve an absolute path for it here.
16534      GTEST_CONFIG="`pwd -P`/../googletest/scripts/gtest-config"
16535      GTEST_CPPFLAGS='-I$(top_srcdir)/../googletest/include'
16536      GTEST_CXXFLAGS='-g'
16537      GTEST_LDFLAGS=''
16538      GTEST_LIBS='$(top_builddir)/../googletest/lib/libgtest.la'
16539      GTEST_VERSION="${GTEST_MIN_VERSION}"
16540fi
16541
16542# TODO(chandlerc@google.com) Check the types, structures, and other compiler
16543# and architecture characteristics.
16544
16545# Output the generated files. No further autoconf macros may be used.
16546cat >confcache <<\_ACEOF
16547# This file is a shell script that caches the results of configure
16548# tests run on this system so they can be shared between configure
16549# scripts and configure runs, see configure's option --config-cache.
16550# It is not useful on other systems.  If it contains results you don't
16551# want to keep, you may remove or edit it.
16552#
16553# config.status only pays attention to the cache file if you give it
16554# the --recheck option to rerun configure.
16555#
16556# `ac_cv_env_foo' variables (set or unset) will be overridden when
16557# loading this file, other *unset* `ac_cv_foo' will be assigned the
16558# following values.
16559
16560_ACEOF
16561
16562# The following way of writing the cache mishandles newlines in values,
16563# but we know of no workaround that is simple, portable, and efficient.
16564# So, we kill variables containing newlines.
16565# Ultrix sh set writes to stderr and can't be redirected directly,
16566# and sets the high bit in the cache file unless we assign to the vars.
16567(
16568  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16569    eval ac_val=\$$ac_var
16570    case $ac_val in #(
16571    *${as_nl}*)
16572      case $ac_var in #(
16573      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16574$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16575      esac
16576      case $ac_var in #(
16577      _ | IFS | as_nl) ;; #(
16578      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16579      *) { eval $ac_var=; unset $ac_var;} ;;
16580      esac ;;
16581    esac
16582  done
16583
16584  (set) 2>&1 |
16585    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16586    *${as_nl}ac_space=\ *)
16587      # `set' does not quote correctly, so add quotes: double-quote
16588      # substitution turns \\\\ into \\, and sed turns \\ into \.
16589      sed -n \
16590	"s/'/'\\\\''/g;
16591	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16592      ;; #(
16593    *)
16594      # `set' quotes correctly as required by POSIX, so do not add quotes.
16595      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16596      ;;
16597    esac |
16598    sort
16599) |
16600  sed '
16601     /^ac_cv_env_/b end
16602     t clear
16603     :clear
16604     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16605     t end
16606     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16607     :end' >>confcache
16608if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16609  if test -w "$cache_file"; then
16610    if test "x$cache_file" != "x/dev/null"; then
16611      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16612$as_echo "$as_me: updating cache $cache_file" >&6;}
16613      if test ! -f "$cache_file" || test -h "$cache_file"; then
16614	cat confcache >"$cache_file"
16615      else
16616        case $cache_file in #(
16617        */* | ?:*)
16618	  mv -f confcache "$cache_file"$$ &&
16619	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16620        *)
16621	  mv -f confcache "$cache_file" ;;
16622	esac
16623      fi
16624    fi
16625  else
16626    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16627$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16628  fi
16629fi
16630rm -f confcache
16631
16632test "x$prefix" = xNONE && prefix=$ac_default_prefix
16633# Let make expand exec_prefix.
16634test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16635
16636DEFS=-DHAVE_CONFIG_H
16637
16638ac_libobjs=
16639ac_ltlibobjs=
16640U=
16641for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16642  # 1. Remove the extension, and $U if already installed.
16643  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16644  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16645  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16646  #    will be set to the directory where LIBOBJS objects are built.
16647  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16648  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16649done
16650LIBOBJS=$ac_libobjs
16651
16652LTLIBOBJS=$ac_ltlibobjs
16653
16654
16655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16656$as_echo_n "checking that generated files are newer than configure... " >&6; }
16657   if test -n "$am_sleep_pid"; then
16658     # Hide warnings about reused PIDs.
16659     wait $am_sleep_pid 2>/dev/null
16660   fi
16661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16662$as_echo "done" >&6; }
16663 if test -n "$EXEEXT"; then
16664  am__EXEEXT_TRUE=
16665  am__EXEEXT_FALSE='#'
16666else
16667  am__EXEEXT_TRUE='#'
16668  am__EXEEXT_FALSE=
16669fi
16670
16671if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16672  as_fn_error $? "conditional \"AMDEP\" was never defined.
16673Usually this means the macro was only invoked conditionally." "$LINENO" 5
16674fi
16675if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16676  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16677Usually this means the macro was only invoked conditionally." "$LINENO" 5
16678fi
16679if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16680  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16681Usually this means the macro was only invoked conditionally." "$LINENO" 5
16682fi
16683if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16684  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
16685Usually this means the macro was only invoked conditionally." "$LINENO" 5
16686fi
16687if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then
16688  as_fn_error $? "conditional \"HAVE_PTHREADS\" was never defined.
16689Usually this means the macro was only invoked conditionally." "$LINENO" 5
16690fi
16691
16692: "${CONFIG_STATUS=./config.status}"
16693ac_write_fail=0
16694ac_clean_files_save=$ac_clean_files
16695ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16696{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16697$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16698as_write_fail=0
16699cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16700#! $SHELL
16701# Generated by $as_me.
16702# Run this file to recreate the current configuration.
16703# Compiler output produced by configure, useful for debugging
16704# configure, is in config.log if it exists.
16705
16706debug=false
16707ac_cs_recheck=false
16708ac_cs_silent=false
16709
16710SHELL=\${CONFIG_SHELL-$SHELL}
16711export SHELL
16712_ASEOF
16713cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16714## -------------------- ##
16715## M4sh Initialization. ##
16716## -------------------- ##
16717
16718# Be more Bourne compatible
16719DUALCASE=1; export DUALCASE # for MKS sh
16720if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16721  emulate sh
16722  NULLCMD=:
16723  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16724  # is contrary to our usage.  Disable this feature.
16725  alias -g '${1+"$@"}'='"$@"'
16726  setopt NO_GLOB_SUBST
16727else
16728  case `(set -o) 2>/dev/null` in #(
16729  *posix*) :
16730    set -o posix ;; #(
16731  *) :
16732     ;;
16733esac
16734fi
16735
16736
16737as_nl='
16738'
16739export as_nl
16740# Printing a long string crashes Solaris 7 /usr/bin/printf.
16741as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16742as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16743as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16744# Prefer a ksh shell builtin over an external printf program on Solaris,
16745# but without wasting forks for bash or zsh.
16746if test -z "$BASH_VERSION$ZSH_VERSION" \
16747    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16748  as_echo='print -r --'
16749  as_echo_n='print -rn --'
16750elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16751  as_echo='printf %s\n'
16752  as_echo_n='printf %s'
16753else
16754  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16755    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16756    as_echo_n='/usr/ucb/echo -n'
16757  else
16758    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16759    as_echo_n_body='eval
16760      arg=$1;
16761      case $arg in #(
16762      *"$as_nl"*)
16763	expr "X$arg" : "X\\(.*\\)$as_nl";
16764	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16765      esac;
16766      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16767    '
16768    export as_echo_n_body
16769    as_echo_n='sh -c $as_echo_n_body as_echo'
16770  fi
16771  export as_echo_body
16772  as_echo='sh -c $as_echo_body as_echo'
16773fi
16774
16775# The user is always right.
16776if test "${PATH_SEPARATOR+set}" != set; then
16777  PATH_SEPARATOR=:
16778  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16779    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16780      PATH_SEPARATOR=';'
16781  }
16782fi
16783
16784
16785# IFS
16786# We need space, tab and new line, in precisely that order.  Quoting is
16787# there to prevent editors from complaining about space-tab.
16788# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16789# splitting by setting IFS to empty value.)
16790IFS=" ""	$as_nl"
16791
16792# Find who we are.  Look in the path if we contain no directory separator.
16793as_myself=
16794case $0 in #((
16795  *[\\/]* ) as_myself=$0 ;;
16796  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16797for as_dir in $PATH
16798do
16799  IFS=$as_save_IFS
16800  test -z "$as_dir" && as_dir=.
16801    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16802  done
16803IFS=$as_save_IFS
16804
16805     ;;
16806esac
16807# We did not find ourselves, most probably we were run as `sh COMMAND'
16808# in which case we are not to be found in the path.
16809if test "x$as_myself" = x; then
16810  as_myself=$0
16811fi
16812if test ! -f "$as_myself"; then
16813  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16814  exit 1
16815fi
16816
16817# Unset variables that we do not need and which cause bugs (e.g. in
16818# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16819# suppresses any "Segmentation fault" message there.  '((' could
16820# trigger a bug in pdksh 5.2.14.
16821for as_var in BASH_ENV ENV MAIL MAILPATH
16822do eval test x\${$as_var+set} = xset \
16823  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16824done
16825PS1='$ '
16826PS2='> '
16827PS4='+ '
16828
16829# NLS nuisances.
16830LC_ALL=C
16831export LC_ALL
16832LANGUAGE=C
16833export LANGUAGE
16834
16835# CDPATH.
16836(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16837
16838
16839# as_fn_error STATUS ERROR [LINENO LOG_FD]
16840# ----------------------------------------
16841# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16842# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16843# script with STATUS, using 1 if that was 0.
16844as_fn_error ()
16845{
16846  as_status=$1; test $as_status -eq 0 && as_status=1
16847  if test "$4"; then
16848    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16849    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16850  fi
16851  $as_echo "$as_me: error: $2" >&2
16852  as_fn_exit $as_status
16853} # as_fn_error
16854
16855
16856# as_fn_set_status STATUS
16857# -----------------------
16858# Set $? to STATUS, without forking.
16859as_fn_set_status ()
16860{
16861  return $1
16862} # as_fn_set_status
16863
16864# as_fn_exit STATUS
16865# -----------------
16866# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16867as_fn_exit ()
16868{
16869  set +e
16870  as_fn_set_status $1
16871  exit $1
16872} # as_fn_exit
16873
16874# as_fn_unset VAR
16875# ---------------
16876# Portably unset VAR.
16877as_fn_unset ()
16878{
16879  { eval $1=; unset $1;}
16880}
16881as_unset=as_fn_unset
16882# as_fn_append VAR VALUE
16883# ----------------------
16884# Append the text in VALUE to the end of the definition contained in VAR. Take
16885# advantage of any shell optimizations that allow amortized linear growth over
16886# repeated appends, instead of the typical quadratic growth present in naive
16887# implementations.
16888if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16889  eval 'as_fn_append ()
16890  {
16891    eval $1+=\$2
16892  }'
16893else
16894  as_fn_append ()
16895  {
16896    eval $1=\$$1\$2
16897  }
16898fi # as_fn_append
16899
16900# as_fn_arith ARG...
16901# ------------------
16902# Perform arithmetic evaluation on the ARGs, and store the result in the
16903# global $as_val. Take advantage of shells that can avoid forks. The arguments
16904# must be portable across $(()) and expr.
16905if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16906  eval 'as_fn_arith ()
16907  {
16908    as_val=$(( $* ))
16909  }'
16910else
16911  as_fn_arith ()
16912  {
16913    as_val=`expr "$@" || test $? -eq 1`
16914  }
16915fi # as_fn_arith
16916
16917
16918if expr a : '\(a\)' >/dev/null 2>&1 &&
16919   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16920  as_expr=expr
16921else
16922  as_expr=false
16923fi
16924
16925if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16926  as_basename=basename
16927else
16928  as_basename=false
16929fi
16930
16931if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16932  as_dirname=dirname
16933else
16934  as_dirname=false
16935fi
16936
16937as_me=`$as_basename -- "$0" ||
16938$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16939	 X"$0" : 'X\(//\)$' \| \
16940	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16941$as_echo X/"$0" |
16942    sed '/^.*\/\([^/][^/]*\)\/*$/{
16943	    s//\1/
16944	    q
16945	  }
16946	  /^X\/\(\/\/\)$/{
16947	    s//\1/
16948	    q
16949	  }
16950	  /^X\/\(\/\).*/{
16951	    s//\1/
16952	    q
16953	  }
16954	  s/.*/./; q'`
16955
16956# Avoid depending upon Character Ranges.
16957as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16959as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16960as_cr_digits='0123456789'
16961as_cr_alnum=$as_cr_Letters$as_cr_digits
16962
16963ECHO_C= ECHO_N= ECHO_T=
16964case `echo -n x` in #(((((
16965-n*)
16966  case `echo 'xy\c'` in
16967  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16968  xy)  ECHO_C='\c';;
16969  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16970       ECHO_T='	';;
16971  esac;;
16972*)
16973  ECHO_N='-n';;
16974esac
16975
16976rm -f conf$$ conf$$.exe conf$$.file
16977if test -d conf$$.dir; then
16978  rm -f conf$$.dir/conf$$.file
16979else
16980  rm -f conf$$.dir
16981  mkdir conf$$.dir 2>/dev/null
16982fi
16983if (echo >conf$$.file) 2>/dev/null; then
16984  if ln -s conf$$.file conf$$ 2>/dev/null; then
16985    as_ln_s='ln -s'
16986    # ... but there are two gotchas:
16987    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16988    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16989    # In both cases, we have to default to `cp -pR'.
16990    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16991      as_ln_s='cp -pR'
16992  elif ln conf$$.file conf$$ 2>/dev/null; then
16993    as_ln_s=ln
16994  else
16995    as_ln_s='cp -pR'
16996  fi
16997else
16998  as_ln_s='cp -pR'
16999fi
17000rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17001rmdir conf$$.dir 2>/dev/null
17002
17003
17004# as_fn_mkdir_p
17005# -------------
17006# Create "$as_dir" as a directory, including parents if necessary.
17007as_fn_mkdir_p ()
17008{
17009
17010  case $as_dir in #(
17011  -*) as_dir=./$as_dir;;
17012  esac
17013  test -d "$as_dir" || eval $as_mkdir_p || {
17014    as_dirs=
17015    while :; do
17016      case $as_dir in #(
17017      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17018      *) as_qdir=$as_dir;;
17019      esac
17020      as_dirs="'$as_qdir' $as_dirs"
17021      as_dir=`$as_dirname -- "$as_dir" ||
17022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17023	 X"$as_dir" : 'X\(//\)[^/]' \| \
17024	 X"$as_dir" : 'X\(//\)$' \| \
17025	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17026$as_echo X"$as_dir" |
17027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17028	    s//\1/
17029	    q
17030	  }
17031	  /^X\(\/\/\)[^/].*/{
17032	    s//\1/
17033	    q
17034	  }
17035	  /^X\(\/\/\)$/{
17036	    s//\1/
17037	    q
17038	  }
17039	  /^X\(\/\).*/{
17040	    s//\1/
17041	    q
17042	  }
17043	  s/.*/./; q'`
17044      test -d "$as_dir" && break
17045    done
17046    test -z "$as_dirs" || eval "mkdir $as_dirs"
17047  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17048
17049
17050} # as_fn_mkdir_p
17051if mkdir -p . 2>/dev/null; then
17052  as_mkdir_p='mkdir -p "$as_dir"'
17053else
17054  test -d ./-p && rmdir ./-p
17055  as_mkdir_p=false
17056fi
17057
17058
17059# as_fn_executable_p FILE
17060# -----------------------
17061# Test if FILE is an executable regular file.
17062as_fn_executable_p ()
17063{
17064  test -f "$1" && test -x "$1"
17065} # as_fn_executable_p
17066as_test_x='test -x'
17067as_executable_p=as_fn_executable_p
17068
17069# Sed expression to map a string onto a valid CPP name.
17070as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17071
17072# Sed expression to map a string onto a valid variable name.
17073as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17074
17075
17076exec 6>&1
17077## ----------------------------------- ##
17078## Main body of $CONFIG_STATUS script. ##
17079## ----------------------------------- ##
17080_ASEOF
17081test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17082
17083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17084# Save the log message, to keep $0 and so on meaningful, and to
17085# report actual input values of CONFIG_FILES etc. instead of their
17086# values after options handling.
17087ac_log="
17088This file was extended by Google C++ Mocking Framework $as_me 1.8.0, which was
17089generated by GNU Autoconf 2.69.  Invocation command line was
17090
17091  CONFIG_FILES    = $CONFIG_FILES
17092  CONFIG_HEADERS  = $CONFIG_HEADERS
17093  CONFIG_LINKS    = $CONFIG_LINKS
17094  CONFIG_COMMANDS = $CONFIG_COMMANDS
17095  $ $0 $@
17096
17097on `(hostname || uname -n) 2>/dev/null | sed 1q`
17098"
17099
17100_ACEOF
17101
17102case $ac_config_files in *"
17103"*) set x $ac_config_files; shift; ac_config_files=$*;;
17104esac
17105
17106case $ac_config_headers in *"
17107"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17108esac
17109
17110
17111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17112# Files that config.status was made for.
17113config_files="$ac_config_files"
17114config_headers="$ac_config_headers"
17115config_commands="$ac_config_commands"
17116
17117_ACEOF
17118
17119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17120ac_cs_usage="\
17121\`$as_me' instantiates files and other configuration actions
17122from templates according to the current configuration.  Unless the files
17123and actions are specified as TAGs, all are instantiated by default.
17124
17125Usage: $0 [OPTION]... [TAG]...
17126
17127  -h, --help       print this help, then exit
17128  -V, --version    print version number and configuration settings, then exit
17129      --config     print configuration, then exit
17130  -q, --quiet, --silent
17131                   do not print progress messages
17132  -d, --debug      don't remove temporary files
17133      --recheck    update $as_me by reconfiguring in the same conditions
17134      --file=FILE[:TEMPLATE]
17135                   instantiate the configuration file FILE
17136      --header=FILE[:TEMPLATE]
17137                   instantiate the configuration header FILE
17138
17139Configuration files:
17140$config_files
17141
17142Configuration headers:
17143$config_headers
17144
17145Configuration commands:
17146$config_commands
17147
17148Report bugs to <googlemock@googlegroups.com>."
17149
17150_ACEOF
17151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17152ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17153ac_cs_version="\\
17154Google C++ Mocking Framework config.status 1.8.0
17155configured by $0, generated by GNU Autoconf 2.69,
17156  with options \\"\$ac_cs_config\\"
17157
17158Copyright (C) 2012 Free Software Foundation, Inc.
17159This config.status script is free software; the Free Software Foundation
17160gives unlimited permission to copy, distribute and modify it."
17161
17162ac_pwd='$ac_pwd'
17163srcdir='$srcdir'
17164INSTALL='$INSTALL'
17165MKDIR_P='$MKDIR_P'
17166AWK='$AWK'
17167test -n "\$AWK" || AWK=awk
17168_ACEOF
17169
17170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17171# The default lists apply if the user does not specify any file.
17172ac_need_defaults=:
17173while test $# != 0
17174do
17175  case $1 in
17176  --*=?*)
17177    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17178    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17179    ac_shift=:
17180    ;;
17181  --*=)
17182    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17183    ac_optarg=
17184    ac_shift=:
17185    ;;
17186  *)
17187    ac_option=$1
17188    ac_optarg=$2
17189    ac_shift=shift
17190    ;;
17191  esac
17192
17193  case $ac_option in
17194  # Handling of the options.
17195  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17196    ac_cs_recheck=: ;;
17197  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17198    $as_echo "$ac_cs_version"; exit ;;
17199  --config | --confi | --conf | --con | --co | --c )
17200    $as_echo "$ac_cs_config"; exit ;;
17201  --debug | --debu | --deb | --de | --d | -d )
17202    debug=: ;;
17203  --file | --fil | --fi | --f )
17204    $ac_shift
17205    case $ac_optarg in
17206    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17207    '') as_fn_error $? "missing file argument" ;;
17208    esac
17209    as_fn_append CONFIG_FILES " '$ac_optarg'"
17210    ac_need_defaults=false;;
17211  --header | --heade | --head | --hea )
17212    $ac_shift
17213    case $ac_optarg in
17214    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17215    esac
17216    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17217    ac_need_defaults=false;;
17218  --he | --h)
17219    # Conflict between --help and --header
17220    as_fn_error $? "ambiguous option: \`$1'
17221Try \`$0 --help' for more information.";;
17222  --help | --hel | -h )
17223    $as_echo "$ac_cs_usage"; exit ;;
17224  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17225  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17226    ac_cs_silent=: ;;
17227
17228  # This is an error.
17229  -*) as_fn_error $? "unrecognized option: \`$1'
17230Try \`$0 --help' for more information." ;;
17231
17232  *) as_fn_append ac_config_targets " $1"
17233     ac_need_defaults=false ;;
17234
17235  esac
17236  shift
17237done
17238
17239ac_configure_extra_args=
17240
17241if $ac_cs_silent; then
17242  exec 6>/dev/null
17243  ac_configure_extra_args="$ac_configure_extra_args --silent"
17244fi
17245
17246_ACEOF
17247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17248if \$ac_cs_recheck; then
17249  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17250  shift
17251  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17252  CONFIG_SHELL='$SHELL'
17253  export CONFIG_SHELL
17254  exec "\$@"
17255fi
17256
17257_ACEOF
17258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17259exec 5>>config.log
17260{
17261  echo
17262  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17263## Running $as_me. ##
17264_ASBOX
17265  $as_echo "$ac_log"
17266} >&5
17267
17268_ACEOF
17269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17270#
17271# INIT-COMMANDS
17272#
17273AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17274
17275
17276# The HP-UX ksh and POSIX shell print the target directory to stdout
17277# if CDPATH is set.
17278(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17279
17280sed_quote_subst='$sed_quote_subst'
17281double_quote_subst='$double_quote_subst'
17282delay_variable_subst='$delay_variable_subst'
17283macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17284macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17285enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17286enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17287pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17288enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17289shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17290SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17291ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17292PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17293host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17294host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17295host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17296build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17297build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17298build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17299SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17300Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17301GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17302EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17303FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17304LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17305NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17306LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17307max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17308ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17309exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17310lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17311lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17312lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17313lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17314lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17315reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17316reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17317OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17318deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17319file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17320file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17321want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17322DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17323sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17324AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17325AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17326archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17327STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17328RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17329old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17330old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17331old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17332lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17333CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17334CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17335compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17336GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17337lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17338lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17339lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17340lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17341lt_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"`'
17342lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17343nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17344lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17345lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17346objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17347MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17348lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17349lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17350lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17351lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17352lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17353need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17354MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17355DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17356NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17357LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17358OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17359OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17360libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17361shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17362extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17363archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17364enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17365export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17366whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17367compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17368old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17369old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17370archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17371archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17372module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17373module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17374with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17375allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17376no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17377hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17378hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17379hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17380hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17381hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17382hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17383hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17384inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17385link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17386always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17387export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17388exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17389include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17390prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17391postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17392file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17393variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17394need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17395need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17396version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17397runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17398shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17399shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17400libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17401library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17402soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17403install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17404postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17405postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17406finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17407finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17408hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17409sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17410configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17411configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17412hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17413enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17414enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17415enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17416old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17417striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17418compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17419predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17420postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17421predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17422postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17423compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17424LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17425reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17426reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17427old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17428compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17429GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17430lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17431lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17432lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17433lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17434lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17435archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17436enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17437export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17438whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17439compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17440old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17441old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17442archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17443archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17444module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17445module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17446with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17447allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17448no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17449hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17450hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17451hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17452hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17453hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17454hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17455hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17456inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17457link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17458always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17459export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17460exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17461include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17462prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17463postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17464file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17465hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17466compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17467predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17468postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17469predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17470postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17471compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17472
17473LTCC='$LTCC'
17474LTCFLAGS='$LTCFLAGS'
17475compiler='$compiler_DEFAULT'
17476
17477# A function that is used when there is no print builtin or printf.
17478func_fallback_echo ()
17479{
17480  eval 'cat <<_LTECHO_EOF
17481\$1
17482_LTECHO_EOF'
17483}
17484
17485# Quote evaled strings.
17486for var in SHELL \
17487ECHO \
17488PATH_SEPARATOR \
17489SED \
17490GREP \
17491EGREP \
17492FGREP \
17493LD \
17494NM \
17495LN_S \
17496lt_SP2NL \
17497lt_NL2SP \
17498reload_flag \
17499OBJDUMP \
17500deplibs_check_method \
17501file_magic_cmd \
17502file_magic_glob \
17503want_nocaseglob \
17504DLLTOOL \
17505sharedlib_from_linklib_cmd \
17506AR \
17507AR_FLAGS \
17508archiver_list_spec \
17509STRIP \
17510RANLIB \
17511CC \
17512CFLAGS \
17513compiler \
17514lt_cv_sys_global_symbol_pipe \
17515lt_cv_sys_global_symbol_to_cdecl \
17516lt_cv_sys_global_symbol_to_import \
17517lt_cv_sys_global_symbol_to_c_name_address \
17518lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17519lt_cv_nm_interface \
17520nm_file_list_spec \
17521lt_cv_truncate_bin \
17522lt_prog_compiler_no_builtin_flag \
17523lt_prog_compiler_pic \
17524lt_prog_compiler_wl \
17525lt_prog_compiler_static \
17526lt_cv_prog_compiler_c_o \
17527need_locks \
17528MANIFEST_TOOL \
17529DSYMUTIL \
17530NMEDIT \
17531LIPO \
17532OTOOL \
17533OTOOL64 \
17534shrext_cmds \
17535export_dynamic_flag_spec \
17536whole_archive_flag_spec \
17537compiler_needs_object \
17538with_gnu_ld \
17539allow_undefined_flag \
17540no_undefined_flag \
17541hardcode_libdir_flag_spec \
17542hardcode_libdir_separator \
17543exclude_expsyms \
17544include_expsyms \
17545file_list_spec \
17546variables_saved_for_relink \
17547libname_spec \
17548library_names_spec \
17549soname_spec \
17550install_override_mode \
17551finish_eval \
17552old_striplib \
17553striplib \
17554compiler_lib_search_dirs \
17555predep_objects \
17556postdep_objects \
17557predeps \
17558postdeps \
17559compiler_lib_search_path \
17560LD_CXX \
17561reload_flag_CXX \
17562compiler_CXX \
17563lt_prog_compiler_no_builtin_flag_CXX \
17564lt_prog_compiler_pic_CXX \
17565lt_prog_compiler_wl_CXX \
17566lt_prog_compiler_static_CXX \
17567lt_cv_prog_compiler_c_o_CXX \
17568export_dynamic_flag_spec_CXX \
17569whole_archive_flag_spec_CXX \
17570compiler_needs_object_CXX \
17571with_gnu_ld_CXX \
17572allow_undefined_flag_CXX \
17573no_undefined_flag_CXX \
17574hardcode_libdir_flag_spec_CXX \
17575hardcode_libdir_separator_CXX \
17576exclude_expsyms_CXX \
17577include_expsyms_CXX \
17578file_list_spec_CXX \
17579compiler_lib_search_dirs_CXX \
17580predep_objects_CXX \
17581postdep_objects_CXX \
17582predeps_CXX \
17583postdeps_CXX \
17584compiler_lib_search_path_CXX; do
17585    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17586    *[\\\\\\\`\\"\\\$]*)
17587      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17588      ;;
17589    *)
17590      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17591      ;;
17592    esac
17593done
17594
17595# Double-quote double-evaled strings.
17596for var in reload_cmds \
17597old_postinstall_cmds \
17598old_postuninstall_cmds \
17599old_archive_cmds \
17600extract_expsyms_cmds \
17601old_archive_from_new_cmds \
17602old_archive_from_expsyms_cmds \
17603archive_cmds \
17604archive_expsym_cmds \
17605module_cmds \
17606module_expsym_cmds \
17607export_symbols_cmds \
17608prelink_cmds \
17609postlink_cmds \
17610postinstall_cmds \
17611postuninstall_cmds \
17612finish_cmds \
17613sys_lib_search_path_spec \
17614configure_time_dlsearch_path \
17615configure_time_lt_sys_library_path \
17616reload_cmds_CXX \
17617old_archive_cmds_CXX \
17618old_archive_from_new_cmds_CXX \
17619old_archive_from_expsyms_cmds_CXX \
17620archive_cmds_CXX \
17621archive_expsym_cmds_CXX \
17622module_cmds_CXX \
17623module_expsym_cmds_CXX \
17624export_symbols_cmds_CXX \
17625prelink_cmds_CXX \
17626postlink_cmds_CXX; do
17627    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17628    *[\\\\\\\`\\"\\\$]*)
17629      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17630      ;;
17631    *)
17632      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17633      ;;
17634    esac
17635done
17636
17637ac_aux_dir='$ac_aux_dir'
17638
17639# See if we are running on zsh, and set the options that allow our
17640# commands through without removal of \ escapes INIT.
17641if test -n "\${ZSH_VERSION+set}"; then
17642   setopt NO_GLOB_SUBST
17643fi
17644
17645
17646    PACKAGE='$PACKAGE'
17647    VERSION='$VERSION'
17648    RM='$RM'
17649    ofile='$ofile'
17650
17651
17652
17653
17654
17655
17656_ACEOF
17657
17658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17659
17660# Handling of arguments.
17661for ac_config_target in $ac_config_targets
17662do
17663  case $ac_config_target in
17664    "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;;
17665    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17666    "scripts/gmock-config") CONFIG_FILES="$CONFIG_FILES scripts/gmock-config" ;;
17667    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17668    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17669
17670  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17671  esac
17672done
17673
17674
17675# If the user did not use the arguments to specify the items to instantiate,
17676# then the envvar interface is used.  Set only those that are not.
17677# We use the long form for the default assignment because of an extremely
17678# bizarre bug on SunOS 4.1.3.
17679if $ac_need_defaults; then
17680  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17681  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17682  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17683fi
17684
17685# Have a temporary directory for convenience.  Make it in the build tree
17686# simply because there is no reason against having it here, and in addition,
17687# creating and moving files from /tmp can sometimes cause problems.
17688# Hook for its removal unless debugging.
17689# Note that there is a small window in which the directory will not be cleaned:
17690# after its creation but before its name has been assigned to `$tmp'.
17691$debug ||
17692{
17693  tmp= ac_tmp=
17694  trap 'exit_status=$?
17695  : "${ac_tmp:=$tmp}"
17696  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17697' 0
17698  trap 'as_fn_exit 1' 1 2 13 15
17699}
17700# Create a (secure) tmp directory for tmp files.
17701
17702{
17703  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17704  test -d "$tmp"
17705}  ||
17706{
17707  tmp=./conf$$-$RANDOM
17708  (umask 077 && mkdir "$tmp")
17709} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17710ac_tmp=$tmp
17711
17712# Set up the scripts for CONFIG_FILES section.
17713# No need to generate them if there are no CONFIG_FILES.
17714# This happens for instance with `./config.status config.h'.
17715if test -n "$CONFIG_FILES"; then
17716
17717
17718ac_cr=`echo X | tr X '\015'`
17719# On cygwin, bash can eat \r inside `` if the user requested igncr.
17720# But we know of no other shell where ac_cr would be empty at this
17721# point, so we can use a bashism as a fallback.
17722if test "x$ac_cr" = x; then
17723  eval ac_cr=\$\'\\r\'
17724fi
17725ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17726if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17727  ac_cs_awk_cr='\\r'
17728else
17729  ac_cs_awk_cr=$ac_cr
17730fi
17731
17732echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17733_ACEOF
17734
17735
17736{
17737  echo "cat >conf$$subs.awk <<_ACEOF" &&
17738  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17739  echo "_ACEOF"
17740} >conf$$subs.sh ||
17741  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17742ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17743ac_delim='%!_!# '
17744for ac_last_try in false false false false false :; do
17745  . ./conf$$subs.sh ||
17746    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17747
17748  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17749  if test $ac_delim_n = $ac_delim_num; then
17750    break
17751  elif $ac_last_try; then
17752    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17753  else
17754    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17755  fi
17756done
17757rm -f conf$$subs.sh
17758
17759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17760cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17761_ACEOF
17762sed -n '
17763h
17764s/^/S["/; s/!.*/"]=/
17765p
17766g
17767s/^[^!]*!//
17768:repl
17769t repl
17770s/'"$ac_delim"'$//
17771t delim
17772:nl
17773h
17774s/\(.\{148\}\)..*/\1/
17775t more1
17776s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17777p
17778n
17779b repl
17780:more1
17781s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17782p
17783g
17784s/.\{148\}//
17785t nl
17786:delim
17787h
17788s/\(.\{148\}\)..*/\1/
17789t more2
17790s/["\\]/\\&/g; s/^/"/; s/$/"/
17791p
17792b
17793:more2
17794s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17795p
17796g
17797s/.\{148\}//
17798t delim
17799' <conf$$subs.awk | sed '
17800/^[^""]/{
17801  N
17802  s/\n//
17803}
17804' >>$CONFIG_STATUS || ac_write_fail=1
17805rm -f conf$$subs.awk
17806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17807_ACAWK
17808cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17809  for (key in S) S_is_set[key] = 1
17810  FS = ""
17811
17812}
17813{
17814  line = $ 0
17815  nfields = split(line, field, "@")
17816  substed = 0
17817  len = length(field[1])
17818  for (i = 2; i < nfields; i++) {
17819    key = field[i]
17820    keylen = length(key)
17821    if (S_is_set[key]) {
17822      value = S[key]
17823      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17824      len += length(value) + length(field[++i])
17825      substed = 1
17826    } else
17827      len += 1 + keylen
17828  }
17829
17830  print line
17831}
17832
17833_ACAWK
17834_ACEOF
17835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17836if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17837  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17838else
17839  cat
17840fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17841  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17842_ACEOF
17843
17844# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17845# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17846# trailing colons and then remove the whole line if VPATH becomes empty
17847# (actually we leave an empty line to preserve line numbers).
17848if test "x$srcdir" = x.; then
17849  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17850h
17851s///
17852s/^/:/
17853s/[	 ]*$/:/
17854s/:\$(srcdir):/:/g
17855s/:\${srcdir}:/:/g
17856s/:@srcdir@:/:/g
17857s/^:*//
17858s/:*$//
17859x
17860s/\(=[	 ]*\).*/\1/
17861G
17862s/\n//
17863s/^[^=]*=[	 ]*$//
17864}'
17865fi
17866
17867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17868fi # test -n "$CONFIG_FILES"
17869
17870# Set up the scripts for CONFIG_HEADERS section.
17871# No need to generate them if there are no CONFIG_HEADERS.
17872# This happens for instance with `./config.status Makefile'.
17873if test -n "$CONFIG_HEADERS"; then
17874cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17875BEGIN {
17876_ACEOF
17877
17878# Transform confdefs.h into an awk script `defines.awk', embedded as
17879# here-document in config.status, that substitutes the proper values into
17880# config.h.in to produce config.h.
17881
17882# Create a delimiter string that does not exist in confdefs.h, to ease
17883# handling of long lines.
17884ac_delim='%!_!# '
17885for ac_last_try in false false :; do
17886  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17887  if test -z "$ac_tt"; then
17888    break
17889  elif $ac_last_try; then
17890    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17891  else
17892    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17893  fi
17894done
17895
17896# For the awk script, D is an array of macro values keyed by name,
17897# likewise P contains macro parameters if any.  Preserve backslash
17898# newline sequences.
17899
17900ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17901sed -n '
17902s/.\{148\}/&'"$ac_delim"'/g
17903t rset
17904:rset
17905s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17906t def
17907d
17908:def
17909s/\\$//
17910t bsnl
17911s/["\\]/\\&/g
17912s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17913D["\1"]=" \3"/p
17914s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17915d
17916:bsnl
17917s/["\\]/\\&/g
17918s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17919D["\1"]=" \3\\\\\\n"\\/p
17920t cont
17921s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17922t cont
17923d
17924:cont
17925n
17926s/.\{148\}/&'"$ac_delim"'/g
17927t clear
17928:clear
17929s/\\$//
17930t bsnlc
17931s/["\\]/\\&/g; s/^/"/; s/$/"/p
17932d
17933:bsnlc
17934s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17935b cont
17936' <confdefs.h | sed '
17937s/'"$ac_delim"'/"\\\
17938"/g' >>$CONFIG_STATUS || ac_write_fail=1
17939
17940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17941  for (key in D) D_is_set[key] = 1
17942  FS = ""
17943}
17944/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17945  line = \$ 0
17946  split(line, arg, " ")
17947  if (arg[1] == "#") {
17948    defundef = arg[2]
17949    mac1 = arg[3]
17950  } else {
17951    defundef = substr(arg[1], 2)
17952    mac1 = arg[2]
17953  }
17954  split(mac1, mac2, "(") #)
17955  macro = mac2[1]
17956  prefix = substr(line, 1, index(line, defundef) - 1)
17957  if (D_is_set[macro]) {
17958    # Preserve the white space surrounding the "#".
17959    print prefix "define", macro P[macro] D[macro]
17960    next
17961  } else {
17962    # Replace #undef with comments.  This is necessary, for example,
17963    # in the case of _POSIX_SOURCE, which is predefined and required
17964    # on some systems where configure will not decide to define it.
17965    if (defundef == "undef") {
17966      print "/*", prefix defundef, macro, "*/"
17967      next
17968    }
17969  }
17970}
17971{ print }
17972_ACAWK
17973_ACEOF
17974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17975  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17976fi # test -n "$CONFIG_HEADERS"
17977
17978
17979eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17980shift
17981for ac_tag
17982do
17983  case $ac_tag in
17984  :[FHLC]) ac_mode=$ac_tag; continue;;
17985  esac
17986  case $ac_mode$ac_tag in
17987  :[FHL]*:*);;
17988  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17989  :[FH]-) ac_tag=-:-;;
17990  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17991  esac
17992  ac_save_IFS=$IFS
17993  IFS=:
17994  set x $ac_tag
17995  IFS=$ac_save_IFS
17996  shift
17997  ac_file=$1
17998  shift
17999
18000  case $ac_mode in
18001  :L) ac_source=$1;;
18002  :[FH])
18003    ac_file_inputs=
18004    for ac_f
18005    do
18006      case $ac_f in
18007      -) ac_f="$ac_tmp/stdin";;
18008      *) # Look for the file first in the build tree, then in the source tree
18009	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18010	 # because $ac_f cannot contain `:'.
18011	 test -f "$ac_f" ||
18012	   case $ac_f in
18013	   [\\/$]*) false;;
18014	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18015	   esac ||
18016	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18017      esac
18018      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18019      as_fn_append ac_file_inputs " '$ac_f'"
18020    done
18021
18022    # Let's still pretend it is `configure' which instantiates (i.e., don't
18023    # use $as_me), people would be surprised to read:
18024    #    /* config.h.  Generated by config.status.  */
18025    configure_input='Generated from '`
18026	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18027	`' by configure.'
18028    if test x"$ac_file" != x-; then
18029      configure_input="$ac_file.  $configure_input"
18030      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18031$as_echo "$as_me: creating $ac_file" >&6;}
18032    fi
18033    # Neutralize special characters interpreted by sed in replacement strings.
18034    case $configure_input in #(
18035    *\&* | *\|* | *\\* )
18036       ac_sed_conf_input=`$as_echo "$configure_input" |
18037       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18038    *) ac_sed_conf_input=$configure_input;;
18039    esac
18040
18041    case $ac_tag in
18042    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18043      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18044    esac
18045    ;;
18046  esac
18047
18048  ac_dir=`$as_dirname -- "$ac_file" ||
18049$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18050	 X"$ac_file" : 'X\(//\)[^/]' \| \
18051	 X"$ac_file" : 'X\(//\)$' \| \
18052	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18053$as_echo X"$ac_file" |
18054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18055	    s//\1/
18056	    q
18057	  }
18058	  /^X\(\/\/\)[^/].*/{
18059	    s//\1/
18060	    q
18061	  }
18062	  /^X\(\/\/\)$/{
18063	    s//\1/
18064	    q
18065	  }
18066	  /^X\(\/\).*/{
18067	    s//\1/
18068	    q
18069	  }
18070	  s/.*/./; q'`
18071  as_dir="$ac_dir"; as_fn_mkdir_p
18072  ac_builddir=.
18073
18074case "$ac_dir" in
18075.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18076*)
18077  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18078  # A ".." for each directory in $ac_dir_suffix.
18079  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18080  case $ac_top_builddir_sub in
18081  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18082  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18083  esac ;;
18084esac
18085ac_abs_top_builddir=$ac_pwd
18086ac_abs_builddir=$ac_pwd$ac_dir_suffix
18087# for backward compatibility:
18088ac_top_builddir=$ac_top_build_prefix
18089
18090case $srcdir in
18091  .)  # We are building in place.
18092    ac_srcdir=.
18093    ac_top_srcdir=$ac_top_builddir_sub
18094    ac_abs_top_srcdir=$ac_pwd ;;
18095  [\\/]* | ?:[\\/]* )  # Absolute name.
18096    ac_srcdir=$srcdir$ac_dir_suffix;
18097    ac_top_srcdir=$srcdir
18098    ac_abs_top_srcdir=$srcdir ;;
18099  *) # Relative name.
18100    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18101    ac_top_srcdir=$ac_top_build_prefix$srcdir
18102    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18103esac
18104ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18105
18106
18107  case $ac_mode in
18108  :F)
18109  #
18110  # CONFIG_FILE
18111  #
18112
18113  case $INSTALL in
18114  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18115  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18116  esac
18117  ac_MKDIR_P=$MKDIR_P
18118  case $MKDIR_P in
18119  [\\/$]* | ?:[\\/]* ) ;;
18120  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18121  esac
18122_ACEOF
18123
18124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18125# If the template does not know about datarootdir, expand it.
18126# FIXME: This hack should be removed a few years after 2.60.
18127ac_datarootdir_hack=; ac_datarootdir_seen=
18128ac_sed_dataroot='
18129/datarootdir/ {
18130  p
18131  q
18132}
18133/@datadir@/p
18134/@docdir@/p
18135/@infodir@/p
18136/@localedir@/p
18137/@mandir@/p'
18138case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18139*datarootdir*) ac_datarootdir_seen=yes;;
18140*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18141  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18142$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18143_ACEOF
18144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18145  ac_datarootdir_hack='
18146  s&@datadir@&$datadir&g
18147  s&@docdir@&$docdir&g
18148  s&@infodir@&$infodir&g
18149  s&@localedir@&$localedir&g
18150  s&@mandir@&$mandir&g
18151  s&\\\${datarootdir}&$datarootdir&g' ;;
18152esac
18153_ACEOF
18154
18155# Neutralize VPATH when `$srcdir' = `.'.
18156# Shell code in configure.ac might set extrasub.
18157# FIXME: do we really want to maintain this feature?
18158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18159ac_sed_extra="$ac_vpsub
18160$extrasub
18161_ACEOF
18162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18163:t
18164/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18165s|@configure_input@|$ac_sed_conf_input|;t t
18166s&@top_builddir@&$ac_top_builddir_sub&;t t
18167s&@top_build_prefix@&$ac_top_build_prefix&;t t
18168s&@srcdir@&$ac_srcdir&;t t
18169s&@abs_srcdir@&$ac_abs_srcdir&;t t
18170s&@top_srcdir@&$ac_top_srcdir&;t t
18171s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18172s&@builddir@&$ac_builddir&;t t
18173s&@abs_builddir@&$ac_abs_builddir&;t t
18174s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18175s&@INSTALL@&$ac_INSTALL&;t t
18176s&@MKDIR_P@&$ac_MKDIR_P&;t t
18177$ac_datarootdir_hack
18178"
18179eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18180  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18181
18182test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18183  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18184  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18185      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18186  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18187which seems to be undefined.  Please make sure it is defined" >&5
18188$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18189which seems to be undefined.  Please make sure it is defined" >&2;}
18190
18191  rm -f "$ac_tmp/stdin"
18192  case $ac_file in
18193  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18194  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18195  esac \
18196  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18197 ;;
18198  :H)
18199  #
18200  # CONFIG_HEADER
18201  #
18202  if test x"$ac_file" != x-; then
18203    {
18204      $as_echo "/* $configure_input  */" \
18205      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18206    } >"$ac_tmp/config.h" \
18207      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18208    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18209      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18210$as_echo "$as_me: $ac_file is unchanged" >&6;}
18211    else
18212      rm -f "$ac_file"
18213      mv "$ac_tmp/config.h" "$ac_file" \
18214	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18215    fi
18216  else
18217    $as_echo "/* $configure_input  */" \
18218      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18219      || as_fn_error $? "could not create -" "$LINENO" 5
18220  fi
18221# Compute "$ac_file"'s index in $config_headers.
18222_am_arg="$ac_file"
18223_am_stamp_count=1
18224for _am_header in $config_headers :; do
18225  case $_am_header in
18226    $_am_arg | $_am_arg:* )
18227      break ;;
18228    * )
18229      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18230  esac
18231done
18232echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18233$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18234	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18235	 X"$_am_arg" : 'X\(//\)$' \| \
18236	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18237$as_echo X"$_am_arg" |
18238    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18239	    s//\1/
18240	    q
18241	  }
18242	  /^X\(\/\/\)[^/].*/{
18243	    s//\1/
18244	    q
18245	  }
18246	  /^X\(\/\/\)$/{
18247	    s//\1/
18248	    q
18249	  }
18250	  /^X\(\/\).*/{
18251	    s//\1/
18252	    q
18253	  }
18254	  s/.*/./; q'`/stamp-h$_am_stamp_count
18255 ;;
18256
18257  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18258$as_echo "$as_me: executing $ac_file commands" >&6;}
18259 ;;
18260  esac
18261
18262
18263  case $ac_file$ac_mode in
18264    "scripts/gmock-config":F) chmod +x scripts/gmock-config ;;
18265    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18266  # Older Autoconf quotes --file arguments for eval, but not when files
18267  # are listed without --file.  Let's play safe and only enable the eval
18268  # if we detect the quoting.
18269  # TODO: see whether this extra hack can be removed once we start
18270  # requiring Autoconf 2.70 or later.
18271  case $CONFIG_FILES in #(
18272  *\'*) :
18273    eval set x "$CONFIG_FILES" ;; #(
18274  *) :
18275    set x $CONFIG_FILES ;; #(
18276  *) :
18277     ;;
18278esac
18279  shift
18280  # Used to flag and report bootstrapping failures.
18281  am_rc=0
18282  for am_mf
18283  do
18284    # Strip MF so we end up with the name of the file.
18285    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18286    # Check whether this is an Automake generated Makefile which includes
18287    # dependency-tracking related rules and includes.
18288    # Grep'ing the whole file directly is not great: AIX grep has a line
18289    # limit of 2048, but all sed's we know have understand at least 4000.
18290    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18291      || continue
18292    am_dirpart=`$as_dirname -- "$am_mf" ||
18293$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18294	 X"$am_mf" : 'X\(//\)[^/]' \| \
18295	 X"$am_mf" : 'X\(//\)$' \| \
18296	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18297$as_echo X"$am_mf" |
18298    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18299	    s//\1/
18300	    q
18301	  }
18302	  /^X\(\/\/\)[^/].*/{
18303	    s//\1/
18304	    q
18305	  }
18306	  /^X\(\/\/\)$/{
18307	    s//\1/
18308	    q
18309	  }
18310	  /^X\(\/\).*/{
18311	    s//\1/
18312	    q
18313	  }
18314	  s/.*/./; q'`
18315    am_filepart=`$as_basename -- "$am_mf" ||
18316$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18317	 X"$am_mf" : 'X\(//\)$' \| \
18318	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18319$as_echo X/"$am_mf" |
18320    sed '/^.*\/\([^/][^/]*\)\/*$/{
18321	    s//\1/
18322	    q
18323	  }
18324	  /^X\/\(\/\/\)$/{
18325	    s//\1/
18326	    q
18327	  }
18328	  /^X\/\(\/\).*/{
18329	    s//\1/
18330	    q
18331	  }
18332	  s/.*/./; q'`
18333    { echo "$as_me:$LINENO: cd "$am_dirpart" \
18334      && sed -e '/# am--include-marker/d' "$am_filepart" \
18335        | $MAKE -f - am--depfiles" >&5
18336   (cd "$am_dirpart" \
18337      && sed -e '/# am--include-marker/d' "$am_filepart" \
18338        | $MAKE -f - am--depfiles) >&5 2>&5
18339   ac_status=$?
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); } || am_rc=$?
18342  done
18343  if test $am_rc -ne 0; then
18344    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18346as_fn_error $? "Something went wrong bootstrapping makefile fragments
18347    for automatic dependency tracking.  If GNU make was not used, consider
18348    re-running the configure script with MAKE=\"gmake\" (or whatever is
18349    necessary).  You can also try re-running configure with the
18350    '--disable-dependency-tracking' option to at least be able to build
18351    the package (albeit without support for automatic dependency tracking).
18352See \`config.log' for more details" "$LINENO" 5; }
18353  fi
18354  { am_dirpart=; unset am_dirpart;}
18355  { am_filepart=; unset am_filepart;}
18356  { am_mf=; unset am_mf;}
18357  { am_rc=; unset am_rc;}
18358  rm -f conftest-deps.mk
18359}
18360 ;;
18361    "libtool":C)
18362
18363    # See if we are running on zsh, and set the options that allow our
18364    # commands through without removal of \ escapes.
18365    if test -n "${ZSH_VERSION+set}"; then
18366      setopt NO_GLOB_SUBST
18367    fi
18368
18369    cfgfile=${ofile}T
18370    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18371    $RM "$cfgfile"
18372
18373    cat <<_LT_EOF >> "$cfgfile"
18374#! $SHELL
18375# Generated automatically by $as_me ($PACKAGE) $VERSION
18376# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18377
18378# Provide generalized library-building support services.
18379# Written by Gordon Matzigkeit, 1996
18380
18381# Copyright (C) 2014 Free Software Foundation, Inc.
18382# This is free software; see the source for copying conditions.  There is NO
18383# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18384
18385# GNU Libtool is free software; you can redistribute it and/or modify
18386# it under the terms of the GNU General Public License as published by
18387# the Free Software Foundation; either version 2 of of the License, or
18388# (at your option) any later version.
18389#
18390# As a special exception to the GNU General Public License, if you
18391# distribute this file as part of a program or library that is built
18392# using GNU Libtool, you may include this file under the  same
18393# distribution terms that you use for the rest of that program.
18394#
18395# GNU Libtool is distributed in the hope that it will be useful, but
18396# WITHOUT ANY WARRANTY; without even the implied warranty of
18397# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18398# GNU General Public License for more details.
18399#
18400# You should have received a copy of the GNU General Public License
18401# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18402
18403
18404# The names of the tagged configurations supported by this script.
18405available_tags='CXX '
18406
18407# Configured defaults for sys_lib_dlsearch_path munging.
18408: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18409
18410# ### BEGIN LIBTOOL CONFIG
18411
18412# Which release of libtool.m4 was used?
18413macro_version=$macro_version
18414macro_revision=$macro_revision
18415
18416# Whether or not to build shared libraries.
18417build_libtool_libs=$enable_shared
18418
18419# Whether or not to build static libraries.
18420build_old_libs=$enable_static
18421
18422# What type of objects to build.
18423pic_mode=$pic_mode
18424
18425# Whether or not to optimize for fast installation.
18426fast_install=$enable_fast_install
18427
18428# Shared archive member basename,for filename based shared library versioning on AIX.
18429shared_archive_member_spec=$shared_archive_member_spec
18430
18431# Shell to use when invoking shell scripts.
18432SHELL=$lt_SHELL
18433
18434# An echo program that protects backslashes.
18435ECHO=$lt_ECHO
18436
18437# The PATH separator for the build system.
18438PATH_SEPARATOR=$lt_PATH_SEPARATOR
18439
18440# The host system.
18441host_alias=$host_alias
18442host=$host
18443host_os=$host_os
18444
18445# The build system.
18446build_alias=$build_alias
18447build=$build
18448build_os=$build_os
18449
18450# A sed program that does not truncate output.
18451SED=$lt_SED
18452
18453# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18454Xsed="\$SED -e 1s/^X//"
18455
18456# A grep program that handles long lines.
18457GREP=$lt_GREP
18458
18459# An ERE matcher.
18460EGREP=$lt_EGREP
18461
18462# A literal string matcher.
18463FGREP=$lt_FGREP
18464
18465# A BSD- or MS-compatible name lister.
18466NM=$lt_NM
18467
18468# Whether we need soft or hard links.
18469LN_S=$lt_LN_S
18470
18471# What is the maximum length of a command?
18472max_cmd_len=$max_cmd_len
18473
18474# Object file suffix (normally "o").
18475objext=$ac_objext
18476
18477# Executable file suffix (normally "").
18478exeext=$exeext
18479
18480# whether the shell understands "unset".
18481lt_unset=$lt_unset
18482
18483# turn spaces into newlines.
18484SP2NL=$lt_lt_SP2NL
18485
18486# turn newlines into spaces.
18487NL2SP=$lt_lt_NL2SP
18488
18489# convert \$build file names to \$host format.
18490to_host_file_cmd=$lt_cv_to_host_file_cmd
18491
18492# convert \$build files to toolchain format.
18493to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18494
18495# An object symbol dumper.
18496OBJDUMP=$lt_OBJDUMP
18497
18498# Method to check whether dependent libraries are shared objects.
18499deplibs_check_method=$lt_deplibs_check_method
18500
18501# Command to use when deplibs_check_method = "file_magic".
18502file_magic_cmd=$lt_file_magic_cmd
18503
18504# How to find potential files when deplibs_check_method = "file_magic".
18505file_magic_glob=$lt_file_magic_glob
18506
18507# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18508want_nocaseglob=$lt_want_nocaseglob
18509
18510# DLL creation program.
18511DLLTOOL=$lt_DLLTOOL
18512
18513# Command to associate shared and link libraries.
18514sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18515
18516# The archiver.
18517AR=$lt_AR
18518
18519# Flags to create an archive.
18520AR_FLAGS=$lt_AR_FLAGS
18521
18522# How to feed a file listing to the archiver.
18523archiver_list_spec=$lt_archiver_list_spec
18524
18525# A symbol stripping program.
18526STRIP=$lt_STRIP
18527
18528# Commands used to install an old-style archive.
18529RANLIB=$lt_RANLIB
18530old_postinstall_cmds=$lt_old_postinstall_cmds
18531old_postuninstall_cmds=$lt_old_postuninstall_cmds
18532
18533# Whether to use a lock for old archive extraction.
18534lock_old_archive_extraction=$lock_old_archive_extraction
18535
18536# A C compiler.
18537LTCC=$lt_CC
18538
18539# LTCC compiler flags.
18540LTCFLAGS=$lt_CFLAGS
18541
18542# Take the output of nm and produce a listing of raw symbols and C names.
18543global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18544
18545# Transform the output of nm in a proper C declaration.
18546global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18547
18548# Transform the output of nm into a list of symbols to manually relocate.
18549global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18550
18551# Transform the output of nm in a C name address pair.
18552global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18553
18554# Transform the output of nm in a C name address pair when lib prefix is needed.
18555global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18556
18557# The name lister interface.
18558nm_interface=$lt_lt_cv_nm_interface
18559
18560# Specify filename containing input files for \$NM.
18561nm_file_list_spec=$lt_nm_file_list_spec
18562
18563# The root where to search for dependent libraries,and where our libraries should be installed.
18564lt_sysroot=$lt_sysroot
18565
18566# Command to truncate a binary pipe.
18567lt_truncate_bin=$lt_lt_cv_truncate_bin
18568
18569# The name of the directory that contains temporary libtool files.
18570objdir=$objdir
18571
18572# Used to examine libraries when file_magic_cmd begins with "file".
18573MAGIC_CMD=$MAGIC_CMD
18574
18575# Must we lock files when doing compilation?
18576need_locks=$lt_need_locks
18577
18578# Manifest tool.
18579MANIFEST_TOOL=$lt_MANIFEST_TOOL
18580
18581# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18582DSYMUTIL=$lt_DSYMUTIL
18583
18584# Tool to change global to local symbols on Mac OS X.
18585NMEDIT=$lt_NMEDIT
18586
18587# Tool to manipulate fat objects and archives on Mac OS X.
18588LIPO=$lt_LIPO
18589
18590# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18591OTOOL=$lt_OTOOL
18592
18593# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18594OTOOL64=$lt_OTOOL64
18595
18596# Old archive suffix (normally "a").
18597libext=$libext
18598
18599# Shared library suffix (normally ".so").
18600shrext_cmds=$lt_shrext_cmds
18601
18602# The commands to extract the exported symbol list from a shared archive.
18603extract_expsyms_cmds=$lt_extract_expsyms_cmds
18604
18605# Variables whose values should be saved in libtool wrapper scripts and
18606# restored at link time.
18607variables_saved_for_relink=$lt_variables_saved_for_relink
18608
18609# Do we need the "lib" prefix for modules?
18610need_lib_prefix=$need_lib_prefix
18611
18612# Do we need a version for libraries?
18613need_version=$need_version
18614
18615# Library versioning type.
18616version_type=$version_type
18617
18618# Shared library runtime path variable.
18619runpath_var=$runpath_var
18620
18621# Shared library path variable.
18622shlibpath_var=$shlibpath_var
18623
18624# Is shlibpath searched before the hard-coded library search path?
18625shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18626
18627# Format of library name prefix.
18628libname_spec=$lt_libname_spec
18629
18630# List of archive names.  First name is the real one, the rest are links.
18631# The last name is the one that the linker finds with -lNAME
18632library_names_spec=$lt_library_names_spec
18633
18634# The coded name of the library, if different from the real name.
18635soname_spec=$lt_soname_spec
18636
18637# Permission mode override for installation of shared libraries.
18638install_override_mode=$lt_install_override_mode
18639
18640# Command to use after installation of a shared archive.
18641postinstall_cmds=$lt_postinstall_cmds
18642
18643# Command to use after uninstallation of a shared archive.
18644postuninstall_cmds=$lt_postuninstall_cmds
18645
18646# Commands used to finish a libtool library installation in a directory.
18647finish_cmds=$lt_finish_cmds
18648
18649# As "finish_cmds", except a single script fragment to be evaled but
18650# not shown.
18651finish_eval=$lt_finish_eval
18652
18653# Whether we should hardcode library paths into libraries.
18654hardcode_into_libs=$hardcode_into_libs
18655
18656# Compile-time system search path for libraries.
18657sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18658
18659# Detected run-time system search path for libraries.
18660sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18661
18662# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18663configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18664
18665# Whether dlopen is supported.
18666dlopen_support=$enable_dlopen
18667
18668# Whether dlopen of programs is supported.
18669dlopen_self=$enable_dlopen_self
18670
18671# Whether dlopen of statically linked programs is supported.
18672dlopen_self_static=$enable_dlopen_self_static
18673
18674# Commands to strip libraries.
18675old_striplib=$lt_old_striplib
18676striplib=$lt_striplib
18677
18678
18679# The linker used to build libraries.
18680LD=$lt_LD
18681
18682# How to create reloadable object files.
18683reload_flag=$lt_reload_flag
18684reload_cmds=$lt_reload_cmds
18685
18686# Commands used to build an old-style archive.
18687old_archive_cmds=$lt_old_archive_cmds
18688
18689# A language specific compiler.
18690CC=$lt_compiler
18691
18692# Is the compiler the GNU compiler?
18693with_gcc=$GCC
18694
18695# Compiler flag to turn off builtin functions.
18696no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18697
18698# Additional compiler flags for building library objects.
18699pic_flag=$lt_lt_prog_compiler_pic
18700
18701# How to pass a linker flag through the compiler.
18702wl=$lt_lt_prog_compiler_wl
18703
18704# Compiler flag to prevent dynamic linking.
18705link_static_flag=$lt_lt_prog_compiler_static
18706
18707# Does compiler simultaneously support -c and -o options?
18708compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18709
18710# Whether or not to add -lc for building shared libraries.
18711build_libtool_need_lc=$archive_cmds_need_lc
18712
18713# Whether or not to disallow shared libs when runtime libs are static.
18714allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18715
18716# Compiler flag to allow reflexive dlopens.
18717export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18718
18719# Compiler flag to generate shared objects directly from archives.
18720whole_archive_flag_spec=$lt_whole_archive_flag_spec
18721
18722# Whether the compiler copes with passing no objects directly.
18723compiler_needs_object=$lt_compiler_needs_object
18724
18725# Create an old-style archive from a shared archive.
18726old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18727
18728# Create a temporary old-style archive to link instead of a shared archive.
18729old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18730
18731# Commands used to build a shared archive.
18732archive_cmds=$lt_archive_cmds
18733archive_expsym_cmds=$lt_archive_expsym_cmds
18734
18735# Commands used to build a loadable module if different from building
18736# a shared archive.
18737module_cmds=$lt_module_cmds
18738module_expsym_cmds=$lt_module_expsym_cmds
18739
18740# Whether we are building with GNU ld or not.
18741with_gnu_ld=$lt_with_gnu_ld
18742
18743# Flag that allows shared libraries with undefined symbols to be built.
18744allow_undefined_flag=$lt_allow_undefined_flag
18745
18746# Flag that enforces no undefined symbols.
18747no_undefined_flag=$lt_no_undefined_flag
18748
18749# Flag to hardcode \$libdir into a binary during linking.
18750# This must work even if \$libdir does not exist
18751hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18752
18753# Whether we need a single "-rpath" flag with a separated argument.
18754hardcode_libdir_separator=$lt_hardcode_libdir_separator
18755
18756# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18757# DIR into the resulting binary.
18758hardcode_direct=$hardcode_direct
18759
18760# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18761# DIR into the resulting binary and the resulting library dependency is
18762# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18763# library is relocated.
18764hardcode_direct_absolute=$hardcode_direct_absolute
18765
18766# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18767# into the resulting binary.
18768hardcode_minus_L=$hardcode_minus_L
18769
18770# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18771# into the resulting binary.
18772hardcode_shlibpath_var=$hardcode_shlibpath_var
18773
18774# Set to "yes" if building a shared library automatically hardcodes DIR
18775# into the library and all subsequent libraries and executables linked
18776# against it.
18777hardcode_automatic=$hardcode_automatic
18778
18779# Set to yes if linker adds runtime paths of dependent libraries
18780# to runtime path list.
18781inherit_rpath=$inherit_rpath
18782
18783# Whether libtool must link a program against all its dependency libraries.
18784link_all_deplibs=$link_all_deplibs
18785
18786# Set to "yes" if exported symbols are required.
18787always_export_symbols=$always_export_symbols
18788
18789# The commands to list exported symbols.
18790export_symbols_cmds=$lt_export_symbols_cmds
18791
18792# Symbols that should not be listed in the preloaded symbols.
18793exclude_expsyms=$lt_exclude_expsyms
18794
18795# Symbols that must always be exported.
18796include_expsyms=$lt_include_expsyms
18797
18798# Commands necessary for linking programs (against libraries) with templates.
18799prelink_cmds=$lt_prelink_cmds
18800
18801# Commands necessary for finishing linking programs.
18802postlink_cmds=$lt_postlink_cmds
18803
18804# Specify filename containing input files.
18805file_list_spec=$lt_file_list_spec
18806
18807# How to hardcode a shared library path into an executable.
18808hardcode_action=$hardcode_action
18809
18810# The directories searched by this compiler when creating a shared library.
18811compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18812
18813# Dependencies to place before and after the objects being linked to
18814# create a shared library.
18815predep_objects=$lt_predep_objects
18816postdep_objects=$lt_postdep_objects
18817predeps=$lt_predeps
18818postdeps=$lt_postdeps
18819
18820# The library search path used internally by the compiler when linking
18821# a shared library.
18822compiler_lib_search_path=$lt_compiler_lib_search_path
18823
18824# ### END LIBTOOL CONFIG
18825
18826_LT_EOF
18827
18828    cat <<'_LT_EOF' >> "$cfgfile"
18829
18830# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18831
18832# func_munge_path_list VARIABLE PATH
18833# -----------------------------------
18834# VARIABLE is name of variable containing _space_ separated list of
18835# directories to be munged by the contents of PATH, which is string
18836# having a format:
18837# "DIR[:DIR]:"
18838#       string "DIR[ DIR]" will be prepended to VARIABLE
18839# ":DIR[:DIR]"
18840#       string "DIR[ DIR]" will be appended to VARIABLE
18841# "DIRP[:DIRP]::[DIRA:]DIRA"
18842#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18843#       "DIRA[ DIRA]" will be appended to VARIABLE
18844# "DIR[:DIR]"
18845#       VARIABLE will be replaced by "DIR[ DIR]"
18846func_munge_path_list ()
18847{
18848    case x$2 in
18849    x)
18850        ;;
18851    *:)
18852        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18853        ;;
18854    x:*)
18855        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18856        ;;
18857    *::*)
18858        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18859        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18860        ;;
18861    *)
18862        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18863        ;;
18864    esac
18865}
18866
18867
18868# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18869func_cc_basename ()
18870{
18871    for cc_temp in $*""; do
18872      case $cc_temp in
18873        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18874        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18875        \-*) ;;
18876        *) break;;
18877      esac
18878    done
18879    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18880}
18881
18882
18883# ### END FUNCTIONS SHARED WITH CONFIGURE
18884
18885_LT_EOF
18886
18887  case $host_os in
18888  aix3*)
18889    cat <<\_LT_EOF >> "$cfgfile"
18890# AIX sometimes has problems with the GCC collect2 program.  For some
18891# reason, if we set the COLLECT_NAMES environment variable, the problems
18892# vanish in a puff of smoke.
18893if test set != "${COLLECT_NAMES+set}"; then
18894  COLLECT_NAMES=
18895  export COLLECT_NAMES
18896fi
18897_LT_EOF
18898    ;;
18899  esac
18900
18901
18902ltmain=$ac_aux_dir/ltmain.sh
18903
18904
18905  # We use sed instead of cat because bash on DJGPP gets confused if
18906  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18907  # text mode, it properly converts lines to CR/LF.  This bash problem
18908  # is reportedly fixed, but why not run on old versions too?
18909  sed '$q' "$ltmain" >> "$cfgfile" \
18910     || (rm -f "$cfgfile"; exit 1)
18911
18912   mv -f "$cfgfile" "$ofile" ||
18913    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18914  chmod +x "$ofile"
18915
18916
18917    cat <<_LT_EOF >> "$ofile"
18918
18919# ### BEGIN LIBTOOL TAG CONFIG: CXX
18920
18921# The linker used to build libraries.
18922LD=$lt_LD_CXX
18923
18924# How to create reloadable object files.
18925reload_flag=$lt_reload_flag_CXX
18926reload_cmds=$lt_reload_cmds_CXX
18927
18928# Commands used to build an old-style archive.
18929old_archive_cmds=$lt_old_archive_cmds_CXX
18930
18931# A language specific compiler.
18932CC=$lt_compiler_CXX
18933
18934# Is the compiler the GNU compiler?
18935with_gcc=$GCC_CXX
18936
18937# Compiler flag to turn off builtin functions.
18938no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18939
18940# Additional compiler flags for building library objects.
18941pic_flag=$lt_lt_prog_compiler_pic_CXX
18942
18943# How to pass a linker flag through the compiler.
18944wl=$lt_lt_prog_compiler_wl_CXX
18945
18946# Compiler flag to prevent dynamic linking.
18947link_static_flag=$lt_lt_prog_compiler_static_CXX
18948
18949# Does compiler simultaneously support -c and -o options?
18950compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18951
18952# Whether or not to add -lc for building shared libraries.
18953build_libtool_need_lc=$archive_cmds_need_lc_CXX
18954
18955# Whether or not to disallow shared libs when runtime libs are static.
18956allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18957
18958# Compiler flag to allow reflexive dlopens.
18959export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18960
18961# Compiler flag to generate shared objects directly from archives.
18962whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18963
18964# Whether the compiler copes with passing no objects directly.
18965compiler_needs_object=$lt_compiler_needs_object_CXX
18966
18967# Create an old-style archive from a shared archive.
18968old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18969
18970# Create a temporary old-style archive to link instead of a shared archive.
18971old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18972
18973# Commands used to build a shared archive.
18974archive_cmds=$lt_archive_cmds_CXX
18975archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18976
18977# Commands used to build a loadable module if different from building
18978# a shared archive.
18979module_cmds=$lt_module_cmds_CXX
18980module_expsym_cmds=$lt_module_expsym_cmds_CXX
18981
18982# Whether we are building with GNU ld or not.
18983with_gnu_ld=$lt_with_gnu_ld_CXX
18984
18985# Flag that allows shared libraries with undefined symbols to be built.
18986allow_undefined_flag=$lt_allow_undefined_flag_CXX
18987
18988# Flag that enforces no undefined symbols.
18989no_undefined_flag=$lt_no_undefined_flag_CXX
18990
18991# Flag to hardcode \$libdir into a binary during linking.
18992# This must work even if \$libdir does not exist
18993hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18994
18995# Whether we need a single "-rpath" flag with a separated argument.
18996hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18997
18998# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18999# DIR into the resulting binary.
19000hardcode_direct=$hardcode_direct_CXX
19001
19002# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19003# DIR into the resulting binary and the resulting library dependency is
19004# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19005# library is relocated.
19006hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19007
19008# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19009# into the resulting binary.
19010hardcode_minus_L=$hardcode_minus_L_CXX
19011
19012# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19013# into the resulting binary.
19014hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19015
19016# Set to "yes" if building a shared library automatically hardcodes DIR
19017# into the library and all subsequent libraries and executables linked
19018# against it.
19019hardcode_automatic=$hardcode_automatic_CXX
19020
19021# Set to yes if linker adds runtime paths of dependent libraries
19022# to runtime path list.
19023inherit_rpath=$inherit_rpath_CXX
19024
19025# Whether libtool must link a program against all its dependency libraries.
19026link_all_deplibs=$link_all_deplibs_CXX
19027
19028# Set to "yes" if exported symbols are required.
19029always_export_symbols=$always_export_symbols_CXX
19030
19031# The commands to list exported symbols.
19032export_symbols_cmds=$lt_export_symbols_cmds_CXX
19033
19034# Symbols that should not be listed in the preloaded symbols.
19035exclude_expsyms=$lt_exclude_expsyms_CXX
19036
19037# Symbols that must always be exported.
19038include_expsyms=$lt_include_expsyms_CXX
19039
19040# Commands necessary for linking programs (against libraries) with templates.
19041prelink_cmds=$lt_prelink_cmds_CXX
19042
19043# Commands necessary for finishing linking programs.
19044postlink_cmds=$lt_postlink_cmds_CXX
19045
19046# Specify filename containing input files.
19047file_list_spec=$lt_file_list_spec_CXX
19048
19049# How to hardcode a shared library path into an executable.
19050hardcode_action=$hardcode_action_CXX
19051
19052# The directories searched by this compiler when creating a shared library.
19053compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19054
19055# Dependencies to place before and after the objects being linked to
19056# create a shared library.
19057predep_objects=$lt_predep_objects_CXX
19058postdep_objects=$lt_postdep_objects_CXX
19059predeps=$lt_predeps_CXX
19060postdeps=$lt_postdeps_CXX
19061
19062# The library search path used internally by the compiler when linking
19063# a shared library.
19064compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19065
19066# ### END LIBTOOL TAG CONFIG: CXX
19067_LT_EOF
19068
19069 ;;
19070
19071  esac
19072done # for ac_tag
19073
19074
19075as_fn_exit 0
19076_ACEOF
19077ac_clean_files=$ac_clean_files_save
19078
19079test $ac_write_fail = 0 ||
19080  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19081
19082
19083# configure is writing to config.log, and then calls config.status.
19084# config.status does its own redirection, appending to config.log.
19085# Unfortunately, on DOS this fails, as config.log is still kept open
19086# by configure, so config.status won't be able to write to it; its
19087# output is simply discarded.  So we exec the FD to /dev/null,
19088# effectively closing config.log, so it can be properly (re)opened and
19089# appended to by config.status.  When coming back to configure, we
19090# need to make the FD available again.
19091if test "$no_create" != yes; then
19092  ac_cs_success=:
19093  ac_config_status_args=
19094  test "$silent" = yes &&
19095    ac_config_status_args="$ac_config_status_args --quiet"
19096  exec 5>/dev/null
19097  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19098  exec 5>>config.log
19099  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19100  # would make configure fail if this is the last instruction.
19101  $ac_cs_success || as_fn_exit 1
19102fi
19103if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19104  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19105$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19106fi
19107
19108