1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for GNU TM Runtime Library 1.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    PATH=/empty FPATH=/empty; export PATH FPATH
178    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
181  if (eval "$as_required") 2>/dev/null; then :
182  as_have_required=yes
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193  IFS=$as_save_IFS
194  test -z "$as_dir" && as_dir=.
195  as_found=:
196  case $as_dir in #(
197	 /*)
198	   for as_base in sh bash ksh sh5; do
199	     # Try only shells that exist, to save several forks.
200	     as_shell=$as_dir/$as_base
201	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  CONFIG_SHELL=$as_shell as_have_required=yes
204		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  break 2
206fi
207fi
208	   done;;
209       esac
210  as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214  CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219      if test "x$CONFIG_SHELL" != x; then :
220  # We cannot yet assume a decent shell, so we have to provide a
221	# neutralization value for shells without unset; and this also
222	# works around shells that cannot unset nonexistent variables.
223	BASH_ENV=/dev/null
224	ENV=/dev/null
225	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226	export CONFIG_SHELL
227	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230    if test x$as_have_required = xno; then :
231  $as_echo "$0: This script requires a shell more modern than all"
232  $as_echo "$0: the shells that I found on your system."
233  if test x${ZSH_VERSION+set} = xset ; then
234    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236  else
237    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241  fi
242  exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260  { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269  return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277  set +e
278  as_fn_set_status $1
279  exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288  case $as_dir in #(
289  -*) as_dir=./$as_dir;;
290  esac
291  test -d "$as_dir" || eval $as_mkdir_p || {
292    as_dirs=
293    while :; do
294      case $as_dir in #(
295      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296      *) as_qdir=$as_dir;;
297      esac
298      as_dirs="'$as_qdir' $as_dirs"
299      as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301	 X"$as_dir" : 'X\(//\)[^/]' \| \
302	 X"$as_dir" : 'X\(//\)$' \| \
303	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)[^/].*/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\/\)$/{
314	    s//\1/
315	    q
316	  }
317	  /^X\(\/\).*/{
318	    s//\1/
319	    q
320	  }
321	  s/.*/./; q'`
322      test -d "$as_dir" && break
323    done
324    test -z "$as_dirs" || eval "mkdir $as_dirs"
325  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336  eval 'as_fn_append ()
337  {
338    eval $1+=\$2
339  }'
340else
341  as_fn_append ()
342  {
343    eval $1=\$$1\$2
344  }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353  eval 'as_fn_arith ()
354  {
355    as_val=$(( $* ))
356  }'
357else
358  as_fn_arith ()
359  {
360    as_val=`expr "$@" || test $? -eq 1`
361  }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372  as_status=$?; test $as_status -eq 0 && as_status=1
373  if test "$3"; then
374    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376  fi
377  $as_echo "$as_me: error: $1" >&2
378  as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383  as_expr=expr
384else
385  as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389  as_basename=basename
390else
391  as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395  as_dirname=dirname
396else
397  as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402	 X"$0" : 'X\(//\)$' \| \
403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405    sed '/^.*\/\([^/][^/]*\)\/*$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\/\)$/{
410	    s//\1/
411	    q
412	  }
413	  /^X\/\(\/\).*/{
414	    s//\1/
415	    q
416	  }
417	  s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450  # Don't try to exec as it changes $[0], causing all sort of problems
451  # (the dirname of $[0] is not the place where we might find the
452  # original and so on.  Autoconf is especially sensitive to this).
453  . "./$as_me.lineno"
454  # Exit status is that of the last command.
455  exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461  case `echo 'xy\c'` in
462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
463  xy)  ECHO_C='\c';;
464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465       ECHO_T='	';;
466  esac;;
467*)
468  ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473  rm -f conf$$.dir/conf$$.file
474else
475  rm -f conf$$.dir
476  mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479  if ln -s conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s='ln -s'
481    # ... but there are two gotchas:
482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484    # In both cases, we have to default to `cp -p'.
485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486      as_ln_s='cp -p'
487  elif ln conf$$.file conf$$ 2>/dev/null; then
488    as_ln_s=ln
489  else
490    as_ln_s='cp -p'
491  fi
492else
493  as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499  as_mkdir_p='mkdir -p "$as_dir"'
500else
501  test -d ./-p && rmdir ./-p
502  as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506  as_test_x='test -x'
507else
508  if ls -dL / >/dev/null 2>&1; then
509    as_ls_L_option=L
510  else
511    as_ls_L_option=
512  fi
513  as_test_x='
514    eval sh -c '\''
515      if test -d "$1"; then
516	test -d "$1/.";
517      else
518	case $1 in #(
519	-*)set "./$1";;
520	esac;
521	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522	???[sx]*):;;*)false;;esac;fi
523    '\'' sh
524  '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='GNU TM Runtime Library'
558PACKAGE_TARNAME='libitm'
559PACKAGE_VERSION='1.0'
560PACKAGE_STRING='GNU TM Runtime Library 1.0'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL='http://www.gnu.org/software/libitm/'
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
567#ifdef HAVE_SYS_TYPES_H
568# include <sys/types.h>
569#endif
570#ifdef HAVE_SYS_STAT_H
571# include <sys/stat.h>
572#endif
573#ifdef STDC_HEADERS
574# include <stdlib.h>
575# include <stddef.h>
576#else
577# ifdef HAVE_STDLIB_H
578#  include <stdlib.h>
579# endif
580#endif
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583#  include <memory.h>
584# endif
585# include <string.h>
586#endif
587#ifdef HAVE_STRINGS_H
588# include <strings.h>
589#endif
590#ifdef HAVE_INTTYPES_H
591# include <inttypes.h>
592#endif
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
597# include <unistd.h>
598#endif"
599
600ac_subst_vars='am__EXEEXT_FALSE
601am__EXEEXT_TRUE
602LTLIBOBJS
603LIBOBJS
604ARCH_FUTEX_FALSE
605ARCH_FUTEX_TRUE
606ARCH_X86_AVX_FALSE
607ARCH_X86_AVX_TRUE
608ARCH_X86_FALSE
609ARCH_X86_TRUE
610ARCH_ARM_FALSE
611ARCH_ARM_TRUE
612link_itm
613XLDFLAGS
614XCFLAGS
615config_path
616LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
617LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
618LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
619LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
620LIBITM_BUILD_VERSIONED_SHLIB_FALSE
621LIBITM_BUILD_VERSIONED_SHLIB_TRUE
622OPT_LDFLAGS
623SECTION_LDFLAGS
624HAVE_HWCAP_FALSE
625HAVE_HWCAP_TRUE
626HWCAP_LDFLAGS
627libtool_VERSION
628MAINT
629MAINTAINER_MODE_FALSE
630MAINTAINER_MODE_TRUE
631enable_static
632enable_shared
633CXXCPP
634CPP
635OTOOL64
636OTOOL
637LIPO
638NMEDIT
639DSYMUTIL
640OBJDUMP
641LN_S
642ac_ct_DUMPBIN
643DUMPBIN
644LD
645FGREP
646EGREP
647GREP
648SED
649LIBTOOL
650BUILD_INFO_FALSE
651BUILD_INFO_TRUE
652PERL
653RANLIB
654NM
655AR
656am__fastdepCCAS_FALSE
657am__fastdepCCAS_TRUE
658CCASDEPMODE
659CCASFLAGS
660CCAS
661am__fastdepCXX_FALSE
662am__fastdepCXX_TRUE
663CXXDEPMODE
664ac_ct_CXX
665CXXFLAGS
666CXX
667am__fastdepCC_FALSE
668am__fastdepCC_TRUE
669CCDEPMODE
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
673am__quote
674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683toolexeclibdir
684toolexecdir
685multi_basedir
686am__untar
687am__tar
688AMTAR
689am__leading_dot
690SET_MAKE
691AWK
692mkdir_p
693MKDIR_P
694INSTALL_STRIP_PROGRAM
695STRIP
696install_sh
697MAKEINFO
698AUTOHEADER
699AUTOMAKE
700AUTOCONF
701ACLOCAL
702VERSION
703PACKAGE
704CYGPATH_W
705am__isrc
706INSTALL_DATA
707INSTALL_SCRIPT
708INSTALL_PROGRAM
709target_os
710target_vendor
711target_cpu
712target
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
721GENINSRC_FALSE
722GENINSRC_TRUE
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_version_specific_runtime_libs
765enable_generated_files_in_srcdir
766enable_multilib
767enable_dependency_tracking
768enable_shared
769enable_static
770with_pic
771enable_fast_install
772with_gnu_ld
773enable_libtool_lock
774enable_maintainer_mode
775enable_linux_futex
776enable_tls
777enable_symvers
778'
779      ac_precious_vars='build_alias
780host_alias
781target_alias
782CPP
783CPPFLAGS
784CXXCPP'
785
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
790ac_unrecognized_opts=
791ac_unrecognized_sep=
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
814# (The list follows the same order as the GNU Coding Standards.)
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
823includedir='${prefix}/include'
824oldincludedir='/usr/include'
825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
834
835ac_prev=
836ac_dashdash=
837for ac_option
838do
839  # If the previous option needs an argument, assign it.
840  if test -n "$ac_prev"; then
841    eval $ac_prev=\$ac_option
842    ac_prev=
843    continue
844  fi
845
846  case $ac_option in
847  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848  *)	ac_optarg=yes ;;
849  esac
850
851  # Accept the important Cygnus configure options, so we can diagnose typos.
852
853  case $ac_dashdash$ac_option in
854  --)
855    ac_dashdash=yes ;;
856
857  -bindir | --bindir | --bindi | --bind | --bin | --bi)
858    ac_prev=bindir ;;
859  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860    bindir=$ac_optarg ;;
861
862  -build | --build | --buil | --bui | --bu)
863    ac_prev=build_alias ;;
864  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865    build_alias=$ac_optarg ;;
866
867  -cache-file | --cache-file | --cache-fil | --cache-fi \
868  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869    ac_prev=cache_file ;;
870  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872    cache_file=$ac_optarg ;;
873
874  --config-cache | -C)
875    cache_file=config.cache ;;
876
877  -datadir | --datadir | --datadi | --datad)
878    ac_prev=datadir ;;
879  -datadir=* | --datadir=* | --datadi=* | --datad=*)
880    datadir=$ac_optarg ;;
881
882  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883  | --dataroo | --dataro | --datar)
884    ac_prev=datarootdir ;;
885  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887    datarootdir=$ac_optarg ;;
888
889  -disable-* | --disable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=no ;;
904
905  -docdir | --docdir | --docdi | --doc | --do)
906    ac_prev=docdir ;;
907  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908    docdir=$ac_optarg ;;
909
910  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911    ac_prev=dvidir ;;
912  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913    dvidir=$ac_optarg ;;
914
915  -enable-* | --enable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=\$ac_optarg ;;
930
931  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933  | --exec | --exe | --ex)
934    ac_prev=exec_prefix ;;
935  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937  | --exec=* | --exe=* | --ex=*)
938    exec_prefix=$ac_optarg ;;
939
940  -gas | --gas | --ga | --g)
941    # Obsolete; use --with-gas.
942    with_gas=yes ;;
943
944  -help | --help | --hel | --he | -h)
945    ac_init_help=long ;;
946  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947    ac_init_help=recursive ;;
948  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949    ac_init_help=short ;;
950
951  -host | --host | --hos | --ho)
952    ac_prev=host_alias ;;
953  -host=* | --host=* | --hos=* | --ho=*)
954    host_alias=$ac_optarg ;;
955
956  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957    ac_prev=htmldir ;;
958  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959  | --ht=*)
960    htmldir=$ac_optarg ;;
961
962  -includedir | --includedir | --includedi | --included | --include \
963  | --includ | --inclu | --incl | --inc)
964    ac_prev=includedir ;;
965  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966  | --includ=* | --inclu=* | --incl=* | --inc=*)
967    includedir=$ac_optarg ;;
968
969  -infodir | --infodir | --infodi | --infod | --info | --inf)
970    ac_prev=infodir ;;
971  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972    infodir=$ac_optarg ;;
973
974  -libdir | --libdir | --libdi | --libd)
975    ac_prev=libdir ;;
976  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977    libdir=$ac_optarg ;;
978
979  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980  | --libexe | --libex | --libe)
981    ac_prev=libexecdir ;;
982  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983  | --libexe=* | --libex=* | --libe=*)
984    libexecdir=$ac_optarg ;;
985
986  -localedir | --localedir | --localedi | --localed | --locale)
987    ac_prev=localedir ;;
988  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989    localedir=$ac_optarg ;;
990
991  -localstatedir | --localstatedir | --localstatedi | --localstated \
992  | --localstate | --localstat | --localsta | --localst | --locals)
993    ac_prev=localstatedir ;;
994  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996    localstatedir=$ac_optarg ;;
997
998  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999    ac_prev=mandir ;;
1000  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001    mandir=$ac_optarg ;;
1002
1003  -nfp | --nfp | --nf)
1004    # Obsolete; use --without-fp.
1005    with_fp=no ;;
1006
1007  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008  | --no-cr | --no-c | -n)
1009    no_create=yes ;;
1010
1011  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013    no_recursion=yes ;;
1014
1015  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017  | --oldin | --oldi | --old | --ol | --o)
1018    ac_prev=oldincludedir ;;
1019  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022    oldincludedir=$ac_optarg ;;
1023
1024  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025    ac_prev=prefix ;;
1026  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027    prefix=$ac_optarg ;;
1028
1029  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030  | --program-pre | --program-pr | --program-p)
1031    ac_prev=program_prefix ;;
1032  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034    program_prefix=$ac_optarg ;;
1035
1036  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037  | --program-suf | --program-su | --program-s)
1038    ac_prev=program_suffix ;;
1039  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041    program_suffix=$ac_optarg ;;
1042
1043  -program-transform-name | --program-transform-name \
1044  | --program-transform-nam | --program-transform-na \
1045  | --program-transform-n | --program-transform- \
1046  | --program-transform | --program-transfor \
1047  | --program-transfo | --program-transf \
1048  | --program-trans | --program-tran \
1049  | --progr-tra | --program-tr | --program-t)
1050    ac_prev=program_transform_name ;;
1051  -program-transform-name=* | --program-transform-name=* \
1052  | --program-transform-nam=* | --program-transform-na=* \
1053  | --program-transform-n=* | --program-transform-=* \
1054  | --program-transform=* | --program-transfor=* \
1055  | --program-transfo=* | --program-transf=* \
1056  | --program-trans=* | --program-tran=* \
1057  | --progr-tra=* | --program-tr=* | --program-t=*)
1058    program_transform_name=$ac_optarg ;;
1059
1060  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061    ac_prev=pdfdir ;;
1062  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063    pdfdir=$ac_optarg ;;
1064
1065  -psdir | --psdir | --psdi | --psd | --ps)
1066    ac_prev=psdir ;;
1067  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068    psdir=$ac_optarg ;;
1069
1070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071  | -silent | --silent | --silen | --sile | --sil)
1072    silent=yes ;;
1073
1074  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075    ac_prev=sbindir ;;
1076  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077  | --sbi=* | --sb=*)
1078    sbindir=$ac_optarg ;;
1079
1080  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082  | --sharedst | --shareds | --shared | --share | --shar \
1083  | --sha | --sh)
1084    ac_prev=sharedstatedir ;;
1085  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088  | --sha=* | --sh=*)
1089    sharedstatedir=$ac_optarg ;;
1090
1091  -site | --site | --sit)
1092    ac_prev=site ;;
1093  -site=* | --site=* | --sit=*)
1094    site=$ac_optarg ;;
1095
1096  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097    ac_prev=srcdir ;;
1098  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099    srcdir=$ac_optarg ;;
1100
1101  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102  | --syscon | --sysco | --sysc | --sys | --sy)
1103    ac_prev=sysconfdir ;;
1104  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106    sysconfdir=$ac_optarg ;;
1107
1108  -target | --target | --targe | --targ | --tar | --ta | --t)
1109    ac_prev=target_alias ;;
1110  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111    target_alias=$ac_optarg ;;
1112
1113  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114    verbose=yes ;;
1115
1116  -version | --version | --versio | --versi | --vers | -V)
1117    ac_init_version=: ;;
1118
1119  -with-* | --with-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error "invalid package name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"with_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval with_$ac_useropt=\$ac_optarg ;;
1134
1135  -without-* | --without-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error "invalid package name: $ac_useropt"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=no ;;
1150
1151  --x)
1152    # Obsolete; use --with-x.
1153    with_x=yes ;;
1154
1155  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156  | --x-incl | --x-inc | --x-in | --x-i)
1157    ac_prev=x_includes ;;
1158  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160    x_includes=$ac_optarg ;;
1161
1162  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164    ac_prev=x_libraries ;;
1165  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167    x_libraries=$ac_optarg ;;
1168
1169  -*) as_fn_error "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information."
1171    ;;
1172
1173  *=*)
1174    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175    # Reject names that are not valid shell variable names.
1176    case $ac_envvar in #(
1177      '' | [0-9]* | *[!_$as_cr_alnum]* )
1178      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179    esac
1180    eval $ac_envvar=\$ac_optarg
1181    export $ac_envvar ;;
1182
1183  *)
1184    # FIXME: should be removed in autoconf 3.0.
1185    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189    ;;
1190
1191  esac
1192done
1193
1194if test -n "$ac_prev"; then
1195  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196  as_fn_error "missing argument to $ac_option"
1197fi
1198
1199if test -n "$ac_unrecognized_opts"; then
1200  case $enable_option_checking in
1201    no) ;;
1202    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204  esac
1205fi
1206
1207# Check all directory arguments for consistency.
1208for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209		datadir sysconfdir sharedstatedir localstatedir includedir \
1210		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211		libdir localedir mandir
1212do
1213  eval ac_val=\$$ac_var
1214  # Remove trailing slashes.
1215  case $ac_val in
1216    */ )
1217      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218      eval $ac_var=\$ac_val;;
1219  esac
1220  # Be sure to have absolute directory names.
1221  case $ac_val in
1222    [\\/$]* | ?:[\\/]* )  continue;;
1223    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224  esac
1225  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237  if test "x$build_alias" = x; then
1238    cross_compiling=maybe
1239    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240    If a cross compiler is detected then cross compile mode will be used." >&2
1241  elif test "x$build_alias" != "x$host_alias"; then
1242    cross_compiling=yes
1243  fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255  as_fn_error "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257  as_fn_error "pwd does not report name of working directory"
1258
1259
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262  ac_srcdir_defaulted=yes
1263  # Try the directory containing this script, then the parent directory.
1264  ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266	 X"$as_myself" : 'X\(//\)[^/]' \| \
1267	 X"$as_myself" : 'X\(//\)$' \| \
1268	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271	    s//\1/
1272	    q
1273	  }
1274	  /^X\(\/\/\)[^/].*/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\/\)$/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\).*/{
1283	    s//\1/
1284	    q
1285	  }
1286	  s/.*/./; q'`
1287  srcdir=$ac_confdir
1288  if test ! -r "$srcdir/$ac_unique_file"; then
1289    srcdir=..
1290  fi
1291else
1292  ac_srcdir_defaulted=no
1293fi
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301	pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304  srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314  eval ac_env_${ac_var}_value=\$${ac_var}
1315  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
1318
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323  # Omit some internal or obsolete options to make the list less imposing.
1324  # This message is too long to be a string in the A/UX 3.1 sh.
1325  cat <<_ACEOF
1326\`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336  -h, --help              display this help and exit
1337      --help=short        display options specific to this package
1338      --help=recursive    display the short help of all the included packages
1339  -V, --version           display version information and exit
1340  -q, --quiet, --silent   do not print \`checking...' messages
1341      --cache-file=FILE   cache test results in FILE [disabled]
1342  -C, --config-cache      alias for \`--cache-file=config.cache'
1343  -n, --no-create         do not create output files
1344      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346Installation directories:
1347  --prefix=PREFIX         install architecture-independent files in PREFIX
1348                          [$ac_default_prefix]
1349  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                          [PREFIX]
1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
1360  --bindir=DIR            user executables [EPREFIX/bin]
1361  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362  --libexecdir=DIR        program executables [EPREFIX/libexec]
1363  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366  --libdir=DIR            object code libraries [EPREFIX/lib]
1367  --includedir=DIR        C header files [PREFIX/include]
1368  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371  --infodir=DIR           info documentation [DATAROOTDIR/info]
1372  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373  --mandir=DIR            man documentation [DATAROOTDIR/man]
1374  --docdir=DIR            documentation root [DATAROOTDIR/doc/libitm]
1375  --htmldir=DIR           html documentation [DOCDIR]
1376  --dvidir=DIR            dvi documentation [DOCDIR]
1377  --pdfdir=DIR            pdf documentation [DOCDIR]
1378  --psdir=DIR             ps documentation [DOCDIR]
1379_ACEOF
1380
1381  cat <<\_ACEOF
1382
1383Program names:
1384  --program-prefix=PREFIX            prepend PREFIX to installed program names
1385  --program-suffix=SUFFIX            append SUFFIX to installed program names
1386  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1387
1388System types:
1389  --build=BUILD     configure for building on BUILD [guessed]
1390  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1391  --target=TARGET   configure for building compilers for TARGET [HOST]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396  case $ac_init_help in
1397     short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1398   esac
1399  cat <<\_ACEOF
1400
1401Optional Features:
1402  --disable-option-checking  ignore unrecognized --enable/--with options
1403  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405  --enable-version-specific-runtime-libs
1406                          Specify that runtime libraries should be installed
1407                          in a compiler-specific directory [default=no]
1408  --enable-generated-files-in-srcdir
1409                          put copies of generated files in source dir intended
1410                          for creating source tarballs for users without
1411                          texinfo bison or flex. [default=no]
1412  --enable-multilib       build many library versions (default)
1413  --disable-dependency-tracking  speeds up one-time build
1414  --enable-dependency-tracking   do not reject slow dependency extractors
1415  --enable-shared[=PKGS]  build shared libraries [default=yes]
1416  --enable-static[=PKGS]  build static libraries [default=yes]
1417  --enable-fast-install[=PKGS]
1418                          optimize for fast installation [default=yes]
1419  --disable-libtool-lock  avoid locking (might break parallel builds)
1420  --enable-maintainer-mode  enable make rules and dependencies not useful
1421			  (and sometimes confusing) to the casual installer
1422  --enable-linux-futex    use the Linux futex system call [default=default]
1423  --enable-tls            Use thread-local storage [default=yes]
1424  --enable-symvers=STYLE  enables symbol versioning of the shared library
1425                          [default=yes]
1426
1427Optional Packages:
1428  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430  --with-pic              try to use only PIC/non-PIC objects [default=use
1431                          both]
1432  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433
1434Some influential environment variables:
1435  CC          C compiler command
1436  CFLAGS      C compiler flags
1437  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1438              nonstandard directory <lib dir>
1439  LIBS        libraries to pass to the linker, e.g. -l<library>
1440  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441              you have headers in a nonstandard directory <include dir>
1442  CXX         C++ compiler command
1443  CXXFLAGS    C++ compiler flags
1444  CCAS        assembler compiler command (defaults to CC)
1445  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1446  CPP         C preprocessor
1447  CXXCPP      C++ preprocessor
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
1451
1452Report bugs to the package provider.
1453GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1454General help using GNU software: <http://www.gnu.org/gethelp/>.
1455_ACEOF
1456ac_status=$?
1457fi
1458
1459if test "$ac_init_help" = "recursive"; then
1460  # If there are subdirs, report their specific --help.
1461  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462    test -d "$ac_dir" ||
1463      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464      continue
1465    ac_builddir=.
1466
1467case "$ac_dir" in
1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469*)
1470  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471  # A ".." for each directory in $ac_dir_suffix.
1472  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473  case $ac_top_builddir_sub in
1474  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476  esac ;;
1477esac
1478ac_abs_top_builddir=$ac_pwd
1479ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480# for backward compatibility:
1481ac_top_builddir=$ac_top_build_prefix
1482
1483case $srcdir in
1484  .)  # We are building in place.
1485    ac_srcdir=.
1486    ac_top_srcdir=$ac_top_builddir_sub
1487    ac_abs_top_srcdir=$ac_pwd ;;
1488  [\\/]* | ?:[\\/]* )  # Absolute name.
1489    ac_srcdir=$srcdir$ac_dir_suffix;
1490    ac_top_srcdir=$srcdir
1491    ac_abs_top_srcdir=$srcdir ;;
1492  *) # Relative name.
1493    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494    ac_top_srcdir=$ac_top_build_prefix$srcdir
1495    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496esac
1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499    cd "$ac_dir" || { ac_status=$?; continue; }
1500    # Check for guested configure.
1501    if test -f "$ac_srcdir/configure.gnu"; then
1502      echo &&
1503      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504    elif test -f "$ac_srcdir/configure"; then
1505      echo &&
1506      $SHELL "$ac_srcdir/configure" --help=recursive
1507    else
1508      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509    fi || ac_status=$?
1510    cd "$ac_pwd" || { ac_status=$?; break; }
1511  done
1512fi
1513
1514test -n "$ac_init_help" && exit $ac_status
1515if $ac_init_version; then
1516  cat <<\_ACEOF
1517GNU TM Runtime Library configure 1.0
1518generated by GNU Autoconf 2.64
1519
1520Copyright (C) 2009 Free Software Foundation, Inc.
1521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
1524  exit
1525fi
1526
1527## ------------------------ ##
1528## Autoconf initialization. ##
1529## ------------------------ ##
1530
1531# ac_fn_c_try_compile LINENO
1532# --------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_compile ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  rm -f conftest.$ac_objext
1538  if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541  *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545  (eval "$ac_compile") 2>conftest.err
1546  ac_status=$?
1547  if test -s conftest.err; then
1548    grep -v '^ *+' conftest.err >conftest.er1
1549    cat conftest.er1 >&5
1550    mv -f conftest.er1 conftest.err
1551  fi
1552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553  test $ac_status = 0; } && {
1554	 test -z "$ac_c_werror_flag" ||
1555	 test ! -s conftest.err
1556       } && test -s conftest.$ac_objext; then :
1557  ac_retval=0
1558else
1559  $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562	ac_retval=1
1563fi
1564  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565  return $ac_retval
1566
1567} # ac_fn_c_try_compile
1568
1569# ac_fn_cxx_try_compile LINENO
1570# ----------------------------
1571# Try to compile conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_cxx_try_compile ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  rm -f conftest.$ac_objext
1576  if { { ac_try="$ac_compile"
1577case "(($ac_try" in
1578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579  *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583  (eval "$ac_compile") 2>conftest.err
1584  ac_status=$?
1585  if test -s conftest.err; then
1586    grep -v '^ *+' conftest.err >conftest.er1
1587    cat conftest.er1 >&5
1588    mv -f conftest.er1 conftest.err
1589  fi
1590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591  test $ac_status = 0; } && {
1592	 test -z "$ac_cxx_werror_flag" ||
1593	 test ! -s conftest.err
1594       } && test -s conftest.$ac_objext; then :
1595  ac_retval=0
1596else
1597  $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600	ac_retval=1
1601fi
1602  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603  return $ac_retval
1604
1605} # ac_fn_cxx_try_compile
1606
1607# ac_fn_c_try_link LINENO
1608# -----------------------
1609# Try to link conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_link ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  rm -f conftest.$ac_objext conftest$ac_exeext
1614  if { { ac_try="$ac_link"
1615case "(($ac_try" in
1616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617  *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621  (eval "$ac_link") 2>conftest.err
1622  ac_status=$?
1623  if test -s conftest.err; then
1624    grep -v '^ *+' conftest.err >conftest.er1
1625    cat conftest.er1 >&5
1626    mv -f conftest.er1 conftest.err
1627  fi
1628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629  test $ac_status = 0; } && {
1630	 test -z "$ac_c_werror_flag" ||
1631	 test ! -s conftest.err
1632       } && test -s conftest$ac_exeext && {
1633	 test "$cross_compiling" = yes ||
1634	 $as_test_x conftest$ac_exeext
1635       }; then :
1636  ac_retval=0
1637else
1638  $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641	ac_retval=1
1642fi
1643  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645  # interfere with the next link command; also delete a directory that is
1646  # left behind by Apple's compiler.  We do this before executing the actions.
1647  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649  return $ac_retval
1650
1651} # ac_fn_c_try_link
1652
1653# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654# -------------------------------------------------------
1655# Tests whether HEADER exists and can be compiled using the include files in
1656# INCLUDES, setting the cache variable VAR accordingly.
1657ac_fn_c_check_header_compile ()
1658{
1659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663  $as_echo_n "(cached) " >&6
1664else
1665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666/* end confdefs.h.  */
1667$4
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_compile "$LINENO"; then :
1671  eval "$3=yes"
1672else
1673  eval "$3=no"
1674fi
1675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676fi
1677eval ac_res=\$$3
1678	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679$as_echo "$ac_res" >&6; }
1680  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681
1682} # ac_fn_c_check_header_compile
1683
1684# ac_fn_c_try_cpp LINENO
1685# ----------------------
1686# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687ac_fn_c_try_cpp ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  if { { ac_try="$ac_cpp conftest.$ac_ext"
1691case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698  ac_status=$?
1699  if test -s conftest.err; then
1700    grep -v '^ *+' conftest.err >conftest.er1
1701    cat conftest.er1 >&5
1702    mv -f conftest.er1 conftest.err
1703  fi
1704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; } >/dev/null && {
1706	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707	 test ! -s conftest.err
1708       }; then :
1709  ac_retval=0
1710else
1711  $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714    ac_retval=1
1715fi
1716  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717  return $ac_retval
1718
1719} # ac_fn_c_try_cpp
1720
1721# ac_fn_c_try_run LINENO
1722# ----------------------
1723# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724# that executables *can* be run.
1725ac_fn_c_try_run ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  if { { ac_try="$ac_link"
1729case "(($ac_try" in
1730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731  *) ac_try_echo=$ac_try;;
1732esac
1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734$as_echo "$ac_try_echo"; } >&5
1735  (eval "$ac_link") 2>&5
1736  ac_status=$?
1737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739  { { case "(($ac_try" in
1740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741  *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745  (eval "$ac_try") 2>&5
1746  ac_status=$?
1747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748  test $ac_status = 0; }; }; then :
1749  ac_retval=0
1750else
1751  $as_echo "$as_me: program exited with status $ac_status" >&5
1752       $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755       ac_retval=$ac_status
1756fi
1757  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759  return $ac_retval
1760
1761} # ac_fn_c_try_run
1762
1763# ac_fn_c_check_func LINENO FUNC VAR
1764# ----------------------------------
1765# Tests whether FUNC exists, setting the cache variable VAR accordingly
1766ac_fn_c_check_func ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772  $as_echo_n "(cached) " >&6
1773else
1774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h.  */
1776/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1778#define $2 innocuous_$2
1779
1780/* System header to define __stub macros and hopefully few prototypes,
1781    which can conflict with char $2 (); below.
1782    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783    <limits.h> exists even on freestanding compilers.  */
1784
1785#ifdef __STDC__
1786# include <limits.h>
1787#else
1788# include <assert.h>
1789#endif
1790
1791#undef $2
1792
1793/* Override any GCC internal prototype to avoid an error.
1794   Use char because int might match the return type of a GCC
1795   builtin and then its argument prototype would still apply.  */
1796#ifdef __cplusplus
1797extern "C"
1798#endif
1799char $2 ();
1800/* The GNU C library defines this for functions which it implements
1801    to always fail with ENOSYS.  Some functions are actually named
1802    something starting with __ and the normal name is an alias.  */
1803#if defined __stub_$2 || defined __stub___$2
1804choke me
1805#endif
1806
1807int
1808main ()
1809{
1810return $2 ();
1811  ;
1812  return 0;
1813}
1814_ACEOF
1815if ac_fn_c_try_link "$LINENO"; then :
1816  eval "$3=yes"
1817else
1818  eval "$3=no"
1819fi
1820rm -f core conftest.err conftest.$ac_objext \
1821    conftest$ac_exeext conftest.$ac_ext
1822fi
1823eval ac_res=\$$3
1824	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828} # ac_fn_c_check_func
1829
1830# ac_fn_cxx_try_cpp LINENO
1831# ------------------------
1832# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833ac_fn_cxx_try_cpp ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  if { { ac_try="$ac_cpp conftest.$ac_ext"
1837case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844  ac_status=$?
1845  if test -s conftest.err; then
1846    grep -v '^ *+' conftest.err >conftest.er1
1847    cat conftest.er1 >&5
1848    mv -f conftest.er1 conftest.err
1849  fi
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } >/dev/null && {
1852	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1853	 test ! -s conftest.err
1854       }; then :
1855  ac_retval=0
1856else
1857  $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860    ac_retval=1
1861fi
1862  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863  return $ac_retval
1864
1865} # ac_fn_cxx_try_cpp
1866
1867# ac_fn_cxx_try_link LINENO
1868# -------------------------
1869# Try to link conftest.$ac_ext, and return whether this succeeded.
1870ac_fn_cxx_try_link ()
1871{
1872  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873  rm -f conftest.$ac_objext conftest$ac_exeext
1874  if { { ac_try="$ac_link"
1875case "(($ac_try" in
1876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877  *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881  (eval "$ac_link") 2>conftest.err
1882  ac_status=$?
1883  if test -s conftest.err; then
1884    grep -v '^ *+' conftest.err >conftest.er1
1885    cat conftest.er1 >&5
1886    mv -f conftest.er1 conftest.err
1887  fi
1888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889  test $ac_status = 0; } && {
1890	 test -z "$ac_cxx_werror_flag" ||
1891	 test ! -s conftest.err
1892       } && test -s conftest$ac_exeext && {
1893	 test "$cross_compiling" = yes ||
1894	 $as_test_x conftest$ac_exeext
1895       }; then :
1896  ac_retval=0
1897else
1898  $as_echo "$as_me: failed program was:" >&5
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
1901	ac_retval=1
1902fi
1903  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905  # interfere with the next link command; also delete a directory that is
1906  # left behind by Apple's compiler.  We do this before executing the actions.
1907  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909  return $ac_retval
1910
1911} # ac_fn_cxx_try_link
1912
1913# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914# -------------------------------------------------------
1915# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916# the include files in INCLUDES and setting the cache variable VAR
1917# accordingly.
1918ac_fn_c_check_header_mongrel ()
1919{
1920  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923$as_echo_n "checking for $2... " >&6; }
1924if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925  $as_echo_n "(cached) " >&6
1926fi
1927eval ac_res=\$$3
1928	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929$as_echo "$ac_res" >&6; }
1930else
1931  # Is the header compilable?
1932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933$as_echo_n "checking $2 usability... " >&6; }
1934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936$4
1937#include <$2>
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940  ac_header_compiler=yes
1941else
1942  ac_header_compiler=no
1943fi
1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946$as_echo "$ac_header_compiler" >&6; }
1947
1948# Is the header present?
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950$as_echo_n "checking $2 presence... " >&6; }
1951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h.  */
1953#include <$2>
1954_ACEOF
1955if ac_fn_c_try_cpp "$LINENO"; then :
1956  ac_header_preproc=yes
1957else
1958  ac_header_preproc=no
1959fi
1960rm -f conftest.err conftest.$ac_ext
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962$as_echo "$ac_header_preproc" >&6; }
1963
1964# So?  What about this header?
1965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966  yes:no: )
1967    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971    ;;
1972  no:yes:* )
1973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1976$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1977    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1980$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983    ;;
1984esac
1985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
1987if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988  $as_echo_n "(cached) " >&6
1989else
1990  eval "$3=\$ac_header_compiler"
1991fi
1992eval ac_res=\$$3
1993	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995fi
1996  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997
1998} # ac_fn_c_check_header_mongrel
1999
2000# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2001# -------------------------------------------
2002# Tests whether TYPE exists after having included INCLUDES, setting cache
2003# variable VAR accordingly.
2004ac_fn_c_check_type ()
2005{
2006  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008$as_echo_n "checking for $2... " >&6; }
2009if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010  $as_echo_n "(cached) " >&6
2011else
2012  eval "$3=no"
2013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h.  */
2015$4
2016int
2017main ()
2018{
2019if (sizeof ($2))
2020	 return 0;
2021  ;
2022  return 0;
2023}
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h.  */
2028$4
2029int
2030main ()
2031{
2032if (sizeof (($2)))
2033	    return 0;
2034  ;
2035  return 0;
2036}
2037_ACEOF
2038if ac_fn_c_try_compile "$LINENO"; then :
2039
2040else
2041  eval "$3=yes"
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046fi
2047eval ac_res=\$$3
2048	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049$as_echo "$ac_res" >&6; }
2050  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051
2052} # ac_fn_c_check_type
2053
2054# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2055# --------------------------------------------
2056# Tries to find the compile-time value of EXPR in a program that includes
2057# INCLUDES, setting VAR accordingly. Returns whether the value could be
2058# computed
2059ac_fn_c_compute_int ()
2060{
2061  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062  if test "$cross_compiling" = yes; then
2063    # Depending upon the size, compute the lo and hi bounds.
2064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h.  */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) >= 0)];
2071test_array [0] = 0
2072
2073  ;
2074  return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078  ac_lo=0 ac_mid=0
2079  while :; do
2080    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h.  */
2082$4
2083int
2084main ()
2085{
2086static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087test_array [0] = 0
2088
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094  ac_hi=$ac_mid; break
2095else
2096  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2097			if test $ac_lo -le $ac_mid; then
2098			  ac_lo= ac_hi=
2099			  break
2100			fi
2101			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104  done
2105else
2106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108$4
2109int
2110main ()
2111{
2112static int test_array [1 - 2 * !(($2) < 0)];
2113test_array [0] = 0
2114
2115  ;
2116  return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120  ac_hi=-1 ac_mid=-1
2121  while :; do
2122    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h.  */
2124$4
2125int
2126main ()
2127{
2128static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129test_array [0] = 0
2130
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_compile "$LINENO"; then :
2136  ac_lo=$ac_mid; break
2137else
2138  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2139			if test $ac_mid -le $ac_hi; then
2140			  ac_lo= ac_hi=
2141			  break
2142			fi
2143			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146  done
2147else
2148  ac_lo= ac_hi=
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153# Binary search between lo and hi bounds.
2154while test "x$ac_lo" != "x$ac_hi"; do
2155  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h.  */
2158$4
2159int
2160main ()
2161{
2162static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163test_array [0] = 0
2164
2165  ;
2166  return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_compile "$LINENO"; then :
2170  ac_hi=$ac_mid
2171else
2172  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2173fi
2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175done
2176case $ac_lo in #((
2177?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2178'') ac_retval=1 ;;
2179esac
2180  else
2181    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h.  */
2183$4
2184static long int longval () { return $2; }
2185static unsigned long int ulongval () { return $2; }
2186#include <stdio.h>
2187#include <stdlib.h>
2188int
2189main ()
2190{
2191
2192  FILE *f = fopen ("conftest.val", "w");
2193  if (! f)
2194    return 1;
2195  if (($2) < 0)
2196    {
2197      long int i = longval ();
2198      if (i != ($2))
2199	return 1;
2200      fprintf (f, "%ld", i);
2201    }
2202  else
2203    {
2204      unsigned long int i = ulongval ();
2205      if (i != ($2))
2206	return 1;
2207      fprintf (f, "%lu", i);
2208    }
2209  /* Do not output a trailing newline, as this causes \r\n confusion
2210     on some platforms.  */
2211  return ferror (f) || fclose (f) != 0;
2212
2213  ;
2214  return 0;
2215}
2216_ACEOF
2217if ac_fn_c_try_run "$LINENO"; then :
2218  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2219else
2220  ac_retval=1
2221fi
2222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2223  conftest.$ac_objext conftest.beam conftest.$ac_ext
2224rm -f conftest.val
2225
2226  fi
2227  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228  return $ac_retval
2229
2230} # ac_fn_c_compute_int
2231
2232# ac_fn_c_check_decl LINENO SYMBOL VAR
2233# ------------------------------------
2234# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2235ac_fn_c_check_decl ()
2236{
2237  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238  as_decl_name=`echo $2|sed 's/ *(.*//'`
2239  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2241$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2242if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243  $as_echo_n "(cached) " >&6
2244else
2245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246/* end confdefs.h.  */
2247$4
2248int
2249main ()
2250{
2251#ifndef $as_decl_name
2252#ifdef __cplusplus
2253  (void) $as_decl_use;
2254#else
2255  (void) $as_decl_name;
2256#endif
2257#endif
2258
2259  ;
2260  return 0;
2261}
2262_ACEOF
2263if ac_fn_c_try_compile "$LINENO"; then :
2264  eval "$3=yes"
2265else
2266  eval "$3=no"
2267fi
2268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269fi
2270eval ac_res=\$$3
2271	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272$as_echo "$ac_res" >&6; }
2273  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274
2275} # ac_fn_c_check_decl
2276cat >config.log <<_ACEOF
2277This file contains any messages produced by compilers while
2278running configure, to aid debugging if configure makes a mistake.
2279
2280It was created by GNU TM Runtime Library $as_me 1.0, which was
2281generated by GNU Autoconf 2.64.  Invocation command line was
2282
2283  $ $0 $@
2284
2285_ACEOF
2286exec 5>>config.log
2287{
2288cat <<_ASUNAME
2289## --------- ##
2290## Platform. ##
2291## --------- ##
2292
2293hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2301
2302/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2303/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2304/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2306/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2307/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2308/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2309
2310_ASUNAME
2311
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  test -z "$as_dir" && as_dir=.
2317    $as_echo "PATH: $as_dir"
2318  done
2319IFS=$as_save_IFS
2320
2321} >&5
2322
2323cat >&5 <<_ACEOF
2324
2325
2326## ----------- ##
2327## Core tests. ##
2328## ----------- ##
2329
2330_ACEOF
2331
2332
2333# Keep a trace of the command line.
2334# Strip out --no-create and --no-recursion so they do not pile up.
2335# Strip out --silent because we don't want to record it for future runs.
2336# Also quote any args containing shell meta-characters.
2337# Make two passes to allow for proper duplicate-argument suppression.
2338ac_configure_args=
2339ac_configure_args0=
2340ac_configure_args1=
2341ac_must_keep_next=false
2342for ac_pass in 1 2
2343do
2344  for ac_arg
2345  do
2346    case $ac_arg in
2347    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349    | -silent | --silent | --silen | --sile | --sil)
2350      continue ;;
2351    *\'*)
2352      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353    esac
2354    case $ac_pass in
2355    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356    2)
2357      as_fn_append ac_configure_args1 " '$ac_arg'"
2358      if test $ac_must_keep_next = true; then
2359	ac_must_keep_next=false # Got value, back to normal.
2360      else
2361	case $ac_arg in
2362	  *=* | --config-cache | -C | -disable-* | --disable-* \
2363	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365	  | -with-* | --with-* | -without-* | --without-* | --x)
2366	    case "$ac_configure_args0 " in
2367	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368	    esac
2369	    ;;
2370	  -* ) ac_must_keep_next=true ;;
2371	esac
2372      fi
2373      as_fn_append ac_configure_args " '$ac_arg'"
2374      ;;
2375    esac
2376  done
2377done
2378{ ac_configure_args0=; unset ac_configure_args0;}
2379{ ac_configure_args1=; unset ac_configure_args1;}
2380
2381# When interrupted or exit'd, cleanup temporary files, and complete
2382# config.log.  We remove comments because anyway the quotes in there
2383# would cause problems or look ugly.
2384# WARNING: Use '\'' to represent an apostrophe within the trap.
2385# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386trap 'exit_status=$?
2387  # Save into config.log some information that might help in debugging.
2388  {
2389    echo
2390
2391    cat <<\_ASBOX
2392## ---------------- ##
2393## Cache variables. ##
2394## ---------------- ##
2395_ASBOX
2396    echo
2397    # The following way of writing the cache mishandles newlines in values,
2398(
2399  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2400    eval ac_val=\$$ac_var
2401    case $ac_val in #(
2402    *${as_nl}*)
2403      case $ac_var in #(
2404      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2405$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406      esac
2407      case $ac_var in #(
2408      _ | IFS | as_nl) ;; #(
2409      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2410      *) { eval $ac_var=; unset $ac_var;} ;;
2411      esac ;;
2412    esac
2413  done
2414  (set) 2>&1 |
2415    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2416    *${as_nl}ac_space=\ *)
2417      sed -n \
2418	"s/'\''/'\''\\\\'\'''\''/g;
2419	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420      ;; #(
2421    *)
2422      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423      ;;
2424    esac |
2425    sort
2426)
2427    echo
2428
2429    cat <<\_ASBOX
2430## ----------------- ##
2431## Output variables. ##
2432## ----------------- ##
2433_ASBOX
2434    echo
2435    for ac_var in $ac_subst_vars
2436    do
2437      eval ac_val=\$$ac_var
2438      case $ac_val in
2439      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440      esac
2441      $as_echo "$ac_var='\''$ac_val'\''"
2442    done | sort
2443    echo
2444
2445    if test -n "$ac_subst_files"; then
2446      cat <<\_ASBOX
2447## ------------------- ##
2448## File substitutions. ##
2449## ------------------- ##
2450_ASBOX
2451      echo
2452      for ac_var in $ac_subst_files
2453      do
2454	eval ac_val=\$$ac_var
2455	case $ac_val in
2456	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457	esac
2458	$as_echo "$ac_var='\''$ac_val'\''"
2459      done | sort
2460      echo
2461    fi
2462
2463    if test -s confdefs.h; then
2464      cat <<\_ASBOX
2465## ----------- ##
2466## confdefs.h. ##
2467## ----------- ##
2468_ASBOX
2469      echo
2470      cat confdefs.h
2471      echo
2472    fi
2473    test "$ac_signal" != 0 &&
2474      $as_echo "$as_me: caught signal $ac_signal"
2475    $as_echo "$as_me: exit $exit_status"
2476  } >&5
2477  rm -f core *.core core.conftest.* &&
2478    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479    exit $exit_status
2480' 0
2481for ac_signal in 1 2 13 15; do
2482  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483done
2484ac_signal=0
2485
2486# confdefs.h avoids OS command line length limits that DEFS can exceed.
2487rm -f -r conftest* confdefs.h
2488
2489$as_echo "/* confdefs.h */" > confdefs.h
2490
2491# Predefined preprocessor variables.
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_NAME "$PACKAGE_NAME"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_VERSION "$PACKAGE_VERSION"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_STRING "$PACKAGE_STRING"
2507_ACEOF
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511_ACEOF
2512
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_URL "$PACKAGE_URL"
2515_ACEOF
2516
2517
2518# Let the site file select an alternate cache file if it wants to.
2519# Prefer an explicitly selected file to automatically selected ones.
2520ac_site_file1=NONE
2521ac_site_file2=NONE
2522if test -n "$CONFIG_SITE"; then
2523  ac_site_file1=$CONFIG_SITE
2524elif test "x$prefix" != xNONE; then
2525  ac_site_file1=$prefix/share/config.site
2526  ac_site_file2=$prefix/etc/config.site
2527else
2528  ac_site_file1=$ac_default_prefix/share/config.site
2529  ac_site_file2=$ac_default_prefix/etc/config.site
2530fi
2531for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2532do
2533  test "x$ac_site_file" = xNONE && continue
2534  if test -r "$ac_site_file"; then
2535    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537    sed 's/^/| /' "$ac_site_file" >&5
2538    . "$ac_site_file"
2539  fi
2540done
2541
2542if test -r "$cache_file"; then
2543  # Some versions of bash will fail to source /dev/null (special
2544  # files actually), so we avoid doing that.
2545  if test -f "$cache_file"; then
2546    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2547$as_echo "$as_me: loading cache $cache_file" >&6;}
2548    case $cache_file in
2549      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2550      *)                      . "./$cache_file";;
2551    esac
2552  fi
2553else
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2555$as_echo "$as_me: creating cache $cache_file" >&6;}
2556  >$cache_file
2557fi
2558
2559# Check that the precious variables saved in the cache have kept the same
2560# value.
2561ac_cache_corrupted=false
2562for ac_var in $ac_precious_vars; do
2563  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2564  eval ac_new_set=\$ac_env_${ac_var}_set
2565  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2566  eval ac_new_val=\$ac_env_${ac_var}_value
2567  case $ac_old_set,$ac_new_set in
2568    set,)
2569      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2570$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2571      ac_cache_corrupted=: ;;
2572    ,set)
2573      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2574$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2575      ac_cache_corrupted=: ;;
2576    ,);;
2577    *)
2578      if test "x$ac_old_val" != "x$ac_new_val"; then
2579	# differences in whitespace do not lead to failure.
2580	ac_old_val_w=`echo x $ac_old_val`
2581	ac_new_val_w=`echo x $ac_new_val`
2582	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2583	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2584$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2585	  ac_cache_corrupted=:
2586	else
2587	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2588$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2589	  eval $ac_var=\$ac_old_val
2590	fi
2591	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2592$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2593	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2594$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2595      fi;;
2596  esac
2597  # Pass precious variables to config.status.
2598  if test "$ac_new_set" = set; then
2599    case $ac_new_val in
2600    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2601    *) ac_arg=$ac_var=$ac_new_val ;;
2602    esac
2603    case " $ac_configure_args " in
2604      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2605      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2606    esac
2607  fi
2608done
2609if $ac_cache_corrupted; then
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2613$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2614  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2615fi
2616## -------------------- ##
2617## Main body of script. ##
2618## -------------------- ##
2619
2620ac_ext=c
2621ac_cpp='$CPP $CPPFLAGS'
2622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627
2628
2629
2630ac_config_headers="$ac_config_headers config.h"
2631
2632
2633# -------
2634# Options
2635# -------
2636
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2638$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2639 # Check whether --enable-version-specific-runtime-libs was given.
2640if test "${enable_version_specific_runtime_libs+set}" = set; then :
2641  enableval=$enable_version_specific_runtime_libs;
2642      case "$enableval" in
2643       yes|no) ;;
2644       *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2645                          esac
2646
2647else
2648  enable_version_specific_runtime_libs=no
2649fi
2650
2651
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2653$as_echo "$enable_version_specific_runtime_libs" >&6; }
2654
2655# We would like our source tree to be readonly. However when releases or
2656# pre-releases are generated, the flex/bison generated files as well as the
2657# various formats of manuals need to be included along with the rest of the
2658# sources.  Therefore we have --enable-generated-files-in-srcdir to do
2659# just that.
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2661$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2662 # Check whether --enable-generated-files-in-srcdir was given.
2663if test "${enable_generated_files_in_srcdir+set}" = set; then :
2664  enableval=$enable_generated_files_in_srcdir;
2665      case "$enableval" in
2666       yes|no) ;;
2667       *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2668                          esac
2669
2670else
2671  enable_generated_files_in_srcdir=no
2672fi
2673
2674
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2676$as_echo "$enable_generated_files_in_srcdir" >&6; }
2677 if test "$enable_generated_files_in_srcdir" = yes; then
2678  GENINSRC_TRUE=
2679  GENINSRC_FALSE='#'
2680else
2681  GENINSRC_TRUE='#'
2682  GENINSRC_FALSE=
2683fi
2684
2685
2686
2687# -------
2688# -------
2689
2690# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2691#
2692# You will slowly go insane if you do not grok the following fact:  when
2693# building this library, the top-level /target/ becomes the library's /host/.
2694#
2695# configure then causes --target to default to --host, exactly like any
2696# other package using autoconf.  Therefore, 'target' and 'host' will
2697# always be the same.  This makes sense both for native and cross compilers
2698# just think about it for a little while.  :-)
2699#
2700# Also, if this library is being configured as part of a cross compiler, the
2701# top-level configure script will pass the "real" host as $with_cross_host.
2702#
2703# Do not delete or change the following two lines.  For why, see
2704# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2705ac_aux_dir=
2706for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2707  for ac_t in install-sh install.sh shtool; do
2708    if test -f "$ac_dir/$ac_t"; then
2709      ac_aux_dir=$ac_dir
2710      ac_install_sh="$ac_aux_dir/$ac_t -c"
2711      break 2
2712    fi
2713  done
2714done
2715if test -z "$ac_aux_dir"; then
2716  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2717fi
2718
2719# These three variables are undocumented and unsupported,
2720# and are intended to be withdrawn in a future Autoconf release.
2721# They can cause serious problems if a builder's source tree is in a directory
2722# whose full name contains unusual characters.
2723ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2724ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2725ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2726
2727
2728# Make sure we can run config.sub.
2729$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2731
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733$as_echo_n "checking build system type... " >&6; }
2734if test "${ac_cv_build+set}" = set; then :
2735  $as_echo_n "(cached) " >&6
2736else
2737  ac_build_alias=$build_alias
2738test "x$ac_build_alias" = x &&
2739  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740test "x$ac_build_alias" = x &&
2741  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2742ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2744
2745fi
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747$as_echo "$ac_cv_build" >&6; }
2748case $ac_cv_build in
2749*-*-*) ;;
2750*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2751esac
2752build=$ac_cv_build
2753ac_save_IFS=$IFS; IFS='-'
2754set x $ac_cv_build
2755shift
2756build_cpu=$1
2757build_vendor=$2
2758shift; shift
2759# Remember, the first character of IFS is used to create $*,
2760# except with old shells:
2761build_os=$*
2762IFS=$ac_save_IFS
2763case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2764
2765
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767$as_echo_n "checking host system type... " >&6; }
2768if test "${ac_cv_host+set}" = set; then :
2769  $as_echo_n "(cached) " >&6
2770else
2771  if test "x$host_alias" = x; then
2772  ac_cv_host=$ac_cv_build
2773else
2774  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2776fi
2777
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780$as_echo "$ac_cv_host" >&6; }
2781case $ac_cv_host in
2782*-*-*) ;;
2783*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2784esac
2785host=$ac_cv_host
2786ac_save_IFS=$IFS; IFS='-'
2787set x $ac_cv_host
2788shift
2789host_cpu=$1
2790host_vendor=$2
2791shift; shift
2792# Remember, the first character of IFS is used to create $*,
2793# except with old shells:
2794host_os=$*
2795IFS=$ac_save_IFS
2796case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2797
2798
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2800$as_echo_n "checking target system type... " >&6; }
2801if test "${ac_cv_target+set}" = set; then :
2802  $as_echo_n "(cached) " >&6
2803else
2804  if test "x$target_alias" = x; then
2805  ac_cv_target=$ac_cv_host
2806else
2807  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2808    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2809fi
2810
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2813$as_echo "$ac_cv_target" >&6; }
2814case $ac_cv_target in
2815*-*-*) ;;
2816*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2817esac
2818target=$ac_cv_target
2819ac_save_IFS=$IFS; IFS='-'
2820set x $ac_cv_target
2821shift
2822target_cpu=$1
2823target_vendor=$2
2824shift; shift
2825# Remember, the first character of IFS is used to create $*,
2826# except with old shells:
2827target_os=$*
2828IFS=$ac_save_IFS
2829case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2830
2831
2832# The aliases save the names the user supplied, while $host etc.
2833# will get canonicalized.
2834test -n "$target_alias" &&
2835  test "$program_prefix$program_suffix$program_transform_name" = \
2836    NONENONEs,x,x, &&
2837  program_prefix=${target_alias}-
2838
2839target_alias=${target_alias-$host_alias}
2840
2841# Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2842# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2843#  1.9.0:  minimum required version
2844#  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2845#              of other PACKAGE_* variables will, however, and there's nothing
2846#              we can do about that; they come from AC_INIT).
2847#  no-dist:  we don't want 'dist' and related rules.
2848#  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2849#            file in the top srcdir, etc, etc), so stop complaining.
2850#  -Wall:  turns on all automake warnings...
2851#  -Wno-portability:  ...except this one, since GNU make is required.
2852#  -Wno-override: ... and this one, since we do want this in testsuite.
2853am__api_version='1.11'
2854
2855# Find a good install program.  We prefer a C program (faster),
2856# so one script is as good as another.  But avoid the broken or
2857# incompatible versions:
2858# SysV /etc/install, /usr/sbin/install
2859# SunOS /usr/etc/install
2860# IRIX /sbin/install
2861# AIX /bin/install
2862# AmigaOS /C/install, which installs bootblocks on floppy discs
2863# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866# OS/2's system install, which has a completely different semantic
2867# ./install, which can be erroneously created by make from ./install.sh.
2868# Reject install programs that cannot install multiple files.
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2870$as_echo_n "checking for a BSD-compatible install... " >&6; }
2871if test -z "$INSTALL"; then
2872if test "${ac_cv_path_install+set}" = set; then :
2873  $as_echo_n "(cached) " >&6
2874else
2875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878  IFS=$as_save_IFS
2879  test -z "$as_dir" && as_dir=.
2880    # Account for people who put trailing slashes in PATH elements.
2881case $as_dir/ in #((
2882  ./ | .// | /[cC]/* | \
2883  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2885  /usr/ucb/* ) ;;
2886  *)
2887    # OSF1 and SCO ODT 3.0 have their own names for install.
2888    # Don't use installbsd from OSF since it installs stuff as root
2889    # by default.
2890    for ac_prog in ginstall scoinst install; do
2891      for ac_exec_ext in '' $ac_executable_extensions; do
2892	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2893	  if test $ac_prog = install &&
2894	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895	    # AIX install.  It has an incompatible calling convention.
2896	    :
2897	  elif test $ac_prog = install &&
2898	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899	    # program-specific install script used by HP pwplus--don't use.
2900	    :
2901	  else
2902	    rm -rf conftest.one conftest.two conftest.dir
2903	    echo one > conftest.one
2904	    echo two > conftest.two
2905	    mkdir conftest.dir
2906	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2907	      test -s conftest.one && test -s conftest.two &&
2908	      test -s conftest.dir/conftest.one &&
2909	      test -s conftest.dir/conftest.two
2910	    then
2911	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2912	      break 3
2913	    fi
2914	  fi
2915	fi
2916      done
2917    done
2918    ;;
2919esac
2920
2921  done
2922IFS=$as_save_IFS
2923
2924rm -rf conftest.one conftest.two conftest.dir
2925
2926fi
2927  if test "${ac_cv_path_install+set}" = set; then
2928    INSTALL=$ac_cv_path_install
2929  else
2930    # As a last resort, use the slow shell script.  Don't cache a
2931    # value for INSTALL within a source directory, because that will
2932    # break other packages using the cache if that directory is
2933    # removed, or if the value is a relative name.
2934    INSTALL=$ac_install_sh
2935  fi
2936fi
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2938$as_echo "$INSTALL" >&6; }
2939
2940# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2941# It thinks the first close brace ends the variable substitution.
2942test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2943
2944test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2945
2946test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2947
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2949$as_echo_n "checking whether build environment is sane... " >&6; }
2950# Just in case
2951sleep 1
2952echo timestamp > conftest.file
2953# Reject unsafe characters in $srcdir or the absolute working directory
2954# name.  Accept space and tab only in the latter.
2955am_lf='
2956'
2957case `pwd` in
2958  *[\\\"\#\$\&\'\`$am_lf]*)
2959    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2960esac
2961case $srcdir in
2962  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2963    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2964esac
2965
2966# Do `set' in a subshell so we don't clobber the current shell's
2967# arguments.  Must try -L first in case configure is actually a
2968# symlink; some systems play weird games with the mod time of symlinks
2969# (eg FreeBSD returns the mod time of the symlink's containing
2970# directory).
2971if (
2972   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2973   if test "$*" = "X"; then
2974      # -L didn't work.
2975      set X `ls -t "$srcdir/configure" conftest.file`
2976   fi
2977   rm -f conftest.file
2978   if test "$*" != "X $srcdir/configure conftest.file" \
2979      && test "$*" != "X conftest.file $srcdir/configure"; then
2980
2981      # If neither matched, then we have a broken ls.  This can happen
2982      # if, for instance, CONFIG_SHELL is bash and it inherits a
2983      # broken ls alias from the environment.  This has actually
2984      # happened.  Such a system could not be considered "sane".
2985      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2986alias in your environment" "$LINENO" 5
2987   fi
2988
2989   test "$2" = conftest.file
2990   )
2991then
2992   # Ok.
2993   :
2994else
2995   as_fn_error "newly created file is older than distributed files!
2996Check your system clock" "$LINENO" 5
2997fi
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2999$as_echo "yes" >&6; }
3000test "$program_prefix" != NONE &&
3001  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3002# Use a double $ so make ignores it.
3003test "$program_suffix" != NONE &&
3004  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3005# Double any \ or $.
3006# By default was `s,x,x', remove it if useless.
3007ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3008program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3009
3010# expand $ac_aux_dir to an absolute path
3011am_aux_dir=`cd $ac_aux_dir && pwd`
3012
3013if test x"${MISSING+set}" != xset; then
3014  case $am_aux_dir in
3015  *\ * | *\	*)
3016    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3017  *)
3018    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3019  esac
3020fi
3021# Use eval to expand $SHELL
3022if eval "$MISSING --run true"; then
3023  am_missing_run="$MISSING --run "
3024else
3025  am_missing_run=
3026  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3027$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3028fi
3029
3030if test x"${install_sh}" != xset; then
3031  case $am_aux_dir in
3032  *\ * | *\	*)
3033    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3034  *)
3035    install_sh="\${SHELL} $am_aux_dir/install-sh"
3036  esac
3037fi
3038
3039# Installed binaries are usually stripped using `strip' when the user
3040# run `make install-strip'.  However `strip' might not be the right
3041# tool to use in cross-compilation environments, therefore Automake
3042# will honor the `STRIP' environment variable to overrule this program.
3043if test "$cross_compiling" != no; then
3044  if test -n "$ac_tool_prefix"; then
3045  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3046set dummy ${ac_tool_prefix}strip; ac_word=$2
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; }
3049if test "${ac_cv_prog_STRIP+set}" = set; then :
3050  $as_echo_n "(cached) " >&6
3051else
3052  if test -n "$STRIP"; then
3053  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058  IFS=$as_save_IFS
3059  test -z "$as_dir" && as_dir=.
3060    for ac_exec_ext in '' $ac_executable_extensions; do
3061  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064    break 2
3065  fi
3066done
3067  done
3068IFS=$as_save_IFS
3069
3070fi
3071fi
3072STRIP=$ac_cv_prog_STRIP
3073if test -n "$STRIP"; then
3074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3075$as_echo "$STRIP" >&6; }
3076else
3077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
3079fi
3080
3081
3082fi
3083if test -z "$ac_cv_prog_STRIP"; then
3084  ac_ct_STRIP=$STRIP
3085  # Extract the first word of "strip", so it can be a program name with args.
3086set dummy strip; ac_word=$2
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
3089if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3090  $as_echo_n "(cached) " >&6
3091else
3092  if test -n "$ac_ct_STRIP"; then
3093  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098  IFS=$as_save_IFS
3099  test -z "$as_dir" && as_dir=.
3100    for ac_exec_ext in '' $ac_executable_extensions; do
3101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102    ac_cv_prog_ac_ct_STRIP="strip"
3103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104    break 2
3105  fi
3106done
3107  done
3108IFS=$as_save_IFS
3109
3110fi
3111fi
3112ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3113if test -n "$ac_ct_STRIP"; then
3114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3115$as_echo "$ac_ct_STRIP" >&6; }
3116else
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
3119fi
3120
3121  if test "x$ac_ct_STRIP" = x; then
3122    STRIP=":"
3123  else
3124    case $cross_compiling:$ac_tool_warned in
3125yes:)
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128ac_tool_warned=yes ;;
3129esac
3130    STRIP=$ac_ct_STRIP
3131  fi
3132else
3133  STRIP="$ac_cv_prog_STRIP"
3134fi
3135
3136fi
3137INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3138
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3140$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3141if test -z "$MKDIR_P"; then
3142  if test "${ac_cv_path_mkdir+set}" = set; then :
3143  $as_echo_n "(cached) " >&6
3144else
3145  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150    for ac_prog in mkdir gmkdir; do
3151	 for ac_exec_ext in '' $ac_executable_extensions; do
3152	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3153	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3154	     'mkdir (GNU coreutils) '* | \
3155	     'mkdir (coreutils) '* | \
3156	     'mkdir (fileutils) '4.1*)
3157	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3158	       break 3;;
3159	   esac
3160	 done
3161       done
3162  done
3163IFS=$as_save_IFS
3164
3165fi
3166
3167  if test "${ac_cv_path_mkdir+set}" = set; then
3168    MKDIR_P="$ac_cv_path_mkdir -p"
3169  else
3170    # As a last resort, use the slow shell script.  Don't cache a
3171    # value for MKDIR_P within a source directory, because that will
3172    # break other packages using the cache if that directory is
3173    # removed, or if the value is a relative name.
3174    test -d ./--version && rmdir ./--version
3175    MKDIR_P="$ac_install_sh -d"
3176  fi
3177fi
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3179$as_echo "$MKDIR_P" >&6; }
3180
3181mkdir_p="$MKDIR_P"
3182case $mkdir_p in
3183  [\\/$]* | ?:[\\/]*) ;;
3184  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3185esac
3186
3187for ac_prog in gawk mawk nawk awk
3188do
3189  # Extract the first word of "$ac_prog", so it can be a program name with args.
3190set dummy $ac_prog; ac_word=$2
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192$as_echo_n "checking for $ac_word... " >&6; }
3193if test "${ac_cv_prog_AWK+set}" = set; then :
3194  $as_echo_n "(cached) " >&6
3195else
3196  if test -n "$AWK"; then
3197  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3198else
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202  IFS=$as_save_IFS
3203  test -z "$as_dir" && as_dir=.
3204    for ac_exec_ext in '' $ac_executable_extensions; do
3205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206    ac_cv_prog_AWK="$ac_prog"
3207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208    break 2
3209  fi
3210done
3211  done
3212IFS=$as_save_IFS
3213
3214fi
3215fi
3216AWK=$ac_cv_prog_AWK
3217if test -n "$AWK"; then
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3219$as_echo "$AWK" >&6; }
3220else
3221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222$as_echo "no" >&6; }
3223fi
3224
3225
3226  test -n "$AWK" && break
3227done
3228
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3230$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3231set x ${MAKE-make}
3232ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3233if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3234  $as_echo_n "(cached) " >&6
3235else
3236  cat >conftest.make <<\_ACEOF
3237SHELL = /bin/sh
3238all:
3239	@echo '@@@%%%=$(MAKE)=@@@%%%'
3240_ACEOF
3241# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3242case `${MAKE-make} -f conftest.make 2>/dev/null` in
3243  *@@@%%%=?*=@@@%%%*)
3244    eval ac_cv_prog_make_${ac_make}_set=yes;;
3245  *)
3246    eval ac_cv_prog_make_${ac_make}_set=no;;
3247esac
3248rm -f conftest.make
3249fi
3250if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252$as_echo "yes" >&6; }
3253  SET_MAKE=
3254else
3255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256$as_echo "no" >&6; }
3257  SET_MAKE="MAKE=${MAKE-make}"
3258fi
3259
3260rm -rf .tst 2>/dev/null
3261mkdir .tst 2>/dev/null
3262if test -d .tst; then
3263  am__leading_dot=.
3264else
3265  am__leading_dot=_
3266fi
3267rmdir .tst 2>/dev/null
3268
3269if test "`cd $srcdir && pwd`" != "`pwd`"; then
3270  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3271  # is not polluted with repeated "-I."
3272  am__isrc=' -I$(srcdir)'
3273  # test to see if srcdir already configured
3274  if test -f $srcdir/config.status; then
3275    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3276  fi
3277fi
3278
3279# test whether we have cygpath
3280if test -z "$CYGPATH_W"; then
3281  if (cygpath --version) >/dev/null 2>/dev/null; then
3282    CYGPATH_W='cygpath -w'
3283  else
3284    CYGPATH_W=echo
3285  fi
3286fi
3287
3288
3289# Define the identity of the package.
3290 PACKAGE='libitm'
3291 VERSION='1.0'
3292
3293
3294cat >>confdefs.h <<_ACEOF
3295#define PACKAGE "$PACKAGE"
3296_ACEOF
3297
3298
3299cat >>confdefs.h <<_ACEOF
3300#define VERSION "$VERSION"
3301_ACEOF
3302
3303# Some tools Automake needs.
3304
3305ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3306
3307
3308AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3309
3310
3311AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3312
3313
3314AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3315
3316
3317MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3318
3319# We need awk for the "check" target.  The system "awk" is bad on
3320# some platforms.
3321# Always define AMTAR for backward compatibility.
3322
3323AMTAR=${AMTAR-"${am_missing_run}tar"}
3324
3325am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3326
3327
3328
3329
3330
3331# Default to --enable-multilib
3332# Check whether --enable-multilib was given.
3333if test "${enable_multilib+set}" = set; then :
3334  enableval=$enable_multilib; case "$enableval" in
3335  yes) multilib=yes ;;
3336  no)  multilib=no ;;
3337  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3338 esac
3339else
3340  multilib=yes
3341fi
3342
3343
3344# We may get other options which we leave undocumented:
3345# --with-target-subdir, --with-multisrctop, --with-multisubdir
3346# See config-ml.in if you want the gory details.
3347
3348if test "$srcdir" = "."; then
3349  if test "$with_target_subdir" != "."; then
3350    multi_basedir="$srcdir/$with_multisrctop../.."
3351  else
3352    multi_basedir="$srcdir/$with_multisrctop.."
3353  fi
3354else
3355  multi_basedir="$srcdir/.."
3356fi
3357
3358
3359# Even if the default multilib is not a cross compilation,
3360# it may be that some of the other multilibs are.
3361if test $cross_compiling = no && test $multilib = yes \
3362   && test "x${with_multisubdir}" != x ; then
3363   cross_compiling=maybe
3364fi
3365
3366ac_config_commands="$ac_config_commands default-1"
3367
3368
3369# Calculate toolexeclibdir
3370# Also toolexecdir, though it's only used in toolexeclibdir
3371case ${enable_version_specific_runtime_libs} in
3372  yes)
3373    # Need the gcc compiler version to know where to install libraries
3374    # and header files if --enable-version-specific-runtime-libs option
3375    # is selected.
3376    toolexecdir='$(libdir)/gcc/$(target_alias)'
3377    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3378    ;;
3379  no)
3380    if test -n "$with_cross_host" &&
3381       test x"$with_cross_host" != x"no"; then
3382      # Install a library built with a cross compiler in tooldir, not libdir.
3383      toolexecdir='$(exec_prefix)/$(target_alias)'
3384      toolexeclibdir='$(toolexecdir)/lib'
3385    else
3386      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3387      toolexeclibdir='$(libdir)'
3388    fi
3389    multi_os_directory=`$CC -print-multi-os-directory`
3390    case $multi_os_directory in
3391      .) ;; # Avoid trailing /.
3392      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3393    esac
3394    ;;
3395esac
3396
3397
3398
3399# Check the compiler.
3400# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3401# We must force CC to /not/ be precious variables; otherwise
3402# the wrong, non-multilib-adjusted value will be used in multilibs.
3403# As a side effect, we have to subst CFLAGS ourselves.
3404
3405
3406
3407ac_ext=c
3408ac_cpp='$CPP $CPPFLAGS'
3409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412if test -n "$ac_tool_prefix"; then
3413  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3414set dummy ${ac_tool_prefix}gcc; ac_word=$2
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416$as_echo_n "checking for $ac_word... " >&6; }
3417if test "${ac_cv_prog_CC+set}" = set; then :
3418  $as_echo_n "(cached) " >&6
3419else
3420  if test -n "$CC"; then
3421  ac_cv_prog_CC="$CC" # Let the user override the test.
3422else
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH
3425do
3426  IFS=$as_save_IFS
3427  test -z "$as_dir" && as_dir=.
3428    for ac_exec_ext in '' $ac_executable_extensions; do
3429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432    break 2
3433  fi
3434done
3435  done
3436IFS=$as_save_IFS
3437
3438fi
3439fi
3440CC=$ac_cv_prog_CC
3441if test -n "$CC"; then
3442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443$as_echo "$CC" >&6; }
3444else
3445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446$as_echo "no" >&6; }
3447fi
3448
3449
3450fi
3451if test -z "$ac_cv_prog_CC"; then
3452  ac_ct_CC=$CC
3453  # Extract the first word of "gcc", so it can be a program name with args.
3454set dummy gcc; ac_word=$2
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456$as_echo_n "checking for $ac_word... " >&6; }
3457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3458  $as_echo_n "(cached) " >&6
3459else
3460  if test -n "$ac_ct_CC"; then
3461  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462else
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466  IFS=$as_save_IFS
3467  test -z "$as_dir" && as_dir=.
3468    for ac_exec_ext in '' $ac_executable_extensions; do
3469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470    ac_cv_prog_ac_ct_CC="gcc"
3471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472    break 2
3473  fi
3474done
3475  done
3476IFS=$as_save_IFS
3477
3478fi
3479fi
3480ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481if test -n "$ac_ct_CC"; then
3482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3483$as_echo "$ac_ct_CC" >&6; }
3484else
3485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486$as_echo "no" >&6; }
3487fi
3488
3489  if test "x$ac_ct_CC" = x; then
3490    CC=""
3491  else
3492    case $cross_compiling:$ac_tool_warned in
3493yes:)
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496ac_tool_warned=yes ;;
3497esac
3498    CC=$ac_ct_CC
3499  fi
3500else
3501  CC="$ac_cv_prog_CC"
3502fi
3503
3504if test -z "$CC"; then
3505          if test -n "$ac_tool_prefix"; then
3506    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3507set dummy ${ac_tool_prefix}cc; ac_word=$2
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509$as_echo_n "checking for $ac_word... " >&6; }
3510if test "${ac_cv_prog_CC+set}" = set; then :
3511  $as_echo_n "(cached) " >&6
3512else
3513  if test -n "$CC"; then
3514  ac_cv_prog_CC="$CC" # Let the user override the test.
3515else
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519  IFS=$as_save_IFS
3520  test -z "$as_dir" && as_dir=.
3521    for ac_exec_ext in '' $ac_executable_extensions; do
3522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523    ac_cv_prog_CC="${ac_tool_prefix}cc"
3524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525    break 2
3526  fi
3527done
3528  done
3529IFS=$as_save_IFS
3530
3531fi
3532fi
3533CC=$ac_cv_prog_CC
3534if test -n "$CC"; then
3535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536$as_echo "$CC" >&6; }
3537else
3538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539$as_echo "no" >&6; }
3540fi
3541
3542
3543  fi
3544fi
3545if test -z "$CC"; then
3546  # Extract the first word of "cc", so it can be a program name with args.
3547set dummy cc; ac_word=$2
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549$as_echo_n "checking for $ac_word... " >&6; }
3550if test "${ac_cv_prog_CC+set}" = set; then :
3551  $as_echo_n "(cached) " >&6
3552else
3553  if test -n "$CC"; then
3554  ac_cv_prog_CC="$CC" # Let the user override the test.
3555else
3556  ac_prog_rejected=no
3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH
3559do
3560  IFS=$as_save_IFS
3561  test -z "$as_dir" && as_dir=.
3562    for ac_exec_ext in '' $ac_executable_extensions; do
3563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3565       ac_prog_rejected=yes
3566       continue
3567     fi
3568    ac_cv_prog_CC="cc"
3569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570    break 2
3571  fi
3572done
3573  done
3574IFS=$as_save_IFS
3575
3576if test $ac_prog_rejected = yes; then
3577  # We found a bogon in the path, so make sure we never use it.
3578  set dummy $ac_cv_prog_CC
3579  shift
3580  if test $# != 0; then
3581    # We chose a different compiler from the bogus one.
3582    # However, it has the same basename, so the bogon will be chosen
3583    # first if we set CC to just the basename; use the full file name.
3584    shift
3585    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3586  fi
3587fi
3588fi
3589fi
3590CC=$ac_cv_prog_CC
3591if test -n "$CC"; then
3592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3593$as_echo "$CC" >&6; }
3594else
3595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596$as_echo "no" >&6; }
3597fi
3598
3599
3600fi
3601if test -z "$CC"; then
3602  if test -n "$ac_tool_prefix"; then
3603  for ac_prog in cl.exe
3604  do
3605    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608$as_echo_n "checking for $ac_word... " >&6; }
3609if test "${ac_cv_prog_CC+set}" = set; then :
3610  $as_echo_n "(cached) " >&6
3611else
3612  if test -n "$CC"; then
3613  ac_cv_prog_CC="$CC" # Let the user override the test.
3614else
3615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616for as_dir in $PATH
3617do
3618  IFS=$as_save_IFS
3619  test -z "$as_dir" && as_dir=.
3620    for ac_exec_ext in '' $ac_executable_extensions; do
3621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624    break 2
3625  fi
3626done
3627  done
3628IFS=$as_save_IFS
3629
3630fi
3631fi
3632CC=$ac_cv_prog_CC
3633if test -n "$CC"; then
3634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635$as_echo "$CC" >&6; }
3636else
3637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638$as_echo "no" >&6; }
3639fi
3640
3641
3642    test -n "$CC" && break
3643  done
3644fi
3645if test -z "$CC"; then
3646  ac_ct_CC=$CC
3647  for ac_prog in cl.exe
3648do
3649  # Extract the first word of "$ac_prog", so it can be a program name with args.
3650set dummy $ac_prog; ac_word=$2
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652$as_echo_n "checking for $ac_word... " >&6; }
3653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3654  $as_echo_n "(cached) " >&6
3655else
3656  if test -n "$ac_ct_CC"; then
3657  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3658else
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662  IFS=$as_save_IFS
3663  test -z "$as_dir" && as_dir=.
3664    for ac_exec_ext in '' $ac_executable_extensions; do
3665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666    ac_cv_prog_ac_ct_CC="$ac_prog"
3667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668    break 2
3669  fi
3670done
3671  done
3672IFS=$as_save_IFS
3673
3674fi
3675fi
3676ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677if test -n "$ac_ct_CC"; then
3678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3679$as_echo "$ac_ct_CC" >&6; }
3680else
3681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682$as_echo "no" >&6; }
3683fi
3684
3685
3686  test -n "$ac_ct_CC" && break
3687done
3688
3689  if test "x$ac_ct_CC" = x; then
3690    CC=""
3691  else
3692    case $cross_compiling:$ac_tool_warned in
3693yes:)
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696ac_tool_warned=yes ;;
3697esac
3698    CC=$ac_ct_CC
3699  fi
3700fi
3701
3702fi
3703
3704
3705test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707as_fn_error "no acceptable C compiler found in \$PATH
3708See \`config.log' for more details." "$LINENO" 5; }
3709
3710# Provide some information about the compiler.
3711$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3712set X $ac_compile
3713ac_compiler=$2
3714for ac_option in --version -v -V -qversion; do
3715  { { ac_try="$ac_compiler $ac_option >&5"
3716case "(($ac_try" in
3717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718  *) ac_try_echo=$ac_try;;
3719esac
3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721$as_echo "$ac_try_echo"; } >&5
3722  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3723  ac_status=$?
3724  if test -s conftest.err; then
3725    sed '10a\
3726... rest of stderr output deleted ...
3727         10q' conftest.err >conftest.er1
3728    cat conftest.er1 >&5
3729    rm -f conftest.er1 conftest.err
3730  fi
3731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732  test $ac_status = 0; }
3733done
3734
3735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h.  */
3737
3738int
3739main ()
3740{
3741
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746ac_clean_files_save=$ac_clean_files
3747ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3748# Try to create an executable without -o first, disregard a.out.
3749# It will help us diagnose broken compilers, and finding out an intuition
3750# of exeext.
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3752$as_echo_n "checking for C compiler default output file name... " >&6; }
3753ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3754
3755# The possible output files:
3756ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3757
3758ac_rmfiles=
3759for ac_file in $ac_files
3760do
3761  case $ac_file in
3762    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3763    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3764  esac
3765done
3766rm -f $ac_rmfiles
3767
3768if { { ac_try="$ac_link_default"
3769case "(($ac_try" in
3770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771  *) ac_try_echo=$ac_try;;
3772esac
3773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774$as_echo "$ac_try_echo"; } >&5
3775  (eval "$ac_link_default") 2>&5
3776  ac_status=$?
3777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778  test $ac_status = 0; }; then :
3779  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3780# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3781# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3782# so that the user can short-circuit this test for compilers unknown to
3783# Autoconf.
3784for ac_file in $ac_files ''
3785do
3786  test -f "$ac_file" || continue
3787  case $ac_file in
3788    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3789	;;
3790    [ab].out )
3791	# We found the default executable, but exeext='' is most
3792	# certainly right.
3793	break;;
3794    *.* )
3795	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3796	then :; else
3797	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3798	fi
3799	# We set ac_cv_exeext here because the later test for it is not
3800	# safe: cross compilers may not add the suffix if given an `-o'
3801	# argument, so we may need to know it at that point already.
3802	# Even if this section looks crufty: it has the advantage of
3803	# actually working.
3804	break;;
3805    * )
3806	break;;
3807  esac
3808done
3809test "$ac_cv_exeext" = no && ac_cv_exeext=
3810
3811else
3812  ac_file=''
3813fi
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3815$as_echo "$ac_file" >&6; }
3816if test -z "$ac_file"; then :
3817  $as_echo "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822{ as_fn_set_status 77
3823as_fn_error "C compiler cannot create executables
3824See \`config.log' for more details." "$LINENO" 5; }; }
3825fi
3826ac_exeext=$ac_cv_exeext
3827
3828# Check that the compiler produces executables we can run.  If not, either
3829# the compiler is broken, or we cross compile.
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3831$as_echo_n "checking whether the C compiler works... " >&6; }
3832# If not cross compiling, check that we can run a simple program.
3833if test "$cross_compiling" != yes; then
3834  if { ac_try='./$ac_file'
3835  { { case "(($ac_try" in
3836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837  *) ac_try_echo=$ac_try;;
3838esac
3839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840$as_echo "$ac_try_echo"; } >&5
3841  (eval "$ac_try") 2>&5
3842  ac_status=$?
3843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844  test $ac_status = 0; }; }; then
3845    cross_compiling=no
3846  else
3847    if test "$cross_compiling" = maybe; then
3848	cross_compiling=yes
3849    else
3850	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3852as_fn_error "cannot run C compiled programs.
3853If you meant to cross compile, use \`--host'.
3854See \`config.log' for more details." "$LINENO" 5; }
3855    fi
3856  fi
3857fi
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3859$as_echo "yes" >&6; }
3860
3861rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3862ac_clean_files=$ac_clean_files_save
3863# Check that the compiler produces executables we can run.  If not, either
3864# the compiler is broken, or we cross compile.
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3866$as_echo_n "checking whether we are cross compiling... " >&6; }
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3868$as_echo "$cross_compiling" >&6; }
3869
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3871$as_echo_n "checking for suffix of executables... " >&6; }
3872if { { ac_try="$ac_link"
3873case "(($ac_try" in
3874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875  *) ac_try_echo=$ac_try;;
3876esac
3877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878$as_echo "$ac_try_echo"; } >&5
3879  (eval "$ac_link") 2>&5
3880  ac_status=$?
3881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882  test $ac_status = 0; }; then :
3883  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3884# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3885# work properly (i.e., refer to `conftest.exe'), while it won't with
3886# `rm'.
3887for ac_file in conftest.exe conftest conftest.*; do
3888  test -f "$ac_file" || continue
3889  case $ac_file in
3890    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3891    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892	  break;;
3893    * ) break;;
3894  esac
3895done
3896else
3897  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899as_fn_error "cannot compute suffix of executables: cannot compile and link
3900See \`config.log' for more details." "$LINENO" 5; }
3901fi
3902rm -f conftest$ac_cv_exeext
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3904$as_echo "$ac_cv_exeext" >&6; }
3905
3906rm -f conftest.$ac_ext
3907EXEEXT=$ac_cv_exeext
3908ac_exeext=$EXEEXT
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3910$as_echo_n "checking for suffix of object files... " >&6; }
3911if test "${ac_cv_objext+set}" = set; then :
3912  $as_echo_n "(cached) " >&6
3913else
3914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915/* end confdefs.h.  */
3916
3917int
3918main ()
3919{
3920
3921  ;
3922  return 0;
3923}
3924_ACEOF
3925rm -f conftest.o conftest.obj
3926if { { ac_try="$ac_compile"
3927case "(($ac_try" in
3928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929  *) ac_try_echo=$ac_try;;
3930esac
3931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932$as_echo "$ac_try_echo"; } >&5
3933  (eval "$ac_compile") 2>&5
3934  ac_status=$?
3935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936  test $ac_status = 0; }; then :
3937  for ac_file in conftest.o conftest.obj conftest.*; do
3938  test -f "$ac_file" || continue;
3939  case $ac_file in
3940    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3941    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3942       break;;
3943  esac
3944done
3945else
3946  $as_echo "$as_me: failed program was:" >&5
3947sed 's/^/| /' conftest.$ac_ext >&5
3948
3949{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951as_fn_error "cannot compute suffix of object files: cannot compile
3952See \`config.log' for more details." "$LINENO" 5; }
3953fi
3954rm -f conftest.$ac_cv_objext conftest.$ac_ext
3955fi
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3957$as_echo "$ac_cv_objext" >&6; }
3958OBJEXT=$ac_cv_objext
3959ac_objext=$OBJEXT
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3961$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3962if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3963  $as_echo_n "(cached) " >&6
3964else
3965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966/* end confdefs.h.  */
3967
3968int
3969main ()
3970{
3971#ifndef __GNUC__
3972       choke me
3973#endif
3974
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979if ac_fn_c_try_compile "$LINENO"; then :
3980  ac_compiler_gnu=yes
3981else
3982  ac_compiler_gnu=no
3983fi
3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985ac_cv_c_compiler_gnu=$ac_compiler_gnu
3986
3987fi
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3989$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3990if test $ac_compiler_gnu = yes; then
3991  GCC=yes
3992else
3993  GCC=
3994fi
3995ac_test_CFLAGS=${CFLAGS+set}
3996ac_save_CFLAGS=$CFLAGS
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3998$as_echo_n "checking whether $CC accepts -g... " >&6; }
3999if test "${ac_cv_prog_cc_g+set}" = set; then :
4000  $as_echo_n "(cached) " >&6
4001else
4002  ac_save_c_werror_flag=$ac_c_werror_flag
4003   ac_c_werror_flag=yes
4004   ac_cv_prog_cc_g=no
4005   CFLAGS="-g"
4006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007/* end confdefs.h.  */
4008
4009int
4010main ()
4011{
4012
4013  ;
4014  return 0;
4015}
4016_ACEOF
4017if ac_fn_c_try_compile "$LINENO"; then :
4018  ac_cv_prog_cc_g=yes
4019else
4020  CFLAGS=""
4021      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h.  */
4023
4024int
4025main ()
4026{
4027
4028  ;
4029  return 0;
4030}
4031_ACEOF
4032if ac_fn_c_try_compile "$LINENO"; then :
4033
4034else
4035  ac_c_werror_flag=$ac_save_c_werror_flag
4036	 CFLAGS="-g"
4037	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h.  */
4039
4040int
4041main ()
4042{
4043
4044  ;
4045  return 0;
4046}
4047_ACEOF
4048if ac_fn_c_try_compile "$LINENO"; then :
4049  ac_cv_prog_cc_g=yes
4050fi
4051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052fi
4053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054fi
4055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056   ac_c_werror_flag=$ac_save_c_werror_flag
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4059$as_echo "$ac_cv_prog_cc_g" >&6; }
4060if test "$ac_test_CFLAGS" = set; then
4061  CFLAGS=$ac_save_CFLAGS
4062elif test $ac_cv_prog_cc_g = yes; then
4063  if test "$GCC" = yes; then
4064    CFLAGS="-g -O2"
4065  else
4066    CFLAGS="-g"
4067  fi
4068else
4069  if test "$GCC" = yes; then
4070    CFLAGS="-O2"
4071  else
4072    CFLAGS=
4073  fi
4074fi
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4076$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4077if test "${ac_cv_prog_cc_c89+set}" = set; then :
4078  $as_echo_n "(cached) " >&6
4079else
4080  ac_cv_prog_cc_c89=no
4081ac_save_CC=$CC
4082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083/* end confdefs.h.  */
4084#include <stdarg.h>
4085#include <stdio.h>
4086#include <sys/types.h>
4087#include <sys/stat.h>
4088/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4089struct buf { int x; };
4090FILE * (*rcsopen) (struct buf *, struct stat *, int);
4091static char *e (p, i)
4092     char **p;
4093     int i;
4094{
4095  return p[i];
4096}
4097static char *f (char * (*g) (char **, int), char **p, ...)
4098{
4099  char *s;
4100  va_list v;
4101  va_start (v,p);
4102  s = g (p, va_arg (v,int));
4103  va_end (v);
4104  return s;
4105}
4106
4107/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4108   function prototypes and stuff, but not '\xHH' hex character constants.
4109   These don't provoke an error unfortunately, instead are silently treated
4110   as 'x'.  The following induces an error, until -std is added to get
4111   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4112   array size at least.  It's necessary to write '\x00'==0 to get something
4113   that's true only with -std.  */
4114int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4115
4116/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4117   inside strings and character constants.  */
4118#define FOO(x) 'x'
4119int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4120
4121int test (int i, double x);
4122struct s1 {int (*f) (int a);};
4123struct s2 {int (*f) (double a);};
4124int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4125int argc;
4126char **argv;
4127int
4128main ()
4129{
4130return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4131  ;
4132  return 0;
4133}
4134_ACEOF
4135for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4136	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4137do
4138  CC="$ac_save_CC $ac_arg"
4139  if ac_fn_c_try_compile "$LINENO"; then :
4140  ac_cv_prog_cc_c89=$ac_arg
4141fi
4142rm -f core conftest.err conftest.$ac_objext
4143  test "x$ac_cv_prog_cc_c89" != "xno" && break
4144done
4145rm -f conftest.$ac_ext
4146CC=$ac_save_CC
4147
4148fi
4149# AC_CACHE_VAL
4150case "x$ac_cv_prog_cc_c89" in
4151  x)
4152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4153$as_echo "none needed" >&6; } ;;
4154  xno)
4155    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4156$as_echo "unsupported" >&6; } ;;
4157  *)
4158    CC="$CC $ac_cv_prog_cc_c89"
4159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4160$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4161esac
4162if test "x$ac_cv_prog_cc_c89" != xno; then :
4163
4164fi
4165
4166ac_ext=c
4167ac_cpp='$CPP $CPPFLAGS'
4168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171DEPDIR="${am__leading_dot}deps"
4172
4173ac_config_commands="$ac_config_commands depfiles"
4174
4175
4176am_make=${MAKE-make}
4177cat > confinc << 'END'
4178am__doit:
4179	@echo this is the am__doit target
4180.PHONY: am__doit
4181END
4182# If we don't find an include directive, just comment out the code.
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4184$as_echo_n "checking for style of include used by $am_make... " >&6; }
4185am__include="#"
4186am__quote=
4187_am_result=none
4188# First try GNU make style include.
4189echo "include confinc" > confmf
4190# Ignore all kinds of additional output from `make'.
4191case `$am_make -s -f confmf 2> /dev/null` in #(
4192*the\ am__doit\ target*)
4193  am__include=include
4194  am__quote=
4195  _am_result=GNU
4196  ;;
4197esac
4198# Now try BSD make style include.
4199if test "$am__include" = "#"; then
4200   echo '.include "confinc"' > confmf
4201   case `$am_make -s -f confmf 2> /dev/null` in #(
4202   *the\ am__doit\ target*)
4203     am__include=.include
4204     am__quote="\""
4205     _am_result=BSD
4206     ;;
4207   esac
4208fi
4209
4210
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4212$as_echo "$_am_result" >&6; }
4213rm -f confinc confmf
4214
4215# Check whether --enable-dependency-tracking was given.
4216if test "${enable_dependency_tracking+set}" = set; then :
4217  enableval=$enable_dependency_tracking;
4218fi
4219
4220if test "x$enable_dependency_tracking" != xno; then
4221  am_depcomp="$ac_aux_dir/depcomp"
4222  AMDEPBACKSLASH='\'
4223fi
4224 if test "x$enable_dependency_tracking" != xno; then
4225  AMDEP_TRUE=
4226  AMDEP_FALSE='#'
4227else
4228  AMDEP_TRUE='#'
4229  AMDEP_FALSE=
4230fi
4231
4232
4233
4234depcc="$CC"   am_compiler_list=
4235
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4237$as_echo_n "checking dependency style of $depcc... " >&6; }
4238if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4239  $as_echo_n "(cached) " >&6
4240else
4241  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4242  # We make a subdir and do the tests there.  Otherwise we can end up
4243  # making bogus files that we don't know about and never remove.  For
4244  # instance it was reported that on HP-UX the gcc test will end up
4245  # making a dummy file named `D' -- because `-MD' means `put the output
4246  # in D'.
4247  mkdir conftest.dir
4248  # Copy depcomp to subdir because otherwise we won't find it if we're
4249  # using a relative directory.
4250  cp "$am_depcomp" conftest.dir
4251  cd conftest.dir
4252  # We will build objects and dependencies in a subdirectory because
4253  # it helps to detect inapplicable dependency modes.  For instance
4254  # both Tru64's cc and ICC support -MD to output dependencies as a
4255  # side effect of compilation, but ICC will put the dependencies in
4256  # the current directory while Tru64 will put them in the object
4257  # directory.
4258  mkdir sub
4259
4260  am_cv_CC_dependencies_compiler_type=none
4261  if test "$am_compiler_list" = ""; then
4262     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4263  fi
4264  am__universal=false
4265  case " $depcc " in #(
4266     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4267     esac
4268
4269  for depmode in $am_compiler_list; do
4270    # Setup a source with many dependencies, because some compilers
4271    # like to wrap large dependency lists on column 80 (with \), and
4272    # we should not choose a depcomp mode which is confused by this.
4273    #
4274    # We need to recreate these files for each test, as the compiler may
4275    # overwrite some of them when testing with obscure command lines.
4276    # This happens at least with the AIX C compiler.
4277    : > sub/conftest.c
4278    for i in 1 2 3 4 5 6; do
4279      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4280      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4281      # Solaris 8's {/usr,}/bin/sh.
4282      touch sub/conftst$i.h
4283    done
4284    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4285
4286    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4287    # mode.  It turns out that the SunPro C++ compiler does not properly
4288    # handle `-M -o', and we need to detect this.  Also, some Intel
4289    # versions had trouble with output in subdirs
4290    am__obj=sub/conftest.${OBJEXT-o}
4291    am__minus_obj="-o $am__obj"
4292    case $depmode in
4293    gcc)
4294      # This depmode causes a compiler race in universal mode.
4295      test "$am__universal" = false || continue
4296      ;;
4297    nosideeffect)
4298      # after this tag, mechanisms are not by side-effect, so they'll
4299      # only be used when explicitly requested
4300      if test "x$enable_dependency_tracking" = xyes; then
4301	continue
4302      else
4303	break
4304      fi
4305      ;;
4306    msvisualcpp | msvcmsys)
4307      # This compiler won't grok `-c -o', but also, the minuso test has
4308      # not run yet.  These depmodes are late enough in the game, and
4309      # so weak that their functioning should not be impacted.
4310      am__obj=conftest.${OBJEXT-o}
4311      am__minus_obj=
4312      ;;
4313    none) break ;;
4314    esac
4315    if depmode=$depmode \
4316       source=sub/conftest.c object=$am__obj \
4317       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4318       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4319         >/dev/null 2>conftest.err &&
4320       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4321       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4322       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4323       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4324      # icc doesn't choke on unknown options, it will just issue warnings
4325      # or remarks (even with -Werror).  So we grep stderr for any message
4326      # that says an option was ignored or not supported.
4327      # When given -MP, icc 7.0 and 7.1 complain thusly:
4328      #   icc: Command line warning: ignoring option '-M'; no argument required
4329      # The diagnosis changed in icc 8.0:
4330      #   icc: Command line remark: option '-MP' not supported
4331      if (grep 'ignoring option' conftest.err ||
4332          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4333        am_cv_CC_dependencies_compiler_type=$depmode
4334        break
4335      fi
4336    fi
4337  done
4338
4339  cd ..
4340  rm -rf conftest.dir
4341else
4342  am_cv_CC_dependencies_compiler_type=none
4343fi
4344
4345fi
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4347$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4348CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4349
4350 if
4351  test "x$enable_dependency_tracking" != xno \
4352  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4353  am__fastdepCC_TRUE=
4354  am__fastdepCC_FALSE='#'
4355else
4356  am__fastdepCC_TRUE='#'
4357  am__fastdepCC_FALSE=
4358fi
4359
4360
4361ac_ext=cpp
4362ac_cpp='$CXXCPP $CPPFLAGS'
4363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4366if test -z "$CXX"; then
4367  if test -n "$CCC"; then
4368    CXX=$CCC
4369  else
4370    if test -n "$ac_tool_prefix"; then
4371  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4372  do
4373    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4374set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376$as_echo_n "checking for $ac_word... " >&6; }
4377if test "${ac_cv_prog_CXX+set}" = set; then :
4378  $as_echo_n "(cached) " >&6
4379else
4380  if test -n "$CXX"; then
4381  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4382else
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386  IFS=$as_save_IFS
4387  test -z "$as_dir" && as_dir=.
4388    for ac_exec_ext in '' $ac_executable_extensions; do
4389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392    break 2
4393  fi
4394done
4395  done
4396IFS=$as_save_IFS
4397
4398fi
4399fi
4400CXX=$ac_cv_prog_CXX
4401if test -n "$CXX"; then
4402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4403$as_echo "$CXX" >&6; }
4404else
4405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406$as_echo "no" >&6; }
4407fi
4408
4409
4410    test -n "$CXX" && break
4411  done
4412fi
4413if test -z "$CXX"; then
4414  ac_ct_CXX=$CXX
4415  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4416do
4417  # Extract the first word of "$ac_prog", so it can be a program name with args.
4418set dummy $ac_prog; ac_word=$2
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420$as_echo_n "checking for $ac_word... " >&6; }
4421if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4422  $as_echo_n "(cached) " >&6
4423else
4424  if test -n "$ac_ct_CXX"; then
4425  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4426else
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430  IFS=$as_save_IFS
4431  test -z "$as_dir" && as_dir=.
4432    for ac_exec_ext in '' $ac_executable_extensions; do
4433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434    ac_cv_prog_ac_ct_CXX="$ac_prog"
4435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4436    break 2
4437  fi
4438done
4439  done
4440IFS=$as_save_IFS
4441
4442fi
4443fi
4444ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4445if test -n "$ac_ct_CXX"; then
4446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4447$as_echo "$ac_ct_CXX" >&6; }
4448else
4449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450$as_echo "no" >&6; }
4451fi
4452
4453
4454  test -n "$ac_ct_CXX" && break
4455done
4456
4457  if test "x$ac_ct_CXX" = x; then
4458    CXX="g++"
4459  else
4460    case $cross_compiling:$ac_tool_warned in
4461yes:)
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4464ac_tool_warned=yes ;;
4465esac
4466    CXX=$ac_ct_CXX
4467  fi
4468fi
4469
4470  fi
4471fi
4472# Provide some information about the compiler.
4473$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4474set X $ac_compile
4475ac_compiler=$2
4476for ac_option in --version -v -V -qversion; do
4477  { { ac_try="$ac_compiler $ac_option >&5"
4478case "(($ac_try" in
4479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480  *) ac_try_echo=$ac_try;;
4481esac
4482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483$as_echo "$ac_try_echo"; } >&5
4484  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4485  ac_status=$?
4486  if test -s conftest.err; then
4487    sed '10a\
4488... rest of stderr output deleted ...
4489         10q' conftest.err >conftest.er1
4490    cat conftest.er1 >&5
4491    rm -f conftest.er1 conftest.err
4492  fi
4493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494  test $ac_status = 0; }
4495done
4496
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4498$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4499if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4500  $as_echo_n "(cached) " >&6
4501else
4502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h.  */
4504
4505int
4506main ()
4507{
4508#ifndef __GNUC__
4509       choke me
4510#endif
4511
4512  ;
4513  return 0;
4514}
4515_ACEOF
4516if ac_fn_cxx_try_compile "$LINENO"; then :
4517  ac_compiler_gnu=yes
4518else
4519  ac_compiler_gnu=no
4520fi
4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4523
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4526$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4527if test $ac_compiler_gnu = yes; then
4528  GXX=yes
4529else
4530  GXX=
4531fi
4532ac_test_CXXFLAGS=${CXXFLAGS+set}
4533ac_save_CXXFLAGS=$CXXFLAGS
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4535$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4536if test "${ac_cv_prog_cxx_g+set}" = set; then :
4537  $as_echo_n "(cached) " >&6
4538else
4539  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4540   ac_cxx_werror_flag=yes
4541   ac_cv_prog_cxx_g=no
4542   CXXFLAGS="-g"
4543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544/* end confdefs.h.  */
4545
4546int
4547main ()
4548{
4549
4550  ;
4551  return 0;
4552}
4553_ACEOF
4554if ac_fn_cxx_try_compile "$LINENO"; then :
4555  ac_cv_prog_cxx_g=yes
4556else
4557  CXXFLAGS=""
4558      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559/* end confdefs.h.  */
4560
4561int
4562main ()
4563{
4564
4565  ;
4566  return 0;
4567}
4568_ACEOF
4569if ac_fn_cxx_try_compile "$LINENO"; then :
4570
4571else
4572  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4573	 CXXFLAGS="-g"
4574	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575/* end confdefs.h.  */
4576
4577int
4578main ()
4579{
4580
4581  ;
4582  return 0;
4583}
4584_ACEOF
4585if ac_fn_cxx_try_compile "$LINENO"; then :
4586  ac_cv_prog_cxx_g=yes
4587fi
4588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589fi
4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591fi
4592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594fi
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4596$as_echo "$ac_cv_prog_cxx_g" >&6; }
4597if test "$ac_test_CXXFLAGS" = set; then
4598  CXXFLAGS=$ac_save_CXXFLAGS
4599elif test $ac_cv_prog_cxx_g = yes; then
4600  if test "$GXX" = yes; then
4601    CXXFLAGS="-g -O2"
4602  else
4603    CXXFLAGS="-g"
4604  fi
4605else
4606  if test "$GXX" = yes; then
4607    CXXFLAGS="-O2"
4608  else
4609    CXXFLAGS=
4610  fi
4611fi
4612ac_ext=c
4613ac_cpp='$CPP $CPPFLAGS'
4614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617
4618depcc="$CXX"  am_compiler_list=
4619
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4621$as_echo_n "checking dependency style of $depcc... " >&6; }
4622if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4626  # We make a subdir and do the tests there.  Otherwise we can end up
4627  # making bogus files that we don't know about and never remove.  For
4628  # instance it was reported that on HP-UX the gcc test will end up
4629  # making a dummy file named `D' -- because `-MD' means `put the output
4630  # in D'.
4631  mkdir conftest.dir
4632  # Copy depcomp to subdir because otherwise we won't find it if we're
4633  # using a relative directory.
4634  cp "$am_depcomp" conftest.dir
4635  cd conftest.dir
4636  # We will build objects and dependencies in a subdirectory because
4637  # it helps to detect inapplicable dependency modes.  For instance
4638  # both Tru64's cc and ICC support -MD to output dependencies as a
4639  # side effect of compilation, but ICC will put the dependencies in
4640  # the current directory while Tru64 will put them in the object
4641  # directory.
4642  mkdir sub
4643
4644  am_cv_CXX_dependencies_compiler_type=none
4645  if test "$am_compiler_list" = ""; then
4646     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4647  fi
4648  am__universal=false
4649  case " $depcc " in #(
4650     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4651     esac
4652
4653  for depmode in $am_compiler_list; do
4654    # Setup a source with many dependencies, because some compilers
4655    # like to wrap large dependency lists on column 80 (with \), and
4656    # we should not choose a depcomp mode which is confused by this.
4657    #
4658    # We need to recreate these files for each test, as the compiler may
4659    # overwrite some of them when testing with obscure command lines.
4660    # This happens at least with the AIX C compiler.
4661    : > sub/conftest.c
4662    for i in 1 2 3 4 5 6; do
4663      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4664      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4665      # Solaris 8's {/usr,}/bin/sh.
4666      touch sub/conftst$i.h
4667    done
4668    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4669
4670    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4671    # mode.  It turns out that the SunPro C++ compiler does not properly
4672    # handle `-M -o', and we need to detect this.  Also, some Intel
4673    # versions had trouble with output in subdirs
4674    am__obj=sub/conftest.${OBJEXT-o}
4675    am__minus_obj="-o $am__obj"
4676    case $depmode in
4677    gcc)
4678      # This depmode causes a compiler race in universal mode.
4679      test "$am__universal" = false || continue
4680      ;;
4681    nosideeffect)
4682      # after this tag, mechanisms are not by side-effect, so they'll
4683      # only be used when explicitly requested
4684      if test "x$enable_dependency_tracking" = xyes; then
4685	continue
4686      else
4687	break
4688      fi
4689      ;;
4690    msvisualcpp | msvcmsys)
4691      # This compiler won't grok `-c -o', but also, the minuso test has
4692      # not run yet.  These depmodes are late enough in the game, and
4693      # so weak that their functioning should not be impacted.
4694      am__obj=conftest.${OBJEXT-o}
4695      am__minus_obj=
4696      ;;
4697    none) break ;;
4698    esac
4699    if depmode=$depmode \
4700       source=sub/conftest.c object=$am__obj \
4701       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4702       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4703         >/dev/null 2>conftest.err &&
4704       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4705       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4706       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4707       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4708      # icc doesn't choke on unknown options, it will just issue warnings
4709      # or remarks (even with -Werror).  So we grep stderr for any message
4710      # that says an option was ignored or not supported.
4711      # When given -MP, icc 7.0 and 7.1 complain thusly:
4712      #   icc: Command line warning: ignoring option '-M'; no argument required
4713      # The diagnosis changed in icc 8.0:
4714      #   icc: Command line remark: option '-MP' not supported
4715      if (grep 'ignoring option' conftest.err ||
4716          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4717        am_cv_CXX_dependencies_compiler_type=$depmode
4718        break
4719      fi
4720    fi
4721  done
4722
4723  cd ..
4724  rm -rf conftest.dir
4725else
4726  am_cv_CXX_dependencies_compiler_type=none
4727fi
4728
4729fi
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4731$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4732CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4733
4734 if
4735  test "x$enable_dependency_tracking" != xno \
4736  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4737  am__fastdepCXX_TRUE=
4738  am__fastdepCXX_FALSE='#'
4739else
4740  am__fastdepCXX_TRUE='#'
4741  am__fastdepCXX_FALSE=
4742fi
4743
4744
4745# By default we simply use the C compiler to build assembly code.
4746
4747test "${CCAS+set}" = set || CCAS=$CC
4748test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4749
4750
4751
4752depcc="$CCAS"   am_compiler_list=
4753
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4755$as_echo_n "checking dependency style of $depcc... " >&6; }
4756if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4757  $as_echo_n "(cached) " >&6
4758else
4759  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4760  # We make a subdir and do the tests there.  Otherwise we can end up
4761  # making bogus files that we don't know about and never remove.  For
4762  # instance it was reported that on HP-UX the gcc test will end up
4763  # making a dummy file named `D' -- because `-MD' means `put the output
4764  # in D'.
4765  mkdir conftest.dir
4766  # Copy depcomp to subdir because otherwise we won't find it if we're
4767  # using a relative directory.
4768  cp "$am_depcomp" conftest.dir
4769  cd conftest.dir
4770  # We will build objects and dependencies in a subdirectory because
4771  # it helps to detect inapplicable dependency modes.  For instance
4772  # both Tru64's cc and ICC support -MD to output dependencies as a
4773  # side effect of compilation, but ICC will put the dependencies in
4774  # the current directory while Tru64 will put them in the object
4775  # directory.
4776  mkdir sub
4777
4778  am_cv_CCAS_dependencies_compiler_type=none
4779  if test "$am_compiler_list" = ""; then
4780     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4781  fi
4782  am__universal=false
4783
4784
4785  for depmode in $am_compiler_list; do
4786    # Setup a source with many dependencies, because some compilers
4787    # like to wrap large dependency lists on column 80 (with \), and
4788    # we should not choose a depcomp mode which is confused by this.
4789    #
4790    # We need to recreate these files for each test, as the compiler may
4791    # overwrite some of them when testing with obscure command lines.
4792    # This happens at least with the AIX C compiler.
4793    : > sub/conftest.c
4794    for i in 1 2 3 4 5 6; do
4795      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4796      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4797      # Solaris 8's {/usr,}/bin/sh.
4798      touch sub/conftst$i.h
4799    done
4800    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4801
4802    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4803    # mode.  It turns out that the SunPro C++ compiler does not properly
4804    # handle `-M -o', and we need to detect this.  Also, some Intel
4805    # versions had trouble with output in subdirs
4806    am__obj=sub/conftest.${OBJEXT-o}
4807    am__minus_obj="-o $am__obj"
4808    case $depmode in
4809    gcc)
4810      # This depmode causes a compiler race in universal mode.
4811      test "$am__universal" = false || continue
4812      ;;
4813    nosideeffect)
4814      # after this tag, mechanisms are not by side-effect, so they'll
4815      # only be used when explicitly requested
4816      if test "x$enable_dependency_tracking" = xyes; then
4817	continue
4818      else
4819	break
4820      fi
4821      ;;
4822    msvisualcpp | msvcmsys)
4823      # This compiler won't grok `-c -o', but also, the minuso test has
4824      # not run yet.  These depmodes are late enough in the game, and
4825      # so weak that their functioning should not be impacted.
4826      am__obj=conftest.${OBJEXT-o}
4827      am__minus_obj=
4828      ;;
4829    none) break ;;
4830    esac
4831    if depmode=$depmode \
4832       source=sub/conftest.c object=$am__obj \
4833       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4834       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4835         >/dev/null 2>conftest.err &&
4836       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4837       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4838       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4839       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4840      # icc doesn't choke on unknown options, it will just issue warnings
4841      # or remarks (even with -Werror).  So we grep stderr for any message
4842      # that says an option was ignored or not supported.
4843      # When given -MP, icc 7.0 and 7.1 complain thusly:
4844      #   icc: Command line warning: ignoring option '-M'; no argument required
4845      # The diagnosis changed in icc 8.0:
4846      #   icc: Command line remark: option '-MP' not supported
4847      if (grep 'ignoring option' conftest.err ||
4848          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4849        am_cv_CCAS_dependencies_compiler_type=$depmode
4850        break
4851      fi
4852    fi
4853  done
4854
4855  cd ..
4856  rm -rf conftest.dir
4857else
4858  am_cv_CCAS_dependencies_compiler_type=none
4859fi
4860
4861fi
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4863$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4864CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4865
4866 if
4867  test "x$enable_dependency_tracking" != xno \
4868  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4869  am__fastdepCCAS_TRUE=
4870  am__fastdepCCAS_FALSE='#'
4871else
4872  am__fastdepCCAS_TRUE='#'
4873  am__fastdepCCAS_FALSE=
4874fi
4875
4876
4877
4878
4879
4880
4881# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4882# in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4883# in both places for now and restore CFLAGS at the end of config.
4884save_CFLAGS="$CFLAGS"
4885
4886# Find other programs we need.
4887if test -n "$ac_tool_prefix"; then
4888  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4889set dummy ${ac_tool_prefix}ar; ac_word=$2
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891$as_echo_n "checking for $ac_word... " >&6; }
4892if test "${ac_cv_prog_AR+set}" = set; then :
4893  $as_echo_n "(cached) " >&6
4894else
4895  if test -n "$AR"; then
4896  ac_cv_prog_AR="$AR" # Let the user override the test.
4897else
4898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901  IFS=$as_save_IFS
4902  test -z "$as_dir" && as_dir=.
4903    for ac_exec_ext in '' $ac_executable_extensions; do
4904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905    ac_cv_prog_AR="${ac_tool_prefix}ar"
4906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907    break 2
4908  fi
4909done
4910  done
4911IFS=$as_save_IFS
4912
4913fi
4914fi
4915AR=$ac_cv_prog_AR
4916if test -n "$AR"; then
4917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4918$as_echo "$AR" >&6; }
4919else
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921$as_echo "no" >&6; }
4922fi
4923
4924
4925fi
4926if test -z "$ac_cv_prog_AR"; then
4927  ac_ct_AR=$AR
4928  # Extract the first word of "ar", so it can be a program name with args.
4929set dummy ar; ac_word=$2
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931$as_echo_n "checking for $ac_word... " >&6; }
4932if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4933  $as_echo_n "(cached) " >&6
4934else
4935  if test -n "$ac_ct_AR"; then
4936  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4937else
4938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941  IFS=$as_save_IFS
4942  test -z "$as_dir" && as_dir=.
4943    for ac_exec_ext in '' $ac_executable_extensions; do
4944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945    ac_cv_prog_ac_ct_AR="ar"
4946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947    break 2
4948  fi
4949done
4950  done
4951IFS=$as_save_IFS
4952
4953fi
4954fi
4955ac_ct_AR=$ac_cv_prog_ac_ct_AR
4956if test -n "$ac_ct_AR"; then
4957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4958$as_echo "$ac_ct_AR" >&6; }
4959else
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961$as_echo "no" >&6; }
4962fi
4963
4964  if test "x$ac_ct_AR" = x; then
4965    AR=""
4966  else
4967    case $cross_compiling:$ac_tool_warned in
4968yes:)
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971ac_tool_warned=yes ;;
4972esac
4973    AR=$ac_ct_AR
4974  fi
4975else
4976  AR="$ac_cv_prog_AR"
4977fi
4978
4979if test -n "$ac_tool_prefix"; then
4980  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4981set dummy ${ac_tool_prefix}nm; ac_word=$2
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983$as_echo_n "checking for $ac_word... " >&6; }
4984if test "${ac_cv_prog_NM+set}" = set; then :
4985  $as_echo_n "(cached) " >&6
4986else
4987  if test -n "$NM"; then
4988  ac_cv_prog_NM="$NM" # Let the user override the test.
4989else
4990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993  IFS=$as_save_IFS
4994  test -z "$as_dir" && as_dir=.
4995    for ac_exec_ext in '' $ac_executable_extensions; do
4996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997    ac_cv_prog_NM="${ac_tool_prefix}nm"
4998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999    break 2
5000  fi
5001done
5002  done
5003IFS=$as_save_IFS
5004
5005fi
5006fi
5007NM=$ac_cv_prog_NM
5008if test -n "$NM"; then
5009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5010$as_echo "$NM" >&6; }
5011else
5012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013$as_echo "no" >&6; }
5014fi
5015
5016
5017fi
5018if test -z "$ac_cv_prog_NM"; then
5019  ac_ct_NM=$NM
5020  # Extract the first word of "nm", so it can be a program name with args.
5021set dummy nm; ac_word=$2
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023$as_echo_n "checking for $ac_word... " >&6; }
5024if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  if test -n "$ac_ct_NM"; then
5028  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5029else
5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033  IFS=$as_save_IFS
5034  test -z "$as_dir" && as_dir=.
5035    for ac_exec_ext in '' $ac_executable_extensions; do
5036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037    ac_cv_prog_ac_ct_NM="nm"
5038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039    break 2
5040  fi
5041done
5042  done
5043IFS=$as_save_IFS
5044
5045fi
5046fi
5047ac_ct_NM=$ac_cv_prog_ac_ct_NM
5048if test -n "$ac_ct_NM"; then
5049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5050$as_echo "$ac_ct_NM" >&6; }
5051else
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053$as_echo "no" >&6; }
5054fi
5055
5056  if test "x$ac_ct_NM" = x; then
5057    NM=""
5058  else
5059    case $cross_compiling:$ac_tool_warned in
5060yes:)
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5063ac_tool_warned=yes ;;
5064esac
5065    NM=$ac_ct_NM
5066  fi
5067else
5068  NM="$ac_cv_prog_NM"
5069fi
5070
5071if test -n "$ac_tool_prefix"; then
5072  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5073set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075$as_echo_n "checking for $ac_word... " >&6; }
5076if test "${ac_cv_prog_RANLIB+set}" = set; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079  if test -n "$RANLIB"; then
5080  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5081else
5082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085  IFS=$as_save_IFS
5086  test -z "$as_dir" && as_dir=.
5087    for ac_exec_ext in '' $ac_executable_extensions; do
5088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091    break 2
5092  fi
5093done
5094  done
5095IFS=$as_save_IFS
5096
5097fi
5098fi
5099RANLIB=$ac_cv_prog_RANLIB
5100if test -n "$RANLIB"; then
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5102$as_echo "$RANLIB" >&6; }
5103else
5104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105$as_echo "no" >&6; }
5106fi
5107
5108
5109fi
5110if test -z "$ac_cv_prog_RANLIB"; then
5111  ac_ct_RANLIB=$RANLIB
5112  # Extract the first word of "ranlib", so it can be a program name with args.
5113set dummy ranlib; ac_word=$2
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115$as_echo_n "checking for $ac_word... " >&6; }
5116if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  if test -n "$ac_ct_RANLIB"; then
5120  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5121else
5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125  IFS=$as_save_IFS
5126  test -z "$as_dir" && as_dir=.
5127    for ac_exec_ext in '' $ac_executable_extensions; do
5128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129    ac_cv_prog_ac_ct_RANLIB="ranlib"
5130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131    break 2
5132  fi
5133done
5134  done
5135IFS=$as_save_IFS
5136
5137fi
5138fi
5139ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5140if test -n "$ac_ct_RANLIB"; then
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5142$as_echo "$ac_ct_RANLIB" >&6; }
5143else
5144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145$as_echo "no" >&6; }
5146fi
5147
5148  if test "x$ac_ct_RANLIB" = x; then
5149    RANLIB="ranlib-not-found-in-path-error"
5150  else
5151    case $cross_compiling:$ac_tool_warned in
5152yes:)
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5155ac_tool_warned=yes ;;
5156esac
5157    RANLIB=$ac_ct_RANLIB
5158  fi
5159else
5160  RANLIB="$ac_cv_prog_RANLIB"
5161fi
5162
5163# Extract the first word of "perl", so it can be a program name with args.
5164set dummy perl; ac_word=$2
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166$as_echo_n "checking for $ac_word... " >&6; }
5167if test "${ac_cv_path_PERL+set}" = set; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  case $PERL in
5171  [\\/]* | ?:[\\/]*)
5172  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5173  ;;
5174  *)
5175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH
5177do
5178  IFS=$as_save_IFS
5179  test -z "$as_dir" && as_dir=.
5180    for ac_exec_ext in '' $ac_executable_extensions; do
5181  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184    break 2
5185  fi
5186done
5187  done
5188IFS=$as_save_IFS
5189
5190  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5191  ;;
5192esac
5193fi
5194PERL=$ac_cv_path_PERL
5195if test -n "$PERL"; then
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5197$as_echo "$PERL" >&6; }
5198else
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200$as_echo "no" >&6; }
5201fi
5202
5203
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5205$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5206set x ${MAKE-make}
5207ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5208if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5209  $as_echo_n "(cached) " >&6
5210else
5211  cat >conftest.make <<\_ACEOF
5212SHELL = /bin/sh
5213all:
5214	@echo '@@@%%%=$(MAKE)=@@@%%%'
5215_ACEOF
5216# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5217case `${MAKE-make} -f conftest.make 2>/dev/null` in
5218  *@@@%%%=?*=@@@%%%*)
5219    eval ac_cv_prog_make_${ac_make}_set=yes;;
5220  *)
5221    eval ac_cv_prog_make_${ac_make}_set=no;;
5222esac
5223rm -f conftest.make
5224fi
5225if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5227$as_echo "yes" >&6; }
5228  SET_MAKE=
5229else
5230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
5232  SET_MAKE="MAKE=${MAKE-make}"
5233fi
5234
5235
5236
5237# See if makeinfo has been installed and is modern enough
5238# that we can use it.
5239
5240  # Extract the first word of "makeinfo", so it can be a program name with args.
5241set dummy makeinfo; ac_word=$2
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243$as_echo_n "checking for $ac_word... " >&6; }
5244if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5245  $as_echo_n "(cached) " >&6
5246else
5247  if test -n "$MAKEINFO"; then
5248  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253  IFS=$as_save_IFS
5254  test -z "$as_dir" && as_dir=.
5255    for ac_exec_ext in '' $ac_executable_extensions; do
5256  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257    ac_cv_prog_MAKEINFO="makeinfo"
5258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259    break 2
5260  fi
5261done
5262  done
5263IFS=$as_save_IFS
5264
5265fi
5266fi
5267MAKEINFO=$ac_cv_prog_MAKEINFO
5268if test -n "$MAKEINFO"; then
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5270$as_echo "$MAKEINFO" >&6; }
5271else
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273$as_echo "no" >&6; }
5274fi
5275
5276
5277  if test -n "$MAKEINFO"; then
5278    # Found it, now check the version.
5279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5280$as_echo_n "checking for modern makeinfo... " >&6; }
5281if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5282  $as_echo_n "(cached) " >&6
5283else
5284  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5285                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5286
5287                    case $ac_prog_version in
5288                      '')  gcc_cv_prog_makeinfo_modern=no;;
5289                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
5290                      *)   gcc_cv_prog_makeinfo_modern=no;;
5291                    esac
5292
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5295$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5296  else
5297    gcc_cv_prog_makeinfo_modern=no
5298  fi
5299  if test $gcc_cv_prog_makeinfo_modern = no; then
5300    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5301  fi
5302
5303 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5304  BUILD_INFO_TRUE=
5305  BUILD_INFO_FALSE='#'
5306else
5307  BUILD_INFO_TRUE='#'
5308  BUILD_INFO_FALSE=
5309fi
5310
5311
5312
5313# Configure libtool
5314case `pwd` in
5315  *\ * | *\	*)
5316    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5317$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5318esac
5319
5320
5321
5322macro_version='2.2.7a'
5323macro_revision='1.3134'
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337ltmain="$ac_aux_dir/ltmain.sh"
5338
5339# Backslashify metacharacters that are still active within
5340# double-quoted strings.
5341sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5342
5343# Same as above, but do not quote variable references.
5344double_quote_subst='s/\(["`\\]\)/\\\1/g'
5345
5346# Sed substitution to delay expansion of an escaped shell variable in a
5347# double_quote_subst'ed string.
5348delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5349
5350# Sed substitution to delay expansion of an escaped single quote.
5351delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5352
5353# Sed substitution to avoid accidental globbing in evaled expressions
5354no_glob_subst='s/\*/\\\*/g'
5355
5356ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5357ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5358ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5359
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5361$as_echo_n "checking how to print strings... " >&6; }
5362# Test print first, because it will be a builtin if present.
5363if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5364   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5365  ECHO='print -r --'
5366elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5367  ECHO='printf %s\n'
5368else
5369  # Use this function as a fallback that always works.
5370  func_fallback_echo ()
5371  {
5372    eval 'cat <<_LTECHO_EOF
5373$1
5374_LTECHO_EOF'
5375  }
5376  ECHO='func_fallback_echo'
5377fi
5378
5379# func_echo_all arg...
5380# Invoke $ECHO with all args, space-separated.
5381func_echo_all ()
5382{
5383    $ECHO ""
5384}
5385
5386case "$ECHO" in
5387  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5388$as_echo "printf" >&6; } ;;
5389  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5390$as_echo "print -r" >&6; } ;;
5391  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5392$as_echo "cat" >&6; } ;;
5393esac
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5409$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5410if test "${ac_cv_path_SED+set}" = set; then :
5411  $as_echo_n "(cached) " >&6
5412else
5413            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5414     for ac_i in 1 2 3 4 5 6 7; do
5415       ac_script="$ac_script$as_nl$ac_script"
5416     done
5417     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5418     { ac_script=; unset ac_script;}
5419     if test -z "$SED"; then
5420  ac_path_SED_found=false
5421  # Loop through the user's path and test for each of PROGNAME-LIST
5422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423for as_dir in $PATH
5424do
5425  IFS=$as_save_IFS
5426  test -z "$as_dir" && as_dir=.
5427    for ac_prog in sed gsed; do
5428    for ac_exec_ext in '' $ac_executable_extensions; do
5429      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5430      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5431# Check for GNU ac_path_SED and select it if it is found.
5432  # Check for GNU $ac_path_SED
5433case `"$ac_path_SED" --version 2>&1` in
5434*GNU*)
5435  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5436*)
5437  ac_count=0
5438  $as_echo_n 0123456789 >"conftest.in"
5439  while :
5440  do
5441    cat "conftest.in" "conftest.in" >"conftest.tmp"
5442    mv "conftest.tmp" "conftest.in"
5443    cp "conftest.in" "conftest.nl"
5444    $as_echo '' >> "conftest.nl"
5445    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5446    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5447    as_fn_arith $ac_count + 1 && ac_count=$as_val
5448    if test $ac_count -gt ${ac_path_SED_max-0}; then
5449      # Best one so far, save it but keep looking for a better one
5450      ac_cv_path_SED="$ac_path_SED"
5451      ac_path_SED_max=$ac_count
5452    fi
5453    # 10*(2^10) chars as input seems more than enough
5454    test $ac_count -gt 10 && break
5455  done
5456  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5457esac
5458
5459      $ac_path_SED_found && break 3
5460    done
5461  done
5462  done
5463IFS=$as_save_IFS
5464  if test -z "$ac_cv_path_SED"; then
5465    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5466  fi
5467else
5468  ac_cv_path_SED=$SED
5469fi
5470
5471fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5473$as_echo "$ac_cv_path_SED" >&6; }
5474 SED="$ac_cv_path_SED"
5475  rm -f conftest.sed
5476
5477test -z "$SED" && SED=sed
5478Xsed="$SED -e 1s/^X//"
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5491$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5492if test "${ac_cv_path_GREP+set}" = set; then :
5493  $as_echo_n "(cached) " >&6
5494else
5495  if test -z "$GREP"; then
5496  ac_path_GREP_found=false
5497  # Loop through the user's path and test for each of PROGNAME-LIST
5498  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5500do
5501  IFS=$as_save_IFS
5502  test -z "$as_dir" && as_dir=.
5503    for ac_prog in grep ggrep; do
5504    for ac_exec_ext in '' $ac_executable_extensions; do
5505      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5506      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5507# Check for GNU ac_path_GREP and select it if it is found.
5508  # Check for GNU $ac_path_GREP
5509case `"$ac_path_GREP" --version 2>&1` in
5510*GNU*)
5511  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5512*)
5513  ac_count=0
5514  $as_echo_n 0123456789 >"conftest.in"
5515  while :
5516  do
5517    cat "conftest.in" "conftest.in" >"conftest.tmp"
5518    mv "conftest.tmp" "conftest.in"
5519    cp "conftest.in" "conftest.nl"
5520    $as_echo 'GREP' >> "conftest.nl"
5521    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5522    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5523    as_fn_arith $ac_count + 1 && ac_count=$as_val
5524    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5525      # Best one so far, save it but keep looking for a better one
5526      ac_cv_path_GREP="$ac_path_GREP"
5527      ac_path_GREP_max=$ac_count
5528    fi
5529    # 10*(2^10) chars as input seems more than enough
5530    test $ac_count -gt 10 && break
5531  done
5532  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5533esac
5534
5535      $ac_path_GREP_found && break 3
5536    done
5537  done
5538  done
5539IFS=$as_save_IFS
5540  if test -z "$ac_cv_path_GREP"; then
5541    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5542  fi
5543else
5544  ac_cv_path_GREP=$GREP
5545fi
5546
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5549$as_echo "$ac_cv_path_GREP" >&6; }
5550 GREP="$ac_cv_path_GREP"
5551
5552
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5554$as_echo_n "checking for egrep... " >&6; }
5555if test "${ac_cv_path_EGREP+set}" = set; then :
5556  $as_echo_n "(cached) " >&6
5557else
5558  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5559   then ac_cv_path_EGREP="$GREP -E"
5560   else
5561     if test -z "$EGREP"; then
5562  ac_path_EGREP_found=false
5563  # Loop through the user's path and test for each of PROGNAME-LIST
5564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5566do
5567  IFS=$as_save_IFS
5568  test -z "$as_dir" && as_dir=.
5569    for ac_prog in egrep; do
5570    for ac_exec_ext in '' $ac_executable_extensions; do
5571      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5572      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5573# Check for GNU ac_path_EGREP and select it if it is found.
5574  # Check for GNU $ac_path_EGREP
5575case `"$ac_path_EGREP" --version 2>&1` in
5576*GNU*)
5577  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5578*)
5579  ac_count=0
5580  $as_echo_n 0123456789 >"conftest.in"
5581  while :
5582  do
5583    cat "conftest.in" "conftest.in" >"conftest.tmp"
5584    mv "conftest.tmp" "conftest.in"
5585    cp "conftest.in" "conftest.nl"
5586    $as_echo 'EGREP' >> "conftest.nl"
5587    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5588    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5589    as_fn_arith $ac_count + 1 && ac_count=$as_val
5590    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5591      # Best one so far, save it but keep looking for a better one
5592      ac_cv_path_EGREP="$ac_path_EGREP"
5593      ac_path_EGREP_max=$ac_count
5594    fi
5595    # 10*(2^10) chars as input seems more than enough
5596    test $ac_count -gt 10 && break
5597  done
5598  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5599esac
5600
5601      $ac_path_EGREP_found && break 3
5602    done
5603  done
5604  done
5605IFS=$as_save_IFS
5606  if test -z "$ac_cv_path_EGREP"; then
5607    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5608  fi
5609else
5610  ac_cv_path_EGREP=$EGREP
5611fi
5612
5613   fi
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5616$as_echo "$ac_cv_path_EGREP" >&6; }
5617 EGREP="$ac_cv_path_EGREP"
5618
5619
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5621$as_echo_n "checking for fgrep... " >&6; }
5622if test "${ac_cv_path_FGREP+set}" = set; then :
5623  $as_echo_n "(cached) " >&6
5624else
5625  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5626   then ac_cv_path_FGREP="$GREP -F"
5627   else
5628     if test -z "$FGREP"; then
5629  ac_path_FGREP_found=false
5630  # Loop through the user's path and test for each of PROGNAME-LIST
5631  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5633do
5634  IFS=$as_save_IFS
5635  test -z "$as_dir" && as_dir=.
5636    for ac_prog in fgrep; do
5637    for ac_exec_ext in '' $ac_executable_extensions; do
5638      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5639      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5640# Check for GNU ac_path_FGREP and select it if it is found.
5641  # Check for GNU $ac_path_FGREP
5642case `"$ac_path_FGREP" --version 2>&1` in
5643*GNU*)
5644  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5645*)
5646  ac_count=0
5647  $as_echo_n 0123456789 >"conftest.in"
5648  while :
5649  do
5650    cat "conftest.in" "conftest.in" >"conftest.tmp"
5651    mv "conftest.tmp" "conftest.in"
5652    cp "conftest.in" "conftest.nl"
5653    $as_echo 'FGREP' >> "conftest.nl"
5654    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5655    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5656    as_fn_arith $ac_count + 1 && ac_count=$as_val
5657    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5658      # Best one so far, save it but keep looking for a better one
5659      ac_cv_path_FGREP="$ac_path_FGREP"
5660      ac_path_FGREP_max=$ac_count
5661    fi
5662    # 10*(2^10) chars as input seems more than enough
5663    test $ac_count -gt 10 && break
5664  done
5665  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5666esac
5667
5668      $ac_path_FGREP_found && break 3
5669    done
5670  done
5671  done
5672IFS=$as_save_IFS
5673  if test -z "$ac_cv_path_FGREP"; then
5674    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5675  fi
5676else
5677  ac_cv_path_FGREP=$FGREP
5678fi
5679
5680   fi
5681fi
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5683$as_echo "$ac_cv_path_FGREP" >&6; }
5684 FGREP="$ac_cv_path_FGREP"
5685
5686
5687test -z "$GREP" && GREP=grep
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707# Check whether --with-gnu-ld was given.
5708if test "${with_gnu_ld+set}" = set; then :
5709  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5710else
5711  with_gnu_ld=no
5712fi
5713
5714ac_prog=ld
5715if test "$GCC" = yes; then
5716  # Check if gcc -print-prog-name=ld gives a path.
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5718$as_echo_n "checking for ld used by $CC... " >&6; }
5719  case $host in
5720  *-*-mingw*)
5721    # gcc leaves a trailing carriage return which upsets mingw
5722    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5723  *)
5724    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5725  esac
5726  case $ac_prog in
5727    # Accept absolute paths.
5728    [\\/]* | ?:[\\/]*)
5729      re_direlt='/[^/][^/]*/\.\./'
5730      # Canonicalize the pathname of ld
5731      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5732      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5733	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5734      done
5735      test -z "$LD" && LD="$ac_prog"
5736      ;;
5737  "")
5738    # If it fails, then pretend we aren't using GCC.
5739    ac_prog=ld
5740    ;;
5741  *)
5742    # If it is relative, then search for the first ld in PATH.
5743    with_gnu_ld=unknown
5744    ;;
5745  esac
5746elif test "$with_gnu_ld" = yes; then
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5748$as_echo_n "checking for GNU ld... " >&6; }
5749else
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5751$as_echo_n "checking for non-GNU ld... " >&6; }
5752fi
5753if test "${lt_cv_path_LD+set}" = set; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  if test -z "$LD"; then
5757  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5758  for ac_dir in $PATH; do
5759    IFS="$lt_save_ifs"
5760    test -z "$ac_dir" && ac_dir=.
5761    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5762      lt_cv_path_LD="$ac_dir/$ac_prog"
5763      # Check to see if the program is GNU ld.  I'd rather use --version,
5764      # but apparently some variants of GNU ld only accept -v.
5765      # Break only if it was the GNU/non-GNU ld that we prefer.
5766      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5767      *GNU* | *'with BFD'*)
5768	test "$with_gnu_ld" != no && break
5769	;;
5770      *)
5771	test "$with_gnu_ld" != yes && break
5772	;;
5773      esac
5774    fi
5775  done
5776  IFS="$lt_save_ifs"
5777else
5778  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5779fi
5780fi
5781
5782LD="$lt_cv_path_LD"
5783if test -n "$LD"; then
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5785$as_echo "$LD" >&6; }
5786else
5787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789fi
5790test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5792$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5793if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5794  $as_echo_n "(cached) " >&6
5795else
5796  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5797case `$LD -v 2>&1 </dev/null` in
5798*GNU* | *'with BFD'*)
5799  lt_cv_prog_gnu_ld=yes
5800  ;;
5801*)
5802  lt_cv_prog_gnu_ld=no
5803  ;;
5804esac
5805fi
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5807$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5808with_gnu_ld=$lt_cv_prog_gnu_ld
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5819$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5820if test "${lt_cv_path_NM+set}" = set; then :
5821  $as_echo_n "(cached) " >&6
5822else
5823  if test -n "$NM"; then
5824  # Let the user override the test.
5825  lt_cv_path_NM="$NM"
5826else
5827  lt_nm_to_check="${ac_tool_prefix}nm"
5828  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5829    lt_nm_to_check="$lt_nm_to_check nm"
5830  fi
5831  for lt_tmp_nm in $lt_nm_to_check; do
5832    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5833    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5834      IFS="$lt_save_ifs"
5835      test -z "$ac_dir" && ac_dir=.
5836      tmp_nm="$ac_dir/$lt_tmp_nm"
5837      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5838	# Check to see if the nm accepts a BSD-compat flag.
5839	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5840	#   nm: unknown option "B" ignored
5841	# Tru64's nm complains that /dev/null is an invalid object file
5842	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5843	*/dev/null* | *'Invalid file or object type'*)
5844	  lt_cv_path_NM="$tmp_nm -B"
5845	  break
5846	  ;;
5847	*)
5848	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5849	  */dev/null*)
5850	    lt_cv_path_NM="$tmp_nm -p"
5851	    break
5852	    ;;
5853	  *)
5854	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5855	    continue # so that we can try to find one that supports BSD flags
5856	    ;;
5857	  esac
5858	  ;;
5859	esac
5860      fi
5861    done
5862    IFS="$lt_save_ifs"
5863  done
5864  : ${lt_cv_path_NM=no}
5865fi
5866fi
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5868$as_echo "$lt_cv_path_NM" >&6; }
5869if test "$lt_cv_path_NM" != "no"; then
5870  NM="$lt_cv_path_NM"
5871else
5872  # Didn't find any BSD compatible name lister, look for dumpbin.
5873  if test -n "$DUMPBIN"; then :
5874    # Let the user override the test.
5875  else
5876    if test -n "$ac_tool_prefix"; then
5877  for ac_prog in dumpbin "link -dump"
5878  do
5879    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882$as_echo_n "checking for $ac_word... " >&6; }
5883if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5884  $as_echo_n "(cached) " >&6
5885else
5886  if test -n "$DUMPBIN"; then
5887  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5888else
5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892  IFS=$as_save_IFS
5893  test -z "$as_dir" && as_dir=.
5894    for ac_exec_ext in '' $ac_executable_extensions; do
5895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898    break 2
5899  fi
5900done
5901  done
5902IFS=$as_save_IFS
5903
5904fi
5905fi
5906DUMPBIN=$ac_cv_prog_DUMPBIN
5907if test -n "$DUMPBIN"; then
5908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5909$as_echo "$DUMPBIN" >&6; }
5910else
5911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
5914
5915
5916    test -n "$DUMPBIN" && break
5917  done
5918fi
5919if test -z "$DUMPBIN"; then
5920  ac_ct_DUMPBIN=$DUMPBIN
5921  for ac_prog in dumpbin "link -dump"
5922do
5923  # Extract the first word of "$ac_prog", so it can be a program name with args.
5924set dummy $ac_prog; ac_word=$2
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926$as_echo_n "checking for $ac_word... " >&6; }
5927if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  if test -n "$ac_ct_DUMPBIN"; then
5931  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936  IFS=$as_save_IFS
5937  test -z "$as_dir" && as_dir=.
5938    for ac_exec_ext in '' $ac_executable_extensions; do
5939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942    break 2
5943  fi
5944done
5945  done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5951if test -n "$ac_ct_DUMPBIN"; then
5952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5953$as_echo "$ac_ct_DUMPBIN" >&6; }
5954else
5955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956$as_echo "no" >&6; }
5957fi
5958
5959
5960  test -n "$ac_ct_DUMPBIN" && break
5961done
5962
5963  if test "x$ac_ct_DUMPBIN" = x; then
5964    DUMPBIN=":"
5965  else
5966    case $cross_compiling:$ac_tool_warned in
5967yes:)
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970ac_tool_warned=yes ;;
5971esac
5972    DUMPBIN=$ac_ct_DUMPBIN
5973  fi
5974fi
5975
5976    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5977    *COFF*)
5978      DUMPBIN="$DUMPBIN -symbols"
5979      ;;
5980    *)
5981      DUMPBIN=:
5982      ;;
5983    esac
5984  fi
5985
5986  if test "$DUMPBIN" != ":"; then
5987    NM="$DUMPBIN"
5988  fi
5989fi
5990test -z "$NM" && NM=nm
5991
5992
5993
5994
5995
5996
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5998$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5999if test "${lt_cv_nm_interface+set}" = set; then :
6000  $as_echo_n "(cached) " >&6
6001else
6002  lt_cv_nm_interface="BSD nm"
6003  echo "int some_variable = 0;" > conftest.$ac_ext
6004  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6005  (eval "$ac_compile" 2>conftest.err)
6006  cat conftest.err >&5
6007  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6008  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6009  cat conftest.err >&5
6010  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6011  cat conftest.out >&5
6012  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6013    lt_cv_nm_interface="MS dumpbin"
6014  fi
6015  rm -f conftest*
6016fi
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6018$as_echo "$lt_cv_nm_interface" >&6; }
6019
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6021$as_echo_n "checking whether ln -s works... " >&6; }
6022LN_S=$as_ln_s
6023if test "$LN_S" = "ln -s"; then
6024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6025$as_echo "yes" >&6; }
6026else
6027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6028$as_echo "no, using $LN_S" >&6; }
6029fi
6030
6031# find the maximum length of command line arguments
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6033$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6034if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6035  $as_echo_n "(cached) " >&6
6036else
6037    i=0
6038  teststring="ABCD"
6039
6040  case $build_os in
6041  msdosdjgpp*)
6042    # On DJGPP, this test can blow up pretty badly due to problems in libc
6043    # (any single argument exceeding 2000 bytes causes a buffer overrun
6044    # during glob expansion).  Even if it were fixed, the result of this
6045    # check would be larger than it should be.
6046    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6047    ;;
6048
6049  gnu*)
6050    # Under GNU Hurd, this test is not required because there is
6051    # no limit to the length of command line arguments.
6052    # Libtool will interpret -1 as no limit whatsoever
6053    lt_cv_sys_max_cmd_len=-1;
6054    ;;
6055
6056  cygwin* | mingw* | cegcc*)
6057    # On Win9x/ME, this test blows up -- it succeeds, but takes
6058    # about 5 minutes as the teststring grows exponentially.
6059    # Worse, since 9x/ME are not pre-emptively multitasking,
6060    # you end up with a "frozen" computer, even though with patience
6061    # the test eventually succeeds (with a max line length of 256k).
6062    # Instead, let's just punt: use the minimum linelength reported by
6063    # all of the supported platforms: 8192 (on NT/2K/XP).
6064    lt_cv_sys_max_cmd_len=8192;
6065    ;;
6066
6067  mint*)
6068    # On MiNT this can take a long time and run out of memory.
6069    lt_cv_sys_max_cmd_len=8192;
6070    ;;
6071
6072  amigaos*)
6073    # On AmigaOS with pdksh, this test takes hours, literally.
6074    # So we just punt and use a minimum line length of 8192.
6075    lt_cv_sys_max_cmd_len=8192;
6076    ;;
6077
6078  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6079    # This has been around since 386BSD, at least.  Likely further.
6080    if test -x /sbin/sysctl; then
6081      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6082    elif test -x /usr/sbin/sysctl; then
6083      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6084    else
6085      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6086    fi
6087    # And add a safety zone
6088    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6089    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6090    ;;
6091
6092  interix*)
6093    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6094    lt_cv_sys_max_cmd_len=196608
6095    ;;
6096
6097  osf*)
6098    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6099    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6100    # nice to cause kernel panics so lets avoid the loop below.
6101    # First set a reasonable default.
6102    lt_cv_sys_max_cmd_len=16384
6103    #
6104    if test -x /sbin/sysconfig; then
6105      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6106        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6107      esac
6108    fi
6109    ;;
6110  sco3.2v5*)
6111    lt_cv_sys_max_cmd_len=102400
6112    ;;
6113  sysv5* | sco5v6* | sysv4.2uw2*)
6114    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6115    if test -n "$kargmax"; then
6116      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6117    else
6118      lt_cv_sys_max_cmd_len=32768
6119    fi
6120    ;;
6121  *)
6122    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6123    if test -n "$lt_cv_sys_max_cmd_len"; then
6124      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6125      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6126    else
6127      # Make teststring a little bigger before we do anything with it.
6128      # a 1K string should be a reasonable start.
6129      for i in 1 2 3 4 5 6 7 8 ; do
6130        teststring=$teststring$teststring
6131      done
6132      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6133      # If test is not a shell built-in, we'll probably end up computing a
6134      # maximum length that is only half of the actual maximum length, but
6135      # we can't tell.
6136      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6137	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6138	      test $i != 17 # 1/2 MB should be enough
6139      do
6140        i=`expr $i + 1`
6141        teststring=$teststring$teststring
6142      done
6143      # Only check the string length outside the loop.
6144      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6145      teststring=
6146      # Add a significant safety factor because C++ compilers can tack on
6147      # massive amounts of additional arguments before passing them to the
6148      # linker.  It appears as though 1/2 is a usable value.
6149      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6150    fi
6151    ;;
6152  esac
6153
6154fi
6155
6156if test -n $lt_cv_sys_max_cmd_len ; then
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6158$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6159else
6160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6161$as_echo "none" >&6; }
6162fi
6163max_cmd_len=$lt_cv_sys_max_cmd_len
6164
6165
6166
6167
6168
6169
6170: ${CP="cp -f"}
6171: ${MV="mv -f"}
6172: ${RM="rm -f"}
6173
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6175$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6176# Try some XSI features
6177xsi_shell=no
6178( _lt_dummy="a/b/c"
6179  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6180      = c,a/b,, \
6181    && eval 'test $(( 1 + 1 )) -eq 2 \
6182    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6183  && xsi_shell=yes
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6185$as_echo "$xsi_shell" >&6; }
6186
6187
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6189$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6190lt_shell_append=no
6191( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6192    >/dev/null 2>&1 \
6193  && lt_shell_append=yes
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6195$as_echo "$lt_shell_append" >&6; }
6196
6197
6198if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6199  lt_unset=unset
6200else
6201  lt_unset=false
6202fi
6203
6204
6205
6206
6207
6208# test EBCDIC or ASCII
6209case `echo X|tr X '\101'` in
6210 A) # ASCII based system
6211    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6212  lt_SP2NL='tr \040 \012'
6213  lt_NL2SP='tr \015\012 \040\040'
6214  ;;
6215 *) # EBCDIC based system
6216  lt_SP2NL='tr \100 \n'
6217  lt_NL2SP='tr \r\n \100\100'
6218  ;;
6219esac
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6230$as_echo_n "checking for $LD option to reload object files... " >&6; }
6231if test "${lt_cv_ld_reload_flag+set}" = set; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  lt_cv_ld_reload_flag='-r'
6235fi
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6237$as_echo "$lt_cv_ld_reload_flag" >&6; }
6238reload_flag=$lt_cv_ld_reload_flag
6239case $reload_flag in
6240"" | " "*) ;;
6241*) reload_flag=" $reload_flag" ;;
6242esac
6243reload_cmds='$LD$reload_flag -o $output$reload_objs'
6244case $host_os in
6245  darwin*)
6246    if test "$GCC" = yes; then
6247      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6248    else
6249      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6250    fi
6251    ;;
6252esac
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262if test -n "$ac_tool_prefix"; then
6263  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6264set dummy ${ac_tool_prefix}objdump; ac_word=$2
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266$as_echo_n "checking for $ac_word... " >&6; }
6267if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6268  $as_echo_n "(cached) " >&6
6269else
6270  if test -n "$OBJDUMP"; then
6271  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276  IFS=$as_save_IFS
6277  test -z "$as_dir" && as_dir=.
6278    for ac_exec_ext in '' $ac_executable_extensions; do
6279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282    break 2
6283  fi
6284done
6285  done
6286IFS=$as_save_IFS
6287
6288fi
6289fi
6290OBJDUMP=$ac_cv_prog_OBJDUMP
6291if test -n "$OBJDUMP"; then
6292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6293$as_echo "$OBJDUMP" >&6; }
6294else
6295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296$as_echo "no" >&6; }
6297fi
6298
6299
6300fi
6301if test -z "$ac_cv_prog_OBJDUMP"; then
6302  ac_ct_OBJDUMP=$OBJDUMP
6303  # Extract the first word of "objdump", so it can be a program name with args.
6304set dummy objdump; ac_word=$2
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306$as_echo_n "checking for $ac_word... " >&6; }
6307if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6308  $as_echo_n "(cached) " >&6
6309else
6310  if test -n "$ac_ct_OBJDUMP"; then
6311  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6312else
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316  IFS=$as_save_IFS
6317  test -z "$as_dir" && as_dir=.
6318    for ac_exec_ext in '' $ac_executable_extensions; do
6319  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322    break 2
6323  fi
6324done
6325  done
6326IFS=$as_save_IFS
6327
6328fi
6329fi
6330ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6331if test -n "$ac_ct_OBJDUMP"; then
6332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6333$as_echo "$ac_ct_OBJDUMP" >&6; }
6334else
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336$as_echo "no" >&6; }
6337fi
6338
6339  if test "x$ac_ct_OBJDUMP" = x; then
6340    OBJDUMP="false"
6341  else
6342    case $cross_compiling:$ac_tool_warned in
6343yes:)
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6346ac_tool_warned=yes ;;
6347esac
6348    OBJDUMP=$ac_ct_OBJDUMP
6349  fi
6350else
6351  OBJDUMP="$ac_cv_prog_OBJDUMP"
6352fi
6353
6354test -z "$OBJDUMP" && OBJDUMP=objdump
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6365$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6366if test "${lt_cv_deplibs_check_method+set}" = set; then :
6367  $as_echo_n "(cached) " >&6
6368else
6369  lt_cv_file_magic_cmd='$MAGIC_CMD'
6370lt_cv_file_magic_test_file=
6371lt_cv_deplibs_check_method='unknown'
6372# Need to set the preceding variable on all platforms that support
6373# interlibrary dependencies.
6374# 'none' -- dependencies not supported.
6375# `unknown' -- same as none, but documents that we really don't know.
6376# 'pass_all' -- all dependencies passed with no checks.
6377# 'test_compile' -- check by making test program.
6378# 'file_magic [[regex]]' -- check by looking for files in library path
6379# which responds to the $file_magic_cmd with a given extended regex.
6380# If you have `file' or equivalent on your system and you're not sure
6381# whether `pass_all' will *always* work, you probably want this one.
6382
6383case $host_os in
6384aix[4-9]*)
6385  lt_cv_deplibs_check_method=pass_all
6386  ;;
6387
6388beos*)
6389  lt_cv_deplibs_check_method=pass_all
6390  ;;
6391
6392bsdi[45]*)
6393  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6394  lt_cv_file_magic_cmd='/usr/bin/file -L'
6395  lt_cv_file_magic_test_file=/shlib/libc.so
6396  ;;
6397
6398cygwin*)
6399  # func_win32_libid is a shell function defined in ltmain.sh
6400  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6401  lt_cv_file_magic_cmd='func_win32_libid'
6402  ;;
6403
6404mingw* | pw32*)
6405  # Base MSYS/MinGW do not provide the 'file' command needed by
6406  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6407  # unless we find 'file', for example because we are cross-compiling.
6408  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6409  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6410    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6411    lt_cv_file_magic_cmd='func_win32_libid'
6412  else
6413    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6414    lt_cv_file_magic_cmd='$OBJDUMP -f'
6415  fi
6416  ;;
6417
6418cegcc*)
6419  # use the weaker test based on 'objdump'. See mingw*.
6420  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6421  lt_cv_file_magic_cmd='$OBJDUMP -f'
6422  ;;
6423
6424darwin* | rhapsody*)
6425  lt_cv_deplibs_check_method=pass_all
6426  ;;
6427
6428freebsd* | dragonfly*)
6429  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6430    case $host_cpu in
6431    i*86 )
6432      # Not sure whether the presence of OpenBSD here was a mistake.
6433      # Let's accept both of them until this is cleared up.
6434      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6435      lt_cv_file_magic_cmd=/usr/bin/file
6436      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6437      ;;
6438    esac
6439  else
6440    lt_cv_deplibs_check_method=pass_all
6441  fi
6442  ;;
6443
6444gnu*)
6445  lt_cv_deplibs_check_method=pass_all
6446  ;;
6447
6448haiku*)
6449  lt_cv_deplibs_check_method=pass_all
6450  ;;
6451
6452hpux10.20* | hpux11*)
6453  lt_cv_file_magic_cmd=/usr/bin/file
6454  case $host_cpu in
6455  ia64*)
6456    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6457    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6458    ;;
6459  hppa*64*)
6460    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]'
6461    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6462    ;;
6463  *)
6464    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6465    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6466    ;;
6467  esac
6468  ;;
6469
6470interix[3-9]*)
6471  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6472  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6473  ;;
6474
6475irix5* | irix6* | nonstopux*)
6476  case $LD in
6477  *-32|*"-32 ") libmagic=32-bit;;
6478  *-n32|*"-n32 ") libmagic=N32;;
6479  *-64|*"-64 ") libmagic=64-bit;;
6480  *) libmagic=never-match;;
6481  esac
6482  lt_cv_deplibs_check_method=pass_all
6483  ;;
6484
6485# This must be Linux ELF.
6486linux* | k*bsd*-gnu | kopensolaris*-gnu)
6487  lt_cv_deplibs_check_method=pass_all
6488  ;;
6489
6490netbsd*)
6491  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6492    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6493  else
6494    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6495  fi
6496  ;;
6497
6498newos6*)
6499  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6500  lt_cv_file_magic_cmd=/usr/bin/file
6501  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6502  ;;
6503
6504*nto* | *qnx*)
6505  lt_cv_deplibs_check_method=pass_all
6506  ;;
6507
6508openbsd*)
6509  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6510    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6511  else
6512    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6513  fi
6514  ;;
6515
6516osf3* | osf4* | osf5*)
6517  lt_cv_deplibs_check_method=pass_all
6518  ;;
6519
6520rdos*)
6521  lt_cv_deplibs_check_method=pass_all
6522  ;;
6523
6524solaris*)
6525  lt_cv_deplibs_check_method=pass_all
6526  ;;
6527
6528sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6529  lt_cv_deplibs_check_method=pass_all
6530  ;;
6531
6532sysv4 | sysv4.3*)
6533  case $host_vendor in
6534  motorola)
6535    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]'
6536    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6537    ;;
6538  ncr)
6539    lt_cv_deplibs_check_method=pass_all
6540    ;;
6541  sequent)
6542    lt_cv_file_magic_cmd='/bin/file'
6543    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6544    ;;
6545  sni)
6546    lt_cv_file_magic_cmd='/bin/file'
6547    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6548    lt_cv_file_magic_test_file=/lib/libc.so
6549    ;;
6550  siemens)
6551    lt_cv_deplibs_check_method=pass_all
6552    ;;
6553  pc)
6554    lt_cv_deplibs_check_method=pass_all
6555    ;;
6556  esac
6557  ;;
6558
6559tpf*)
6560  lt_cv_deplibs_check_method=pass_all
6561  ;;
6562esac
6563
6564fi
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6566$as_echo "$lt_cv_deplibs_check_method" >&6; }
6567file_magic_cmd=$lt_cv_file_magic_cmd
6568deplibs_check_method=$lt_cv_deplibs_check_method
6569test -z "$deplibs_check_method" && deplibs_check_method=unknown
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582if test -n "$ac_tool_prefix"; then
6583  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6584set dummy ${ac_tool_prefix}ar; ac_word=$2
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586$as_echo_n "checking for $ac_word... " >&6; }
6587if test "${ac_cv_prog_AR+set}" = set; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  if test -n "$AR"; then
6591  ac_cv_prog_AR="$AR" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596  IFS=$as_save_IFS
6597  test -z "$as_dir" && as_dir=.
6598    for ac_exec_ext in '' $ac_executable_extensions; do
6599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600    ac_cv_prog_AR="${ac_tool_prefix}ar"
6601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602    break 2
6603  fi
6604done
6605  done
6606IFS=$as_save_IFS
6607
6608fi
6609fi
6610AR=$ac_cv_prog_AR
6611if test -n "$AR"; then
6612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6613$as_echo "$AR" >&6; }
6614else
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616$as_echo "no" >&6; }
6617fi
6618
6619
6620fi
6621if test -z "$ac_cv_prog_AR"; then
6622  ac_ct_AR=$AR
6623  # Extract the first word of "ar", so it can be a program name with args.
6624set dummy ar; ac_word=$2
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626$as_echo_n "checking for $ac_word... " >&6; }
6627if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6628  $as_echo_n "(cached) " >&6
6629else
6630  if test -n "$ac_ct_AR"; then
6631  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6632else
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636  IFS=$as_save_IFS
6637  test -z "$as_dir" && as_dir=.
6638    for ac_exec_ext in '' $ac_executable_extensions; do
6639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640    ac_cv_prog_ac_ct_AR="ar"
6641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642    break 2
6643  fi
6644done
6645  done
6646IFS=$as_save_IFS
6647
6648fi
6649fi
6650ac_ct_AR=$ac_cv_prog_ac_ct_AR
6651if test -n "$ac_ct_AR"; then
6652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6653$as_echo "$ac_ct_AR" >&6; }
6654else
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656$as_echo "no" >&6; }
6657fi
6658
6659  if test "x$ac_ct_AR" = x; then
6660    AR="false"
6661  else
6662    case $cross_compiling:$ac_tool_warned in
6663yes:)
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6666ac_tool_warned=yes ;;
6667esac
6668    AR=$ac_ct_AR
6669  fi
6670else
6671  AR="$ac_cv_prog_AR"
6672fi
6673
6674test -z "$AR" && AR=ar
6675test -z "$AR_FLAGS" && AR_FLAGS=cru
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687if test -n "$ac_tool_prefix"; then
6688  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}strip; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if test "${ac_cv_prog_STRIP+set}" = set; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  if test -n "$STRIP"; then
6696  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703    for ac_exec_ext in '' $ac_executable_extensions; do
6704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710  done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715STRIP=$ac_cv_prog_STRIP
6716if test -n "$STRIP"; then
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6718$as_echo "$STRIP" >&6; }
6719else
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724
6725fi
6726if test -z "$ac_cv_prog_STRIP"; then
6727  ac_ct_STRIP=$STRIP
6728  # Extract the first word of "strip", so it can be a program name with args.
6729set dummy strip; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  if test -n "$ac_ct_STRIP"; then
6736  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741  IFS=$as_save_IFS
6742  test -z "$as_dir" && as_dir=.
6743    for ac_exec_ext in '' $ac_executable_extensions; do
6744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745    ac_cv_prog_ac_ct_STRIP="strip"
6746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750  done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6756if test -n "$ac_ct_STRIP"; then
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6758$as_echo "$ac_ct_STRIP" >&6; }
6759else
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764  if test "x$ac_ct_STRIP" = x; then
6765    STRIP=":"
6766  else
6767    case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773    STRIP=$ac_ct_STRIP
6774  fi
6775else
6776  STRIP="$ac_cv_prog_STRIP"
6777fi
6778
6779test -z "$STRIP" && STRIP=:
6780
6781
6782
6783
6784
6785
6786if test -n "$ac_tool_prefix"; then
6787  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6788set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790$as_echo_n "checking for $ac_word... " >&6; }
6791if test "${ac_cv_prog_RANLIB+set}" = set; then :
6792  $as_echo_n "(cached) " >&6
6793else
6794  if test -n "$RANLIB"; then
6795  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800  IFS=$as_save_IFS
6801  test -z "$as_dir" && as_dir=.
6802    for ac_exec_ext in '' $ac_executable_extensions; do
6803  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806    break 2
6807  fi
6808done
6809  done
6810IFS=$as_save_IFS
6811
6812fi
6813fi
6814RANLIB=$ac_cv_prog_RANLIB
6815if test -n "$RANLIB"; then
6816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6817$as_echo "$RANLIB" >&6; }
6818else
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
6821fi
6822
6823
6824fi
6825if test -z "$ac_cv_prog_RANLIB"; then
6826  ac_ct_RANLIB=$RANLIB
6827  # Extract the first word of "ranlib", so it can be a program name with args.
6828set dummy ranlib; ac_word=$2
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830$as_echo_n "checking for $ac_word... " >&6; }
6831if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6832  $as_echo_n "(cached) " >&6
6833else
6834  if test -n "$ac_ct_RANLIB"; then
6835  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840  IFS=$as_save_IFS
6841  test -z "$as_dir" && as_dir=.
6842    for ac_exec_ext in '' $ac_executable_extensions; do
6843  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844    ac_cv_prog_ac_ct_RANLIB="ranlib"
6845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846    break 2
6847  fi
6848done
6849  done
6850IFS=$as_save_IFS
6851
6852fi
6853fi
6854ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6855if test -n "$ac_ct_RANLIB"; then
6856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6857$as_echo "$ac_ct_RANLIB" >&6; }
6858else
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860$as_echo "no" >&6; }
6861fi
6862
6863  if test "x$ac_ct_RANLIB" = x; then
6864    RANLIB=":"
6865  else
6866    case $cross_compiling:$ac_tool_warned in
6867yes:)
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870ac_tool_warned=yes ;;
6871esac
6872    RANLIB=$ac_ct_RANLIB
6873  fi
6874else
6875  RANLIB="$ac_cv_prog_RANLIB"
6876fi
6877
6878test -z "$RANLIB" && RANLIB=:
6879
6880
6881
6882
6883
6884
6885# Determine commands to create old-style static archives.
6886old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6887old_postinstall_cmds='chmod 644 $oldlib'
6888old_postuninstall_cmds=
6889
6890if test -n "$RANLIB"; then
6891  case $host_os in
6892  openbsd*)
6893    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6894    ;;
6895  *)
6896    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6897    ;;
6898  esac
6899  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6900fi
6901
6902case $host_os in
6903  darwin*)
6904    lock_old_archive_extraction=yes ;;
6905  *)
6906    lock_old_archive_extraction=no ;;
6907esac
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947# If no C compiler was specified, use CC.
6948LTCC=${LTCC-"$CC"}
6949
6950# If no C compiler flags were specified, use CFLAGS.
6951LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6952
6953# Allow CC to be a program name with arguments.
6954compiler=$CC
6955
6956
6957# Check for command to grab the raw symbol name followed by C symbol from nm.
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6959$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6960if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6961  $as_echo_n "(cached) " >&6
6962else
6963
6964# These are sane defaults that work on at least a few old systems.
6965# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6966
6967# Character class describing NM global symbol codes.
6968symcode='[BCDEGRST]'
6969
6970# Regexp to match symbols that can be accessed directly from C.
6971sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6972
6973# Define system-specific variables.
6974case $host_os in
6975aix*)
6976  symcode='[BCDT]'
6977  ;;
6978cygwin* | mingw* | pw32* | cegcc*)
6979  symcode='[ABCDGISTW]'
6980  ;;
6981hpux*)
6982  if test "$host_cpu" = ia64; then
6983    symcode='[ABCDEGRST]'
6984  fi
6985  ;;
6986irix* | nonstopux*)
6987  symcode='[BCDEGRST]'
6988  ;;
6989osf*)
6990  symcode='[BCDEGQRST]'
6991  ;;
6992solaris*)
6993  symcode='[BDRT]'
6994  ;;
6995sco3.2v5*)
6996  symcode='[DT]'
6997  ;;
6998sysv4.2uw2*)
6999  symcode='[DT]'
7000  ;;
7001sysv5* | sco5v6* | unixware* | OpenUNIX*)
7002  symcode='[ABDT]'
7003  ;;
7004sysv4)
7005  symcode='[DFNSTU]'
7006  ;;
7007esac
7008
7009# If we're using GNU nm, then use its standard symbol codes.
7010case `$NM -V 2>&1` in
7011*GNU* | *'with BFD'*)
7012  symcode='[ABCDGIRSTW]' ;;
7013esac
7014
7015# Transform an extracted symbol line into a proper C declaration.
7016# Some systems (esp. on ia64) link data and code symbols differently,
7017# so use this general approach.
7018lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7019
7020# Transform an extracted symbol line into symbol name and symbol address
7021lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7022lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7023
7024# Handle CRLF in mingw tool chain
7025opt_cr=
7026case $build_os in
7027mingw*)
7028  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7029  ;;
7030esac
7031
7032# Try without a prefix underscore, then with it.
7033for ac_symprfx in "" "_"; do
7034
7035  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7036  symxfrm="\\1 $ac_symprfx\\2 \\2"
7037
7038  # Write the raw and C identifiers.
7039  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7040    # Fake it for dumpbin and say T for any non-static function
7041    # and D for any global variable.
7042    # Also find C++ and __fastcall symbols from MSVC++,
7043    # which start with @ or ?.
7044    lt_cv_sys_global_symbol_pipe="$AWK '"\
7045"     {last_section=section; section=\$ 3};"\
7046"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7047"     \$ 0!~/External *\|/{next};"\
7048"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7049"     {if(hide[section]) next};"\
7050"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7051"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7052"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7053"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7054"     ' prfx=^$ac_symprfx"
7055  else
7056    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7057  fi
7058
7059  # Check to see that the pipe works correctly.
7060  pipe_works=no
7061
7062  rm -f conftest*
7063  cat > conftest.$ac_ext <<_LT_EOF
7064#ifdef __cplusplus
7065extern "C" {
7066#endif
7067char nm_test_var;
7068void nm_test_func(void);
7069void nm_test_func(void){}
7070#ifdef __cplusplus
7071}
7072#endif
7073int main(){nm_test_var='a';nm_test_func();return(0);}
7074_LT_EOF
7075
7076  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7077  (eval $ac_compile) 2>&5
7078  ac_status=$?
7079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7080  test $ac_status = 0; }; then
7081    # Now try to grab the symbols.
7082    nlist=conftest.nm
7083    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7084  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7085  ac_status=$?
7086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087  test $ac_status = 0; } && test -s "$nlist"; then
7088      # Try sorting and uniquifying the output.
7089      if sort "$nlist" | uniq > "$nlist"T; then
7090	mv -f "$nlist"T "$nlist"
7091      else
7092	rm -f "$nlist"T
7093      fi
7094
7095      # Make sure that we snagged all the symbols we need.
7096      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7097	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7098	  cat <<_LT_EOF > conftest.$ac_ext
7099#ifdef __cplusplus
7100extern "C" {
7101#endif
7102
7103_LT_EOF
7104	  # Now generate the symbol file.
7105	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7106
7107	  cat <<_LT_EOF >> conftest.$ac_ext
7108
7109/* The mapping between symbol names and symbols.  */
7110const struct {
7111  const char *name;
7112  void       *address;
7113}
7114lt__PROGRAM__LTX_preloaded_symbols[] =
7115{
7116  { "@PROGRAM@", (void *) 0 },
7117_LT_EOF
7118	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7119	  cat <<\_LT_EOF >> conftest.$ac_ext
7120  {0, (void *) 0}
7121};
7122
7123/* This works around a problem in FreeBSD linker */
7124#ifdef FREEBSD_WORKAROUND
7125static const void *lt_preloaded_setup() {
7126  return lt__PROGRAM__LTX_preloaded_symbols;
7127}
7128#endif
7129
7130#ifdef __cplusplus
7131}
7132#endif
7133_LT_EOF
7134	  # Now try linking the two files.
7135	  mv conftest.$ac_objext conftstm.$ac_objext
7136	  lt_save_LIBS="$LIBS"
7137	  lt_save_CFLAGS="$CFLAGS"
7138	  LIBS="conftstm.$ac_objext"
7139	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7140	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7141  (eval $ac_link) 2>&5
7142  ac_status=$?
7143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7145	    pipe_works=yes
7146	  fi
7147	  LIBS="$lt_save_LIBS"
7148	  CFLAGS="$lt_save_CFLAGS"
7149	else
7150	  echo "cannot find nm_test_func in $nlist" >&5
7151	fi
7152      else
7153	echo "cannot find nm_test_var in $nlist" >&5
7154      fi
7155    else
7156      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7157    fi
7158  else
7159    echo "$progname: failed program was:" >&5
7160    cat conftest.$ac_ext >&5
7161  fi
7162  rm -rf conftest* conftst*
7163
7164  # Do not use the global_symbol_pipe unless it works.
7165  if test "$pipe_works" = yes; then
7166    break
7167  else
7168    lt_cv_sys_global_symbol_pipe=
7169  fi
7170done
7171
7172fi
7173
7174if test -z "$lt_cv_sys_global_symbol_pipe"; then
7175  lt_cv_sys_global_symbol_to_cdecl=
7176fi
7177if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7179$as_echo "failed" >&6; }
7180else
7181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7182$as_echo "ok" >&6; }
7183fi
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207# Check whether --enable-libtool-lock was given.
7208if test "${enable_libtool_lock+set}" = set; then :
7209  enableval=$enable_libtool_lock;
7210fi
7211
7212test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7213
7214# Some flags need to be propagated to the compiler or linker for good
7215# libtool support.
7216case $host in
7217ia64-*-hpux*)
7218  # Find out which ABI we are using.
7219  echo 'int i;' > conftest.$ac_ext
7220  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7221  (eval $ac_compile) 2>&5
7222  ac_status=$?
7223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7224  test $ac_status = 0; }; then
7225    case `/usr/bin/file conftest.$ac_objext` in
7226      *ELF-32*)
7227	HPUX_IA64_MODE="32"
7228	;;
7229      *ELF-64*)
7230	HPUX_IA64_MODE="64"
7231	;;
7232    esac
7233  fi
7234  rm -rf conftest*
7235  ;;
7236*-*-irix6*)
7237  # Find out which ABI we are using.
7238  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7239  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7240  (eval $ac_compile) 2>&5
7241  ac_status=$?
7242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243  test $ac_status = 0; }; then
7244    if test "$lt_cv_prog_gnu_ld" = yes; then
7245      case `/usr/bin/file conftest.$ac_objext` in
7246	*32-bit*)
7247	  LD="${LD-ld} -melf32bsmip"
7248	  ;;
7249	*N32*)
7250	  LD="${LD-ld} -melf32bmipn32"
7251	  ;;
7252	*64-bit*)
7253	  LD="${LD-ld} -melf64bmip"
7254	;;
7255      esac
7256    else
7257      case `/usr/bin/file conftest.$ac_objext` in
7258	*32-bit*)
7259	  LD="${LD-ld} -32"
7260	  ;;
7261	*N32*)
7262	  LD="${LD-ld} -n32"
7263	  ;;
7264	*64-bit*)
7265	  LD="${LD-ld} -64"
7266	  ;;
7267      esac
7268    fi
7269  fi
7270  rm -rf conftest*
7271  ;;
7272
7273x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7274s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7275  # Find out which ABI we are using.
7276  echo 'int i;' > conftest.$ac_ext
7277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278  (eval $ac_compile) 2>&5
7279  ac_status=$?
7280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281  test $ac_status = 0; }; then
7282    case `/usr/bin/file conftest.o` in
7283      *32-bit*)
7284	case $host in
7285	  x86_64-*kfreebsd*-gnu)
7286	    LD="${LD-ld} -m elf_i386_fbsd"
7287	    ;;
7288	  x86_64-*linux*)
7289	    case `/usr/bin/file conftest.o` in
7290	      *x86-64*)
7291		LD="${LD-ld} -m elf32_x86_64"
7292		;;
7293	      *)
7294		LD="${LD-ld} -m elf_i386"
7295		;;
7296	    esac
7297	    ;;
7298	  powerpc64le-*linux*)
7299	    LD="${LD-ld} -m elf32lppclinux"
7300	    ;;
7301	  powerpc64-*linux*)
7302	    LD="${LD-ld} -m elf32ppclinux"
7303	    ;;
7304	  s390x-*linux*)
7305	    LD="${LD-ld} -m elf_s390"
7306	    ;;
7307	  sparc64-*linux*)
7308	    LD="${LD-ld} -m elf32_sparc"
7309	    ;;
7310	esac
7311	;;
7312      *64-bit*)
7313	case $host in
7314	  x86_64-*kfreebsd*-gnu)
7315	    LD="${LD-ld} -m elf_x86_64_fbsd"
7316	    ;;
7317	  x86_64-*linux*)
7318	    LD="${LD-ld} -m elf_x86_64"
7319	    ;;
7320	  powerpcle-*linux*)
7321	    LD="${LD-ld} -m elf64lppc"
7322	    ;;
7323	  powerpc-*linux*)
7324	    LD="${LD-ld} -m elf64ppc"
7325	    ;;
7326	  s390*-*linux*|s390*-*tpf*)
7327	    LD="${LD-ld} -m elf64_s390"
7328	    ;;
7329	  sparc*-*linux*)
7330	    LD="${LD-ld} -m elf64_sparc"
7331	    ;;
7332	esac
7333	;;
7334    esac
7335  fi
7336  rm -rf conftest*
7337  ;;
7338
7339*-*-sco3.2v5*)
7340  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7341  SAVE_CFLAGS="$CFLAGS"
7342  CFLAGS="$CFLAGS -belf"
7343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7344$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7345if test "${lt_cv_cc_needs_belf+set}" = set; then :
7346  $as_echo_n "(cached) " >&6
7347else
7348  ac_ext=c
7349ac_cpp='$CPP $CPPFLAGS'
7350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7352ac_compiler_gnu=$ac_cv_c_compiler_gnu
7353
7354     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355/* end confdefs.h.  */
7356
7357int
7358main ()
7359{
7360
7361  ;
7362  return 0;
7363}
7364_ACEOF
7365if ac_fn_c_try_link "$LINENO"; then :
7366  lt_cv_cc_needs_belf=yes
7367else
7368  lt_cv_cc_needs_belf=no
7369fi
7370rm -f core conftest.err conftest.$ac_objext \
7371    conftest$ac_exeext conftest.$ac_ext
7372     ac_ext=c
7373ac_cpp='$CPP $CPPFLAGS'
7374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377
7378fi
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7380$as_echo "$lt_cv_cc_needs_belf" >&6; }
7381  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7382    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7383    CFLAGS="$SAVE_CFLAGS"
7384  fi
7385  ;;
7386sparc*-*solaris*)
7387  # Find out which ABI we are using.
7388  echo 'int i;' > conftest.$ac_ext
7389  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390  (eval $ac_compile) 2>&5
7391  ac_status=$?
7392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393  test $ac_status = 0; }; then
7394    case `/usr/bin/file conftest.o` in
7395    *64-bit*)
7396      case $lt_cv_prog_gnu_ld in
7397      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7398      *)
7399	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7400	  LD="${LD-ld} -64"
7401	fi
7402	;;
7403      esac
7404      ;;
7405    esac
7406  fi
7407  rm -rf conftest*
7408  ;;
7409esac
7410
7411need_locks="$enable_libtool_lock"
7412
7413
7414  case $host_os in
7415    rhapsody* | darwin*)
7416    if test -n "$ac_tool_prefix"; then
7417  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7418set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420$as_echo_n "checking for $ac_word... " >&6; }
7421if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  if test -n "$DSYMUTIL"; then
7425  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7426else
7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430  IFS=$as_save_IFS
7431  test -z "$as_dir" && as_dir=.
7432    for ac_exec_ext in '' $ac_executable_extensions; do
7433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436    break 2
7437  fi
7438done
7439  done
7440IFS=$as_save_IFS
7441
7442fi
7443fi
7444DSYMUTIL=$ac_cv_prog_DSYMUTIL
7445if test -n "$DSYMUTIL"; then
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7447$as_echo "$DSYMUTIL" >&6; }
7448else
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451fi
7452
7453
7454fi
7455if test -z "$ac_cv_prog_DSYMUTIL"; then
7456  ac_ct_DSYMUTIL=$DSYMUTIL
7457  # Extract the first word of "dsymutil", so it can be a program name with args.
7458set dummy dsymutil; ac_word=$2
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460$as_echo_n "checking for $ac_word... " >&6; }
7461if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7462  $as_echo_n "(cached) " >&6
7463else
7464  if test -n "$ac_ct_DSYMUTIL"; then
7465  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7466else
7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470  IFS=$as_save_IFS
7471  test -z "$as_dir" && as_dir=.
7472    for ac_exec_ext in '' $ac_executable_extensions; do
7473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476    break 2
7477  fi
7478done
7479  done
7480IFS=$as_save_IFS
7481
7482fi
7483fi
7484ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7485if test -n "$ac_ct_DSYMUTIL"; then
7486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7487$as_echo "$ac_ct_DSYMUTIL" >&6; }
7488else
7489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490$as_echo "no" >&6; }
7491fi
7492
7493  if test "x$ac_ct_DSYMUTIL" = x; then
7494    DSYMUTIL=":"
7495  else
7496    case $cross_compiling:$ac_tool_warned in
7497yes:)
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500ac_tool_warned=yes ;;
7501esac
7502    DSYMUTIL=$ac_ct_DSYMUTIL
7503  fi
7504else
7505  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7506fi
7507
7508    if test -n "$ac_tool_prefix"; then
7509  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7510set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512$as_echo_n "checking for $ac_word... " >&6; }
7513if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  if test -n "$NMEDIT"; then
7517  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7518else
7519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522  IFS=$as_save_IFS
7523  test -z "$as_dir" && as_dir=.
7524    for ac_exec_ext in '' $ac_executable_extensions; do
7525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528    break 2
7529  fi
7530done
7531  done
7532IFS=$as_save_IFS
7533
7534fi
7535fi
7536NMEDIT=$ac_cv_prog_NMEDIT
7537if test -n "$NMEDIT"; then
7538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7539$as_echo "$NMEDIT" >&6; }
7540else
7541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542$as_echo "no" >&6; }
7543fi
7544
7545
7546fi
7547if test -z "$ac_cv_prog_NMEDIT"; then
7548  ac_ct_NMEDIT=$NMEDIT
7549  # Extract the first word of "nmedit", so it can be a program name with args.
7550set dummy nmedit; ac_word=$2
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552$as_echo_n "checking for $ac_word... " >&6; }
7553if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  if test -n "$ac_ct_NMEDIT"; then
7557  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7558else
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562  IFS=$as_save_IFS
7563  test -z "$as_dir" && as_dir=.
7564    for ac_exec_ext in '' $ac_executable_extensions; do
7565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568    break 2
7569  fi
7570done
7571  done
7572IFS=$as_save_IFS
7573
7574fi
7575fi
7576ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7577if test -n "$ac_ct_NMEDIT"; then
7578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7579$as_echo "$ac_ct_NMEDIT" >&6; }
7580else
7581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582$as_echo "no" >&6; }
7583fi
7584
7585  if test "x$ac_ct_NMEDIT" = x; then
7586    NMEDIT=":"
7587  else
7588    case $cross_compiling:$ac_tool_warned in
7589yes:)
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592ac_tool_warned=yes ;;
7593esac
7594    NMEDIT=$ac_ct_NMEDIT
7595  fi
7596else
7597  NMEDIT="$ac_cv_prog_NMEDIT"
7598fi
7599
7600    if test -n "$ac_tool_prefix"; then
7601  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7602set dummy ${ac_tool_prefix}lipo; ac_word=$2
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604$as_echo_n "checking for $ac_word... " >&6; }
7605if test "${ac_cv_prog_LIPO+set}" = set; then :
7606  $as_echo_n "(cached) " >&6
7607else
7608  if test -n "$LIPO"; then
7609  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7610else
7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614  IFS=$as_save_IFS
7615  test -z "$as_dir" && as_dir=.
7616    for ac_exec_ext in '' $ac_executable_extensions; do
7617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620    break 2
7621  fi
7622done
7623  done
7624IFS=$as_save_IFS
7625
7626fi
7627fi
7628LIPO=$ac_cv_prog_LIPO
7629if test -n "$LIPO"; then
7630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7631$as_echo "$LIPO" >&6; }
7632else
7633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634$as_echo "no" >&6; }
7635fi
7636
7637
7638fi
7639if test -z "$ac_cv_prog_LIPO"; then
7640  ac_ct_LIPO=$LIPO
7641  # Extract the first word of "lipo", so it can be a program name with args.
7642set dummy lipo; ac_word=$2
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644$as_echo_n "checking for $ac_word... " >&6; }
7645if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7646  $as_echo_n "(cached) " >&6
7647else
7648  if test -n "$ac_ct_LIPO"; then
7649  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7650else
7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654  IFS=$as_save_IFS
7655  test -z "$as_dir" && as_dir=.
7656    for ac_exec_ext in '' $ac_executable_extensions; do
7657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658    ac_cv_prog_ac_ct_LIPO="lipo"
7659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660    break 2
7661  fi
7662done
7663  done
7664IFS=$as_save_IFS
7665
7666fi
7667fi
7668ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7669if test -n "$ac_ct_LIPO"; then
7670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7671$as_echo "$ac_ct_LIPO" >&6; }
7672else
7673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674$as_echo "no" >&6; }
7675fi
7676
7677  if test "x$ac_ct_LIPO" = x; then
7678    LIPO=":"
7679  else
7680    case $cross_compiling:$ac_tool_warned in
7681yes:)
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7684ac_tool_warned=yes ;;
7685esac
7686    LIPO=$ac_ct_LIPO
7687  fi
7688else
7689  LIPO="$ac_cv_prog_LIPO"
7690fi
7691
7692    if test -n "$ac_tool_prefix"; then
7693  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7694set dummy ${ac_tool_prefix}otool; ac_word=$2
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696$as_echo_n "checking for $ac_word... " >&6; }
7697if test "${ac_cv_prog_OTOOL+set}" = set; then :
7698  $as_echo_n "(cached) " >&6
7699else
7700  if test -n "$OTOOL"; then
7701  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7702else
7703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704for as_dir in $PATH
7705do
7706  IFS=$as_save_IFS
7707  test -z "$as_dir" && as_dir=.
7708    for ac_exec_ext in '' $ac_executable_extensions; do
7709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712    break 2
7713  fi
7714done
7715  done
7716IFS=$as_save_IFS
7717
7718fi
7719fi
7720OTOOL=$ac_cv_prog_OTOOL
7721if test -n "$OTOOL"; then
7722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7723$as_echo "$OTOOL" >&6; }
7724else
7725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726$as_echo "no" >&6; }
7727fi
7728
7729
7730fi
7731if test -z "$ac_cv_prog_OTOOL"; then
7732  ac_ct_OTOOL=$OTOOL
7733  # Extract the first word of "otool", so it can be a program name with args.
7734set dummy otool; ac_word=$2
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736$as_echo_n "checking for $ac_word... " >&6; }
7737if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7738  $as_echo_n "(cached) " >&6
7739else
7740  if test -n "$ac_ct_OTOOL"; then
7741  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7742else
7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744for as_dir in $PATH
7745do
7746  IFS=$as_save_IFS
7747  test -z "$as_dir" && as_dir=.
7748    for ac_exec_ext in '' $ac_executable_extensions; do
7749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7750    ac_cv_prog_ac_ct_OTOOL="otool"
7751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752    break 2
7753  fi
7754done
7755  done
7756IFS=$as_save_IFS
7757
7758fi
7759fi
7760ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7761if test -n "$ac_ct_OTOOL"; then
7762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7763$as_echo "$ac_ct_OTOOL" >&6; }
7764else
7765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766$as_echo "no" >&6; }
7767fi
7768
7769  if test "x$ac_ct_OTOOL" = x; then
7770    OTOOL=":"
7771  else
7772    case $cross_compiling:$ac_tool_warned in
7773yes:)
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7776ac_tool_warned=yes ;;
7777esac
7778    OTOOL=$ac_ct_OTOOL
7779  fi
7780else
7781  OTOOL="$ac_cv_prog_OTOOL"
7782fi
7783
7784    if test -n "$ac_tool_prefix"; then
7785  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7786set dummy ${ac_tool_prefix}otool64; ac_word=$2
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788$as_echo_n "checking for $ac_word... " >&6; }
7789if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7790  $as_echo_n "(cached) " >&6
7791else
7792  if test -n "$OTOOL64"; then
7793  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7794else
7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798  IFS=$as_save_IFS
7799  test -z "$as_dir" && as_dir=.
7800    for ac_exec_ext in '' $ac_executable_extensions; do
7801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804    break 2
7805  fi
7806done
7807  done
7808IFS=$as_save_IFS
7809
7810fi
7811fi
7812OTOOL64=$ac_cv_prog_OTOOL64
7813if test -n "$OTOOL64"; then
7814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7815$as_echo "$OTOOL64" >&6; }
7816else
7817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818$as_echo "no" >&6; }
7819fi
7820
7821
7822fi
7823if test -z "$ac_cv_prog_OTOOL64"; then
7824  ac_ct_OTOOL64=$OTOOL64
7825  # Extract the first word of "otool64", so it can be a program name with args.
7826set dummy otool64; ac_word=$2
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828$as_echo_n "checking for $ac_word... " >&6; }
7829if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7830  $as_echo_n "(cached) " >&6
7831else
7832  if test -n "$ac_ct_OTOOL64"; then
7833  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7834else
7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838  IFS=$as_save_IFS
7839  test -z "$as_dir" && as_dir=.
7840    for ac_exec_ext in '' $ac_executable_extensions; do
7841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842    ac_cv_prog_ac_ct_OTOOL64="otool64"
7843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844    break 2
7845  fi
7846done
7847  done
7848IFS=$as_save_IFS
7849
7850fi
7851fi
7852ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7853if test -n "$ac_ct_OTOOL64"; then
7854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7855$as_echo "$ac_ct_OTOOL64" >&6; }
7856else
7857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858$as_echo "no" >&6; }
7859fi
7860
7861  if test "x$ac_ct_OTOOL64" = x; then
7862    OTOOL64=":"
7863  else
7864    case $cross_compiling:$ac_tool_warned in
7865yes:)
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7868ac_tool_warned=yes ;;
7869esac
7870    OTOOL64=$ac_ct_OTOOL64
7871  fi
7872else
7873  OTOOL64="$ac_cv_prog_OTOOL64"
7874fi
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7903$as_echo_n "checking for -single_module linker flag... " >&6; }
7904if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7905  $as_echo_n "(cached) " >&6
7906else
7907  lt_cv_apple_cc_single_mod=no
7908      if test -z "${LT_MULTI_MODULE}"; then
7909	# By default we will add the -single_module flag. You can override
7910	# by either setting the environment variable LT_MULTI_MODULE
7911	# non-empty at configure time, or by adding -multi_module to the
7912	# link flags.
7913	rm -rf libconftest.dylib*
7914	echo "int foo(void){return 1;}" > conftest.c
7915	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7916-dynamiclib -Wl,-single_module conftest.c" >&5
7917	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7918	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7919        _lt_result=$?
7920	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7921	  lt_cv_apple_cc_single_mod=yes
7922	else
7923	  cat conftest.err >&5
7924	fi
7925	rm -rf libconftest.dylib*
7926	rm -f conftest.*
7927      fi
7928fi
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7930$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7932$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7933if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7934  $as_echo_n "(cached) " >&6
7935else
7936  lt_cv_ld_exported_symbols_list=no
7937      save_LDFLAGS=$LDFLAGS
7938      echo "_main" > conftest.sym
7939      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7940      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941/* end confdefs.h.  */
7942
7943int
7944main ()
7945{
7946
7947  ;
7948  return 0;
7949}
7950_ACEOF
7951if ac_fn_c_try_link "$LINENO"; then :
7952  lt_cv_ld_exported_symbols_list=yes
7953else
7954  lt_cv_ld_exported_symbols_list=no
7955fi
7956rm -f core conftest.err conftest.$ac_objext \
7957    conftest$ac_exeext conftest.$ac_ext
7958	LDFLAGS="$save_LDFLAGS"
7959
7960fi
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7962$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7964$as_echo_n "checking for -force_load linker flag... " >&6; }
7965if test "${lt_cv_ld_force_load+set}" = set; then :
7966  $as_echo_n "(cached) " >&6
7967else
7968  lt_cv_ld_force_load=no
7969      cat > conftest.c << _LT_EOF
7970int forced_loaded() { return 2;}
7971_LT_EOF
7972      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7973      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7974      echo "$AR cru libconftest.a conftest.o" >&5
7975      $AR cru libconftest.a conftest.o 2>&5
7976      cat > conftest.c << _LT_EOF
7977int main() { return 0;}
7978_LT_EOF
7979      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7980      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7981      _lt_result=$?
7982      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7983	lt_cv_ld_force_load=yes
7984      else
7985	cat conftest.err >&5
7986      fi
7987        rm -f conftest.err libconftest.a conftest conftest.c
7988        rm -rf conftest.dSYM
7989
7990fi
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7992$as_echo "$lt_cv_ld_force_load" >&6; }
7993    case $host_os in
7994    rhapsody* | darwin1.[012])
7995      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7996    darwin1.*)
7997      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7998    darwin*) # darwin 5.x on
7999      # if running on 10.5 or later, the deployment target defaults
8000      # to the OS version, if on x86, and 10.4, the deployment
8001      # target defaults to 10.4. Don't you love it?
8002      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8003	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8004	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8005	10.[012]*)
8006	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8007	10.*)
8008	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8009      esac
8010    ;;
8011  esac
8012    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8013      _lt_dar_single_mod='$single_module'
8014    fi
8015    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8016      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8017    else
8018      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8019    fi
8020    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8021      _lt_dsymutil='~$DSYMUTIL $lib || :'
8022    else
8023      _lt_dsymutil=
8024    fi
8025    ;;
8026  esac
8027
8028ac_ext=c
8029ac_cpp='$CPP $CPPFLAGS'
8030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8034$as_echo_n "checking how to run the C preprocessor... " >&6; }
8035# On Suns, sometimes $CPP names a directory.
8036if test -n "$CPP" && test -d "$CPP"; then
8037  CPP=
8038fi
8039if test -z "$CPP"; then
8040  if test "${ac_cv_prog_CPP+set}" = set; then :
8041  $as_echo_n "(cached) " >&6
8042else
8043      # Double quotes because CPP needs to be expanded
8044    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8045    do
8046      ac_preproc_ok=false
8047for ac_c_preproc_warn_flag in '' yes
8048do
8049  # Use a header file that comes with gcc, so configuring glibc
8050  # with a fresh cross-compiler works.
8051  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8052  # <limits.h> exists even on freestanding compilers.
8053  # On the NeXT, cc -E runs the code through the compiler's parser,
8054  # not just through cpp. "Syntax error" is here to catch this case.
8055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h.  */
8057#ifdef __STDC__
8058# include <limits.h>
8059#else
8060# include <assert.h>
8061#endif
8062		     Syntax error
8063_ACEOF
8064if ac_fn_c_try_cpp "$LINENO"; then :
8065
8066else
8067  # Broken: fails on valid input.
8068continue
8069fi
8070rm -f conftest.err conftest.$ac_ext
8071
8072  # OK, works on sane cases.  Now check whether nonexistent headers
8073  # can be detected and how.
8074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h.  */
8076#include <ac_nonexistent.h>
8077_ACEOF
8078if ac_fn_c_try_cpp "$LINENO"; then :
8079  # Broken: success on invalid input.
8080continue
8081else
8082  # Passes both tests.
8083ac_preproc_ok=:
8084break
8085fi
8086rm -f conftest.err conftest.$ac_ext
8087
8088done
8089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8090rm -f conftest.err conftest.$ac_ext
8091if $ac_preproc_ok; then :
8092  break
8093fi
8094
8095    done
8096    ac_cv_prog_CPP=$CPP
8097
8098fi
8099  CPP=$ac_cv_prog_CPP
8100else
8101  ac_cv_prog_CPP=$CPP
8102fi
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8104$as_echo "$CPP" >&6; }
8105ac_preproc_ok=false
8106for ac_c_preproc_warn_flag in '' yes
8107do
8108  # Use a header file that comes with gcc, so configuring glibc
8109  # with a fresh cross-compiler works.
8110  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8111  # <limits.h> exists even on freestanding compilers.
8112  # On the NeXT, cc -E runs the code through the compiler's parser,
8113  # not just through cpp. "Syntax error" is here to catch this case.
8114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116#ifdef __STDC__
8117# include <limits.h>
8118#else
8119# include <assert.h>
8120#endif
8121		     Syntax error
8122_ACEOF
8123if ac_fn_c_try_cpp "$LINENO"; then :
8124
8125else
8126  # Broken: fails on valid input.
8127continue
8128fi
8129rm -f conftest.err conftest.$ac_ext
8130
8131  # OK, works on sane cases.  Now check whether nonexistent headers
8132  # can be detected and how.
8133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134/* end confdefs.h.  */
8135#include <ac_nonexistent.h>
8136_ACEOF
8137if ac_fn_c_try_cpp "$LINENO"; then :
8138  # Broken: success on invalid input.
8139continue
8140else
8141  # Passes both tests.
8142ac_preproc_ok=:
8143break
8144fi
8145rm -f conftest.err conftest.$ac_ext
8146
8147done
8148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8149rm -f conftest.err conftest.$ac_ext
8150if $ac_preproc_ok; then :
8151
8152else
8153  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8155as_fn_error "C preprocessor \"$CPP\" fails sanity check
8156See \`config.log' for more details." "$LINENO" 5; }
8157fi
8158
8159ac_ext=c
8160ac_cpp='$CPP $CPPFLAGS'
8161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163ac_compiler_gnu=$ac_cv_c_compiler_gnu
8164
8165
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8167$as_echo_n "checking for ANSI C header files... " >&6; }
8168if test "${ac_cv_header_stdc+set}" = set; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173#include <stdlib.h>
8174#include <stdarg.h>
8175#include <string.h>
8176#include <float.h>
8177
8178int
8179main ()
8180{
8181
8182  ;
8183  return 0;
8184}
8185_ACEOF
8186if ac_fn_c_try_compile "$LINENO"; then :
8187  ac_cv_header_stdc=yes
8188else
8189  ac_cv_header_stdc=no
8190fi
8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192
8193if test $ac_cv_header_stdc = yes; then
8194  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h.  */
8197#include <string.h>
8198
8199_ACEOF
8200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8201  $EGREP "memchr" >/dev/null 2>&1; then :
8202
8203else
8204  ac_cv_header_stdc=no
8205fi
8206rm -f conftest*
8207
8208fi
8209
8210if test $ac_cv_header_stdc = yes; then
8211  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213/* end confdefs.h.  */
8214#include <stdlib.h>
8215
8216_ACEOF
8217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8218  $EGREP "free" >/dev/null 2>&1; then :
8219
8220else
8221  ac_cv_header_stdc=no
8222fi
8223rm -f conftest*
8224
8225fi
8226
8227if test $ac_cv_header_stdc = yes; then
8228  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8229  if test "$cross_compiling" = yes; then :
8230  :
8231else
8232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233/* end confdefs.h.  */
8234#include <ctype.h>
8235#include <stdlib.h>
8236#if ((' ' & 0x0FF) == 0x020)
8237# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8238# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8239#else
8240# define ISLOWER(c) \
8241		   (('a' <= (c) && (c) <= 'i') \
8242		     || ('j' <= (c) && (c) <= 'r') \
8243		     || ('s' <= (c) && (c) <= 'z'))
8244# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8245#endif
8246
8247#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8248int
8249main ()
8250{
8251  int i;
8252  for (i = 0; i < 256; i++)
8253    if (XOR (islower (i), ISLOWER (i))
8254	|| toupper (i) != TOUPPER (i))
8255      return 2;
8256  return 0;
8257}
8258_ACEOF
8259if ac_fn_c_try_run "$LINENO"; then :
8260
8261else
8262  ac_cv_header_stdc=no
8263fi
8264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8265  conftest.$ac_objext conftest.beam conftest.$ac_ext
8266fi
8267
8268fi
8269fi
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8271$as_echo "$ac_cv_header_stdc" >&6; }
8272if test $ac_cv_header_stdc = yes; then
8273
8274$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8275
8276fi
8277
8278# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8279for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8280		  inttypes.h stdint.h unistd.h
8281do :
8282  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8283ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8284"
8285eval as_val=\$$as_ac_Header
8286   if test "x$as_val" = x""yes; then :
8287  cat >>confdefs.h <<_ACEOF
8288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8289_ACEOF
8290
8291fi
8292
8293done
8294
8295
8296for ac_header in dlfcn.h
8297do :
8298  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8299"
8300if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8301  cat >>confdefs.h <<_ACEOF
8302#define HAVE_DLFCN_H 1
8303_ACEOF
8304
8305fi
8306
8307done
8308
8309
8310
8311
8312
8313
8314# Set options
8315
8316
8317
8318        enable_dlopen=no
8319
8320
8321  enable_win32_dll=no
8322
8323
8324            # Check whether --enable-shared was given.
8325if test "${enable_shared+set}" = set; then :
8326  enableval=$enable_shared; p=${PACKAGE-default}
8327    case $enableval in
8328    yes) enable_shared=yes ;;
8329    no) enable_shared=no ;;
8330    *)
8331      enable_shared=no
8332      # Look at the argument we got.  We use all the common list separators.
8333      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8334      for pkg in $enableval; do
8335	IFS="$lt_save_ifs"
8336	if test "X$pkg" = "X$p"; then
8337	  enable_shared=yes
8338	fi
8339      done
8340      IFS="$lt_save_ifs"
8341      ;;
8342    esac
8343else
8344  enable_shared=yes
8345fi
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355  # Check whether --enable-static was given.
8356if test "${enable_static+set}" = set; then :
8357  enableval=$enable_static; p=${PACKAGE-default}
8358    case $enableval in
8359    yes) enable_static=yes ;;
8360    no) enable_static=no ;;
8361    *)
8362     enable_static=no
8363      # Look at the argument we got.  We use all the common list separators.
8364      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8365      for pkg in $enableval; do
8366	IFS="$lt_save_ifs"
8367	if test "X$pkg" = "X$p"; then
8368	  enable_static=yes
8369	fi
8370      done
8371      IFS="$lt_save_ifs"
8372      ;;
8373    esac
8374else
8375  enable_static=yes
8376fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387# Check whether --with-pic was given.
8388if test "${with_pic+set}" = set; then :
8389  withval=$with_pic; pic_mode="$withval"
8390else
8391  pic_mode=default
8392fi
8393
8394
8395test -z "$pic_mode" && pic_mode=default
8396
8397
8398
8399
8400
8401
8402
8403  # Check whether --enable-fast-install was given.
8404if test "${enable_fast_install+set}" = set; then :
8405  enableval=$enable_fast_install; p=${PACKAGE-default}
8406    case $enableval in
8407    yes) enable_fast_install=yes ;;
8408    no) enable_fast_install=no ;;
8409    *)
8410      enable_fast_install=no
8411      # Look at the argument we got.  We use all the common list separators.
8412      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8413      for pkg in $enableval; do
8414	IFS="$lt_save_ifs"
8415	if test "X$pkg" = "X$p"; then
8416	  enable_fast_install=yes
8417	fi
8418      done
8419      IFS="$lt_save_ifs"
8420      ;;
8421    esac
8422else
8423  enable_fast_install=yes
8424fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436# This can be used to rebuild libtool when needed
8437LIBTOOL_DEPS="$ltmain"
8438
8439# Always use our own libtool.
8440LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467test -z "$LN_S" && LN_S="ln -s"
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482if test -n "${ZSH_VERSION+set}" ; then
8483   setopt NO_GLOB_SUBST
8484fi
8485
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8487$as_echo_n "checking for objdir... " >&6; }
8488if test "${lt_cv_objdir+set}" = set; then :
8489  $as_echo_n "(cached) " >&6
8490else
8491  rm -f .libs 2>/dev/null
8492mkdir .libs 2>/dev/null
8493if test -d .libs; then
8494  lt_cv_objdir=.libs
8495else
8496  # MS-DOS does not allow filenames that begin with a dot.
8497  lt_cv_objdir=_libs
8498fi
8499rmdir .libs 2>/dev/null
8500fi
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8502$as_echo "$lt_cv_objdir" >&6; }
8503objdir=$lt_cv_objdir
8504
8505
8506
8507
8508
8509cat >>confdefs.h <<_ACEOF
8510#define LT_OBJDIR "$lt_cv_objdir/"
8511_ACEOF
8512
8513
8514
8515
8516case $host_os in
8517aix3*)
8518  # AIX sometimes has problems with the GCC collect2 program.  For some
8519  # reason, if we set the COLLECT_NAMES environment variable, the problems
8520  # vanish in a puff of smoke.
8521  if test "X${COLLECT_NAMES+set}" != Xset; then
8522    COLLECT_NAMES=
8523    export COLLECT_NAMES
8524  fi
8525  ;;
8526esac
8527
8528# Global variables:
8529ofile=libtool
8530can_build_shared=yes
8531
8532# All known linkers require a `.a' archive for static linking (except MSVC,
8533# which needs '.lib').
8534libext=a
8535
8536with_gnu_ld="$lt_cv_prog_gnu_ld"
8537
8538old_CC="$CC"
8539old_CFLAGS="$CFLAGS"
8540
8541# Set sane defaults for various variables
8542test -z "$CC" && CC=cc
8543test -z "$LTCC" && LTCC=$CC
8544test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8545test -z "$LD" && LD=ld
8546test -z "$ac_objext" && ac_objext=o
8547
8548for cc_temp in $compiler""; do
8549  case $cc_temp in
8550    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8551    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8552    \-*) ;;
8553    *) break;;
8554  esac
8555done
8556cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8557
8558
8559# Only perform the check for file, if the check method requires it
8560test -z "$MAGIC_CMD" && MAGIC_CMD=file
8561case $deplibs_check_method in
8562file_magic*)
8563  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8565$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8566if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8567  $as_echo_n "(cached) " >&6
8568else
8569  case $MAGIC_CMD in
8570[\\/*] |  ?:[\\/]*)
8571  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8572  ;;
8573*)
8574  lt_save_MAGIC_CMD="$MAGIC_CMD"
8575  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8576  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8577  for ac_dir in $ac_dummy; do
8578    IFS="$lt_save_ifs"
8579    test -z "$ac_dir" && ac_dir=.
8580    if test -f $ac_dir/${ac_tool_prefix}file; then
8581      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8582      if test -n "$file_magic_test_file"; then
8583	case $deplibs_check_method in
8584	"file_magic "*)
8585	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8586	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8587	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8588	    $EGREP "$file_magic_regex" > /dev/null; then
8589	    :
8590	  else
8591	    cat <<_LT_EOF 1>&2
8592
8593*** Warning: the command libtool uses to detect shared libraries,
8594*** $file_magic_cmd, produces output that libtool cannot recognize.
8595*** The result is that libtool may fail to recognize shared libraries
8596*** as such.  This will affect the creation of libtool libraries that
8597*** depend on shared libraries, but programs linked with such libtool
8598*** libraries will work regardless of this problem.  Nevertheless, you
8599*** may want to report the problem to your system manager and/or to
8600*** bug-libtool@gnu.org
8601
8602_LT_EOF
8603	  fi ;;
8604	esac
8605      fi
8606      break
8607    fi
8608  done
8609  IFS="$lt_save_ifs"
8610  MAGIC_CMD="$lt_save_MAGIC_CMD"
8611  ;;
8612esac
8613fi
8614
8615MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8616if test -n "$MAGIC_CMD"; then
8617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8618$as_echo "$MAGIC_CMD" >&6; }
8619else
8620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621$as_echo "no" >&6; }
8622fi
8623
8624
8625
8626
8627
8628if test -z "$lt_cv_path_MAGIC_CMD"; then
8629  if test -n "$ac_tool_prefix"; then
8630    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8631$as_echo_n "checking for file... " >&6; }
8632if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8633  $as_echo_n "(cached) " >&6
8634else
8635  case $MAGIC_CMD in
8636[\\/*] |  ?:[\\/]*)
8637  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8638  ;;
8639*)
8640  lt_save_MAGIC_CMD="$MAGIC_CMD"
8641  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8642  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8643  for ac_dir in $ac_dummy; do
8644    IFS="$lt_save_ifs"
8645    test -z "$ac_dir" && ac_dir=.
8646    if test -f $ac_dir/file; then
8647      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8648      if test -n "$file_magic_test_file"; then
8649	case $deplibs_check_method in
8650	"file_magic "*)
8651	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8652	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8653	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8654	    $EGREP "$file_magic_regex" > /dev/null; then
8655	    :
8656	  else
8657	    cat <<_LT_EOF 1>&2
8658
8659*** Warning: the command libtool uses to detect shared libraries,
8660*** $file_magic_cmd, produces output that libtool cannot recognize.
8661*** The result is that libtool may fail to recognize shared libraries
8662*** as such.  This will affect the creation of libtool libraries that
8663*** depend on shared libraries, but programs linked with such libtool
8664*** libraries will work regardless of this problem.  Nevertheless, you
8665*** may want to report the problem to your system manager and/or to
8666*** bug-libtool@gnu.org
8667
8668_LT_EOF
8669	  fi ;;
8670	esac
8671      fi
8672      break
8673    fi
8674  done
8675  IFS="$lt_save_ifs"
8676  MAGIC_CMD="$lt_save_MAGIC_CMD"
8677  ;;
8678esac
8679fi
8680
8681MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8682if test -n "$MAGIC_CMD"; then
8683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8684$as_echo "$MAGIC_CMD" >&6; }
8685else
8686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687$as_echo "no" >&6; }
8688fi
8689
8690
8691  else
8692    MAGIC_CMD=:
8693  fi
8694fi
8695
8696  fi
8697  ;;
8698esac
8699
8700# Use C for the default configuration in the libtool script
8701
8702lt_save_CC="$CC"
8703ac_ext=c
8704ac_cpp='$CPP $CPPFLAGS'
8705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8707ac_compiler_gnu=$ac_cv_c_compiler_gnu
8708
8709
8710# Source file extension for C test sources.
8711ac_ext=c
8712
8713# Object file extension for compiled C test sources.
8714objext=o
8715objext=$objext
8716
8717# Code to be used in simple compile tests
8718lt_simple_compile_test_code="int some_variable = 0;"
8719
8720# Code to be used in simple link tests
8721lt_simple_link_test_code='int main(){return(0);}'
8722
8723
8724
8725
8726
8727
8728
8729# If no C compiler was specified, use CC.
8730LTCC=${LTCC-"$CC"}
8731
8732# If no C compiler flags were specified, use CFLAGS.
8733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8734
8735# Allow CC to be a program name with arguments.
8736compiler=$CC
8737
8738# Save the default compiler, since it gets overwritten when the other
8739# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8740compiler_DEFAULT=$CC
8741
8742# save warnings/boilerplate of simple test code
8743ac_outfile=conftest.$ac_objext
8744echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8745eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8746_lt_compiler_boilerplate=`cat conftest.err`
8747$RM conftest*
8748
8749ac_outfile=conftest.$ac_objext
8750echo "$lt_simple_link_test_code" >conftest.$ac_ext
8751eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8752_lt_linker_boilerplate=`cat conftest.err`
8753$RM -r conftest*
8754
8755
8756## CAVEAT EMPTOR:
8757## There is no encapsulation within the following macros, do not change
8758## the running order or otherwise move them around unless you know exactly
8759## what you are doing...
8760if test -n "$compiler"; then
8761
8762lt_prog_compiler_no_builtin_flag=
8763
8764if test "$GCC" = yes; then
8765  case $cc_basename in
8766  nvcc*)
8767    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8768  *)
8769    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8770  esac
8771
8772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8773$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8774if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8775  $as_echo_n "(cached) " >&6
8776else
8777  lt_cv_prog_compiler_rtti_exceptions=no
8778   ac_outfile=conftest.$ac_objext
8779   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8780   lt_compiler_flag="-fno-rtti -fno-exceptions"
8781   # Insert the option either (1) after the last *FLAGS variable, or
8782   # (2) before a word containing "conftest.", or (3) at the end.
8783   # Note that $ac_compile itself does not contain backslashes and begins
8784   # with a dollar sign (not a hyphen), so the echo should work correctly.
8785   # The option is referenced via a variable to avoid confusing sed.
8786   lt_compile=`echo "$ac_compile" | $SED \
8787   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8788   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8789   -e 's:$: $lt_compiler_flag:'`
8790   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8791   (eval "$lt_compile" 2>conftest.err)
8792   ac_status=$?
8793   cat conftest.err >&5
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   if (exit $ac_status) && test -s "$ac_outfile"; then
8796     # The compiler can only warn and ignore the option if not recognized
8797     # So say no if there are warnings other than the usual output.
8798     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8799     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8800     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8801       lt_cv_prog_compiler_rtti_exceptions=yes
8802     fi
8803   fi
8804   $RM conftest*
8805
8806fi
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8808$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8809
8810if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8811    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8812else
8813    :
8814fi
8815
8816fi
8817
8818
8819
8820
8821
8822
8823  lt_prog_compiler_wl=
8824lt_prog_compiler_pic=
8825lt_prog_compiler_static=
8826
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8828$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8829
8830  if test "$GCC" = yes; then
8831    lt_prog_compiler_wl='-Wl,'
8832    lt_prog_compiler_static='-static'
8833
8834    case $host_os in
8835      aix*)
8836      # All AIX code is PIC.
8837      if test "$host_cpu" = ia64; then
8838	# AIX 5 now supports IA64 processor
8839	lt_prog_compiler_static='-Bstatic'
8840      fi
8841      lt_prog_compiler_pic='-fPIC'
8842      ;;
8843
8844    amigaos*)
8845      case $host_cpu in
8846      powerpc)
8847            # see comment about AmigaOS4 .so support
8848            lt_prog_compiler_pic='-fPIC'
8849        ;;
8850      m68k)
8851            # FIXME: we need at least 68020 code to build shared libraries, but
8852            # adding the `-m68020' flag to GCC prevents building anything better,
8853            # like `-m68040'.
8854            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8855        ;;
8856      esac
8857      ;;
8858
8859    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8860      # PIC is the default for these OSes.
8861      ;;
8862
8863    mingw* | cygwin* | pw32* | os2* | cegcc*)
8864      # This hack is so that the source file can tell whether it is being
8865      # built for inclusion in a dll (and should export symbols for example).
8866      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8867      # (--disable-auto-import) libraries
8868      lt_prog_compiler_pic='-DDLL_EXPORT'
8869      ;;
8870
8871    darwin* | rhapsody*)
8872      # PIC is the default on this platform
8873      # Common symbols not allowed in MH_DYLIB files
8874      lt_prog_compiler_pic='-fno-common'
8875      ;;
8876
8877    haiku*)
8878      # PIC is the default for Haiku.
8879      # The "-static" flag exists, but is broken.
8880      lt_prog_compiler_static=
8881      ;;
8882
8883    hpux*)
8884      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8885      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8886      # sets the default TLS model and affects inlining.
8887      case $host_cpu in
8888      hppa*64*)
8889	# +Z the default
8890	;;
8891      *)
8892	lt_prog_compiler_pic='-fPIC'
8893	;;
8894      esac
8895      ;;
8896
8897    interix[3-9]*)
8898      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8899      # Instead, we relocate shared libraries at runtime.
8900      ;;
8901
8902    msdosdjgpp*)
8903      # Just because we use GCC doesn't mean we suddenly get shared libraries
8904      # on systems that don't support them.
8905      lt_prog_compiler_can_build_shared=no
8906      enable_shared=no
8907      ;;
8908
8909    *nto* | *qnx*)
8910      # QNX uses GNU C++, but need to define -shared option too, otherwise
8911      # it will coredump.
8912      lt_prog_compiler_pic='-fPIC -shared'
8913      ;;
8914
8915    sysv4*MP*)
8916      if test -d /usr/nec; then
8917	lt_prog_compiler_pic=-Kconform_pic
8918      fi
8919      ;;
8920
8921    *)
8922      lt_prog_compiler_pic='-fPIC'
8923      ;;
8924    esac
8925
8926    case $cc_basename in
8927    nvcc*) # Cuda Compiler Driver 2.2
8928      lt_prog_compiler_wl='-Xlinker '
8929      lt_prog_compiler_pic='-Xcompiler -fPIC'
8930      ;;
8931    esac
8932  else
8933    # PORTME Check for flag to pass linker flags through the system compiler.
8934    case $host_os in
8935    aix*)
8936      lt_prog_compiler_wl='-Wl,'
8937      if test "$host_cpu" = ia64; then
8938	# AIX 5 now supports IA64 processor
8939	lt_prog_compiler_static='-Bstatic'
8940      else
8941	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8942      fi
8943      ;;
8944
8945    mingw* | cygwin* | pw32* | os2* | cegcc*)
8946      # This hack is so that the source file can tell whether it is being
8947      # built for inclusion in a dll (and should export symbols for example).
8948      lt_prog_compiler_pic='-DDLL_EXPORT'
8949      ;;
8950
8951    hpux9* | hpux10* | hpux11*)
8952      lt_prog_compiler_wl='-Wl,'
8953      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8954      # not for PA HP-UX.
8955      case $host_cpu in
8956      hppa*64*|ia64*)
8957	# +Z the default
8958	;;
8959      *)
8960	lt_prog_compiler_pic='+Z'
8961	;;
8962      esac
8963      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8964      lt_prog_compiler_static='${wl}-a ${wl}archive'
8965      ;;
8966
8967    irix5* | irix6* | nonstopux*)
8968      lt_prog_compiler_wl='-Wl,'
8969      # PIC (with -KPIC) is the default.
8970      lt_prog_compiler_static='-non_shared'
8971      ;;
8972
8973    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8974      case $cc_basename in
8975      # old Intel for x86_64 which still supported -KPIC.
8976      ecc*)
8977	lt_prog_compiler_wl='-Wl,'
8978	lt_prog_compiler_pic='-KPIC'
8979	lt_prog_compiler_static='-static'
8980        ;;
8981      # icc used to be incompatible with GCC.
8982      # ICC 10 doesn't accept -KPIC any more.
8983      icc* | ifort*)
8984	lt_prog_compiler_wl='-Wl,'
8985	lt_prog_compiler_pic='-fPIC'
8986	lt_prog_compiler_static='-static'
8987        ;;
8988      # Lahey Fortran 8.1.
8989      lf95*)
8990	lt_prog_compiler_wl='-Wl,'
8991	lt_prog_compiler_pic='--shared'
8992	lt_prog_compiler_static='--static'
8993	;;
8994      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8995        # Portland Group compilers (*not* the Pentium gcc compiler,
8996	# which looks to be a dead project)
8997	lt_prog_compiler_wl='-Wl,'
8998	lt_prog_compiler_pic='-fpic'
8999	lt_prog_compiler_static='-Bstatic'
9000        ;;
9001      ccc*)
9002        lt_prog_compiler_wl='-Wl,'
9003        # All Alpha code is PIC.
9004        lt_prog_compiler_static='-non_shared'
9005        ;;
9006      xl* | bgxl* | bgf* | mpixl*)
9007	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9008	lt_prog_compiler_wl='-Wl,'
9009	lt_prog_compiler_pic='-qpic'
9010	lt_prog_compiler_static='-qstaticlink'
9011	;;
9012      *)
9013	case `$CC -V 2>&1 | sed 5q` in
9014	*Sun\ F* | *Sun*Fortran*)
9015	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9016	  lt_prog_compiler_pic='-KPIC'
9017	  lt_prog_compiler_static='-Bstatic'
9018	  lt_prog_compiler_wl=''
9019	  ;;
9020	*Sun\ C*)
9021	  # Sun C 5.9
9022	  lt_prog_compiler_pic='-KPIC'
9023	  lt_prog_compiler_static='-Bstatic'
9024	  lt_prog_compiler_wl='-Wl,'
9025	  ;;
9026	esac
9027	;;
9028      esac
9029      ;;
9030
9031    newsos6)
9032      lt_prog_compiler_pic='-KPIC'
9033      lt_prog_compiler_static='-Bstatic'
9034      ;;
9035
9036    *nto* | *qnx*)
9037      # QNX uses GNU C++, but need to define -shared option too, otherwise
9038      # it will coredump.
9039      lt_prog_compiler_pic='-fPIC -shared'
9040      ;;
9041
9042    osf3* | osf4* | osf5*)
9043      lt_prog_compiler_wl='-Wl,'
9044      # All OSF/1 code is PIC.
9045      lt_prog_compiler_static='-non_shared'
9046      ;;
9047
9048    rdos*)
9049      lt_prog_compiler_static='-non_shared'
9050      ;;
9051
9052    solaris*)
9053      lt_prog_compiler_pic='-KPIC'
9054      lt_prog_compiler_static='-Bstatic'
9055      case $cc_basename in
9056      f77* | f90* | f95*)
9057	lt_prog_compiler_wl='-Qoption ld ';;
9058      *)
9059	lt_prog_compiler_wl='-Wl,';;
9060      esac
9061      ;;
9062
9063    sunos4*)
9064      lt_prog_compiler_wl='-Qoption ld '
9065      lt_prog_compiler_pic='-PIC'
9066      lt_prog_compiler_static='-Bstatic'
9067      ;;
9068
9069    sysv4 | sysv4.2uw2* | sysv4.3*)
9070      lt_prog_compiler_wl='-Wl,'
9071      lt_prog_compiler_pic='-KPIC'
9072      lt_prog_compiler_static='-Bstatic'
9073      ;;
9074
9075    sysv4*MP*)
9076      if test -d /usr/nec ;then
9077	lt_prog_compiler_pic='-Kconform_pic'
9078	lt_prog_compiler_static='-Bstatic'
9079      fi
9080      ;;
9081
9082    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9083      lt_prog_compiler_wl='-Wl,'
9084      lt_prog_compiler_pic='-KPIC'
9085      lt_prog_compiler_static='-Bstatic'
9086      ;;
9087
9088    unicos*)
9089      lt_prog_compiler_wl='-Wl,'
9090      lt_prog_compiler_can_build_shared=no
9091      ;;
9092
9093    uts4*)
9094      lt_prog_compiler_pic='-pic'
9095      lt_prog_compiler_static='-Bstatic'
9096      ;;
9097
9098    *)
9099      lt_prog_compiler_can_build_shared=no
9100      ;;
9101    esac
9102  fi
9103
9104case $host_os in
9105  # For platforms which do not support PIC, -DPIC is meaningless:
9106  *djgpp*)
9107    lt_prog_compiler_pic=
9108    ;;
9109  *)
9110    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9111    ;;
9112esac
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9114$as_echo "$lt_prog_compiler_pic" >&6; }
9115
9116
9117
9118
9119
9120
9121#
9122# Check to make sure the PIC flag actually works.
9123#
9124if test -n "$lt_prog_compiler_pic"; then
9125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9126$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9127if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9128  $as_echo_n "(cached) " >&6
9129else
9130  lt_cv_prog_compiler_pic_works=no
9131   ac_outfile=conftest.$ac_objext
9132   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9133   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9134   # Insert the option either (1) after the last *FLAGS variable, or
9135   # (2) before a word containing "conftest.", or (3) at the end.
9136   # Note that $ac_compile itself does not contain backslashes and begins
9137   # with a dollar sign (not a hyphen), so the echo should work correctly.
9138   # The option is referenced via a variable to avoid confusing sed.
9139   lt_compile=`echo "$ac_compile" | $SED \
9140   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9141   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9142   -e 's:$: $lt_compiler_flag:'`
9143   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9144   (eval "$lt_compile" 2>conftest.err)
9145   ac_status=$?
9146   cat conftest.err >&5
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   if (exit $ac_status) && test -s "$ac_outfile"; then
9149     # The compiler can only warn and ignore the option if not recognized
9150     # So say no if there are warnings other than the usual output.
9151     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9152     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9153     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9154       lt_cv_prog_compiler_pic_works=yes
9155     fi
9156   fi
9157   $RM conftest*
9158
9159fi
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9161$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9162
9163if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9164    case $lt_prog_compiler_pic in
9165     "" | " "*) ;;
9166     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9167     esac
9168else
9169    lt_prog_compiler_pic=
9170     lt_prog_compiler_can_build_shared=no
9171fi
9172
9173fi
9174
9175
9176
9177
9178
9179
9180#
9181# Check to make sure the static flag actually works.
9182#
9183wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9185$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9186if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9187  $as_echo_n "(cached) " >&6
9188else
9189  lt_cv_prog_compiler_static_works=no
9190   save_LDFLAGS="$LDFLAGS"
9191   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9192   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9193   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9194     # The linker can only warn and ignore the option if not recognized
9195     # So say no if there are warnings
9196     if test -s conftest.err; then
9197       # Append any errors to the config.log.
9198       cat conftest.err 1>&5
9199       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9200       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201       if diff conftest.exp conftest.er2 >/dev/null; then
9202         lt_cv_prog_compiler_static_works=yes
9203       fi
9204     else
9205       lt_cv_prog_compiler_static_works=yes
9206     fi
9207   fi
9208   $RM -r conftest*
9209   LDFLAGS="$save_LDFLAGS"
9210
9211fi
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9213$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9214
9215if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9216    :
9217else
9218    lt_prog_compiler_static=
9219fi
9220
9221
9222
9223
9224
9225
9226
9227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9228$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9229if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9230  $as_echo_n "(cached) " >&6
9231else
9232  lt_cv_prog_compiler_c_o=no
9233   $RM -r conftest 2>/dev/null
9234   mkdir conftest
9235   cd conftest
9236   mkdir out
9237   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9238
9239   lt_compiler_flag="-o out/conftest2.$ac_objext"
9240   # Insert the option either (1) after the last *FLAGS variable, or
9241   # (2) before a word containing "conftest.", or (3) at the end.
9242   # Note that $ac_compile itself does not contain backslashes and begins
9243   # with a dollar sign (not a hyphen), so the echo should work correctly.
9244   lt_compile=`echo "$ac_compile" | $SED \
9245   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9246   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9247   -e 's:$: $lt_compiler_flag:'`
9248   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9249   (eval "$lt_compile" 2>out/conftest.err)
9250   ac_status=$?
9251   cat out/conftest.err >&5
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9254   then
9255     # The compiler can only warn and ignore the option if not recognized
9256     # So say no if there are warnings
9257     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9258     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9259     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9260       lt_cv_prog_compiler_c_o=yes
9261     fi
9262   fi
9263   chmod u+w . 2>&5
9264   $RM conftest*
9265   # SGI C++ compiler will create directory out/ii_files/ for
9266   # template instantiation
9267   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9268   $RM out/* && rmdir out
9269   cd ..
9270   $RM -r conftest
9271   $RM conftest*
9272
9273fi
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9275$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9276
9277
9278
9279
9280
9281
9282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9283$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9284if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9285  $as_echo_n "(cached) " >&6
9286else
9287  lt_cv_prog_compiler_c_o=no
9288   $RM -r conftest 2>/dev/null
9289   mkdir conftest
9290   cd conftest
9291   mkdir out
9292   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9293
9294   lt_compiler_flag="-o out/conftest2.$ac_objext"
9295   # Insert the option either (1) after the last *FLAGS variable, or
9296   # (2) before a word containing "conftest.", or (3) at the end.
9297   # Note that $ac_compile itself does not contain backslashes and begins
9298   # with a dollar sign (not a hyphen), so the echo should work correctly.
9299   lt_compile=`echo "$ac_compile" | $SED \
9300   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9301   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9302   -e 's:$: $lt_compiler_flag:'`
9303   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9304   (eval "$lt_compile" 2>out/conftest.err)
9305   ac_status=$?
9306   cat out/conftest.err >&5
9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9309   then
9310     # The compiler can only warn and ignore the option if not recognized
9311     # So say no if there are warnings
9312     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9313     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9314     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9315       lt_cv_prog_compiler_c_o=yes
9316     fi
9317   fi
9318   chmod u+w . 2>&5
9319   $RM conftest*
9320   # SGI C++ compiler will create directory out/ii_files/ for
9321   # template instantiation
9322   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9323   $RM out/* && rmdir out
9324   cd ..
9325   $RM -r conftest
9326   $RM conftest*
9327
9328fi
9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9330$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9331
9332
9333
9334
9335hard_links="nottested"
9336if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9337  # do not overwrite the value of need_locks provided by the user
9338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9339$as_echo_n "checking if we can lock with hard links... " >&6; }
9340  hard_links=yes
9341  $RM conftest*
9342  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9343  touch conftest.a
9344  ln conftest.a conftest.b 2>&5 || hard_links=no
9345  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9347$as_echo "$hard_links" >&6; }
9348  if test "$hard_links" = no; then
9349    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9350$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9351    need_locks=warn
9352  fi
9353else
9354  need_locks=no
9355fi
9356
9357
9358
9359
9360
9361
9362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9363$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9364
9365  runpath_var=
9366  allow_undefined_flag=
9367  always_export_symbols=no
9368  archive_cmds=
9369  archive_expsym_cmds=
9370  compiler_needs_object=no
9371  enable_shared_with_static_runtimes=no
9372  export_dynamic_flag_spec=
9373  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9374  hardcode_automatic=no
9375  hardcode_direct=no
9376  hardcode_direct_absolute=no
9377  hardcode_libdir_flag_spec=
9378  hardcode_libdir_flag_spec_ld=
9379  hardcode_libdir_separator=
9380  hardcode_minus_L=no
9381  hardcode_shlibpath_var=unsupported
9382  inherit_rpath=no
9383  link_all_deplibs=unknown
9384  module_cmds=
9385  module_expsym_cmds=
9386  old_archive_from_new_cmds=
9387  old_archive_from_expsyms_cmds=
9388  thread_safe_flag_spec=
9389  whole_archive_flag_spec=
9390  # include_expsyms should be a list of space-separated symbols to be *always*
9391  # included in the symbol list
9392  include_expsyms=
9393  # exclude_expsyms can be an extended regexp of symbols to exclude
9394  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9395  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9396  # as well as any symbol that contains `d'.
9397  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9398  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9399  # platforms (ab)use it in PIC code, but their linkers get confused if
9400  # the symbol is explicitly referenced.  Since portable code cannot
9401  # rely on this symbol name, it's probably fine to never include it in
9402  # preloaded symbol tables.
9403  # Exclude shared library initialization/finalization symbols.
9404  extract_expsyms_cmds=
9405
9406  case $host_os in
9407  cygwin* | mingw* | pw32* | cegcc*)
9408    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9409    # When not using gcc, we currently assume that we are using
9410    # Microsoft Visual C++.
9411    if test "$GCC" != yes; then
9412      with_gnu_ld=no
9413    fi
9414    ;;
9415  interix*)
9416    # we just hope/assume this is gcc and not c89 (= MSVC++)
9417    with_gnu_ld=yes
9418    ;;
9419  openbsd*)
9420    with_gnu_ld=no
9421    ;;
9422  esac
9423
9424  ld_shlibs=yes
9425
9426  # On some targets, GNU ld is compatible enough with the native linker
9427  # that we're better off using the native interface for both.
9428  lt_use_gnu_ld_interface=no
9429  if test "$with_gnu_ld" = yes; then
9430    case $host_os in
9431      aix*)
9432	# The AIX port of GNU ld has always aspired to compatibility
9433	# with the native linker.  However, as the warning in the GNU ld
9434	# block says, versions before 2.19.5* couldn't really create working
9435	# shared libraries, regardless of the interface used.
9436	case `$LD -v 2>&1` in
9437	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9438	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9439	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9440	  *)
9441	    lt_use_gnu_ld_interface=yes
9442	    ;;
9443	esac
9444	;;
9445      *)
9446	lt_use_gnu_ld_interface=yes
9447	;;
9448    esac
9449  fi
9450
9451  if test "$lt_use_gnu_ld_interface" = yes; then
9452    # If archive_cmds runs LD, not CC, wlarc should be empty
9453    wlarc='${wl}'
9454
9455    # Set some defaults for GNU ld with shared library support. These
9456    # are reset later if shared libraries are not supported. Putting them
9457    # here allows them to be overridden if necessary.
9458    runpath_var=LD_RUN_PATH
9459    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9460    export_dynamic_flag_spec='${wl}--export-dynamic'
9461    # ancient GNU ld didn't support --whole-archive et. al.
9462    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9463      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9464    else
9465      whole_archive_flag_spec=
9466    fi
9467    supports_anon_versioning=no
9468    case `$LD -v 2>&1` in
9469      *GNU\ gold*) supports_anon_versioning=yes ;;
9470      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9471      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9472      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9473      *\ 2.11.*) ;; # other 2.11 versions
9474      *) supports_anon_versioning=yes ;;
9475    esac
9476
9477    # See if GNU ld supports shared libraries.
9478    case $host_os in
9479    aix[3-9]*)
9480      # On AIX/PPC, the GNU linker is very broken
9481      if test "$host_cpu" != ia64; then
9482	ld_shlibs=no
9483	cat <<_LT_EOF 1>&2
9484
9485*** Warning: the GNU linker, at least up to release 2.19, is reported
9486*** to be unable to reliably create shared libraries on AIX.
9487*** Therefore, libtool is disabling shared libraries support.  If you
9488*** really care for shared libraries, you may want to install binutils
9489*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9490*** You will then need to restart the configuration process.
9491
9492_LT_EOF
9493      fi
9494      ;;
9495
9496    amigaos*)
9497      case $host_cpu in
9498      powerpc)
9499            # see comment about AmigaOS4 .so support
9500            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9501            archive_expsym_cmds=''
9502        ;;
9503      m68k)
9504            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)'
9505            hardcode_libdir_flag_spec='-L$libdir'
9506            hardcode_minus_L=yes
9507        ;;
9508      esac
9509      ;;
9510
9511    beos*)
9512      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9513	allow_undefined_flag=unsupported
9514	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9515	# support --undefined.  This deserves some investigation.  FIXME
9516	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9517      else
9518	ld_shlibs=no
9519      fi
9520      ;;
9521
9522    cygwin* | mingw* | pw32* | cegcc*)
9523      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9524      # as there is no search path for DLLs.
9525      hardcode_libdir_flag_spec='-L$libdir'
9526      export_dynamic_flag_spec='${wl}--export-all-symbols'
9527      allow_undefined_flag=unsupported
9528      always_export_symbols=no
9529      enable_shared_with_static_runtimes=yes
9530      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9531
9532      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9533        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9534	# If the export-symbols file already is a .def file (1st line
9535	# is EXPORTS), use it as is; otherwise, prepend...
9536	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9537	  cp $export_symbols $output_objdir/$soname.def;
9538	else
9539	  echo EXPORTS > $output_objdir/$soname.def;
9540	  cat $export_symbols >> $output_objdir/$soname.def;
9541	fi~
9542	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9543      else
9544	ld_shlibs=no
9545      fi
9546      ;;
9547
9548    haiku*)
9549      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550      link_all_deplibs=yes
9551      ;;
9552
9553    interix[3-9]*)
9554      hardcode_direct=no
9555      hardcode_shlibpath_var=no
9556      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9557      export_dynamic_flag_spec='${wl}-E'
9558      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9559      # Instead, shared libraries are loaded at an image base (0x10000000 by
9560      # default) and relocated if they conflict, which is a slow very memory
9561      # consuming and fragmenting process.  To avoid this, we pick a random,
9562      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9563      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9564      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9565      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'
9566      ;;
9567
9568    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9569      tmp_diet=no
9570      if test "$host_os" = linux-dietlibc; then
9571	case $cc_basename in
9572	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9573	esac
9574      fi
9575      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9576	 && test "$tmp_diet" = no
9577      then
9578	tmp_addflag=
9579	tmp_sharedflag='-shared'
9580	case $cc_basename,$host_cpu in
9581        pgcc*)				# Portland Group C compiler
9582	  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'
9583	  tmp_addflag=' $pic_flag'
9584	  ;;
9585	pgf77* | pgf90* | pgf95* | pgfortran*)
9586					# Portland Group f77 and f90 compilers
9587	  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'
9588	  tmp_addflag=' $pic_flag -Mnomain' ;;
9589	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9590	  tmp_addflag=' -i_dynamic' ;;
9591	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9592	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9593	ifc* | ifort*)			# Intel Fortran compiler
9594	  tmp_addflag=' -nofor_main' ;;
9595	lf95*)				# Lahey Fortran 8.1
9596	  whole_archive_flag_spec=
9597	  tmp_sharedflag='--shared' ;;
9598	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9599	  tmp_sharedflag='-qmkshrobj'
9600	  tmp_addflag= ;;
9601	nvcc*)	# Cuda Compiler Driver 2.2
9602	  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'
9603	  compiler_needs_object=yes
9604	  ;;
9605	esac
9606	case `$CC -V 2>&1 | sed 5q` in
9607	*Sun\ C*)			# Sun C 5.9
9608	  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'
9609	  compiler_needs_object=yes
9610	  tmp_sharedflag='-G' ;;
9611	*Sun\ F*)			# Sun Fortran 8.3
9612	  tmp_sharedflag='-G' ;;
9613	esac
9614	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615
9616        if test "x$supports_anon_versioning" = xyes; then
9617          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9618	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9619	    echo "local: *; };" >> $output_objdir/$libname.ver~
9620	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9621        fi
9622
9623	case $cc_basename in
9624	xlf* | bgf* | bgxlf* | mpixlf*)
9625	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9626	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9627	  hardcode_libdir_flag_spec=
9628	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9629	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9630	  if test "x$supports_anon_versioning" = xyes; then
9631	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9632	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9633	      echo "local: *; };" >> $output_objdir/$libname.ver~
9634	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9635	  fi
9636	  ;;
9637	esac
9638      else
9639        ld_shlibs=no
9640      fi
9641      ;;
9642
9643    netbsd*)
9644      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9645	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9646	wlarc=
9647      else
9648	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9650      fi
9651      ;;
9652
9653    solaris*)
9654      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9655	ld_shlibs=no
9656	cat <<_LT_EOF 1>&2
9657
9658*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9659*** create shared libraries on Solaris systems.  Therefore, libtool
9660*** is disabling shared libraries support.  We urge you to upgrade GNU
9661*** binutils to release 2.9.1 or newer.  Another option is to modify
9662*** your PATH or compiler configuration so that the native linker is
9663*** used, and then restart.
9664
9665_LT_EOF
9666      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9667	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9668	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9669      else
9670	ld_shlibs=no
9671      fi
9672      ;;
9673
9674    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9675      case `$LD -v 2>&1` in
9676        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9677	ld_shlibs=no
9678	cat <<_LT_EOF 1>&2
9679
9680*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9681*** reliably create shared libraries on SCO systems.  Therefore, libtool
9682*** is disabling shared libraries support.  We urge you to upgrade GNU
9683*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9684*** your PATH or compiler configuration so that the native linker is
9685*** used, and then restart.
9686
9687_LT_EOF
9688	;;
9689	*)
9690	  # For security reasons, it is highly recommended that you always
9691	  # use absolute paths for naming shared libraries, and exclude the
9692	  # DT_RUNPATH tag from executables and libraries.  But doing so
9693	  # requires that you compile everything twice, which is a pain.
9694	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9695	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9696	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9697	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9698	  else
9699	    ld_shlibs=no
9700	  fi
9701	;;
9702      esac
9703      ;;
9704
9705    sunos4*)
9706      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9707      wlarc=
9708      hardcode_direct=yes
9709      hardcode_shlibpath_var=no
9710      ;;
9711
9712    *)
9713      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9714	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9715	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9716      else
9717	ld_shlibs=no
9718      fi
9719      ;;
9720    esac
9721
9722    if test "$ld_shlibs" = no; then
9723      runpath_var=
9724      hardcode_libdir_flag_spec=
9725      export_dynamic_flag_spec=
9726      whole_archive_flag_spec=
9727    fi
9728  else
9729    # PORTME fill in a description of your system's linker (not GNU ld)
9730    case $host_os in
9731    aix3*)
9732      allow_undefined_flag=unsupported
9733      always_export_symbols=yes
9734      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'
9735      # Note: this linker hardcodes the directories in LIBPATH if there
9736      # are no directories specified by -L.
9737      hardcode_minus_L=yes
9738      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9739	# Neither direct hardcoding nor static linking is supported with a
9740	# broken collect2.
9741	hardcode_direct=unsupported
9742      fi
9743      ;;
9744
9745    aix[4-9]*)
9746      if test "$host_cpu" = ia64; then
9747	# On IA64, the linker does run time linking by default, so we don't
9748	# have to do anything special.
9749	aix_use_runtimelinking=no
9750	exp_sym_flag='-Bexport'
9751	no_entry_flag=""
9752      else
9753	# If we're using GNU nm, then we don't want the "-C" option.
9754	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9755	# Also, AIX nm treats weak defined symbols like other global
9756	# defined symbols, whereas GNU nm marks them as "W".
9757	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9758	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9759	else
9760	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9761	fi
9762	aix_use_runtimelinking=no
9763
9764	# Test if we are trying to use run time linking or normal
9765	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9766	# need to do runtime linking.
9767	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9768	  for ld_flag in $LDFLAGS; do
9769	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9770	    aix_use_runtimelinking=yes
9771	    break
9772	  fi
9773	  done
9774	  ;;
9775	esac
9776
9777	exp_sym_flag='-bexport'
9778	no_entry_flag='-bnoentry'
9779      fi
9780
9781      # When large executables or shared objects are built, AIX ld can
9782      # have problems creating the table of contents.  If linking a library
9783      # or program results in "error TOC overflow" add -mminimal-toc to
9784      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9785      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9786
9787      archive_cmds=''
9788      hardcode_direct=yes
9789      hardcode_direct_absolute=yes
9790      hardcode_libdir_separator=':'
9791      link_all_deplibs=yes
9792      file_list_spec='${wl}-f,'
9793
9794      if test "$GCC" = yes; then
9795	case $host_os in aix4.[012]|aix4.[012].*)
9796	# We only want to do this on AIX 4.2 and lower, the check
9797	# below for broken collect2 doesn't work under 4.3+
9798	  collect2name=`${CC} -print-prog-name=collect2`
9799	  if test -f "$collect2name" &&
9800	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9801	  then
9802	  # We have reworked collect2
9803	  :
9804	  else
9805	  # We have old collect2
9806	  hardcode_direct=unsupported
9807	  # It fails to find uninstalled libraries when the uninstalled
9808	  # path is not listed in the libpath.  Setting hardcode_minus_L
9809	  # to unsupported forces relinking
9810	  hardcode_minus_L=yes
9811	  hardcode_libdir_flag_spec='-L$libdir'
9812	  hardcode_libdir_separator=
9813	  fi
9814	  ;;
9815	esac
9816	shared_flag='-shared'
9817	if test "$aix_use_runtimelinking" = yes; then
9818	  shared_flag="$shared_flag "'${wl}-G'
9819	fi
9820      else
9821	# not using gcc
9822	if test "$host_cpu" = ia64; then
9823	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9824	# chokes on -Wl,-G. The following line is correct:
9825	  shared_flag='-G'
9826	else
9827	  if test "$aix_use_runtimelinking" = yes; then
9828	    shared_flag='${wl}-G'
9829	  else
9830	    shared_flag='${wl}-bM:SRE'
9831	  fi
9832	fi
9833      fi
9834
9835      export_dynamic_flag_spec='${wl}-bexpall'
9836      # It seems that -bexpall does not export symbols beginning with
9837      # underscore (_), so it is better to generate a list of symbols to export.
9838      always_export_symbols=yes
9839      if test "$aix_use_runtimelinking" = yes; then
9840	# Warning - without using the other runtime loading flags (-brtl),
9841	# -berok will link without error, but may produce a broken library.
9842	allow_undefined_flag='-berok'
9843        # Determine the default libpath from the value encoded in an
9844        # empty executable.
9845        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846/* end confdefs.h.  */
9847
9848int
9849main ()
9850{
9851
9852  ;
9853  return 0;
9854}
9855_ACEOF
9856if ac_fn_c_try_link "$LINENO"; then :
9857
9858lt_aix_libpath_sed='
9859    /Import File Strings/,/^$/ {
9860	/^0/ {
9861	    s/^0  *\(.*\)$/\1/
9862	    p
9863	}
9864    }'
9865aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9866# Check for a 64-bit object if we didn't find anything.
9867if test -z "$aix_libpath"; then
9868  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9869fi
9870fi
9871rm -f core conftest.err conftest.$ac_objext \
9872    conftest$ac_exeext conftest.$ac_ext
9873if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9874
9875        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9876        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9877      else
9878	if test "$host_cpu" = ia64; then
9879	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9880	  allow_undefined_flag="-z nodefs"
9881	  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"
9882	else
9883	 # Determine the default libpath from the value encoded in an
9884	 # empty executable.
9885	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886/* end confdefs.h.  */
9887
9888int
9889main ()
9890{
9891
9892  ;
9893  return 0;
9894}
9895_ACEOF
9896if ac_fn_c_try_link "$LINENO"; then :
9897
9898lt_aix_libpath_sed='
9899    /Import File Strings/,/^$/ {
9900	/^0/ {
9901	    s/^0  *\(.*\)$/\1/
9902	    p
9903	}
9904    }'
9905aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9906# Check for a 64-bit object if we didn't find anything.
9907if test -z "$aix_libpath"; then
9908  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9909fi
9910fi
9911rm -f core conftest.err conftest.$ac_objext \
9912    conftest$ac_exeext conftest.$ac_ext
9913if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9914
9915	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9916	  # Warning - without using the other run time loading flags,
9917	  # -berok will link without error, but may produce a broken library.
9918	  no_undefined_flag=' ${wl}-bernotok'
9919	  allow_undefined_flag=' ${wl}-berok'
9920	  if test "$with_gnu_ld" = yes; then
9921	    # We only use this code for GNU lds that support --whole-archive.
9922	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9923	  else
9924	    # Exported symbols can be pulled into shared objects from archives
9925	    whole_archive_flag_spec='$convenience'
9926	  fi
9927	  archive_cmds_need_lc=yes
9928	  # This is similar to how AIX traditionally builds its shared libraries.
9929	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9930	fi
9931      fi
9932      ;;
9933
9934    amigaos*)
9935      case $host_cpu in
9936      powerpc)
9937            # see comment about AmigaOS4 .so support
9938            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9939            archive_expsym_cmds=''
9940        ;;
9941      m68k)
9942            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)'
9943            hardcode_libdir_flag_spec='-L$libdir'
9944            hardcode_minus_L=yes
9945        ;;
9946      esac
9947      ;;
9948
9949    bsdi[45]*)
9950      export_dynamic_flag_spec=-rdynamic
9951      ;;
9952
9953    cygwin* | mingw* | pw32* | cegcc*)
9954      # When not using gcc, we currently assume that we are using
9955      # Microsoft Visual C++.
9956      # hardcode_libdir_flag_spec is actually meaningless, as there is
9957      # no search path for DLLs.
9958      hardcode_libdir_flag_spec=' '
9959      allow_undefined_flag=unsupported
9960      # Tell ltmain to make .lib files, not .a files.
9961      libext=lib
9962      # Tell ltmain to make .dll files, not .so files.
9963      shrext_cmds=".dll"
9964      # FIXME: Setting linknames here is a bad hack.
9965      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9966      # The linker will automatically build a .lib file if we build a DLL.
9967      old_archive_from_new_cmds='true'
9968      # FIXME: Should let the user specify the lib program.
9969      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9970      fix_srcfile_path='`cygpath -w "$srcfile"`'
9971      enable_shared_with_static_runtimes=yes
9972      ;;
9973
9974    darwin* | rhapsody*)
9975
9976
9977  archive_cmds_need_lc=no
9978  hardcode_direct=no
9979  hardcode_automatic=yes
9980  hardcode_shlibpath_var=unsupported
9981  if test "$lt_cv_ld_force_load" = "yes"; then
9982    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\"`'
9983  else
9984    whole_archive_flag_spec=''
9985  fi
9986  link_all_deplibs=yes
9987  allow_undefined_flag="$_lt_dar_allow_undefined"
9988  case $cc_basename in
9989     ifort*) _lt_dar_can_shared=yes ;;
9990     *) _lt_dar_can_shared=$GCC ;;
9991  esac
9992  if test "$_lt_dar_can_shared" = "yes"; then
9993    output_verbose_link_cmd=func_echo_all
9994    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9995    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9996    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}"
9997    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}"
9998
9999  else
10000  ld_shlibs=no
10001  fi
10002
10003      ;;
10004
10005    dgux*)
10006      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007      hardcode_libdir_flag_spec='-L$libdir'
10008      hardcode_shlibpath_var=no
10009      ;;
10010
10011    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10012    # support.  Future versions do this automatically, but an explicit c++rt0.o
10013    # does not break anything, and helps significantly (at the cost of a little
10014    # extra space).
10015    freebsd2.2*)
10016      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10017      hardcode_libdir_flag_spec='-R$libdir'
10018      hardcode_direct=yes
10019      hardcode_shlibpath_var=no
10020      ;;
10021
10022    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10023    freebsd2.*)
10024      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10025      hardcode_direct=yes
10026      hardcode_minus_L=yes
10027      hardcode_shlibpath_var=no
10028      ;;
10029
10030    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10031    freebsd* | dragonfly*)
10032      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10033      hardcode_libdir_flag_spec='-R$libdir'
10034      hardcode_direct=yes
10035      hardcode_shlibpath_var=no
10036      ;;
10037
10038    hpux9*)
10039      if test "$GCC" = yes; then
10040	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10041      else
10042	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10043      fi
10044      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10045      hardcode_libdir_separator=:
10046      hardcode_direct=yes
10047
10048      # hardcode_minus_L: Not really in the search PATH,
10049      # but as the default location of the library.
10050      hardcode_minus_L=yes
10051      export_dynamic_flag_spec='${wl}-E'
10052      ;;
10053
10054    hpux10*)
10055      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10056	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10057      else
10058	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10059      fi
10060      if test "$with_gnu_ld" = no; then
10061	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10062	hardcode_libdir_flag_spec_ld='+b $libdir'
10063	hardcode_libdir_separator=:
10064	hardcode_direct=yes
10065	hardcode_direct_absolute=yes
10066	export_dynamic_flag_spec='${wl}-E'
10067	# hardcode_minus_L: Not really in the search PATH,
10068	# but as the default location of the library.
10069	hardcode_minus_L=yes
10070      fi
10071      ;;
10072
10073    hpux11*)
10074      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10075	case $host_cpu in
10076	hppa*64*)
10077	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10078	  ;;
10079	ia64*)
10080	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10081	  ;;
10082	*)
10083	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10084	  ;;
10085	esac
10086      else
10087	case $host_cpu in
10088	hppa*64*)
10089	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10090	  ;;
10091	ia64*)
10092	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10093	  ;;
10094	*)
10095
10096	  # Older versions of the 11.00 compiler do not understand -b yet
10097	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10098	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10099$as_echo_n "checking if $CC understands -b... " >&6; }
10100if test "${lt_cv_prog_compiler__b+set}" = set; then :
10101  $as_echo_n "(cached) " >&6
10102else
10103  lt_cv_prog_compiler__b=no
10104   save_LDFLAGS="$LDFLAGS"
10105   LDFLAGS="$LDFLAGS -b"
10106   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10107   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10108     # The linker can only warn and ignore the option if not recognized
10109     # So say no if there are warnings
10110     if test -s conftest.err; then
10111       # Append any errors to the config.log.
10112       cat conftest.err 1>&5
10113       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10114       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10115       if diff conftest.exp conftest.er2 >/dev/null; then
10116         lt_cv_prog_compiler__b=yes
10117       fi
10118     else
10119       lt_cv_prog_compiler__b=yes
10120     fi
10121   fi
10122   $RM -r conftest*
10123   LDFLAGS="$save_LDFLAGS"
10124
10125fi
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10127$as_echo "$lt_cv_prog_compiler__b" >&6; }
10128
10129if test x"$lt_cv_prog_compiler__b" = xyes; then
10130    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10131else
10132    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10133fi
10134
10135	  ;;
10136	esac
10137      fi
10138      if test "$with_gnu_ld" = no; then
10139	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10140	hardcode_libdir_separator=:
10141
10142	case $host_cpu in
10143	hppa*64*|ia64*)
10144	  hardcode_direct=no
10145	  hardcode_shlibpath_var=no
10146	  ;;
10147	*)
10148	  hardcode_direct=yes
10149	  hardcode_direct_absolute=yes
10150	  export_dynamic_flag_spec='${wl}-E'
10151
10152	  # hardcode_minus_L: Not really in the search PATH,
10153	  # but as the default location of the library.
10154	  hardcode_minus_L=yes
10155	  ;;
10156	esac
10157      fi
10158      ;;
10159
10160    irix5* | irix6* | nonstopux*)
10161      if test "$GCC" = yes; then
10162	archive_cmds='$CC -shared $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'
10163	# Try to use the -exported_symbol ld option, if it does not
10164	# work, assume that -exports_file does not work either and
10165	# implicitly export all symbols.
10166        save_LDFLAGS="$LDFLAGS"
10167        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10168        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169/* end confdefs.h.  */
10170int foo(void) {}
10171_ACEOF
10172if ac_fn_c_try_link "$LINENO"; then :
10173  archive_expsym_cmds='$CC -shared $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'
10174
10175fi
10176rm -f core conftest.err conftest.$ac_objext \
10177    conftest$ac_exeext conftest.$ac_ext
10178        LDFLAGS="$save_LDFLAGS"
10179      else
10180	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'
10181	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'
10182      fi
10183      archive_cmds_need_lc='no'
10184      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10185      hardcode_libdir_separator=:
10186      inherit_rpath=yes
10187      link_all_deplibs=yes
10188      ;;
10189
10190    netbsd*)
10191      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10192	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10193      else
10194	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10195      fi
10196      hardcode_libdir_flag_spec='-R$libdir'
10197      hardcode_direct=yes
10198      hardcode_shlibpath_var=no
10199      ;;
10200
10201    newsos6)
10202      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203      hardcode_direct=yes
10204      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10205      hardcode_libdir_separator=:
10206      hardcode_shlibpath_var=no
10207      ;;
10208
10209    *nto* | *qnx*)
10210      ;;
10211
10212    openbsd*)
10213      if test -f /usr/libexec/ld.so; then
10214	hardcode_direct=yes
10215	hardcode_shlibpath_var=no
10216	hardcode_direct_absolute=yes
10217	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10218	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10219	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10220	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10221	  export_dynamic_flag_spec='${wl}-E'
10222	else
10223	  case $host_os in
10224	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10225	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10226	     hardcode_libdir_flag_spec='-R$libdir'
10227	     ;;
10228	   *)
10229	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10230	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10231	     ;;
10232	  esac
10233	fi
10234      else
10235	ld_shlibs=no
10236      fi
10237      ;;
10238
10239    os2*)
10240      hardcode_libdir_flag_spec='-L$libdir'
10241      hardcode_minus_L=yes
10242      allow_undefined_flag=unsupported
10243      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10244      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10245      ;;
10246
10247    osf3*)
10248      if test "$GCC" = yes; then
10249	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10250	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'
10251      else
10252	allow_undefined_flag=' -expect_unresolved \*'
10253	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'
10254      fi
10255      archive_cmds_need_lc='no'
10256      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10257      hardcode_libdir_separator=:
10258      ;;
10259
10260    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10261      if test "$GCC" = yes; then
10262	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10263	archive_cmds='$CC -shared${allow_undefined_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'
10264	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10265      else
10266	allow_undefined_flag=' -expect_unresolved \*'
10267	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'
10268	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~
10269	$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'
10270
10271	# Both c and cxx compiler support -rpath directly
10272	hardcode_libdir_flag_spec='-rpath $libdir'
10273      fi
10274      archive_cmds_need_lc='no'
10275      hardcode_libdir_separator=:
10276      ;;
10277
10278    solaris*)
10279      no_undefined_flag=' -z defs'
10280      if test "$GCC" = yes; then
10281	wlarc='${wl}'
10282	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10283	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10284	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10285      else
10286	case `$CC -V 2>&1` in
10287	*"Compilers 5.0"*)
10288	  wlarc=''
10289	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10290	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10291	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10292	  ;;
10293	*)
10294	  wlarc='${wl}'
10295	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10296	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10298	  ;;
10299	esac
10300      fi
10301      hardcode_libdir_flag_spec='-R$libdir'
10302      hardcode_shlibpath_var=no
10303      case $host_os in
10304      solaris2.[0-5] | solaris2.[0-5].*) ;;
10305      *)
10306	# The compiler driver will combine and reorder linker options,
10307	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10308	# but is careful enough not to reorder.
10309	# Supported since Solaris 2.6 (maybe 2.5.1?)
10310	if test "$GCC" = yes; then
10311	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10312	else
10313	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10314	fi
10315	;;
10316      esac
10317      link_all_deplibs=yes
10318      ;;
10319
10320    sunos4*)
10321      if test "x$host_vendor" = xsequent; then
10322	# Use $CC to link under sequent, because it throws in some extra .o
10323	# files that make .init and .fini sections work.
10324	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10325      else
10326	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10327      fi
10328      hardcode_libdir_flag_spec='-L$libdir'
10329      hardcode_direct=yes
10330      hardcode_minus_L=yes
10331      hardcode_shlibpath_var=no
10332      ;;
10333
10334    sysv4)
10335      case $host_vendor in
10336	sni)
10337	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10338	  hardcode_direct=yes # is this really true???
10339	;;
10340	siemens)
10341	  ## LD is ld it makes a PLAMLIB
10342	  ## CC just makes a GrossModule.
10343	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10344	  reload_cmds='$CC -r -o $output$reload_objs'
10345	  hardcode_direct=no
10346        ;;
10347	motorola)
10348	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10350	;;
10351      esac
10352      runpath_var='LD_RUN_PATH'
10353      hardcode_shlibpath_var=no
10354      ;;
10355
10356    sysv4.3*)
10357      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10358      hardcode_shlibpath_var=no
10359      export_dynamic_flag_spec='-Bexport'
10360      ;;
10361
10362    sysv4*MP*)
10363      if test -d /usr/nec; then
10364	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10365	hardcode_shlibpath_var=no
10366	runpath_var=LD_RUN_PATH
10367	hardcode_runpath_var=yes
10368	ld_shlibs=yes
10369      fi
10370      ;;
10371
10372    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10373      no_undefined_flag='${wl}-z,text'
10374      archive_cmds_need_lc=no
10375      hardcode_shlibpath_var=no
10376      runpath_var='LD_RUN_PATH'
10377
10378      if test "$GCC" = yes; then
10379	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10381      else
10382	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10383	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10384      fi
10385      ;;
10386
10387    sysv5* | sco3.2v5* | sco5v6*)
10388      # Note: We can NOT use -z defs as we might desire, because we do not
10389      # link with -lc, and that would cause any symbols used from libc to
10390      # always be unresolved, which means just about no library would
10391      # ever link correctly.  If we're not using GNU ld we use -z text
10392      # though, which does catch some bad symbols but isn't as heavy-handed
10393      # as -z defs.
10394      no_undefined_flag='${wl}-z,text'
10395      allow_undefined_flag='${wl}-z,nodefs'
10396      archive_cmds_need_lc=no
10397      hardcode_shlibpath_var=no
10398      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10399      hardcode_libdir_separator=':'
10400      link_all_deplibs=yes
10401      export_dynamic_flag_spec='${wl}-Bexport'
10402      runpath_var='LD_RUN_PATH'
10403
10404      if test "$GCC" = yes; then
10405	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10407      else
10408	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10409	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10410      fi
10411      ;;
10412
10413    uts4*)
10414      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10415      hardcode_libdir_flag_spec='-L$libdir'
10416      hardcode_shlibpath_var=no
10417      ;;
10418
10419    *)
10420      ld_shlibs=no
10421      ;;
10422    esac
10423
10424    if test x$host_vendor = xsni; then
10425      case $host in
10426      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10427	export_dynamic_flag_spec='${wl}-Blargedynsym'
10428	;;
10429      esac
10430    fi
10431  fi
10432
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10434$as_echo "$ld_shlibs" >&6; }
10435test "$ld_shlibs" = no && can_build_shared=no
10436
10437with_gnu_ld=$with_gnu_ld
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453#
10454# Do we need to explicitly link libc?
10455#
10456case "x$archive_cmds_need_lc" in
10457x|xyes)
10458  # Assume -lc should be added
10459  archive_cmds_need_lc=yes
10460
10461  if test "$enable_shared" = yes && test "$GCC" = yes; then
10462    case $archive_cmds in
10463    *'~'*)
10464      # FIXME: we may have to deal with multi-command sequences.
10465      ;;
10466    '$CC '*)
10467      # Test whether the compiler implicitly links with -lc since on some
10468      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10469      # to ld, don't add -lc before -lgcc.
10470      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10471$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10472if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10473  $as_echo_n "(cached) " >&6
10474else
10475  $RM conftest*
10476	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10477
10478	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10479  (eval $ac_compile) 2>&5
10480  ac_status=$?
10481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10482  test $ac_status = 0; } 2>conftest.err; then
10483	  soname=conftest
10484	  lib=conftest
10485	  libobjs=conftest.$ac_objext
10486	  deplibs=
10487	  wl=$lt_prog_compiler_wl
10488	  pic_flag=$lt_prog_compiler_pic
10489	  compiler_flags=-v
10490	  linker_flags=-v
10491	  verstring=
10492	  output_objdir=.
10493	  libname=conftest
10494	  lt_save_allow_undefined_flag=$allow_undefined_flag
10495	  allow_undefined_flag=
10496	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10497  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10498  ac_status=$?
10499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10500  test $ac_status = 0; }
10501	  then
10502	    lt_cv_archive_cmds_need_lc=no
10503	  else
10504	    lt_cv_archive_cmds_need_lc=yes
10505	  fi
10506	  allow_undefined_flag=$lt_save_allow_undefined_flag
10507	else
10508	  cat conftest.err 1>&5
10509	fi
10510	$RM conftest*
10511
10512fi
10513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10514$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10515      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10516      ;;
10517    esac
10518  fi
10519  ;;
10520esac
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10679$as_echo_n "checking dynamic linker characteristics... " >&6; }
10680
10681if test "$GCC" = yes; then
10682  case $host_os in
10683    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10684    *) lt_awk_arg="/^libraries:/" ;;
10685  esac
10686  case $host_os in
10687    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10688    *) lt_sed_strip_eq="s,=/,/,g" ;;
10689  esac
10690  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10691  case $lt_search_path_spec in
10692  *\;*)
10693    # if the path contains ";" then we assume it to be the separator
10694    # otherwise default to the standard path separator (i.e. ":") - it is
10695    # assumed that no part of a normal pathname contains ";" but that should
10696    # okay in the real world where ";" in dirpaths is itself problematic.
10697    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10698    ;;
10699  *)
10700    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10701    ;;
10702  esac
10703  # Ok, now we have the path, separated by spaces, we can step through it
10704  # and add multilib dir if necessary.
10705  lt_tmp_lt_search_path_spec=
10706  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10707  for lt_sys_path in $lt_search_path_spec; do
10708    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10709      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10710    else
10711      test -d "$lt_sys_path" && \
10712	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10713    fi
10714  done
10715  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10716BEGIN {RS=" "; FS="/|\n";} {
10717  lt_foo="";
10718  lt_count=0;
10719  for (lt_i = NF; lt_i > 0; lt_i--) {
10720    if ($lt_i != "" && $lt_i != ".") {
10721      if ($lt_i == "..") {
10722        lt_count++;
10723      } else {
10724        if (lt_count == 0) {
10725          lt_foo="/" $lt_i lt_foo;
10726        } else {
10727          lt_count--;
10728        }
10729      }
10730    }
10731  }
10732  if (lt_foo != "") { lt_freq[lt_foo]++; }
10733  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10734}'`
10735  # AWK program above erroneously prepends '/' to C:/dos/paths
10736  # for these hosts.
10737  case $host_os in
10738    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10739      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10740  esac
10741  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10742else
10743  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10744fi
10745library_names_spec=
10746libname_spec='lib$name'
10747soname_spec=
10748shrext_cmds=".so"
10749postinstall_cmds=
10750postuninstall_cmds=
10751finish_cmds=
10752finish_eval=
10753shlibpath_var=
10754shlibpath_overrides_runpath=unknown
10755version_type=none
10756dynamic_linker="$host_os ld.so"
10757sys_lib_dlsearch_path_spec="/lib /usr/lib"
10758need_lib_prefix=unknown
10759hardcode_into_libs=no
10760
10761# when you set need_version to no, make sure it does not cause -set_version
10762# flags to be left without arguments
10763need_version=unknown
10764
10765case $host_os in
10766aix3*)
10767  version_type=linux
10768  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10769  shlibpath_var=LIBPATH
10770
10771  # AIX 3 has no versioning support, so we append a major version to the name.
10772  soname_spec='${libname}${release}${shared_ext}$major'
10773  ;;
10774
10775aix[4-9]*)
10776  version_type=linux
10777  need_lib_prefix=no
10778  need_version=no
10779  hardcode_into_libs=yes
10780  if test "$host_cpu" = ia64; then
10781    # AIX 5 supports IA64
10782    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10783    shlibpath_var=LD_LIBRARY_PATH
10784  else
10785    # With GCC up to 2.95.x, collect2 would create an import file
10786    # for dependence libraries.  The import file would start with
10787    # the line `#! .'.  This would cause the generated library to
10788    # depend on `.', always an invalid library.  This was fixed in
10789    # development snapshots of GCC prior to 3.0.
10790    case $host_os in
10791      aix4 | aix4.[01] | aix4.[01].*)
10792      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10793	   echo ' yes '
10794	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10795	:
10796      else
10797	can_build_shared=no
10798      fi
10799      ;;
10800    esac
10801    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10802    # soname into executable. Probably we can add versioning support to
10803    # collect2, so additional links can be useful in future.
10804    if test "$aix_use_runtimelinking" = yes; then
10805      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10806      # instead of lib<name>.a to let people know that these are not
10807      # typical AIX shared libraries.
10808      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809    else
10810      # We preserve .a as extension for shared libraries through AIX4.2
10811      # and later when we are not doing run time linking.
10812      library_names_spec='${libname}${release}.a $libname.a'
10813      soname_spec='${libname}${release}${shared_ext}$major'
10814    fi
10815    shlibpath_var=LIBPATH
10816  fi
10817  ;;
10818
10819amigaos*)
10820  case $host_cpu in
10821  powerpc)
10822    # Since July 2007 AmigaOS4 officially supports .so libraries.
10823    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10824    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825    ;;
10826  m68k)
10827    library_names_spec='$libname.ixlibrary $libname.a'
10828    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10829    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10830    ;;
10831  esac
10832  ;;
10833
10834beos*)
10835  library_names_spec='${libname}${shared_ext}'
10836  dynamic_linker="$host_os ld.so"
10837  shlibpath_var=LIBRARY_PATH
10838  ;;
10839
10840bsdi[45]*)
10841  version_type=linux
10842  need_version=no
10843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844  soname_spec='${libname}${release}${shared_ext}$major'
10845  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10846  shlibpath_var=LD_LIBRARY_PATH
10847  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10848  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10849  # the default ld.so.conf also contains /usr/contrib/lib and
10850  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10851  # libtool to hard-code these into programs
10852  ;;
10853
10854cygwin* | mingw* | pw32* | cegcc*)
10855  version_type=windows
10856  shrext_cmds=".dll"
10857  need_version=no
10858  need_lib_prefix=no
10859
10860  case $GCC,$host_os in
10861  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10862    library_names_spec='$libname.dll.a'
10863    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10864    postinstall_cmds='base_file=`basename \${file}`~
10865      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10866      dldir=$destdir/`dirname \$dlpath`~
10867      test -d \$dldir || mkdir -p \$dldir~
10868      $install_prog $dir/$dlname \$dldir/$dlname~
10869      chmod a+x \$dldir/$dlname~
10870      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10871        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10872      fi'
10873    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10874      dlpath=$dir/\$dldll~
10875       $RM \$dlpath'
10876    shlibpath_overrides_runpath=yes
10877
10878    case $host_os in
10879    cygwin*)
10880      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10881      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10882
10883      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10884      ;;
10885    mingw* | cegcc*)
10886      # MinGW DLLs use traditional 'lib' prefix
10887      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10888      ;;
10889    pw32*)
10890      # pw32 DLLs use 'pw' prefix rather than 'lib'
10891      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10892      ;;
10893    esac
10894    ;;
10895
10896  *)
10897    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10898    ;;
10899  esac
10900  dynamic_linker='Win32 ld.exe'
10901  # FIXME: first we should search . and the directory the executable is in
10902  shlibpath_var=PATH
10903  ;;
10904
10905darwin* | rhapsody*)
10906  dynamic_linker="$host_os dyld"
10907  version_type=darwin
10908  need_lib_prefix=no
10909  need_version=no
10910  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10911  soname_spec='${libname}${release}${major}$shared_ext'
10912  shlibpath_overrides_runpath=yes
10913  shlibpath_var=DYLD_LIBRARY_PATH
10914  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10915
10916  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10917  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10918  ;;
10919
10920dgux*)
10921  version_type=linux
10922  need_lib_prefix=no
10923  need_version=no
10924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10925  soname_spec='${libname}${release}${shared_ext}$major'
10926  shlibpath_var=LD_LIBRARY_PATH
10927  ;;
10928
10929freebsd* | dragonfly*)
10930  # DragonFly does not have aout.  When/if they implement a new
10931  # versioning mechanism, adjust this.
10932  if test -x /usr/bin/objformat; then
10933    objformat=`/usr/bin/objformat`
10934  else
10935    case $host_os in
10936    freebsd[23].*) objformat=aout ;;
10937    *) objformat=elf ;;
10938    esac
10939  fi
10940  version_type=freebsd-$objformat
10941  case $version_type in
10942    freebsd-elf*)
10943      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10944      need_version=no
10945      need_lib_prefix=no
10946      ;;
10947    freebsd-*)
10948      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10949      need_version=yes
10950      ;;
10951  esac
10952  shlibpath_var=LD_LIBRARY_PATH
10953  case $host_os in
10954  freebsd2.*)
10955    shlibpath_overrides_runpath=yes
10956    ;;
10957  freebsd3.[01]* | freebsdelf3.[01]*)
10958    shlibpath_overrides_runpath=yes
10959    hardcode_into_libs=yes
10960    ;;
10961  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10962  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10963    shlibpath_overrides_runpath=no
10964    hardcode_into_libs=yes
10965    ;;
10966  *) # from 4.6 on, and DragonFly
10967    shlibpath_overrides_runpath=yes
10968    hardcode_into_libs=yes
10969    ;;
10970  esac
10971  ;;
10972
10973gnu*)
10974  version_type=linux
10975  need_lib_prefix=no
10976  need_version=no
10977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10978  soname_spec='${libname}${release}${shared_ext}$major'
10979  shlibpath_var=LD_LIBRARY_PATH
10980  hardcode_into_libs=yes
10981  ;;
10982
10983haiku*)
10984  version_type=linux
10985  need_lib_prefix=no
10986  need_version=no
10987  dynamic_linker="$host_os runtime_loader"
10988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10989  soname_spec='${libname}${release}${shared_ext}$major'
10990  shlibpath_var=LIBRARY_PATH
10991  shlibpath_overrides_runpath=yes
10992  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10993  hardcode_into_libs=yes
10994  ;;
10995
10996hpux9* | hpux10* | hpux11*)
10997  # Give a soname corresponding to the major version so that dld.sl refuses to
10998  # link against other versions.
10999  version_type=sunos
11000  need_lib_prefix=no
11001  need_version=no
11002  case $host_cpu in
11003  ia64*)
11004    shrext_cmds='.so'
11005    hardcode_into_libs=yes
11006    dynamic_linker="$host_os dld.so"
11007    shlibpath_var=LD_LIBRARY_PATH
11008    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11009    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010    soname_spec='${libname}${release}${shared_ext}$major'
11011    if test "X$HPUX_IA64_MODE" = X32; then
11012      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11013    else
11014      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11015    fi
11016    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11017    ;;
11018  hppa*64*)
11019    shrext_cmds='.sl'
11020    hardcode_into_libs=yes
11021    dynamic_linker="$host_os dld.sl"
11022    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11023    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025    soname_spec='${libname}${release}${shared_ext}$major'
11026    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11027    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11028    ;;
11029  *)
11030    shrext_cmds='.sl'
11031    dynamic_linker="$host_os dld.sl"
11032    shlibpath_var=SHLIB_PATH
11033    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11034    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035    soname_spec='${libname}${release}${shared_ext}$major'
11036    ;;
11037  esac
11038  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11039  postinstall_cmds='chmod 555 $lib'
11040  # or fails outright, so override atomically:
11041  install_override_mode=555
11042  ;;
11043
11044interix[3-9]*)
11045  version_type=linux
11046  need_lib_prefix=no
11047  need_version=no
11048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11049  soname_spec='${libname}${release}${shared_ext}$major'
11050  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11051  shlibpath_var=LD_LIBRARY_PATH
11052  shlibpath_overrides_runpath=no
11053  hardcode_into_libs=yes
11054  ;;
11055
11056irix5* | irix6* | nonstopux*)
11057  case $host_os in
11058    nonstopux*) version_type=nonstopux ;;
11059    *)
11060	if test "$lt_cv_prog_gnu_ld" = yes; then
11061		version_type=linux
11062	else
11063		version_type=irix
11064	fi ;;
11065  esac
11066  need_lib_prefix=no
11067  need_version=no
11068  soname_spec='${libname}${release}${shared_ext}$major'
11069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11070  case $host_os in
11071  irix5* | nonstopux*)
11072    libsuff= shlibsuff=
11073    ;;
11074  *)
11075    case $LD in # libtool.m4 will add one of these switches to LD
11076    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11077      libsuff= shlibsuff= libmagic=32-bit;;
11078    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11079      libsuff=32 shlibsuff=N32 libmagic=N32;;
11080    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11081      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11082    *) libsuff= shlibsuff= libmagic=never-match;;
11083    esac
11084    ;;
11085  esac
11086  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11087  shlibpath_overrides_runpath=no
11088  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11089  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11090  hardcode_into_libs=yes
11091  ;;
11092
11093# No shared lib support for Linux oldld, aout, or coff.
11094linux*oldld* | linux*aout* | linux*coff*)
11095  dynamic_linker=no
11096  ;;
11097
11098# This must be Linux ELF.
11099linux* | k*bsd*-gnu | kopensolaris*-gnu)
11100  version_type=linux
11101  need_lib_prefix=no
11102  need_version=no
11103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104  soname_spec='${libname}${release}${shared_ext}$major'
11105  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11106  shlibpath_var=LD_LIBRARY_PATH
11107  shlibpath_overrides_runpath=no
11108
11109  # Some binutils ld are patched to set DT_RUNPATH
11110  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11111  $as_echo_n "(cached) " >&6
11112else
11113  lt_cv_shlibpath_overrides_runpath=no
11114    save_LDFLAGS=$LDFLAGS
11115    save_libdir=$libdir
11116    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11117	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11118    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119/* end confdefs.h.  */
11120
11121int
11122main ()
11123{
11124
11125  ;
11126  return 0;
11127}
11128_ACEOF
11129if ac_fn_c_try_link "$LINENO"; then :
11130  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11131  lt_cv_shlibpath_overrides_runpath=yes
11132fi
11133fi
11134rm -f core conftest.err conftest.$ac_objext \
11135    conftest$ac_exeext conftest.$ac_ext
11136    LDFLAGS=$save_LDFLAGS
11137    libdir=$save_libdir
11138
11139fi
11140
11141  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11142
11143  # This implies no fast_install, which is unacceptable.
11144  # Some rework will be needed to allow for fast_install
11145  # before this can be enabled.
11146  hardcode_into_libs=yes
11147
11148  # Append ld.so.conf contents to the search path
11149  if test -f /etc/ld.so.conf; then
11150    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' ' '`
11151    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11152  fi
11153
11154  # We used to test for /lib/ld.so.1 and disable shared libraries on
11155  # powerpc, because MkLinux only supported shared libraries with the
11156  # GNU dynamic linker.  Since this was broken with cross compilers,
11157  # most powerpc-linux boxes support dynamic linking these days and
11158  # people can always --disable-shared, the test was removed, and we
11159  # assume the GNU/Linux dynamic linker is in use.
11160  dynamic_linker='GNU/Linux ld.so'
11161  ;;
11162
11163netbsd*)
11164  version_type=sunos
11165  need_lib_prefix=no
11166  need_version=no
11167  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11168    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11169    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11170    dynamic_linker='NetBSD (a.out) ld.so'
11171  else
11172    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11173    soname_spec='${libname}${release}${shared_ext}$major'
11174    dynamic_linker='NetBSD ld.elf_so'
11175  fi
11176  shlibpath_var=LD_LIBRARY_PATH
11177  shlibpath_overrides_runpath=yes
11178  hardcode_into_libs=yes
11179  ;;
11180
11181newsos6)
11182  version_type=linux
11183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184  shlibpath_var=LD_LIBRARY_PATH
11185  shlibpath_overrides_runpath=yes
11186  ;;
11187
11188*nto* | *qnx*)
11189  version_type=qnx
11190  need_lib_prefix=no
11191  need_version=no
11192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193  soname_spec='${libname}${release}${shared_ext}$major'
11194  shlibpath_var=LD_LIBRARY_PATH
11195  shlibpath_overrides_runpath=no
11196  hardcode_into_libs=yes
11197  dynamic_linker='ldqnx.so'
11198  ;;
11199
11200openbsd*)
11201  version_type=sunos
11202  sys_lib_dlsearch_path_spec="/usr/lib"
11203  need_lib_prefix=no
11204  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11205  case $host_os in
11206    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11207    *)				need_version=no  ;;
11208  esac
11209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11210  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11211  shlibpath_var=LD_LIBRARY_PATH
11212  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11213    case $host_os in
11214      openbsd2.[89] | openbsd2.[89].*)
11215	shlibpath_overrides_runpath=no
11216	;;
11217      *)
11218	shlibpath_overrides_runpath=yes
11219	;;
11220      esac
11221  else
11222    shlibpath_overrides_runpath=yes
11223  fi
11224  ;;
11225
11226os2*)
11227  libname_spec='$name'
11228  shrext_cmds=".dll"
11229  need_lib_prefix=no
11230  library_names_spec='$libname${shared_ext} $libname.a'
11231  dynamic_linker='OS/2 ld.exe'
11232  shlibpath_var=LIBPATH
11233  ;;
11234
11235osf3* | osf4* | osf5*)
11236  version_type=osf
11237  need_lib_prefix=no
11238  need_version=no
11239  soname_spec='${libname}${release}${shared_ext}$major'
11240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241  shlibpath_var=LD_LIBRARY_PATH
11242  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11243  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11244  ;;
11245
11246rdos*)
11247  dynamic_linker=no
11248  ;;
11249
11250solaris*)
11251  version_type=linux
11252  need_lib_prefix=no
11253  need_version=no
11254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255  soname_spec='${libname}${release}${shared_ext}$major'
11256  shlibpath_var=LD_LIBRARY_PATH
11257  shlibpath_overrides_runpath=yes
11258  hardcode_into_libs=yes
11259  # ldd complains unless libraries are executable
11260  postinstall_cmds='chmod +x $lib'
11261  ;;
11262
11263sunos4*)
11264  version_type=sunos
11265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11266  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11267  shlibpath_var=LD_LIBRARY_PATH
11268  shlibpath_overrides_runpath=yes
11269  if test "$with_gnu_ld" = yes; then
11270    need_lib_prefix=no
11271  fi
11272  need_version=yes
11273  ;;
11274
11275sysv4 | sysv4.3*)
11276  version_type=linux
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  shlibpath_var=LD_LIBRARY_PATH
11280  case $host_vendor in
11281    sni)
11282      shlibpath_overrides_runpath=no
11283      need_lib_prefix=no
11284      runpath_var=LD_RUN_PATH
11285      ;;
11286    siemens)
11287      need_lib_prefix=no
11288      ;;
11289    motorola)
11290      need_lib_prefix=no
11291      need_version=no
11292      shlibpath_overrides_runpath=no
11293      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11294      ;;
11295  esac
11296  ;;
11297
11298sysv4*MP*)
11299  if test -d /usr/nec ;then
11300    version_type=linux
11301    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11302    soname_spec='$libname${shared_ext}.$major'
11303    shlibpath_var=LD_LIBRARY_PATH
11304  fi
11305  ;;
11306
11307sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11308  version_type=freebsd-elf
11309  need_lib_prefix=no
11310  need_version=no
11311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11312  soname_spec='${libname}${release}${shared_ext}$major'
11313  shlibpath_var=LD_LIBRARY_PATH
11314  shlibpath_overrides_runpath=yes
11315  hardcode_into_libs=yes
11316  if test "$with_gnu_ld" = yes; then
11317    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11318  else
11319    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11320    case $host_os in
11321      sco3.2v5*)
11322        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11323	;;
11324    esac
11325  fi
11326  sys_lib_dlsearch_path_spec='/usr/lib'
11327  ;;
11328
11329tpf*)
11330  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11331  version_type=linux
11332  need_lib_prefix=no
11333  need_version=no
11334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335  shlibpath_var=LD_LIBRARY_PATH
11336  shlibpath_overrides_runpath=no
11337  hardcode_into_libs=yes
11338  ;;
11339
11340uts4*)
11341  version_type=linux
11342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343  soname_spec='${libname}${release}${shared_ext}$major'
11344  shlibpath_var=LD_LIBRARY_PATH
11345  ;;
11346
11347*)
11348  dynamic_linker=no
11349  ;;
11350esac
11351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11352$as_echo "$dynamic_linker" >&6; }
11353test "$dynamic_linker" = no && can_build_shared=no
11354
11355variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11356if test "$GCC" = yes; then
11357  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11358fi
11359
11360if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11361  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11362fi
11363if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11364  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11365fi
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11459$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11460hardcode_action=
11461if test -n "$hardcode_libdir_flag_spec" ||
11462   test -n "$runpath_var" ||
11463   test "X$hardcode_automatic" = "Xyes" ; then
11464
11465  # We can hardcode non-existent directories.
11466  if test "$hardcode_direct" != no &&
11467     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11468     # have to relink, otherwise we might link with an installed library
11469     # when we should be linking with a yet-to-be-installed one
11470     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11471     test "$hardcode_minus_L" != no; then
11472    # Linking always hardcodes the temporary library directory.
11473    hardcode_action=relink
11474  else
11475    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11476    hardcode_action=immediate
11477  fi
11478else
11479  # We cannot hardcode anything, or else we can only hardcode existing
11480  # directories.
11481  hardcode_action=unsupported
11482fi
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11484$as_echo "$hardcode_action" >&6; }
11485
11486if test "$hardcode_action" = relink ||
11487   test "$inherit_rpath" = yes; then
11488  # Fast installation is not supported
11489  enable_fast_install=no
11490elif test "$shlibpath_overrides_runpath" = yes ||
11491     test "$enable_shared" = no; then
11492  # Fast installation is not necessary
11493  enable_fast_install=needless
11494fi
11495
11496
11497
11498
11499
11500
11501  if test "x$enable_dlopen" != xyes; then
11502  enable_dlopen=unknown
11503  enable_dlopen_self=unknown
11504  enable_dlopen_self_static=unknown
11505else
11506  lt_cv_dlopen=no
11507  lt_cv_dlopen_libs=
11508
11509  case $host_os in
11510  beos*)
11511    lt_cv_dlopen="load_add_on"
11512    lt_cv_dlopen_libs=
11513    lt_cv_dlopen_self=yes
11514    ;;
11515
11516  mingw* | pw32* | cegcc*)
11517    lt_cv_dlopen="LoadLibrary"
11518    lt_cv_dlopen_libs=
11519    ;;
11520
11521  cygwin*)
11522    lt_cv_dlopen="dlopen"
11523    lt_cv_dlopen_libs=
11524    ;;
11525
11526  darwin*)
11527  # if libdl is installed we need to link against it
11528    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11529$as_echo_n "checking for dlopen in -ldl... " >&6; }
11530if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11531  $as_echo_n "(cached) " >&6
11532else
11533  ac_check_lib_save_LIBS=$LIBS
11534LIBS="-ldl  $LIBS"
11535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536/* end confdefs.h.  */
11537
11538/* Override any GCC internal prototype to avoid an error.
11539   Use char because int might match the return type of a GCC
11540   builtin and then its argument prototype would still apply.  */
11541#ifdef __cplusplus
11542extern "C"
11543#endif
11544char dlopen ();
11545int
11546main ()
11547{
11548return dlopen ();
11549  ;
11550  return 0;
11551}
11552_ACEOF
11553if ac_fn_c_try_link "$LINENO"; then :
11554  ac_cv_lib_dl_dlopen=yes
11555else
11556  ac_cv_lib_dl_dlopen=no
11557fi
11558rm -f core conftest.err conftest.$ac_objext \
11559    conftest$ac_exeext conftest.$ac_ext
11560LIBS=$ac_check_lib_save_LIBS
11561fi
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11563$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11564if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11565  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11566else
11567
11568    lt_cv_dlopen="dyld"
11569    lt_cv_dlopen_libs=
11570    lt_cv_dlopen_self=yes
11571
11572fi
11573
11574    ;;
11575
11576  *)
11577    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11578if test "x$ac_cv_func_shl_load" = x""yes; then :
11579  lt_cv_dlopen="shl_load"
11580else
11581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11582$as_echo_n "checking for shl_load in -ldld... " >&6; }
11583if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11584  $as_echo_n "(cached) " >&6
11585else
11586  ac_check_lib_save_LIBS=$LIBS
11587LIBS="-ldld  $LIBS"
11588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589/* end confdefs.h.  */
11590
11591/* Override any GCC internal prototype to avoid an error.
11592   Use char because int might match the return type of a GCC
11593   builtin and then its argument prototype would still apply.  */
11594#ifdef __cplusplus
11595extern "C"
11596#endif
11597char shl_load ();
11598int
11599main ()
11600{
11601return shl_load ();
11602  ;
11603  return 0;
11604}
11605_ACEOF
11606if ac_fn_c_try_link "$LINENO"; then :
11607  ac_cv_lib_dld_shl_load=yes
11608else
11609  ac_cv_lib_dld_shl_load=no
11610fi
11611rm -f core conftest.err conftest.$ac_objext \
11612    conftest$ac_exeext conftest.$ac_ext
11613LIBS=$ac_check_lib_save_LIBS
11614fi
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11616$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11617if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11618  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11619else
11620  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11621if test "x$ac_cv_func_dlopen" = x""yes; then :
11622  lt_cv_dlopen="dlopen"
11623else
11624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11625$as_echo_n "checking for dlopen in -ldl... " >&6; }
11626if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11627  $as_echo_n "(cached) " >&6
11628else
11629  ac_check_lib_save_LIBS=$LIBS
11630LIBS="-ldl  $LIBS"
11631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632/* end confdefs.h.  */
11633
11634/* Override any GCC internal prototype to avoid an error.
11635   Use char because int might match the return type of a GCC
11636   builtin and then its argument prototype would still apply.  */
11637#ifdef __cplusplus
11638extern "C"
11639#endif
11640char dlopen ();
11641int
11642main ()
11643{
11644return dlopen ();
11645  ;
11646  return 0;
11647}
11648_ACEOF
11649if ac_fn_c_try_link "$LINENO"; then :
11650  ac_cv_lib_dl_dlopen=yes
11651else
11652  ac_cv_lib_dl_dlopen=no
11653fi
11654rm -f core conftest.err conftest.$ac_objext \
11655    conftest$ac_exeext conftest.$ac_ext
11656LIBS=$ac_check_lib_save_LIBS
11657fi
11658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11659$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11660if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11661  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11662else
11663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11664$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11665if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11666  $as_echo_n "(cached) " >&6
11667else
11668  ac_check_lib_save_LIBS=$LIBS
11669LIBS="-lsvld  $LIBS"
11670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671/* end confdefs.h.  */
11672
11673/* Override any GCC internal prototype to avoid an error.
11674   Use char because int might match the return type of a GCC
11675   builtin and then its argument prototype would still apply.  */
11676#ifdef __cplusplus
11677extern "C"
11678#endif
11679char dlopen ();
11680int
11681main ()
11682{
11683return dlopen ();
11684  ;
11685  return 0;
11686}
11687_ACEOF
11688if ac_fn_c_try_link "$LINENO"; then :
11689  ac_cv_lib_svld_dlopen=yes
11690else
11691  ac_cv_lib_svld_dlopen=no
11692fi
11693rm -f core conftest.err conftest.$ac_objext \
11694    conftest$ac_exeext conftest.$ac_ext
11695LIBS=$ac_check_lib_save_LIBS
11696fi
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11698$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11699if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11700  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11701else
11702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11703$as_echo_n "checking for dld_link in -ldld... " >&6; }
11704if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11705  $as_echo_n "(cached) " >&6
11706else
11707  ac_check_lib_save_LIBS=$LIBS
11708LIBS="-ldld  $LIBS"
11709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710/* end confdefs.h.  */
11711
11712/* Override any GCC internal prototype to avoid an error.
11713   Use char because int might match the return type of a GCC
11714   builtin and then its argument prototype would still apply.  */
11715#ifdef __cplusplus
11716extern "C"
11717#endif
11718char dld_link ();
11719int
11720main ()
11721{
11722return dld_link ();
11723  ;
11724  return 0;
11725}
11726_ACEOF
11727if ac_fn_c_try_link "$LINENO"; then :
11728  ac_cv_lib_dld_dld_link=yes
11729else
11730  ac_cv_lib_dld_dld_link=no
11731fi
11732rm -f core conftest.err conftest.$ac_objext \
11733    conftest$ac_exeext conftest.$ac_ext
11734LIBS=$ac_check_lib_save_LIBS
11735fi
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11737$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11738if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11739  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11740fi
11741
11742
11743fi
11744
11745
11746fi
11747
11748
11749fi
11750
11751
11752fi
11753
11754
11755fi
11756
11757    ;;
11758  esac
11759
11760  if test "x$lt_cv_dlopen" != xno; then
11761    enable_dlopen=yes
11762  else
11763    enable_dlopen=no
11764  fi
11765
11766  case $lt_cv_dlopen in
11767  dlopen)
11768    save_CPPFLAGS="$CPPFLAGS"
11769    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11770
11771    save_LDFLAGS="$LDFLAGS"
11772    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11773
11774    save_LIBS="$LIBS"
11775    LIBS="$lt_cv_dlopen_libs $LIBS"
11776
11777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11778$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11779if test "${lt_cv_dlopen_self+set}" = set; then :
11780  $as_echo_n "(cached) " >&6
11781else
11782  	  if test "$cross_compiling" = yes; then :
11783  lt_cv_dlopen_self=cross
11784else
11785  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11786  lt_status=$lt_dlunknown
11787  cat > conftest.$ac_ext <<_LT_EOF
11788#line 11788 "configure"
11789#include "confdefs.h"
11790
11791#if HAVE_DLFCN_H
11792#include <dlfcn.h>
11793#endif
11794
11795#include <stdio.h>
11796
11797#ifdef RTLD_GLOBAL
11798#  define LT_DLGLOBAL		RTLD_GLOBAL
11799#else
11800#  ifdef DL_GLOBAL
11801#    define LT_DLGLOBAL		DL_GLOBAL
11802#  else
11803#    define LT_DLGLOBAL		0
11804#  endif
11805#endif
11806
11807/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11808   find out it does not work in some platform. */
11809#ifndef LT_DLLAZY_OR_NOW
11810#  ifdef RTLD_LAZY
11811#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11812#  else
11813#    ifdef DL_LAZY
11814#      define LT_DLLAZY_OR_NOW		DL_LAZY
11815#    else
11816#      ifdef RTLD_NOW
11817#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11818#      else
11819#        ifdef DL_NOW
11820#          define LT_DLLAZY_OR_NOW	DL_NOW
11821#        else
11822#          define LT_DLLAZY_OR_NOW	0
11823#        endif
11824#      endif
11825#    endif
11826#  endif
11827#endif
11828
11829/* When -fvisbility=hidden is used, assume the code has been annotated
11830   correspondingly for the symbols needed.  */
11831#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11832void fnord () __attribute__((visibility("default")));
11833#endif
11834
11835void fnord () { int i=42; }
11836int main ()
11837{
11838  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11839  int status = $lt_dlunknown;
11840
11841  if (self)
11842    {
11843      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11844      else
11845        {
11846	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11847          else puts (dlerror ());
11848	}
11849      /* dlclose (self); */
11850    }
11851  else
11852    puts (dlerror ());
11853
11854  return status;
11855}
11856_LT_EOF
11857  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11858  (eval $ac_link) 2>&5
11859  ac_status=$?
11860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11861  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11862    (./conftest; exit; ) >&5 2>/dev/null
11863    lt_status=$?
11864    case x$lt_status in
11865      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11866      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11867      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11868    esac
11869  else :
11870    # compilation failed
11871    lt_cv_dlopen_self=no
11872  fi
11873fi
11874rm -fr conftest*
11875
11876
11877fi
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11879$as_echo "$lt_cv_dlopen_self" >&6; }
11880
11881    if test "x$lt_cv_dlopen_self" = xyes; then
11882      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11883      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11884$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11885if test "${lt_cv_dlopen_self_static+set}" = set; then :
11886  $as_echo_n "(cached) " >&6
11887else
11888  	  if test "$cross_compiling" = yes; then :
11889  lt_cv_dlopen_self_static=cross
11890else
11891  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11892  lt_status=$lt_dlunknown
11893  cat > conftest.$ac_ext <<_LT_EOF
11894#line 11894 "configure"
11895#include "confdefs.h"
11896
11897#if HAVE_DLFCN_H
11898#include <dlfcn.h>
11899#endif
11900
11901#include <stdio.h>
11902
11903#ifdef RTLD_GLOBAL
11904#  define LT_DLGLOBAL		RTLD_GLOBAL
11905#else
11906#  ifdef DL_GLOBAL
11907#    define LT_DLGLOBAL		DL_GLOBAL
11908#  else
11909#    define LT_DLGLOBAL		0
11910#  endif
11911#endif
11912
11913/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11914   find out it does not work in some platform. */
11915#ifndef LT_DLLAZY_OR_NOW
11916#  ifdef RTLD_LAZY
11917#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11918#  else
11919#    ifdef DL_LAZY
11920#      define LT_DLLAZY_OR_NOW		DL_LAZY
11921#    else
11922#      ifdef RTLD_NOW
11923#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11924#      else
11925#        ifdef DL_NOW
11926#          define LT_DLLAZY_OR_NOW	DL_NOW
11927#        else
11928#          define LT_DLLAZY_OR_NOW	0
11929#        endif
11930#      endif
11931#    endif
11932#  endif
11933#endif
11934
11935/* When -fvisbility=hidden is used, assume the code has been annotated
11936   correspondingly for the symbols needed.  */
11937#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11938void fnord () __attribute__((visibility("default")));
11939#endif
11940
11941void fnord () { int i=42; }
11942int main ()
11943{
11944  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11945  int status = $lt_dlunknown;
11946
11947  if (self)
11948    {
11949      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11950      else
11951        {
11952	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11953          else puts (dlerror ());
11954	}
11955      /* dlclose (self); */
11956    }
11957  else
11958    puts (dlerror ());
11959
11960  return status;
11961}
11962_LT_EOF
11963  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11964  (eval $ac_link) 2>&5
11965  ac_status=$?
11966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11967  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11968    (./conftest; exit; ) >&5 2>/dev/null
11969    lt_status=$?
11970    case x$lt_status in
11971      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11972      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11973      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11974    esac
11975  else :
11976    # compilation failed
11977    lt_cv_dlopen_self_static=no
11978  fi
11979fi
11980rm -fr conftest*
11981
11982
11983fi
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11985$as_echo "$lt_cv_dlopen_self_static" >&6; }
11986    fi
11987
11988    CPPFLAGS="$save_CPPFLAGS"
11989    LDFLAGS="$save_LDFLAGS"
11990    LIBS="$save_LIBS"
11991    ;;
11992  esac
11993
11994  case $lt_cv_dlopen_self in
11995  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11996  *) enable_dlopen_self=unknown ;;
11997  esac
11998
11999  case $lt_cv_dlopen_self_static in
12000  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12001  *) enable_dlopen_self_static=unknown ;;
12002  esac
12003fi
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021striplib=
12022old_striplib=
12023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12024$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12025if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12026  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12027  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12029$as_echo "yes" >&6; }
12030else
12031# FIXME - insert some real tests, host_os isn't really good enough
12032  case $host_os in
12033  darwin*)
12034    if test -n "$STRIP" ; then
12035      striplib="$STRIP -x"
12036      old_striplib="$STRIP -S"
12037      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12038$as_echo "yes" >&6; }
12039    else
12040      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041$as_echo "no" >&6; }
12042    fi
12043    ;;
12044  *)
12045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
12047    ;;
12048  esac
12049fi
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062  # Report which library types will actually be built
12063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12064$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12066$as_echo "$can_build_shared" >&6; }
12067
12068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12069$as_echo_n "checking whether to build shared libraries... " >&6; }
12070  test "$can_build_shared" = "no" && enable_shared=no
12071
12072  # On AIX, shared libraries and static libraries use the same namespace, and
12073  # are all built from PIC.
12074  case $host_os in
12075  aix3*)
12076    test "$enable_shared" = yes && enable_static=no
12077    if test -n "$RANLIB"; then
12078      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12079      postinstall_cmds='$RANLIB $lib'
12080    fi
12081    ;;
12082
12083  aix[4-9]*)
12084    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12085      test "$enable_shared" = yes && enable_static=no
12086    fi
12087    ;;
12088  esac
12089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12090$as_echo "$enable_shared" >&6; }
12091
12092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12093$as_echo_n "checking whether to build static libraries... " >&6; }
12094  # Make sure either enable_shared or enable_static is yes.
12095  test "$enable_shared" = yes || enable_static=yes
12096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12097$as_echo "$enable_static" >&6; }
12098
12099
12100
12101
12102fi
12103ac_ext=c
12104ac_cpp='$CPP $CPPFLAGS'
12105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12107ac_compiler_gnu=$ac_cv_c_compiler_gnu
12108
12109CC="$lt_save_CC"
12110
12111      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12112    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12113    (test "X$CXX" != "Xg++"))) ; then
12114  ac_ext=cpp
12115ac_cpp='$CXXCPP $CPPFLAGS'
12116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12120$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12121if test -z "$CXXCPP"; then
12122  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12123  $as_echo_n "(cached) " >&6
12124else
12125      # Double quotes because CXXCPP needs to be expanded
12126    for CXXCPP in "$CXX -E" "/lib/cpp"
12127    do
12128      ac_preproc_ok=false
12129for ac_cxx_preproc_warn_flag in '' yes
12130do
12131  # Use a header file that comes with gcc, so configuring glibc
12132  # with a fresh cross-compiler works.
12133  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12134  # <limits.h> exists even on freestanding compilers.
12135  # On the NeXT, cc -E runs the code through the compiler's parser,
12136  # not just through cpp. "Syntax error" is here to catch this case.
12137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138/* end confdefs.h.  */
12139#ifdef __STDC__
12140# include <limits.h>
12141#else
12142# include <assert.h>
12143#endif
12144		     Syntax error
12145_ACEOF
12146if ac_fn_cxx_try_cpp "$LINENO"; then :
12147
12148else
12149  # Broken: fails on valid input.
12150continue
12151fi
12152rm -f conftest.err conftest.$ac_ext
12153
12154  # OK, works on sane cases.  Now check whether nonexistent headers
12155  # can be detected and how.
12156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157/* end confdefs.h.  */
12158#include <ac_nonexistent.h>
12159_ACEOF
12160if ac_fn_cxx_try_cpp "$LINENO"; then :
12161  # Broken: success on invalid input.
12162continue
12163else
12164  # Passes both tests.
12165ac_preproc_ok=:
12166break
12167fi
12168rm -f conftest.err conftest.$ac_ext
12169
12170done
12171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12172rm -f conftest.err conftest.$ac_ext
12173if $ac_preproc_ok; then :
12174  break
12175fi
12176
12177    done
12178    ac_cv_prog_CXXCPP=$CXXCPP
12179
12180fi
12181  CXXCPP=$ac_cv_prog_CXXCPP
12182else
12183  ac_cv_prog_CXXCPP=$CXXCPP
12184fi
12185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12186$as_echo "$CXXCPP" >&6; }
12187ac_preproc_ok=false
12188for ac_cxx_preproc_warn_flag in '' yes
12189do
12190  # Use a header file that comes with gcc, so configuring glibc
12191  # with a fresh cross-compiler works.
12192  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12193  # <limits.h> exists even on freestanding compilers.
12194  # On the NeXT, cc -E runs the code through the compiler's parser,
12195  # not just through cpp. "Syntax error" is here to catch this case.
12196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197/* end confdefs.h.  */
12198#ifdef __STDC__
12199# include <limits.h>
12200#else
12201# include <assert.h>
12202#endif
12203		     Syntax error
12204_ACEOF
12205if ac_fn_cxx_try_cpp "$LINENO"; then :
12206
12207else
12208  # Broken: fails on valid input.
12209continue
12210fi
12211rm -f conftest.err conftest.$ac_ext
12212
12213  # OK, works on sane cases.  Now check whether nonexistent headers
12214  # can be detected and how.
12215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216/* end confdefs.h.  */
12217#include <ac_nonexistent.h>
12218_ACEOF
12219if ac_fn_cxx_try_cpp "$LINENO"; then :
12220  # Broken: success on invalid input.
12221continue
12222else
12223  # Passes both tests.
12224ac_preproc_ok=:
12225break
12226fi
12227rm -f conftest.err conftest.$ac_ext
12228
12229done
12230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12231rm -f conftest.err conftest.$ac_ext
12232if $ac_preproc_ok; then :
12233
12234else
12235  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12237as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12238See \`config.log' for more details." "$LINENO" 5; }
12239fi
12240
12241ac_ext=c
12242ac_cpp='$CPP $CPPFLAGS'
12243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12245ac_compiler_gnu=$ac_cv_c_compiler_gnu
12246
12247else
12248  _lt_caught_CXX_error=yes
12249fi
12250
12251ac_ext=cpp
12252ac_cpp='$CXXCPP $CPPFLAGS'
12253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12256
12257archive_cmds_need_lc_CXX=no
12258allow_undefined_flag_CXX=
12259always_export_symbols_CXX=no
12260archive_expsym_cmds_CXX=
12261compiler_needs_object_CXX=no
12262export_dynamic_flag_spec_CXX=
12263hardcode_direct_CXX=no
12264hardcode_direct_absolute_CXX=no
12265hardcode_libdir_flag_spec_CXX=
12266hardcode_libdir_flag_spec_ld_CXX=
12267hardcode_libdir_separator_CXX=
12268hardcode_minus_L_CXX=no
12269hardcode_shlibpath_var_CXX=unsupported
12270hardcode_automatic_CXX=no
12271inherit_rpath_CXX=no
12272module_cmds_CXX=
12273module_expsym_cmds_CXX=
12274link_all_deplibs_CXX=unknown
12275old_archive_cmds_CXX=$old_archive_cmds
12276reload_flag_CXX=$reload_flag
12277reload_cmds_CXX=$reload_cmds
12278no_undefined_flag_CXX=
12279whole_archive_flag_spec_CXX=
12280enable_shared_with_static_runtimes_CXX=no
12281
12282# Source file extension for C++ test sources.
12283ac_ext=cpp
12284
12285# Object file extension for compiled C++ test sources.
12286objext=o
12287objext_CXX=$objext
12288
12289# No sense in running all these tests if we already determined that
12290# the CXX compiler isn't working.  Some variables (like enable_shared)
12291# are currently assumed to apply to all compilers on this platform,
12292# and will be corrupted by setting them based on a non-working compiler.
12293if test "$_lt_caught_CXX_error" != yes; then
12294  # Code to be used in simple compile tests
12295  lt_simple_compile_test_code="int some_variable = 0;"
12296
12297  # Code to be used in simple link tests
12298  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12299
12300  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12301
12302
12303
12304
12305
12306
12307# If no C compiler was specified, use CC.
12308LTCC=${LTCC-"$CC"}
12309
12310# If no C compiler flags were specified, use CFLAGS.
12311LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12312
12313# Allow CC to be a program name with arguments.
12314compiler=$CC
12315
12316
12317  # save warnings/boilerplate of simple test code
12318  ac_outfile=conftest.$ac_objext
12319echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12320eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12321_lt_compiler_boilerplate=`cat conftest.err`
12322$RM conftest*
12323
12324  ac_outfile=conftest.$ac_objext
12325echo "$lt_simple_link_test_code" >conftest.$ac_ext
12326eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12327_lt_linker_boilerplate=`cat conftest.err`
12328$RM -r conftest*
12329
12330
12331  # Allow CC to be a program name with arguments.
12332  lt_save_CC=$CC
12333  lt_save_LD=$LD
12334  lt_save_GCC=$GCC
12335  GCC=$GXX
12336  lt_save_with_gnu_ld=$with_gnu_ld
12337  lt_save_path_LD=$lt_cv_path_LD
12338  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12339    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12340  else
12341    $as_unset lt_cv_prog_gnu_ld
12342  fi
12343  if test -n "${lt_cv_path_LDCXX+set}"; then
12344    lt_cv_path_LD=$lt_cv_path_LDCXX
12345  else
12346    $as_unset lt_cv_path_LD
12347  fi
12348  test -z "${LDCXX+set}" || LD=$LDCXX
12349  CC=${CXX-"c++"}
12350  compiler=$CC
12351  compiler_CXX=$CC
12352  for cc_temp in $compiler""; do
12353  case $cc_temp in
12354    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12355    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12356    \-*) ;;
12357    *) break;;
12358  esac
12359done
12360cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12361
12362
12363  if test -n "$compiler"; then
12364    # We don't want -fno-exception when compiling C++ code, so set the
12365    # no_builtin_flag separately
12366    if test "$GXX" = yes; then
12367      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12368    else
12369      lt_prog_compiler_no_builtin_flag_CXX=
12370    fi
12371
12372    if test "$GXX" = yes; then
12373      # Set up default GNU C++ configuration
12374
12375
12376
12377# Check whether --with-gnu-ld was given.
12378if test "${with_gnu_ld+set}" = set; then :
12379  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12380else
12381  with_gnu_ld=no
12382fi
12383
12384ac_prog=ld
12385if test "$GCC" = yes; then
12386  # Check if gcc -print-prog-name=ld gives a path.
12387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12388$as_echo_n "checking for ld used by $CC... " >&6; }
12389  case $host in
12390  *-*-mingw*)
12391    # gcc leaves a trailing carriage return which upsets mingw
12392    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12393  *)
12394    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12395  esac
12396  case $ac_prog in
12397    # Accept absolute paths.
12398    [\\/]* | ?:[\\/]*)
12399      re_direlt='/[^/][^/]*/\.\./'
12400      # Canonicalize the pathname of ld
12401      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12402      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12403	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12404      done
12405      test -z "$LD" && LD="$ac_prog"
12406      ;;
12407  "")
12408    # If it fails, then pretend we aren't using GCC.
12409    ac_prog=ld
12410    ;;
12411  *)
12412    # If it is relative, then search for the first ld in PATH.
12413    with_gnu_ld=unknown
12414    ;;
12415  esac
12416elif test "$with_gnu_ld" = yes; then
12417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12418$as_echo_n "checking for GNU ld... " >&6; }
12419else
12420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12421$as_echo_n "checking for non-GNU ld... " >&6; }
12422fi
12423if test "${lt_cv_path_LD+set}" = set; then :
12424  $as_echo_n "(cached) " >&6
12425else
12426  if test -z "$LD"; then
12427  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12428  for ac_dir in $PATH; do
12429    IFS="$lt_save_ifs"
12430    test -z "$ac_dir" && ac_dir=.
12431    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12432      lt_cv_path_LD="$ac_dir/$ac_prog"
12433      # Check to see if the program is GNU ld.  I'd rather use --version,
12434      # but apparently some variants of GNU ld only accept -v.
12435      # Break only if it was the GNU/non-GNU ld that we prefer.
12436      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12437      *GNU* | *'with BFD'*)
12438	test "$with_gnu_ld" != no && break
12439	;;
12440      *)
12441	test "$with_gnu_ld" != yes && break
12442	;;
12443      esac
12444    fi
12445  done
12446  IFS="$lt_save_ifs"
12447else
12448  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12449fi
12450fi
12451
12452LD="$lt_cv_path_LD"
12453if test -n "$LD"; then
12454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12455$as_echo "$LD" >&6; }
12456else
12457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458$as_echo "no" >&6; }
12459fi
12460test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12462$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12463if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12464  $as_echo_n "(cached) " >&6
12465else
12466  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12467case `$LD -v 2>&1 </dev/null` in
12468*GNU* | *'with BFD'*)
12469  lt_cv_prog_gnu_ld=yes
12470  ;;
12471*)
12472  lt_cv_prog_gnu_ld=no
12473  ;;
12474esac
12475fi
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12477$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12478with_gnu_ld=$lt_cv_prog_gnu_ld
12479
12480
12481
12482
12483
12484
12485
12486      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12487      # archiving commands below assume that GNU ld is being used.
12488      if test "$with_gnu_ld" = yes; then
12489        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12491
12492        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12493        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12494
12495        # If archive_cmds runs LD, not CC, wlarc should be empty
12496        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12497        #     investigate it a little bit more. (MM)
12498        wlarc='${wl}'
12499
12500        # ancient GNU ld didn't support --whole-archive et. al.
12501        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12502	  $GREP 'no-whole-archive' > /dev/null; then
12503          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12504        else
12505          whole_archive_flag_spec_CXX=
12506        fi
12507      else
12508        with_gnu_ld=no
12509        wlarc=
12510
12511        # A generic and very simple default shared library creation
12512        # command for GNU C++ for the case where it uses the native
12513        # linker, instead of GNU ld.  If possible, this setting should
12514        # overridden to take advantage of the native linker features on
12515        # the platform it is being used on.
12516        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12517      fi
12518
12519      # Commands to make compiler produce verbose output that lists
12520      # what "hidden" libraries, object files and flags are used when
12521      # linking a shared library.
12522      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12523
12524    else
12525      GXX=no
12526      with_gnu_ld=no
12527      wlarc=
12528    fi
12529
12530    # PORTME: fill in a description of your system's C++ link characteristics
12531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12532$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12533    ld_shlibs_CXX=yes
12534    case $host_os in
12535      aix3*)
12536        # FIXME: insert proper C++ library support
12537        ld_shlibs_CXX=no
12538        ;;
12539      aix[4-9]*)
12540        if test "$host_cpu" = ia64; then
12541          # On IA64, the linker does run time linking by default, so we don't
12542          # have to do anything special.
12543          aix_use_runtimelinking=no
12544          exp_sym_flag='-Bexport'
12545          no_entry_flag=""
12546        else
12547          aix_use_runtimelinking=no
12548
12549          # Test if we are trying to use run time linking or normal
12550          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12551          # need to do runtime linking.
12552          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12553	    for ld_flag in $LDFLAGS; do
12554	      case $ld_flag in
12555	      *-brtl*)
12556	        aix_use_runtimelinking=yes
12557	        break
12558	        ;;
12559	      esac
12560	    done
12561	    ;;
12562          esac
12563
12564          exp_sym_flag='-bexport'
12565          no_entry_flag='-bnoentry'
12566        fi
12567
12568        # When large executables or shared objects are built, AIX ld can
12569        # have problems creating the table of contents.  If linking a library
12570        # or program results in "error TOC overflow" add -mminimal-toc to
12571        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12572        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12573
12574        archive_cmds_CXX=''
12575        hardcode_direct_CXX=yes
12576        hardcode_direct_absolute_CXX=yes
12577        hardcode_libdir_separator_CXX=':'
12578        link_all_deplibs_CXX=yes
12579        file_list_spec_CXX='${wl}-f,'
12580
12581        if test "$GXX" = yes; then
12582          case $host_os in aix4.[012]|aix4.[012].*)
12583          # We only want to do this on AIX 4.2 and lower, the check
12584          # below for broken collect2 doesn't work under 4.3+
12585	  collect2name=`${CC} -print-prog-name=collect2`
12586	  if test -f "$collect2name" &&
12587	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12588	  then
12589	    # We have reworked collect2
12590	    :
12591	  else
12592	    # We have old collect2
12593	    hardcode_direct_CXX=unsupported
12594	    # It fails to find uninstalled libraries when the uninstalled
12595	    # path is not listed in the libpath.  Setting hardcode_minus_L
12596	    # to unsupported forces relinking
12597	    hardcode_minus_L_CXX=yes
12598	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12599	    hardcode_libdir_separator_CXX=
12600	  fi
12601          esac
12602          shared_flag='-shared'
12603	  if test "$aix_use_runtimelinking" = yes; then
12604	    shared_flag="$shared_flag "'${wl}-G'
12605	  fi
12606        else
12607          # not using gcc
12608          if test "$host_cpu" = ia64; then
12609	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12610	  # chokes on -Wl,-G. The following line is correct:
12611	  shared_flag='-G'
12612          else
12613	    if test "$aix_use_runtimelinking" = yes; then
12614	      shared_flag='${wl}-G'
12615	    else
12616	      shared_flag='${wl}-bM:SRE'
12617	    fi
12618          fi
12619        fi
12620
12621        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12622        # It seems that -bexpall does not export symbols beginning with
12623        # underscore (_), so it is better to generate a list of symbols to
12624	# export.
12625        always_export_symbols_CXX=yes
12626        if test "$aix_use_runtimelinking" = yes; then
12627          # Warning - without using the other runtime loading flags (-brtl),
12628          # -berok will link without error, but may produce a broken library.
12629          allow_undefined_flag_CXX='-berok'
12630          # Determine the default libpath from the value encoded in an empty
12631          # executable.
12632          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633/* end confdefs.h.  */
12634
12635int
12636main ()
12637{
12638
12639  ;
12640  return 0;
12641}
12642_ACEOF
12643if ac_fn_cxx_try_link "$LINENO"; then :
12644
12645lt_aix_libpath_sed='
12646    /Import File Strings/,/^$/ {
12647	/^0/ {
12648	    s/^0  *\(.*\)$/\1/
12649	    p
12650	}
12651    }'
12652aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12653# Check for a 64-bit object if we didn't find anything.
12654if test -z "$aix_libpath"; then
12655  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12656fi
12657fi
12658rm -f core conftest.err conftest.$ac_objext \
12659    conftest$ac_exeext conftest.$ac_ext
12660if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12661
12662          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12663
12664          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12665        else
12666          if test "$host_cpu" = ia64; then
12667	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12668	    allow_undefined_flag_CXX="-z nodefs"
12669	    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"
12670          else
12671	    # Determine the default libpath from the value encoded in an
12672	    # empty executable.
12673	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674/* end confdefs.h.  */
12675
12676int
12677main ()
12678{
12679
12680  ;
12681  return 0;
12682}
12683_ACEOF
12684if ac_fn_cxx_try_link "$LINENO"; then :
12685
12686lt_aix_libpath_sed='
12687    /Import File Strings/,/^$/ {
12688	/^0/ {
12689	    s/^0  *\(.*\)$/\1/
12690	    p
12691	}
12692    }'
12693aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12694# Check for a 64-bit object if we didn't find anything.
12695if test -z "$aix_libpath"; then
12696  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12697fi
12698fi
12699rm -f core conftest.err conftest.$ac_objext \
12700    conftest$ac_exeext conftest.$ac_ext
12701if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12702
12703	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12704	    # Warning - without using the other run time loading flags,
12705	    # -berok will link without error, but may produce a broken library.
12706	    no_undefined_flag_CXX=' ${wl}-bernotok'
12707	    allow_undefined_flag_CXX=' ${wl}-berok'
12708	    if test "$with_gnu_ld" = yes; then
12709	      # We only use this code for GNU lds that support --whole-archive.
12710	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12711	    else
12712	      # Exported symbols can be pulled into shared objects from archives
12713	      whole_archive_flag_spec_CXX='$convenience'
12714	    fi
12715	    archive_cmds_need_lc_CXX=yes
12716	    # This is similar to how AIX traditionally builds its shared
12717	    # libraries.
12718	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12719          fi
12720        fi
12721        ;;
12722
12723      beos*)
12724	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12725	  allow_undefined_flag_CXX=unsupported
12726	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12727	  # support --undefined.  This deserves some investigation.  FIXME
12728	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12729	else
12730	  ld_shlibs_CXX=no
12731	fi
12732	;;
12733
12734      chorus*)
12735        case $cc_basename in
12736          *)
12737	  # FIXME: insert proper C++ library support
12738	  ld_shlibs_CXX=no
12739	  ;;
12740        esac
12741        ;;
12742
12743      cygwin* | mingw* | pw32* | cegcc*)
12744        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12745        # as there is no search path for DLLs.
12746        hardcode_libdir_flag_spec_CXX='-L$libdir'
12747        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12748        allow_undefined_flag_CXX=unsupported
12749        always_export_symbols_CXX=no
12750        enable_shared_with_static_runtimes_CXX=yes
12751
12752        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12753          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'
12754          # If the export-symbols file already is a .def file (1st line
12755          # is EXPORTS), use it as is; otherwise, prepend...
12756          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12757	    cp $export_symbols $output_objdir/$soname.def;
12758          else
12759	    echo EXPORTS > $output_objdir/$soname.def;
12760	    cat $export_symbols >> $output_objdir/$soname.def;
12761          fi~
12762          $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'
12763        else
12764          ld_shlibs_CXX=no
12765        fi
12766        ;;
12767      darwin* | rhapsody*)
12768
12769
12770  archive_cmds_need_lc_CXX=no
12771  hardcode_direct_CXX=no
12772  hardcode_automatic_CXX=yes
12773  hardcode_shlibpath_var_CXX=unsupported
12774  if test "$lt_cv_ld_force_load" = "yes"; then
12775    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\"`'
12776  else
12777    whole_archive_flag_spec_CXX=''
12778  fi
12779  link_all_deplibs_CXX=yes
12780  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12781  case $cc_basename in
12782     ifort*) _lt_dar_can_shared=yes ;;
12783     *) _lt_dar_can_shared=$GCC ;;
12784  esac
12785  if test "$_lt_dar_can_shared" = "yes"; then
12786    output_verbose_link_cmd=func_echo_all
12787    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}"
12788    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12789    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}"
12790    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}"
12791       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12792      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}"
12793      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}"
12794    fi
12795
12796  else
12797  ld_shlibs_CXX=no
12798  fi
12799
12800	;;
12801
12802      dgux*)
12803        case $cc_basename in
12804          ec++*)
12805	    # FIXME: insert proper C++ library support
12806	    ld_shlibs_CXX=no
12807	    ;;
12808          ghcx*)
12809	    # Green Hills C++ Compiler
12810	    # FIXME: insert proper C++ library support
12811	    ld_shlibs_CXX=no
12812	    ;;
12813          *)
12814	    # FIXME: insert proper C++ library support
12815	    ld_shlibs_CXX=no
12816	    ;;
12817        esac
12818        ;;
12819
12820      freebsd2.*)
12821        # C++ shared libraries reported to be fairly broken before
12822	# switch to ELF
12823        ld_shlibs_CXX=no
12824        ;;
12825
12826      freebsd-elf*)
12827        archive_cmds_need_lc_CXX=no
12828        ;;
12829
12830      freebsd* | dragonfly*)
12831        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12832        # conventions
12833        ld_shlibs_CXX=yes
12834        ;;
12835
12836      gnu*)
12837        ;;
12838
12839      haiku*)
12840        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12841        link_all_deplibs_CXX=yes
12842        ;;
12843
12844      hpux9*)
12845        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12846        hardcode_libdir_separator_CXX=:
12847        export_dynamic_flag_spec_CXX='${wl}-E'
12848        hardcode_direct_CXX=yes
12849        hardcode_minus_L_CXX=yes # Not in the search PATH,
12850				             # but as the default
12851				             # location of the library.
12852
12853        case $cc_basename in
12854          CC*)
12855            # FIXME: insert proper C++ library support
12856            ld_shlibs_CXX=no
12857            ;;
12858          aCC*)
12859            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12860            # Commands to make compiler produce verbose output that lists
12861            # what "hidden" libraries, object files and flags are used when
12862            # linking a shared library.
12863            #
12864            # There doesn't appear to be a way to prevent this compiler from
12865            # explicitly linking system object files so we need to strip them
12866            # from the output so that they don't get included in the library
12867            # dependencies.
12868            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"'
12869            ;;
12870          *)
12871            if test "$GXX" = yes; then
12872              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12873            else
12874              # FIXME: insert proper C++ library support
12875              ld_shlibs_CXX=no
12876            fi
12877            ;;
12878        esac
12879        ;;
12880
12881      hpux10*|hpux11*)
12882        if test $with_gnu_ld = no; then
12883	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12884	  hardcode_libdir_separator_CXX=:
12885
12886          case $host_cpu in
12887            hppa*64*|ia64*)
12888              ;;
12889            *)
12890	      export_dynamic_flag_spec_CXX='${wl}-E'
12891              ;;
12892          esac
12893        fi
12894        case $host_cpu in
12895          hppa*64*|ia64*)
12896            hardcode_direct_CXX=no
12897            hardcode_shlibpath_var_CXX=no
12898            ;;
12899          *)
12900            hardcode_direct_CXX=yes
12901            hardcode_direct_absolute_CXX=yes
12902            hardcode_minus_L_CXX=yes # Not in the search PATH,
12903					         # but as the default
12904					         # location of the library.
12905            ;;
12906        esac
12907
12908        case $cc_basename in
12909          CC*)
12910	    # FIXME: insert proper C++ library support
12911	    ld_shlibs_CXX=no
12912	    ;;
12913          aCC*)
12914	    case $host_cpu in
12915	      hppa*64*)
12916	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12917	        ;;
12918	      ia64*)
12919	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12920	        ;;
12921	      *)
12922	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12923	        ;;
12924	    esac
12925	    # Commands to make compiler produce verbose output that lists
12926	    # what "hidden" libraries, object files and flags are used when
12927	    # linking a shared library.
12928	    #
12929	    # There doesn't appear to be a way to prevent this compiler from
12930	    # explicitly linking system object files so we need to strip them
12931	    # from the output so that they don't get included in the library
12932	    # dependencies.
12933	    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"'
12934	    ;;
12935          *)
12936	    if test "$GXX" = yes; then
12937	      if test $with_gnu_ld = no; then
12938	        case $host_cpu in
12939	          hppa*64*)
12940	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12941	            ;;
12942	          ia64*)
12943	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12944	            ;;
12945	          *)
12946	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12947	            ;;
12948	        esac
12949	      fi
12950	    else
12951	      # FIXME: insert proper C++ library support
12952	      ld_shlibs_CXX=no
12953	    fi
12954	    ;;
12955        esac
12956        ;;
12957
12958      interix[3-9]*)
12959	hardcode_direct_CXX=no
12960	hardcode_shlibpath_var_CXX=no
12961	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12962	export_dynamic_flag_spec_CXX='${wl}-E'
12963	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12964	# Instead, shared libraries are loaded at an image base (0x10000000 by
12965	# default) and relocated if they conflict, which is a slow very memory
12966	# consuming and fragmenting process.  To avoid this, we pick a random,
12967	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12968	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12969	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'
12970	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'
12971	;;
12972      irix5* | irix6*)
12973        case $cc_basename in
12974          CC*)
12975	    # SGI C++
12976	    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'
12977
12978	    # Archives containing C++ object files must be created using
12979	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12980	    # necessary to make sure instantiated templates are included
12981	    # in the archive.
12982	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12983	    ;;
12984          *)
12985	    if test "$GXX" = yes; then
12986	      if test "$with_gnu_ld" = no; then
12987	        archive_cmds_CXX='$CC -shared -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'
12988	      else
12989	        archive_cmds_CXX='$CC -shared -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'
12990	      fi
12991	    fi
12992	    link_all_deplibs_CXX=yes
12993	    ;;
12994        esac
12995        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12996        hardcode_libdir_separator_CXX=:
12997        inherit_rpath_CXX=yes
12998        ;;
12999
13000      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13001        case $cc_basename in
13002          KCC*)
13003	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13004
13005	    # KCC will only create a shared library if the output file
13006	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13007	    # to its proper name (with version) after linking.
13008	    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'
13009	    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'
13010	    # Commands to make compiler produce verbose output that lists
13011	    # what "hidden" libraries, object files and flags are used when
13012	    # linking a shared library.
13013	    #
13014	    # There doesn't appear to be a way to prevent this compiler from
13015	    # explicitly linking system object files so we need to strip them
13016	    # from the output so that they don't get included in the library
13017	    # dependencies.
13018	    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"'
13019
13020	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13021	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13022
13023	    # Archives containing C++ object files must be created using
13024	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13025	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13026	    ;;
13027	  icpc* | ecpc* )
13028	    # Intel C++
13029	    with_gnu_ld=yes
13030	    # version 8.0 and above of icpc choke on multiply defined symbols
13031	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13032	    # earlier do not add the objects themselves.
13033	    case `$CC -V 2>&1` in
13034	      *"Version 7."*)
13035	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13036		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'
13037		;;
13038	      *)  # Version 8.0 or newer
13039	        tmp_idyn=
13040	        case $host_cpu in
13041		  ia64*) tmp_idyn=' -i_dynamic';;
13042		esac
13043	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13044		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'
13045		;;
13046	    esac
13047	    archive_cmds_need_lc_CXX=no
13048	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13049	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13050	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13051	    ;;
13052          pgCC* | pgcpp*)
13053            # Portland Group C++ compiler
13054	    case `$CC -V` in
13055	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13056	      prelink_cmds_CXX='tpldir=Template.dir~
13057		rm -rf $tpldir~
13058		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13059		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13060	      old_archive_cmds_CXX='tpldir=Template.dir~
13061		rm -rf $tpldir~
13062		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13063		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13064		$RANLIB $oldlib'
13065	      archive_cmds_CXX='tpldir=Template.dir~
13066		rm -rf $tpldir~
13067		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13068		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13069	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13070		rm -rf $tpldir~
13071		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13072		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13073	      ;;
13074	    *) # Version 6 and above use weak symbols
13075	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13076	      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'
13077	      ;;
13078	    esac
13079
13080	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13081	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13082	    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'
13083            ;;
13084	  cxx*)
13085	    # Compaq C++
13086	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13087	    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'
13088
13089	    runpath_var=LD_RUN_PATH
13090	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13091	    hardcode_libdir_separator_CXX=:
13092
13093	    # Commands to make compiler produce verbose output that lists
13094	    # what "hidden" libraries, object files and flags are used when
13095	    # linking a shared library.
13096	    #
13097	    # There doesn't appear to be a way to prevent this compiler from
13098	    # explicitly linking system object files so we need to strip them
13099	    # from the output so that they don't get included in the library
13100	    # dependencies.
13101	    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'
13102	    ;;
13103	  xl* | mpixl* | bgxl*)
13104	    # IBM XL 8.0 on PPC, with GNU ld
13105	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13106	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13107	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13108	    if test "x$supports_anon_versioning" = xyes; then
13109	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13110		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13111		echo "local: *; };" >> $output_objdir/$libname.ver~
13112		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13113	    fi
13114	    ;;
13115	  *)
13116	    case `$CC -V 2>&1 | sed 5q` in
13117	    *Sun\ C*)
13118	      # Sun C++ 5.9
13119	      no_undefined_flag_CXX=' -zdefs'
13120	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13121	      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'
13122	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13123	      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'
13124	      compiler_needs_object_CXX=yes
13125
13126	      # Not sure whether something based on
13127	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13128	      # would be better.
13129	      output_verbose_link_cmd='func_echo_all'
13130
13131	      # Archives containing C++ object files must be created using
13132	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13133	      # necessary to make sure instantiated templates are included
13134	      # in the archive.
13135	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13136	      ;;
13137	    esac
13138	    ;;
13139	esac
13140	;;
13141
13142      lynxos*)
13143        # FIXME: insert proper C++ library support
13144	ld_shlibs_CXX=no
13145	;;
13146
13147      m88k*)
13148        # FIXME: insert proper C++ library support
13149        ld_shlibs_CXX=no
13150	;;
13151
13152      mvs*)
13153        case $cc_basename in
13154          cxx*)
13155	    # FIXME: insert proper C++ library support
13156	    ld_shlibs_CXX=no
13157	    ;;
13158	  *)
13159	    # FIXME: insert proper C++ library support
13160	    ld_shlibs_CXX=no
13161	    ;;
13162	esac
13163	;;
13164
13165      netbsd*)
13166        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13167	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13168	  wlarc=
13169	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13170	  hardcode_direct_CXX=yes
13171	  hardcode_shlibpath_var_CXX=no
13172	fi
13173	# Workaround some broken pre-1.5 toolchains
13174	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13175	;;
13176
13177      *nto* | *qnx*)
13178        ld_shlibs_CXX=yes
13179	;;
13180
13181      openbsd2*)
13182        # C++ shared libraries are fairly broken
13183	ld_shlibs_CXX=no
13184	;;
13185
13186      openbsd*)
13187	if test -f /usr/libexec/ld.so; then
13188	  hardcode_direct_CXX=yes
13189	  hardcode_shlibpath_var_CXX=no
13190	  hardcode_direct_absolute_CXX=yes
13191	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13192	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13193	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13194	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13195	    export_dynamic_flag_spec_CXX='${wl}-E'
13196	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13197	  fi
13198	  output_verbose_link_cmd=func_echo_all
13199	else
13200	  ld_shlibs_CXX=no
13201	fi
13202	;;
13203
13204      osf3* | osf4* | osf5*)
13205        case $cc_basename in
13206          KCC*)
13207	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13208
13209	    # KCC will only create a shared library if the output file
13210	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13211	    # to its proper name (with version) after linking.
13212	    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'
13213
13214	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13215	    hardcode_libdir_separator_CXX=:
13216
13217	    # Archives containing C++ object files must be created using
13218	    # the KAI C++ compiler.
13219	    case $host in
13220	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13221	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13222	    esac
13223	    ;;
13224          RCC*)
13225	    # Rational C++ 2.4.1
13226	    # FIXME: insert proper C++ library support
13227	    ld_shlibs_CXX=no
13228	    ;;
13229          cxx*)
13230	    case $host in
13231	      osf3*)
13232	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13233	        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'
13234	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13235		;;
13236	      *)
13237	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13238	        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'
13239	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13240	          echo "-hidden">> $lib.exp~
13241	          $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~
13242	          $RM $lib.exp'
13243	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13244		;;
13245	    esac
13246
13247	    hardcode_libdir_separator_CXX=:
13248
13249	    # Commands to make compiler produce verbose output that lists
13250	    # what "hidden" libraries, object files and flags are used when
13251	    # linking a shared library.
13252	    #
13253	    # There doesn't appear to be a way to prevent this compiler from
13254	    # explicitly linking system object files so we need to strip them
13255	    # from the output so that they don't get included in the library
13256	    # dependencies.
13257	    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"'
13258	    ;;
13259	  *)
13260	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13261	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13262	      case $host in
13263	        osf3*)
13264	          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'
13265		  ;;
13266	        *)
13267	          archive_cmds_CXX='$CC -shared -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'
13268		  ;;
13269	      esac
13270
13271	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13272	      hardcode_libdir_separator_CXX=:
13273
13274	      # Commands to make compiler produce verbose output that lists
13275	      # what "hidden" libraries, object files and flags are used when
13276	      # linking a shared library.
13277	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13278
13279	    else
13280	      # FIXME: insert proper C++ library support
13281	      ld_shlibs_CXX=no
13282	    fi
13283	    ;;
13284        esac
13285        ;;
13286
13287      psos*)
13288        # FIXME: insert proper C++ library support
13289        ld_shlibs_CXX=no
13290        ;;
13291
13292      sunos4*)
13293        case $cc_basename in
13294          CC*)
13295	    # Sun C++ 4.x
13296	    # FIXME: insert proper C++ library support
13297	    ld_shlibs_CXX=no
13298	    ;;
13299          lcc*)
13300	    # Lucid
13301	    # FIXME: insert proper C++ library support
13302	    ld_shlibs_CXX=no
13303	    ;;
13304          *)
13305	    # FIXME: insert proper C++ library support
13306	    ld_shlibs_CXX=no
13307	    ;;
13308        esac
13309        ;;
13310
13311      solaris*)
13312        case $cc_basename in
13313          CC*)
13314	    # Sun C++ 4.2, 5.x and Centerline C++
13315            archive_cmds_need_lc_CXX=yes
13316	    no_undefined_flag_CXX=' -zdefs'
13317	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13318	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13319	      $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'
13320
13321	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13322	    hardcode_shlibpath_var_CXX=no
13323	    case $host_os in
13324	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13325	      *)
13326		# The compiler driver will combine and reorder linker options,
13327		# but understands `-z linker_flag'.
13328	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13329		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13330	        ;;
13331	    esac
13332	    link_all_deplibs_CXX=yes
13333
13334	    output_verbose_link_cmd='func_echo_all'
13335
13336	    # Archives containing C++ object files must be created using
13337	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13338	    # necessary to make sure instantiated templates are included
13339	    # in the archive.
13340	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13341	    ;;
13342          gcx*)
13343	    # Green Hills C++ Compiler
13344	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13345
13346	    # The C++ compiler must be used to create the archive.
13347	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13348	    ;;
13349          *)
13350	    # GNU C++ compiler with Solaris linker
13351	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13352	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13353	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13354	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13355	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13356		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13357
13358	        # Commands to make compiler produce verbose output that lists
13359	        # what "hidden" libraries, object files and flags are used when
13360	        # linking a shared library.
13361	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13362	      else
13363	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13364	        # platform.
13365	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13366	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13367		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13368
13369	        # Commands to make compiler produce verbose output that lists
13370	        # what "hidden" libraries, object files and flags are used when
13371	        # linking a shared library.
13372	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13373	      fi
13374
13375	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13376	      case $host_os in
13377		solaris2.[0-5] | solaris2.[0-5].*) ;;
13378		*)
13379		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13380		  ;;
13381	      esac
13382	    fi
13383	    ;;
13384        esac
13385        ;;
13386
13387    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13388      no_undefined_flag_CXX='${wl}-z,text'
13389      archive_cmds_need_lc_CXX=no
13390      hardcode_shlibpath_var_CXX=no
13391      runpath_var='LD_RUN_PATH'
13392
13393      case $cc_basename in
13394        CC*)
13395	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13396	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13397	  ;;
13398	*)
13399	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13400	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13401	  ;;
13402      esac
13403      ;;
13404
13405      sysv5* | sco3.2v5* | sco5v6*)
13406	# Note: We can NOT use -z defs as we might desire, because we do not
13407	# link with -lc, and that would cause any symbols used from libc to
13408	# always be unresolved, which means just about no library would
13409	# ever link correctly.  If we're not using GNU ld we use -z text
13410	# though, which does catch some bad symbols but isn't as heavy-handed
13411	# as -z defs.
13412	no_undefined_flag_CXX='${wl}-z,text'
13413	allow_undefined_flag_CXX='${wl}-z,nodefs'
13414	archive_cmds_need_lc_CXX=no
13415	hardcode_shlibpath_var_CXX=no
13416	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13417	hardcode_libdir_separator_CXX=':'
13418	link_all_deplibs_CXX=yes
13419	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13420	runpath_var='LD_RUN_PATH'
13421
13422	case $cc_basename in
13423          CC*)
13424	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13425	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13426	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13427	      '"$old_archive_cmds_CXX"
13428	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13429	      '"$reload_cmds_CXX"
13430	    ;;
13431	  *)
13432	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13433	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13434	    ;;
13435	esac
13436      ;;
13437
13438      tandem*)
13439        case $cc_basename in
13440          NCC*)
13441	    # NonStop-UX NCC 3.20
13442	    # FIXME: insert proper C++ library support
13443	    ld_shlibs_CXX=no
13444	    ;;
13445          *)
13446	    # FIXME: insert proper C++ library support
13447	    ld_shlibs_CXX=no
13448	    ;;
13449        esac
13450        ;;
13451
13452      vxworks*)
13453        # FIXME: insert proper C++ library support
13454        ld_shlibs_CXX=no
13455        ;;
13456
13457      *)
13458        # FIXME: insert proper C++ library support
13459        ld_shlibs_CXX=no
13460        ;;
13461    esac
13462
13463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13464$as_echo "$ld_shlibs_CXX" >&6; }
13465    test "$ld_shlibs_CXX" = no && can_build_shared=no
13466
13467    GCC_CXX="$GXX"
13468    LD_CXX="$LD"
13469
13470    ## CAVEAT EMPTOR:
13471    ## There is no encapsulation within the following macros, do not change
13472    ## the running order or otherwise move them around unless you know exactly
13473    ## what you are doing...
13474    # Dependencies to place before and after the object being linked:
13475predep_objects_CXX=
13476postdep_objects_CXX=
13477predeps_CXX=
13478postdeps_CXX=
13479compiler_lib_search_path_CXX=
13480
13481cat > conftest.$ac_ext <<_LT_EOF
13482class Foo
13483{
13484public:
13485  Foo (void) { a = 0; }
13486private:
13487  int a;
13488};
13489_LT_EOF
13490
13491if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13492  (eval $ac_compile) 2>&5
13493  ac_status=$?
13494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13495  test $ac_status = 0; }; then
13496  # Parse the compiler output and extract the necessary
13497  # objects, libraries and library flags.
13498
13499  # Sentinel used to keep track of whether or not we are before
13500  # the conftest object file.
13501  pre_test_object_deps_done=no
13502
13503  for p in `eval "$output_verbose_link_cmd"`; do
13504    case $p in
13505
13506    -L* | -R* | -l*)
13507       # Some compilers place space between "-{L,R}" and the path.
13508       # Remove the space.
13509       if test $p = "-L" ||
13510          test $p = "-R"; then
13511	 prev=$p
13512	 continue
13513       else
13514	 prev=
13515       fi
13516
13517       if test "$pre_test_object_deps_done" = no; then
13518	 case $p in
13519	 -L* | -R*)
13520	   # Internal compiler library paths should come after those
13521	   # provided the user.  The postdeps already come after the
13522	   # user supplied libs so there is no need to process them.
13523	   if test -z "$compiler_lib_search_path_CXX"; then
13524	     compiler_lib_search_path_CXX="${prev}${p}"
13525	   else
13526	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13527	   fi
13528	   ;;
13529	 # The "-l" case would never come before the object being
13530	 # linked, so don't bother handling this case.
13531	 esac
13532       else
13533	 if test -z "$postdeps_CXX"; then
13534	   postdeps_CXX="${prev}${p}"
13535	 else
13536	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13537	 fi
13538       fi
13539       ;;
13540
13541    *.$objext)
13542       # This assumes that the test object file only shows up
13543       # once in the compiler output.
13544       if test "$p" = "conftest.$objext"; then
13545	 pre_test_object_deps_done=yes
13546	 continue
13547       fi
13548
13549       if test "$pre_test_object_deps_done" = no; then
13550	 if test -z "$predep_objects_CXX"; then
13551	   predep_objects_CXX="$p"
13552	 else
13553	   predep_objects_CXX="$predep_objects_CXX $p"
13554	 fi
13555       else
13556	 if test -z "$postdep_objects_CXX"; then
13557	   postdep_objects_CXX="$p"
13558	 else
13559	   postdep_objects_CXX="$postdep_objects_CXX $p"
13560	 fi
13561       fi
13562       ;;
13563
13564    *) ;; # Ignore the rest.
13565
13566    esac
13567  done
13568
13569  # Clean up.
13570  rm -f a.out a.exe
13571else
13572  echo "libtool.m4: error: problem compiling CXX test program"
13573fi
13574
13575$RM -f confest.$objext
13576
13577# PORTME: override above test on systems where it is broken
13578case $host_os in
13579interix[3-9]*)
13580  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13581  # hack all around it, let's just trust "g++" to DTRT.
13582  predep_objects_CXX=
13583  postdep_objects_CXX=
13584  postdeps_CXX=
13585  ;;
13586
13587linux*)
13588  case `$CC -V 2>&1 | sed 5q` in
13589  *Sun\ C*)
13590    # Sun C++ 5.9
13591
13592    # The more standards-conforming stlport4 library is
13593    # incompatible with the Cstd library. Avoid specifying
13594    # it if it's in CXXFLAGS. Ignore libCrun as
13595    # -library=stlport4 depends on it.
13596    case " $CXX $CXXFLAGS " in
13597    *" -library=stlport4 "*)
13598      solaris_use_stlport4=yes
13599      ;;
13600    esac
13601
13602    if test "$solaris_use_stlport4" != yes; then
13603      postdeps_CXX='-library=Cstd -library=Crun'
13604    fi
13605    ;;
13606  esac
13607  ;;
13608
13609solaris*)
13610  case $cc_basename in
13611  CC*)
13612    # The more standards-conforming stlport4 library is
13613    # incompatible with the Cstd library. Avoid specifying
13614    # it if it's in CXXFLAGS. Ignore libCrun as
13615    # -library=stlport4 depends on it.
13616    case " $CXX $CXXFLAGS " in
13617    *" -library=stlport4 "*)
13618      solaris_use_stlport4=yes
13619      ;;
13620    esac
13621
13622    # Adding this requires a known-good setup of shared libraries for
13623    # Sun compiler versions before 5.6, else PIC objects from an old
13624    # archive will be linked into the output, leading to subtle bugs.
13625    if test "$solaris_use_stlport4" != yes; then
13626      postdeps_CXX='-library=Cstd -library=Crun'
13627    fi
13628    ;;
13629  esac
13630  ;;
13631esac
13632
13633
13634case " $postdeps_CXX " in
13635*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13636esac
13637 compiler_lib_search_dirs_CXX=
13638if test -n "${compiler_lib_search_path_CXX}"; then
13639 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13640fi
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672    lt_prog_compiler_wl_CXX=
13673lt_prog_compiler_pic_CXX=
13674lt_prog_compiler_static_CXX=
13675
13676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13677$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13678
13679  # C++ specific cases for pic, static, wl, etc.
13680  if test "$GXX" = yes; then
13681    lt_prog_compiler_wl_CXX='-Wl,'
13682    lt_prog_compiler_static_CXX='-static'
13683
13684    case $host_os in
13685    aix*)
13686      # All AIX code is PIC.
13687      if test "$host_cpu" = ia64; then
13688	# AIX 5 now supports IA64 processor
13689	lt_prog_compiler_static_CXX='-Bstatic'
13690      fi
13691      lt_prog_compiler_pic_CXX='-fPIC'
13692      ;;
13693
13694    amigaos*)
13695      case $host_cpu in
13696      powerpc)
13697            # see comment about AmigaOS4 .so support
13698            lt_prog_compiler_pic_CXX='-fPIC'
13699        ;;
13700      m68k)
13701            # FIXME: we need at least 68020 code to build shared libraries, but
13702            # adding the `-m68020' flag to GCC prevents building anything better,
13703            # like `-m68040'.
13704            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13705        ;;
13706      esac
13707      ;;
13708
13709    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13710      # PIC is the default for these OSes.
13711      ;;
13712    mingw* | cygwin* | os2* | pw32* | cegcc*)
13713      # This hack is so that the source file can tell whether it is being
13714      # built for inclusion in a dll (and should export symbols for example).
13715      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13716      # (--disable-auto-import) libraries
13717      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13718      ;;
13719    darwin* | rhapsody*)
13720      # PIC is the default on this platform
13721      # Common symbols not allowed in MH_DYLIB files
13722      lt_prog_compiler_pic_CXX='-fno-common'
13723      ;;
13724    *djgpp*)
13725      # DJGPP does not support shared libraries at all
13726      lt_prog_compiler_pic_CXX=
13727      ;;
13728    haiku*)
13729      # PIC is the default for Haiku.
13730      # The "-static" flag exists, but is broken.
13731      lt_prog_compiler_static_CXX=
13732      ;;
13733    interix[3-9]*)
13734      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13735      # Instead, we relocate shared libraries at runtime.
13736      ;;
13737    sysv4*MP*)
13738      if test -d /usr/nec; then
13739	lt_prog_compiler_pic_CXX=-Kconform_pic
13740      fi
13741      ;;
13742    hpux*)
13743      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13744      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13745      # sets the default TLS model and affects inlining.
13746      case $host_cpu in
13747      hppa*64*)
13748	;;
13749      *)
13750	lt_prog_compiler_pic_CXX='-fPIC'
13751	;;
13752      esac
13753      ;;
13754    *qnx* | *nto*)
13755      # QNX uses GNU C++, but need to define -shared option too, otherwise
13756      # it will coredump.
13757      lt_prog_compiler_pic_CXX='-fPIC -shared'
13758      ;;
13759    *)
13760      lt_prog_compiler_pic_CXX='-fPIC'
13761      ;;
13762    esac
13763  else
13764    case $host_os in
13765      aix[4-9]*)
13766	# All AIX code is PIC.
13767	if test "$host_cpu" = ia64; then
13768	  # AIX 5 now supports IA64 processor
13769	  lt_prog_compiler_static_CXX='-Bstatic'
13770	else
13771	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13772	fi
13773	;;
13774      chorus*)
13775	case $cc_basename in
13776	cxch68*)
13777	  # Green Hills C++ Compiler
13778	  # _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"
13779	  ;;
13780	esac
13781	;;
13782      dgux*)
13783	case $cc_basename in
13784	  ec++*)
13785	    lt_prog_compiler_pic_CXX='-KPIC'
13786	    ;;
13787	  ghcx*)
13788	    # Green Hills C++ Compiler
13789	    lt_prog_compiler_pic_CXX='-pic'
13790	    ;;
13791	  *)
13792	    ;;
13793	esac
13794	;;
13795      freebsd* | dragonfly*)
13796	# FreeBSD uses GNU C++
13797	;;
13798      hpux9* | hpux10* | hpux11*)
13799	case $cc_basename in
13800	  CC*)
13801	    lt_prog_compiler_wl_CXX='-Wl,'
13802	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13803	    if test "$host_cpu" != ia64; then
13804	      lt_prog_compiler_pic_CXX='+Z'
13805	    fi
13806	    ;;
13807	  aCC*)
13808	    lt_prog_compiler_wl_CXX='-Wl,'
13809	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13810	    case $host_cpu in
13811	    hppa*64*|ia64*)
13812	      # +Z the default
13813	      ;;
13814	    *)
13815	      lt_prog_compiler_pic_CXX='+Z'
13816	      ;;
13817	    esac
13818	    ;;
13819	  *)
13820	    ;;
13821	esac
13822	;;
13823      interix*)
13824	# This is c89, which is MS Visual C++ (no shared libs)
13825	# Anyone wants to do a port?
13826	;;
13827      irix5* | irix6* | nonstopux*)
13828	case $cc_basename in
13829	  CC*)
13830	    lt_prog_compiler_wl_CXX='-Wl,'
13831	    lt_prog_compiler_static_CXX='-non_shared'
13832	    # CC pic flag -KPIC is the default.
13833	    ;;
13834	  *)
13835	    ;;
13836	esac
13837	;;
13838      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13839	case $cc_basename in
13840	  KCC*)
13841	    # KAI C++ Compiler
13842	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13843	    lt_prog_compiler_pic_CXX='-fPIC'
13844	    ;;
13845	  ecpc* )
13846	    # old Intel C++ for x86_64 which still supported -KPIC.
13847	    lt_prog_compiler_wl_CXX='-Wl,'
13848	    lt_prog_compiler_pic_CXX='-KPIC'
13849	    lt_prog_compiler_static_CXX='-static'
13850	    ;;
13851	  icpc* )
13852	    # Intel C++, used to be incompatible with GCC.
13853	    # ICC 10 doesn't accept -KPIC any more.
13854	    lt_prog_compiler_wl_CXX='-Wl,'
13855	    lt_prog_compiler_pic_CXX='-fPIC'
13856	    lt_prog_compiler_static_CXX='-static'
13857	    ;;
13858	  pgCC* | pgcpp*)
13859	    # Portland Group C++ compiler
13860	    lt_prog_compiler_wl_CXX='-Wl,'
13861	    lt_prog_compiler_pic_CXX='-fpic'
13862	    lt_prog_compiler_static_CXX='-Bstatic'
13863	    ;;
13864	  cxx*)
13865	    # Compaq C++
13866	    # Make sure the PIC flag is empty.  It appears that all Alpha
13867	    # Linux and Compaq Tru64 Unix objects are PIC.
13868	    lt_prog_compiler_pic_CXX=
13869	    lt_prog_compiler_static_CXX='-non_shared'
13870	    ;;
13871	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13872	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13873	    lt_prog_compiler_wl_CXX='-Wl,'
13874	    lt_prog_compiler_pic_CXX='-qpic'
13875	    lt_prog_compiler_static_CXX='-qstaticlink'
13876	    ;;
13877	  *)
13878	    case `$CC -V 2>&1 | sed 5q` in
13879	    *Sun\ C*)
13880	      # Sun C++ 5.9
13881	      lt_prog_compiler_pic_CXX='-KPIC'
13882	      lt_prog_compiler_static_CXX='-Bstatic'
13883	      lt_prog_compiler_wl_CXX='-Qoption ld '
13884	      ;;
13885	    esac
13886	    ;;
13887	esac
13888	;;
13889      lynxos*)
13890	;;
13891      m88k*)
13892	;;
13893      mvs*)
13894	case $cc_basename in
13895	  cxx*)
13896	    lt_prog_compiler_pic_CXX='-W c,exportall'
13897	    ;;
13898	  *)
13899	    ;;
13900	esac
13901	;;
13902      netbsd*)
13903	;;
13904      *qnx* | *nto*)
13905        # QNX uses GNU C++, but need to define -shared option too, otherwise
13906        # it will coredump.
13907        lt_prog_compiler_pic_CXX='-fPIC -shared'
13908        ;;
13909      osf3* | osf4* | osf5*)
13910	case $cc_basename in
13911	  KCC*)
13912	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13913	    ;;
13914	  RCC*)
13915	    # Rational C++ 2.4.1
13916	    lt_prog_compiler_pic_CXX='-pic'
13917	    ;;
13918	  cxx*)
13919	    # Digital/Compaq C++
13920	    lt_prog_compiler_wl_CXX='-Wl,'
13921	    # Make sure the PIC flag is empty.  It appears that all Alpha
13922	    # Linux and Compaq Tru64 Unix objects are PIC.
13923	    lt_prog_compiler_pic_CXX=
13924	    lt_prog_compiler_static_CXX='-non_shared'
13925	    ;;
13926	  *)
13927	    ;;
13928	esac
13929	;;
13930      psos*)
13931	;;
13932      solaris*)
13933	case $cc_basename in
13934	  CC*)
13935	    # Sun C++ 4.2, 5.x and Centerline C++
13936	    lt_prog_compiler_pic_CXX='-KPIC'
13937	    lt_prog_compiler_static_CXX='-Bstatic'
13938	    lt_prog_compiler_wl_CXX='-Qoption ld '
13939	    ;;
13940	  gcx*)
13941	    # Green Hills C++ Compiler
13942	    lt_prog_compiler_pic_CXX='-PIC'
13943	    ;;
13944	  *)
13945	    ;;
13946	esac
13947	;;
13948      sunos4*)
13949	case $cc_basename in
13950	  CC*)
13951	    # Sun C++ 4.x
13952	    lt_prog_compiler_pic_CXX='-pic'
13953	    lt_prog_compiler_static_CXX='-Bstatic'
13954	    ;;
13955	  lcc*)
13956	    # Lucid
13957	    lt_prog_compiler_pic_CXX='-pic'
13958	    ;;
13959	  *)
13960	    ;;
13961	esac
13962	;;
13963      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13964	case $cc_basename in
13965	  CC*)
13966	    lt_prog_compiler_wl_CXX='-Wl,'
13967	    lt_prog_compiler_pic_CXX='-KPIC'
13968	    lt_prog_compiler_static_CXX='-Bstatic'
13969	    ;;
13970	esac
13971	;;
13972      tandem*)
13973	case $cc_basename in
13974	  NCC*)
13975	    # NonStop-UX NCC 3.20
13976	    lt_prog_compiler_pic_CXX='-KPIC'
13977	    ;;
13978	  *)
13979	    ;;
13980	esac
13981	;;
13982      vxworks*)
13983	;;
13984      *)
13985	lt_prog_compiler_can_build_shared_CXX=no
13986	;;
13987    esac
13988  fi
13989
13990case $host_os in
13991  # For platforms which do not support PIC, -DPIC is meaningless:
13992  *djgpp*)
13993    lt_prog_compiler_pic_CXX=
13994    ;;
13995  *)
13996    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13997    ;;
13998esac
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14000$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14001
14002
14003
14004#
14005# Check to make sure the PIC flag actually works.
14006#
14007if test -n "$lt_prog_compiler_pic_CXX"; then
14008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14009$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14010if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14011  $as_echo_n "(cached) " >&6
14012else
14013  lt_cv_prog_compiler_pic_works_CXX=no
14014   ac_outfile=conftest.$ac_objext
14015   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14016   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14017   # Insert the option either (1) after the last *FLAGS variable, or
14018   # (2) before a word containing "conftest.", or (3) at the end.
14019   # Note that $ac_compile itself does not contain backslashes and begins
14020   # with a dollar sign (not a hyphen), so the echo should work correctly.
14021   # The option is referenced via a variable to avoid confusing sed.
14022   lt_compile=`echo "$ac_compile" | $SED \
14023   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14024   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14025   -e 's:$: $lt_compiler_flag:'`
14026   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14027   (eval "$lt_compile" 2>conftest.err)
14028   ac_status=$?
14029   cat conftest.err >&5
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   if (exit $ac_status) && test -s "$ac_outfile"; then
14032     # The compiler can only warn and ignore the option if not recognized
14033     # So say no if there are warnings other than the usual output.
14034     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14035     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14036     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14037       lt_cv_prog_compiler_pic_works_CXX=yes
14038     fi
14039   fi
14040   $RM conftest*
14041
14042fi
14043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14044$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14045
14046if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14047    case $lt_prog_compiler_pic_CXX in
14048     "" | " "*) ;;
14049     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14050     esac
14051else
14052    lt_prog_compiler_pic_CXX=
14053     lt_prog_compiler_can_build_shared_CXX=no
14054fi
14055
14056fi
14057
14058
14059
14060#
14061# Check to make sure the static flag actually works.
14062#
14063wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14065$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14066if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14067  $as_echo_n "(cached) " >&6
14068else
14069  lt_cv_prog_compiler_static_works_CXX=no
14070   save_LDFLAGS="$LDFLAGS"
14071   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14072   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14073   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14074     # The linker can only warn and ignore the option if not recognized
14075     # So say no if there are warnings
14076     if test -s conftest.err; then
14077       # Append any errors to the config.log.
14078       cat conftest.err 1>&5
14079       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14080       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14081       if diff conftest.exp conftest.er2 >/dev/null; then
14082         lt_cv_prog_compiler_static_works_CXX=yes
14083       fi
14084     else
14085       lt_cv_prog_compiler_static_works_CXX=yes
14086     fi
14087   fi
14088   $RM -r conftest*
14089   LDFLAGS="$save_LDFLAGS"
14090
14091fi
14092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14093$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14094
14095if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14096    :
14097else
14098    lt_prog_compiler_static_CXX=
14099fi
14100
14101
14102
14103
14104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14105$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14106if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14107  $as_echo_n "(cached) " >&6
14108else
14109  lt_cv_prog_compiler_c_o_CXX=no
14110   $RM -r conftest 2>/dev/null
14111   mkdir conftest
14112   cd conftest
14113   mkdir out
14114   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14115
14116   lt_compiler_flag="-o out/conftest2.$ac_objext"
14117   # Insert the option either (1) after the last *FLAGS variable, or
14118   # (2) before a word containing "conftest.", or (3) at the end.
14119   # Note that $ac_compile itself does not contain backslashes and begins
14120   # with a dollar sign (not a hyphen), so the echo should work correctly.
14121   lt_compile=`echo "$ac_compile" | $SED \
14122   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14123   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14124   -e 's:$: $lt_compiler_flag:'`
14125   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14126   (eval "$lt_compile" 2>out/conftest.err)
14127   ac_status=$?
14128   cat out/conftest.err >&5
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14131   then
14132     # The compiler can only warn and ignore the option if not recognized
14133     # So say no if there are warnings
14134     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14135     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14136     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14137       lt_cv_prog_compiler_c_o_CXX=yes
14138     fi
14139   fi
14140   chmod u+w . 2>&5
14141   $RM conftest*
14142   # SGI C++ compiler will create directory out/ii_files/ for
14143   # template instantiation
14144   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14145   $RM out/* && rmdir out
14146   cd ..
14147   $RM -r conftest
14148   $RM conftest*
14149
14150fi
14151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14152$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14153
14154
14155
14156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14157$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14158if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14159  $as_echo_n "(cached) " >&6
14160else
14161  lt_cv_prog_compiler_c_o_CXX=no
14162   $RM -r conftest 2>/dev/null
14163   mkdir conftest
14164   cd conftest
14165   mkdir out
14166   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14167
14168   lt_compiler_flag="-o out/conftest2.$ac_objext"
14169   # Insert the option either (1) after the last *FLAGS variable, or
14170   # (2) before a word containing "conftest.", or (3) at the end.
14171   # Note that $ac_compile itself does not contain backslashes and begins
14172   # with a dollar sign (not a hyphen), so the echo should work correctly.
14173   lt_compile=`echo "$ac_compile" | $SED \
14174   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14175   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14176   -e 's:$: $lt_compiler_flag:'`
14177   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14178   (eval "$lt_compile" 2>out/conftest.err)
14179   ac_status=$?
14180   cat out/conftest.err >&5
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14183   then
14184     # The compiler can only warn and ignore the option if not recognized
14185     # So say no if there are warnings
14186     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14187     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14188     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14189       lt_cv_prog_compiler_c_o_CXX=yes
14190     fi
14191   fi
14192   chmod u+w . 2>&5
14193   $RM conftest*
14194   # SGI C++ compiler will create directory out/ii_files/ for
14195   # template instantiation
14196   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14197   $RM out/* && rmdir out
14198   cd ..
14199   $RM -r conftest
14200   $RM conftest*
14201
14202fi
14203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14204$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14205
14206
14207
14208
14209hard_links="nottested"
14210if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14211  # do not overwrite the value of need_locks provided by the user
14212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14213$as_echo_n "checking if we can lock with hard links... " >&6; }
14214  hard_links=yes
14215  $RM conftest*
14216  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14217  touch conftest.a
14218  ln conftest.a conftest.b 2>&5 || hard_links=no
14219  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14221$as_echo "$hard_links" >&6; }
14222  if test "$hard_links" = no; then
14223    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14224$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14225    need_locks=warn
14226  fi
14227else
14228  need_locks=no
14229fi
14230
14231
14232
14233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14234$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14235
14236  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14237  case $host_os in
14238  aix[4-9]*)
14239    # If we're using GNU nm, then we don't want the "-C" option.
14240    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14241    # Also, AIX nm treats weak defined symbols like other global defined
14242    # symbols, whereas GNU nm marks them as "W".
14243    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14244      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14245    else
14246      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14247    fi
14248    ;;
14249  pw32*)
14250    export_symbols_cmds_CXX="$ltdll_cmds"
14251  ;;
14252  cygwin* | mingw* | cegcc*)
14253    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14254  ;;
14255  *)
14256    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14257  ;;
14258  esac
14259  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14260
14261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14262$as_echo "$ld_shlibs_CXX" >&6; }
14263test "$ld_shlibs_CXX" = no && can_build_shared=no
14264
14265with_gnu_ld_CXX=$with_gnu_ld
14266
14267
14268
14269
14270
14271
14272#
14273# Do we need to explicitly link libc?
14274#
14275case "x$archive_cmds_need_lc_CXX" in
14276x|xyes)
14277  # Assume -lc should be added
14278  archive_cmds_need_lc_CXX=yes
14279
14280  if test "$enable_shared" = yes && test "$GCC" = yes; then
14281    case $archive_cmds_CXX in
14282    *'~'*)
14283      # FIXME: we may have to deal with multi-command sequences.
14284      ;;
14285    '$CC '*)
14286      # Test whether the compiler implicitly links with -lc since on some
14287      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14288      # to ld, don't add -lc before -lgcc.
14289      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14290$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14291if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14292  $as_echo_n "(cached) " >&6
14293else
14294  $RM conftest*
14295	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14296
14297	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14298  (eval $ac_compile) 2>&5
14299  ac_status=$?
14300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14301  test $ac_status = 0; } 2>conftest.err; then
14302	  soname=conftest
14303	  lib=conftest
14304	  libobjs=conftest.$ac_objext
14305	  deplibs=
14306	  wl=$lt_prog_compiler_wl_CXX
14307	  pic_flag=$lt_prog_compiler_pic_CXX
14308	  compiler_flags=-v
14309	  linker_flags=-v
14310	  verstring=
14311	  output_objdir=.
14312	  libname=conftest
14313	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14314	  allow_undefined_flag_CXX=
14315	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14316  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14317  ac_status=$?
14318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14319  test $ac_status = 0; }
14320	  then
14321	    lt_cv_archive_cmds_need_lc_CXX=no
14322	  else
14323	    lt_cv_archive_cmds_need_lc_CXX=yes
14324	  fi
14325	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14326	else
14327	  cat conftest.err 1>&5
14328	fi
14329	$RM conftest*
14330
14331fi
14332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14333$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14334      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14335      ;;
14336    esac
14337  fi
14338  ;;
14339esac
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14405$as_echo_n "checking dynamic linker characteristics... " >&6; }
14406
14407library_names_spec=
14408libname_spec='lib$name'
14409soname_spec=
14410shrext_cmds=".so"
14411postinstall_cmds=
14412postuninstall_cmds=
14413finish_cmds=
14414finish_eval=
14415shlibpath_var=
14416shlibpath_overrides_runpath=unknown
14417version_type=none
14418dynamic_linker="$host_os ld.so"
14419sys_lib_dlsearch_path_spec="/lib /usr/lib"
14420need_lib_prefix=unknown
14421hardcode_into_libs=no
14422
14423# when you set need_version to no, make sure it does not cause -set_version
14424# flags to be left without arguments
14425need_version=unknown
14426
14427case $host_os in
14428aix3*)
14429  version_type=linux
14430  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14431  shlibpath_var=LIBPATH
14432
14433  # AIX 3 has no versioning support, so we append a major version to the name.
14434  soname_spec='${libname}${release}${shared_ext}$major'
14435  ;;
14436
14437aix[4-9]*)
14438  version_type=linux
14439  need_lib_prefix=no
14440  need_version=no
14441  hardcode_into_libs=yes
14442  if test "$host_cpu" = ia64; then
14443    # AIX 5 supports IA64
14444    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14445    shlibpath_var=LD_LIBRARY_PATH
14446  else
14447    # With GCC up to 2.95.x, collect2 would create an import file
14448    # for dependence libraries.  The import file would start with
14449    # the line `#! .'.  This would cause the generated library to
14450    # depend on `.', always an invalid library.  This was fixed in
14451    # development snapshots of GCC prior to 3.0.
14452    case $host_os in
14453      aix4 | aix4.[01] | aix4.[01].*)
14454      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14455	   echo ' yes '
14456	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14457	:
14458      else
14459	can_build_shared=no
14460      fi
14461      ;;
14462    esac
14463    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14464    # soname into executable. Probably we can add versioning support to
14465    # collect2, so additional links can be useful in future.
14466    if test "$aix_use_runtimelinking" = yes; then
14467      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14468      # instead of lib<name>.a to let people know that these are not
14469      # typical AIX shared libraries.
14470      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471    else
14472      # We preserve .a as extension for shared libraries through AIX4.2
14473      # and later when we are not doing run time linking.
14474      library_names_spec='${libname}${release}.a $libname.a'
14475      soname_spec='${libname}${release}${shared_ext}$major'
14476    fi
14477    shlibpath_var=LIBPATH
14478  fi
14479  ;;
14480
14481amigaos*)
14482  case $host_cpu in
14483  powerpc)
14484    # Since July 2007 AmigaOS4 officially supports .so libraries.
14485    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14486    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487    ;;
14488  m68k)
14489    library_names_spec='$libname.ixlibrary $libname.a'
14490    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14491    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14492    ;;
14493  esac
14494  ;;
14495
14496beos*)
14497  library_names_spec='${libname}${shared_ext}'
14498  dynamic_linker="$host_os ld.so"
14499  shlibpath_var=LIBRARY_PATH
14500  ;;
14501
14502bsdi[45]*)
14503  version_type=linux
14504  need_version=no
14505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506  soname_spec='${libname}${release}${shared_ext}$major'
14507  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14508  shlibpath_var=LD_LIBRARY_PATH
14509  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14510  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14511  # the default ld.so.conf also contains /usr/contrib/lib and
14512  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14513  # libtool to hard-code these into programs
14514  ;;
14515
14516cygwin* | mingw* | pw32* | cegcc*)
14517  version_type=windows
14518  shrext_cmds=".dll"
14519  need_version=no
14520  need_lib_prefix=no
14521
14522  case $GCC,$host_os in
14523  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14524    library_names_spec='$libname.dll.a'
14525    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14526    postinstall_cmds='base_file=`basename \${file}`~
14527      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14528      dldir=$destdir/`dirname \$dlpath`~
14529      test -d \$dldir || mkdir -p \$dldir~
14530      $install_prog $dir/$dlname \$dldir/$dlname~
14531      chmod a+x \$dldir/$dlname~
14532      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14533        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14534      fi'
14535    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14536      dlpath=$dir/\$dldll~
14537       $RM \$dlpath'
14538    shlibpath_overrides_runpath=yes
14539
14540    case $host_os in
14541    cygwin*)
14542      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14543      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14544
14545      ;;
14546    mingw* | cegcc*)
14547      # MinGW DLLs use traditional 'lib' prefix
14548      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14549      ;;
14550    pw32*)
14551      # pw32 DLLs use 'pw' prefix rather than 'lib'
14552      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14553      ;;
14554    esac
14555    ;;
14556
14557  *)
14558    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14559    ;;
14560  esac
14561  dynamic_linker='Win32 ld.exe'
14562  # FIXME: first we should search . and the directory the executable is in
14563  shlibpath_var=PATH
14564  ;;
14565
14566darwin* | rhapsody*)
14567  dynamic_linker="$host_os dyld"
14568  version_type=darwin
14569  need_lib_prefix=no
14570  need_version=no
14571  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14572  soname_spec='${libname}${release}${major}$shared_ext'
14573  shlibpath_overrides_runpath=yes
14574  shlibpath_var=DYLD_LIBRARY_PATH
14575  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14576
14577  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14578  ;;
14579
14580dgux*)
14581  version_type=linux
14582  need_lib_prefix=no
14583  need_version=no
14584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14585  soname_spec='${libname}${release}${shared_ext}$major'
14586  shlibpath_var=LD_LIBRARY_PATH
14587  ;;
14588
14589freebsd* | dragonfly*)
14590  # DragonFly does not have aout.  When/if they implement a new
14591  # versioning mechanism, adjust this.
14592  if test -x /usr/bin/objformat; then
14593    objformat=`/usr/bin/objformat`
14594  else
14595    case $host_os in
14596    freebsd[23].*) objformat=aout ;;
14597    *) objformat=elf ;;
14598    esac
14599  fi
14600  version_type=freebsd-$objformat
14601  case $version_type in
14602    freebsd-elf*)
14603      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14604      need_version=no
14605      need_lib_prefix=no
14606      ;;
14607    freebsd-*)
14608      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14609      need_version=yes
14610      ;;
14611  esac
14612  shlibpath_var=LD_LIBRARY_PATH
14613  case $host_os in
14614  freebsd2.*)
14615    shlibpath_overrides_runpath=yes
14616    ;;
14617  freebsd3.[01]* | freebsdelf3.[01]*)
14618    shlibpath_overrides_runpath=yes
14619    hardcode_into_libs=yes
14620    ;;
14621  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14622  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14623    shlibpath_overrides_runpath=no
14624    hardcode_into_libs=yes
14625    ;;
14626  *) # from 4.6 on, and DragonFly
14627    shlibpath_overrides_runpath=yes
14628    hardcode_into_libs=yes
14629    ;;
14630  esac
14631  ;;
14632
14633gnu*)
14634  version_type=linux
14635  need_lib_prefix=no
14636  need_version=no
14637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14638  soname_spec='${libname}${release}${shared_ext}$major'
14639  shlibpath_var=LD_LIBRARY_PATH
14640  hardcode_into_libs=yes
14641  ;;
14642
14643haiku*)
14644  version_type=linux
14645  need_lib_prefix=no
14646  need_version=no
14647  dynamic_linker="$host_os runtime_loader"
14648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14649  soname_spec='${libname}${release}${shared_ext}$major'
14650  shlibpath_var=LIBRARY_PATH
14651  shlibpath_overrides_runpath=yes
14652  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14653  hardcode_into_libs=yes
14654  ;;
14655
14656hpux9* | hpux10* | hpux11*)
14657  # Give a soname corresponding to the major version so that dld.sl refuses to
14658  # link against other versions.
14659  version_type=sunos
14660  need_lib_prefix=no
14661  need_version=no
14662  case $host_cpu in
14663  ia64*)
14664    shrext_cmds='.so'
14665    hardcode_into_libs=yes
14666    dynamic_linker="$host_os dld.so"
14667    shlibpath_var=LD_LIBRARY_PATH
14668    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14669    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670    soname_spec='${libname}${release}${shared_ext}$major'
14671    if test "X$HPUX_IA64_MODE" = X32; then
14672      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14673    else
14674      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14675    fi
14676    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14677    ;;
14678  hppa*64*)
14679    shrext_cmds='.sl'
14680    hardcode_into_libs=yes
14681    dynamic_linker="$host_os dld.sl"
14682    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14683    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14684    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14685    soname_spec='${libname}${release}${shared_ext}$major'
14686    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14687    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14688    ;;
14689  *)
14690    shrext_cmds='.sl'
14691    dynamic_linker="$host_os dld.sl"
14692    shlibpath_var=SHLIB_PATH
14693    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14694    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695    soname_spec='${libname}${release}${shared_ext}$major'
14696    ;;
14697  esac
14698  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14699  postinstall_cmds='chmod 555 $lib'
14700  # or fails outright, so override atomically:
14701  install_override_mode=555
14702  ;;
14703
14704interix[3-9]*)
14705  version_type=linux
14706  need_lib_prefix=no
14707  need_version=no
14708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14709  soname_spec='${libname}${release}${shared_ext}$major'
14710  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14711  shlibpath_var=LD_LIBRARY_PATH
14712  shlibpath_overrides_runpath=no
14713  hardcode_into_libs=yes
14714  ;;
14715
14716irix5* | irix6* | nonstopux*)
14717  case $host_os in
14718    nonstopux*) version_type=nonstopux ;;
14719    *)
14720	if test "$lt_cv_prog_gnu_ld" = yes; then
14721		version_type=linux
14722	else
14723		version_type=irix
14724	fi ;;
14725  esac
14726  need_lib_prefix=no
14727  need_version=no
14728  soname_spec='${libname}${release}${shared_ext}$major'
14729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14730  case $host_os in
14731  irix5* | nonstopux*)
14732    libsuff= shlibsuff=
14733    ;;
14734  *)
14735    case $LD in # libtool.m4 will add one of these switches to LD
14736    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14737      libsuff= shlibsuff= libmagic=32-bit;;
14738    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14739      libsuff=32 shlibsuff=N32 libmagic=N32;;
14740    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14741      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14742    *) libsuff= shlibsuff= libmagic=never-match;;
14743    esac
14744    ;;
14745  esac
14746  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14747  shlibpath_overrides_runpath=no
14748  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14749  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14750  hardcode_into_libs=yes
14751  ;;
14752
14753# No shared lib support for Linux oldld, aout, or coff.
14754linux*oldld* | linux*aout* | linux*coff*)
14755  dynamic_linker=no
14756  ;;
14757
14758# This must be Linux ELF.
14759linux* | k*bsd*-gnu | kopensolaris*-gnu)
14760  version_type=linux
14761  need_lib_prefix=no
14762  need_version=no
14763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764  soname_spec='${libname}${release}${shared_ext}$major'
14765  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14766  shlibpath_var=LD_LIBRARY_PATH
14767  shlibpath_overrides_runpath=no
14768
14769  # Some binutils ld are patched to set DT_RUNPATH
14770  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14771  $as_echo_n "(cached) " >&6
14772else
14773  lt_cv_shlibpath_overrides_runpath=no
14774    save_LDFLAGS=$LDFLAGS
14775    save_libdir=$libdir
14776    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14777	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14778    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779/* end confdefs.h.  */
14780
14781int
14782main ()
14783{
14784
14785  ;
14786  return 0;
14787}
14788_ACEOF
14789if ac_fn_cxx_try_link "$LINENO"; then :
14790  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14791  lt_cv_shlibpath_overrides_runpath=yes
14792fi
14793fi
14794rm -f core conftest.err conftest.$ac_objext \
14795    conftest$ac_exeext conftest.$ac_ext
14796    LDFLAGS=$save_LDFLAGS
14797    libdir=$save_libdir
14798
14799fi
14800
14801  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14802
14803  # This implies no fast_install, which is unacceptable.
14804  # Some rework will be needed to allow for fast_install
14805  # before this can be enabled.
14806  hardcode_into_libs=yes
14807
14808  # Append ld.so.conf contents to the search path
14809  if test -f /etc/ld.so.conf; then
14810    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' ' '`
14811    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14812  fi
14813
14814  # We used to test for /lib/ld.so.1 and disable shared libraries on
14815  # powerpc, because MkLinux only supported shared libraries with the
14816  # GNU dynamic linker.  Since this was broken with cross compilers,
14817  # most powerpc-linux boxes support dynamic linking these days and
14818  # people can always --disable-shared, the test was removed, and we
14819  # assume the GNU/Linux dynamic linker is in use.
14820  dynamic_linker='GNU/Linux ld.so'
14821  ;;
14822
14823netbsd*)
14824  version_type=sunos
14825  need_lib_prefix=no
14826  need_version=no
14827  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14828    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14829    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14830    dynamic_linker='NetBSD (a.out) ld.so'
14831  else
14832    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14833    soname_spec='${libname}${release}${shared_ext}$major'
14834    dynamic_linker='NetBSD ld.elf_so'
14835  fi
14836  shlibpath_var=LD_LIBRARY_PATH
14837  shlibpath_overrides_runpath=yes
14838  hardcode_into_libs=yes
14839  ;;
14840
14841newsos6)
14842  version_type=linux
14843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844  shlibpath_var=LD_LIBRARY_PATH
14845  shlibpath_overrides_runpath=yes
14846  ;;
14847
14848*nto* | *qnx*)
14849  version_type=qnx
14850  need_lib_prefix=no
14851  need_version=no
14852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853  soname_spec='${libname}${release}${shared_ext}$major'
14854  shlibpath_var=LD_LIBRARY_PATH
14855  shlibpath_overrides_runpath=no
14856  hardcode_into_libs=yes
14857  dynamic_linker='ldqnx.so'
14858  ;;
14859
14860openbsd*)
14861  version_type=sunos
14862  sys_lib_dlsearch_path_spec="/usr/lib"
14863  need_lib_prefix=no
14864  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14865  case $host_os in
14866    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14867    *)				need_version=no  ;;
14868  esac
14869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14870  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14871  shlibpath_var=LD_LIBRARY_PATH
14872  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14873    case $host_os in
14874      openbsd2.[89] | openbsd2.[89].*)
14875	shlibpath_overrides_runpath=no
14876	;;
14877      *)
14878	shlibpath_overrides_runpath=yes
14879	;;
14880      esac
14881  else
14882    shlibpath_overrides_runpath=yes
14883  fi
14884  ;;
14885
14886os2*)
14887  libname_spec='$name'
14888  shrext_cmds=".dll"
14889  need_lib_prefix=no
14890  library_names_spec='$libname${shared_ext} $libname.a'
14891  dynamic_linker='OS/2 ld.exe'
14892  shlibpath_var=LIBPATH
14893  ;;
14894
14895osf3* | osf4* | osf5*)
14896  version_type=osf
14897  need_lib_prefix=no
14898  need_version=no
14899  soname_spec='${libname}${release}${shared_ext}$major'
14900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901  shlibpath_var=LD_LIBRARY_PATH
14902  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14903  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14904  ;;
14905
14906rdos*)
14907  dynamic_linker=no
14908  ;;
14909
14910solaris*)
14911  version_type=linux
14912  need_lib_prefix=no
14913  need_version=no
14914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915  soname_spec='${libname}${release}${shared_ext}$major'
14916  shlibpath_var=LD_LIBRARY_PATH
14917  shlibpath_overrides_runpath=yes
14918  hardcode_into_libs=yes
14919  # ldd complains unless libraries are executable
14920  postinstall_cmds='chmod +x $lib'
14921  ;;
14922
14923sunos4*)
14924  version_type=sunos
14925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14926  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14927  shlibpath_var=LD_LIBRARY_PATH
14928  shlibpath_overrides_runpath=yes
14929  if test "$with_gnu_ld" = yes; then
14930    need_lib_prefix=no
14931  fi
14932  need_version=yes
14933  ;;
14934
14935sysv4 | sysv4.3*)
14936  version_type=linux
14937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938  soname_spec='${libname}${release}${shared_ext}$major'
14939  shlibpath_var=LD_LIBRARY_PATH
14940  case $host_vendor in
14941    sni)
14942      shlibpath_overrides_runpath=no
14943      need_lib_prefix=no
14944      runpath_var=LD_RUN_PATH
14945      ;;
14946    siemens)
14947      need_lib_prefix=no
14948      ;;
14949    motorola)
14950      need_lib_prefix=no
14951      need_version=no
14952      shlibpath_overrides_runpath=no
14953      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14954      ;;
14955  esac
14956  ;;
14957
14958sysv4*MP*)
14959  if test -d /usr/nec ;then
14960    version_type=linux
14961    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14962    soname_spec='$libname${shared_ext}.$major'
14963    shlibpath_var=LD_LIBRARY_PATH
14964  fi
14965  ;;
14966
14967sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14968  version_type=freebsd-elf
14969  need_lib_prefix=no
14970  need_version=no
14971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14972  soname_spec='${libname}${release}${shared_ext}$major'
14973  shlibpath_var=LD_LIBRARY_PATH
14974  shlibpath_overrides_runpath=yes
14975  hardcode_into_libs=yes
14976  if test "$with_gnu_ld" = yes; then
14977    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14978  else
14979    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14980    case $host_os in
14981      sco3.2v5*)
14982        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14983	;;
14984    esac
14985  fi
14986  sys_lib_dlsearch_path_spec='/usr/lib'
14987  ;;
14988
14989tpf*)
14990  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14991  version_type=linux
14992  need_lib_prefix=no
14993  need_version=no
14994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995  shlibpath_var=LD_LIBRARY_PATH
14996  shlibpath_overrides_runpath=no
14997  hardcode_into_libs=yes
14998  ;;
14999
15000uts4*)
15001  version_type=linux
15002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003  soname_spec='${libname}${release}${shared_ext}$major'
15004  shlibpath_var=LD_LIBRARY_PATH
15005  ;;
15006
15007*)
15008  dynamic_linker=no
15009  ;;
15010esac
15011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15012$as_echo "$dynamic_linker" >&6; }
15013test "$dynamic_linker" = no && can_build_shared=no
15014
15015variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15016if test "$GCC" = yes; then
15017  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15018fi
15019
15020if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15021  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15022fi
15023if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15024  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15025fi
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15065$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15066hardcode_action_CXX=
15067if test -n "$hardcode_libdir_flag_spec_CXX" ||
15068   test -n "$runpath_var_CXX" ||
15069   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15070
15071  # We can hardcode non-existent directories.
15072  if test "$hardcode_direct_CXX" != no &&
15073     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15074     # have to relink, otherwise we might link with an installed library
15075     # when we should be linking with a yet-to-be-installed one
15076     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15077     test "$hardcode_minus_L_CXX" != no; then
15078    # Linking always hardcodes the temporary library directory.
15079    hardcode_action_CXX=relink
15080  else
15081    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15082    hardcode_action_CXX=immediate
15083  fi
15084else
15085  # We cannot hardcode anything, or else we can only hardcode existing
15086  # directories.
15087  hardcode_action_CXX=unsupported
15088fi
15089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15090$as_echo "$hardcode_action_CXX" >&6; }
15091
15092if test "$hardcode_action_CXX" = relink ||
15093   test "$inherit_rpath_CXX" = yes; then
15094  # Fast installation is not supported
15095  enable_fast_install=no
15096elif test "$shlibpath_overrides_runpath" = yes ||
15097     test "$enable_shared" = no; then
15098  # Fast installation is not necessary
15099  enable_fast_install=needless
15100fi
15101
15102
15103
15104
15105
15106
15107
15108  fi # test -n "$compiler"
15109
15110  CC=$lt_save_CC
15111  LDCXX=$LD
15112  LD=$lt_save_LD
15113  GCC=$lt_save_GCC
15114  with_gnu_ld=$lt_save_with_gnu_ld
15115  lt_cv_path_LDCXX=$lt_cv_path_LD
15116  lt_cv_path_LD=$lt_save_path_LD
15117  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15118  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15119fi # test "$_lt_caught_CXX_error" != yes
15120
15121ac_ext=c
15122ac_cpp='$CPP $CPPFLAGS'
15123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15125ac_compiler_gnu=$ac_cv_c_compiler_gnu
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139        ac_config_commands="$ac_config_commands libtool"
15140
15141
15142
15143
15144# Only expand once:
15145
15146
15147
15148
15149
15150
15151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15152$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15153    # Check whether --enable-maintainer-mode was given.
15154if test "${enable_maintainer_mode+set}" = set; then :
15155  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15156else
15157  USE_MAINTAINER_MODE=no
15158fi
15159
15160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15161$as_echo "$USE_MAINTAINER_MODE" >&6; }
15162   if test $USE_MAINTAINER_MODE = yes; then
15163  MAINTAINER_MODE_TRUE=
15164  MAINTAINER_MODE_FALSE='#'
15165else
15166  MAINTAINER_MODE_TRUE='#'
15167  MAINTAINER_MODE_FALSE=
15168fi
15169
15170  MAINT=$MAINTAINER_MODE_TRUE
15171
15172
15173
15174# For libtool versioning info, format is CURRENT:REVISION:AGE
15175libtool_VERSION=1:0:0
15176
15177
15178# Check header files.
15179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15180$as_echo_n "checking for ANSI C header files... " >&6; }
15181if test "${ac_cv_header_stdc+set}" = set; then :
15182  $as_echo_n "(cached) " >&6
15183else
15184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185/* end confdefs.h.  */
15186#include <stdlib.h>
15187#include <stdarg.h>
15188#include <string.h>
15189#include <float.h>
15190
15191int
15192main ()
15193{
15194
15195  ;
15196  return 0;
15197}
15198_ACEOF
15199if ac_fn_c_try_compile "$LINENO"; then :
15200  ac_cv_header_stdc=yes
15201else
15202  ac_cv_header_stdc=no
15203fi
15204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205
15206if test $ac_cv_header_stdc = yes; then
15207  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209/* end confdefs.h.  */
15210#include <string.h>
15211
15212_ACEOF
15213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15214  $EGREP "memchr" >/dev/null 2>&1; then :
15215
15216else
15217  ac_cv_header_stdc=no
15218fi
15219rm -f conftest*
15220
15221fi
15222
15223if test $ac_cv_header_stdc = yes; then
15224  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226/* end confdefs.h.  */
15227#include <stdlib.h>
15228
15229_ACEOF
15230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15231  $EGREP "free" >/dev/null 2>&1; then :
15232
15233else
15234  ac_cv_header_stdc=no
15235fi
15236rm -f conftest*
15237
15238fi
15239
15240if test $ac_cv_header_stdc = yes; then
15241  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15242  if test "$cross_compiling" = yes; then :
15243  :
15244else
15245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246/* end confdefs.h.  */
15247#include <ctype.h>
15248#include <stdlib.h>
15249#if ((' ' & 0x0FF) == 0x020)
15250# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15251# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15252#else
15253# define ISLOWER(c) \
15254		   (('a' <= (c) && (c) <= 'i') \
15255		     || ('j' <= (c) && (c) <= 'r') \
15256		     || ('s' <= (c) && (c) <= 'z'))
15257# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15258#endif
15259
15260#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15261int
15262main ()
15263{
15264  int i;
15265  for (i = 0; i < 256; i++)
15266    if (XOR (islower (i), ISLOWER (i))
15267	|| toupper (i) != TOUPPER (i))
15268      return 2;
15269  return 0;
15270}
15271_ACEOF
15272if ac_fn_c_try_run "$LINENO"; then :
15273
15274else
15275  ac_cv_header_stdc=no
15276fi
15277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15278  conftest.$ac_objext conftest.beam conftest.$ac_ext
15279fi
15280
15281fi
15282fi
15283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15284$as_echo "$ac_cv_header_stdc" >&6; }
15285if test $ac_cv_header_stdc = yes; then
15286
15287$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15288
15289fi
15290
15291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15292$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15293if test "${ac_cv_header_time+set}" = set; then :
15294  $as_echo_n "(cached) " >&6
15295else
15296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297/* end confdefs.h.  */
15298#include <sys/types.h>
15299#include <sys/time.h>
15300#include <time.h>
15301
15302int
15303main ()
15304{
15305if ((struct tm *) 0)
15306return 0;
15307  ;
15308  return 0;
15309}
15310_ACEOF
15311if ac_fn_c_try_compile "$LINENO"; then :
15312  ac_cv_header_time=yes
15313else
15314  ac_cv_header_time=no
15315fi
15316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15317fi
15318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15319$as_echo "$ac_cv_header_time" >&6; }
15320if test $ac_cv_header_time = yes; then
15321
15322$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15323
15324fi
15325
15326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15327$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15328if test "${gcc_cv_header_string+set}" = set; then :
15329  $as_echo_n "(cached) " >&6
15330else
15331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332/* end confdefs.h.  */
15333#include <string.h>
15334#include <strings.h>
15335int
15336main ()
15337{
15338
15339  ;
15340  return 0;
15341}
15342_ACEOF
15343if ac_fn_c_try_compile "$LINENO"; then :
15344  gcc_cv_header_string=yes
15345else
15346  gcc_cv_header_string=no
15347fi
15348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349fi
15350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15351$as_echo "$gcc_cv_header_string" >&6; }
15352if test $gcc_cv_header_string = yes; then
15353
15354$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15355
15356fi
15357
15358for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
15359do :
15360  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15361ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15362eval as_val=\$$as_ac_Header
15363   if test "x$as_val" = x""yes; then :
15364  cat >>confdefs.h <<_ACEOF
15365#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15366_ACEOF
15367
15368fi
15369
15370done
15371
15372
15373
15374
15375inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
15376
15377acx_cv_header_stdint=stddef.h
15378acx_cv_header_stdint_kind="(already complete)"
15379for i in stdint.h $inttype_headers; do
15380  unset ac_cv_type_uintptr_t
15381  unset ac_cv_type_uintmax_t
15382  unset ac_cv_type_int_least32_t
15383  unset ac_cv_type_int_fast32_t
15384  unset ac_cv_type_uint64_t
15385  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15386  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15387#include <$i>
15388"
15389if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15390  acx_cv_header_stdint=$i
15391else
15392  continue
15393fi
15394
15395  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15396#include <$i>
15397"
15398if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15399
15400else
15401  acx_cv_header_stdint_kind="(mostly complete)"
15402fi
15403
15404  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15405#include <$i>
15406"
15407if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15408
15409else
15410  acx_cv_header_stdint_kind="(mostly complete)"
15411fi
15412
15413  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15414#include <$i>
15415"
15416if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15417
15418else
15419  acx_cv_header_stdint_kind="(mostly complete)"
15420fi
15421
15422  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15423#include <$i>
15424"
15425if test "x$ac_cv_type_uint64_t" = x""yes; then :
15426
15427else
15428  acx_cv_header_stdint_kind="(lacks uint64_t)"
15429fi
15430
15431  break
15432done
15433if test "$acx_cv_header_stdint" = stddef.h; then
15434  acx_cv_header_stdint_kind="(lacks uintmax_t)"
15435  for i in stdint.h $inttype_headers; do
15436    unset ac_cv_type_uintptr_t
15437    unset ac_cv_type_uint32_t
15438    unset ac_cv_type_uint64_t
15439    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15440    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15441#include <$i>
15442"
15443if test "x$ac_cv_type_uint32_t" = x""yes; then :
15444  acx_cv_header_stdint=$i
15445else
15446  continue
15447fi
15448
15449    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15450#include <$i>
15451"
15452if test "x$ac_cv_type_uint64_t" = x""yes; then :
15453
15454fi
15455
15456    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15457#include <$i>
15458"
15459if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15460
15461fi
15462
15463    break
15464  done
15465fi
15466if test "$acx_cv_header_stdint" = stddef.h; then
15467  acx_cv_header_stdint_kind="(u_intXX_t style)"
15468  for i in sys/types.h $inttype_headers; do
15469    unset ac_cv_type_u_int32_t
15470    unset ac_cv_type_u_int64_t
15471    $as_echo_n "looking for u_intXX_t types in $i, " >&6
15472    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15473#include <$i>
15474"
15475if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15476  acx_cv_header_stdint=$i
15477else
15478  continue
15479fi
15480
15481    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15482#include <$i>
15483"
15484if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15485
15486fi
15487
15488    break
15489  done
15490fi
15491if test "$acx_cv_header_stdint" = stddef.h; then
15492  acx_cv_header_stdint_kind="(using manual detection)"
15493fi
15494
15495test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15496test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15497test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15498test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15499test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15500
15501# ----------------- Summarize what we found so far
15502
15503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15504$as_echo_n "checking what to include in gstdint.h... " >&6; }
15505
15506case `$as_basename -- gstdint.h ||
15507$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15508	 Xgstdint.h : 'X\(//\)$' \| \
15509	 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15510$as_echo X/gstdint.h |
15511    sed '/^.*\/\([^/][^/]*\)\/*$/{
15512	    s//\1/
15513	    q
15514	  }
15515	  /^X\/\(\/\/\)$/{
15516	    s//\1/
15517	    q
15518	  }
15519	  /^X\/\(\/\).*/{
15520	    s//\1/
15521	    q
15522	  }
15523	  s/.*/./; q'` in
15524  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15525$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15526  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15527$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15528  *) ;;
15529esac
15530
15531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15532$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15533
15534# ----------------- done included file, check C basic types --------
15535
15536# Lacking an uintptr_t?  Test size of void *
15537case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15538  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15539# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15540# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15541# This bug is HP SR number 8606223364.
15542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15543$as_echo_n "checking size of void *... " >&6; }
15544if test "${ac_cv_sizeof_void_p+set}" = set; then :
15545  $as_echo_n "(cached) " >&6
15546else
15547  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15548
15549else
15550  if test "$ac_cv_type_void_p" = yes; then
15551     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15553{ as_fn_set_status 77
15554as_fn_error "cannot compute sizeof (void *)
15555See \`config.log' for more details." "$LINENO" 5; }; }
15556   else
15557     ac_cv_sizeof_void_p=0
15558   fi
15559fi
15560
15561fi
15562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15563$as_echo "$ac_cv_sizeof_void_p" >&6; }
15564
15565
15566
15567cat >>confdefs.h <<_ACEOF
15568#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15569_ACEOF
15570
15571 ;;
15572esac
15573
15574# Lacking an uint64_t?  Test size of long
15575case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15576  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15577# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15578# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15579# This bug is HP SR number 8606223364.
15580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15581$as_echo_n "checking size of long... " >&6; }
15582if test "${ac_cv_sizeof_long+set}" = set; then :
15583  $as_echo_n "(cached) " >&6
15584else
15585  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15586
15587else
15588  if test "$ac_cv_type_long" = yes; then
15589     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15591{ as_fn_set_status 77
15592as_fn_error "cannot compute sizeof (long)
15593See \`config.log' for more details." "$LINENO" 5; }; }
15594   else
15595     ac_cv_sizeof_long=0
15596   fi
15597fi
15598
15599fi
15600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15601$as_echo "$ac_cv_sizeof_long" >&6; }
15602
15603
15604
15605cat >>confdefs.h <<_ACEOF
15606#define SIZEOF_LONG $ac_cv_sizeof_long
15607_ACEOF
15608
15609 ;;
15610esac
15611
15612if test $acx_cv_header_stdint = stddef.h; then
15613  # Lacking a good header?  Test size of everything and deduce all types.
15614  # The cast to long int works around a bug in the HP C Compiler
15615# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15616# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15617# This bug is HP SR number 8606223364.
15618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15619$as_echo_n "checking size of int... " >&6; }
15620if test "${ac_cv_sizeof_int+set}" = set; then :
15621  $as_echo_n "(cached) " >&6
15622else
15623  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15624
15625else
15626  if test "$ac_cv_type_int" = yes; then
15627     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15629{ as_fn_set_status 77
15630as_fn_error "cannot compute sizeof (int)
15631See \`config.log' for more details." "$LINENO" 5; }; }
15632   else
15633     ac_cv_sizeof_int=0
15634   fi
15635fi
15636
15637fi
15638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15639$as_echo "$ac_cv_sizeof_int" >&6; }
15640
15641
15642
15643cat >>confdefs.h <<_ACEOF
15644#define SIZEOF_INT $ac_cv_sizeof_int
15645_ACEOF
15646
15647
15648  # The cast to long int works around a bug in the HP C Compiler
15649# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15650# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15651# This bug is HP SR number 8606223364.
15652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15653$as_echo_n "checking size of short... " >&6; }
15654if test "${ac_cv_sizeof_short+set}" = set; then :
15655  $as_echo_n "(cached) " >&6
15656else
15657  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15658
15659else
15660  if test "$ac_cv_type_short" = yes; then
15661     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15663{ as_fn_set_status 77
15664as_fn_error "cannot compute sizeof (short)
15665See \`config.log' for more details." "$LINENO" 5; }; }
15666   else
15667     ac_cv_sizeof_short=0
15668   fi
15669fi
15670
15671fi
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15673$as_echo "$ac_cv_sizeof_short" >&6; }
15674
15675
15676
15677cat >>confdefs.h <<_ACEOF
15678#define SIZEOF_SHORT $ac_cv_sizeof_short
15679_ACEOF
15680
15681
15682  # The cast to long int works around a bug in the HP C Compiler
15683# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15684# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15685# This bug is HP SR number 8606223364.
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15687$as_echo_n "checking size of char... " >&6; }
15688if test "${ac_cv_sizeof_char+set}" = set; then :
15689  $as_echo_n "(cached) " >&6
15690else
15691  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
15692
15693else
15694  if test "$ac_cv_type_char" = yes; then
15695     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15697{ as_fn_set_status 77
15698as_fn_error "cannot compute sizeof (char)
15699See \`config.log' for more details." "$LINENO" 5; }; }
15700   else
15701     ac_cv_sizeof_char=0
15702   fi
15703fi
15704
15705fi
15706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15707$as_echo "$ac_cv_sizeof_char" >&6; }
15708
15709
15710
15711cat >>confdefs.h <<_ACEOF
15712#define SIZEOF_CHAR $ac_cv_sizeof_char
15713_ACEOF
15714
15715
15716
15717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15718$as_echo_n "checking for type equivalent to int8_t... " >&6; }
15719  case "$ac_cv_sizeof_char" in
15720    1) acx_cv_type_int8_t=char ;;
15721    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15722  esac
15723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15724$as_echo "$acx_cv_type_int8_t" >&6; }
15725
15726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15727$as_echo_n "checking for type equivalent to int16_t... " >&6; }
15728  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15729    2:*) acx_cv_type_int16_t=int ;;
15730    *:2) acx_cv_type_int16_t=short ;;
15731    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15732  esac
15733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15734$as_echo "$acx_cv_type_int16_t" >&6; }
15735
15736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15737$as_echo_n "checking for type equivalent to int32_t... " >&6; }
15738  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15739    4:*) acx_cv_type_int32_t=int ;;
15740    *:4) acx_cv_type_int32_t=long ;;
15741    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15742  esac
15743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15744$as_echo "$acx_cv_type_int32_t" >&6; }
15745fi
15746
15747# These tests are here to make the output prettier
15748
15749if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15750  case "$ac_cv_sizeof_long" in
15751    8) acx_cv_type_int64_t=long ;;
15752  esac
15753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15754$as_echo_n "checking for type equivalent to int64_t... " >&6; }
15755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15756$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15757fi
15758
15759# Now we can use the above types
15760
15761if test "$ac_cv_type_uintptr_t" != yes; then
15762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15763$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15764  case $ac_cv_sizeof_void_p in
15765    2) acx_cv_type_intptr_t=int16_t ;;
15766    4) acx_cv_type_intptr_t=int32_t ;;
15767    8) acx_cv_type_intptr_t=int64_t ;;
15768    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15769  esac
15770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15771$as_echo "$acx_cv_type_intptr_t" >&6; }
15772fi
15773
15774# ----------------- done all checks, emit header -------------
15775ac_config_commands="$ac_config_commands gstdint.h"
15776
15777
15778
15779
15780
15781ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15782if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15783  gcc_header_sys_mman_h=yes
15784else
15785  gcc_header_sys_mman_h=no
15786fi
15787
15788
15789ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15790if test "x$ac_cv_func_mmap" = x""yes; then :
15791  gcc_func_mmap=yes
15792else
15793  gcc_func_mmap=no
15794fi
15795
15796if test "$gcc_header_sys_mman_h" != yes \
15797 || test "$gcc_func_mmap" != yes; then
15798   gcc_cv_func_mmap_file=no
15799   gcc_cv_func_mmap_dev_zero=no
15800   gcc_cv_func_mmap_anon=no
15801else
15802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15803$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15804if test "${gcc_cv_func_mmap_file+set}" = set; then :
15805  $as_echo_n "(cached) " >&6
15806else
15807  # Add a system to this blacklist if
15808   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15809   # memory area containing the same data that you'd get if you applied
15810   # read() to the same fd.  The only system known to have a problem here
15811   # is VMS, where text files have record structure.
15812   case "$host_os" in
15813     *vms* | ultrix*)
15814        gcc_cv_func_mmap_file=no ;;
15815     *)
15816        gcc_cv_func_mmap_file=yes;;
15817   esac
15818fi
15819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15820$as_echo "$gcc_cv_func_mmap_file" >&6; }
15821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15822$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15823if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15824  $as_echo_n "(cached) " >&6
15825else
15826  # Add a system to this blacklist if it has mmap() but /dev/zero
15827   # does not exist, or if mmapping /dev/zero does not give anonymous
15828   # zeroed pages with both the following properties:
15829   # 1. If you map N consecutive pages in with one call, and then
15830   #    unmap any subset of those pages, the pages that were not
15831   #    explicitly unmapped remain accessible.
15832   # 2. If you map two adjacent blocks of memory and then unmap them
15833   #    both at once, they must both go away.
15834   # Systems known to be in this category are Windows (all variants),
15835   # VMS, and Darwin.
15836   case "$host_os" in
15837     *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15838        gcc_cv_func_mmap_dev_zero=no ;;
15839     *)
15840        gcc_cv_func_mmap_dev_zero=yes;;
15841   esac
15842fi
15843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15844$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15845
15846   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15848$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15849if test "${gcc_cv_decl_map_anon+set}" = set; then :
15850  $as_echo_n "(cached) " >&6
15851else
15852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853/* end confdefs.h.  */
15854#include <sys/types.h>
15855#include <sys/mman.h>
15856#include <unistd.h>
15857
15858#ifndef MAP_ANONYMOUS
15859#define MAP_ANONYMOUS MAP_ANON
15860#endif
15861
15862int
15863main ()
15864{
15865int n = MAP_ANONYMOUS;
15866  ;
15867  return 0;
15868}
15869_ACEOF
15870if ac_fn_c_try_compile "$LINENO"; then :
15871  gcc_cv_decl_map_anon=yes
15872else
15873  gcc_cv_decl_map_anon=no
15874fi
15875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15876fi
15877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15878$as_echo "$gcc_cv_decl_map_anon" >&6; }
15879
15880   if test $gcc_cv_decl_map_anon = no; then
15881     gcc_cv_func_mmap_anon=no
15882   else
15883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15884$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15885if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15886  $as_echo_n "(cached) " >&6
15887else
15888  # Add a system to this blacklist if it has mmap() and MAP_ANON or
15889   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15890   # doesn't give anonymous zeroed pages with the same properties listed
15891   # above for use of /dev/zero.
15892   # Systems known to be in this category are Windows, VMS, and SCO Unix.
15893   case "$host_os" in
15894     *vms* | cygwin* | pe | mingw* | sco* | udk* )
15895        gcc_cv_func_mmap_anon=no ;;
15896     *)
15897        gcc_cv_func_mmap_anon=yes;;
15898   esac
15899fi
15900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15901$as_echo "$gcc_cv_func_mmap_anon" >&6; }
15902   fi
15903fi
15904
15905if test $gcc_cv_func_mmap_file = yes; then
15906
15907$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15908
15909fi
15910if test $gcc_cv_func_mmap_dev_zero = yes; then
15911
15912$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15913
15914fi
15915if test $gcc_cv_func_mmap_anon = yes; then
15916
15917$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15918
15919fi
15920
15921
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15923$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15924if test "${ac_cv_c_bigendian+set}" = set; then :
15925  $as_echo_n "(cached) " >&6
15926else
15927  ac_cv_c_bigendian=unknown
15928    # See if we're dealing with a universal compiler.
15929    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930/* end confdefs.h.  */
15931#ifndef __APPLE_CC__
15932	       not a universal capable compiler
15933	     #endif
15934	     typedef int dummy;
15935
15936_ACEOF
15937if ac_fn_c_try_compile "$LINENO"; then :
15938
15939	# Check for potential -arch flags.  It is not universal unless
15940	# there are at least two -arch flags with different values.
15941	ac_arch=
15942	ac_prev=
15943	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15944	 if test -n "$ac_prev"; then
15945	   case $ac_word in
15946	     i?86 | x86_64 | ppc | ppc64)
15947	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15948		 ac_arch=$ac_word
15949	       else
15950		 ac_cv_c_bigendian=universal
15951		 break
15952	       fi
15953	       ;;
15954	   esac
15955	   ac_prev=
15956	 elif test "x$ac_word" = "x-arch"; then
15957	   ac_prev=arch
15958	 fi
15959       done
15960fi
15961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962    if test $ac_cv_c_bigendian = unknown; then
15963      # See if sys/param.h defines the BYTE_ORDER macro.
15964      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965/* end confdefs.h.  */
15966#include <sys/types.h>
15967	     #include <sys/param.h>
15968
15969int
15970main ()
15971{
15972#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15973		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15974		     && LITTLE_ENDIAN)
15975	      bogus endian macros
15976	     #endif
15977
15978  ;
15979  return 0;
15980}
15981_ACEOF
15982if ac_fn_c_try_compile "$LINENO"; then :
15983  # It does; now see whether it defined to BIG_ENDIAN or not.
15984	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985/* end confdefs.h.  */
15986#include <sys/types.h>
15987		#include <sys/param.h>
15988
15989int
15990main ()
15991{
15992#if BYTE_ORDER != BIG_ENDIAN
15993		 not big endian
15994		#endif
15995
15996  ;
15997  return 0;
15998}
15999_ACEOF
16000if ac_fn_c_try_compile "$LINENO"; then :
16001  ac_cv_c_bigendian=yes
16002else
16003  ac_cv_c_bigendian=no
16004fi
16005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006fi
16007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16008    fi
16009    if test $ac_cv_c_bigendian = unknown; then
16010      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16011      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012/* end confdefs.h.  */
16013#include <limits.h>
16014
16015int
16016main ()
16017{
16018#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16019	      bogus endian macros
16020	     #endif
16021
16022  ;
16023  return 0;
16024}
16025_ACEOF
16026if ac_fn_c_try_compile "$LINENO"; then :
16027  # It does; now see whether it defined to _BIG_ENDIAN or not.
16028	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029/* end confdefs.h.  */
16030#include <limits.h>
16031
16032int
16033main ()
16034{
16035#ifndef _BIG_ENDIAN
16036		 not big endian
16037		#endif
16038
16039  ;
16040  return 0;
16041}
16042_ACEOF
16043if ac_fn_c_try_compile "$LINENO"; then :
16044  ac_cv_c_bigendian=yes
16045else
16046  ac_cv_c_bigendian=no
16047fi
16048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049fi
16050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051    fi
16052    if test $ac_cv_c_bigendian = unknown; then
16053      # Compile a test program.
16054      if test "$cross_compiling" = yes; then :
16055  # Try to guess by grepping values from an object file.
16056	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057/* end confdefs.h.  */
16058short int ascii_mm[] =
16059		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16060		short int ascii_ii[] =
16061		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16062		int use_ascii (int i) {
16063		  return ascii_mm[i] + ascii_ii[i];
16064		}
16065		short int ebcdic_ii[] =
16066		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16067		short int ebcdic_mm[] =
16068		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16069		int use_ebcdic (int i) {
16070		  return ebcdic_mm[i] + ebcdic_ii[i];
16071		}
16072		extern int foo;
16073
16074int
16075main ()
16076{
16077return use_ascii (foo) == use_ebcdic (foo);
16078  ;
16079  return 0;
16080}
16081_ACEOF
16082if ac_fn_c_try_compile "$LINENO"; then :
16083  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16084	      ac_cv_c_bigendian=yes
16085	    fi
16086	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16087	      if test "$ac_cv_c_bigendian" = unknown; then
16088		ac_cv_c_bigendian=no
16089	      else
16090		# finding both strings is unlikely to happen, but who knows?
16091		ac_cv_c_bigendian=unknown
16092	      fi
16093	    fi
16094fi
16095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096else
16097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098/* end confdefs.h.  */
16099$ac_includes_default
16100int
16101main ()
16102{
16103
16104	     /* Are we little or big endian?  From Harbison&Steele.  */
16105	     union
16106	     {
16107	       long int l;
16108	       char c[sizeof (long int)];
16109	     } u;
16110	     u.l = 1;
16111	     return u.c[sizeof (long int) - 1] == 1;
16112
16113  ;
16114  return 0;
16115}
16116_ACEOF
16117if ac_fn_c_try_run "$LINENO"; then :
16118  ac_cv_c_bigendian=no
16119else
16120  ac_cv_c_bigendian=yes
16121fi
16122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16123  conftest.$ac_objext conftest.beam conftest.$ac_ext
16124fi
16125
16126    fi
16127fi
16128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16129$as_echo "$ac_cv_c_bigendian" >&6; }
16130 case $ac_cv_c_bigendian in #(
16131   yes)
16132     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16133;; #(
16134   no)
16135      ;; #(
16136   universal)
16137
16138$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16139
16140     ;; #(
16141   *)
16142     as_fn_error "unknown endianness
16143 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16144 esac
16145
16146# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16147
16148
16149# Check to see if -pthread or -lpthread is needed.  Prefer the former.
16150# In case the pthread.h system header is not found, this test will fail.
16151XPCFLAGS=""
16152CFLAGS="$CFLAGS -pthread"
16153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154/* end confdefs.h.  */
16155#include <pthread.h>
16156   void *g(void *d) { return NULL; }
16157int
16158main ()
16159{
16160pthread_t t; pthread_create(&t,NULL,g,NULL);
16161  ;
16162  return 0;
16163}
16164_ACEOF
16165if ac_fn_c_try_link "$LINENO"; then :
16166  XPCFLAGS=" -Wc,-pthread"
16167else
16168  CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170/* end confdefs.h.  */
16171#include <pthread.h>
16172     void *g(void *d) { return NULL; }
16173int
16174main ()
16175{
16176pthread_t t; pthread_create(&t,NULL,g,NULL);
16177  ;
16178  return 0;
16179}
16180_ACEOF
16181if ac_fn_c_try_link "$LINENO"; then :
16182
16183else
16184  as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16185fi
16186rm -f core conftest.err conftest.$ac_objext \
16187    conftest$ac_exeext conftest.$ac_ext
16188fi
16189rm -f core conftest.err conftest.$ac_objext \
16190    conftest$ac_exeext conftest.$ac_ext
16191
16192# Check for functions needed.
16193for ac_func in strtoull memalign posix_memalign getauxval
16194do :
16195  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16196ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16197eval as_val=\$$as_ac_var
16198   if test "x$as_val" = x""yes; then :
16199  cat >>confdefs.h <<_ACEOF
16200#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16201_ACEOF
16202
16203fi
16204done
16205
16206
16207# Check for broken semaphore implementation on darwin.
16208# sem_init returns: sem_init error: Function not implemented.
16209case "$host" in
16210  *-darwin*)
16211
16212$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16213
16214    ;;
16215esac
16216
16217 # Check whether --enable-linux-futex was given.
16218if test "${enable_linux_futex+set}" = set; then :
16219  enableval=$enable_linux_futex;
16220      case "$enableval" in
16221       yes|no|default) ;;
16222       *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16223                          esac
16224
16225else
16226  enable_linux_futex=default
16227fi
16228
16229
16230case "$target" in
16231  *-linux*)
16232    case "$enable_linux_futex" in
16233      default)
16234	# If headers don't have gettid/futex syscalls definition, then
16235	# default to no, otherwise there will be compile time failures.
16236	# Otherwise, default to yes.  If we don't detect we are
16237	# compiled/linked against NPTL and not cross-compiling, check
16238	# if programs are run by default against NPTL and if not, issue
16239	# a warning.
16240	enable_linux_futex=no
16241	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242/* end confdefs.h.  */
16243#include <sys/syscall.h>
16244	   int lk;
16245int
16246main ()
16247{
16248syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16249  ;
16250  return 0;
16251}
16252_ACEOF
16253if ac_fn_c_try_link "$LINENO"; then :
16254  save_LIBS="$LIBS"
16255	   LIBS="-lpthread $LIBS"
16256	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257/* end confdefs.h.  */
16258#ifndef _GNU_SOURCE
16259	     #define _GNU_SOURCE 1
16260	     #endif
16261	     #include <pthread.h>
16262	     pthread_t th; void *status;
16263int
16264main ()
16265{
16266pthread_tryjoin_np (th, &status);
16267  ;
16268  return 0;
16269}
16270_ACEOF
16271if ac_fn_c_try_link "$LINENO"; then :
16272  enable_linux_futex=yes
16273else
16274  if test x$cross_compiling = xno; then
16275	       if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16276		  | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16277		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16278If so, please configure with --disable-linux-futex" >&5
16279$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16280If so, please configure with --disable-linux-futex" >&2;}
16281	       fi
16282	     fi
16283	     enable_linux_futex=yes
16284fi
16285rm -f core conftest.err conftest.$ac_objext \
16286    conftest$ac_exeext conftest.$ac_ext
16287	   LIBS="$save_LIBS"
16288fi
16289rm -f core conftest.err conftest.$ac_objext \
16290    conftest$ac_exeext conftest.$ac_ext
16291	;;
16292      yes)
16293	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294/* end confdefs.h.  */
16295#include <sys/syscall.h>
16296	   int lk;
16297int
16298main ()
16299{
16300syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16301  ;
16302  return 0;
16303}
16304_ACEOF
16305if ac_fn_c_try_link "$LINENO"; then :
16306
16307else
16308  as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16309fi
16310rm -f core conftest.err conftest.$ac_objext \
16311    conftest$ac_exeext conftest.$ac_ext
16312	;;
16313    esac
16314    ;;
16315  *)
16316    enable_linux_futex=no
16317    ;;
16318esac
16319if test x$enable_linux_futex = xyes; then
16320  :
16321fi
16322
16323
16324# See if we support thread-local storage.
16325
16326
16327   # Check whether --enable-tls was given.
16328if test "${enable_tls+set}" = set; then :
16329  enableval=$enable_tls;
16330      case "$enableval" in
16331       yes|no) ;;
16332       *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16333      esac
16334
16335else
16336  enable_tls=yes
16337fi
16338
16339
16340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16341$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16342if test "${gcc_cv_have_tls+set}" = set; then :
16343  $as_echo_n "(cached) " >&6
16344else
16345
16346    if test "$cross_compiling" = yes; then :
16347                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16348/* end confdefs.h.  */
16349__thread int a; int b; int main() { return a = b; }
16350_ACEOF
16351if ac_fn_c_try_link "$LINENO"; then :
16352  chktls_save_LDFLAGS="$LDFLAGS"
16353	  	  	  case $host in
16354	    *-*-linux*)
16355	      LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16356	      ;;
16357	  esac
16358	  chktls_save_CFLAGS="$CFLAGS"
16359	  CFLAGS="-fPIC $CFLAGS"
16360	  	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361/* end confdefs.h.  */
16362int f() { return 0; }
16363_ACEOF
16364if ac_fn_c_try_link "$LINENO"; then :
16365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366/* end confdefs.h.  */
16367__thread int a; int b; int f() { return a = b; }
16368_ACEOF
16369if ac_fn_c_try_link "$LINENO"; then :
16370  gcc_cv_have_tls=yes
16371else
16372  gcc_cv_have_tls=no
16373fi
16374rm -f core conftest.err conftest.$ac_objext \
16375    conftest$ac_exeext conftest.$ac_ext
16376else
16377  gcc_cv_have_tls=yes
16378fi
16379rm -f core conftest.err conftest.$ac_objext \
16380    conftest$ac_exeext conftest.$ac_ext
16381	  CFLAGS="$chktls_save_CFLAGS"
16382	  LDFLAGS="$chktls_save_LDFLAGS"
16383else
16384  gcc_cv_have_tls=no
16385fi
16386rm -f core conftest.err conftest.$ac_objext \
16387    conftest$ac_exeext conftest.$ac_ext
16388
16389
16390else
16391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392/* end confdefs.h.  */
16393__thread int a; int b; int main() { return a = b; }
16394_ACEOF
16395if ac_fn_c_try_run "$LINENO"; then :
16396                      chktls_save_LDFLAGS="$LDFLAGS"
16397      LDFLAGS="-static $LDFLAGS"
16398      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399/* end confdefs.h.  */
16400int main() { return 0; }
16401_ACEOF
16402if ac_fn_c_try_link "$LINENO"; then :
16403  if test "$cross_compiling" = yes; then :
16404  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16406as_fn_error "cannot run test program while cross compiling
16407See \`config.log' for more details." "$LINENO" 5; }
16408else
16409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410/* end confdefs.h.  */
16411__thread int a; int b; int main() { return a = b; }
16412_ACEOF
16413if ac_fn_c_try_run "$LINENO"; then :
16414  gcc_cv_have_tls=yes
16415else
16416  gcc_cv_have_tls=no
16417fi
16418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16419  conftest.$ac_objext conftest.beam conftest.$ac_ext
16420fi
16421
16422else
16423  gcc_cv_have_tls=yes
16424fi
16425rm -f core conftest.err conftest.$ac_objext \
16426    conftest$ac_exeext conftest.$ac_ext
16427      LDFLAGS="$chktls_save_LDFLAGS"
16428      if test $gcc_cv_have_tls = yes; then
16429						chktls_save_CFLAGS="$CFLAGS"
16430	thread_CFLAGS=failed
16431	for flag in '' '-pthread' '-lpthread'; do
16432	  CFLAGS="$flag $chktls_save_CFLAGS"
16433	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434/* end confdefs.h.  */
16435#include <pthread.h>
16436		void *g(void *d) { return NULL; }
16437int
16438main ()
16439{
16440pthread_t t; pthread_create(&t,NULL,g,NULL);
16441  ;
16442  return 0;
16443}
16444_ACEOF
16445if ac_fn_c_try_link "$LINENO"; then :
16446  thread_CFLAGS="$flag"
16447fi
16448rm -f core conftest.err conftest.$ac_objext \
16449    conftest$ac_exeext conftest.$ac_ext
16450	  if test "X$thread_CFLAGS" != Xfailed; then
16451	    break
16452	  fi
16453	done
16454	CFLAGS="$chktls_save_CFLAGS"
16455	if test "X$thread_CFLAGS" != Xfailed; then
16456	  CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16457 	  	  	  	  	  	  if test "$cross_compiling" = yes; then :
16458  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16460as_fn_error "cannot run test program while cross compiling
16461See \`config.log' for more details." "$LINENO" 5; }
16462else
16463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464/* end confdefs.h.  */
16465#include <pthread.h>
16466		__thread int a;
16467		static int *volatile a_in_other_thread;
16468		static void *
16469		thread_func (void *arg)
16470		{
16471		  a_in_other_thread = &a;
16472		  return (void *)0;
16473		}
16474int
16475main ()
16476{
16477pthread_t thread;
16478		void *thread_retval;
16479		int *volatile a_in_main_thread;
16480		a_in_main_thread = &a;
16481		if (pthread_create (&thread, (pthread_attr_t *)0,
16482				    thread_func, (void *)0))
16483		  return 0;
16484		if (pthread_join (thread, &thread_retval))
16485		  return 0;
16486		return (a_in_other_thread == a_in_main_thread);
16487  ;
16488  return 0;
16489}
16490_ACEOF
16491if ac_fn_c_try_run "$LINENO"; then :
16492  gcc_cv_have_tls=yes
16493else
16494  gcc_cv_have_tls=no
16495fi
16496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16497  conftest.$ac_objext conftest.beam conftest.$ac_ext
16498fi
16499
16500	  CFLAGS="$chktls_save_CFLAGS"
16501	fi
16502      fi
16503else
16504  gcc_cv_have_tls=no
16505fi
16506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16507  conftest.$ac_objext conftest.beam conftest.$ac_ext
16508fi
16509
16510fi
16511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16512$as_echo "$gcc_cv_have_tls" >&6; }
16513  if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16514
16515$as_echo "#define HAVE_TLS 1" >>confdefs.h
16516
16517  fi
16518
16519# See what sort of export controls are available.
16520
16521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16522$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16523if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16524  $as_echo_n "(cached) " >&6
16525else
16526
16527  save_CFLAGS="$CFLAGS"
16528  CFLAGS="$CFLAGS -Werror"
16529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16530/* end confdefs.h.  */
16531void __attribute__((visibility("hidden"))) foo(void) { }
16532int
16533main ()
16534{
16535
16536  ;
16537  return 0;
16538}
16539_ACEOF
16540if ac_fn_c_try_compile "$LINENO"; then :
16541  libitm_cv_have_attribute_visibility=yes
16542else
16543  libitm_cv_have_attribute_visibility=no
16544fi
16545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546  CFLAGS="$save_CFLAGS"
16547fi
16548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16549$as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16550  if test $libitm_cv_have_attribute_visibility = yes; then
16551
16552$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16553
16554  fi
16555
16556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16557$as_echo_n "checking whether the target supports dllexport... " >&6; }
16558if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16559  $as_echo_n "(cached) " >&6
16560else
16561
16562  save_CFLAGS="$CFLAGS"
16563  CFLAGS="$CFLAGS -Werror"
16564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565/* end confdefs.h.  */
16566void __attribute__((dllexport)) foo(void) { }
16567int
16568main ()
16569{
16570
16571  ;
16572  return 0;
16573}
16574_ACEOF
16575if ac_fn_c_try_compile "$LINENO"; then :
16576  libitm_cv_have_attribute_dllexport=yes
16577else
16578  libitm_cv_have_attribute_dllexport=no
16579fi
16580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581  CFLAGS="$save_CFLAGS"
16582fi
16583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16584$as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16585  if test $libitm_cv_have_attribute_dllexport = yes; then
16586
16587$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16588
16589  fi
16590
16591  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16592$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16593if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16594  $as_echo_n "(cached) " >&6
16595else
16596
16597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598/* end confdefs.h.  */
16599
16600void foo(void) { }
16601extern void bar(void) __attribute__((alias("foo")));
16602int
16603main ()
16604{
16605bar();
16606  ;
16607  return 0;
16608}
16609_ACEOF
16610if ac_fn_c_try_link "$LINENO"; then :
16611  libitm_cv_have_attribute_alias=yes
16612else
16613  libitm_cv_have_attribute_alias=no
16614fi
16615rm -f core conftest.err conftest.$ac_objext \
16616    conftest$ac_exeext conftest.$ac_ext
16617fi
16618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16619$as_echo "$libitm_cv_have_attribute_alias" >&6; }
16620  if test $libitm_cv_have_attribute_alias = yes; then
16621
16622$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16623
16624  fi
16625
16626# Check linker hardware capability support.
16627
16628
16629# Check whether --with-gnu-ld was given.
16630if test "${with_gnu_ld+set}" = set; then :
16631  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16632else
16633  with_gnu_ld=no
16634fi
16635
16636ac_prog=ld
16637if test "$GCC" = yes; then
16638  # Check if gcc -print-prog-name=ld gives a path.
16639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16640$as_echo_n "checking for ld used by $CC... " >&6; }
16641  case $host in
16642  *-*-mingw*)
16643    # gcc leaves a trailing carriage return which upsets mingw
16644    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16645  *)
16646    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16647  esac
16648  case $ac_prog in
16649    # Accept absolute paths.
16650    [\\/]* | ?:[\\/]*)
16651      re_direlt='/[^/][^/]*/\.\./'
16652      # Canonicalize the pathname of ld
16653      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16654      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16655	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16656      done
16657      test -z "$LD" && LD="$ac_prog"
16658      ;;
16659  "")
16660    # If it fails, then pretend we aren't using GCC.
16661    ac_prog=ld
16662    ;;
16663  *)
16664    # If it is relative, then search for the first ld in PATH.
16665    with_gnu_ld=unknown
16666    ;;
16667  esac
16668elif test "$with_gnu_ld" = yes; then
16669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16670$as_echo_n "checking for GNU ld... " >&6; }
16671else
16672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16673$as_echo_n "checking for non-GNU ld... " >&6; }
16674fi
16675if test "${lt_cv_path_LD+set}" = set; then :
16676  $as_echo_n "(cached) " >&6
16677else
16678  if test -z "$LD"; then
16679  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16680  for ac_dir in $PATH; do
16681    IFS="$lt_save_ifs"
16682    test -z "$ac_dir" && ac_dir=.
16683    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16684      lt_cv_path_LD="$ac_dir/$ac_prog"
16685      # Check to see if the program is GNU ld.  I'd rather use --version,
16686      # but apparently some variants of GNU ld only accept -v.
16687      # Break only if it was the GNU/non-GNU ld that we prefer.
16688      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16689      *GNU* | *'with BFD'*)
16690	test "$with_gnu_ld" != no && break
16691	;;
16692      *)
16693	test "$with_gnu_ld" != yes && break
16694	;;
16695      esac
16696    fi
16697  done
16698  IFS="$lt_save_ifs"
16699else
16700  lt_cv_path_LD="$LD" # Let the user override the test with a path.
16701fi
16702fi
16703
16704LD="$lt_cv_path_LD"
16705if test -n "$LD"; then
16706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16707$as_echo "$LD" >&6; }
16708else
16709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16710$as_echo "no" >&6; }
16711fi
16712test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16714$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16715if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16716  $as_echo_n "(cached) " >&6
16717else
16718  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16719case `$LD -v 2>&1 </dev/null` in
16720*GNU* | *'with BFD'*)
16721  lt_cv_prog_gnu_ld=yes
16722  ;;
16723*)
16724  lt_cv_prog_gnu_ld=no
16725  ;;
16726esac
16727fi
16728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16729$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16730with_gnu_ld=$lt_cv_prog_gnu_ld
16731
16732
16733
16734
16735
16736
16737
16738  test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
16739
16740
16741  ac_save_LDFLAGS="$LDFLAGS"
16742  LDFLAGS="$LFLAGS -Wl,-M,$srcdir/clearcap.map"
16743
16744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-M,mapfile" >&5
16745$as_echo_n "checking for ld that supports -Wl,-M,mapfile... " >&6; }
16746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747/* end confdefs.h.  */
16748
16749int
16750main ()
16751{
16752return 0;
16753  ;
16754  return 0;
16755}
16756_ACEOF
16757if ac_fn_c_try_link "$LINENO"; then :
16758  ac_hwcap_ldflags=yes
16759else
16760  ac_hwcap_ldflags=no
16761fi
16762rm -f core conftest.err conftest.$ac_objext \
16763    conftest$ac_exeext conftest.$ac_ext
16764  if test "$ac_hwcap_ldflags" = "yes"; then
16765    HWCAP_LDFLAGS="-Wl,-M,$srcdir/clearcap.map $HWCAP_LDFLAGS"
16766  fi
16767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
16768$as_echo "$ac_hwcap_ldflags" >&6; }
16769
16770  LDFLAGS="$ac_save_LDFLAGS"
16771
16772
16773
16774   if test $ac_hwcap_ldflags != no; then
16775  HAVE_HWCAP_TRUE=
16776  HAVE_HWCAP_FALSE='#'
16777else
16778  HAVE_HWCAP_TRUE='#'
16779  HAVE_HWCAP_FALSE=
16780fi
16781
16782
16783# If defaulting to -mavx, don't clear hwcaps.
16784ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
16785if test "x$ac_cv_have_decl___AVX__" = x""yes; then :
16786  HWCAP_LDFLAGS=''
16787fi
16788
16789
16790
16791  # If we're not using GNU ld, then there's no point in even trying these
16792  # tests.  Check for that first.  We should have already tested for gld
16793  # by now (in libtool), but require it now just to be safe...
16794  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16795  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16796
16797
16798
16799  # The name set by libtool depends on the version of libtool.  Shame on us
16800  # for depending on an impl detail, but c'est la vie.  Older versions used
16801  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16802  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16803  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
16804  # set (hence we're using an older libtool), then set it.
16805  if test x${with_gnu_ld+set} != xset; then
16806    if test x${ac_cv_prog_gnu_ld+set} != xset; then
16807      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
16808      with_gnu_ld=no
16809    else
16810      with_gnu_ld=$ac_cv_prog_gnu_ld
16811    fi
16812  fi
16813
16814  # Start by getting the version number.  I think the libtool test already
16815  # does some of this, but throws away the result.
16816  libitm_ld_is_gold=no
16817  if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16818    libitm_ld_is_gold=yes
16819  fi
16820
16821  ldver=`$LD --version 2>/dev/null |
16822         sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16823
16824  libitm_gnu_ld_version=`echo $ldver | \
16825         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16826
16827  # Set --gc-sections.
16828  if test "$with_gnu_ld" = "notbroken"; then
16829    # GNU ld it is!  Joy and bunny rabbits!
16830
16831    # All these tests are for C++; save the language and the compiler flags.
16832    # Need to do this so that g++ won't try to link in libstdc++
16833    ac_test_CFLAGS="${CFLAGS+set}"
16834    ac_save_CFLAGS="$CFLAGS"
16835    CFLAGS='-x c++  -Wl,--gc-sections'
16836
16837    # Check for -Wl,--gc-sections
16838    # XXX This test is broken at the moment, as symbols required for linking
16839    # are now in libsupc++ (not built yet).  In addition, this test has
16840    # cored on solaris in the past.  In addition, --gc-sections doesn't
16841    # really work at the moment (keeps on discarding used sections, first
16842    # .eh_frame and now some of the glibc sections for iconv).
16843    # Bzzzzt.  Thanks for playing, maybe next time.
16844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16845$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16846    if test "$cross_compiling" = yes; then :
16847  ac_sectionLDflags=yes
16848else
16849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850/* end confdefs.h.  */
16851
16852     int main(void)
16853     {
16854       try { throw 1; }
16855       catch (...) { };
16856       return 0;
16857     }
16858
16859_ACEOF
16860if ac_fn_c_try_run "$LINENO"; then :
16861  ac_sectionLDflags=yes
16862else
16863  ac_sectionLDflags=no
16864fi
16865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16866  conftest.$ac_objext conftest.beam conftest.$ac_ext
16867fi
16868
16869    if test "$ac_test_CFLAGS" = set; then
16870      CFLAGS="$ac_save_CFLAGS"
16871    else
16872      # this is the suspicious part
16873      CFLAGS=''
16874    fi
16875    if test "$ac_sectionLDflags" = "yes"; then
16876      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16877    fi
16878    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16879$as_echo "$ac_sectionLDflags" >&6; }
16880  fi
16881
16882  # Set linker optimization flags.
16883  if test x"$with_gnu_ld" = x"yes"; then
16884    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16885  fi
16886
16887
16888
16889
16890
16891
16892 # Check whether --enable-symvers was given.
16893if test "${enable_symvers+set}" = set; then :
16894  enableval=$enable_symvers;
16895      case "$enableval" in
16896       yes|no|gnu*|sun) ;;
16897       *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16898                          esac
16899
16900else
16901  enable_symvers=yes
16902fi
16903
16904
16905
16906# If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16907# don't know enough about $LD to do tricks...
16908
16909
16910# Turn a 'yes' into a suitable default.
16911if test x$enable_symvers = xyes ; then
16912  # FIXME  The following test is too strict, in theory.
16913  if test $enable_shared = no || test "x$LD" = x; then
16914    enable_symvers=no
16915  else
16916    if test $with_gnu_ld = yes ; then
16917      enable_symvers=gnu
16918    else
16919      case ${target_os} in
16920        # Sun symbol versioning exists since Solaris 2.5.
16921        solaris2.[5-9]* | solaris2.1[0-9]*)
16922          enable_symvers=sun ;;
16923        *)
16924          enable_symvers=no ;;
16925      esac
16926    fi
16927  fi
16928fi
16929
16930# Check if 'sun' was requested on non-Solaris 2 platforms.
16931if test x$enable_symvers = xsun ; then
16932  case ${target_os} in
16933    solaris2*)
16934      # All fine.
16935      ;;
16936    *)
16937      # Unlikely to work.
16938      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16939$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16940      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16941$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16942      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16943$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16944      enable_symvers=no
16945      ;;
16946  esac
16947fi
16948
16949# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16950if test $enable_symvers != no; then
16951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16952$as_echo_n "checking for shared libgcc... " >&6; }
16953  ac_save_CFLAGS="$CFLAGS"
16954  CFLAGS=' -lgcc_s'
16955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956/* end confdefs.h.  */
16957
16958int
16959main ()
16960{
16961return 0;
16962  ;
16963  return 0;
16964}
16965_ACEOF
16966if ac_fn_c_try_link "$LINENO"; then :
16967  libitm_shared_libgcc=yes
16968else
16969  libitm_shared_libgcc=no
16970fi
16971rm -f core conftest.err conftest.$ac_objext \
16972    conftest$ac_exeext conftest.$ac_ext
16973  CFLAGS="$ac_save_CFLAGS"
16974  if test $libitm_shared_libgcc = no; then
16975    cat > conftest.c <<EOF
16976int main (void) { return 0; }
16977EOF
16978    libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16979			     -shared -shared-libgcc -o conftest.so \
16980			     conftest.c -v 2>&1 >/dev/null \
16981			     | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16982    rm -f conftest.c conftest.so
16983    if test x${libitm_libgcc_s_suffix+set} = xset; then
16984      CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16985      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986/* end confdefs.h.  */
16987
16988int
16989main ()
16990{
16991return 0;
16992  ;
16993  return 0;
16994}
16995_ACEOF
16996if ac_fn_c_try_link "$LINENO"; then :
16997  libitm_shared_libgcc=yes
16998fi
16999rm -f core conftest.err conftest.$ac_objext \
17000    conftest$ac_exeext conftest.$ac_ext
17001      CFLAGS="$ac_save_CFLAGS"
17002    fi
17003  fi
17004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17005$as_echo "$libitm_shared_libgcc" >&6; }
17006fi
17007
17008# For GNU ld, we need at least this version.  The format is described in
17009# LIBITM_CHECK_LINKER_FEATURES above.
17010libitm_min_gnu_ld_version=21400
17011# XXXXXXXXXXX libitm_gnu_ld_version=21390
17012
17013# Check to see if unspecified "yes" value can win, given results above.
17014# Change "yes" into either "no" or a style name.
17015if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17016  if test $with_gnu_ld = yes; then
17017    if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17018      enable_symvers=gnu
17019    elif test $libitm_ld_is_gold = yes ; then
17020      enable_symvers=gnu
17021    else
17022      # The right tools, the right setup, but too old.  Fallbacks?
17023      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17024$as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17025      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17026$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17027      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17028$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17029      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17030$as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17031      if test $libitm_gnu_ld_version -ge 21200 ; then
17032        # Globbing fix is present, proper block support is not.
17033                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17034$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17035        enable_symvers=no
17036      else
17037        # 2.11 or older.
17038        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17039$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17040        enable_symvers=no
17041      fi
17042    fi
17043  elif test $enable_symvers = sun; then
17044    : All interesting versions of Sun ld support sun style symbol versioning.
17045  else
17046    # just fail for now
17047    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17048$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17049    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17050$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17051    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17052$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17053    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17054$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17055    enable_symvers=no
17056  fi
17057fi
17058
17059 if test $enable_symvers != no; then
17060  LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17061  LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17062else
17063  LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17064  LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17065fi
17066
17067 if test $enable_symvers = gnu; then
17068  LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17069  LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17070else
17071  LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17072  LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17073fi
17074
17075 if test $enable_symvers = sun; then
17076  LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17077  LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17078else
17079  LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17080  LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17081fi
17082
17083{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17084$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17085
17086if test $enable_symvers = gnu; then
17087
17088$as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17089
17090fi
17091
17092# See if we can emit unwind info in the sjlj stub.
17093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17094$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17095if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
17096  $as_echo_n "(cached) " >&6
17097else
17098
17099    gcc_cv_as_cfi_pseudo_op=unknown
17100    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101/* end confdefs.h.  */
17102asm (".cfi_startproc\n\t.cfi_endproc");
17103int
17104main ()
17105{
17106
17107  ;
17108  return 0;
17109}
17110_ACEOF
17111if ac_fn_c_try_compile "$LINENO"; then :
17112  gcc_cv_as_cfi_pseudo_op=yes
17113else
17114  gcc_cv_as_cfi_pseudo_op=no
17115fi
17116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117
17118fi
17119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17120$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17121 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17122
17123$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17124
17125 fi
17126
17127
17128# Determine the proper ABI type for size_t.
17129
17130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17131$as_echo_n "checking how size_t is mangled... " >&6; }
17132if test "${libitm_cv_size_t_mangling+set}" = set; then :
17133  $as_echo_n "(cached) " >&6
17134else
17135
17136    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137/* end confdefs.h.  */
17138
17139int
17140main ()
17141{
17142extern __SIZE_TYPE__ x; extern unsigned long x;
17143  ;
17144  return 0;
17145}
17146_ACEOF
17147if ac_fn_c_try_compile "$LINENO"; then :
17148  libitm_cv_size_t_mangling=m
17149else
17150
17151      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152/* end confdefs.h.  */
17153
17154int
17155main ()
17156{
17157extern __SIZE_TYPE__ x; extern unsigned int x;
17158  ;
17159  return 0;
17160}
17161_ACEOF
17162if ac_fn_c_try_compile "$LINENO"; then :
17163  libitm_cv_size_t_mangling=j
17164else
17165
17166        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167/* end confdefs.h.  */
17168
17169int
17170main ()
17171{
17172extern __SIZE_TYPE__ x; extern unsigned long long x;
17173  ;
17174  return 0;
17175}
17176_ACEOF
17177if ac_fn_c_try_compile "$LINENO"; then :
17178  libitm_cv_size_t_mangling=y
17179else
17180
17181          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182/* end confdefs.h.  */
17183
17184int
17185main ()
17186{
17187extern __SIZE_TYPE__ x; extern unsigned short x;
17188  ;
17189  return 0;
17190}
17191_ACEOF
17192if ac_fn_c_try_compile "$LINENO"; then :
17193  libitm_cv_size_t_mangling=t
17194else
17195  libitm_cv_size_t_mangling=x
17196fi
17197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17198
17199fi
17200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17201
17202fi
17203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204
17205fi
17206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17207
17208fi
17209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17210$as_echo "$libitm_cv_size_t_mangling" >&6; }
17211  if test $libitm_cv_size_t_mangling = x; then
17212    as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17213  fi
17214
17215cat >>confdefs.h <<_ACEOF
17216#define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17217_ACEOF
17218
17219
17220
17221# Get target configury.
17222. ${srcdir}/configure.tgt
17223if test -n "$UNSUPPORTED"; then
17224  as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17225fi
17226
17227CFLAGS="$save_CFLAGS $XCFLAGS"
17228
17229# Check for __sync_val_compare_and_swap, but only after the target has
17230# had a chance to set XCFLAGS.
17231
17232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17233$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17234if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17235  $as_echo_n "(cached) " >&6
17236else
17237
17238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239/* end confdefs.h.  */
17240
17241int
17242main ()
17243{
17244int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17245  ;
17246  return 0;
17247}
17248_ACEOF
17249if ac_fn_c_try_link "$LINENO"; then :
17250  libitm_cv_have_sync_builtins=yes
17251else
17252  libitm_cv_have_sync_builtins=no
17253fi
17254rm -f core conftest.err conftest.$ac_objext \
17255    conftest$ac_exeext conftest.$ac_ext
17256fi
17257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17258$as_echo "$libitm_cv_have_sync_builtins" >&6; }
17259  if test $libitm_cv_have_sync_builtins = yes; then
17260
17261$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17262
17263  fi
17264
17265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17266$as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17267if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17268  $as_echo_n "(cached) " >&6
17269else
17270
17271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272/* end confdefs.h.  */
17273#include <stdint.h>
17274int
17275main ()
17276{
17277uint64_t foo, bar;
17278     bar = __sync_val_compare_and_swap(&foo, 0, 1);
17279  ;
17280  return 0;
17281}
17282_ACEOF
17283if ac_fn_c_try_link "$LINENO"; then :
17284  libitm_cv_have_64bit_sync_builtins=yes
17285else
17286  libitm_cv_have_64bit_sync_builtins=no
17287fi
17288rm -f core conftest.err conftest.$ac_objext \
17289    conftest$ac_exeext conftest.$ac_ext
17290fi
17291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17292$as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17293    if test $libitm_cv_have_64bit_sync_builtins = yes; then
17294
17295$as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17296
17297  fi
17298
17299case "${target_cpu}" in
17300i[34567]86 | x86_64)
17301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17302$as_echo_n "checking if the assembler supports AVX... " >&6; }
17303if test "${libitm_cv_as_avx+set}" = set; then :
17304  $as_echo_n "(cached) " >&6
17305else
17306
17307    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308/* end confdefs.h.  */
17309
17310int
17311main ()
17312{
17313asm("vzeroupper");
17314  ;
17315  return 0;
17316}
17317_ACEOF
17318if ac_fn_c_try_compile "$LINENO"; then :
17319  libitm_cv_as_avx=yes
17320else
17321  libitm_cv_as_avx=no
17322fi
17323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17324
17325fi
17326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17327$as_echo "$libitm_cv_as_avx" >&6; }
17328  if test x$libitm_cv_as_avx = xyes; then
17329
17330$as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17331
17332  fi
17333  ;;
17334esac
17335
17336case "${target_cpu}" in
17337i[34567]86 | x86_64)
17338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17339$as_echo_n "checking if the assembler supports RTM... " >&6; }
17340if test "${libitm_cv_as_rtm+set}" = set; then :
17341  $as_echo_n "(cached) " >&6
17342else
17343
17344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345/* end confdefs.h.  */
17346
17347int
17348main ()
17349{
17350asm("1: xbegin 1b; xend");
17351  ;
17352  return 0;
17353}
17354_ACEOF
17355if ac_fn_c_try_compile "$LINENO"; then :
17356  libitm_cv_as_rtm=yes
17357else
17358  libitm_cv_as_rtm=no
17359fi
17360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361
17362fi
17363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17364$as_echo "$libitm_cv_as_rtm" >&6; }
17365  if test x$libitm_cv_as_rtm = xyes; then
17366
17367$as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17368
17369  fi
17370  ;;
17371esac
17372
17373case "${target_cpu}" in
17374powerpc*)
17375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17376$as_echo_n "checking if the assembler supports HTM... " >&6; }
17377if test "${libitm_cv_as_htm+set}" = set; then :
17378  $as_echo_n "(cached) " >&6
17379else
17380
17381    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382/* end confdefs.h.  */
17383
17384int
17385main ()
17386{
17387asm("tbegin. 0; tend. 0");
17388  ;
17389  return 0;
17390}
17391_ACEOF
17392if ac_fn_c_try_compile "$LINENO"; then :
17393  libitm_cv_as_htm=yes
17394else
17395  libitm_cv_as_htm=no
17396fi
17397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17398
17399fi
17400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17401$as_echo "$libitm_cv_as_htm" >&6; }
17402  if test x$libitm_cv_as_htm = xyes; then
17403
17404$as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17405
17406  fi
17407  ;;
17408s390*)
17409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17410$as_echo_n "checking if the assembler supports HTM... " >&6; }
17411if test "${libitm_cv_as_htm+set}" = set; then :
17412  $as_echo_n "(cached) " >&6
17413else
17414
17415    save_CFLAGS="$CFLAGS"
17416    CFLAGS="$CFLAGS -march=zEC12"
17417    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418/* end confdefs.h.  */
17419
17420int
17421main ()
17422{
17423asm("tbegin 0,0; tend");
17424  ;
17425  return 0;
17426}
17427_ACEOF
17428if ac_fn_c_try_compile "$LINENO"; then :
17429  libitm_cv_as_htm=yes
17430else
17431  libitm_cv_as_htm=no
17432fi
17433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17434    CFLAGS="$save_CFLAGS"
17435fi
17436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17437$as_echo "$libitm_cv_as_htm" >&6; }
17438  if test x$libitm_cv_as_htm = xyes; then
17439
17440$as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17441
17442  fi
17443  ;;
17444esac
17445
17446
17447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17448$as_echo_n "checking whether weak refs work like ELF... " >&6; }
17449if test "${ac_cv_have_elf_style_weakref+set}" = set; then :
17450  $as_echo_n "(cached) " >&6
17451else
17452
17453  weakref_m4_saved_CFLAGS="$CFLAGS"
17454  case "${host}" in
17455    *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17456    *) ;;
17457  esac
17458  if test "$cross_compiling" = yes; then :
17459
17460case "${host}" in
17461  *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17462  *) ac_cv_have_elf_style_weakref=yes;;
17463esac
17464else
17465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466/* end confdefs.h.  */
17467
17468extern void fNotToBeFound(void) __attribute__((weak));
17469int main ()
17470{
17471  if (fNotToBeFound)
17472    return 1;
17473  else
17474    return 0;
17475}
17476
17477_ACEOF
17478if ac_fn_c_try_run "$LINENO"; then :
17479  ac_cv_have_elf_style_weakref=yes
17480else
17481  ac_cv_have_elf_style_weakref=no
17482fi
17483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17484  conftest.$ac_objext conftest.beam conftest.$ac_ext
17485fi
17486CFLAGS="$weakref_m4_saved_CFLAGS"
17487fi
17488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17489$as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17490if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17491
17492$as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17493
17494fi
17495
17496# Cleanup and exit.
17497CFLAGS="$save_CFLAGS"
17498cat >confcache <<\_ACEOF
17499# This file is a shell script that caches the results of configure
17500# tests run on this system so they can be shared between configure
17501# scripts and configure runs, see configure's option --config-cache.
17502# It is not useful on other systems.  If it contains results you don't
17503# want to keep, you may remove or edit it.
17504#
17505# config.status only pays attention to the cache file if you give it
17506# the --recheck option to rerun configure.
17507#
17508# `ac_cv_env_foo' variables (set or unset) will be overridden when
17509# loading this file, other *unset* `ac_cv_foo' will be assigned the
17510# following values.
17511
17512_ACEOF
17513
17514# The following way of writing the cache mishandles newlines in values,
17515# but we know of no workaround that is simple, portable, and efficient.
17516# So, we kill variables containing newlines.
17517# Ultrix sh set writes to stderr and can't be redirected directly,
17518# and sets the high bit in the cache file unless we assign to the vars.
17519(
17520  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17521    eval ac_val=\$$ac_var
17522    case $ac_val in #(
17523    *${as_nl}*)
17524      case $ac_var in #(
17525      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17526$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17527      esac
17528      case $ac_var in #(
17529      _ | IFS | as_nl) ;; #(
17530      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17531      *) { eval $ac_var=; unset $ac_var;} ;;
17532      esac ;;
17533    esac
17534  done
17535
17536  (set) 2>&1 |
17537    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17538    *${as_nl}ac_space=\ *)
17539      # `set' does not quote correctly, so add quotes: double-quote
17540      # substitution turns \\\\ into \\, and sed turns \\ into \.
17541      sed -n \
17542	"s/'/'\\\\''/g;
17543	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17544      ;; #(
17545    *)
17546      # `set' quotes correctly as required by POSIX, so do not add quotes.
17547      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17548      ;;
17549    esac |
17550    sort
17551) |
17552  sed '
17553     /^ac_cv_env_/b end
17554     t clear
17555     :clear
17556     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17557     t end
17558     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17559     :end' >>confcache
17560if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17561  if test -w "$cache_file"; then
17562    test "x$cache_file" != "x/dev/null" &&
17563      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17564$as_echo "$as_me: updating cache $cache_file" >&6;}
17565    cat confcache >$cache_file
17566  else
17567    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17568$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17569  fi
17570fi
17571rm -f confcache
17572
17573# Add -Wall -Werror if we are using GCC.
17574if test "x$GCC" = "xyes"; then
17575  XCFLAGS="$XCFLAGS -Wall -Werror"
17576fi
17577
17578XCFLAGS="$XCFLAGS $XPCFLAGS"
17579
17580
17581
17582
17583
17584if test ${multilib} = yes; then
17585  multilib_arg="--enable-multilib"
17586else
17587  multilib_arg=
17588fi
17589
17590# Set up the set of libraries that we need to link against for libitm.
17591# Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17592# which will force linkage against -lpthread (or equivalent for the system).
17593# That's not 100% ideal, but about the best we can do easily.
17594if test $enable_shared = yes; then
17595  link_itm="-litm %{static: $LIBS}"
17596else
17597  link_itm="-litm $LIBS"
17598fi
17599
17600
17601 if test "$ARCH" = arm; then
17602  ARCH_ARM_TRUE=
17603  ARCH_ARM_FALSE='#'
17604else
17605  ARCH_ARM_TRUE='#'
17606  ARCH_ARM_FALSE=
17607fi
17608
17609 if test "$ARCH" = x86; then
17610  ARCH_X86_TRUE=
17611  ARCH_X86_FALSE='#'
17612else
17613  ARCH_X86_TRUE='#'
17614  ARCH_X86_FALSE=
17615fi
17616
17617 if test "$libitm_cv_as_avx" = yes; then
17618  ARCH_X86_AVX_TRUE=
17619  ARCH_X86_AVX_FALSE='#'
17620else
17621  ARCH_X86_AVX_TRUE='#'
17622  ARCH_X86_AVX_FALSE=
17623fi
17624
17625 if test $enable_linux_futex = yes; then
17626  ARCH_FUTEX_TRUE=
17627  ARCH_FUTEX_FALSE='#'
17628else
17629  ARCH_FUTEX_TRUE='#'
17630  ARCH_FUTEX_FALSE=
17631fi
17632
17633
17634ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17635
17636cat >confcache <<\_ACEOF
17637# This file is a shell script that caches the results of configure
17638# tests run on this system so they can be shared between configure
17639# scripts and configure runs, see configure's option --config-cache.
17640# It is not useful on other systems.  If it contains results you don't
17641# want to keep, you may remove or edit it.
17642#
17643# config.status only pays attention to the cache file if you give it
17644# the --recheck option to rerun configure.
17645#
17646# `ac_cv_env_foo' variables (set or unset) will be overridden when
17647# loading this file, other *unset* `ac_cv_foo' will be assigned the
17648# following values.
17649
17650_ACEOF
17651
17652# The following way of writing the cache mishandles newlines in values,
17653# but we know of no workaround that is simple, portable, and efficient.
17654# So, we kill variables containing newlines.
17655# Ultrix sh set writes to stderr and can't be redirected directly,
17656# and sets the high bit in the cache file unless we assign to the vars.
17657(
17658  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17659    eval ac_val=\$$ac_var
17660    case $ac_val in #(
17661    *${as_nl}*)
17662      case $ac_var in #(
17663      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17664$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17665      esac
17666      case $ac_var in #(
17667      _ | IFS | as_nl) ;; #(
17668      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17669      *) { eval $ac_var=; unset $ac_var;} ;;
17670      esac ;;
17671    esac
17672  done
17673
17674  (set) 2>&1 |
17675    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17676    *${as_nl}ac_space=\ *)
17677      # `set' does not quote correctly, so add quotes: double-quote
17678      # substitution turns \\\\ into \\, and sed turns \\ into \.
17679      sed -n \
17680	"s/'/'\\\\''/g;
17681	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17682      ;; #(
17683    *)
17684      # `set' quotes correctly as required by POSIX, so do not add quotes.
17685      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17686      ;;
17687    esac |
17688    sort
17689) |
17690  sed '
17691     /^ac_cv_env_/b end
17692     t clear
17693     :clear
17694     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17695     t end
17696     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17697     :end' >>confcache
17698if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17699  if test -w "$cache_file"; then
17700    test "x$cache_file" != "x/dev/null" &&
17701      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17702$as_echo "$as_me: updating cache $cache_file" >&6;}
17703    cat confcache >$cache_file
17704  else
17705    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17706$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17707  fi
17708fi
17709rm -f confcache
17710
17711test "x$prefix" = xNONE && prefix=$ac_default_prefix
17712# Let make expand exec_prefix.
17713test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17714
17715DEFS=-DHAVE_CONFIG_H
17716
17717ac_libobjs=
17718ac_ltlibobjs=
17719for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17720  # 1. Remove the extension, and $U if already installed.
17721  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17722  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17723  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17724  #    will be set to the directory where LIBOBJS objects are built.
17725  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17726  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17727done
17728LIBOBJS=$ac_libobjs
17729
17730LTLIBOBJS=$ac_ltlibobjs
17731
17732
17733if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17734  as_fn_error "conditional \"GENINSRC\" was never defined.
17735Usually this means the macro was only invoked conditionally." "$LINENO" 5
17736fi
17737 if test -n "$EXEEXT"; then
17738  am__EXEEXT_TRUE=
17739  am__EXEEXT_FALSE='#'
17740else
17741  am__EXEEXT_TRUE='#'
17742  am__EXEEXT_FALSE=
17743fi
17744
17745if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17746  as_fn_error "conditional \"AMDEP\" was never defined.
17747Usually this means the macro was only invoked conditionally." "$LINENO" 5
17748fi
17749if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17750  as_fn_error "conditional \"am__fastdepCC\" was never defined.
17751Usually this means the macro was only invoked conditionally." "$LINENO" 5
17752fi
17753if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17754  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17755Usually this means the macro was only invoked conditionally." "$LINENO" 5
17756fi
17757if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17758  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17759Usually this means the macro was only invoked conditionally." "$LINENO" 5
17760fi
17761if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17762  as_fn_error "conditional \"BUILD_INFO\" was never defined.
17763Usually this means the macro was only invoked conditionally." "$LINENO" 5
17764fi
17765if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17766  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17767Usually this means the macro was only invoked conditionally." "$LINENO" 5
17768fi
17769
17770if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
17771  as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
17772Usually this means the macro was only invoked conditionally." "$LINENO" 5
17773fi
17774if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17775  as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17776Usually this means the macro was only invoked conditionally." "$LINENO" 5
17777fi
17778if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17779  as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17780Usually this means the macro was only invoked conditionally." "$LINENO" 5
17781fi
17782if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17783  as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17784Usually this means the macro was only invoked conditionally." "$LINENO" 5
17785fi
17786if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17787  as_fn_error "conditional \"ARCH_ARM\" was never defined.
17788Usually this means the macro was only invoked conditionally." "$LINENO" 5
17789fi
17790if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17791  as_fn_error "conditional \"ARCH_X86\" was never defined.
17792Usually this means the macro was only invoked conditionally." "$LINENO" 5
17793fi
17794if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17795  as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17796Usually this means the macro was only invoked conditionally." "$LINENO" 5
17797fi
17798if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17799  as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17800Usually this means the macro was only invoked conditionally." "$LINENO" 5
17801fi
17802
17803: ${CONFIG_STATUS=./config.status}
17804ac_write_fail=0
17805ac_clean_files_save=$ac_clean_files
17806ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17807{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17808$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17809as_write_fail=0
17810cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17811#! $SHELL
17812# Generated by $as_me.
17813# Run this file to recreate the current configuration.
17814# Compiler output produced by configure, useful for debugging
17815# configure, is in config.log if it exists.
17816
17817debug=false
17818ac_cs_recheck=false
17819ac_cs_silent=false
17820
17821SHELL=\${CONFIG_SHELL-$SHELL}
17822export SHELL
17823_ASEOF
17824cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17825## -------------------- ##
17826## M4sh Initialization. ##
17827## -------------------- ##
17828
17829# Be more Bourne compatible
17830DUALCASE=1; export DUALCASE # for MKS sh
17831if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17832  emulate sh
17833  NULLCMD=:
17834  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17835  # is contrary to our usage.  Disable this feature.
17836  alias -g '${1+"$@"}'='"$@"'
17837  setopt NO_GLOB_SUBST
17838else
17839  case `(set -o) 2>/dev/null` in #(
17840  *posix*) :
17841    set -o posix ;; #(
17842  *) :
17843     ;;
17844esac
17845fi
17846
17847
17848as_nl='
17849'
17850export as_nl
17851# Printing a long string crashes Solaris 7 /usr/bin/printf.
17852as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17853as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17854as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17855# Prefer a ksh shell builtin over an external printf program on Solaris,
17856# but without wasting forks for bash or zsh.
17857if test -z "$BASH_VERSION$ZSH_VERSION" \
17858    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17859  as_echo='print -r --'
17860  as_echo_n='print -rn --'
17861elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17862  as_echo='printf %s\n'
17863  as_echo_n='printf %s'
17864else
17865  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17866    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17867    as_echo_n='/usr/ucb/echo -n'
17868  else
17869    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17870    as_echo_n_body='eval
17871      arg=$1;
17872      case $arg in #(
17873      *"$as_nl"*)
17874	expr "X$arg" : "X\\(.*\\)$as_nl";
17875	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17876      esac;
17877      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17878    '
17879    export as_echo_n_body
17880    as_echo_n='sh -c $as_echo_n_body as_echo'
17881  fi
17882  export as_echo_body
17883  as_echo='sh -c $as_echo_body as_echo'
17884fi
17885
17886# The user is always right.
17887if test "${PATH_SEPARATOR+set}" != set; then
17888  PATH_SEPARATOR=:
17889  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17890    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17891      PATH_SEPARATOR=';'
17892  }
17893fi
17894
17895
17896# IFS
17897# We need space, tab and new line, in precisely that order.  Quoting is
17898# there to prevent editors from complaining about space-tab.
17899# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17900# splitting by setting IFS to empty value.)
17901IFS=" ""	$as_nl"
17902
17903# Find who we are.  Look in the path if we contain no directory separator.
17904case $0 in #((
17905  *[\\/]* ) as_myself=$0 ;;
17906  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17907for as_dir in $PATH
17908do
17909  IFS=$as_save_IFS
17910  test -z "$as_dir" && as_dir=.
17911    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17912  done
17913IFS=$as_save_IFS
17914
17915     ;;
17916esac
17917# We did not find ourselves, most probably we were run as `sh COMMAND'
17918# in which case we are not to be found in the path.
17919if test "x$as_myself" = x; then
17920  as_myself=$0
17921fi
17922if test ! -f "$as_myself"; then
17923  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17924  exit 1
17925fi
17926
17927# Unset variables that we do not need and which cause bugs (e.g. in
17928# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17929# suppresses any "Segmentation fault" message there.  '((' could
17930# trigger a bug in pdksh 5.2.14.
17931for as_var in BASH_ENV ENV MAIL MAILPATH
17932do eval test x\${$as_var+set} = xset \
17933  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17934done
17935PS1='$ '
17936PS2='> '
17937PS4='+ '
17938
17939# NLS nuisances.
17940LC_ALL=C
17941export LC_ALL
17942LANGUAGE=C
17943export LANGUAGE
17944
17945# CDPATH.
17946(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17947
17948
17949# as_fn_error ERROR [LINENO LOG_FD]
17950# ---------------------------------
17951# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17952# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17953# script with status $?, using 1 if that was 0.
17954as_fn_error ()
17955{
17956  as_status=$?; test $as_status -eq 0 && as_status=1
17957  if test "$3"; then
17958    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17959    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17960  fi
17961  $as_echo "$as_me: error: $1" >&2
17962  as_fn_exit $as_status
17963} # as_fn_error
17964
17965
17966# as_fn_set_status STATUS
17967# -----------------------
17968# Set $? to STATUS, without forking.
17969as_fn_set_status ()
17970{
17971  return $1
17972} # as_fn_set_status
17973
17974# as_fn_exit STATUS
17975# -----------------
17976# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17977as_fn_exit ()
17978{
17979  set +e
17980  as_fn_set_status $1
17981  exit $1
17982} # as_fn_exit
17983
17984# as_fn_unset VAR
17985# ---------------
17986# Portably unset VAR.
17987as_fn_unset ()
17988{
17989  { eval $1=; unset $1;}
17990}
17991as_unset=as_fn_unset
17992# as_fn_append VAR VALUE
17993# ----------------------
17994# Append the text in VALUE to the end of the definition contained in VAR. Take
17995# advantage of any shell optimizations that allow amortized linear growth over
17996# repeated appends, instead of the typical quadratic growth present in naive
17997# implementations.
17998if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17999  eval 'as_fn_append ()
18000  {
18001    eval $1+=\$2
18002  }'
18003else
18004  as_fn_append ()
18005  {
18006    eval $1=\$$1\$2
18007  }
18008fi # as_fn_append
18009
18010# as_fn_arith ARG...
18011# ------------------
18012# Perform arithmetic evaluation on the ARGs, and store the result in the
18013# global $as_val. Take advantage of shells that can avoid forks. The arguments
18014# must be portable across $(()) and expr.
18015if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18016  eval 'as_fn_arith ()
18017  {
18018    as_val=$(( $* ))
18019  }'
18020else
18021  as_fn_arith ()
18022  {
18023    as_val=`expr "$@" || test $? -eq 1`
18024  }
18025fi # as_fn_arith
18026
18027
18028if expr a : '\(a\)' >/dev/null 2>&1 &&
18029   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18030  as_expr=expr
18031else
18032  as_expr=false
18033fi
18034
18035if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18036  as_basename=basename
18037else
18038  as_basename=false
18039fi
18040
18041if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18042  as_dirname=dirname
18043else
18044  as_dirname=false
18045fi
18046
18047as_me=`$as_basename -- "$0" ||
18048$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18049	 X"$0" : 'X\(//\)$' \| \
18050	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18051$as_echo X/"$0" |
18052    sed '/^.*\/\([^/][^/]*\)\/*$/{
18053	    s//\1/
18054	    q
18055	  }
18056	  /^X\/\(\/\/\)$/{
18057	    s//\1/
18058	    q
18059	  }
18060	  /^X\/\(\/\).*/{
18061	    s//\1/
18062	    q
18063	  }
18064	  s/.*/./; q'`
18065
18066# Avoid depending upon Character Ranges.
18067as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18068as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18069as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18070as_cr_digits='0123456789'
18071as_cr_alnum=$as_cr_Letters$as_cr_digits
18072
18073ECHO_C= ECHO_N= ECHO_T=
18074case `echo -n x` in #(((((
18075-n*)
18076  case `echo 'xy\c'` in
18077  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18078  xy)  ECHO_C='\c';;
18079  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18080       ECHO_T='	';;
18081  esac;;
18082*)
18083  ECHO_N='-n';;
18084esac
18085
18086rm -f conf$$ conf$$.exe conf$$.file
18087if test -d conf$$.dir; then
18088  rm -f conf$$.dir/conf$$.file
18089else
18090  rm -f conf$$.dir
18091  mkdir conf$$.dir 2>/dev/null
18092fi
18093if (echo >conf$$.file) 2>/dev/null; then
18094  if ln -s conf$$.file conf$$ 2>/dev/null; then
18095    as_ln_s='ln -s'
18096    # ... but there are two gotchas:
18097    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18098    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18099    # In both cases, we have to default to `cp -p'.
18100    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18101      as_ln_s='cp -p'
18102  elif ln conf$$.file conf$$ 2>/dev/null; then
18103    as_ln_s=ln
18104  else
18105    as_ln_s='cp -p'
18106  fi
18107else
18108  as_ln_s='cp -p'
18109fi
18110rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18111rmdir conf$$.dir 2>/dev/null
18112
18113
18114# as_fn_mkdir_p
18115# -------------
18116# Create "$as_dir" as a directory, including parents if necessary.
18117as_fn_mkdir_p ()
18118{
18119
18120  case $as_dir in #(
18121  -*) as_dir=./$as_dir;;
18122  esac
18123  test -d "$as_dir" || eval $as_mkdir_p || {
18124    as_dirs=
18125    while :; do
18126      case $as_dir in #(
18127      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18128      *) as_qdir=$as_dir;;
18129      esac
18130      as_dirs="'$as_qdir' $as_dirs"
18131      as_dir=`$as_dirname -- "$as_dir" ||
18132$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18133	 X"$as_dir" : 'X\(//\)[^/]' \| \
18134	 X"$as_dir" : 'X\(//\)$' \| \
18135	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18136$as_echo X"$as_dir" |
18137    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18138	    s//\1/
18139	    q
18140	  }
18141	  /^X\(\/\/\)[^/].*/{
18142	    s//\1/
18143	    q
18144	  }
18145	  /^X\(\/\/\)$/{
18146	    s//\1/
18147	    q
18148	  }
18149	  /^X\(\/\).*/{
18150	    s//\1/
18151	    q
18152	  }
18153	  s/.*/./; q'`
18154      test -d "$as_dir" && break
18155    done
18156    test -z "$as_dirs" || eval "mkdir $as_dirs"
18157  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18158
18159
18160} # as_fn_mkdir_p
18161if mkdir -p . 2>/dev/null; then
18162  as_mkdir_p='mkdir -p "$as_dir"'
18163else
18164  test -d ./-p && rmdir ./-p
18165  as_mkdir_p=false
18166fi
18167
18168if test -x / >/dev/null 2>&1; then
18169  as_test_x='test -x'
18170else
18171  if ls -dL / >/dev/null 2>&1; then
18172    as_ls_L_option=L
18173  else
18174    as_ls_L_option=
18175  fi
18176  as_test_x='
18177    eval sh -c '\''
18178      if test -d "$1"; then
18179	test -d "$1/.";
18180      else
18181	case $1 in #(
18182	-*)set "./$1";;
18183	esac;
18184	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18185	???[sx]*):;;*)false;;esac;fi
18186    '\'' sh
18187  '
18188fi
18189as_executable_p=$as_test_x
18190
18191# Sed expression to map a string onto a valid CPP name.
18192as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18193
18194# Sed expression to map a string onto a valid variable name.
18195as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18196
18197
18198exec 6>&1
18199## ----------------------------------- ##
18200## Main body of $CONFIG_STATUS script. ##
18201## ----------------------------------- ##
18202_ASEOF
18203test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18204
18205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18206# Save the log message, to keep $0 and so on meaningful, and to
18207# report actual input values of CONFIG_FILES etc. instead of their
18208# values after options handling.
18209ac_log="
18210This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18211generated by GNU Autoconf 2.64.  Invocation command line was
18212
18213  CONFIG_FILES    = $CONFIG_FILES
18214  CONFIG_HEADERS  = $CONFIG_HEADERS
18215  CONFIG_LINKS    = $CONFIG_LINKS
18216  CONFIG_COMMANDS = $CONFIG_COMMANDS
18217  $ $0 $@
18218
18219on `(hostname || uname -n) 2>/dev/null | sed 1q`
18220"
18221
18222_ACEOF
18223
18224case $ac_config_files in *"
18225"*) set x $ac_config_files; shift; ac_config_files=$*;;
18226esac
18227
18228case $ac_config_headers in *"
18229"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18230esac
18231
18232
18233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18234# Files that config.status was made for.
18235config_files="$ac_config_files"
18236config_headers="$ac_config_headers"
18237config_commands="$ac_config_commands"
18238
18239_ACEOF
18240
18241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18242ac_cs_usage="\
18243\`$as_me' instantiates files and other configuration actions
18244from templates according to the current configuration.  Unless the files
18245and actions are specified as TAGs, all are instantiated by default.
18246
18247Usage: $0 [OPTION]... [TAG]...
18248
18249  -h, --help       print this help, then exit
18250  -V, --version    print version number and configuration settings, then exit
18251  -q, --quiet, --silent
18252                   do not print progress messages
18253  -d, --debug      don't remove temporary files
18254      --recheck    update $as_me by reconfiguring in the same conditions
18255      --file=FILE[:TEMPLATE]
18256                   instantiate the configuration file FILE
18257      --header=FILE[:TEMPLATE]
18258                   instantiate the configuration header FILE
18259
18260Configuration files:
18261$config_files
18262
18263Configuration headers:
18264$config_headers
18265
18266Configuration commands:
18267$config_commands
18268
18269Report bugs to the package provider.
18270GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18271General help using GNU software: <http://www.gnu.org/gethelp/>."
18272
18273_ACEOF
18274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18275ac_cs_version="\\
18276GNU TM Runtime Library config.status 1.0
18277configured by $0, generated by GNU Autoconf 2.64,
18278  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18279
18280Copyright (C) 2009 Free Software Foundation, Inc.
18281This config.status script is free software; the Free Software Foundation
18282gives unlimited permission to copy, distribute and modify it."
18283
18284ac_pwd='$ac_pwd'
18285srcdir='$srcdir'
18286INSTALL='$INSTALL'
18287MKDIR_P='$MKDIR_P'
18288AWK='$AWK'
18289test -n "\$AWK" || AWK=awk
18290_ACEOF
18291
18292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18293# The default lists apply if the user does not specify any file.
18294ac_need_defaults=:
18295while test $# != 0
18296do
18297  case $1 in
18298  --*=*)
18299    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18300    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18301    ac_shift=:
18302    ;;
18303  *)
18304    ac_option=$1
18305    ac_optarg=$2
18306    ac_shift=shift
18307    ;;
18308  esac
18309
18310  case $ac_option in
18311  # Handling of the options.
18312  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18313    ac_cs_recheck=: ;;
18314  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18315    $as_echo "$ac_cs_version"; exit ;;
18316  --debug | --debu | --deb | --de | --d | -d )
18317    debug=: ;;
18318  --file | --fil | --fi | --f )
18319    $ac_shift
18320    case $ac_optarg in
18321    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18322    esac
18323    as_fn_append CONFIG_FILES " '$ac_optarg'"
18324    ac_need_defaults=false;;
18325  --header | --heade | --head | --hea )
18326    $ac_shift
18327    case $ac_optarg in
18328    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18329    esac
18330    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18331    ac_need_defaults=false;;
18332  --he | --h)
18333    # Conflict between --help and --header
18334    as_fn_error "ambiguous option: \`$1'
18335Try \`$0 --help' for more information.";;
18336  --help | --hel | -h )
18337    $as_echo "$ac_cs_usage"; exit ;;
18338  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18339  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18340    ac_cs_silent=: ;;
18341
18342  # This is an error.
18343  -*) as_fn_error "unrecognized option: \`$1'
18344Try \`$0 --help' for more information." ;;
18345
18346  *) as_fn_append ac_config_targets " $1"
18347     ac_need_defaults=false ;;
18348
18349  esac
18350  shift
18351done
18352
18353ac_configure_extra_args=
18354
18355if $ac_cs_silent; then
18356  exec 6>/dev/null
18357  ac_configure_extra_args="$ac_configure_extra_args --silent"
18358fi
18359
18360_ACEOF
18361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18362if \$ac_cs_recheck; then
18363  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18364  shift
18365  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18366  CONFIG_SHELL='$SHELL'
18367  export CONFIG_SHELL
18368  exec "\$@"
18369fi
18370
18371_ACEOF
18372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18373exec 5>>config.log
18374{
18375  echo
18376  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18377## Running $as_me. ##
18378_ASBOX
18379  $as_echo "$ac_log"
18380} >&5
18381
18382_ACEOF
18383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18384#
18385# INIT-COMMANDS
18386#
18387
18388srcdir="$srcdir"
18389host="$host"
18390target="$target"
18391with_multisubdir="$with_multisubdir"
18392with_multisrctop="$with_multisrctop"
18393with_target_subdir="$with_target_subdir"
18394ac_configure_args="${multilib_arg} ${ac_configure_args}"
18395multi_basedir="$multi_basedir"
18396CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18397CC="$CC"
18398CXX="$CXX"
18399GFORTRAN="$GFORTRAN"
18400GCJ="$GCJ"
18401AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18402
18403
18404# The HP-UX ksh and POSIX shell print the target directory to stdout
18405# if CDPATH is set.
18406(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18407
18408sed_quote_subst='$sed_quote_subst'
18409double_quote_subst='$double_quote_subst'
18410delay_variable_subst='$delay_variable_subst'
18411macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18412macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18413enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18414enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18415pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18416enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18417SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18418ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18419host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18420host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18421host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18422build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18423build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18424build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18425SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18426Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18427GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18428EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18429FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18430LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18431NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18432LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18433max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18434ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18435exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18436lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18437lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18438lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18439reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18440reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18441OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18442deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18443file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18444AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18445AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18446STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18447RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18448old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18449old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18450old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18451lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18452CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18453CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18454compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18455GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18456lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18457lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18458lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18459lt_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"`'
18460objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18461MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18462lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18463lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18464lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18465lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18466lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18467need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18468DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18469NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18470LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18471OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18472OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18473libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18474shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18475extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18476archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18477enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18478export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18479whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18480compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18481old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18482old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18483archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18484archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18485module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18486module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18487with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18488allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18489no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18490hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18491hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18492hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18493hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18494hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18495hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18496hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18497hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18498inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18499link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18500fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18501always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18502export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18503exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18504include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18505prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18506file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18507variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18508need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18509need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18510version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18511runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18512shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18513shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18514libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18515library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18516soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18517install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18518postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18519postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18520finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18521finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18522hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18523sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18524sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18525hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18526enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18527enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18528enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18529old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18530striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18531compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18532predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18533postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18534predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18535postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18536compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18537LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18538reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18539reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18540old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18541compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18542GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18543lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18544lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18545lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18546lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18547lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18548archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18549enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18550export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18551whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18552compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18553old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18554old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18555archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18556archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18557module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18558module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18559with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18560allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18561no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18562hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18563hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18564hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18565hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18566hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18567hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18568hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18569hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18570inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18571link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18572fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18573always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18574export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18575exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18576include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18577prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18578file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18579hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18580compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18581predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18582postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18583predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18584postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18585compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18586
18587LTCC='$LTCC'
18588LTCFLAGS='$LTCFLAGS'
18589compiler='$compiler_DEFAULT'
18590
18591# A function that is used when there is no print builtin or printf.
18592func_fallback_echo ()
18593{
18594  eval 'cat <<_LTECHO_EOF
18595\$1
18596_LTECHO_EOF'
18597}
18598
18599# Quote evaled strings.
18600for var in SHELL \
18601ECHO \
18602SED \
18603GREP \
18604EGREP \
18605FGREP \
18606LD \
18607NM \
18608LN_S \
18609lt_SP2NL \
18610lt_NL2SP \
18611reload_flag \
18612OBJDUMP \
18613deplibs_check_method \
18614file_magic_cmd \
18615AR \
18616AR_FLAGS \
18617STRIP \
18618RANLIB \
18619CC \
18620CFLAGS \
18621compiler \
18622lt_cv_sys_global_symbol_pipe \
18623lt_cv_sys_global_symbol_to_cdecl \
18624lt_cv_sys_global_symbol_to_c_name_address \
18625lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18626lt_prog_compiler_no_builtin_flag \
18627lt_prog_compiler_wl \
18628lt_prog_compiler_pic \
18629lt_prog_compiler_static \
18630lt_cv_prog_compiler_c_o \
18631need_locks \
18632DSYMUTIL \
18633NMEDIT \
18634LIPO \
18635OTOOL \
18636OTOOL64 \
18637shrext_cmds \
18638export_dynamic_flag_spec \
18639whole_archive_flag_spec \
18640compiler_needs_object \
18641with_gnu_ld \
18642allow_undefined_flag \
18643no_undefined_flag \
18644hardcode_libdir_flag_spec \
18645hardcode_libdir_flag_spec_ld \
18646hardcode_libdir_separator \
18647fix_srcfile_path \
18648exclude_expsyms \
18649include_expsyms \
18650file_list_spec \
18651variables_saved_for_relink \
18652libname_spec \
18653library_names_spec \
18654soname_spec \
18655install_override_mode \
18656finish_eval \
18657old_striplib \
18658striplib \
18659compiler_lib_search_dirs \
18660predep_objects \
18661postdep_objects \
18662predeps \
18663postdeps \
18664compiler_lib_search_path \
18665LD_CXX \
18666reload_flag_CXX \
18667compiler_CXX \
18668lt_prog_compiler_no_builtin_flag_CXX \
18669lt_prog_compiler_wl_CXX \
18670lt_prog_compiler_pic_CXX \
18671lt_prog_compiler_static_CXX \
18672lt_cv_prog_compiler_c_o_CXX \
18673export_dynamic_flag_spec_CXX \
18674whole_archive_flag_spec_CXX \
18675compiler_needs_object_CXX \
18676with_gnu_ld_CXX \
18677allow_undefined_flag_CXX \
18678no_undefined_flag_CXX \
18679hardcode_libdir_flag_spec_CXX \
18680hardcode_libdir_flag_spec_ld_CXX \
18681hardcode_libdir_separator_CXX \
18682fix_srcfile_path_CXX \
18683exclude_expsyms_CXX \
18684include_expsyms_CXX \
18685file_list_spec_CXX \
18686compiler_lib_search_dirs_CXX \
18687predep_objects_CXX \
18688postdep_objects_CXX \
18689predeps_CXX \
18690postdeps_CXX \
18691compiler_lib_search_path_CXX; do
18692    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18693    *[\\\\\\\`\\"\\\$]*)
18694      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18695      ;;
18696    *)
18697      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18698      ;;
18699    esac
18700done
18701
18702# Double-quote double-evaled strings.
18703for var in reload_cmds \
18704old_postinstall_cmds \
18705old_postuninstall_cmds \
18706old_archive_cmds \
18707extract_expsyms_cmds \
18708old_archive_from_new_cmds \
18709old_archive_from_expsyms_cmds \
18710archive_cmds \
18711archive_expsym_cmds \
18712module_cmds \
18713module_expsym_cmds \
18714export_symbols_cmds \
18715prelink_cmds \
18716postinstall_cmds \
18717postuninstall_cmds \
18718finish_cmds \
18719sys_lib_search_path_spec \
18720sys_lib_dlsearch_path_spec \
18721reload_cmds_CXX \
18722old_archive_cmds_CXX \
18723old_archive_from_new_cmds_CXX \
18724old_archive_from_expsyms_cmds_CXX \
18725archive_cmds_CXX \
18726archive_expsym_cmds_CXX \
18727module_cmds_CXX \
18728module_expsym_cmds_CXX \
18729export_symbols_cmds_CXX \
18730prelink_cmds_CXX; do
18731    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18732    *[\\\\\\\`\\"\\\$]*)
18733      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18734      ;;
18735    *)
18736      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18737      ;;
18738    esac
18739done
18740
18741ac_aux_dir='$ac_aux_dir'
18742xsi_shell='$xsi_shell'
18743lt_shell_append='$lt_shell_append'
18744
18745# See if we are running on zsh, and set the options which allow our
18746# commands through without removal of \ escapes INIT.
18747if test -n "\${ZSH_VERSION+set}" ; then
18748   setopt NO_GLOB_SUBST
18749fi
18750
18751
18752    PACKAGE='$PACKAGE'
18753    VERSION='$VERSION'
18754    TIMESTAMP='$TIMESTAMP'
18755    RM='$RM'
18756    ofile='$ofile'
18757
18758
18759
18760
18761
18762
18763GCC="$GCC"
18764CC="$CC"
18765acx_cv_header_stdint="$acx_cv_header_stdint"
18766acx_cv_type_int8_t="$acx_cv_type_int8_t"
18767acx_cv_type_int16_t="$acx_cv_type_int16_t"
18768acx_cv_type_int32_t="$acx_cv_type_int32_t"
18769acx_cv_type_int64_t="$acx_cv_type_int64_t"
18770acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18771ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18772ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18773ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18774ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18775ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18776ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18777ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18778ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18779
18780
18781_ACEOF
18782
18783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18784
18785# Handling of arguments.
18786for ac_config_target in $ac_config_targets
18787do
18788  case $ac_config_target in
18789    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18790    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18791    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18792    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18793    "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18794    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18795    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18796    "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18797
18798  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18799  esac
18800done
18801
18802
18803# If the user did not use the arguments to specify the items to instantiate,
18804# then the envvar interface is used.  Set only those that are not.
18805# We use the long form for the default assignment because of an extremely
18806# bizarre bug on SunOS 4.1.3.
18807if $ac_need_defaults; then
18808  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18809  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18810  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18811fi
18812
18813# Have a temporary directory for convenience.  Make it in the build tree
18814# simply because there is no reason against having it here, and in addition,
18815# creating and moving files from /tmp can sometimes cause problems.
18816# Hook for its removal unless debugging.
18817# Note that there is a small window in which the directory will not be cleaned:
18818# after its creation but before its name has been assigned to `$tmp'.
18819$debug ||
18820{
18821  tmp=
18822  trap 'exit_status=$?
18823  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18824' 0
18825  trap 'as_fn_exit 1' 1 2 13 15
18826}
18827# Create a (secure) tmp directory for tmp files.
18828
18829{
18830  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18831  test -n "$tmp" && test -d "$tmp"
18832}  ||
18833{
18834  tmp=./conf$$-$RANDOM
18835  (umask 077 && mkdir "$tmp")
18836} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18837
18838# Set up the scripts for CONFIG_FILES section.
18839# No need to generate them if there are no CONFIG_FILES.
18840# This happens for instance with `./config.status config.h'.
18841if test -n "$CONFIG_FILES"; then
18842
18843
18844ac_cr=`echo X | tr X '\015'`
18845# On cygwin, bash can eat \r inside `` if the user requested igncr.
18846# But we know of no other shell where ac_cr would be empty at this
18847# point, so we can use a bashism as a fallback.
18848if test "x$ac_cr" = x; then
18849  eval ac_cr=\$\'\\r\'
18850fi
18851ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18852if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18853  ac_cs_awk_cr='\r'
18854else
18855  ac_cs_awk_cr=$ac_cr
18856fi
18857
18858echo 'BEGIN {' >"$tmp/subs1.awk" &&
18859_ACEOF
18860
18861
18862{
18863  echo "cat >conf$$subs.awk <<_ACEOF" &&
18864  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18865  echo "_ACEOF"
18866} >conf$$subs.sh ||
18867  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18868ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18869ac_delim='%!_!# '
18870for ac_last_try in false false false false false :; do
18871  . ./conf$$subs.sh ||
18872    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18873
18874  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18875  if test $ac_delim_n = $ac_delim_num; then
18876    break
18877  elif $ac_last_try; then
18878    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18879  else
18880    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18881  fi
18882done
18883rm -f conf$$subs.sh
18884
18885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18886cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18887_ACEOF
18888sed -n '
18889h
18890s/^/S["/; s/!.*/"]=/
18891p
18892g
18893s/^[^!]*!//
18894:repl
18895t repl
18896s/'"$ac_delim"'$//
18897t delim
18898:nl
18899h
18900s/\(.\{148\}\).*/\1/
18901t more1
18902s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18903p
18904n
18905b repl
18906:more1
18907s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18908p
18909g
18910s/.\{148\}//
18911t nl
18912:delim
18913h
18914s/\(.\{148\}\).*/\1/
18915t more2
18916s/["\\]/\\&/g; s/^/"/; s/$/"/
18917p
18918b
18919:more2
18920s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18921p
18922g
18923s/.\{148\}//
18924t delim
18925' <conf$$subs.awk | sed '
18926/^[^""]/{
18927  N
18928  s/\n//
18929}
18930' >>$CONFIG_STATUS || ac_write_fail=1
18931rm -f conf$$subs.awk
18932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18933_ACAWK
18934cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18935  for (key in S) S_is_set[key] = 1
18936  FS = ""
18937
18938}
18939{
18940  line = $ 0
18941  nfields = split(line, field, "@")
18942  substed = 0
18943  len = length(field[1])
18944  for (i = 2; i < nfields; i++) {
18945    key = field[i]
18946    keylen = length(key)
18947    if (S_is_set[key]) {
18948      value = S[key]
18949      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18950      len += length(value) + length(field[++i])
18951      substed = 1
18952    } else
18953      len += 1 + keylen
18954  }
18955
18956  print line
18957}
18958
18959_ACAWK
18960_ACEOF
18961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18962if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18963  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18964else
18965  cat
18966fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18967  || as_fn_error "could not setup config files machinery" "$LINENO" 5
18968_ACEOF
18969
18970# VPATH may cause trouble with some makes, so we remove $(srcdir),
18971# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18972# trailing colons and then remove the whole line if VPATH becomes empty
18973# (actually we leave an empty line to preserve line numbers).
18974if test "x$srcdir" = x.; then
18975  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18976s/:*\$(srcdir):*/:/
18977s/:*\${srcdir}:*/:/
18978s/:*@srcdir@:*/:/
18979s/^\([^=]*=[	 ]*\):*/\1/
18980s/:*$//
18981s/^[^=]*=[	 ]*$//
18982}'
18983fi
18984
18985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18986fi # test -n "$CONFIG_FILES"
18987
18988# Set up the scripts for CONFIG_HEADERS section.
18989# No need to generate them if there are no CONFIG_HEADERS.
18990# This happens for instance with `./config.status Makefile'.
18991if test -n "$CONFIG_HEADERS"; then
18992cat >"$tmp/defines.awk" <<\_ACAWK ||
18993BEGIN {
18994_ACEOF
18995
18996# Transform confdefs.h into an awk script `defines.awk', embedded as
18997# here-document in config.status, that substitutes the proper values into
18998# config.h.in to produce config.h.
18999
19000# Create a delimiter string that does not exist in confdefs.h, to ease
19001# handling of long lines.
19002ac_delim='%!_!# '
19003for ac_last_try in false false :; do
19004  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19005  if test -z "$ac_t"; then
19006    break
19007  elif $ac_last_try; then
19008    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19009  else
19010    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19011  fi
19012done
19013
19014# For the awk script, D is an array of macro values keyed by name,
19015# likewise P contains macro parameters if any.  Preserve backslash
19016# newline sequences.
19017
19018ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19019sed -n '
19020s/.\{148\}/&'"$ac_delim"'/g
19021t rset
19022:rset
19023s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19024t def
19025d
19026:def
19027s/\\$//
19028t bsnl
19029s/["\\]/\\&/g
19030s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19031D["\1"]=" \3"/p
19032s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19033d
19034:bsnl
19035s/["\\]/\\&/g
19036s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19037D["\1"]=" \3\\\\\\n"\\/p
19038t cont
19039s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19040t cont
19041d
19042:cont
19043n
19044s/.\{148\}/&'"$ac_delim"'/g
19045t clear
19046:clear
19047s/\\$//
19048t bsnlc
19049s/["\\]/\\&/g; s/^/"/; s/$/"/p
19050d
19051:bsnlc
19052s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19053b cont
19054' <confdefs.h | sed '
19055s/'"$ac_delim"'/"\\\
19056"/g' >>$CONFIG_STATUS || ac_write_fail=1
19057
19058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19059  for (key in D) D_is_set[key] = 1
19060  FS = ""
19061}
19062/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19063  line = \$ 0
19064  split(line, arg, " ")
19065  if (arg[1] == "#") {
19066    defundef = arg[2]
19067    mac1 = arg[3]
19068  } else {
19069    defundef = substr(arg[1], 2)
19070    mac1 = arg[2]
19071  }
19072  split(mac1, mac2, "(") #)
19073  macro = mac2[1]
19074  prefix = substr(line, 1, index(line, defundef) - 1)
19075  if (D_is_set[macro]) {
19076    # Preserve the white space surrounding the "#".
19077    print prefix "define", macro P[macro] D[macro]
19078    next
19079  } else {
19080    # Replace #undef with comments.  This is necessary, for example,
19081    # in the case of _POSIX_SOURCE, which is predefined and required
19082    # on some systems where configure will not decide to define it.
19083    if (defundef == "undef") {
19084      print "/*", prefix defundef, macro, "*/"
19085      next
19086    }
19087  }
19088}
19089{ print }
19090_ACAWK
19091_ACEOF
19092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19093  as_fn_error "could not setup config headers machinery" "$LINENO" 5
19094fi # test -n "$CONFIG_HEADERS"
19095
19096
19097eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19098shift
19099for ac_tag
19100do
19101  case $ac_tag in
19102  :[FHLC]) ac_mode=$ac_tag; continue;;
19103  esac
19104  case $ac_mode$ac_tag in
19105  :[FHL]*:*);;
19106  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19107  :[FH]-) ac_tag=-:-;;
19108  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19109  esac
19110  ac_save_IFS=$IFS
19111  IFS=:
19112  set x $ac_tag
19113  IFS=$ac_save_IFS
19114  shift
19115  ac_file=$1
19116  shift
19117
19118  case $ac_mode in
19119  :L) ac_source=$1;;
19120  :[FH])
19121    ac_file_inputs=
19122    for ac_f
19123    do
19124      case $ac_f in
19125      -) ac_f="$tmp/stdin";;
19126      *) # Look for the file first in the build tree, then in the source tree
19127	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19128	 # because $ac_f cannot contain `:'.
19129	 test -f "$ac_f" ||
19130	   case $ac_f in
19131	   [\\/$]*) false;;
19132	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19133	   esac ||
19134	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19135      esac
19136      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19137      as_fn_append ac_file_inputs " '$ac_f'"
19138    done
19139
19140    # Let's still pretend it is `configure' which instantiates (i.e., don't
19141    # use $as_me), people would be surprised to read:
19142    #    /* config.h.  Generated by config.status.  */
19143    configure_input='Generated from '`
19144	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19145	`' by configure.'
19146    if test x"$ac_file" != x-; then
19147      configure_input="$ac_file.  $configure_input"
19148      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19149$as_echo "$as_me: creating $ac_file" >&6;}
19150    fi
19151    # Neutralize special characters interpreted by sed in replacement strings.
19152    case $configure_input in #(
19153    *\&* | *\|* | *\\* )
19154       ac_sed_conf_input=`$as_echo "$configure_input" |
19155       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19156    *) ac_sed_conf_input=$configure_input;;
19157    esac
19158
19159    case $ac_tag in
19160    *:-:* | *:-) cat >"$tmp/stdin" \
19161      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19162    esac
19163    ;;
19164  esac
19165
19166  ac_dir=`$as_dirname -- "$ac_file" ||
19167$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19168	 X"$ac_file" : 'X\(//\)[^/]' \| \
19169	 X"$ac_file" : 'X\(//\)$' \| \
19170	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19171$as_echo X"$ac_file" |
19172    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19173	    s//\1/
19174	    q
19175	  }
19176	  /^X\(\/\/\)[^/].*/{
19177	    s//\1/
19178	    q
19179	  }
19180	  /^X\(\/\/\)$/{
19181	    s//\1/
19182	    q
19183	  }
19184	  /^X\(\/\).*/{
19185	    s//\1/
19186	    q
19187	  }
19188	  s/.*/./; q'`
19189  as_dir="$ac_dir"; as_fn_mkdir_p
19190  ac_builddir=.
19191
19192case "$ac_dir" in
19193.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19194*)
19195  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19196  # A ".." for each directory in $ac_dir_suffix.
19197  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19198  case $ac_top_builddir_sub in
19199  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19200  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19201  esac ;;
19202esac
19203ac_abs_top_builddir=$ac_pwd
19204ac_abs_builddir=$ac_pwd$ac_dir_suffix
19205# for backward compatibility:
19206ac_top_builddir=$ac_top_build_prefix
19207
19208case $srcdir in
19209  .)  # We are building in place.
19210    ac_srcdir=.
19211    ac_top_srcdir=$ac_top_builddir_sub
19212    ac_abs_top_srcdir=$ac_pwd ;;
19213  [\\/]* | ?:[\\/]* )  # Absolute name.
19214    ac_srcdir=$srcdir$ac_dir_suffix;
19215    ac_top_srcdir=$srcdir
19216    ac_abs_top_srcdir=$srcdir ;;
19217  *) # Relative name.
19218    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19219    ac_top_srcdir=$ac_top_build_prefix$srcdir
19220    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19221esac
19222ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19223
19224
19225  case $ac_mode in
19226  :F)
19227  #
19228  # CONFIG_FILE
19229  #
19230
19231  case $INSTALL in
19232  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19233  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19234  esac
19235  ac_MKDIR_P=$MKDIR_P
19236  case $MKDIR_P in
19237  [\\/$]* | ?:[\\/]* ) ;;
19238  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19239  esac
19240_ACEOF
19241
19242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19243# If the template does not know about datarootdir, expand it.
19244# FIXME: This hack should be removed a few years after 2.60.
19245ac_datarootdir_hack=; ac_datarootdir_seen=
19246ac_sed_dataroot='
19247/datarootdir/ {
19248  p
19249  q
19250}
19251/@datadir@/p
19252/@docdir@/p
19253/@infodir@/p
19254/@localedir@/p
19255/@mandir@/p'
19256case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19257*datarootdir*) ac_datarootdir_seen=yes;;
19258*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19259  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19260$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19261_ACEOF
19262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19263  ac_datarootdir_hack='
19264  s&@datadir@&$datadir&g
19265  s&@docdir@&$docdir&g
19266  s&@infodir@&$infodir&g
19267  s&@localedir@&$localedir&g
19268  s&@mandir@&$mandir&g
19269  s&\\\${datarootdir}&$datarootdir&g' ;;
19270esac
19271_ACEOF
19272
19273# Neutralize VPATH when `$srcdir' = `.'.
19274# Shell code in configure.ac might set extrasub.
19275# FIXME: do we really want to maintain this feature?
19276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19277ac_sed_extra="$ac_vpsub
19278$extrasub
19279_ACEOF
19280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19281:t
19282/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19283s|@configure_input@|$ac_sed_conf_input|;t t
19284s&@top_builddir@&$ac_top_builddir_sub&;t t
19285s&@top_build_prefix@&$ac_top_build_prefix&;t t
19286s&@srcdir@&$ac_srcdir&;t t
19287s&@abs_srcdir@&$ac_abs_srcdir&;t t
19288s&@top_srcdir@&$ac_top_srcdir&;t t
19289s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19290s&@builddir@&$ac_builddir&;t t
19291s&@abs_builddir@&$ac_abs_builddir&;t t
19292s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19293s&@INSTALL@&$ac_INSTALL&;t t
19294s&@MKDIR_P@&$ac_MKDIR_P&;t t
19295$ac_datarootdir_hack
19296"
19297eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19298  || as_fn_error "could not create $ac_file" "$LINENO" 5
19299
19300test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19301  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19302  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19303  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19304which seems to be undefined.  Please make sure it is defined." >&5
19305$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19306which seems to be undefined.  Please make sure it is defined." >&2;}
19307
19308  rm -f "$tmp/stdin"
19309  case $ac_file in
19310  -) cat "$tmp/out" && rm -f "$tmp/out";;
19311  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19312  esac \
19313  || as_fn_error "could not create $ac_file" "$LINENO" 5
19314 ;;
19315  :H)
19316  #
19317  # CONFIG_HEADER
19318  #
19319  if test x"$ac_file" != x-; then
19320    {
19321      $as_echo "/* $configure_input  */" \
19322      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19323    } >"$tmp/config.h" \
19324      || as_fn_error "could not create $ac_file" "$LINENO" 5
19325    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19326      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19327$as_echo "$as_me: $ac_file is unchanged" >&6;}
19328    else
19329      rm -f "$ac_file"
19330      mv "$tmp/config.h" "$ac_file" \
19331	|| as_fn_error "could not create $ac_file" "$LINENO" 5
19332    fi
19333  else
19334    $as_echo "/* $configure_input  */" \
19335      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19336      || as_fn_error "could not create -" "$LINENO" 5
19337  fi
19338# Compute "$ac_file"'s index in $config_headers.
19339_am_arg="$ac_file"
19340_am_stamp_count=1
19341for _am_header in $config_headers :; do
19342  case $_am_header in
19343    $_am_arg | $_am_arg:* )
19344      break ;;
19345    * )
19346      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19347  esac
19348done
19349echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19350$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19351	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19352	 X"$_am_arg" : 'X\(//\)$' \| \
19353	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19354$as_echo X"$_am_arg" |
19355    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19356	    s//\1/
19357	    q
19358	  }
19359	  /^X\(\/\/\)[^/].*/{
19360	    s//\1/
19361	    q
19362	  }
19363	  /^X\(\/\/\)$/{
19364	    s//\1/
19365	    q
19366	  }
19367	  /^X\(\/\).*/{
19368	    s//\1/
19369	    q
19370	  }
19371	  s/.*/./; q'`/stamp-h$_am_stamp_count
19372 ;;
19373
19374  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19375$as_echo "$as_me: executing $ac_file commands" >&6;}
19376 ;;
19377  esac
19378
19379
19380  case $ac_file$ac_mode in
19381    "default-1":C)
19382# Only add multilib support code if we just rebuilt the top-level
19383# Makefile.
19384case " $CONFIG_FILES " in
19385 *" Makefile "*)
19386   ac_file=Makefile . ${multi_basedir}/config-ml.in
19387   ;;
19388esac ;;
19389    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19390  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19391  # are listed without --file.  Let's play safe and only enable the eval
19392  # if we detect the quoting.
19393  case $CONFIG_FILES in
19394  *\'*) eval set x "$CONFIG_FILES" ;;
19395  *)   set x $CONFIG_FILES ;;
19396  esac
19397  shift
19398  for mf
19399  do
19400    # Strip MF so we end up with the name of the file.
19401    mf=`echo "$mf" | sed -e 's/:.*$//'`
19402    # Check whether this is an Automake generated Makefile or not.
19403    # We used to match only the files named `Makefile.in', but
19404    # some people rename them; so instead we look at the file content.
19405    # Grep'ing the first line is not enough: some people post-process
19406    # each Makefile.in and add a new line on top of each file to say so.
19407    # Grep'ing the whole file is not good either: AIX grep has a line
19408    # limit of 2048, but all sed's we know have understand at least 4000.
19409    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19410      dirpart=`$as_dirname -- "$mf" ||
19411$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19412	 X"$mf" : 'X\(//\)[^/]' \| \
19413	 X"$mf" : 'X\(//\)$' \| \
19414	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19415$as_echo X"$mf" |
19416    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19417	    s//\1/
19418	    q
19419	  }
19420	  /^X\(\/\/\)[^/].*/{
19421	    s//\1/
19422	    q
19423	  }
19424	  /^X\(\/\/\)$/{
19425	    s//\1/
19426	    q
19427	  }
19428	  /^X\(\/\).*/{
19429	    s//\1/
19430	    q
19431	  }
19432	  s/.*/./; q'`
19433    else
19434      continue
19435    fi
19436    # Extract the definition of DEPDIR, am__include, and am__quote
19437    # from the Makefile without running `make'.
19438    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19439    test -z "$DEPDIR" && continue
19440    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19441    test -z "am__include" && continue
19442    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19443    # When using ansi2knr, U may be empty or an underscore; expand it
19444    U=`sed -n 's/^U = //p' < "$mf"`
19445    # Find all dependency output files, they are included files with
19446    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19447    # simplest approach to changing $(DEPDIR) to its actual value in the
19448    # expansion.
19449    for file in `sed -n "
19450      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19451	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19452      # Make sure the directory exists.
19453      test -f "$dirpart/$file" && continue
19454      fdir=`$as_dirname -- "$file" ||
19455$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19456	 X"$file" : 'X\(//\)[^/]' \| \
19457	 X"$file" : 'X\(//\)$' \| \
19458	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19459$as_echo X"$file" |
19460    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19461	    s//\1/
19462	    q
19463	  }
19464	  /^X\(\/\/\)[^/].*/{
19465	    s//\1/
19466	    q
19467	  }
19468	  /^X\(\/\/\)$/{
19469	    s//\1/
19470	    q
19471	  }
19472	  /^X\(\/\).*/{
19473	    s//\1/
19474	    q
19475	  }
19476	  s/.*/./; q'`
19477      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19478      # echo "creating $dirpart/$file"
19479      echo '# dummy' > "$dirpart/$file"
19480    done
19481  done
19482}
19483 ;;
19484    "libtool":C)
19485
19486    # See if we are running on zsh, and set the options which allow our
19487    # commands through without removal of \ escapes.
19488    if test -n "${ZSH_VERSION+set}" ; then
19489      setopt NO_GLOB_SUBST
19490    fi
19491
19492    cfgfile="${ofile}T"
19493    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19494    $RM "$cfgfile"
19495
19496    cat <<_LT_EOF >> "$cfgfile"
19497#! $SHELL
19498
19499# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19500# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19501# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19502# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19503#
19504#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19505#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19506#   Written by Gordon Matzigkeit, 1996
19507#
19508#   This file is part of GNU Libtool.
19509#
19510# GNU Libtool is free software; you can redistribute it and/or
19511# modify it under the terms of the GNU General Public License as
19512# published by the Free Software Foundation; either version 2 of
19513# the License, or (at your option) any later version.
19514#
19515# As a special exception to the GNU General Public License,
19516# if you distribute this file as part of a program or library that
19517# is built using GNU Libtool, you may include this file under the
19518# same distribution terms that you use for the rest of that program.
19519#
19520# GNU Libtool is distributed in the hope that it will be useful,
19521# but WITHOUT ANY WARRANTY; without even the implied warranty of
19522# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19523# GNU General Public License for more details.
19524#
19525# You should have received a copy of the GNU General Public License
19526# along with GNU Libtool; see the file COPYING.  If not, a copy
19527# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19528# obtained by writing to the Free Software Foundation, Inc.,
19529# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19530
19531
19532# The names of the tagged configurations supported by this script.
19533available_tags="CXX "
19534
19535# ### BEGIN LIBTOOL CONFIG
19536
19537# Which release of libtool.m4 was used?
19538macro_version=$macro_version
19539macro_revision=$macro_revision
19540
19541# Whether or not to build shared libraries.
19542build_libtool_libs=$enable_shared
19543
19544# Whether or not to build static libraries.
19545build_old_libs=$enable_static
19546
19547# What type of objects to build.
19548pic_mode=$pic_mode
19549
19550# Whether or not to optimize for fast installation.
19551fast_install=$enable_fast_install
19552
19553# Shell to use when invoking shell scripts.
19554SHELL=$lt_SHELL
19555
19556# An echo program that protects backslashes.
19557ECHO=$lt_ECHO
19558
19559# The host system.
19560host_alias=$host_alias
19561host=$host
19562host_os=$host_os
19563
19564# The build system.
19565build_alias=$build_alias
19566build=$build
19567build_os=$build_os
19568
19569# A sed program that does not truncate output.
19570SED=$lt_SED
19571
19572# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19573Xsed="\$SED -e 1s/^X//"
19574
19575# A grep program that handles long lines.
19576GREP=$lt_GREP
19577
19578# An ERE matcher.
19579EGREP=$lt_EGREP
19580
19581# A literal string matcher.
19582FGREP=$lt_FGREP
19583
19584# A BSD- or MS-compatible name lister.
19585NM=$lt_NM
19586
19587# Whether we need soft or hard links.
19588LN_S=$lt_LN_S
19589
19590# What is the maximum length of a command?
19591max_cmd_len=$max_cmd_len
19592
19593# Object file suffix (normally "o").
19594objext=$ac_objext
19595
19596# Executable file suffix (normally "").
19597exeext=$exeext
19598
19599# whether the shell understands "unset".
19600lt_unset=$lt_unset
19601
19602# turn spaces into newlines.
19603SP2NL=$lt_lt_SP2NL
19604
19605# turn newlines into spaces.
19606NL2SP=$lt_lt_NL2SP
19607
19608# An object symbol dumper.
19609OBJDUMP=$lt_OBJDUMP
19610
19611# Method to check whether dependent libraries are shared objects.
19612deplibs_check_method=$lt_deplibs_check_method
19613
19614# Command to use when deplibs_check_method == "file_magic".
19615file_magic_cmd=$lt_file_magic_cmd
19616
19617# The archiver.
19618AR=$lt_AR
19619AR_FLAGS=$lt_AR_FLAGS
19620
19621# A symbol stripping program.
19622STRIP=$lt_STRIP
19623
19624# Commands used to install an old-style archive.
19625RANLIB=$lt_RANLIB
19626old_postinstall_cmds=$lt_old_postinstall_cmds
19627old_postuninstall_cmds=$lt_old_postuninstall_cmds
19628
19629# Whether to use a lock for old archive extraction.
19630lock_old_archive_extraction=$lock_old_archive_extraction
19631
19632# A C compiler.
19633LTCC=$lt_CC
19634
19635# LTCC compiler flags.
19636LTCFLAGS=$lt_CFLAGS
19637
19638# Take the output of nm and produce a listing of raw symbols and C names.
19639global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19640
19641# Transform the output of nm in a proper C declaration.
19642global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19643
19644# Transform the output of nm in a C name address pair.
19645global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19646
19647# Transform the output of nm in a C name address pair when lib prefix is needed.
19648global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19649
19650# The name of the directory that contains temporary libtool files.
19651objdir=$objdir
19652
19653# Used to examine libraries when file_magic_cmd begins with "file".
19654MAGIC_CMD=$MAGIC_CMD
19655
19656# Must we lock files when doing compilation?
19657need_locks=$lt_need_locks
19658
19659# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19660DSYMUTIL=$lt_DSYMUTIL
19661
19662# Tool to change global to local symbols on Mac OS X.
19663NMEDIT=$lt_NMEDIT
19664
19665# Tool to manipulate fat objects and archives on Mac OS X.
19666LIPO=$lt_LIPO
19667
19668# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19669OTOOL=$lt_OTOOL
19670
19671# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19672OTOOL64=$lt_OTOOL64
19673
19674# Old archive suffix (normally "a").
19675libext=$libext
19676
19677# Shared library suffix (normally ".so").
19678shrext_cmds=$lt_shrext_cmds
19679
19680# The commands to extract the exported symbol list from a shared archive.
19681extract_expsyms_cmds=$lt_extract_expsyms_cmds
19682
19683# Variables whose values should be saved in libtool wrapper scripts and
19684# restored at link time.
19685variables_saved_for_relink=$lt_variables_saved_for_relink
19686
19687# Do we need the "lib" prefix for modules?
19688need_lib_prefix=$need_lib_prefix
19689
19690# Do we need a version for libraries?
19691need_version=$need_version
19692
19693# Library versioning type.
19694version_type=$version_type
19695
19696# Shared library runtime path variable.
19697runpath_var=$runpath_var
19698
19699# Shared library path variable.
19700shlibpath_var=$shlibpath_var
19701
19702# Is shlibpath searched before the hard-coded library search path?
19703shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19704
19705# Format of library name prefix.
19706libname_spec=$lt_libname_spec
19707
19708# List of archive names.  First name is the real one, the rest are links.
19709# The last name is the one that the linker finds with -lNAME
19710library_names_spec=$lt_library_names_spec
19711
19712# The coded name of the library, if different from the real name.
19713soname_spec=$lt_soname_spec
19714
19715# Permission mode override for installation of shared libraries.
19716install_override_mode=$lt_install_override_mode
19717
19718# Command to use after installation of a shared archive.
19719postinstall_cmds=$lt_postinstall_cmds
19720
19721# Command to use after uninstallation of a shared archive.
19722postuninstall_cmds=$lt_postuninstall_cmds
19723
19724# Commands used to finish a libtool library installation in a directory.
19725finish_cmds=$lt_finish_cmds
19726
19727# As "finish_cmds", except a single script fragment to be evaled but
19728# not shown.
19729finish_eval=$lt_finish_eval
19730
19731# Whether we should hardcode library paths into libraries.
19732hardcode_into_libs=$hardcode_into_libs
19733
19734# Compile-time system search path for libraries.
19735sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19736
19737# Run-time system search path for libraries.
19738sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19739
19740# Whether dlopen is supported.
19741dlopen_support=$enable_dlopen
19742
19743# Whether dlopen of programs is supported.
19744dlopen_self=$enable_dlopen_self
19745
19746# Whether dlopen of statically linked programs is supported.
19747dlopen_self_static=$enable_dlopen_self_static
19748
19749# Commands to strip libraries.
19750old_striplib=$lt_old_striplib
19751striplib=$lt_striplib
19752
19753
19754# The linker used to build libraries.
19755LD=$lt_LD
19756
19757# How to create reloadable object files.
19758reload_flag=$lt_reload_flag
19759reload_cmds=$lt_reload_cmds
19760
19761# Commands used to build an old-style archive.
19762old_archive_cmds=$lt_old_archive_cmds
19763
19764# A language specific compiler.
19765CC=$lt_compiler
19766
19767# Is the compiler the GNU compiler?
19768with_gcc=$GCC
19769
19770# Compiler flag to turn off builtin functions.
19771no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19772
19773# How to pass a linker flag through the compiler.
19774wl=$lt_lt_prog_compiler_wl
19775
19776# Additional compiler flags for building library objects.
19777pic_flag=$lt_lt_prog_compiler_pic
19778
19779# Compiler flag to prevent dynamic linking.
19780link_static_flag=$lt_lt_prog_compiler_static
19781
19782# Does compiler simultaneously support -c and -o options?
19783compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19784
19785# Whether or not to add -lc for building shared libraries.
19786build_libtool_need_lc=$archive_cmds_need_lc
19787
19788# Whether or not to disallow shared libs when runtime libs are static.
19789allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19790
19791# Compiler flag to allow reflexive dlopens.
19792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19793
19794# Compiler flag to generate shared objects directly from archives.
19795whole_archive_flag_spec=$lt_whole_archive_flag_spec
19796
19797# Whether the compiler copes with passing no objects directly.
19798compiler_needs_object=$lt_compiler_needs_object
19799
19800# Create an old-style archive from a shared archive.
19801old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19802
19803# Create a temporary old-style archive to link instead of a shared archive.
19804old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19805
19806# Commands used to build a shared archive.
19807archive_cmds=$lt_archive_cmds
19808archive_expsym_cmds=$lt_archive_expsym_cmds
19809
19810# Commands used to build a loadable module if different from building
19811# a shared archive.
19812module_cmds=$lt_module_cmds
19813module_expsym_cmds=$lt_module_expsym_cmds
19814
19815# Whether we are building with GNU ld or not.
19816with_gnu_ld=$lt_with_gnu_ld
19817
19818# Flag that allows shared libraries with undefined symbols to be built.
19819allow_undefined_flag=$lt_allow_undefined_flag
19820
19821# Flag that enforces no undefined symbols.
19822no_undefined_flag=$lt_no_undefined_flag
19823
19824# Flag to hardcode \$libdir into a binary during linking.
19825# This must work even if \$libdir does not exist
19826hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19827
19828# If ld is used when linking, flag to hardcode \$libdir into a binary
19829# during linking.  This must work even if \$libdir does not exist.
19830hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19831
19832# Whether we need a single "-rpath" flag with a separated argument.
19833hardcode_libdir_separator=$lt_hardcode_libdir_separator
19834
19835# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19836# DIR into the resulting binary.
19837hardcode_direct=$hardcode_direct
19838
19839# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19840# DIR into the resulting binary and the resulting library dependency is
19841# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19842# library is relocated.
19843hardcode_direct_absolute=$hardcode_direct_absolute
19844
19845# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19846# into the resulting binary.
19847hardcode_minus_L=$hardcode_minus_L
19848
19849# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19850# into the resulting binary.
19851hardcode_shlibpath_var=$hardcode_shlibpath_var
19852
19853# Set to "yes" if building a shared library automatically hardcodes DIR
19854# into the library and all subsequent libraries and executables linked
19855# against it.
19856hardcode_automatic=$hardcode_automatic
19857
19858# Set to yes if linker adds runtime paths of dependent libraries
19859# to runtime path list.
19860inherit_rpath=$inherit_rpath
19861
19862# Whether libtool must link a program against all its dependency libraries.
19863link_all_deplibs=$link_all_deplibs
19864
19865# Fix the shell variable \$srcfile for the compiler.
19866fix_srcfile_path=$lt_fix_srcfile_path
19867
19868# Set to "yes" if exported symbols are required.
19869always_export_symbols=$always_export_symbols
19870
19871# The commands to list exported symbols.
19872export_symbols_cmds=$lt_export_symbols_cmds
19873
19874# Symbols that should not be listed in the preloaded symbols.
19875exclude_expsyms=$lt_exclude_expsyms
19876
19877# Symbols that must always be exported.
19878include_expsyms=$lt_include_expsyms
19879
19880# Commands necessary for linking programs (against libraries) with templates.
19881prelink_cmds=$lt_prelink_cmds
19882
19883# Specify filename containing input files.
19884file_list_spec=$lt_file_list_spec
19885
19886# How to hardcode a shared library path into an executable.
19887hardcode_action=$hardcode_action
19888
19889# The directories searched by this compiler when creating a shared library.
19890compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19891
19892# Dependencies to place before and after the objects being linked to
19893# create a shared library.
19894predep_objects=$lt_predep_objects
19895postdep_objects=$lt_postdep_objects
19896predeps=$lt_predeps
19897postdeps=$lt_postdeps
19898
19899# The library search path used internally by the compiler when linking
19900# a shared library.
19901compiler_lib_search_path=$lt_compiler_lib_search_path
19902
19903# ### END LIBTOOL CONFIG
19904
19905_LT_EOF
19906
19907  case $host_os in
19908  aix3*)
19909    cat <<\_LT_EOF >> "$cfgfile"
19910# AIX sometimes has problems with the GCC collect2 program.  For some
19911# reason, if we set the COLLECT_NAMES environment variable, the problems
19912# vanish in a puff of smoke.
19913if test "X${COLLECT_NAMES+set}" != Xset; then
19914  COLLECT_NAMES=
19915  export COLLECT_NAMES
19916fi
19917_LT_EOF
19918    ;;
19919  esac
19920
19921
19922ltmain="$ac_aux_dir/ltmain.sh"
19923
19924
19925  # We use sed instead of cat because bash on DJGPP gets confused if
19926  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19927  # text mode, it properly converts lines to CR/LF.  This bash problem
19928  # is reportedly fixed, but why not run on old versions too?
19929  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19930    || (rm -f "$cfgfile"; exit 1)
19931
19932  case $xsi_shell in
19933  yes)
19934    cat << \_LT_EOF >> "$cfgfile"
19935
19936# func_dirname file append nondir_replacement
19937# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19938# otherwise set result to NONDIR_REPLACEMENT.
19939func_dirname ()
19940{
19941  case ${1} in
19942    */*) func_dirname_result="${1%/*}${2}" ;;
19943    *  ) func_dirname_result="${3}" ;;
19944  esac
19945}
19946
19947# func_basename file
19948func_basename ()
19949{
19950  func_basename_result="${1##*/}"
19951}
19952
19953# func_dirname_and_basename file append nondir_replacement
19954# perform func_basename and func_dirname in a single function
19955# call:
19956#   dirname:  Compute the dirname of FILE.  If nonempty,
19957#             add APPEND to the result, otherwise set result
19958#             to NONDIR_REPLACEMENT.
19959#             value returned in "$func_dirname_result"
19960#   basename: Compute filename of FILE.
19961#             value retuned in "$func_basename_result"
19962# Implementation must be kept synchronized with func_dirname
19963# and func_basename. For efficiency, we do not delegate to
19964# those functions but instead duplicate the functionality here.
19965func_dirname_and_basename ()
19966{
19967  case ${1} in
19968    */*) func_dirname_result="${1%/*}${2}" ;;
19969    *  ) func_dirname_result="${3}" ;;
19970  esac
19971  func_basename_result="${1##*/}"
19972}
19973
19974# func_stripname prefix suffix name
19975# strip PREFIX and SUFFIX off of NAME.
19976# PREFIX and SUFFIX must not contain globbing or regex special
19977# characters, hashes, percent signs, but SUFFIX may contain a leading
19978# dot (in which case that matches only a dot).
19979func_stripname ()
19980{
19981  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19982  # positional parameters, so assign one to ordinary parameter first.
19983  func_stripname_result=${3}
19984  func_stripname_result=${func_stripname_result#"${1}"}
19985  func_stripname_result=${func_stripname_result%"${2}"}
19986}
19987
19988# func_opt_split
19989func_opt_split ()
19990{
19991  func_opt_split_opt=${1%%=*}
19992  func_opt_split_arg=${1#*=}
19993}
19994
19995# func_lo2o object
19996func_lo2o ()
19997{
19998  case ${1} in
19999    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20000    *)    func_lo2o_result=${1} ;;
20001  esac
20002}
20003
20004# func_xform libobj-or-source
20005func_xform ()
20006{
20007  func_xform_result=${1%.*}.lo
20008}
20009
20010# func_arith arithmetic-term...
20011func_arith ()
20012{
20013  func_arith_result=$(( $* ))
20014}
20015
20016# func_len string
20017# STRING may not start with a hyphen.
20018func_len ()
20019{
20020  func_len_result=${#1}
20021}
20022
20023_LT_EOF
20024    ;;
20025  *) # Bourne compatible functions.
20026    cat << \_LT_EOF >> "$cfgfile"
20027
20028# func_dirname file append nondir_replacement
20029# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20030# otherwise set result to NONDIR_REPLACEMENT.
20031func_dirname ()
20032{
20033  # Extract subdirectory from the argument.
20034  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20035  if test "X$func_dirname_result" = "X${1}"; then
20036    func_dirname_result="${3}"
20037  else
20038    func_dirname_result="$func_dirname_result${2}"
20039  fi
20040}
20041
20042# func_basename file
20043func_basename ()
20044{
20045  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20046}
20047
20048
20049# func_stripname prefix suffix name
20050# strip PREFIX and SUFFIX off of NAME.
20051# PREFIX and SUFFIX must not contain globbing or regex special
20052# characters, hashes, percent signs, but SUFFIX may contain a leading
20053# dot (in which case that matches only a dot).
20054# func_strip_suffix prefix name
20055func_stripname ()
20056{
20057  case ${2} in
20058    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20059    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20060  esac
20061}
20062
20063# sed scripts:
20064my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20065my_sed_long_arg='1s/^-[^=]*=//'
20066
20067# func_opt_split
20068func_opt_split ()
20069{
20070  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20071  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20072}
20073
20074# func_lo2o object
20075func_lo2o ()
20076{
20077  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20078}
20079
20080# func_xform libobj-or-source
20081func_xform ()
20082{
20083  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20084}
20085
20086# func_arith arithmetic-term...
20087func_arith ()
20088{
20089  func_arith_result=`expr "$@"`
20090}
20091
20092# func_len string
20093# STRING may not start with a hyphen.
20094func_len ()
20095{
20096  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20097}
20098
20099_LT_EOF
20100esac
20101
20102case $lt_shell_append in
20103  yes)
20104    cat << \_LT_EOF >> "$cfgfile"
20105
20106# func_append var value
20107# Append VALUE to the end of shell variable VAR.
20108func_append ()
20109{
20110  eval "$1+=\$2"
20111}
20112_LT_EOF
20113    ;;
20114  *)
20115    cat << \_LT_EOF >> "$cfgfile"
20116
20117# func_append var value
20118# Append VALUE to the end of shell variable VAR.
20119func_append ()
20120{
20121  eval "$1=\$$1\$2"
20122}
20123
20124_LT_EOF
20125    ;;
20126  esac
20127
20128
20129  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20130    || (rm -f "$cfgfile"; exit 1)
20131
20132  mv -f "$cfgfile" "$ofile" ||
20133    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20134  chmod +x "$ofile"
20135
20136
20137    cat <<_LT_EOF >> "$ofile"
20138
20139# ### BEGIN LIBTOOL TAG CONFIG: CXX
20140
20141# The linker used to build libraries.
20142LD=$lt_LD_CXX
20143
20144# How to create reloadable object files.
20145reload_flag=$lt_reload_flag_CXX
20146reload_cmds=$lt_reload_cmds_CXX
20147
20148# Commands used to build an old-style archive.
20149old_archive_cmds=$lt_old_archive_cmds_CXX
20150
20151# A language specific compiler.
20152CC=$lt_compiler_CXX
20153
20154# Is the compiler the GNU compiler?
20155with_gcc=$GCC_CXX
20156
20157# Compiler flag to turn off builtin functions.
20158no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20159
20160# How to pass a linker flag through the compiler.
20161wl=$lt_lt_prog_compiler_wl_CXX
20162
20163# Additional compiler flags for building library objects.
20164pic_flag=$lt_lt_prog_compiler_pic_CXX
20165
20166# Compiler flag to prevent dynamic linking.
20167link_static_flag=$lt_lt_prog_compiler_static_CXX
20168
20169# Does compiler simultaneously support -c and -o options?
20170compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20171
20172# Whether or not to add -lc for building shared libraries.
20173build_libtool_need_lc=$archive_cmds_need_lc_CXX
20174
20175# Whether or not to disallow shared libs when runtime libs are static.
20176allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20177
20178# Compiler flag to allow reflexive dlopens.
20179export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20180
20181# Compiler flag to generate shared objects directly from archives.
20182whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20183
20184# Whether the compiler copes with passing no objects directly.
20185compiler_needs_object=$lt_compiler_needs_object_CXX
20186
20187# Create an old-style archive from a shared archive.
20188old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20189
20190# Create a temporary old-style archive to link instead of a shared archive.
20191old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20192
20193# Commands used to build a shared archive.
20194archive_cmds=$lt_archive_cmds_CXX
20195archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20196
20197# Commands used to build a loadable module if different from building
20198# a shared archive.
20199module_cmds=$lt_module_cmds_CXX
20200module_expsym_cmds=$lt_module_expsym_cmds_CXX
20201
20202# Whether we are building with GNU ld or not.
20203with_gnu_ld=$lt_with_gnu_ld_CXX
20204
20205# Flag that allows shared libraries with undefined symbols to be built.
20206allow_undefined_flag=$lt_allow_undefined_flag_CXX
20207
20208# Flag that enforces no undefined symbols.
20209no_undefined_flag=$lt_no_undefined_flag_CXX
20210
20211# Flag to hardcode \$libdir into a binary during linking.
20212# This must work even if \$libdir does not exist
20213hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20214
20215# If ld is used when linking, flag to hardcode \$libdir into a binary
20216# during linking.  This must work even if \$libdir does not exist.
20217hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20218
20219# Whether we need a single "-rpath" flag with a separated argument.
20220hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20221
20222# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20223# DIR into the resulting binary.
20224hardcode_direct=$hardcode_direct_CXX
20225
20226# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20227# DIR into the resulting binary and the resulting library dependency is
20228# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20229# library is relocated.
20230hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20231
20232# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20233# into the resulting binary.
20234hardcode_minus_L=$hardcode_minus_L_CXX
20235
20236# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20237# into the resulting binary.
20238hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20239
20240# Set to "yes" if building a shared library automatically hardcodes DIR
20241# into the library and all subsequent libraries and executables linked
20242# against it.
20243hardcode_automatic=$hardcode_automatic_CXX
20244
20245# Set to yes if linker adds runtime paths of dependent libraries
20246# to runtime path list.
20247inherit_rpath=$inherit_rpath_CXX
20248
20249# Whether libtool must link a program against all its dependency libraries.
20250link_all_deplibs=$link_all_deplibs_CXX
20251
20252# Fix the shell variable \$srcfile for the compiler.
20253fix_srcfile_path=$lt_fix_srcfile_path_CXX
20254
20255# Set to "yes" if exported symbols are required.
20256always_export_symbols=$always_export_symbols_CXX
20257
20258# The commands to list exported symbols.
20259export_symbols_cmds=$lt_export_symbols_cmds_CXX
20260
20261# Symbols that should not be listed in the preloaded symbols.
20262exclude_expsyms=$lt_exclude_expsyms_CXX
20263
20264# Symbols that must always be exported.
20265include_expsyms=$lt_include_expsyms_CXX
20266
20267# Commands necessary for linking programs (against libraries) with templates.
20268prelink_cmds=$lt_prelink_cmds_CXX
20269
20270# Specify filename containing input files.
20271file_list_spec=$lt_file_list_spec_CXX
20272
20273# How to hardcode a shared library path into an executable.
20274hardcode_action=$hardcode_action_CXX
20275
20276# The directories searched by this compiler when creating a shared library.
20277compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20278
20279# Dependencies to place before and after the objects being linked to
20280# create a shared library.
20281predep_objects=$lt_predep_objects_CXX
20282postdep_objects=$lt_postdep_objects_CXX
20283predeps=$lt_predeps_CXX
20284postdeps=$lt_postdeps_CXX
20285
20286# The library search path used internally by the compiler when linking
20287# a shared library.
20288compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20289
20290# ### END LIBTOOL TAG CONFIG: CXX
20291_LT_EOF
20292
20293 ;;
20294    "gstdint.h":C)
20295if test "$GCC" = yes; then
20296  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20297else
20298  echo "/* generated for $CC */" > tmp-stdint.h
20299fi
20300
20301sed 's/^ *//' >> tmp-stdint.h <<EOF
20302
20303  #ifndef GCC_GENERATED_STDINT_H
20304  #define GCC_GENERATED_STDINT_H 1
20305
20306  #include <sys/types.h>
20307EOF
20308
20309if test "$acx_cv_header_stdint" != stdint.h; then
20310  echo "#include <stddef.h>" >> tmp-stdint.h
20311fi
20312if test "$acx_cv_header_stdint" != stddef.h; then
20313  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20314fi
20315
20316sed 's/^ *//' >> tmp-stdint.h <<EOF
20317  /* glibc uses these symbols as guards to prevent redefinitions.  */
20318  #ifdef __int8_t_defined
20319  #define _INT8_T
20320  #define _INT16_T
20321  #define _INT32_T
20322  #endif
20323  #ifdef __uint32_t_defined
20324  #define _UINT32_T
20325  #endif
20326
20327EOF
20328
20329# ----------------- done header, emit basic int types -------------
20330if test "$acx_cv_header_stdint" = stddef.h; then
20331  sed 's/^ *//' >> tmp-stdint.h <<EOF
20332
20333    #ifndef _UINT8_T
20334    #define _UINT8_T
20335    #ifndef __uint8_t_defined
20336    #define __uint8_t_defined
20337    #ifndef uint8_t
20338    typedef unsigned $acx_cv_type_int8_t uint8_t;
20339    #endif
20340    #endif
20341    #endif
20342
20343    #ifndef _UINT16_T
20344    #define _UINT16_T
20345    #ifndef __uint16_t_defined
20346    #define __uint16_t_defined
20347    #ifndef uint16_t
20348    typedef unsigned $acx_cv_type_int16_t uint16_t;
20349    #endif
20350    #endif
20351    #endif
20352
20353    #ifndef _UINT32_T
20354    #define _UINT32_T
20355    #ifndef __uint32_t_defined
20356    #define __uint32_t_defined
20357    #ifndef uint32_t
20358    typedef unsigned $acx_cv_type_int32_t uint32_t;
20359    #endif
20360    #endif
20361    #endif
20362
20363    #ifndef _INT8_T
20364    #define _INT8_T
20365    #ifndef __int8_t_defined
20366    #define __int8_t_defined
20367    #ifndef int8_t
20368    typedef $acx_cv_type_int8_t int8_t;
20369    #endif
20370    #endif
20371    #endif
20372
20373    #ifndef _INT16_T
20374    #define _INT16_T
20375    #ifndef __int16_t_defined
20376    #define __int16_t_defined
20377    #ifndef int16_t
20378    typedef $acx_cv_type_int16_t int16_t;
20379    #endif
20380    #endif
20381    #endif
20382
20383    #ifndef _INT32_T
20384    #define _INT32_T
20385    #ifndef __int32_t_defined
20386    #define __int32_t_defined
20387    #ifndef int32_t
20388    typedef $acx_cv_type_int32_t int32_t;
20389    #endif
20390    #endif
20391    #endif
20392EOF
20393elif test "$ac_cv_type_u_int32_t" = yes; then
20394  sed 's/^ *//' >> tmp-stdint.h <<EOF
20395
20396    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20397    #ifndef _INT8_T
20398    #define _INT8_T
20399    #endif
20400    #ifndef _INT16_T
20401    #define _INT16_T
20402    #endif
20403    #ifndef _INT32_T
20404    #define _INT32_T
20405    #endif
20406
20407    #ifndef _UINT8_T
20408    #define _UINT8_T
20409    #ifndef __uint8_t_defined
20410    #define __uint8_t_defined
20411    #ifndef uint8_t
20412    typedef u_int8_t uint8_t;
20413    #endif
20414    #endif
20415    #endif
20416
20417    #ifndef _UINT16_T
20418    #define _UINT16_T
20419    #ifndef __uint16_t_defined
20420    #define __uint16_t_defined
20421    #ifndef uint16_t
20422    typedef u_int16_t uint16_t;
20423    #endif
20424    #endif
20425    #endif
20426
20427    #ifndef _UINT32_T
20428    #define _UINT32_T
20429    #ifndef __uint32_t_defined
20430    #define __uint32_t_defined
20431    #ifndef uint32_t
20432    typedef u_int32_t uint32_t;
20433    #endif
20434    #endif
20435    #endif
20436EOF
20437else
20438  sed 's/^ *//' >> tmp-stdint.h <<EOF
20439
20440    /* Some systems have guard macros to prevent redefinitions, define them.  */
20441    #ifndef _INT8_T
20442    #define _INT8_T
20443    #endif
20444    #ifndef _INT16_T
20445    #define _INT16_T
20446    #endif
20447    #ifndef _INT32_T
20448    #define _INT32_T
20449    #endif
20450    #ifndef _UINT8_T
20451    #define _UINT8_T
20452    #endif
20453    #ifndef _UINT16_T
20454    #define _UINT16_T
20455    #endif
20456    #ifndef _UINT32_T
20457    #define _UINT32_T
20458    #endif
20459EOF
20460fi
20461
20462# ------------- done basic int types, emit int64_t types ------------
20463if test "$ac_cv_type_uint64_t" = yes; then
20464  sed 's/^ *//' >> tmp-stdint.h <<EOF
20465
20466    /* system headers have good uint64_t and int64_t */
20467    #ifndef _INT64_T
20468    #define _INT64_T
20469    #endif
20470    #ifndef _UINT64_T
20471    #define _UINT64_T
20472    #endif
20473EOF
20474elif test "$ac_cv_type_u_int64_t" = yes; then
20475  sed 's/^ *//' >> tmp-stdint.h <<EOF
20476
20477    /* system headers have an u_int64_t (and int64_t) */
20478    #ifndef _INT64_T
20479    #define _INT64_T
20480    #endif
20481    #ifndef _UINT64_T
20482    #define _UINT64_T
20483    #ifndef __uint64_t_defined
20484    #define __uint64_t_defined
20485    #ifndef uint64_t
20486    typedef u_int64_t uint64_t;
20487    #endif
20488    #endif
20489    #endif
20490EOF
20491elif test -n "$acx_cv_type_int64_t"; then
20492  sed 's/^ *//' >> tmp-stdint.h <<EOF
20493
20494    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20495    #ifndef _INT64_T
20496    #define _INT64_T
20497    #ifndef int64_t
20498    typedef $acx_cv_type_int64_t int64_t;
20499    #endif
20500    #endif
20501    #ifndef _UINT64_T
20502    #define _UINT64_T
20503    #ifndef __uint64_t_defined
20504    #define __uint64_t_defined
20505    #ifndef uint64_t
20506    typedef unsigned $acx_cv_type_int64_t uint64_t;
20507    #endif
20508    #endif
20509    #endif
20510EOF
20511else
20512  sed 's/^ *//' >> tmp-stdint.h <<EOF
20513
20514    /* some common heuristics for int64_t, using compiler-specific tests */
20515    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20516    #ifndef _INT64_T
20517    #define _INT64_T
20518    #ifndef __int64_t_defined
20519    #ifndef int64_t
20520    typedef long long int64_t;
20521    #endif
20522    #endif
20523    #endif
20524    #ifndef _UINT64_T
20525    #define _UINT64_T
20526    #ifndef uint64_t
20527    typedef unsigned long long uint64_t;
20528    #endif
20529    #endif
20530
20531    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20532    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20533       does not implement __extension__.  But that compiler doesn't define
20534       __GNUC_MINOR__.  */
20535    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20536    # define __extension__
20537    # endif
20538
20539    # ifndef _INT64_T
20540    # define _INT64_T
20541    # ifndef int64_t
20542    __extension__ typedef long long int64_t;
20543    # endif
20544    # endif
20545    # ifndef _UINT64_T
20546    # define _UINT64_T
20547    # ifndef uint64_t
20548    __extension__ typedef unsigned long long uint64_t;
20549    # endif
20550    # endif
20551
20552    #elif !defined __STRICT_ANSI__
20553    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20554
20555    #  ifndef _INT64_T
20556    #  define _INT64_T
20557    #  ifndef int64_t
20558    typedef __int64 int64_t;
20559    #  endif
20560    #  endif
20561    #  ifndef _UINT64_T
20562    #  define _UINT64_T
20563    #  ifndef uint64_t
20564    typedef unsigned __int64 uint64_t;
20565    #  endif
20566    #  endif
20567    # endif /* compiler */
20568
20569    #endif /* ANSI version */
20570EOF
20571fi
20572
20573# ------------- done int64_t types, emit intptr types ------------
20574if test "$ac_cv_type_uintptr_t" != yes; then
20575  sed 's/^ *//' >> tmp-stdint.h <<EOF
20576
20577    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20578    #ifndef __uintptr_t_defined
20579    #ifndef uintptr_t
20580    typedef u$acx_cv_type_intptr_t uintptr_t;
20581    #endif
20582    #endif
20583    #ifndef __intptr_t_defined
20584    #ifndef intptr_t
20585    typedef $acx_cv_type_intptr_t  intptr_t;
20586    #endif
20587    #endif
20588EOF
20589fi
20590
20591# ------------- done intptr types, emit int_least types ------------
20592if test "$ac_cv_type_int_least32_t" != yes; then
20593  sed 's/^ *//' >> tmp-stdint.h <<EOF
20594
20595    /* Define int_least types */
20596    typedef int8_t     int_least8_t;
20597    typedef int16_t    int_least16_t;
20598    typedef int32_t    int_least32_t;
20599    #ifdef _INT64_T
20600    typedef int64_t    int_least64_t;
20601    #endif
20602
20603    typedef uint8_t    uint_least8_t;
20604    typedef uint16_t   uint_least16_t;
20605    typedef uint32_t   uint_least32_t;
20606    #ifdef _UINT64_T
20607    typedef uint64_t   uint_least64_t;
20608    #endif
20609EOF
20610fi
20611
20612# ------------- done intptr types, emit int_fast types ------------
20613if test "$ac_cv_type_int_fast32_t" != yes; then
20614      sed 's/^ *//' >> tmp-stdint.h <<EOF
20615
20616    /* Define int_fast types.  short is often slow */
20617    typedef int8_t       int_fast8_t;
20618    typedef int          int_fast16_t;
20619    typedef int32_t      int_fast32_t;
20620    #ifdef _INT64_T
20621    typedef int64_t      int_fast64_t;
20622    #endif
20623
20624    typedef uint8_t      uint_fast8_t;
20625    typedef unsigned int uint_fast16_t;
20626    typedef uint32_t     uint_fast32_t;
20627    #ifdef _UINT64_T
20628    typedef uint64_t     uint_fast64_t;
20629    #endif
20630EOF
20631fi
20632
20633if test "$ac_cv_type_uintmax_t" != yes; then
20634  sed 's/^ *//' >> tmp-stdint.h <<EOF
20635
20636    /* Define intmax based on what we found */
20637    #ifndef intmax_t
20638    #ifdef _INT64_T
20639    typedef int64_t       intmax_t;
20640    #else
20641    typedef long          intmax_t;
20642    #endif
20643    #endif
20644    #ifndef uintmax_t
20645    #ifdef _UINT64_T
20646    typedef uint64_t      uintmax_t;
20647    #else
20648    typedef unsigned long uintmax_t;
20649    #endif
20650    #endif
20651EOF
20652fi
20653
20654sed 's/^ *//' >> tmp-stdint.h <<EOF
20655
20656  #endif /* GCC_GENERATED_STDINT_H */
20657EOF
20658
20659if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20660  rm -f tmp-stdint.h
20661else
20662  mv -f tmp-stdint.h gstdint.h
20663fi
20664
20665 ;;
20666
20667  esac
20668done # for ac_tag
20669
20670
20671as_fn_exit 0
20672_ACEOF
20673ac_clean_files=$ac_clean_files_save
20674
20675test $ac_write_fail = 0 ||
20676  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20677
20678
20679# configure is writing to config.log, and then calls config.status.
20680# config.status does its own redirection, appending to config.log.
20681# Unfortunately, on DOS this fails, as config.log is still kept open
20682# by configure, so config.status won't be able to write to it; its
20683# output is simply discarded.  So we exec the FD to /dev/null,
20684# effectively closing config.log, so it can be properly (re)opened and
20685# appended to by config.status.  When coming back to configure, we
20686# need to make the FD available again.
20687if test "$no_create" != yes; then
20688  ac_cs_success=:
20689  ac_config_status_args=
20690  test "$silent" = yes &&
20691    ac_config_status_args="$ac_config_status_args --quiet"
20692  exec 5>/dev/null
20693  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20694  exec 5>>config.log
20695  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20696  # would make configure fail if this is the last instruction.
20697  $ac_cs_success || as_fn_exit $?
20698fi
20699if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20700  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20701$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20702fi
20703
20704