1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
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
172test \$(( 1 + 1 )) = 2 || exit 1
173
174  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178    PATH=/empty FPATH=/empty; export PATH FPATH
179    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='package-unused'
558PACKAGE_TARNAME='libbacktrace'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='package-unused version-unused'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="backtrace.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579#  include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584#  include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605NATIVE_FALSE
606NATIVE_TRUE
607HAVE_OBJCOPY_DEBUGLINK_FALSE
608HAVE_OBJCOPY_DEBUGLINK_TRUE
609OBJCOPY
610HAVE_COMPRESSED_DEBUG_FALSE
611HAVE_COMPRESSED_DEBUG_TRUE
612HAVE_ZLIB_FALSE
613HAVE_ZLIB_TRUE
614HAVE_PTHREAD_FALSE
615HAVE_PTHREAD_TRUE
616PTHREAD_CFLAGS
617CLOCK_GETTIME_LINK
618BACKTRACE_USES_MALLOC
619ALLOC_FILE
620VIEW_FILE
621BACKTRACE_SUPPORTS_DATA
622BACKTRACE_SUPPORTED
623FORMAT_FILE
624BACKTRACE_SUPPORTS_THREADS
625PIC_FLAG
626WARN_FLAGS
627EXTRA_FLAGS
628BACKTRACE_FILE
629OTOOL64
630OTOOL
631LIPO
632NMEDIT
633DSYMUTIL
634AR
635OBJDUMP
636LN_S
637NM
638ac_ct_DUMPBIN
639DUMPBIN
640LD
641FGREP
642SED
643LIBTOOL
644RANLIB
645MAINT
646MAINTAINER_MODE_FALSE
647MAINTAINER_MODE_TRUE
648am__untar
649am__tar
650AMTAR
651am__leading_dot
652SET_MAKE
653AWK
654mkdir_p
655MKDIR_P
656INSTALL_STRIP_PROGRAM
657STRIP
658install_sh
659MAKEINFO
660AUTOHEADER
661AUTOMAKE
662AUTOCONF
663ACLOCAL
664VERSION
665PACKAGE
666CYGPATH_W
667am__isrc
668INSTALL_DATA
669INSTALL_SCRIPT
670INSTALL_PROGRAM
671libtool_VERSION
672EGREP
673GREP
674CPP
675OBJEXT
676EXEEXT
677ac_ct_CC
678CPPFLAGS
679LDFLAGS
680CFLAGS
681CC
682target_os
683target_vendor
684target_cpu
685target
686host_os
687host_vendor
688host_cpu
689host
690build_os
691build_vendor
692build_cpu
693build
694multi_basedir
695target_alias
696host_alias
697build_alias
698LIBS
699ECHO_T
700ECHO_N
701ECHO_C
702DEFS
703mandir
704localedir
705libdir
706psdir
707pdfdir
708dvidir
709htmldir
710infodir
711docdir
712oldincludedir
713includedir
714localstatedir
715sharedstatedir
716sysconfdir
717datadir
718datarootdir
719libexecdir
720sbindir
721bindir
722program_transform_name
723prefix
724exec_prefix
725PACKAGE_URL
726PACKAGE_BUGREPORT
727PACKAGE_STRING
728PACKAGE_VERSION
729PACKAGE_TARNAME
730PACKAGE_NAME
731PATH_SEPARATOR
732SHELL'
733ac_subst_files=''
734ac_user_opts='
735enable_option_checking
736enable_multilib
737enable_maintainer_mode
738with_target_subdir
739enable_shared
740enable_static
741with_pic
742enable_fast_install
743with_gnu_ld
744enable_libtool_lock
745enable_largefile
746enable_cet
747with_system_libunwind
748enable_host_shared
749'
750      ac_precious_vars='build_alias
751host_alias
752target_alias
753CC
754CFLAGS
755LDFLAGS
756LIBS
757CPPFLAGS
758CPP
759OBJCOPY'
760
761
762# Initialize some variables set by options.
763ac_init_help=
764ac_init_version=false
765ac_unrecognized_opts=
766ac_unrecognized_sep=
767# The variables have the same names as the options, with
768# dashes changed to underlines.
769cache_file=/dev/null
770exec_prefix=NONE
771no_create=
772no_recursion=
773prefix=NONE
774program_prefix=NONE
775program_suffix=NONE
776program_transform_name=s,x,x,
777silent=
778site=
779srcdir=
780verbose=
781x_includes=NONE
782x_libraries=NONE
783
784# Installation directory options.
785# These are left unexpanded so users can "make install exec_prefix=/foo"
786# and all the variables that are supposed to be based on exec_prefix
787# by default will actually change.
788# Use braces instead of parens because sh, perl, etc. also accept them.
789# (The list follows the same order as the GNU Coding Standards.)
790bindir='${exec_prefix}/bin'
791sbindir='${exec_prefix}/sbin'
792libexecdir='${exec_prefix}/libexec'
793datarootdir='${prefix}/share'
794datadir='${datarootdir}'
795sysconfdir='${prefix}/etc'
796sharedstatedir='${prefix}/com'
797localstatedir='${prefix}/var'
798includedir='${prefix}/include'
799oldincludedir='/usr/include'
800docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801infodir='${datarootdir}/info'
802htmldir='${docdir}'
803dvidir='${docdir}'
804pdfdir='${docdir}'
805psdir='${docdir}'
806libdir='${exec_prefix}/lib'
807localedir='${datarootdir}/locale'
808mandir='${datarootdir}/man'
809
810ac_prev=
811ac_dashdash=
812for ac_option
813do
814  # If the previous option needs an argument, assign it.
815  if test -n "$ac_prev"; then
816    eval $ac_prev=\$ac_option
817    ac_prev=
818    continue
819  fi
820
821  case $ac_option in
822  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823  *)	ac_optarg=yes ;;
824  esac
825
826  # Accept the important Cygnus configure options, so we can diagnose typos.
827
828  case $ac_dashdash$ac_option in
829  --)
830    ac_dashdash=yes ;;
831
832  -bindir | --bindir | --bindi | --bind | --bin | --bi)
833    ac_prev=bindir ;;
834  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835    bindir=$ac_optarg ;;
836
837  -build | --build | --buil | --bui | --bu)
838    ac_prev=build_alias ;;
839  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840    build_alias=$ac_optarg ;;
841
842  -cache-file | --cache-file | --cache-fil | --cache-fi \
843  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844    ac_prev=cache_file ;;
845  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847    cache_file=$ac_optarg ;;
848
849  --config-cache | -C)
850    cache_file=config.cache ;;
851
852  -datadir | --datadir | --datadi | --datad)
853    ac_prev=datadir ;;
854  -datadir=* | --datadir=* | --datadi=* | --datad=*)
855    datadir=$ac_optarg ;;
856
857  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858  | --dataroo | --dataro | --datar)
859    ac_prev=datarootdir ;;
860  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862    datarootdir=$ac_optarg ;;
863
864  -disable-* | --disable-*)
865    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866    # Reject names that are not valid shell variable names.
867    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868      as_fn_error "invalid feature name: $ac_useropt"
869    ac_useropt_orig=$ac_useropt
870    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871    case $ac_user_opts in
872      *"
873"enable_$ac_useropt"
874"*) ;;
875      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876	 ac_unrecognized_sep=', ';;
877    esac
878    eval enable_$ac_useropt=no ;;
879
880  -docdir | --docdir | --docdi | --doc | --do)
881    ac_prev=docdir ;;
882  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883    docdir=$ac_optarg ;;
884
885  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886    ac_prev=dvidir ;;
887  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888    dvidir=$ac_optarg ;;
889
890  -enable-* | --enable-*)
891    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892    # Reject names that are not valid shell variable names.
893    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894      as_fn_error "invalid feature name: $ac_useropt"
895    ac_useropt_orig=$ac_useropt
896    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897    case $ac_user_opts in
898      *"
899"enable_$ac_useropt"
900"*) ;;
901      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902	 ac_unrecognized_sep=', ';;
903    esac
904    eval enable_$ac_useropt=\$ac_optarg ;;
905
906  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908  | --exec | --exe | --ex)
909    ac_prev=exec_prefix ;;
910  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912  | --exec=* | --exe=* | --ex=*)
913    exec_prefix=$ac_optarg ;;
914
915  -gas | --gas | --ga | --g)
916    # Obsolete; use --with-gas.
917    with_gas=yes ;;
918
919  -help | --help | --hel | --he | -h)
920    ac_init_help=long ;;
921  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922    ac_init_help=recursive ;;
923  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924    ac_init_help=short ;;
925
926  -host | --host | --hos | --ho)
927    ac_prev=host_alias ;;
928  -host=* | --host=* | --hos=* | --ho=*)
929    host_alias=$ac_optarg ;;
930
931  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932    ac_prev=htmldir ;;
933  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934  | --ht=*)
935    htmldir=$ac_optarg ;;
936
937  -includedir | --includedir | --includedi | --included | --include \
938  | --includ | --inclu | --incl | --inc)
939    ac_prev=includedir ;;
940  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941  | --includ=* | --inclu=* | --incl=* | --inc=*)
942    includedir=$ac_optarg ;;
943
944  -infodir | --infodir | --infodi | --infod | --info | --inf)
945    ac_prev=infodir ;;
946  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947    infodir=$ac_optarg ;;
948
949  -libdir | --libdir | --libdi | --libd)
950    ac_prev=libdir ;;
951  -libdir=* | --libdir=* | --libdi=* | --libd=*)
952    libdir=$ac_optarg ;;
953
954  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955  | --libexe | --libex | --libe)
956    ac_prev=libexecdir ;;
957  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958  | --libexe=* | --libex=* | --libe=*)
959    libexecdir=$ac_optarg ;;
960
961  -localedir | --localedir | --localedi | --localed | --locale)
962    ac_prev=localedir ;;
963  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964    localedir=$ac_optarg ;;
965
966  -localstatedir | --localstatedir | --localstatedi | --localstated \
967  | --localstate | --localstat | --localsta | --localst | --locals)
968    ac_prev=localstatedir ;;
969  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971    localstatedir=$ac_optarg ;;
972
973  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974    ac_prev=mandir ;;
975  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976    mandir=$ac_optarg ;;
977
978  -nfp | --nfp | --nf)
979    # Obsolete; use --without-fp.
980    with_fp=no ;;
981
982  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983  | --no-cr | --no-c | -n)
984    no_create=yes ;;
985
986  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988    no_recursion=yes ;;
989
990  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992  | --oldin | --oldi | --old | --ol | --o)
993    ac_prev=oldincludedir ;;
994  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997    oldincludedir=$ac_optarg ;;
998
999  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000    ac_prev=prefix ;;
1001  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002    prefix=$ac_optarg ;;
1003
1004  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005  | --program-pre | --program-pr | --program-p)
1006    ac_prev=program_prefix ;;
1007  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009    program_prefix=$ac_optarg ;;
1010
1011  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012  | --program-suf | --program-su | --program-s)
1013    ac_prev=program_suffix ;;
1014  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016    program_suffix=$ac_optarg ;;
1017
1018  -program-transform-name | --program-transform-name \
1019  | --program-transform-nam | --program-transform-na \
1020  | --program-transform-n | --program-transform- \
1021  | --program-transform | --program-transfor \
1022  | --program-transfo | --program-transf \
1023  | --program-trans | --program-tran \
1024  | --progr-tra | --program-tr | --program-t)
1025    ac_prev=program_transform_name ;;
1026  -program-transform-name=* | --program-transform-name=* \
1027  | --program-transform-nam=* | --program-transform-na=* \
1028  | --program-transform-n=* | --program-transform-=* \
1029  | --program-transform=* | --program-transfor=* \
1030  | --program-transfo=* | --program-transf=* \
1031  | --program-trans=* | --program-tran=* \
1032  | --progr-tra=* | --program-tr=* | --program-t=*)
1033    program_transform_name=$ac_optarg ;;
1034
1035  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036    ac_prev=pdfdir ;;
1037  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038    pdfdir=$ac_optarg ;;
1039
1040  -psdir | --psdir | --psdi | --psd | --ps)
1041    ac_prev=psdir ;;
1042  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043    psdir=$ac_optarg ;;
1044
1045  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046  | -silent | --silent | --silen | --sile | --sil)
1047    silent=yes ;;
1048
1049  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050    ac_prev=sbindir ;;
1051  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052  | --sbi=* | --sb=*)
1053    sbindir=$ac_optarg ;;
1054
1055  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057  | --sharedst | --shareds | --shared | --share | --shar \
1058  | --sha | --sh)
1059    ac_prev=sharedstatedir ;;
1060  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063  | --sha=* | --sh=*)
1064    sharedstatedir=$ac_optarg ;;
1065
1066  -site | --site | --sit)
1067    ac_prev=site ;;
1068  -site=* | --site=* | --sit=*)
1069    site=$ac_optarg ;;
1070
1071  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072    ac_prev=srcdir ;;
1073  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074    srcdir=$ac_optarg ;;
1075
1076  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077  | --syscon | --sysco | --sysc | --sys | --sy)
1078    ac_prev=sysconfdir ;;
1079  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081    sysconfdir=$ac_optarg ;;
1082
1083  -target | --target | --targe | --targ | --tar | --ta | --t)
1084    ac_prev=target_alias ;;
1085  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086    target_alias=$ac_optarg ;;
1087
1088  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089    verbose=yes ;;
1090
1091  -version | --version | --versio | --versi | --vers | -V)
1092    ac_init_version=: ;;
1093
1094  -with-* | --with-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098      as_fn_error "invalid package name: $ac_useropt"
1099    ac_useropt_orig=$ac_useropt
1100    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101    case $ac_user_opts in
1102      *"
1103"with_$ac_useropt"
1104"*) ;;
1105      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106	 ac_unrecognized_sep=', ';;
1107    esac
1108    eval with_$ac_useropt=\$ac_optarg ;;
1109
1110  -without-* | --without-*)
1111    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112    # Reject names that are not valid shell variable names.
1113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114      as_fn_error "invalid package name: $ac_useropt"
1115    ac_useropt_orig=$ac_useropt
1116    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117    case $ac_user_opts in
1118      *"
1119"with_$ac_useropt"
1120"*) ;;
1121      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122	 ac_unrecognized_sep=', ';;
1123    esac
1124    eval with_$ac_useropt=no ;;
1125
1126  --x)
1127    # Obsolete; use --with-x.
1128    with_x=yes ;;
1129
1130  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131  | --x-incl | --x-inc | --x-in | --x-i)
1132    ac_prev=x_includes ;;
1133  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135    x_includes=$ac_optarg ;;
1136
1137  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139    ac_prev=x_libraries ;;
1140  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142    x_libraries=$ac_optarg ;;
1143
1144  -*) as_fn_error "unrecognized option: \`$ac_option'
1145Try \`$0 --help' for more information."
1146    ;;
1147
1148  *=*)
1149    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150    # Reject names that are not valid shell variable names.
1151    case $ac_envvar in #(
1152      '' | [0-9]* | *[!_$as_cr_alnum]* )
1153      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1154    esac
1155    eval $ac_envvar=\$ac_optarg
1156    export $ac_envvar ;;
1157
1158  *)
1159    # FIXME: should be removed in autoconf 3.0.
1160    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1164    ;;
1165
1166  esac
1167done
1168
1169if test -n "$ac_prev"; then
1170  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171  as_fn_error "missing argument to $ac_option"
1172fi
1173
1174if test -n "$ac_unrecognized_opts"; then
1175  case $enable_option_checking in
1176    no) ;;
1177    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1178    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179  esac
1180fi
1181
1182# Check all directory arguments for consistency.
1183for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184		datadir sysconfdir sharedstatedir localstatedir includedir \
1185		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186		libdir localedir mandir
1187do
1188  eval ac_val=\$$ac_var
1189  # Remove trailing slashes.
1190  case $ac_val in
1191    */ )
1192      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193      eval $ac_var=\$ac_val;;
1194  esac
1195  # Be sure to have absolute directory names.
1196  case $ac_val in
1197    [\\/$]* | ?:[\\/]* )  continue;;
1198    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199  esac
1200  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1201done
1202
1203# There might be people who depend on the old broken behavior: `$host'
1204# used to hold the argument of --host etc.
1205# FIXME: To remove some day.
1206build=$build_alias
1207host=$host_alias
1208target=$target_alias
1209
1210# FIXME: To remove some day.
1211if test "x$host_alias" != x; then
1212  if test "x$build_alias" = x; then
1213    cross_compiling=maybe
1214    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215    If a cross compiler is detected then cross compile mode will be used." >&2
1216  elif test "x$build_alias" != "x$host_alias"; then
1217    cross_compiling=yes
1218  fi
1219fi
1220
1221ac_tool_prefix=
1222test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224test "$silent" = yes && exec 6>/dev/null
1225
1226
1227ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228ac_ls_di=`ls -di .` &&
1229ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230  as_fn_error "working directory cannot be determined"
1231test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232  as_fn_error "pwd does not report name of working directory"
1233
1234
1235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237  ac_srcdir_defaulted=yes
1238  # Try the directory containing this script, then the parent directory.
1239  ac_confdir=`$as_dirname -- "$as_myself" ||
1240$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241	 X"$as_myself" : 'X\(//\)[^/]' \| \
1242	 X"$as_myself" : 'X\(//\)$' \| \
1243	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244$as_echo X"$as_myself" |
1245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246	    s//\1/
1247	    q
1248	  }
1249	  /^X\(\/\/\)[^/].*/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\/\)$/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\).*/{
1258	    s//\1/
1259	    q
1260	  }
1261	  s/.*/./; q'`
1262  srcdir=$ac_confdir
1263  if test ! -r "$srcdir/$ac_unique_file"; then
1264    srcdir=..
1265  fi
1266else
1267  ac_srcdir_defaulted=no
1268fi
1269if test ! -r "$srcdir/$ac_unique_file"; then
1270  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1272fi
1273ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274ac_abs_confdir=`(
1275	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1276	pwd)`
1277# When building in place, set srcdir=.
1278if test "$ac_abs_confdir" = "$ac_pwd"; then
1279  srcdir=.
1280fi
1281# Remove unnecessary trailing slashes from srcdir.
1282# Double slashes in file names in object file debugging info
1283# mess up M-x gdb in Emacs.
1284case $srcdir in
1285*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286esac
1287for ac_var in $ac_precious_vars; do
1288  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289  eval ac_env_${ac_var}_value=\$${ac_var}
1290  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292done
1293
1294#
1295# Report the --help message.
1296#
1297if test "$ac_init_help" = "long"; then
1298  # Omit some internal or obsolete options to make the list less imposing.
1299  # This message is too long to be a string in the A/UX 3.1 sh.
1300  cat <<_ACEOF
1301\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1302
1303Usage: $0 [OPTION]... [VAR=VALUE]...
1304
1305To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306VAR=VALUE.  See below for descriptions of some of the useful variables.
1307
1308Defaults for the options are specified in brackets.
1309
1310Configuration:
1311  -h, --help              display this help and exit
1312      --help=short        display options specific to this package
1313      --help=recursive    display the short help of all the included packages
1314  -V, --version           display version information and exit
1315  -q, --quiet, --silent   do not print \`checking...' messages
1316      --cache-file=FILE   cache test results in FILE [disabled]
1317  -C, --config-cache      alias for \`--cache-file=config.cache'
1318  -n, --no-create         do not create output files
1319      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1320
1321Installation directories:
1322  --prefix=PREFIX         install architecture-independent files in PREFIX
1323                          [$ac_default_prefix]
1324  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1325                          [PREFIX]
1326
1327By default, \`make install' will install all the files in
1328\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1329an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330for instance \`--prefix=\$HOME'.
1331
1332For better control, use the options below.
1333
1334Fine tuning of the installation directories:
1335  --bindir=DIR            user executables [EPREFIX/bin]
1336  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1337  --libexecdir=DIR        program executables [EPREFIX/libexec]
1338  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1339  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1340  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1341  --libdir=DIR            object code libraries [EPREFIX/lib]
1342  --includedir=DIR        C header files [PREFIX/include]
1343  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1344  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1345  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1346  --infodir=DIR           info documentation [DATAROOTDIR/info]
1347  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1348  --mandir=DIR            man documentation [DATAROOTDIR/man]
1349  --docdir=DIR            documentation root [DATAROOTDIR/doc/libbacktrace]
1350  --htmldir=DIR           html documentation [DOCDIR]
1351  --dvidir=DIR            dvi documentation [DOCDIR]
1352  --pdfdir=DIR            pdf documentation [DOCDIR]
1353  --psdir=DIR             ps documentation [DOCDIR]
1354_ACEOF
1355
1356  cat <<\_ACEOF
1357
1358Program names:
1359  --program-prefix=PREFIX            prepend PREFIX to installed program names
1360  --program-suffix=SUFFIX            append SUFFIX to installed program names
1361  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1362
1363System types:
1364  --build=BUILD     configure for building on BUILD [guessed]
1365  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1366  --target=TARGET   configure for building compilers for TARGET [HOST]
1367_ACEOF
1368fi
1369
1370if test -n "$ac_init_help"; then
1371  case $ac_init_help in
1372     short | recursive ) echo "Configuration of package-unused version-unused:";;
1373   esac
1374  cat <<\_ACEOF
1375
1376Optional Features:
1377  --disable-option-checking  ignore unrecognized --enable/--with options
1378  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1379  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1380  --enable-multilib       build many library versions (default)
1381  --enable-maintainer-mode  enable make rules and dependencies not useful
1382			  (and sometimes confusing) to the casual installer
1383  --enable-shared[=PKGS]  build shared libraries [default=yes]
1384  --enable-static[=PKGS]  build static libraries [default=yes]
1385  --enable-fast-install[=PKGS]
1386                          optimize for fast installation [default=yes]
1387  --disable-libtool-lock  avoid locking (might break parallel builds)
1388  --disable-largefile     omit support for large files
1389  --enable-cet            enable Intel CET in target libraries [default=no]
1390  --enable-host-shared    build host code as shared libraries
1391
1392Optional Packages:
1393  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1394  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1395  --with-target-subdir=SUBDIR      Configuring in a subdirectory for target
1396  --with-pic              try to use only PIC/non-PIC objects [default=use
1397                          both]
1398  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1399  --with-system-libunwind use installed libunwind
1400
1401Some influential environment variables:
1402  CC          C compiler command
1403  CFLAGS      C compiler flags
1404  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405              nonstandard directory <lib dir>
1406  LIBS        libraries to pass to the linker, e.g. -l<library>
1407  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408              you have headers in a nonstandard directory <include dir>
1409  CPP         C preprocessor
1410  OBJCOPY     location of objcopy
1411
1412Use these variables to override the choices made by `configure' or to help
1413it to find libraries and programs with nonstandard names/locations.
1414
1415Report bugs to the package provider.
1416_ACEOF
1417ac_status=$?
1418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421  # If there are subdirs, report their specific --help.
1422  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423    test -d "$ac_dir" ||
1424      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425      continue
1426    ac_builddir=.
1427
1428case "$ac_dir" in
1429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430*)
1431  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432  # A ".." for each directory in $ac_dir_suffix.
1433  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434  case $ac_top_builddir_sub in
1435  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437  esac ;;
1438esac
1439ac_abs_top_builddir=$ac_pwd
1440ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441# for backward compatibility:
1442ac_top_builddir=$ac_top_build_prefix
1443
1444case $srcdir in
1445  .)  # We are building in place.
1446    ac_srcdir=.
1447    ac_top_srcdir=$ac_top_builddir_sub
1448    ac_abs_top_srcdir=$ac_pwd ;;
1449  [\\/]* | ?:[\\/]* )  # Absolute name.
1450    ac_srcdir=$srcdir$ac_dir_suffix;
1451    ac_top_srcdir=$srcdir
1452    ac_abs_top_srcdir=$srcdir ;;
1453  *) # Relative name.
1454    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455    ac_top_srcdir=$ac_top_build_prefix$srcdir
1456    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457esac
1458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460    cd "$ac_dir" || { ac_status=$?; continue; }
1461    # Check for guested configure.
1462    if test -f "$ac_srcdir/configure.gnu"; then
1463      echo &&
1464      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465    elif test -f "$ac_srcdir/configure"; then
1466      echo &&
1467      $SHELL "$ac_srcdir/configure" --help=recursive
1468    else
1469      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470    fi || ac_status=$?
1471    cd "$ac_pwd" || { ac_status=$?; break; }
1472  done
1473fi
1474
1475test -n "$ac_init_help" && exit $ac_status
1476if $ac_init_version; then
1477  cat <<\_ACEOF
1478package-unused configure version-unused
1479generated by GNU Autoconf 2.64
1480
1481Copyright (C) 2009 Free Software Foundation, Inc.
1482This configure script is free software; the Free Software Foundation
1483gives unlimited permission to copy, distribute and modify it.
1484_ACEOF
1485  exit
1486fi
1487
1488## ------------------------ ##
1489## Autoconf initialization. ##
1490## ------------------------ ##
1491
1492# ac_fn_c_try_compile LINENO
1493# --------------------------
1494# Try to compile conftest.$ac_ext, and return whether this succeeded.
1495ac_fn_c_try_compile ()
1496{
1497  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498  rm -f conftest.$ac_objext
1499  if { { ac_try="$ac_compile"
1500case "(($ac_try" in
1501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502  *) ac_try_echo=$ac_try;;
1503esac
1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505$as_echo "$ac_try_echo"; } >&5
1506  (eval "$ac_compile") 2>conftest.err
1507  ac_status=$?
1508  if test -s conftest.err; then
1509    grep -v '^ *+' conftest.err >conftest.er1
1510    cat conftest.er1 >&5
1511    mv -f conftest.er1 conftest.err
1512  fi
1513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514  test $ac_status = 0; } && {
1515	 test -z "$ac_c_werror_flag" ||
1516	 test ! -s conftest.err
1517       } && test -s conftest.$ac_objext; then :
1518  ac_retval=0
1519else
1520  $as_echo "$as_me: failed program was:" >&5
1521sed 's/^/| /' conftest.$ac_ext >&5
1522
1523	ac_retval=1
1524fi
1525  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1526  return $ac_retval
1527
1528} # ac_fn_c_try_compile
1529
1530# ac_fn_c_try_cpp LINENO
1531# ----------------------
1532# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1533ac_fn_c_try_cpp ()
1534{
1535  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536  if { { ac_try="$ac_cpp conftest.$ac_ext"
1537case "(($ac_try" in
1538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539  *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1544  ac_status=$?
1545  if test -s conftest.err; then
1546    grep -v '^ *+' conftest.err >conftest.er1
1547    cat conftest.er1 >&5
1548    mv -f conftest.er1 conftest.err
1549  fi
1550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551  test $ac_status = 0; } >/dev/null && {
1552	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1553	 test ! -s conftest.err
1554       }; then :
1555  ac_retval=0
1556else
1557  $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
1559
1560    ac_retval=1
1561fi
1562  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563  return $ac_retval
1564
1565} # ac_fn_c_try_cpp
1566
1567# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1568# -------------------------------------------------------
1569# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1570# the include files in INCLUDES and setting the cache variable VAR
1571# accordingly.
1572ac_fn_c_check_header_mongrel ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577$as_echo_n "checking for $2... " >&6; }
1578if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1579  $as_echo_n "(cached) " >&6
1580fi
1581eval ac_res=\$$3
1582	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1583$as_echo "$ac_res" >&6; }
1584else
1585  # Is the header compilable?
1586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1587$as_echo_n "checking $2 usability... " >&6; }
1588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589/* end confdefs.h.  */
1590$4
1591#include <$2>
1592_ACEOF
1593if ac_fn_c_try_compile "$LINENO"; then :
1594  ac_header_compiler=yes
1595else
1596  ac_header_compiler=no
1597fi
1598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1600$as_echo "$ac_header_compiler" >&6; }
1601
1602# Is the header present?
1603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1604$as_echo_n "checking $2 presence... " >&6; }
1605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606/* end confdefs.h.  */
1607#include <$2>
1608_ACEOF
1609if ac_fn_c_try_cpp "$LINENO"; then :
1610  ac_header_preproc=yes
1611else
1612  ac_header_preproc=no
1613fi
1614rm -f conftest.err conftest.$ac_ext
1615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1616$as_echo "$ac_header_preproc" >&6; }
1617
1618# So?  What about this header?
1619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1620  yes:no: )
1621    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1622$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1623    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1625    ;;
1626  no:yes:* )
1627    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1628$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1629    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1630$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1631    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1632$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1633    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1634$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1636$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1637    ;;
1638esac
1639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640$as_echo_n "checking for $2... " >&6; }
1641if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1642  $as_echo_n "(cached) " >&6
1643else
1644  eval "$3=\$ac_header_compiler"
1645fi
1646eval ac_res=\$$3
1647	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648$as_echo "$ac_res" >&6; }
1649fi
1650  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1651
1652} # ac_fn_c_check_header_mongrel
1653
1654# ac_fn_c_try_run LINENO
1655# ----------------------
1656# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657# that executables *can* be run.
1658ac_fn_c_try_run ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  if { { ac_try="$ac_link"
1662case "(($ac_try" in
1663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664  *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668  (eval "$ac_link") 2>&5
1669  ac_status=$?
1670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1672  { { case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678  (eval "$ac_try") 2>&5
1679  ac_status=$?
1680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681  test $ac_status = 0; }; }; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: program exited with status $ac_status" >&5
1685       $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688       ac_retval=$ac_status
1689fi
1690  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692  return $ac_retval
1693
1694} # ac_fn_c_try_run
1695
1696# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697# -------------------------------------------------------
1698# Tests whether HEADER exists and can be compiled using the include files in
1699# INCLUDES, setting the cache variable VAR accordingly.
1700ac_fn_c_check_header_compile ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704$as_echo_n "checking for $2... " >&6; }
1705if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1706  $as_echo_n "(cached) " >&6
1707else
1708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709/* end confdefs.h.  */
1710$4
1711#include <$2>
1712_ACEOF
1713if ac_fn_c_try_compile "$LINENO"; then :
1714  eval "$3=yes"
1715else
1716  eval "$3=no"
1717fi
1718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719fi
1720eval ac_res=\$$3
1721	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722$as_echo "$ac_res" >&6; }
1723  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724
1725} # ac_fn_c_check_header_compile
1726
1727# ac_fn_c_try_link LINENO
1728# -----------------------
1729# Try to link conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_link ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  rm -f conftest.$ac_objext conftest$ac_exeext
1734  if { { ac_try="$ac_link"
1735case "(($ac_try" in
1736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737  *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741  (eval "$ac_link") 2>conftest.err
1742  ac_status=$?
1743  if test -s conftest.err; then
1744    grep -v '^ *+' conftest.err >conftest.er1
1745    cat conftest.er1 >&5
1746    mv -f conftest.er1 conftest.err
1747  fi
1748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749  test $ac_status = 0; } && {
1750	 test -z "$ac_c_werror_flag" ||
1751	 test ! -s conftest.err
1752       } && test -s conftest$ac_exeext && {
1753	 test "$cross_compiling" = yes ||
1754	 $as_test_x conftest$ac_exeext
1755       }; then :
1756  ac_retval=0
1757else
1758  $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
1760
1761	ac_retval=1
1762fi
1763  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765  # interfere with the next link command; also delete a directory that is
1766  # left behind by Apple's compiler.  We do this before executing the actions.
1767  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769  return $ac_retval
1770
1771} # ac_fn_c_try_link
1772
1773# ac_fn_c_check_func LINENO FUNC VAR
1774# ----------------------------------
1775# Tests whether FUNC exists, setting the cache variable VAR accordingly
1776ac_fn_c_check_func ()
1777{
1778  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782  $as_echo_n "(cached) " >&6
1783else
1784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h.  */
1786/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1788#define $2 innocuous_$2
1789
1790/* System header to define __stub macros and hopefully few prototypes,
1791    which can conflict with char $2 (); below.
1792    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793    <limits.h> exists even on freestanding compilers.  */
1794
1795#ifdef __STDC__
1796# include <limits.h>
1797#else
1798# include <assert.h>
1799#endif
1800
1801#undef $2
1802
1803/* Override any GCC internal prototype to avoid an error.
1804   Use char because int might match the return type of a GCC
1805   builtin and then its argument prototype would still apply.  */
1806#ifdef __cplusplus
1807extern "C"
1808#endif
1809char $2 ();
1810/* The GNU C library defines this for functions which it implements
1811    to always fail with ENOSYS.  Some functions are actually named
1812    something starting with __ and the normal name is an alias.  */
1813#if defined __stub_$2 || defined __stub___$2
1814choke me
1815#endif
1816
1817int
1818main ()
1819{
1820return $2 ();
1821  ;
1822  return 0;
1823}
1824_ACEOF
1825if ac_fn_c_try_link "$LINENO"; then :
1826  eval "$3=yes"
1827else
1828  eval "$3=no"
1829fi
1830rm -f core conftest.err conftest.$ac_objext \
1831    conftest$ac_exeext conftest.$ac_ext
1832fi
1833eval ac_res=\$$3
1834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
1836  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837
1838} # ac_fn_c_check_func
1839
1840# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1841# -------------------------------------------
1842# Tests whether TYPE exists after having included INCLUDES, setting cache
1843# variable VAR accordingly.
1844ac_fn_c_check_type ()
1845{
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850  $as_echo_n "(cached) " >&6
1851else
1852  eval "$3=no"
1853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h.  */
1855$4
1856int
1857main ()
1858{
1859if (sizeof ($2))
1860	 return 0;
1861  ;
1862  return 0;
1863}
1864_ACEOF
1865if ac_fn_c_try_compile "$LINENO"; then :
1866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868$4
1869int
1870main ()
1871{
1872if (sizeof (($2)))
1873	    return 0;
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_compile "$LINENO"; then :
1879
1880else
1881  eval "$3=yes"
1882fi
1883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884fi
1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891
1892} # ac_fn_c_check_type
1893
1894# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1895# --------------------------------------------
1896# Tries to find the compile-time value of EXPR in a program that includes
1897# INCLUDES, setting VAR accordingly. Returns whether the value could be
1898# computed
1899ac_fn_c_compute_int ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  if test "$cross_compiling" = yes; then
1903    # Depending upon the size, compute the lo and hi bounds.
1904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906$4
1907int
1908main ()
1909{
1910static int test_array [1 - 2 * !(($2) >= 0)];
1911test_array [0] = 0
1912
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918  ac_lo=0 ac_mid=0
1919  while :; do
1920    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922$4
1923int
1924main ()
1925{
1926static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1927test_array [0] = 0
1928
1929  ;
1930  return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934  ac_hi=$ac_mid; break
1935else
1936  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1937			if test $ac_lo -le $ac_mid; then
1938			  ac_lo= ac_hi=
1939			  break
1940			fi
1941			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944  done
1945else
1946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949int
1950main ()
1951{
1952static int test_array [1 - 2 * !(($2) < 0)];
1953test_array [0] = 0
1954
1955  ;
1956  return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960  ac_hi=-1 ac_mid=-1
1961  while :; do
1962    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h.  */
1964$4
1965int
1966main ()
1967{
1968static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1969test_array [0] = 0
1970
1971  ;
1972  return 0;
1973}
1974_ACEOF
1975if ac_fn_c_try_compile "$LINENO"; then :
1976  ac_lo=$ac_mid; break
1977else
1978  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1979			if test $ac_mid -le $ac_hi; then
1980			  ac_lo= ac_hi=
1981			  break
1982			fi
1983			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986  done
1987else
1988  ac_lo= ac_hi=
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991fi
1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993# Binary search between lo and hi bounds.
1994while test "x$ac_lo" != "x$ac_hi"; do
1995  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h.  */
1998$4
1999int
2000main ()
2001{
2002static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2003test_array [0] = 0
2004
2005  ;
2006  return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_compile "$LINENO"; then :
2010  ac_hi=$ac_mid
2011else
2012  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2013fi
2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015done
2016case $ac_lo in #((
2017?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2018'') ac_retval=1 ;;
2019esac
2020  else
2021    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024static long int longval () { return $2; }
2025static unsigned long int ulongval () { return $2; }
2026#include <stdio.h>
2027#include <stdlib.h>
2028int
2029main ()
2030{
2031
2032  FILE *f = fopen ("conftest.val", "w");
2033  if (! f)
2034    return 1;
2035  if (($2) < 0)
2036    {
2037      long int i = longval ();
2038      if (i != ($2))
2039	return 1;
2040      fprintf (f, "%ld", i);
2041    }
2042  else
2043    {
2044      unsigned long int i = ulongval ();
2045      if (i != ($2))
2046	return 1;
2047      fprintf (f, "%lu", i);
2048    }
2049  /* Do not output a trailing newline, as this causes \r\n confusion
2050     on some platforms.  */
2051  return ferror (f) || fclose (f) != 0;
2052
2053  ;
2054  return 0;
2055}
2056_ACEOF
2057if ac_fn_c_try_run "$LINENO"; then :
2058  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2059else
2060  ac_retval=1
2061fi
2062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2063  conftest.$ac_objext conftest.beam conftest.$ac_ext
2064rm -f conftest.val
2065
2066  fi
2067  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068  return $ac_retval
2069
2070} # ac_fn_c_compute_int
2071
2072# ac_fn_c_check_decl LINENO SYMBOL VAR
2073# ------------------------------------
2074# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2075ac_fn_c_check_decl ()
2076{
2077  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078  as_decl_name=`echo $2|sed 's/ *(.*//'`
2079  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2081$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2082if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2083  $as_echo_n "(cached) " >&6
2084else
2085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h.  */
2087$4
2088int
2089main ()
2090{
2091#ifndef $as_decl_name
2092#ifdef __cplusplus
2093  (void) $as_decl_use;
2094#else
2095  (void) $as_decl_name;
2096#endif
2097#endif
2098
2099  ;
2100  return 0;
2101}
2102_ACEOF
2103if ac_fn_c_try_compile "$LINENO"; then :
2104  eval "$3=yes"
2105else
2106  eval "$3=no"
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110eval ac_res=\$$3
2111	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112$as_echo "$ac_res" >&6; }
2113  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114
2115} # ac_fn_c_check_decl
2116cat >config.log <<_ACEOF
2117This file contains any messages produced by compilers while
2118running configure, to aid debugging if configure makes a mistake.
2119
2120It was created by package-unused $as_me version-unused, which was
2121generated by GNU Autoconf 2.64.  Invocation command line was
2122
2123  $ $0 $@
2124
2125_ACEOF
2126exec 5>>config.log
2127{
2128cat <<_ASUNAME
2129## --------- ##
2130## Platform. ##
2131## --------- ##
2132
2133hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2134uname -m = `(uname -m) 2>/dev/null || echo unknown`
2135uname -r = `(uname -r) 2>/dev/null || echo unknown`
2136uname -s = `(uname -s) 2>/dev/null || echo unknown`
2137uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138
2139/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2140/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2141
2142/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2143/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2144/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2145/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2146/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2147/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2148/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2149
2150_ASUNAME
2151
2152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153for as_dir in $PATH
2154do
2155  IFS=$as_save_IFS
2156  test -z "$as_dir" && as_dir=.
2157    $as_echo "PATH: $as_dir"
2158  done
2159IFS=$as_save_IFS
2160
2161} >&5
2162
2163cat >&5 <<_ACEOF
2164
2165
2166## ----------- ##
2167## Core tests. ##
2168## ----------- ##
2169
2170_ACEOF
2171
2172
2173# Keep a trace of the command line.
2174# Strip out --no-create and --no-recursion so they do not pile up.
2175# Strip out --silent because we don't want to record it for future runs.
2176# Also quote any args containing shell meta-characters.
2177# Make two passes to allow for proper duplicate-argument suppression.
2178ac_configure_args=
2179ac_configure_args0=
2180ac_configure_args1=
2181ac_must_keep_next=false
2182for ac_pass in 1 2
2183do
2184  for ac_arg
2185  do
2186    case $ac_arg in
2187    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2188    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2189    | -silent | --silent | --silen | --sile | --sil)
2190      continue ;;
2191    *\'*)
2192      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2193    esac
2194    case $ac_pass in
2195    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2196    2)
2197      as_fn_append ac_configure_args1 " '$ac_arg'"
2198      if test $ac_must_keep_next = true; then
2199	ac_must_keep_next=false # Got value, back to normal.
2200      else
2201	case $ac_arg in
2202	  *=* | --config-cache | -C | -disable-* | --disable-* \
2203	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2204	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2205	  | -with-* | --with-* | -without-* | --without-* | --x)
2206	    case "$ac_configure_args0 " in
2207	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2208	    esac
2209	    ;;
2210	  -* ) ac_must_keep_next=true ;;
2211	esac
2212      fi
2213      as_fn_append ac_configure_args " '$ac_arg'"
2214      ;;
2215    esac
2216  done
2217done
2218{ ac_configure_args0=; unset ac_configure_args0;}
2219{ ac_configure_args1=; unset ac_configure_args1;}
2220
2221# When interrupted or exit'd, cleanup temporary files, and complete
2222# config.log.  We remove comments because anyway the quotes in there
2223# would cause problems or look ugly.
2224# WARNING: Use '\'' to represent an apostrophe within the trap.
2225# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2226trap 'exit_status=$?
2227  # Save into config.log some information that might help in debugging.
2228  {
2229    echo
2230
2231    cat <<\_ASBOX
2232## ---------------- ##
2233## Cache variables. ##
2234## ---------------- ##
2235_ASBOX
2236    echo
2237    # The following way of writing the cache mishandles newlines in values,
2238(
2239  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2240    eval ac_val=\$$ac_var
2241    case $ac_val in #(
2242    *${as_nl}*)
2243      case $ac_var in #(
2244      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2245$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2246      esac
2247      case $ac_var in #(
2248      _ | IFS | as_nl) ;; #(
2249      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2250      *) { eval $ac_var=; unset $ac_var;} ;;
2251      esac ;;
2252    esac
2253  done
2254  (set) 2>&1 |
2255    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2256    *${as_nl}ac_space=\ *)
2257      sed -n \
2258	"s/'\''/'\''\\\\'\'''\''/g;
2259	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2260      ;; #(
2261    *)
2262      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2263      ;;
2264    esac |
2265    sort
2266)
2267    echo
2268
2269    cat <<\_ASBOX
2270## ----------------- ##
2271## Output variables. ##
2272## ----------------- ##
2273_ASBOX
2274    echo
2275    for ac_var in $ac_subst_vars
2276    do
2277      eval ac_val=\$$ac_var
2278      case $ac_val in
2279      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280      esac
2281      $as_echo "$ac_var='\''$ac_val'\''"
2282    done | sort
2283    echo
2284
2285    if test -n "$ac_subst_files"; then
2286      cat <<\_ASBOX
2287## ------------------- ##
2288## File substitutions. ##
2289## ------------------- ##
2290_ASBOX
2291      echo
2292      for ac_var in $ac_subst_files
2293      do
2294	eval ac_val=\$$ac_var
2295	case $ac_val in
2296	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297	esac
2298	$as_echo "$ac_var='\''$ac_val'\''"
2299      done | sort
2300      echo
2301    fi
2302
2303    if test -s confdefs.h; then
2304      cat <<\_ASBOX
2305## ----------- ##
2306## confdefs.h. ##
2307## ----------- ##
2308_ASBOX
2309      echo
2310      cat confdefs.h
2311      echo
2312    fi
2313    test "$ac_signal" != 0 &&
2314      $as_echo "$as_me: caught signal $ac_signal"
2315    $as_echo "$as_me: exit $exit_status"
2316  } >&5
2317  rm -f core *.core core.conftest.* &&
2318    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2319    exit $exit_status
2320' 0
2321for ac_signal in 1 2 13 15; do
2322  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2323done
2324ac_signal=0
2325
2326# confdefs.h avoids OS command line length limits that DEFS can exceed.
2327rm -f -r conftest* confdefs.h
2328
2329$as_echo "/* confdefs.h */" > confdefs.h
2330
2331# Predefined preprocessor variables.
2332
2333cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_NAME "$PACKAGE_NAME"
2335_ACEOF
2336
2337cat >>confdefs.h <<_ACEOF
2338#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2339_ACEOF
2340
2341cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_VERSION "$PACKAGE_VERSION"
2343_ACEOF
2344
2345cat >>confdefs.h <<_ACEOF
2346#define PACKAGE_STRING "$PACKAGE_STRING"
2347_ACEOF
2348
2349cat >>confdefs.h <<_ACEOF
2350#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2351_ACEOF
2352
2353cat >>confdefs.h <<_ACEOF
2354#define PACKAGE_URL "$PACKAGE_URL"
2355_ACEOF
2356
2357
2358# Let the site file select an alternate cache file if it wants to.
2359# Prefer an explicitly selected file to automatically selected ones.
2360ac_site_file1=NONE
2361ac_site_file2=NONE
2362if test -n "$CONFIG_SITE"; then
2363  ac_site_file1=$CONFIG_SITE
2364elif test "x$prefix" != xNONE; then
2365  ac_site_file1=$prefix/share/config.site
2366  ac_site_file2=$prefix/etc/config.site
2367else
2368  ac_site_file1=$ac_default_prefix/share/config.site
2369  ac_site_file2=$ac_default_prefix/etc/config.site
2370fi
2371for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2372do
2373  test "x$ac_site_file" = xNONE && continue
2374  if test -r "$ac_site_file"; then
2375    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2376$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2377    sed 's/^/| /' "$ac_site_file" >&5
2378    . "$ac_site_file"
2379  fi
2380done
2381
2382if test -r "$cache_file"; then
2383  # Some versions of bash will fail to source /dev/null (special
2384  # files actually), so we avoid doing that.
2385  if test -f "$cache_file"; then
2386    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2387$as_echo "$as_me: loading cache $cache_file" >&6;}
2388    case $cache_file in
2389      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2390      *)                      . "./$cache_file";;
2391    esac
2392  fi
2393else
2394  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2395$as_echo "$as_me: creating cache $cache_file" >&6;}
2396  >$cache_file
2397fi
2398
2399# Check that the precious variables saved in the cache have kept the same
2400# value.
2401ac_cache_corrupted=false
2402for ac_var in $ac_precious_vars; do
2403  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2404  eval ac_new_set=\$ac_env_${ac_var}_set
2405  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2406  eval ac_new_val=\$ac_env_${ac_var}_value
2407  case $ac_old_set,$ac_new_set in
2408    set,)
2409      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2410$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2411      ac_cache_corrupted=: ;;
2412    ,set)
2413      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2414$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2415      ac_cache_corrupted=: ;;
2416    ,);;
2417    *)
2418      if test "x$ac_old_val" != "x$ac_new_val"; then
2419	# differences in whitespace do not lead to failure.
2420	ac_old_val_w=`echo x $ac_old_val`
2421	ac_new_val_w=`echo x $ac_new_val`
2422	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2423	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2424$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2425	  ac_cache_corrupted=:
2426	else
2427	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2428$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2429	  eval $ac_var=\$ac_old_val
2430	fi
2431	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2432$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2433	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2434$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2435      fi;;
2436  esac
2437  # Pass precious variables to config.status.
2438  if test "$ac_new_set" = set; then
2439    case $ac_new_val in
2440    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2441    *) ac_arg=$ac_var=$ac_new_val ;;
2442    esac
2443    case " $ac_configure_args " in
2444      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2445      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2446    esac
2447  fi
2448done
2449if $ac_cache_corrupted; then
2450  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2453$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2454  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2455fi
2456## -------------------- ##
2457## Main body of script. ##
2458## -------------------- ##
2459
2460ac_ext=c
2461ac_cpp='$CPP $CPPFLAGS'
2462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465
2466
2467
2468
2469
2470
2471ac_config_headers="$ac_config_headers config.h"
2472
2473
2474if test -n "${with_target_subdir}"; then
2475  # Default to --enable-multilib
2476# Check whether --enable-multilib was given.
2477if test "${enable_multilib+set}" = set; then :
2478  enableval=$enable_multilib; case "$enableval" in
2479  yes) multilib=yes ;;
2480  no)  multilib=no ;;
2481  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2482 esac
2483else
2484  multilib=yes
2485fi
2486
2487
2488# We may get other options which we leave undocumented:
2489# --with-target-subdir, --with-multisrctop, --with-multisubdir
2490# See config-ml.in if you want the gory details.
2491
2492if test "$srcdir" = "."; then
2493  if test "$with_target_subdir" != "."; then
2494    multi_basedir="$srcdir/$with_multisrctop../.."
2495  else
2496    multi_basedir="$srcdir/$with_multisrctop.."
2497  fi
2498else
2499  multi_basedir="$srcdir/.."
2500fi
2501
2502
2503# Even if the default multilib is not a cross compilation,
2504# it may be that some of the other multilibs are.
2505if test $cross_compiling = no && test $multilib = yes \
2506   && test "x${with_multisubdir}" != x ; then
2507   cross_compiling=maybe
2508fi
2509
2510ac_config_commands="$ac_config_commands default-1"
2511
2512fi
2513
2514ac_aux_dir=
2515for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2516  for ac_t in install-sh install.sh shtool; do
2517    if test -f "$ac_dir/$ac_t"; then
2518      ac_aux_dir=$ac_dir
2519      ac_install_sh="$ac_aux_dir/$ac_t -c"
2520      break 2
2521    fi
2522  done
2523done
2524if test -z "$ac_aux_dir"; then
2525  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2526fi
2527
2528# These three variables are undocumented and unsupported,
2529# and are intended to be withdrawn in a future Autoconf release.
2530# They can cause serious problems if a builder's source tree is in a directory
2531# whose full name contains unusual characters.
2532ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2533ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2534ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2535
2536
2537# Make sure we can run config.sub.
2538$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2539  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2540
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2542$as_echo_n "checking build system type... " >&6; }
2543if test "${ac_cv_build+set}" = set; then :
2544  $as_echo_n "(cached) " >&6
2545else
2546  ac_build_alias=$build_alias
2547test "x$ac_build_alias" = x &&
2548  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2549test "x$ac_build_alias" = x &&
2550  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2551ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2552  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2553
2554fi
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2556$as_echo "$ac_cv_build" >&6; }
2557case $ac_cv_build in
2558*-*-*) ;;
2559*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2560esac
2561build=$ac_cv_build
2562ac_save_IFS=$IFS; IFS='-'
2563set x $ac_cv_build
2564shift
2565build_cpu=$1
2566build_vendor=$2
2567shift; shift
2568# Remember, the first character of IFS is used to create $*,
2569# except with old shells:
2570build_os=$*
2571IFS=$ac_save_IFS
2572case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2573
2574
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2576$as_echo_n "checking host system type... " >&6; }
2577if test "${ac_cv_host+set}" = set; then :
2578  $as_echo_n "(cached) " >&6
2579else
2580  if test "x$host_alias" = x; then
2581  ac_cv_host=$ac_cv_build
2582else
2583  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2584    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2585fi
2586
2587fi
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2589$as_echo "$ac_cv_host" >&6; }
2590case $ac_cv_host in
2591*-*-*) ;;
2592*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2593esac
2594host=$ac_cv_host
2595ac_save_IFS=$IFS; IFS='-'
2596set x $ac_cv_host
2597shift
2598host_cpu=$1
2599host_vendor=$2
2600shift; shift
2601# Remember, the first character of IFS is used to create $*,
2602# except with old shells:
2603host_os=$*
2604IFS=$ac_save_IFS
2605case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2606
2607
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2609$as_echo_n "checking target system type... " >&6; }
2610if test "${ac_cv_target+set}" = set; then :
2611  $as_echo_n "(cached) " >&6
2612else
2613  if test "x$target_alias" = x; then
2614  ac_cv_target=$ac_cv_host
2615else
2616  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2617    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2618fi
2619
2620fi
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2622$as_echo "$ac_cv_target" >&6; }
2623case $ac_cv_target in
2624*-*-*) ;;
2625*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2626esac
2627target=$ac_cv_target
2628ac_save_IFS=$IFS; IFS='-'
2629set x $ac_cv_target
2630shift
2631target_cpu=$1
2632target_vendor=$2
2633shift; shift
2634# Remember, the first character of IFS is used to create $*,
2635# except with old shells:
2636target_os=$*
2637IFS=$ac_save_IFS
2638case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2639
2640
2641# The aliases save the names the user supplied, while $host etc.
2642# will get canonicalized.
2643test -n "$target_alias" &&
2644  test "$program_prefix$program_suffix$program_transform_name" = \
2645    NONENONEs,x,x, &&
2646  program_prefix=${target_alias}-
2647
2648target_alias=${target_alias-$host_alias}
2649
2650ac_ext=c
2651ac_cpp='$CPP $CPPFLAGS'
2652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655if test -n "$ac_tool_prefix"; then
2656  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2657set dummy ${ac_tool_prefix}gcc; ac_word=$2
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659$as_echo_n "checking for $ac_word... " >&6; }
2660if test "${ac_cv_prog_CC+set}" = set; then :
2661  $as_echo_n "(cached) " >&6
2662else
2663  if test -n "$CC"; then
2664  ac_cv_prog_CC="$CC" # Let the user override the test.
2665else
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669  IFS=$as_save_IFS
2670  test -z "$as_dir" && as_dir=.
2671    for ac_exec_ext in '' $ac_executable_extensions; do
2672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675    break 2
2676  fi
2677done
2678  done
2679IFS=$as_save_IFS
2680
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
2685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2686$as_echo "$CC" >&6; }
2687else
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689$as_echo "no" >&6; }
2690fi
2691
2692
2693fi
2694if test -z "$ac_cv_prog_CC"; then
2695  ac_ct_CC=$CC
2696  # Extract the first word of "gcc", so it can be a program name with args.
2697set dummy gcc; ac_word=$2
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699$as_echo_n "checking for $ac_word... " >&6; }
2700if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2701  $as_echo_n "(cached) " >&6
2702else
2703  if test -n "$ac_ct_CC"; then
2704  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2705else
2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707for as_dir in $PATH
2708do
2709  IFS=$as_save_IFS
2710  test -z "$as_dir" && as_dir=.
2711    for ac_exec_ext in '' $ac_executable_extensions; do
2712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713    ac_cv_prog_ac_ct_CC="gcc"
2714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715    break 2
2716  fi
2717done
2718  done
2719IFS=$as_save_IFS
2720
2721fi
2722fi
2723ac_ct_CC=$ac_cv_prog_ac_ct_CC
2724if test -n "$ac_ct_CC"; then
2725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2726$as_echo "$ac_ct_CC" >&6; }
2727else
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729$as_echo "no" >&6; }
2730fi
2731
2732  if test "x$ac_ct_CC" = x; then
2733    CC=""
2734  else
2735    case $cross_compiling:$ac_tool_warned in
2736yes:)
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739ac_tool_warned=yes ;;
2740esac
2741    CC=$ac_ct_CC
2742  fi
2743else
2744  CC="$ac_cv_prog_CC"
2745fi
2746
2747if test -z "$CC"; then
2748          if test -n "$ac_tool_prefix"; then
2749    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2750set dummy ${ac_tool_prefix}cc; ac_word=$2
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752$as_echo_n "checking for $ac_word... " >&6; }
2753if test "${ac_cv_prog_CC+set}" = set; then :
2754  $as_echo_n "(cached) " >&6
2755else
2756  if test -n "$CC"; then
2757  ac_cv_prog_CC="$CC" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762  IFS=$as_save_IFS
2763  test -z "$as_dir" && as_dir=.
2764    for ac_exec_ext in '' $ac_executable_extensions; do
2765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766    ac_cv_prog_CC="${ac_tool_prefix}cc"
2767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768    break 2
2769  fi
2770done
2771  done
2772IFS=$as_save_IFS
2773
2774fi
2775fi
2776CC=$ac_cv_prog_CC
2777if test -n "$CC"; then
2778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779$as_echo "$CC" >&6; }
2780else
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782$as_echo "no" >&6; }
2783fi
2784
2785
2786  fi
2787fi
2788if test -z "$CC"; then
2789  # Extract the first word of "cc", so it can be a program name with args.
2790set dummy cc; ac_word=$2
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
2793if test "${ac_cv_prog_CC+set}" = set; then :
2794  $as_echo_n "(cached) " >&6
2795else
2796  if test -n "$CC"; then
2797  ac_cv_prog_CC="$CC" # Let the user override the test.
2798else
2799  ac_prog_rejected=no
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803  IFS=$as_save_IFS
2804  test -z "$as_dir" && as_dir=.
2805    for ac_exec_ext in '' $ac_executable_extensions; do
2806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2808       ac_prog_rejected=yes
2809       continue
2810     fi
2811    ac_cv_prog_CC="cc"
2812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813    break 2
2814  fi
2815done
2816  done
2817IFS=$as_save_IFS
2818
2819if test $ac_prog_rejected = yes; then
2820  # We found a bogon in the path, so make sure we never use it.
2821  set dummy $ac_cv_prog_CC
2822  shift
2823  if test $# != 0; then
2824    # We chose a different compiler from the bogus one.
2825    # However, it has the same basename, so the bogon will be chosen
2826    # first if we set CC to just the basename; use the full file name.
2827    shift
2828    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2829  fi
2830fi
2831fi
2832fi
2833CC=$ac_cv_prog_CC
2834if test -n "$CC"; then
2835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836$as_echo "$CC" >&6; }
2837else
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
2840fi
2841
2842
2843fi
2844if test -z "$CC"; then
2845  if test -n "$ac_tool_prefix"; then
2846  for ac_prog in cl.exe
2847  do
2848    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851$as_echo_n "checking for $ac_word... " >&6; }
2852if test "${ac_cv_prog_CC+set}" = set; then :
2853  $as_echo_n "(cached) " >&6
2854else
2855  if test -n "$CC"; then
2856  ac_cv_prog_CC="$CC" # Let the user override the test.
2857else
2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859for as_dir in $PATH
2860do
2861  IFS=$as_save_IFS
2862  test -z "$as_dir" && as_dir=.
2863    for ac_exec_ext in '' $ac_executable_extensions; do
2864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867    break 2
2868  fi
2869done
2870  done
2871IFS=$as_save_IFS
2872
2873fi
2874fi
2875CC=$ac_cv_prog_CC
2876if test -n "$CC"; then
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878$as_echo "$CC" >&6; }
2879else
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
2882fi
2883
2884
2885    test -n "$CC" && break
2886  done
2887fi
2888if test -z "$CC"; then
2889  ac_ct_CC=$CC
2890  for ac_prog in cl.exe
2891do
2892  # Extract the first word of "$ac_prog", so it can be a program name with args.
2893set dummy $ac_prog; ac_word=$2
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895$as_echo_n "checking for $ac_word... " >&6; }
2896if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2897  $as_echo_n "(cached) " >&6
2898else
2899  if test -n "$ac_ct_CC"; then
2900  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907    for ac_exec_ext in '' $ac_executable_extensions; do
2908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909    ac_cv_prog_ac_ct_CC="$ac_prog"
2910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914  done
2915IFS=$as_save_IFS
2916
2917fi
2918fi
2919ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920if test -n "$ac_ct_CC"; then
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2922$as_echo "$ac_ct_CC" >&6; }
2923else
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
2926fi
2927
2928
2929  test -n "$ac_ct_CC" && break
2930done
2931
2932  if test "x$ac_ct_CC" = x; then
2933    CC=""
2934  else
2935    case $cross_compiling:$ac_tool_warned in
2936yes:)
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2939ac_tool_warned=yes ;;
2940esac
2941    CC=$ac_ct_CC
2942  fi
2943fi
2944
2945fi
2946
2947
2948test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950as_fn_error "no acceptable C compiler found in \$PATH
2951See \`config.log' for more details." "$LINENO" 5; }
2952
2953# Provide some information about the compiler.
2954$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2955set X $ac_compile
2956ac_compiler=$2
2957for ac_option in --version -v -V -qversion; do
2958  { { ac_try="$ac_compiler $ac_option >&5"
2959case "(($ac_try" in
2960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961  *) ac_try_echo=$ac_try;;
2962esac
2963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964$as_echo "$ac_try_echo"; } >&5
2965  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2966  ac_status=$?
2967  if test -s conftest.err; then
2968    sed '10a\
2969... rest of stderr output deleted ...
2970         10q' conftest.err >conftest.er1
2971    cat conftest.er1 >&5
2972    rm -f conftest.er1 conftest.err
2973  fi
2974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975  test $ac_status = 0; }
2976done
2977
2978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2979/* end confdefs.h.  */
2980
2981int
2982main ()
2983{
2984
2985  ;
2986  return 0;
2987}
2988_ACEOF
2989ac_clean_files_save=$ac_clean_files
2990ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2991# Try to create an executable without -o first, disregard a.out.
2992# It will help us diagnose broken compilers, and finding out an intuition
2993# of exeext.
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2995$as_echo_n "checking for C compiler default output file name... " >&6; }
2996ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2997
2998# The possible output files:
2999ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3000
3001ac_rmfiles=
3002for ac_file in $ac_files
3003do
3004  case $ac_file in
3005    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3006    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3007  esac
3008done
3009rm -f $ac_rmfiles
3010
3011if { { ac_try="$ac_link_default"
3012case "(($ac_try" in
3013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014  *) ac_try_echo=$ac_try;;
3015esac
3016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017$as_echo "$ac_try_echo"; } >&5
3018  (eval "$ac_link_default") 2>&5
3019  ac_status=$?
3020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021  test $ac_status = 0; }; then :
3022  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3023# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3024# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3025# so that the user can short-circuit this test for compilers unknown to
3026# Autoconf.
3027for ac_file in $ac_files ''
3028do
3029  test -f "$ac_file" || continue
3030  case $ac_file in
3031    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3032	;;
3033    [ab].out )
3034	# We found the default executable, but exeext='' is most
3035	# certainly right.
3036	break;;
3037    *.* )
3038	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3039	then :; else
3040	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3041	fi
3042	# We set ac_cv_exeext here because the later test for it is not
3043	# safe: cross compilers may not add the suffix if given an `-o'
3044	# argument, so we may need to know it at that point already.
3045	# Even if this section looks crufty: it has the advantage of
3046	# actually working.
3047	break;;
3048    * )
3049	break;;
3050  esac
3051done
3052test "$ac_cv_exeext" = no && ac_cv_exeext=
3053
3054else
3055  ac_file=''
3056fi
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3058$as_echo "$ac_file" >&6; }
3059if test -z "$ac_file"; then :
3060  $as_echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3065{ as_fn_set_status 77
3066as_fn_error "C compiler cannot create executables
3067See \`config.log' for more details." "$LINENO" 5; }; }
3068fi
3069ac_exeext=$ac_cv_exeext
3070
3071# Check that the compiler produces executables we can run.  If not, either
3072# the compiler is broken, or we cross compile.
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3074$as_echo_n "checking whether the C compiler works... " >&6; }
3075# If not cross compiling, check that we can run a simple program.
3076if test "$cross_compiling" != yes; then
3077  if { ac_try='./$ac_file'
3078  { { case "(($ac_try" in
3079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080  *) ac_try_echo=$ac_try;;
3081esac
3082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083$as_echo "$ac_try_echo"; } >&5
3084  (eval "$ac_try") 2>&5
3085  ac_status=$?
3086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087  test $ac_status = 0; }; }; then
3088    cross_compiling=no
3089  else
3090    if test "$cross_compiling" = maybe; then
3091	cross_compiling=yes
3092    else
3093	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095as_fn_error "cannot run C compiled programs.
3096If you meant to cross compile, use \`--host'.
3097See \`config.log' for more details." "$LINENO" 5; }
3098    fi
3099  fi
3100fi
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3102$as_echo "yes" >&6; }
3103
3104rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3105ac_clean_files=$ac_clean_files_save
3106# Check that the compiler produces executables we can run.  If not, either
3107# the compiler is broken, or we cross compile.
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3109$as_echo_n "checking whether we are cross compiling... " >&6; }
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3111$as_echo "$cross_compiling" >&6; }
3112
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3114$as_echo_n "checking for suffix of executables... " >&6; }
3115if { { ac_try="$ac_link"
3116case "(($ac_try" in
3117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118  *) ac_try_echo=$ac_try;;
3119esac
3120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121$as_echo "$ac_try_echo"; } >&5
3122  (eval "$ac_link") 2>&5
3123  ac_status=$?
3124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125  test $ac_status = 0; }; then :
3126  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3127# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3128# work properly (i.e., refer to `conftest.exe'), while it won't with
3129# `rm'.
3130for ac_file in conftest.exe conftest conftest.*; do
3131  test -f "$ac_file" || continue
3132  case $ac_file in
3133    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135	  break;;
3136    * ) break;;
3137  esac
3138done
3139else
3140  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142as_fn_error "cannot compute suffix of executables: cannot compile and link
3143See \`config.log' for more details." "$LINENO" 5; }
3144fi
3145rm -f conftest$ac_cv_exeext
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3147$as_echo "$ac_cv_exeext" >&6; }
3148
3149rm -f conftest.$ac_ext
3150EXEEXT=$ac_cv_exeext
3151ac_exeext=$EXEEXT
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3153$as_echo_n "checking for suffix of object files... " >&6; }
3154if test "${ac_cv_objext+set}" = set; then :
3155  $as_echo_n "(cached) " >&6
3156else
3157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158/* end confdefs.h.  */
3159
3160int
3161main ()
3162{
3163
3164  ;
3165  return 0;
3166}
3167_ACEOF
3168rm -f conftest.o conftest.obj
3169if { { ac_try="$ac_compile"
3170case "(($ac_try" in
3171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172  *) ac_try_echo=$ac_try;;
3173esac
3174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175$as_echo "$ac_try_echo"; } >&5
3176  (eval "$ac_compile") 2>&5
3177  ac_status=$?
3178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179  test $ac_status = 0; }; then :
3180  for ac_file in conftest.o conftest.obj conftest.*; do
3181  test -f "$ac_file" || continue;
3182  case $ac_file in
3183    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3184    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3185       break;;
3186  esac
3187done
3188else
3189  $as_echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194as_fn_error "cannot compute suffix of object files: cannot compile
3195See \`config.log' for more details." "$LINENO" 5; }
3196fi
3197rm -f conftest.$ac_cv_objext conftest.$ac_ext
3198fi
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3200$as_echo "$ac_cv_objext" >&6; }
3201OBJEXT=$ac_cv_objext
3202ac_objext=$OBJEXT
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3204$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3205if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3206  $as_echo_n "(cached) " >&6
3207else
3208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209/* end confdefs.h.  */
3210
3211int
3212main ()
3213{
3214#ifndef __GNUC__
3215       choke me
3216#endif
3217
3218  ;
3219  return 0;
3220}
3221_ACEOF
3222if ac_fn_c_try_compile "$LINENO"; then :
3223  ac_compiler_gnu=yes
3224else
3225  ac_compiler_gnu=no
3226fi
3227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228ac_cv_c_compiler_gnu=$ac_compiler_gnu
3229
3230fi
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3232$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3233if test $ac_compiler_gnu = yes; then
3234  GCC=yes
3235else
3236  GCC=
3237fi
3238ac_test_CFLAGS=${CFLAGS+set}
3239ac_save_CFLAGS=$CFLAGS
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3241$as_echo_n "checking whether $CC accepts -g... " >&6; }
3242if test "${ac_cv_prog_cc_g+set}" = set; then :
3243  $as_echo_n "(cached) " >&6
3244else
3245  ac_save_c_werror_flag=$ac_c_werror_flag
3246   ac_c_werror_flag=yes
3247   ac_cv_prog_cc_g=no
3248   CFLAGS="-g"
3249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250/* end confdefs.h.  */
3251
3252int
3253main ()
3254{
3255
3256  ;
3257  return 0;
3258}
3259_ACEOF
3260if ac_fn_c_try_compile "$LINENO"; then :
3261  ac_cv_prog_cc_g=yes
3262else
3263  CFLAGS=""
3264      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265/* end confdefs.h.  */
3266
3267int
3268main ()
3269{
3270
3271  ;
3272  return 0;
3273}
3274_ACEOF
3275if ac_fn_c_try_compile "$LINENO"; then :
3276
3277else
3278  ac_c_werror_flag=$ac_save_c_werror_flag
3279	 CFLAGS="-g"
3280	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281/* end confdefs.h.  */
3282
3283int
3284main ()
3285{
3286
3287  ;
3288  return 0;
3289}
3290_ACEOF
3291if ac_fn_c_try_compile "$LINENO"; then :
3292  ac_cv_prog_cc_g=yes
3293fi
3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295fi
3296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297fi
3298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299   ac_c_werror_flag=$ac_save_c_werror_flag
3300fi
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3302$as_echo "$ac_cv_prog_cc_g" >&6; }
3303if test "$ac_test_CFLAGS" = set; then
3304  CFLAGS=$ac_save_CFLAGS
3305elif test $ac_cv_prog_cc_g = yes; then
3306  if test "$GCC" = yes; then
3307    CFLAGS="-g -O2"
3308  else
3309    CFLAGS="-g"
3310  fi
3311else
3312  if test "$GCC" = yes; then
3313    CFLAGS="-O2"
3314  else
3315    CFLAGS=
3316  fi
3317fi
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3319$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3320if test "${ac_cv_prog_cc_c89+set}" = set; then :
3321  $as_echo_n "(cached) " >&6
3322else
3323  ac_cv_prog_cc_c89=no
3324ac_save_CC=$CC
3325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326/* end confdefs.h.  */
3327#include <stdarg.h>
3328#include <stdio.h>
3329#include <sys/types.h>
3330#include <sys/stat.h>
3331/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3332struct buf { int x; };
3333FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334static char *e (p, i)
3335     char **p;
3336     int i;
3337{
3338  return p[i];
3339}
3340static char *f (char * (*g) (char **, int), char **p, ...)
3341{
3342  char *s;
3343  va_list v;
3344  va_start (v,p);
3345  s = g (p, va_arg (v,int));
3346  va_end (v);
3347  return s;
3348}
3349
3350/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3351   function prototypes and stuff, but not '\xHH' hex character constants.
3352   These don't provoke an error unfortunately, instead are silently treated
3353   as 'x'.  The following induces an error, until -std is added to get
3354   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3355   array size at least.  It's necessary to write '\x00'==0 to get something
3356   that's true only with -std.  */
3357int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3358
3359/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360   inside strings and character constants.  */
3361#define FOO(x) 'x'
3362int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3363
3364int test (int i, double x);
3365struct s1 {int (*f) (int a);};
3366struct s2 {int (*f) (double a);};
3367int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368int argc;
3369char **argv;
3370int
3371main ()
3372{
3373return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3374  ;
3375  return 0;
3376}
3377_ACEOF
3378for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3380do
3381  CC="$ac_save_CC $ac_arg"
3382  if ac_fn_c_try_compile "$LINENO"; then :
3383  ac_cv_prog_cc_c89=$ac_arg
3384fi
3385rm -f core conftest.err conftest.$ac_objext
3386  test "x$ac_cv_prog_cc_c89" != "xno" && break
3387done
3388rm -f conftest.$ac_ext
3389CC=$ac_save_CC
3390
3391fi
3392# AC_CACHE_VAL
3393case "x$ac_cv_prog_cc_c89" in
3394  x)
3395    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3396$as_echo "none needed" >&6; } ;;
3397  xno)
3398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3399$as_echo "unsupported" >&6; } ;;
3400  *)
3401    CC="$CC $ac_cv_prog_cc_c89"
3402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3403$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3404esac
3405if test "x$ac_cv_prog_cc_c89" != xno; then :
3406
3407fi
3408
3409ac_ext=c
3410ac_cpp='$CPP $CPPFLAGS'
3411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414
3415
3416ac_ext=c
3417ac_cpp='$CPP $CPPFLAGS'
3418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3422$as_echo_n "checking how to run the C preprocessor... " >&6; }
3423# On Suns, sometimes $CPP names a directory.
3424if test -n "$CPP" && test -d "$CPP"; then
3425  CPP=
3426fi
3427if test -z "$CPP"; then
3428  if test "${ac_cv_prog_CPP+set}" = set; then :
3429  $as_echo_n "(cached) " >&6
3430else
3431      # Double quotes because CPP needs to be expanded
3432    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3433    do
3434      ac_preproc_ok=false
3435for ac_c_preproc_warn_flag in '' yes
3436do
3437  # Use a header file that comes with gcc, so configuring glibc
3438  # with a fresh cross-compiler works.
3439  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3440  # <limits.h> exists even on freestanding compilers.
3441  # On the NeXT, cc -E runs the code through the compiler's parser,
3442  # not just through cpp. "Syntax error" is here to catch this case.
3443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444/* end confdefs.h.  */
3445#ifdef __STDC__
3446# include <limits.h>
3447#else
3448# include <assert.h>
3449#endif
3450		     Syntax error
3451_ACEOF
3452if ac_fn_c_try_cpp "$LINENO"; then :
3453
3454else
3455  # Broken: fails on valid input.
3456continue
3457fi
3458rm -f conftest.err conftest.$ac_ext
3459
3460  # OK, works on sane cases.  Now check whether nonexistent headers
3461  # can be detected and how.
3462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463/* end confdefs.h.  */
3464#include <ac_nonexistent.h>
3465_ACEOF
3466if ac_fn_c_try_cpp "$LINENO"; then :
3467  # Broken: success on invalid input.
3468continue
3469else
3470  # Passes both tests.
3471ac_preproc_ok=:
3472break
3473fi
3474rm -f conftest.err conftest.$ac_ext
3475
3476done
3477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3478rm -f conftest.err conftest.$ac_ext
3479if $ac_preproc_ok; then :
3480  break
3481fi
3482
3483    done
3484    ac_cv_prog_CPP=$CPP
3485
3486fi
3487  CPP=$ac_cv_prog_CPP
3488else
3489  ac_cv_prog_CPP=$CPP
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3492$as_echo "$CPP" >&6; }
3493ac_preproc_ok=false
3494for ac_c_preproc_warn_flag in '' yes
3495do
3496  # Use a header file that comes with gcc, so configuring glibc
3497  # with a fresh cross-compiler works.
3498  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3499  # <limits.h> exists even on freestanding compilers.
3500  # On the NeXT, cc -E runs the code through the compiler's parser,
3501  # not just through cpp. "Syntax error" is here to catch this case.
3502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503/* end confdefs.h.  */
3504#ifdef __STDC__
3505# include <limits.h>
3506#else
3507# include <assert.h>
3508#endif
3509		     Syntax error
3510_ACEOF
3511if ac_fn_c_try_cpp "$LINENO"; then :
3512
3513else
3514  # Broken: fails on valid input.
3515continue
3516fi
3517rm -f conftest.err conftest.$ac_ext
3518
3519  # OK, works on sane cases.  Now check whether nonexistent headers
3520  # can be detected and how.
3521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h.  */
3523#include <ac_nonexistent.h>
3524_ACEOF
3525if ac_fn_c_try_cpp "$LINENO"; then :
3526  # Broken: success on invalid input.
3527continue
3528else
3529  # Passes both tests.
3530ac_preproc_ok=:
3531break
3532fi
3533rm -f conftest.err conftest.$ac_ext
3534
3535done
3536# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3537rm -f conftest.err conftest.$ac_ext
3538if $ac_preproc_ok; then :
3539
3540else
3541  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543as_fn_error "C preprocessor \"$CPP\" fails sanity check
3544See \`config.log' for more details." "$LINENO" 5; }
3545fi
3546
3547ac_ext=c
3548ac_cpp='$CPP $CPPFLAGS'
3549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552
3553
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3555$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3556if test "${ac_cv_path_GREP+set}" = set; then :
3557  $as_echo_n "(cached) " >&6
3558else
3559  if test -z "$GREP"; then
3560  ac_path_GREP_found=false
3561  # Loop through the user's path and test for each of PROGNAME-LIST
3562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3564do
3565  IFS=$as_save_IFS
3566  test -z "$as_dir" && as_dir=.
3567    for ac_prog in grep ggrep; do
3568    for ac_exec_ext in '' $ac_executable_extensions; do
3569      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3570      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3571# Check for GNU ac_path_GREP and select it if it is found.
3572  # Check for GNU $ac_path_GREP
3573case `"$ac_path_GREP" --version 2>&1` in
3574*GNU*)
3575  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3576*)
3577  ac_count=0
3578  $as_echo_n 0123456789 >"conftest.in"
3579  while :
3580  do
3581    cat "conftest.in" "conftest.in" >"conftest.tmp"
3582    mv "conftest.tmp" "conftest.in"
3583    cp "conftest.in" "conftest.nl"
3584    $as_echo 'GREP' >> "conftest.nl"
3585    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3586    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3587    as_fn_arith $ac_count + 1 && ac_count=$as_val
3588    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3589      # Best one so far, save it but keep looking for a better one
3590      ac_cv_path_GREP="$ac_path_GREP"
3591      ac_path_GREP_max=$ac_count
3592    fi
3593    # 10*(2^10) chars as input seems more than enough
3594    test $ac_count -gt 10 && break
3595  done
3596  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3597esac
3598
3599      $ac_path_GREP_found && break 3
3600    done
3601  done
3602  done
3603IFS=$as_save_IFS
3604  if test -z "$ac_cv_path_GREP"; then
3605    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3606  fi
3607else
3608  ac_cv_path_GREP=$GREP
3609fi
3610
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3613$as_echo "$ac_cv_path_GREP" >&6; }
3614 GREP="$ac_cv_path_GREP"
3615
3616
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3618$as_echo_n "checking for egrep... " >&6; }
3619if test "${ac_cv_path_EGREP+set}" = set; then :
3620  $as_echo_n "(cached) " >&6
3621else
3622  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3623   then ac_cv_path_EGREP="$GREP -E"
3624   else
3625     if test -z "$EGREP"; then
3626  ac_path_EGREP_found=false
3627  # Loop through the user's path and test for each of PROGNAME-LIST
3628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3630do
3631  IFS=$as_save_IFS
3632  test -z "$as_dir" && as_dir=.
3633    for ac_prog in egrep; do
3634    for ac_exec_ext in '' $ac_executable_extensions; do
3635      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3636      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3637# Check for GNU ac_path_EGREP and select it if it is found.
3638  # Check for GNU $ac_path_EGREP
3639case `"$ac_path_EGREP" --version 2>&1` in
3640*GNU*)
3641  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3642*)
3643  ac_count=0
3644  $as_echo_n 0123456789 >"conftest.in"
3645  while :
3646  do
3647    cat "conftest.in" "conftest.in" >"conftest.tmp"
3648    mv "conftest.tmp" "conftest.in"
3649    cp "conftest.in" "conftest.nl"
3650    $as_echo 'EGREP' >> "conftest.nl"
3651    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3652    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3653    as_fn_arith $ac_count + 1 && ac_count=$as_val
3654    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3655      # Best one so far, save it but keep looking for a better one
3656      ac_cv_path_EGREP="$ac_path_EGREP"
3657      ac_path_EGREP_max=$ac_count
3658    fi
3659    # 10*(2^10) chars as input seems more than enough
3660    test $ac_count -gt 10 && break
3661  done
3662  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663esac
3664
3665      $ac_path_EGREP_found && break 3
3666    done
3667  done
3668  done
3669IFS=$as_save_IFS
3670  if test -z "$ac_cv_path_EGREP"; then
3671    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3672  fi
3673else
3674  ac_cv_path_EGREP=$EGREP
3675fi
3676
3677   fi
3678fi
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3680$as_echo "$ac_cv_path_EGREP" >&6; }
3681 EGREP="$ac_cv_path_EGREP"
3682
3683
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3685$as_echo_n "checking for ANSI C header files... " >&6; }
3686if test "${ac_cv_header_stdc+set}" = set; then :
3687  $as_echo_n "(cached) " >&6
3688else
3689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h.  */
3691#include <stdlib.h>
3692#include <stdarg.h>
3693#include <string.h>
3694#include <float.h>
3695
3696int
3697main ()
3698{
3699
3700  ;
3701  return 0;
3702}
3703_ACEOF
3704if ac_fn_c_try_compile "$LINENO"; then :
3705  ac_cv_header_stdc=yes
3706else
3707  ac_cv_header_stdc=no
3708fi
3709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710
3711if test $ac_cv_header_stdc = yes; then
3712  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h.  */
3715#include <string.h>
3716
3717_ACEOF
3718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3719  $EGREP "memchr" >/dev/null 2>&1; then :
3720
3721else
3722  ac_cv_header_stdc=no
3723fi
3724rm -f conftest*
3725
3726fi
3727
3728if test $ac_cv_header_stdc = yes; then
3729  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732#include <stdlib.h>
3733
3734_ACEOF
3735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3736  $EGREP "free" >/dev/null 2>&1; then :
3737
3738else
3739  ac_cv_header_stdc=no
3740fi
3741rm -f conftest*
3742
3743fi
3744
3745if test $ac_cv_header_stdc = yes; then
3746  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3747  if test "$cross_compiling" = yes; then :
3748  :
3749else
3750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h.  */
3752#include <ctype.h>
3753#include <stdlib.h>
3754#if ((' ' & 0x0FF) == 0x020)
3755# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3756# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3757#else
3758# define ISLOWER(c) \
3759		   (('a' <= (c) && (c) <= 'i') \
3760		     || ('j' <= (c) && (c) <= 'r') \
3761		     || ('s' <= (c) && (c) <= 'z'))
3762# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3763#endif
3764
3765#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3766int
3767main ()
3768{
3769  int i;
3770  for (i = 0; i < 256; i++)
3771    if (XOR (islower (i), ISLOWER (i))
3772	|| toupper (i) != TOUPPER (i))
3773      return 2;
3774  return 0;
3775}
3776_ACEOF
3777if ac_fn_c_try_run "$LINENO"; then :
3778
3779else
3780  ac_cv_header_stdc=no
3781fi
3782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3783  conftest.$ac_objext conftest.beam conftest.$ac_ext
3784fi
3785
3786fi
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3789$as_echo "$ac_cv_header_stdc" >&6; }
3790if test $ac_cv_header_stdc = yes; then
3791
3792$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3793
3794fi
3795
3796# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3797for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3798		  inttypes.h stdint.h unistd.h
3799do :
3800  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3801ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3802"
3803eval as_val=\$$as_ac_Header
3804   if test "x$as_val" = x""yes; then :
3805  cat >>confdefs.h <<_ACEOF
3806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3807_ACEOF
3808
3809fi
3810
3811done
3812
3813
3814
3815  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3816if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3817  MINIX=yes
3818else
3819  MINIX=
3820fi
3821
3822
3823  if test "$MINIX" = yes; then
3824
3825$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3826
3827
3828$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3829
3830
3831$as_echo "#define _MINIX 1" >>confdefs.h
3832
3833  fi
3834
3835
3836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3837$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3838if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3839  $as_echo_n "(cached) " >&6
3840else
3841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842/* end confdefs.h.  */
3843
3844#	  define __EXTENSIONS__ 1
3845	  $ac_includes_default
3846int
3847main ()
3848{
3849
3850  ;
3851  return 0;
3852}
3853_ACEOF
3854if ac_fn_c_try_compile "$LINENO"; then :
3855  ac_cv_safe_to_define___extensions__=yes
3856else
3857  ac_cv_safe_to_define___extensions__=no
3858fi
3859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3862$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3863  test $ac_cv_safe_to_define___extensions__ = yes &&
3864    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3865
3866  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3867
3868  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3869
3870  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3871
3872  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3873
3874
3875
3876libtool_VERSION=1:0:0
3877
3878
3879# 1.11.1: Require that version of automake.
3880# foreign: Don't require README, INSTALL, NEWS, etc.
3881# no-define: Don't define PACKAGE and VERSION.
3882# no-dependencies: Don't generate automatic dependencies.
3883#    (because it breaks when using bootstrap-lean, since some of the
3884#    headers are gone at "make install" time).
3885# -Wall: Issue all automake warnings.
3886# -Wno-portability: Don't warn about constructs supported by GNU make.
3887#    (because GCC requires GNU make anyhow).
3888am__api_version='1.11'
3889
3890# Find a good install program.  We prefer a C program (faster),
3891# so one script is as good as another.  But avoid the broken or
3892# incompatible versions:
3893# SysV /etc/install, /usr/sbin/install
3894# SunOS /usr/etc/install
3895# IRIX /sbin/install
3896# AIX /bin/install
3897# AmigaOS /C/install, which installs bootblocks on floppy discs
3898# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3899# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3900# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3901# OS/2's system install, which has a completely different semantic
3902# ./install, which can be erroneously created by make from ./install.sh.
3903# Reject install programs that cannot install multiple files.
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3905$as_echo_n "checking for a BSD-compatible install... " >&6; }
3906if test -z "$INSTALL"; then
3907if test "${ac_cv_path_install+set}" = set; then :
3908  $as_echo_n "(cached) " >&6
3909else
3910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913  IFS=$as_save_IFS
3914  test -z "$as_dir" && as_dir=.
3915    # Account for people who put trailing slashes in PATH elements.
3916case $as_dir/ in #((
3917  ./ | .// | /[cC]/* | \
3918  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3919  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3920  /usr/ucb/* ) ;;
3921  *)
3922    # OSF1 and SCO ODT 3.0 have their own names for install.
3923    # Don't use installbsd from OSF since it installs stuff as root
3924    # by default.
3925    for ac_prog in ginstall scoinst install; do
3926      for ac_exec_ext in '' $ac_executable_extensions; do
3927	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3928	  if test $ac_prog = install &&
3929	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930	    # AIX install.  It has an incompatible calling convention.
3931	    :
3932	  elif test $ac_prog = install &&
3933	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934	    # program-specific install script used by HP pwplus--don't use.
3935	    :
3936	  else
3937	    rm -rf conftest.one conftest.two conftest.dir
3938	    echo one > conftest.one
3939	    echo two > conftest.two
3940	    mkdir conftest.dir
3941	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3942	      test -s conftest.one && test -s conftest.two &&
3943	      test -s conftest.dir/conftest.one &&
3944	      test -s conftest.dir/conftest.two
3945	    then
3946	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3947	      break 3
3948	    fi
3949	  fi
3950	fi
3951      done
3952    done
3953    ;;
3954esac
3955
3956  done
3957IFS=$as_save_IFS
3958
3959rm -rf conftest.one conftest.two conftest.dir
3960
3961fi
3962  if test "${ac_cv_path_install+set}" = set; then
3963    INSTALL=$ac_cv_path_install
3964  else
3965    # As a last resort, use the slow shell script.  Don't cache a
3966    # value for INSTALL within a source directory, because that will
3967    # break other packages using the cache if that directory is
3968    # removed, or if the value is a relative name.
3969    INSTALL=$ac_install_sh
3970  fi
3971fi
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3973$as_echo "$INSTALL" >&6; }
3974
3975# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3976# It thinks the first close brace ends the variable substitution.
3977test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3978
3979test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3980
3981test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3982
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3984$as_echo_n "checking whether build environment is sane... " >&6; }
3985# Just in case
3986sleep 1
3987echo timestamp > conftest.file
3988# Reject unsafe characters in $srcdir or the absolute working directory
3989# name.  Accept space and tab only in the latter.
3990am_lf='
3991'
3992case `pwd` in
3993  *[\\\"\#\$\&\'\`$am_lf]*)
3994    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3995esac
3996case $srcdir in
3997  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3998    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3999esac
4000
4001# Do `set' in a subshell so we don't clobber the current shell's
4002# arguments.  Must try -L first in case configure is actually a
4003# symlink; some systems play weird games with the mod time of symlinks
4004# (eg FreeBSD returns the mod time of the symlink's containing
4005# directory).
4006if (
4007   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4008   if test "$*" = "X"; then
4009      # -L didn't work.
4010      set X `ls -t "$srcdir/configure" conftest.file`
4011   fi
4012   rm -f conftest.file
4013   if test "$*" != "X $srcdir/configure conftest.file" \
4014      && test "$*" != "X conftest.file $srcdir/configure"; then
4015
4016      # If neither matched, then we have a broken ls.  This can happen
4017      # if, for instance, CONFIG_SHELL is bash and it inherits a
4018      # broken ls alias from the environment.  This has actually
4019      # happened.  Such a system could not be considered "sane".
4020      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4021alias in your environment" "$LINENO" 5
4022   fi
4023
4024   test "$2" = conftest.file
4025   )
4026then
4027   # Ok.
4028   :
4029else
4030   as_fn_error "newly created file is older than distributed files!
4031Check your system clock" "$LINENO" 5
4032fi
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4034$as_echo "yes" >&6; }
4035test "$program_prefix" != NONE &&
4036  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4037# Use a double $ so make ignores it.
4038test "$program_suffix" != NONE &&
4039  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4040# Double any \ or $.
4041# By default was `s,x,x', remove it if useless.
4042ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4043program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4044
4045# expand $ac_aux_dir to an absolute path
4046am_aux_dir=`cd $ac_aux_dir && pwd`
4047
4048if test x"${MISSING+set}" != xset; then
4049  case $am_aux_dir in
4050  *\ * | *\	*)
4051    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4052  *)
4053    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4054  esac
4055fi
4056# Use eval to expand $SHELL
4057if eval "$MISSING --run true"; then
4058  am_missing_run="$MISSING --run "
4059else
4060  am_missing_run=
4061  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4062$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4063fi
4064
4065if test x"${install_sh}" != xset; then
4066  case $am_aux_dir in
4067  *\ * | *\	*)
4068    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4069  *)
4070    install_sh="\${SHELL} $am_aux_dir/install-sh"
4071  esac
4072fi
4073
4074# Installed binaries are usually stripped using `strip' when the user
4075# run `make install-strip'.  However `strip' might not be the right
4076# tool to use in cross-compilation environments, therefore Automake
4077# will honor the `STRIP' environment variable to overrule this program.
4078if test "$cross_compiling" != no; then
4079  if test -n "$ac_tool_prefix"; then
4080  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4081set dummy ${ac_tool_prefix}strip; ac_word=$2
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083$as_echo_n "checking for $ac_word... " >&6; }
4084if test "${ac_cv_prog_STRIP+set}" = set; then :
4085  $as_echo_n "(cached) " >&6
4086else
4087  if test -n "$STRIP"; then
4088  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4089else
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093  IFS=$as_save_IFS
4094  test -z "$as_dir" && as_dir=.
4095    for ac_exec_ext in '' $ac_executable_extensions; do
4096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4097    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099    break 2
4100  fi
4101done
4102  done
4103IFS=$as_save_IFS
4104
4105fi
4106fi
4107STRIP=$ac_cv_prog_STRIP
4108if test -n "$STRIP"; then
4109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4110$as_echo "$STRIP" >&6; }
4111else
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113$as_echo "no" >&6; }
4114fi
4115
4116
4117fi
4118if test -z "$ac_cv_prog_STRIP"; then
4119  ac_ct_STRIP=$STRIP
4120  # Extract the first word of "strip", so it can be a program name with args.
4121set dummy strip; ac_word=$2
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123$as_echo_n "checking for $ac_word... " >&6; }
4124if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4125  $as_echo_n "(cached) " >&6
4126else
4127  if test -n "$ac_ct_STRIP"; then
4128  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4129else
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH
4132do
4133  IFS=$as_save_IFS
4134  test -z "$as_dir" && as_dir=.
4135    for ac_exec_ext in '' $ac_executable_extensions; do
4136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137    ac_cv_prog_ac_ct_STRIP="strip"
4138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139    break 2
4140  fi
4141done
4142  done
4143IFS=$as_save_IFS
4144
4145fi
4146fi
4147ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4148if test -n "$ac_ct_STRIP"; then
4149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4150$as_echo "$ac_ct_STRIP" >&6; }
4151else
4152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153$as_echo "no" >&6; }
4154fi
4155
4156  if test "x$ac_ct_STRIP" = x; then
4157    STRIP=":"
4158  else
4159    case $cross_compiling:$ac_tool_warned in
4160yes:)
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4163ac_tool_warned=yes ;;
4164esac
4165    STRIP=$ac_ct_STRIP
4166  fi
4167else
4168  STRIP="$ac_cv_prog_STRIP"
4169fi
4170
4171fi
4172INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4173
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4175$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4176if test -z "$MKDIR_P"; then
4177  if test "${ac_cv_path_mkdir+set}" = set; then :
4178  $as_echo_n "(cached) " >&6
4179else
4180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4182do
4183  IFS=$as_save_IFS
4184  test -z "$as_dir" && as_dir=.
4185    for ac_prog in mkdir gmkdir; do
4186	 for ac_exec_ext in '' $ac_executable_extensions; do
4187	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4188	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4189	     'mkdir (GNU coreutils) '* | \
4190	     'mkdir (coreutils) '* | \
4191	     'mkdir (fileutils) '4.1*)
4192	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4193	       break 3;;
4194	   esac
4195	 done
4196       done
4197  done
4198IFS=$as_save_IFS
4199
4200fi
4201
4202  if test "${ac_cv_path_mkdir+set}" = set; then
4203    MKDIR_P="$ac_cv_path_mkdir -p"
4204  else
4205    # As a last resort, use the slow shell script.  Don't cache a
4206    # value for MKDIR_P within a source directory, because that will
4207    # break other packages using the cache if that directory is
4208    # removed, or if the value is a relative name.
4209    test -d ./--version && rmdir ./--version
4210    MKDIR_P="$ac_install_sh -d"
4211  fi
4212fi
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4214$as_echo "$MKDIR_P" >&6; }
4215
4216mkdir_p="$MKDIR_P"
4217case $mkdir_p in
4218  [\\/$]* | ?:[\\/]*) ;;
4219  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4220esac
4221
4222for ac_prog in gawk mawk nawk awk
4223do
4224  # Extract the first word of "$ac_prog", so it can be a program name with args.
4225set dummy $ac_prog; ac_word=$2
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227$as_echo_n "checking for $ac_word... " >&6; }
4228if test "${ac_cv_prog_AWK+set}" = set; then :
4229  $as_echo_n "(cached) " >&6
4230else
4231  if test -n "$AWK"; then
4232  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4233else
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237  IFS=$as_save_IFS
4238  test -z "$as_dir" && as_dir=.
4239    for ac_exec_ext in '' $ac_executable_extensions; do
4240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241    ac_cv_prog_AWK="$ac_prog"
4242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243    break 2
4244  fi
4245done
4246  done
4247IFS=$as_save_IFS
4248
4249fi
4250fi
4251AWK=$ac_cv_prog_AWK
4252if test -n "$AWK"; then
4253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4254$as_echo "$AWK" >&6; }
4255else
4256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
4258fi
4259
4260
4261  test -n "$AWK" && break
4262done
4263
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4265$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4266set x ${MAKE-make}
4267ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4268if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4269  $as_echo_n "(cached) " >&6
4270else
4271  cat >conftest.make <<\_ACEOF
4272SHELL = /bin/sh
4273all:
4274	@echo '@@@%%%=$(MAKE)=@@@%%%'
4275_ACEOF
4276# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4277case `${MAKE-make} -f conftest.make 2>/dev/null` in
4278  *@@@%%%=?*=@@@%%%*)
4279    eval ac_cv_prog_make_${ac_make}_set=yes;;
4280  *)
4281    eval ac_cv_prog_make_${ac_make}_set=no;;
4282esac
4283rm -f conftest.make
4284fi
4285if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4287$as_echo "yes" >&6; }
4288  SET_MAKE=
4289else
4290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291$as_echo "no" >&6; }
4292  SET_MAKE="MAKE=${MAKE-make}"
4293fi
4294
4295rm -rf .tst 2>/dev/null
4296mkdir .tst 2>/dev/null
4297if test -d .tst; then
4298  am__leading_dot=.
4299else
4300  am__leading_dot=_
4301fi
4302rmdir .tst 2>/dev/null
4303
4304if test "`cd $srcdir && pwd`" != "`pwd`"; then
4305  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4306  # is not polluted with repeated "-I."
4307  am__isrc=' -I$(srcdir)'
4308  # test to see if srcdir already configured
4309  if test -f $srcdir/config.status; then
4310    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4311  fi
4312fi
4313
4314# test whether we have cygpath
4315if test -z "$CYGPATH_W"; then
4316  if (cygpath --version) >/dev/null 2>/dev/null; then
4317    CYGPATH_W='cygpath -w'
4318  else
4319    CYGPATH_W=echo
4320  fi
4321fi
4322
4323
4324# Define the identity of the package.
4325 PACKAGE='libbacktrace'
4326 VERSION='version-unused'
4327
4328
4329# Some tools Automake needs.
4330
4331ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4332
4333
4334AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4335
4336
4337AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4338
4339
4340AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4341
4342
4343MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4344
4345# We need awk for the "check" target.  The system "awk" is bad on
4346# some platforms.
4347# Always define AMTAR for backward compatibility.  Yes, it's still used
4348# in the wild :-(  We should find a proper way to deprecate it ...
4349AMTAR='$${TAR-tar}'
4350
4351am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4352
4353
4354
4355
4356
4357
4358
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4360$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4361    # Check whether --enable-maintainer-mode was given.
4362if test "${enable_maintainer_mode+set}" = set; then :
4363  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4364else
4365  USE_MAINTAINER_MODE=no
4366fi
4367
4368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4369$as_echo "$USE_MAINTAINER_MODE" >&6; }
4370   if test $USE_MAINTAINER_MODE = yes; then
4371  MAINTAINER_MODE_TRUE=
4372  MAINTAINER_MODE_FALSE='#'
4373else
4374  MAINTAINER_MODE_TRUE='#'
4375  MAINTAINER_MODE_FALSE=
4376fi
4377
4378  MAINT=$MAINTAINER_MODE_TRUE
4379
4380
4381
4382
4383# Check whether --with-target-subdir was given.
4384if test "${with_target_subdir+set}" = set; then :
4385  withval=$with_target_subdir;
4386fi
4387
4388
4389# We must force CC to /not/ be precious variables; otherwise
4390# the wrong, non-multilib-adjusted value will be used in multilibs.
4391# As a side effect, we have to subst CFLAGS ourselves.
4392
4393
4394ac_ext=c
4395ac_cpp='$CPP $CPPFLAGS'
4396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399if test -n "$ac_tool_prefix"; then
4400  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4401set dummy ${ac_tool_prefix}gcc; ac_word=$2
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403$as_echo_n "checking for $ac_word... " >&6; }
4404if test "${ac_cv_prog_CC+set}" = set; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407  if test -n "$CC"; then
4408  ac_cv_prog_CC="$CC" # Let the user override the test.
4409else
4410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413  IFS=$as_save_IFS
4414  test -z "$as_dir" && as_dir=.
4415    for ac_exec_ext in '' $ac_executable_extensions; do
4416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419    break 2
4420  fi
4421done
4422  done
4423IFS=$as_save_IFS
4424
4425fi
4426fi
4427CC=$ac_cv_prog_CC
4428if test -n "$CC"; then
4429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4430$as_echo "$CC" >&6; }
4431else
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433$as_echo "no" >&6; }
4434fi
4435
4436
4437fi
4438if test -z "$ac_cv_prog_CC"; then
4439  ac_ct_CC=$CC
4440  # Extract the first word of "gcc", so it can be a program name with args.
4441set dummy gcc; ac_word=$2
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443$as_echo_n "checking for $ac_word... " >&6; }
4444if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4445  $as_echo_n "(cached) " >&6
4446else
4447  if test -n "$ac_ct_CC"; then
4448  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453  IFS=$as_save_IFS
4454  test -z "$as_dir" && as_dir=.
4455    for ac_exec_ext in '' $ac_executable_extensions; do
4456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457    ac_cv_prog_ac_ct_CC="gcc"
4458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459    break 2
4460  fi
4461done
4462  done
4463IFS=$as_save_IFS
4464
4465fi
4466fi
4467ac_ct_CC=$ac_cv_prog_ac_ct_CC
4468if test -n "$ac_ct_CC"; then
4469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4470$as_echo "$ac_ct_CC" >&6; }
4471else
4472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473$as_echo "no" >&6; }
4474fi
4475
4476  if test "x$ac_ct_CC" = x; then
4477    CC=""
4478  else
4479    case $cross_compiling:$ac_tool_warned in
4480yes:)
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4483ac_tool_warned=yes ;;
4484esac
4485    CC=$ac_ct_CC
4486  fi
4487else
4488  CC="$ac_cv_prog_CC"
4489fi
4490
4491if test -z "$CC"; then
4492          if test -n "$ac_tool_prefix"; then
4493    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4494set dummy ${ac_tool_prefix}cc; ac_word=$2
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496$as_echo_n "checking for $ac_word... " >&6; }
4497if test "${ac_cv_prog_CC+set}" = set; then :
4498  $as_echo_n "(cached) " >&6
4499else
4500  if test -n "$CC"; then
4501  ac_cv_prog_CC="$CC" # Let the user override the test.
4502else
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH
4505do
4506  IFS=$as_save_IFS
4507  test -z "$as_dir" && as_dir=.
4508    for ac_exec_ext in '' $ac_executable_extensions; do
4509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510    ac_cv_prog_CC="${ac_tool_prefix}cc"
4511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512    break 2
4513  fi
4514done
4515  done
4516IFS=$as_save_IFS
4517
4518fi
4519fi
4520CC=$ac_cv_prog_CC
4521if test -n "$CC"; then
4522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4523$as_echo "$CC" >&6; }
4524else
4525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526$as_echo "no" >&6; }
4527fi
4528
4529
4530  fi
4531fi
4532if test -z "$CC"; then
4533  # Extract the first word of "cc", so it can be a program name with args.
4534set dummy cc; ac_word=$2
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536$as_echo_n "checking for $ac_word... " >&6; }
4537if test "${ac_cv_prog_CC+set}" = set; then :
4538  $as_echo_n "(cached) " >&6
4539else
4540  if test -n "$CC"; then
4541  ac_cv_prog_CC="$CC" # Let the user override the test.
4542else
4543  ac_prog_rejected=no
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547  IFS=$as_save_IFS
4548  test -z "$as_dir" && as_dir=.
4549    for ac_exec_ext in '' $ac_executable_extensions; do
4550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4552       ac_prog_rejected=yes
4553       continue
4554     fi
4555    ac_cv_prog_CC="cc"
4556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557    break 2
4558  fi
4559done
4560  done
4561IFS=$as_save_IFS
4562
4563if test $ac_prog_rejected = yes; then
4564  # We found a bogon in the path, so make sure we never use it.
4565  set dummy $ac_cv_prog_CC
4566  shift
4567  if test $# != 0; then
4568    # We chose a different compiler from the bogus one.
4569    # However, it has the same basename, so the bogon will be chosen
4570    # first if we set CC to just the basename; use the full file name.
4571    shift
4572    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4573  fi
4574fi
4575fi
4576fi
4577CC=$ac_cv_prog_CC
4578if test -n "$CC"; then
4579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4580$as_echo "$CC" >&6; }
4581else
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584fi
4585
4586
4587fi
4588if test -z "$CC"; then
4589  if test -n "$ac_tool_prefix"; then
4590  for ac_prog in cl.exe
4591  do
4592    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595$as_echo_n "checking for $ac_word... " >&6; }
4596if test "${ac_cv_prog_CC+set}" = set; then :
4597  $as_echo_n "(cached) " >&6
4598else
4599  if test -n "$CC"; then
4600  ac_cv_prog_CC="$CC" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605  IFS=$as_save_IFS
4606  test -z "$as_dir" && as_dir=.
4607    for ac_exec_ext in '' $ac_executable_extensions; do
4608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611    break 2
4612  fi
4613done
4614  done
4615IFS=$as_save_IFS
4616
4617fi
4618fi
4619CC=$ac_cv_prog_CC
4620if test -n "$CC"; then
4621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4622$as_echo "$CC" >&6; }
4623else
4624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625$as_echo "no" >&6; }
4626fi
4627
4628
4629    test -n "$CC" && break
4630  done
4631fi
4632if test -z "$CC"; then
4633  ac_ct_CC=$CC
4634  for ac_prog in cl.exe
4635do
4636  # Extract the first word of "$ac_prog", so it can be a program name with args.
4637set dummy $ac_prog; ac_word=$2
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639$as_echo_n "checking for $ac_word... " >&6; }
4640if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4641  $as_echo_n "(cached) " >&6
4642else
4643  if test -n "$ac_ct_CC"; then
4644  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649  IFS=$as_save_IFS
4650  test -z "$as_dir" && as_dir=.
4651    for ac_exec_ext in '' $ac_executable_extensions; do
4652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653    ac_cv_prog_ac_ct_CC="$ac_prog"
4654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655    break 2
4656  fi
4657done
4658  done
4659IFS=$as_save_IFS
4660
4661fi
4662fi
4663ac_ct_CC=$ac_cv_prog_ac_ct_CC
4664if test -n "$ac_ct_CC"; then
4665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4666$as_echo "$ac_ct_CC" >&6; }
4667else
4668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669$as_echo "no" >&6; }
4670fi
4671
4672
4673  test -n "$ac_ct_CC" && break
4674done
4675
4676  if test "x$ac_ct_CC" = x; then
4677    CC=""
4678  else
4679    case $cross_compiling:$ac_tool_warned in
4680yes:)
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683ac_tool_warned=yes ;;
4684esac
4685    CC=$ac_ct_CC
4686  fi
4687fi
4688
4689fi
4690
4691
4692test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4694as_fn_error "no acceptable C compiler found in \$PATH
4695See \`config.log' for more details." "$LINENO" 5; }
4696
4697# Provide some information about the compiler.
4698$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4699set X $ac_compile
4700ac_compiler=$2
4701for ac_option in --version -v -V -qversion; do
4702  { { ac_try="$ac_compiler $ac_option >&5"
4703case "(($ac_try" in
4704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705  *) ac_try_echo=$ac_try;;
4706esac
4707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4708$as_echo "$ac_try_echo"; } >&5
4709  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4710  ac_status=$?
4711  if test -s conftest.err; then
4712    sed '10a\
4713... rest of stderr output deleted ...
4714         10q' conftest.err >conftest.er1
4715    cat conftest.er1 >&5
4716    rm -f conftest.er1 conftest.err
4717  fi
4718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719  test $ac_status = 0; }
4720done
4721
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4723$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4724if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4725  $as_echo_n "(cached) " >&6
4726else
4727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h.  */
4729
4730int
4731main ()
4732{
4733#ifndef __GNUC__
4734       choke me
4735#endif
4736
4737  ;
4738  return 0;
4739}
4740_ACEOF
4741if ac_fn_c_try_compile "$LINENO"; then :
4742  ac_compiler_gnu=yes
4743else
4744  ac_compiler_gnu=no
4745fi
4746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747ac_cv_c_compiler_gnu=$ac_compiler_gnu
4748
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4751$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4752if test $ac_compiler_gnu = yes; then
4753  GCC=yes
4754else
4755  GCC=
4756fi
4757ac_test_CFLAGS=${CFLAGS+set}
4758ac_save_CFLAGS=$CFLAGS
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4760$as_echo_n "checking whether $CC accepts -g... " >&6; }
4761if test "${ac_cv_prog_cc_g+set}" = set; then :
4762  $as_echo_n "(cached) " >&6
4763else
4764  ac_save_c_werror_flag=$ac_c_werror_flag
4765   ac_c_werror_flag=yes
4766   ac_cv_prog_cc_g=no
4767   CFLAGS="-g"
4768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769/* end confdefs.h.  */
4770
4771int
4772main ()
4773{
4774
4775  ;
4776  return 0;
4777}
4778_ACEOF
4779if ac_fn_c_try_compile "$LINENO"; then :
4780  ac_cv_prog_cc_g=yes
4781else
4782  CFLAGS=""
4783      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784/* end confdefs.h.  */
4785
4786int
4787main ()
4788{
4789
4790  ;
4791  return 0;
4792}
4793_ACEOF
4794if ac_fn_c_try_compile "$LINENO"; then :
4795
4796else
4797  ac_c_werror_flag=$ac_save_c_werror_flag
4798	 CFLAGS="-g"
4799	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800/* end confdefs.h.  */
4801
4802int
4803main ()
4804{
4805
4806  ;
4807  return 0;
4808}
4809_ACEOF
4810if ac_fn_c_try_compile "$LINENO"; then :
4811  ac_cv_prog_cc_g=yes
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814fi
4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816fi
4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818   ac_c_werror_flag=$ac_save_c_werror_flag
4819fi
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4821$as_echo "$ac_cv_prog_cc_g" >&6; }
4822if test "$ac_test_CFLAGS" = set; then
4823  CFLAGS=$ac_save_CFLAGS
4824elif test $ac_cv_prog_cc_g = yes; then
4825  if test "$GCC" = yes; then
4826    CFLAGS="-g -O2"
4827  else
4828    CFLAGS="-g"
4829  fi
4830else
4831  if test "$GCC" = yes; then
4832    CFLAGS="-O2"
4833  else
4834    CFLAGS=
4835  fi
4836fi
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4838$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4839if test "${ac_cv_prog_cc_c89+set}" = set; then :
4840  $as_echo_n "(cached) " >&6
4841else
4842  ac_cv_prog_cc_c89=no
4843ac_save_CC=$CC
4844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845/* end confdefs.h.  */
4846#include <stdarg.h>
4847#include <stdio.h>
4848#include <sys/types.h>
4849#include <sys/stat.h>
4850/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4851struct buf { int x; };
4852FILE * (*rcsopen) (struct buf *, struct stat *, int);
4853static char *e (p, i)
4854     char **p;
4855     int i;
4856{
4857  return p[i];
4858}
4859static char *f (char * (*g) (char **, int), char **p, ...)
4860{
4861  char *s;
4862  va_list v;
4863  va_start (v,p);
4864  s = g (p, va_arg (v,int));
4865  va_end (v);
4866  return s;
4867}
4868
4869/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4870   function prototypes and stuff, but not '\xHH' hex character constants.
4871   These don't provoke an error unfortunately, instead are silently treated
4872   as 'x'.  The following induces an error, until -std is added to get
4873   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4874   array size at least.  It's necessary to write '\x00'==0 to get something
4875   that's true only with -std.  */
4876int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4877
4878/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4879   inside strings and character constants.  */
4880#define FOO(x) 'x'
4881int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4882
4883int test (int i, double x);
4884struct s1 {int (*f) (int a);};
4885struct s2 {int (*f) (double a);};
4886int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4887int argc;
4888char **argv;
4889int
4890main ()
4891{
4892return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4893  ;
4894  return 0;
4895}
4896_ACEOF
4897for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4898	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4899do
4900  CC="$ac_save_CC $ac_arg"
4901  if ac_fn_c_try_compile "$LINENO"; then :
4902  ac_cv_prog_cc_c89=$ac_arg
4903fi
4904rm -f core conftest.err conftest.$ac_objext
4905  test "x$ac_cv_prog_cc_c89" != "xno" && break
4906done
4907rm -f conftest.$ac_ext
4908CC=$ac_save_CC
4909
4910fi
4911# AC_CACHE_VAL
4912case "x$ac_cv_prog_cc_c89" in
4913  x)
4914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4915$as_echo "none needed" >&6; } ;;
4916  xno)
4917    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4918$as_echo "unsupported" >&6; } ;;
4919  *)
4920    CC="$CC $ac_cv_prog_cc_c89"
4921    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4922$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4923esac
4924if test "x$ac_cv_prog_cc_c89" != xno; then :
4925
4926fi
4927
4928ac_ext=c
4929ac_cpp='$CPP $CPPFLAGS'
4930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933
4934
4935
4936
4937
4938if test -n "$ac_tool_prefix"; then
4939  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4940set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942$as_echo_n "checking for $ac_word... " >&6; }
4943if test "${ac_cv_prog_RANLIB+set}" = set; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946  if test -n "$RANLIB"; then
4947  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4948else
4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952  IFS=$as_save_IFS
4953  test -z "$as_dir" && as_dir=.
4954    for ac_exec_ext in '' $ac_executable_extensions; do
4955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958    break 2
4959  fi
4960done
4961  done
4962IFS=$as_save_IFS
4963
4964fi
4965fi
4966RANLIB=$ac_cv_prog_RANLIB
4967if test -n "$RANLIB"; then
4968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4969$as_echo "$RANLIB" >&6; }
4970else
4971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972$as_echo "no" >&6; }
4973fi
4974
4975
4976fi
4977if test -z "$ac_cv_prog_RANLIB"; then
4978  ac_ct_RANLIB=$RANLIB
4979  # Extract the first word of "ranlib", so it can be a program name with args.
4980set dummy ranlib; ac_word=$2
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982$as_echo_n "checking for $ac_word... " >&6; }
4983if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4984  $as_echo_n "(cached) " >&6
4985else
4986  if test -n "$ac_ct_RANLIB"; then
4987  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992  IFS=$as_save_IFS
4993  test -z "$as_dir" && as_dir=.
4994    for ac_exec_ext in '' $ac_executable_extensions; do
4995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996    ac_cv_prog_ac_ct_RANLIB="ranlib"
4997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998    break 2
4999  fi
5000done
5001  done
5002IFS=$as_save_IFS
5003
5004fi
5005fi
5006ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5007if test -n "$ac_ct_RANLIB"; then
5008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5009$as_echo "$ac_ct_RANLIB" >&6; }
5010else
5011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012$as_echo "no" >&6; }
5013fi
5014
5015  if test "x$ac_ct_RANLIB" = x; then
5016    RANLIB=":"
5017  else
5018    case $cross_compiling:$ac_tool_warned in
5019yes:)
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5022ac_tool_warned=yes ;;
5023esac
5024    RANLIB=$ac_ct_RANLIB
5025  fi
5026else
5027  RANLIB="$ac_cv_prog_RANLIB"
5028fi
5029
5030
5031for ac_prog in gawk mawk nawk awk
5032do
5033  # Extract the first word of "$ac_prog", so it can be a program name with args.
5034set dummy $ac_prog; ac_word=$2
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036$as_echo_n "checking for $ac_word... " >&6; }
5037if test "${ac_cv_prog_AWK+set}" = set; then :
5038  $as_echo_n "(cached) " >&6
5039else
5040  if test -n "$AWK"; then
5041  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5042else
5043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044for as_dir in $PATH
5045do
5046  IFS=$as_save_IFS
5047  test -z "$as_dir" && as_dir=.
5048    for ac_exec_ext in '' $ac_executable_extensions; do
5049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5050    ac_cv_prog_AWK="$ac_prog"
5051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052    break 2
5053  fi
5054done
5055  done
5056IFS=$as_save_IFS
5057
5058fi
5059fi
5060AWK=$ac_cv_prog_AWK
5061if test -n "$AWK"; then
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5063$as_echo "$AWK" >&6; }
5064else
5065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066$as_echo "no" >&6; }
5067fi
5068
5069
5070  test -n "$AWK" && break
5071done
5072
5073case "$AWK" in
5074"") as_fn_error "can't build without awk" "$LINENO" 5 ;;
5075esac
5076
5077case `pwd` in
5078  *\ * | *\	*)
5079    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5080$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5081esac
5082
5083
5084
5085macro_version='2.2.7a'
5086macro_revision='1.3134'
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100ltmain="$ac_aux_dir/ltmain.sh"
5101
5102# Backslashify metacharacters that are still active within
5103# double-quoted strings.
5104sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5105
5106# Same as above, but do not quote variable references.
5107double_quote_subst='s/\(["`\\]\)/\\\1/g'
5108
5109# Sed substitution to delay expansion of an escaped shell variable in a
5110# double_quote_subst'ed string.
5111delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5112
5113# Sed substitution to delay expansion of an escaped single quote.
5114delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5115
5116# Sed substitution to avoid accidental globbing in evaled expressions
5117no_glob_subst='s/\*/\\\*/g'
5118
5119ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5120ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5121ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5122
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5124$as_echo_n "checking how to print strings... " >&6; }
5125# Test print first, because it will be a builtin if present.
5126if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5127   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5128  ECHO='print -r --'
5129elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5130  ECHO='printf %s\n'
5131else
5132  # Use this function as a fallback that always works.
5133  func_fallback_echo ()
5134  {
5135    eval 'cat <<_LTECHO_EOF
5136$1
5137_LTECHO_EOF'
5138  }
5139  ECHO='func_fallback_echo'
5140fi
5141
5142# func_echo_all arg...
5143# Invoke $ECHO with all args, space-separated.
5144func_echo_all ()
5145{
5146    $ECHO ""
5147}
5148
5149case "$ECHO" in
5150  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5151$as_echo "printf" >&6; } ;;
5152  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5153$as_echo "print -r" >&6; } ;;
5154  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5155$as_echo "cat" >&6; } ;;
5156esac
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5172$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5173if test "${ac_cv_path_SED+set}" = set; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5177     for ac_i in 1 2 3 4 5 6 7; do
5178       ac_script="$ac_script$as_nl$ac_script"
5179     done
5180     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5181     { ac_script=; unset ac_script;}
5182     if test -z "$SED"; then
5183  ac_path_SED_found=false
5184  # Loop through the user's path and test for each of PROGNAME-LIST
5185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190    for ac_prog in sed gsed; do
5191    for ac_exec_ext in '' $ac_executable_extensions; do
5192      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5193      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5194# Check for GNU ac_path_SED and select it if it is found.
5195  # Check for GNU $ac_path_SED
5196case `"$ac_path_SED" --version 2>&1` in
5197*GNU*)
5198  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5199*)
5200  ac_count=0
5201  $as_echo_n 0123456789 >"conftest.in"
5202  while :
5203  do
5204    cat "conftest.in" "conftest.in" >"conftest.tmp"
5205    mv "conftest.tmp" "conftest.in"
5206    cp "conftest.in" "conftest.nl"
5207    $as_echo '' >> "conftest.nl"
5208    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5209    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5210    as_fn_arith $ac_count + 1 && ac_count=$as_val
5211    if test $ac_count -gt ${ac_path_SED_max-0}; then
5212      # Best one so far, save it but keep looking for a better one
5213      ac_cv_path_SED="$ac_path_SED"
5214      ac_path_SED_max=$ac_count
5215    fi
5216    # 10*(2^10) chars as input seems more than enough
5217    test $ac_count -gt 10 && break
5218  done
5219  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5220esac
5221
5222      $ac_path_SED_found && break 3
5223    done
5224  done
5225  done
5226IFS=$as_save_IFS
5227  if test -z "$ac_cv_path_SED"; then
5228    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5229  fi
5230else
5231  ac_cv_path_SED=$SED
5232fi
5233
5234fi
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5236$as_echo "$ac_cv_path_SED" >&6; }
5237 SED="$ac_cv_path_SED"
5238  rm -f conftest.sed
5239
5240test -z "$SED" && SED=sed
5241Xsed="$SED -e 1s/^X//"
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5254$as_echo_n "checking for fgrep... " >&6; }
5255if test "${ac_cv_path_FGREP+set}" = set; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5259   then ac_cv_path_FGREP="$GREP -F"
5260   else
5261     if test -z "$FGREP"; then
5262  ac_path_FGREP_found=false
5263  # Loop through the user's path and test for each of PROGNAME-LIST
5264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5266do
5267  IFS=$as_save_IFS
5268  test -z "$as_dir" && as_dir=.
5269    for ac_prog in fgrep; do
5270    for ac_exec_ext in '' $ac_executable_extensions; do
5271      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5272      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5273# Check for GNU ac_path_FGREP and select it if it is found.
5274  # Check for GNU $ac_path_FGREP
5275case `"$ac_path_FGREP" --version 2>&1` in
5276*GNU*)
5277  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5278*)
5279  ac_count=0
5280  $as_echo_n 0123456789 >"conftest.in"
5281  while :
5282  do
5283    cat "conftest.in" "conftest.in" >"conftest.tmp"
5284    mv "conftest.tmp" "conftest.in"
5285    cp "conftest.in" "conftest.nl"
5286    $as_echo 'FGREP' >> "conftest.nl"
5287    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5288    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5289    as_fn_arith $ac_count + 1 && ac_count=$as_val
5290    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5291      # Best one so far, save it but keep looking for a better one
5292      ac_cv_path_FGREP="$ac_path_FGREP"
5293      ac_path_FGREP_max=$ac_count
5294    fi
5295    # 10*(2^10) chars as input seems more than enough
5296    test $ac_count -gt 10 && break
5297  done
5298  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5299esac
5300
5301      $ac_path_FGREP_found && break 3
5302    done
5303  done
5304  done
5305IFS=$as_save_IFS
5306  if test -z "$ac_cv_path_FGREP"; then
5307    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5308  fi
5309else
5310  ac_cv_path_FGREP=$FGREP
5311fi
5312
5313   fi
5314fi
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5316$as_echo "$ac_cv_path_FGREP" >&6; }
5317 FGREP="$ac_cv_path_FGREP"
5318
5319
5320test -z "$GREP" && GREP=grep
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340# Check whether --with-gnu-ld was given.
5341if test "${with_gnu_ld+set}" = set; then :
5342  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5343else
5344  with_gnu_ld=no
5345fi
5346
5347ac_prog=ld
5348if test "$GCC" = yes; then
5349  # Check if gcc -print-prog-name=ld gives a path.
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5351$as_echo_n "checking for ld used by $CC... " >&6; }
5352  case $host in
5353  *-*-mingw*)
5354    # gcc leaves a trailing carriage return which upsets mingw
5355    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5356  *)
5357    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5358  esac
5359  case $ac_prog in
5360    # Accept absolute paths.
5361    [\\/]* | ?:[\\/]*)
5362      re_direlt='/[^/][^/]*/\.\./'
5363      # Canonicalize the pathname of ld
5364      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5365      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5366	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5367      done
5368      test -z "$LD" && LD="$ac_prog"
5369      ;;
5370  "")
5371    # If it fails, then pretend we aren't using GCC.
5372    ac_prog=ld
5373    ;;
5374  *)
5375    # If it is relative, then search for the first ld in PATH.
5376    with_gnu_ld=unknown
5377    ;;
5378  esac
5379elif test "$with_gnu_ld" = yes; then
5380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5381$as_echo_n "checking for GNU ld... " >&6; }
5382else
5383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5384$as_echo_n "checking for non-GNU ld... " >&6; }
5385fi
5386if test "${lt_cv_path_LD+set}" = set; then :
5387  $as_echo_n "(cached) " >&6
5388else
5389  if test -z "$LD"; then
5390  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5391  for ac_dir in $PATH; do
5392    IFS="$lt_save_ifs"
5393    test -z "$ac_dir" && ac_dir=.
5394    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5395      lt_cv_path_LD="$ac_dir/$ac_prog"
5396      # Check to see if the program is GNU ld.  I'd rather use --version,
5397      # but apparently some variants of GNU ld only accept -v.
5398      # Break only if it was the GNU/non-GNU ld that we prefer.
5399      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5400      *GNU* | *'with BFD'*)
5401	test "$with_gnu_ld" != no && break
5402	;;
5403      *)
5404	test "$with_gnu_ld" != yes && break
5405	;;
5406      esac
5407    fi
5408  done
5409  IFS="$lt_save_ifs"
5410else
5411  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5412fi
5413fi
5414
5415LD="$lt_cv_path_LD"
5416if test -n "$LD"; then
5417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5418$as_echo "$LD" >&6; }
5419else
5420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421$as_echo "no" >&6; }
5422fi
5423test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5425$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5426if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5430case `$LD -v 2>&1 </dev/null` in
5431*GNU* | *'with BFD'*)
5432  lt_cv_prog_gnu_ld=yes
5433  ;;
5434*)
5435  lt_cv_prog_gnu_ld=no
5436  ;;
5437esac
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5440$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5441with_gnu_ld=$lt_cv_prog_gnu_ld
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5452$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5453if test "${lt_cv_path_NM+set}" = set; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456  if test -n "$NM"; then
5457  # Let the user override the test.
5458  lt_cv_path_NM="$NM"
5459else
5460  lt_nm_to_check="${ac_tool_prefix}nm"
5461  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5462    lt_nm_to_check="$lt_nm_to_check nm"
5463  fi
5464  for lt_tmp_nm in $lt_nm_to_check; do
5465    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5466    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5467      IFS="$lt_save_ifs"
5468      test -z "$ac_dir" && ac_dir=.
5469      tmp_nm="$ac_dir/$lt_tmp_nm"
5470      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5471	# Check to see if the nm accepts a BSD-compat flag.
5472	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5473	#   nm: unknown option "B" ignored
5474	# Tru64's nm complains that /dev/null is an invalid object file
5475	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5476	*/dev/null* | *'Invalid file or object type'*)
5477	  lt_cv_path_NM="$tmp_nm -B"
5478	  break
5479	  ;;
5480	*)
5481	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5482	  */dev/null*)
5483	    lt_cv_path_NM="$tmp_nm -p"
5484	    break
5485	    ;;
5486	  *)
5487	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5488	    continue # so that we can try to find one that supports BSD flags
5489	    ;;
5490	  esac
5491	  ;;
5492	esac
5493      fi
5494    done
5495    IFS="$lt_save_ifs"
5496  done
5497  : ${lt_cv_path_NM=no}
5498fi
5499fi
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5501$as_echo "$lt_cv_path_NM" >&6; }
5502if test "$lt_cv_path_NM" != "no"; then
5503  NM="$lt_cv_path_NM"
5504else
5505  # Didn't find any BSD compatible name lister, look for dumpbin.
5506  if test -n "$DUMPBIN"; then :
5507    # Let the user override the test.
5508  else
5509    if test -n "$ac_tool_prefix"; then
5510  for ac_prog in dumpbin "link -dump"
5511  do
5512    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5513set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515$as_echo_n "checking for $ac_word... " >&6; }
5516if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5517  $as_echo_n "(cached) " >&6
5518else
5519  if test -n "$DUMPBIN"; then
5520  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5521else
5522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525  IFS=$as_save_IFS
5526  test -z "$as_dir" && as_dir=.
5527    for ac_exec_ext in '' $ac_executable_extensions; do
5528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531    break 2
5532  fi
5533done
5534  done
5535IFS=$as_save_IFS
5536
5537fi
5538fi
5539DUMPBIN=$ac_cv_prog_DUMPBIN
5540if test -n "$DUMPBIN"; then
5541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5542$as_echo "$DUMPBIN" >&6; }
5543else
5544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545$as_echo "no" >&6; }
5546fi
5547
5548
5549    test -n "$DUMPBIN" && break
5550  done
5551fi
5552if test -z "$DUMPBIN"; then
5553  ac_ct_DUMPBIN=$DUMPBIN
5554  for ac_prog in dumpbin "link -dump"
5555do
5556  # Extract the first word of "$ac_prog", so it can be a program name with args.
5557set dummy $ac_prog; ac_word=$2
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559$as_echo_n "checking for $ac_word... " >&6; }
5560if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5561  $as_echo_n "(cached) " >&6
5562else
5563  if test -n "$ac_ct_DUMPBIN"; then
5564  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5565else
5566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567for as_dir in $PATH
5568do
5569  IFS=$as_save_IFS
5570  test -z "$as_dir" && as_dir=.
5571    for ac_exec_ext in '' $ac_executable_extensions; do
5572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575    break 2
5576  fi
5577done
5578  done
5579IFS=$as_save_IFS
5580
5581fi
5582fi
5583ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5584if test -n "$ac_ct_DUMPBIN"; then
5585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5586$as_echo "$ac_ct_DUMPBIN" >&6; }
5587else
5588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589$as_echo "no" >&6; }
5590fi
5591
5592
5593  test -n "$ac_ct_DUMPBIN" && break
5594done
5595
5596  if test "x$ac_ct_DUMPBIN" = x; then
5597    DUMPBIN=":"
5598  else
5599    case $cross_compiling:$ac_tool_warned in
5600yes:)
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603ac_tool_warned=yes ;;
5604esac
5605    DUMPBIN=$ac_ct_DUMPBIN
5606  fi
5607fi
5608
5609    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5610    *COFF*)
5611      DUMPBIN="$DUMPBIN -symbols"
5612      ;;
5613    *)
5614      DUMPBIN=:
5615      ;;
5616    esac
5617  fi
5618
5619  if test "$DUMPBIN" != ":"; then
5620    NM="$DUMPBIN"
5621  fi
5622fi
5623test -z "$NM" && NM=nm
5624
5625
5626
5627
5628
5629
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5631$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5632if test "${lt_cv_nm_interface+set}" = set; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  lt_cv_nm_interface="BSD nm"
5636  echo "int some_variable = 0;" > conftest.$ac_ext
5637  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5638  (eval "$ac_compile" 2>conftest.err)
5639  cat conftest.err >&5
5640  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5641  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5642  cat conftest.err >&5
5643  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5644  cat conftest.out >&5
5645  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5646    lt_cv_nm_interface="MS dumpbin"
5647  fi
5648  rm -f conftest*
5649fi
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5651$as_echo "$lt_cv_nm_interface" >&6; }
5652
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5654$as_echo_n "checking whether ln -s works... " >&6; }
5655LN_S=$as_ln_s
5656if test "$LN_S" = "ln -s"; then
5657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658$as_echo "yes" >&6; }
5659else
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5661$as_echo "no, using $LN_S" >&6; }
5662fi
5663
5664# find the maximum length of command line arguments
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5666$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5667if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5668  $as_echo_n "(cached) " >&6
5669else
5670    i=0
5671  teststring="ABCD"
5672
5673  case $build_os in
5674  msdosdjgpp*)
5675    # On DJGPP, this test can blow up pretty badly due to problems in libc
5676    # (any single argument exceeding 2000 bytes causes a buffer overrun
5677    # during glob expansion).  Even if it were fixed, the result of this
5678    # check would be larger than it should be.
5679    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5680    ;;
5681
5682  gnu*)
5683    # Under GNU Hurd, this test is not required because there is
5684    # no limit to the length of command line arguments.
5685    # Libtool will interpret -1 as no limit whatsoever
5686    lt_cv_sys_max_cmd_len=-1;
5687    ;;
5688
5689  cygwin* | mingw* | cegcc*)
5690    # On Win9x/ME, this test blows up -- it succeeds, but takes
5691    # about 5 minutes as the teststring grows exponentially.
5692    # Worse, since 9x/ME are not pre-emptively multitasking,
5693    # you end up with a "frozen" computer, even though with patience
5694    # the test eventually succeeds (with a max line length of 256k).
5695    # Instead, let's just punt: use the minimum linelength reported by
5696    # all of the supported platforms: 8192 (on NT/2K/XP).
5697    lt_cv_sys_max_cmd_len=8192;
5698    ;;
5699
5700  mint*)
5701    # On MiNT this can take a long time and run out of memory.
5702    lt_cv_sys_max_cmd_len=8192;
5703    ;;
5704
5705  amigaos*)
5706    # On AmigaOS with pdksh, this test takes hours, literally.
5707    # So we just punt and use a minimum line length of 8192.
5708    lt_cv_sys_max_cmd_len=8192;
5709    ;;
5710
5711  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5712    # This has been around since 386BSD, at least.  Likely further.
5713    if test -x /sbin/sysctl; then
5714      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5715    elif test -x /usr/sbin/sysctl; then
5716      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5717    else
5718      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5719    fi
5720    # And add a safety zone
5721    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5722    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5723    ;;
5724
5725  interix*)
5726    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5727    lt_cv_sys_max_cmd_len=196608
5728    ;;
5729
5730  osf*)
5731    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5732    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5733    # nice to cause kernel panics so lets avoid the loop below.
5734    # First set a reasonable default.
5735    lt_cv_sys_max_cmd_len=16384
5736    #
5737    if test -x /sbin/sysconfig; then
5738      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5739        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5740      esac
5741    fi
5742    ;;
5743  sco3.2v5*)
5744    lt_cv_sys_max_cmd_len=102400
5745    ;;
5746  sysv5* | sco5v6* | sysv4.2uw2*)
5747    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5748    if test -n "$kargmax"; then
5749      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5750    else
5751      lt_cv_sys_max_cmd_len=32768
5752    fi
5753    ;;
5754  *)
5755    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5756    if test -n "$lt_cv_sys_max_cmd_len"; then
5757      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5758      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5759    else
5760      # Make teststring a little bigger before we do anything with it.
5761      # a 1K string should be a reasonable start.
5762      for i in 1 2 3 4 5 6 7 8 ; do
5763        teststring=$teststring$teststring
5764      done
5765      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5766      # If test is not a shell built-in, we'll probably end up computing a
5767      # maximum length that is only half of the actual maximum length, but
5768      # we can't tell.
5769      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5770	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5771	      test $i != 17 # 1/2 MB should be enough
5772      do
5773        i=`expr $i + 1`
5774        teststring=$teststring$teststring
5775      done
5776      # Only check the string length outside the loop.
5777      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5778      teststring=
5779      # Add a significant safety factor because C++ compilers can tack on
5780      # massive amounts of additional arguments before passing them to the
5781      # linker.  It appears as though 1/2 is a usable value.
5782      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5783    fi
5784    ;;
5785  esac
5786
5787fi
5788
5789if test -n $lt_cv_sys_max_cmd_len ; then
5790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5791$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5792else
5793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5794$as_echo "none" >&6; }
5795fi
5796max_cmd_len=$lt_cv_sys_max_cmd_len
5797
5798
5799
5800
5801
5802
5803: ${CP="cp -f"}
5804: ${MV="mv -f"}
5805: ${RM="rm -f"}
5806
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5808$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5809# Try some XSI features
5810xsi_shell=no
5811( _lt_dummy="a/b/c"
5812  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5813      = c,a/b,, \
5814    && eval 'test $(( 1 + 1 )) -eq 2 \
5815    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5816  && xsi_shell=yes
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5818$as_echo "$xsi_shell" >&6; }
5819
5820
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5822$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5823lt_shell_append=no
5824( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5825    >/dev/null 2>&1 \
5826  && lt_shell_append=yes
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5828$as_echo "$lt_shell_append" >&6; }
5829
5830
5831if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5832  lt_unset=unset
5833else
5834  lt_unset=false
5835fi
5836
5837
5838
5839
5840
5841# test EBCDIC or ASCII
5842case `echo X|tr X '\101'` in
5843 A) # ASCII based system
5844    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5845  lt_SP2NL='tr \040 \012'
5846  lt_NL2SP='tr \015\012 \040\040'
5847  ;;
5848 *) # EBCDIC based system
5849  lt_SP2NL='tr \100 \n'
5850  lt_NL2SP='tr \r\n \100\100'
5851  ;;
5852esac
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5863$as_echo_n "checking for $LD option to reload object files... " >&6; }
5864if test "${lt_cv_ld_reload_flag+set}" = set; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867  lt_cv_ld_reload_flag='-r'
5868fi
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5870$as_echo "$lt_cv_ld_reload_flag" >&6; }
5871reload_flag=$lt_cv_ld_reload_flag
5872case $reload_flag in
5873"" | " "*) ;;
5874*) reload_flag=" $reload_flag" ;;
5875esac
5876reload_cmds='$LD$reload_flag -o $output$reload_objs'
5877case $host_os in
5878  darwin*)
5879    if test "$GCC" = yes; then
5880      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5881    else
5882      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5883    fi
5884    ;;
5885esac
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895if test -n "$ac_tool_prefix"; then
5896  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5897set dummy ${ac_tool_prefix}objdump; ac_word=$2
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899$as_echo_n "checking for $ac_word... " >&6; }
5900if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5901  $as_echo_n "(cached) " >&6
5902else
5903  if test -n "$OBJDUMP"; then
5904  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909  IFS=$as_save_IFS
5910  test -z "$as_dir" && as_dir=.
5911    for ac_exec_ext in '' $ac_executable_extensions; do
5912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5913    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915    break 2
5916  fi
5917done
5918  done
5919IFS=$as_save_IFS
5920
5921fi
5922fi
5923OBJDUMP=$ac_cv_prog_OBJDUMP
5924if test -n "$OBJDUMP"; then
5925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5926$as_echo "$OBJDUMP" >&6; }
5927else
5928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929$as_echo "no" >&6; }
5930fi
5931
5932
5933fi
5934if test -z "$ac_cv_prog_OBJDUMP"; then
5935  ac_ct_OBJDUMP=$OBJDUMP
5936  # Extract the first word of "objdump", so it can be a program name with args.
5937set dummy objdump; ac_word=$2
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939$as_echo_n "checking for $ac_word... " >&6; }
5940if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5941  $as_echo_n "(cached) " >&6
5942else
5943  if test -n "$ac_ct_OBJDUMP"; then
5944  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949  IFS=$as_save_IFS
5950  test -z "$as_dir" && as_dir=.
5951    for ac_exec_ext in '' $ac_executable_extensions; do
5952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955    break 2
5956  fi
5957done
5958  done
5959IFS=$as_save_IFS
5960
5961fi
5962fi
5963ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5964if test -n "$ac_ct_OBJDUMP"; then
5965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5966$as_echo "$ac_ct_OBJDUMP" >&6; }
5967else
5968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969$as_echo "no" >&6; }
5970fi
5971
5972  if test "x$ac_ct_OBJDUMP" = x; then
5973    OBJDUMP="false"
5974  else
5975    case $cross_compiling:$ac_tool_warned in
5976yes:)
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5979ac_tool_warned=yes ;;
5980esac
5981    OBJDUMP=$ac_ct_OBJDUMP
5982  fi
5983else
5984  OBJDUMP="$ac_cv_prog_OBJDUMP"
5985fi
5986
5987test -z "$OBJDUMP" && OBJDUMP=objdump
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5998$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5999if test "${lt_cv_deplibs_check_method+set}" = set; then :
6000  $as_echo_n "(cached) " >&6
6001else
6002  lt_cv_file_magic_cmd='$MAGIC_CMD'
6003lt_cv_file_magic_test_file=
6004lt_cv_deplibs_check_method='unknown'
6005# Need to set the preceding variable on all platforms that support
6006# interlibrary dependencies.
6007# 'none' -- dependencies not supported.
6008# `unknown' -- same as none, but documents that we really don't know.
6009# 'pass_all' -- all dependencies passed with no checks.
6010# 'test_compile' -- check by making test program.
6011# 'file_magic [[regex]]' -- check by looking for files in library path
6012# which responds to the $file_magic_cmd with a given extended regex.
6013# If you have `file' or equivalent on your system and you're not sure
6014# whether `pass_all' will *always* work, you probably want this one.
6015
6016case $host_os in
6017aix[4-9]*)
6018  lt_cv_deplibs_check_method=pass_all
6019  ;;
6020
6021beos*)
6022  lt_cv_deplibs_check_method=pass_all
6023  ;;
6024
6025bsdi[45]*)
6026  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6027  lt_cv_file_magic_cmd='/usr/bin/file -L'
6028  lt_cv_file_magic_test_file=/shlib/libc.so
6029  ;;
6030
6031cygwin*)
6032  # func_win32_libid is a shell function defined in ltmain.sh
6033  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6034  lt_cv_file_magic_cmd='func_win32_libid'
6035  ;;
6036
6037mingw* | pw32*)
6038  # Base MSYS/MinGW do not provide the 'file' command needed by
6039  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6040  # unless we find 'file', for example because we are cross-compiling.
6041  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6042  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6043    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6044    lt_cv_file_magic_cmd='func_win32_libid'
6045  else
6046    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6047    lt_cv_file_magic_cmd='$OBJDUMP -f'
6048  fi
6049  ;;
6050
6051cegcc*)
6052  # use the weaker test based on 'objdump'. See mingw*.
6053  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6054  lt_cv_file_magic_cmd='$OBJDUMP -f'
6055  ;;
6056
6057darwin* | rhapsody*)
6058  lt_cv_deplibs_check_method=pass_all
6059  ;;
6060
6061freebsd* | dragonfly*)
6062  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6063    case $host_cpu in
6064    i*86 )
6065      # Not sure whether the presence of OpenBSD here was a mistake.
6066      # Let's accept both of them until this is cleared up.
6067      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6068      lt_cv_file_magic_cmd=/usr/bin/file
6069      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6070      ;;
6071    esac
6072  else
6073    lt_cv_deplibs_check_method=pass_all
6074  fi
6075  ;;
6076
6077gnu*)
6078  lt_cv_deplibs_check_method=pass_all
6079  ;;
6080
6081haiku*)
6082  lt_cv_deplibs_check_method=pass_all
6083  ;;
6084
6085hpux10.20* | hpux11*)
6086  lt_cv_file_magic_cmd=/usr/bin/file
6087  case $host_cpu in
6088  ia64*)
6089    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6090    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6091    ;;
6092  hppa*64*)
6093    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]'
6094    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6095    ;;
6096  *)
6097    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6098    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6099    ;;
6100  esac
6101  ;;
6102
6103interix[3-9]*)
6104  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6105  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6106  ;;
6107
6108irix5* | irix6* | nonstopux*)
6109  case $LD in
6110  *-32|*"-32 ") libmagic=32-bit;;
6111  *-n32|*"-n32 ") libmagic=N32;;
6112  *-64|*"-64 ") libmagic=64-bit;;
6113  *) libmagic=never-match;;
6114  esac
6115  lt_cv_deplibs_check_method=pass_all
6116  ;;
6117
6118# This must be Linux ELF.
6119linux* | k*bsd*-gnu | kopensolaris*-gnu)
6120  lt_cv_deplibs_check_method=pass_all
6121  ;;
6122
6123netbsd*)
6124  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6125    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6126  else
6127    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6128  fi
6129  ;;
6130
6131newos6*)
6132  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6133  lt_cv_file_magic_cmd=/usr/bin/file
6134  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6135  ;;
6136
6137*nto* | *qnx*)
6138  lt_cv_deplibs_check_method=pass_all
6139  ;;
6140
6141openbsd*)
6142  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6143    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6144  else
6145    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6146  fi
6147  ;;
6148
6149osf3* | osf4* | osf5*)
6150  lt_cv_deplibs_check_method=pass_all
6151  ;;
6152
6153rdos*)
6154  lt_cv_deplibs_check_method=pass_all
6155  ;;
6156
6157solaris*)
6158  lt_cv_deplibs_check_method=pass_all
6159  ;;
6160
6161sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6162  lt_cv_deplibs_check_method=pass_all
6163  ;;
6164
6165sysv4 | sysv4.3*)
6166  case $host_vendor in
6167  motorola)
6168    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]'
6169    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6170    ;;
6171  ncr)
6172    lt_cv_deplibs_check_method=pass_all
6173    ;;
6174  sequent)
6175    lt_cv_file_magic_cmd='/bin/file'
6176    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6177    ;;
6178  sni)
6179    lt_cv_file_magic_cmd='/bin/file'
6180    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6181    lt_cv_file_magic_test_file=/lib/libc.so
6182    ;;
6183  siemens)
6184    lt_cv_deplibs_check_method=pass_all
6185    ;;
6186  pc)
6187    lt_cv_deplibs_check_method=pass_all
6188    ;;
6189  esac
6190  ;;
6191
6192tpf*)
6193  lt_cv_deplibs_check_method=pass_all
6194  ;;
6195esac
6196
6197fi
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6199$as_echo "$lt_cv_deplibs_check_method" >&6; }
6200file_magic_cmd=$lt_cv_file_magic_cmd
6201deplibs_check_method=$lt_cv_deplibs_check_method
6202test -z "$deplibs_check_method" && deplibs_check_method=unknown
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215if test -n "$ac_tool_prefix"; then
6216  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6217set dummy ${ac_tool_prefix}ar; ac_word=$2
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219$as_echo_n "checking for $ac_word... " >&6; }
6220if test "${ac_cv_prog_AR+set}" = set; then :
6221  $as_echo_n "(cached) " >&6
6222else
6223  if test -n "$AR"; then
6224  ac_cv_prog_AR="$AR" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231    for ac_exec_ext in '' $ac_executable_extensions; do
6232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233    ac_cv_prog_AR="${ac_tool_prefix}ar"
6234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238  done
6239IFS=$as_save_IFS
6240
6241fi
6242fi
6243AR=$ac_cv_prog_AR
6244if test -n "$AR"; then
6245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6246$as_echo "$AR" >&6; }
6247else
6248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249$as_echo "no" >&6; }
6250fi
6251
6252
6253fi
6254if test -z "$ac_cv_prog_AR"; then
6255  ac_ct_AR=$AR
6256  # Extract the first word of "ar", so it can be a program name with args.
6257set dummy ar; ac_word=$2
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259$as_echo_n "checking for $ac_word... " >&6; }
6260if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6261  $as_echo_n "(cached) " >&6
6262else
6263  if test -n "$ac_ct_AR"; then
6264  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6265else
6266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267for as_dir in $PATH
6268do
6269  IFS=$as_save_IFS
6270  test -z "$as_dir" && as_dir=.
6271    for ac_exec_ext in '' $ac_executable_extensions; do
6272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273    ac_cv_prog_ac_ct_AR="ar"
6274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275    break 2
6276  fi
6277done
6278  done
6279IFS=$as_save_IFS
6280
6281fi
6282fi
6283ac_ct_AR=$ac_cv_prog_ac_ct_AR
6284if test -n "$ac_ct_AR"; then
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6286$as_echo "$ac_ct_AR" >&6; }
6287else
6288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289$as_echo "no" >&6; }
6290fi
6291
6292  if test "x$ac_ct_AR" = x; then
6293    AR="false"
6294  else
6295    case $cross_compiling:$ac_tool_warned in
6296yes:)
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299ac_tool_warned=yes ;;
6300esac
6301    AR=$ac_ct_AR
6302  fi
6303else
6304  AR="$ac_cv_prog_AR"
6305fi
6306
6307test -z "$AR" && AR=ar
6308test -z "$AR_FLAGS" && AR_FLAGS=cru
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320if test -n "$ac_tool_prefix"; then
6321  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6322set dummy ${ac_tool_prefix}strip; ac_word=$2
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324$as_echo_n "checking for $ac_word... " >&6; }
6325if test "${ac_cv_prog_STRIP+set}" = set; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  if test -n "$STRIP"; then
6329  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6330else
6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334  IFS=$as_save_IFS
6335  test -z "$as_dir" && as_dir=.
6336    for ac_exec_ext in '' $ac_executable_extensions; do
6337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340    break 2
6341  fi
6342done
6343  done
6344IFS=$as_save_IFS
6345
6346fi
6347fi
6348STRIP=$ac_cv_prog_STRIP
6349if test -n "$STRIP"; then
6350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6351$as_echo "$STRIP" >&6; }
6352else
6353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354$as_echo "no" >&6; }
6355fi
6356
6357
6358fi
6359if test -z "$ac_cv_prog_STRIP"; then
6360  ac_ct_STRIP=$STRIP
6361  # Extract the first word of "strip", so it can be a program name with args.
6362set dummy strip; ac_word=$2
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364$as_echo_n "checking for $ac_word... " >&6; }
6365if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6366  $as_echo_n "(cached) " >&6
6367else
6368  if test -n "$ac_ct_STRIP"; then
6369  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6370else
6371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372for as_dir in $PATH
6373do
6374  IFS=$as_save_IFS
6375  test -z "$as_dir" && as_dir=.
6376    for ac_exec_ext in '' $ac_executable_extensions; do
6377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378    ac_cv_prog_ac_ct_STRIP="strip"
6379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380    break 2
6381  fi
6382done
6383  done
6384IFS=$as_save_IFS
6385
6386fi
6387fi
6388ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6389if test -n "$ac_ct_STRIP"; then
6390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6391$as_echo "$ac_ct_STRIP" >&6; }
6392else
6393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394$as_echo "no" >&6; }
6395fi
6396
6397  if test "x$ac_ct_STRIP" = x; then
6398    STRIP=":"
6399  else
6400    case $cross_compiling:$ac_tool_warned in
6401yes:)
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404ac_tool_warned=yes ;;
6405esac
6406    STRIP=$ac_ct_STRIP
6407  fi
6408else
6409  STRIP="$ac_cv_prog_STRIP"
6410fi
6411
6412test -z "$STRIP" && STRIP=:
6413
6414
6415
6416
6417
6418
6419if test -n "$ac_tool_prefix"; then
6420  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6421set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423$as_echo_n "checking for $ac_word... " >&6; }
6424if test "${ac_cv_prog_RANLIB+set}" = set; then :
6425  $as_echo_n "(cached) " >&6
6426else
6427  if test -n "$RANLIB"; then
6428  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6429else
6430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431for as_dir in $PATH
6432do
6433  IFS=$as_save_IFS
6434  test -z "$as_dir" && as_dir=.
6435    for ac_exec_ext in '' $ac_executable_extensions; do
6436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439    break 2
6440  fi
6441done
6442  done
6443IFS=$as_save_IFS
6444
6445fi
6446fi
6447RANLIB=$ac_cv_prog_RANLIB
6448if test -n "$RANLIB"; then
6449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6450$as_echo "$RANLIB" >&6; }
6451else
6452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453$as_echo "no" >&6; }
6454fi
6455
6456
6457fi
6458if test -z "$ac_cv_prog_RANLIB"; then
6459  ac_ct_RANLIB=$RANLIB
6460  # Extract the first word of "ranlib", so it can be a program name with args.
6461set dummy ranlib; ac_word=$2
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463$as_echo_n "checking for $ac_word... " >&6; }
6464if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6465  $as_echo_n "(cached) " >&6
6466else
6467  if test -n "$ac_ct_RANLIB"; then
6468  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6469else
6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473  IFS=$as_save_IFS
6474  test -z "$as_dir" && as_dir=.
6475    for ac_exec_ext in '' $ac_executable_extensions; do
6476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477    ac_cv_prog_ac_ct_RANLIB="ranlib"
6478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479    break 2
6480  fi
6481done
6482  done
6483IFS=$as_save_IFS
6484
6485fi
6486fi
6487ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6488if test -n "$ac_ct_RANLIB"; then
6489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6490$as_echo "$ac_ct_RANLIB" >&6; }
6491else
6492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493$as_echo "no" >&6; }
6494fi
6495
6496  if test "x$ac_ct_RANLIB" = x; then
6497    RANLIB=":"
6498  else
6499    case $cross_compiling:$ac_tool_warned in
6500yes:)
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6503ac_tool_warned=yes ;;
6504esac
6505    RANLIB=$ac_ct_RANLIB
6506  fi
6507else
6508  RANLIB="$ac_cv_prog_RANLIB"
6509fi
6510
6511test -z "$RANLIB" && RANLIB=:
6512
6513
6514
6515
6516
6517
6518# Determine commands to create old-style static archives.
6519old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6520old_postinstall_cmds='chmod 644 $oldlib'
6521old_postuninstall_cmds=
6522
6523if test -n "$RANLIB"; then
6524  case $host_os in
6525  openbsd*)
6526    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6527    ;;
6528  *)
6529    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6530    ;;
6531  esac
6532  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6533fi
6534
6535case $host_os in
6536  darwin*)
6537    lock_old_archive_extraction=yes ;;
6538  *)
6539    lock_old_archive_extraction=no ;;
6540esac
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580# If no C compiler was specified, use CC.
6581LTCC=${LTCC-"$CC"}
6582
6583# If no C compiler flags were specified, use CFLAGS.
6584LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6585
6586# Allow CC to be a program name with arguments.
6587compiler=$CC
6588
6589
6590# Check for command to grab the raw symbol name followed by C symbol from nm.
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6592$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6593if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596
6597# These are sane defaults that work on at least a few old systems.
6598# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6599
6600# Character class describing NM global symbol codes.
6601symcode='[BCDEGRST]'
6602
6603# Regexp to match symbols that can be accessed directly from C.
6604sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6605
6606# Define system-specific variables.
6607case $host_os in
6608aix*)
6609  symcode='[BCDT]'
6610  ;;
6611cygwin* | mingw* | pw32* | cegcc*)
6612  symcode='[ABCDGISTW]'
6613  ;;
6614hpux*)
6615  if test "$host_cpu" = ia64; then
6616    symcode='[ABCDEGRST]'
6617  fi
6618  ;;
6619irix* | nonstopux*)
6620  symcode='[BCDEGRST]'
6621  ;;
6622osf*)
6623  symcode='[BCDEGQRST]'
6624  ;;
6625solaris*)
6626  symcode='[BDRT]'
6627  ;;
6628sco3.2v5*)
6629  symcode='[DT]'
6630  ;;
6631sysv4.2uw2*)
6632  symcode='[DT]'
6633  ;;
6634sysv5* | sco5v6* | unixware* | OpenUNIX*)
6635  symcode='[ABDT]'
6636  ;;
6637sysv4)
6638  symcode='[DFNSTU]'
6639  ;;
6640esac
6641
6642# If we're using GNU nm, then use its standard symbol codes.
6643case `$NM -V 2>&1` in
6644*GNU* | *'with BFD'*)
6645  symcode='[ABCDGIRSTW]' ;;
6646esac
6647
6648# Transform an extracted symbol line into a proper C declaration.
6649# Some systems (esp. on ia64) link data and code symbols differently,
6650# so use this general approach.
6651lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6652
6653# Transform an extracted symbol line into symbol name and symbol address
6654lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6655lt_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'"
6656
6657# Handle CRLF in mingw tool chain
6658opt_cr=
6659case $build_os in
6660mingw*)
6661  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6662  ;;
6663esac
6664
6665# Try without a prefix underscore, then with it.
6666for ac_symprfx in "" "_"; do
6667
6668  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6669  symxfrm="\\1 $ac_symprfx\\2 \\2"
6670
6671  # Write the raw and C identifiers.
6672  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6673    # Fake it for dumpbin and say T for any non-static function
6674    # and D for any global variable.
6675    # Also find C++ and __fastcall symbols from MSVC++,
6676    # which start with @ or ?.
6677    lt_cv_sys_global_symbol_pipe="$AWK '"\
6678"     {last_section=section; section=\$ 3};"\
6679"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6680"     \$ 0!~/External *\|/{next};"\
6681"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6682"     {if(hide[section]) next};"\
6683"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6684"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6685"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6686"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6687"     ' prfx=^$ac_symprfx"
6688  else
6689    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6690  fi
6691
6692  # Check to see that the pipe works correctly.
6693  pipe_works=no
6694
6695  rm -f conftest*
6696  cat > conftest.$ac_ext <<_LT_EOF
6697#ifdef __cplusplus
6698extern "C" {
6699#endif
6700char nm_test_var;
6701void nm_test_func(void);
6702void nm_test_func(void){}
6703#ifdef __cplusplus
6704}
6705#endif
6706int main(){nm_test_var='a';nm_test_func();return(0);}
6707_LT_EOF
6708
6709  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6710  (eval $ac_compile) 2>&5
6711  ac_status=$?
6712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6713  test $ac_status = 0; }; then
6714    # Now try to grab the symbols.
6715    nlist=conftest.nm
6716    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6717  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6718  ac_status=$?
6719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6720  test $ac_status = 0; } && test -s "$nlist"; then
6721      # Try sorting and uniquifying the output.
6722      if sort "$nlist" | uniq > "$nlist"T; then
6723	mv -f "$nlist"T "$nlist"
6724      else
6725	rm -f "$nlist"T
6726      fi
6727
6728      # Make sure that we snagged all the symbols we need.
6729      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6730	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6731	  cat <<_LT_EOF > conftest.$ac_ext
6732#ifdef __cplusplus
6733extern "C" {
6734#endif
6735
6736_LT_EOF
6737	  # Now generate the symbol file.
6738	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6739
6740	  cat <<_LT_EOF >> conftest.$ac_ext
6741
6742/* The mapping between symbol names and symbols.  */
6743const struct {
6744  const char *name;
6745  void       *address;
6746}
6747lt__PROGRAM__LTX_preloaded_symbols[] =
6748{
6749  { "@PROGRAM@", (void *) 0 },
6750_LT_EOF
6751	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6752	  cat <<\_LT_EOF >> conftest.$ac_ext
6753  {0, (void *) 0}
6754};
6755
6756/* This works around a problem in FreeBSD linker */
6757#ifdef FREEBSD_WORKAROUND
6758static const void *lt_preloaded_setup() {
6759  return lt__PROGRAM__LTX_preloaded_symbols;
6760}
6761#endif
6762
6763#ifdef __cplusplus
6764}
6765#endif
6766_LT_EOF
6767	  # Now try linking the two files.
6768	  mv conftest.$ac_objext conftstm.$ac_objext
6769	  lt_save_LIBS="$LIBS"
6770	  lt_save_CFLAGS="$CFLAGS"
6771	  LIBS="conftstm.$ac_objext"
6772	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6773	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6774  (eval $ac_link) 2>&5
6775  ac_status=$?
6776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6778	    pipe_works=yes
6779	  fi
6780	  LIBS="$lt_save_LIBS"
6781	  CFLAGS="$lt_save_CFLAGS"
6782	else
6783	  echo "cannot find nm_test_func in $nlist" >&5
6784	fi
6785      else
6786	echo "cannot find nm_test_var in $nlist" >&5
6787      fi
6788    else
6789      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6790    fi
6791  else
6792    echo "$progname: failed program was:" >&5
6793    cat conftest.$ac_ext >&5
6794  fi
6795  rm -rf conftest* conftst*
6796
6797  # Do not use the global_symbol_pipe unless it works.
6798  if test "$pipe_works" = yes; then
6799    break
6800  else
6801    lt_cv_sys_global_symbol_pipe=
6802  fi
6803done
6804
6805fi
6806
6807if test -z "$lt_cv_sys_global_symbol_pipe"; then
6808  lt_cv_sys_global_symbol_to_cdecl=
6809fi
6810if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6812$as_echo "failed" >&6; }
6813else
6814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6815$as_echo "ok" >&6; }
6816fi
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839# Check whether --enable-libtool-lock was given.
6840if test "${enable_libtool_lock+set}" = set; then :
6841  enableval=$enable_libtool_lock;
6842fi
6843
6844test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6845
6846# Some flags need to be propagated to the compiler or linker for good
6847# libtool support.
6848case $host in
6849ia64-*-hpux*)
6850  # Find out which ABI we are using.
6851  echo 'int i;' > conftest.$ac_ext
6852  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6853  (eval $ac_compile) 2>&5
6854  ac_status=$?
6855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856  test $ac_status = 0; }; then
6857    case `/usr/bin/file conftest.$ac_objext` in
6858      *ELF-32*)
6859	HPUX_IA64_MODE="32"
6860	;;
6861      *ELF-64*)
6862	HPUX_IA64_MODE="64"
6863	;;
6864    esac
6865  fi
6866  rm -rf conftest*
6867  ;;
6868*-*-irix6*)
6869  # Find out which ABI we are using.
6870  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6871  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872  (eval $ac_compile) 2>&5
6873  ac_status=$?
6874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875  test $ac_status = 0; }; then
6876    if test "$lt_cv_prog_gnu_ld" = yes; then
6877      case `/usr/bin/file conftest.$ac_objext` in
6878	*32-bit*)
6879	  LD="${LD-ld} -melf32bsmip"
6880	  ;;
6881	*N32*)
6882	  LD="${LD-ld} -melf32bmipn32"
6883	  ;;
6884	*64-bit*)
6885	  LD="${LD-ld} -melf64bmip"
6886	;;
6887      esac
6888    else
6889      case `/usr/bin/file conftest.$ac_objext` in
6890	*32-bit*)
6891	  LD="${LD-ld} -32"
6892	  ;;
6893	*N32*)
6894	  LD="${LD-ld} -n32"
6895	  ;;
6896	*64-bit*)
6897	  LD="${LD-ld} -64"
6898	  ;;
6899      esac
6900    fi
6901  fi
6902  rm -rf conftest*
6903  ;;
6904
6905x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6906s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6907  # Find out which ABI we are using.
6908  echo 'int i;' > conftest.$ac_ext
6909  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6910  (eval $ac_compile) 2>&5
6911  ac_status=$?
6912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913  test $ac_status = 0; }; then
6914    case `/usr/bin/file conftest.o` in
6915      *32-bit*)
6916	case $host in
6917	  x86_64-*kfreebsd*-gnu)
6918	    LD="${LD-ld} -m elf_i386_fbsd"
6919	    ;;
6920	  x86_64-*linux*)
6921	    case `/usr/bin/file conftest.o` in
6922	      *x86-64*)
6923		LD="${LD-ld} -m elf32_x86_64"
6924		;;
6925	      *)
6926		LD="${LD-ld} -m elf_i386"
6927		;;
6928	    esac
6929	    ;;
6930	  powerpc64le-*linux*)
6931	    LD="${LD-ld} -m elf32lppclinux"
6932	    ;;
6933	  powerpc64-*linux*)
6934	    LD="${LD-ld} -m elf32ppclinux"
6935	    ;;
6936	  s390x-*linux*)
6937	    LD="${LD-ld} -m elf_s390"
6938	    ;;
6939	  sparc64-*linux*)
6940	    LD="${LD-ld} -m elf32_sparc"
6941	    ;;
6942	esac
6943	;;
6944      *64-bit*)
6945	case $host in
6946	  x86_64-*kfreebsd*-gnu)
6947	    LD="${LD-ld} -m elf_x86_64_fbsd"
6948	    ;;
6949	  x86_64-*linux*)
6950	    LD="${LD-ld} -m elf_x86_64"
6951	    ;;
6952	  powerpcle-*linux*)
6953	    LD="${LD-ld} -m elf64lppc"
6954	    ;;
6955	  powerpc-*linux*)
6956	    LD="${LD-ld} -m elf64ppc"
6957	    ;;
6958	  s390*-*linux*|s390*-*tpf*)
6959	    LD="${LD-ld} -m elf64_s390"
6960	    ;;
6961	  sparc*-*linux*)
6962	    LD="${LD-ld} -m elf64_sparc"
6963	    ;;
6964	esac
6965	;;
6966    esac
6967  fi
6968  rm -rf conftest*
6969  ;;
6970
6971*-*-sco3.2v5*)
6972  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6973  SAVE_CFLAGS="$CFLAGS"
6974  CFLAGS="$CFLAGS -belf"
6975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6976$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6977if test "${lt_cv_cc_needs_belf+set}" = set; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  ac_ext=c
6981ac_cpp='$CPP $CPPFLAGS'
6982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984ac_compiler_gnu=$ac_cv_c_compiler_gnu
6985
6986     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h.  */
6988
6989int
6990main ()
6991{
6992
6993  ;
6994  return 0;
6995}
6996_ACEOF
6997if ac_fn_c_try_link "$LINENO"; then :
6998  lt_cv_cc_needs_belf=yes
6999else
7000  lt_cv_cc_needs_belf=no
7001fi
7002rm -f core conftest.err conftest.$ac_objext \
7003    conftest$ac_exeext conftest.$ac_ext
7004     ac_ext=c
7005ac_cpp='$CPP $CPPFLAGS'
7006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008ac_compiler_gnu=$ac_cv_c_compiler_gnu
7009
7010fi
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7012$as_echo "$lt_cv_cc_needs_belf" >&6; }
7013  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7014    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7015    CFLAGS="$SAVE_CFLAGS"
7016  fi
7017  ;;
7018sparc*-*solaris*)
7019  # Find out which ABI we are using.
7020  echo 'int i;' > conftest.$ac_ext
7021  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7022  (eval $ac_compile) 2>&5
7023  ac_status=$?
7024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025  test $ac_status = 0; }; then
7026    case `/usr/bin/file conftest.o` in
7027    *64-bit*)
7028      case $lt_cv_prog_gnu_ld in
7029      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7030      *)
7031	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7032	  LD="${LD-ld} -64"
7033	fi
7034	;;
7035      esac
7036      ;;
7037    esac
7038  fi
7039  rm -rf conftest*
7040  ;;
7041esac
7042
7043need_locks="$enable_libtool_lock"
7044
7045
7046  case $host_os in
7047    rhapsody* | darwin*)
7048    if test -n "$ac_tool_prefix"; then
7049  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7050set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052$as_echo_n "checking for $ac_word... " >&6; }
7053if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7054  $as_echo_n "(cached) " >&6
7055else
7056  if test -n "$DSYMUTIL"; then
7057  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7058else
7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062  IFS=$as_save_IFS
7063  test -z "$as_dir" && as_dir=.
7064    for ac_exec_ext in '' $ac_executable_extensions; do
7065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7066    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7068    break 2
7069  fi
7070done
7071  done
7072IFS=$as_save_IFS
7073
7074fi
7075fi
7076DSYMUTIL=$ac_cv_prog_DSYMUTIL
7077if test -n "$DSYMUTIL"; then
7078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7079$as_echo "$DSYMUTIL" >&6; }
7080else
7081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082$as_echo "no" >&6; }
7083fi
7084
7085
7086fi
7087if test -z "$ac_cv_prog_DSYMUTIL"; then
7088  ac_ct_DSYMUTIL=$DSYMUTIL
7089  # Extract the first word of "dsymutil", so it can be a program name with args.
7090set dummy dsymutil; ac_word=$2
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092$as_echo_n "checking for $ac_word... " >&6; }
7093if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7094  $as_echo_n "(cached) " >&6
7095else
7096  if test -n "$ac_ct_DSYMUTIL"; then
7097  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7098else
7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH
7101do
7102  IFS=$as_save_IFS
7103  test -z "$as_dir" && as_dir=.
7104    for ac_exec_ext in '' $ac_executable_extensions; do
7105  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7106    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108    break 2
7109  fi
7110done
7111  done
7112IFS=$as_save_IFS
7113
7114fi
7115fi
7116ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7117if test -n "$ac_ct_DSYMUTIL"; then
7118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7119$as_echo "$ac_ct_DSYMUTIL" >&6; }
7120else
7121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122$as_echo "no" >&6; }
7123fi
7124
7125  if test "x$ac_ct_DSYMUTIL" = x; then
7126    DSYMUTIL=":"
7127  else
7128    case $cross_compiling:$ac_tool_warned in
7129yes:)
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7132ac_tool_warned=yes ;;
7133esac
7134    DSYMUTIL=$ac_ct_DSYMUTIL
7135  fi
7136else
7137  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7138fi
7139
7140    if test -n "$ac_tool_prefix"; then
7141  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7142set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144$as_echo_n "checking for $ac_word... " >&6; }
7145if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7146  $as_echo_n "(cached) " >&6
7147else
7148  if test -n "$NMEDIT"; then
7149  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7150else
7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154  IFS=$as_save_IFS
7155  test -z "$as_dir" && as_dir=.
7156    for ac_exec_ext in '' $ac_executable_extensions; do
7157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7158    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160    break 2
7161  fi
7162done
7163  done
7164IFS=$as_save_IFS
7165
7166fi
7167fi
7168NMEDIT=$ac_cv_prog_NMEDIT
7169if test -n "$NMEDIT"; then
7170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7171$as_echo "$NMEDIT" >&6; }
7172else
7173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174$as_echo "no" >&6; }
7175fi
7176
7177
7178fi
7179if test -z "$ac_cv_prog_NMEDIT"; then
7180  ac_ct_NMEDIT=$NMEDIT
7181  # Extract the first word of "nmedit", so it can be a program name with args.
7182set dummy nmedit; ac_word=$2
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184$as_echo_n "checking for $ac_word... " >&6; }
7185if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  if test -n "$ac_ct_NMEDIT"; then
7189  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7190else
7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194  IFS=$as_save_IFS
7195  test -z "$as_dir" && as_dir=.
7196    for ac_exec_ext in '' $ac_executable_extensions; do
7197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200    break 2
7201  fi
7202done
7203  done
7204IFS=$as_save_IFS
7205
7206fi
7207fi
7208ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7209if test -n "$ac_ct_NMEDIT"; then
7210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7211$as_echo "$ac_ct_NMEDIT" >&6; }
7212else
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214$as_echo "no" >&6; }
7215fi
7216
7217  if test "x$ac_ct_NMEDIT" = x; then
7218    NMEDIT=":"
7219  else
7220    case $cross_compiling:$ac_tool_warned in
7221yes:)
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224ac_tool_warned=yes ;;
7225esac
7226    NMEDIT=$ac_ct_NMEDIT
7227  fi
7228else
7229  NMEDIT="$ac_cv_prog_NMEDIT"
7230fi
7231
7232    if test -n "$ac_tool_prefix"; then
7233  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7234set dummy ${ac_tool_prefix}lipo; ac_word=$2
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236$as_echo_n "checking for $ac_word... " >&6; }
7237if test "${ac_cv_prog_LIPO+set}" = set; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  if test -n "$LIPO"; then
7241  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246  IFS=$as_save_IFS
7247  test -z "$as_dir" && as_dir=.
7248    for ac_exec_ext in '' $ac_executable_extensions; do
7249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252    break 2
7253  fi
7254done
7255  done
7256IFS=$as_save_IFS
7257
7258fi
7259fi
7260LIPO=$ac_cv_prog_LIPO
7261if test -n "$LIPO"; then
7262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7263$as_echo "$LIPO" >&6; }
7264else
7265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266$as_echo "no" >&6; }
7267fi
7268
7269
7270fi
7271if test -z "$ac_cv_prog_LIPO"; then
7272  ac_ct_LIPO=$LIPO
7273  # Extract the first word of "lipo", so it can be a program name with args.
7274set dummy lipo; ac_word=$2
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276$as_echo_n "checking for $ac_word... " >&6; }
7277if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  if test -n "$ac_ct_LIPO"; then
7281  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7282else
7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286  IFS=$as_save_IFS
7287  test -z "$as_dir" && as_dir=.
7288    for ac_exec_ext in '' $ac_executable_extensions; do
7289  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290    ac_cv_prog_ac_ct_LIPO="lipo"
7291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292    break 2
7293  fi
7294done
7295  done
7296IFS=$as_save_IFS
7297
7298fi
7299fi
7300ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7301if test -n "$ac_ct_LIPO"; then
7302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7303$as_echo "$ac_ct_LIPO" >&6; }
7304else
7305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306$as_echo "no" >&6; }
7307fi
7308
7309  if test "x$ac_ct_LIPO" = x; then
7310    LIPO=":"
7311  else
7312    case $cross_compiling:$ac_tool_warned in
7313yes:)
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316ac_tool_warned=yes ;;
7317esac
7318    LIPO=$ac_ct_LIPO
7319  fi
7320else
7321  LIPO="$ac_cv_prog_LIPO"
7322fi
7323
7324    if test -n "$ac_tool_prefix"; then
7325  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7326set dummy ${ac_tool_prefix}otool; ac_word=$2
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328$as_echo_n "checking for $ac_word... " >&6; }
7329if test "${ac_cv_prog_OTOOL+set}" = set; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  if test -n "$OTOOL"; then
7333  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7334else
7335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338  IFS=$as_save_IFS
7339  test -z "$as_dir" && as_dir=.
7340    for ac_exec_ext in '' $ac_executable_extensions; do
7341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344    break 2
7345  fi
7346done
7347  done
7348IFS=$as_save_IFS
7349
7350fi
7351fi
7352OTOOL=$ac_cv_prog_OTOOL
7353if test -n "$OTOOL"; then
7354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7355$as_echo "$OTOOL" >&6; }
7356else
7357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358$as_echo "no" >&6; }
7359fi
7360
7361
7362fi
7363if test -z "$ac_cv_prog_OTOOL"; then
7364  ac_ct_OTOOL=$OTOOL
7365  # Extract the first word of "otool", so it can be a program name with args.
7366set dummy otool; ac_word=$2
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368$as_echo_n "checking for $ac_word... " >&6; }
7369if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7370  $as_echo_n "(cached) " >&6
7371else
7372  if test -n "$ac_ct_OTOOL"; then
7373  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7374else
7375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376for as_dir in $PATH
7377do
7378  IFS=$as_save_IFS
7379  test -z "$as_dir" && as_dir=.
7380    for ac_exec_ext in '' $ac_executable_extensions; do
7381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382    ac_cv_prog_ac_ct_OTOOL="otool"
7383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384    break 2
7385  fi
7386done
7387  done
7388IFS=$as_save_IFS
7389
7390fi
7391fi
7392ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7393if test -n "$ac_ct_OTOOL"; then
7394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7395$as_echo "$ac_ct_OTOOL" >&6; }
7396else
7397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398$as_echo "no" >&6; }
7399fi
7400
7401  if test "x$ac_ct_OTOOL" = x; then
7402    OTOOL=":"
7403  else
7404    case $cross_compiling:$ac_tool_warned in
7405yes:)
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408ac_tool_warned=yes ;;
7409esac
7410    OTOOL=$ac_ct_OTOOL
7411  fi
7412else
7413  OTOOL="$ac_cv_prog_OTOOL"
7414fi
7415
7416    if test -n "$ac_tool_prefix"; then
7417  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7418set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+set}" = set; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  if test -n "$OTOOL64"; then
7425  ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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
7444OTOOL64=$ac_cv_prog_OTOOL64
7445if test -n "$OTOOL64"; then
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7447$as_echo "$OTOOL64" >&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_OTOOL64"; then
7456  ac_ct_OTOOL64=$OTOOL64
7457  # Extract the first word of "otool64", so it can be a program name with args.
7458set dummy otool64; 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_OTOOL64+set}" = set; then :
7462  $as_echo_n "(cached) " >&6
7463else
7464  if test -n "$ac_ct_OTOOL64"; then
7465  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64"
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_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7485if test -n "$ac_ct_OTOOL64"; then
7486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7487$as_echo "$ac_ct_OTOOL64" >&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_OTOOL64" = x; then
7494    OTOOL64=":"
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    OTOOL64=$ac_ct_OTOOL64
7503  fi
7504else
7505  OTOOL64="$ac_cv_prog_OTOOL64"
7506fi
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7535$as_echo_n "checking for -single_module linker flag... " >&6; }
7536if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7537  $as_echo_n "(cached) " >&6
7538else
7539  lt_cv_apple_cc_single_mod=no
7540      if test -z "${LT_MULTI_MODULE}"; then
7541	# By default we will add the -single_module flag. You can override
7542	# by either setting the environment variable LT_MULTI_MODULE
7543	# non-empty at configure time, or by adding -multi_module to the
7544	# link flags.
7545	rm -rf libconftest.dylib*
7546	echo "int foo(void){return 1;}" > conftest.c
7547	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7548-dynamiclib -Wl,-single_module conftest.c" >&5
7549	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7550	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7551        _lt_result=$?
7552	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7553	  lt_cv_apple_cc_single_mod=yes
7554	else
7555	  cat conftest.err >&5
7556	fi
7557	rm -rf libconftest.dylib*
7558	rm -f conftest.*
7559      fi
7560fi
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7562$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7563    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7564$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7565if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  lt_cv_ld_exported_symbols_list=no
7569      save_LDFLAGS=$LDFLAGS
7570      echo "_main" > conftest.sym
7571      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7572      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573/* end confdefs.h.  */
7574
7575int
7576main ()
7577{
7578
7579  ;
7580  return 0;
7581}
7582_ACEOF
7583if ac_fn_c_try_link "$LINENO"; then :
7584  lt_cv_ld_exported_symbols_list=yes
7585else
7586  lt_cv_ld_exported_symbols_list=no
7587fi
7588rm -f core conftest.err conftest.$ac_objext \
7589    conftest$ac_exeext conftest.$ac_ext
7590	LDFLAGS="$save_LDFLAGS"
7591
7592fi
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7594$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7596$as_echo_n "checking for -force_load linker flag... " >&6; }
7597if test "${lt_cv_ld_force_load+set}" = set; then :
7598  $as_echo_n "(cached) " >&6
7599else
7600  lt_cv_ld_force_load=no
7601      cat > conftest.c << _LT_EOF
7602int forced_loaded() { return 2;}
7603_LT_EOF
7604      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7605      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7606      echo "$AR cru libconftest.a conftest.o" >&5
7607      $AR cru libconftest.a conftest.o 2>&5
7608      cat > conftest.c << _LT_EOF
7609int main() { return 0;}
7610_LT_EOF
7611      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7612      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7613      _lt_result=$?
7614      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7615	lt_cv_ld_force_load=yes
7616      else
7617	cat conftest.err >&5
7618      fi
7619        rm -f conftest.err libconftest.a conftest conftest.c
7620        rm -rf conftest.dSYM
7621
7622fi
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7624$as_echo "$lt_cv_ld_force_load" >&6; }
7625    case $host_os in
7626    rhapsody* | darwin1.[012])
7627      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7628    darwin1.*)
7629      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7630    darwin*) # darwin 5.x on
7631      # if running on 10.5 or later, the deployment target defaults
7632      # to the OS version, if on x86, and 10.4, the deployment
7633      # target defaults to 10.4. Don't you love it?
7634      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7635	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7636	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7637	10.[012][,.]*)
7638	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7639	10.*)
7640	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7641      esac
7642    ;;
7643  esac
7644    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7645      _lt_dar_single_mod='$single_module'
7646    fi
7647    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7648      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7649    else
7650      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7651    fi
7652    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7653      _lt_dsymutil='~$DSYMUTIL $lib || :'
7654    else
7655      _lt_dsymutil=
7656    fi
7657    ;;
7658  esac
7659
7660for ac_header in dlfcn.h
7661do :
7662  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7663"
7664if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7665  cat >>confdefs.h <<_ACEOF
7666#define HAVE_DLFCN_H 1
7667_ACEOF
7668
7669fi
7670
7671done
7672
7673
7674
7675
7676
7677# Set options
7678
7679
7680
7681        enable_dlopen=no
7682
7683
7684  enable_win32_dll=no
7685
7686
7687            # Check whether --enable-shared was given.
7688if test "${enable_shared+set}" = set; then :
7689  enableval=$enable_shared; p=${PACKAGE-default}
7690    case $enableval in
7691    yes) enable_shared=yes ;;
7692    no) enable_shared=no ;;
7693    *)
7694      enable_shared=no
7695      # Look at the argument we got.  We use all the common list separators.
7696      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7697      for pkg in $enableval; do
7698	IFS="$lt_save_ifs"
7699	if test "X$pkg" = "X$p"; then
7700	  enable_shared=yes
7701	fi
7702      done
7703      IFS="$lt_save_ifs"
7704      ;;
7705    esac
7706else
7707  enable_shared=yes
7708fi
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718  # Check whether --enable-static was given.
7719if test "${enable_static+set}" = set; then :
7720  enableval=$enable_static; p=${PACKAGE-default}
7721    case $enableval in
7722    yes) enable_static=yes ;;
7723    no) enable_static=no ;;
7724    *)
7725     enable_static=no
7726      # Look at the argument we got.  We use all the common list separators.
7727      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7728      for pkg in $enableval; do
7729	IFS="$lt_save_ifs"
7730	if test "X$pkg" = "X$p"; then
7731	  enable_static=yes
7732	fi
7733      done
7734      IFS="$lt_save_ifs"
7735      ;;
7736    esac
7737else
7738  enable_static=yes
7739fi
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750# Check whether --with-pic was given.
7751if test "${with_pic+set}" = set; then :
7752  withval=$with_pic; pic_mode="$withval"
7753else
7754  pic_mode=default
7755fi
7756
7757
7758test -z "$pic_mode" && pic_mode=default
7759
7760
7761
7762
7763
7764
7765
7766  # Check whether --enable-fast-install was given.
7767if test "${enable_fast_install+set}" = set; then :
7768  enableval=$enable_fast_install; p=${PACKAGE-default}
7769    case $enableval in
7770    yes) enable_fast_install=yes ;;
7771    no) enable_fast_install=no ;;
7772    *)
7773      enable_fast_install=no
7774      # Look at the argument we got.  We use all the common list separators.
7775      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7776      for pkg in $enableval; do
7777	IFS="$lt_save_ifs"
7778	if test "X$pkg" = "X$p"; then
7779	  enable_fast_install=yes
7780	fi
7781      done
7782      IFS="$lt_save_ifs"
7783      ;;
7784    esac
7785else
7786  enable_fast_install=yes
7787fi
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799# This can be used to rebuild libtool when needed
7800LIBTOOL_DEPS="$ltmain"
7801
7802# Always use our own libtool.
7803LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830test -z "$LN_S" && LN_S="ln -s"
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845if test -n "${ZSH_VERSION+set}" ; then
7846   setopt NO_GLOB_SUBST
7847fi
7848
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7850$as_echo_n "checking for objdir... " >&6; }
7851if test "${lt_cv_objdir+set}" = set; then :
7852  $as_echo_n "(cached) " >&6
7853else
7854  rm -f .libs 2>/dev/null
7855mkdir .libs 2>/dev/null
7856if test -d .libs; then
7857  lt_cv_objdir=.libs
7858else
7859  # MS-DOS does not allow filenames that begin with a dot.
7860  lt_cv_objdir=_libs
7861fi
7862rmdir .libs 2>/dev/null
7863fi
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7865$as_echo "$lt_cv_objdir" >&6; }
7866objdir=$lt_cv_objdir
7867
7868
7869
7870
7871
7872cat >>confdefs.h <<_ACEOF
7873#define LT_OBJDIR "$lt_cv_objdir/"
7874_ACEOF
7875
7876
7877
7878
7879case $host_os in
7880aix3*)
7881  # AIX sometimes has problems with the GCC collect2 program.  For some
7882  # reason, if we set the COLLECT_NAMES environment variable, the problems
7883  # vanish in a puff of smoke.
7884  if test "X${COLLECT_NAMES+set}" != Xset; then
7885    COLLECT_NAMES=
7886    export COLLECT_NAMES
7887  fi
7888  ;;
7889esac
7890
7891# Global variables:
7892ofile=libtool
7893can_build_shared=yes
7894
7895# All known linkers require a `.a' archive for static linking (except MSVC,
7896# which needs '.lib').
7897libext=a
7898
7899with_gnu_ld="$lt_cv_prog_gnu_ld"
7900
7901old_CC="$CC"
7902old_CFLAGS="$CFLAGS"
7903
7904# Set sane defaults for various variables
7905test -z "$CC" && CC=cc
7906test -z "$LTCC" && LTCC=$CC
7907test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7908test -z "$LD" && LD=ld
7909test -z "$ac_objext" && ac_objext=o
7910
7911for cc_temp in $compiler""; do
7912  case $cc_temp in
7913    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7914    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7915    \-*) ;;
7916    *) break;;
7917  esac
7918done
7919cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7920
7921
7922# Only perform the check for file, if the check method requires it
7923test -z "$MAGIC_CMD" && MAGIC_CMD=file
7924case $deplibs_check_method in
7925file_magic*)
7926  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7927    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7928$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7929if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7930  $as_echo_n "(cached) " >&6
7931else
7932  case $MAGIC_CMD in
7933[\\/*] |  ?:[\\/]*)
7934  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7935  ;;
7936*)
7937  lt_save_MAGIC_CMD="$MAGIC_CMD"
7938  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7939  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7940  for ac_dir in $ac_dummy; do
7941    IFS="$lt_save_ifs"
7942    test -z "$ac_dir" && ac_dir=.
7943    if test -f $ac_dir/${ac_tool_prefix}file; then
7944      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7945      if test -n "$file_magic_test_file"; then
7946	case $deplibs_check_method in
7947	"file_magic "*)
7948	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7949	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7951	    $EGREP "$file_magic_regex" > /dev/null; then
7952	    :
7953	  else
7954	    cat <<_LT_EOF 1>&2
7955
7956*** Warning: the command libtool uses to detect shared libraries,
7957*** $file_magic_cmd, produces output that libtool cannot recognize.
7958*** The result is that libtool may fail to recognize shared libraries
7959*** as such.  This will affect the creation of libtool libraries that
7960*** depend on shared libraries, but programs linked with such libtool
7961*** libraries will work regardless of this problem.  Nevertheless, you
7962*** may want to report the problem to your system manager and/or to
7963*** bug-libtool@gnu.org
7964
7965_LT_EOF
7966	  fi ;;
7967	esac
7968      fi
7969      break
7970    fi
7971  done
7972  IFS="$lt_save_ifs"
7973  MAGIC_CMD="$lt_save_MAGIC_CMD"
7974  ;;
7975esac
7976fi
7977
7978MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7979if test -n "$MAGIC_CMD"; then
7980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7981$as_echo "$MAGIC_CMD" >&6; }
7982else
7983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984$as_echo "no" >&6; }
7985fi
7986
7987
7988
7989
7990
7991if test -z "$lt_cv_path_MAGIC_CMD"; then
7992  if test -n "$ac_tool_prefix"; then
7993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7994$as_echo_n "checking for file... " >&6; }
7995if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  case $MAGIC_CMD in
7999[\\/*] |  ?:[\\/]*)
8000  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8001  ;;
8002*)
8003  lt_save_MAGIC_CMD="$MAGIC_CMD"
8004  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8005  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8006  for ac_dir in $ac_dummy; do
8007    IFS="$lt_save_ifs"
8008    test -z "$ac_dir" && ac_dir=.
8009    if test -f $ac_dir/file; then
8010      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8011      if test -n "$file_magic_test_file"; then
8012	case $deplibs_check_method in
8013	"file_magic "*)
8014	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8015	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8016	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8017	    $EGREP "$file_magic_regex" > /dev/null; then
8018	    :
8019	  else
8020	    cat <<_LT_EOF 1>&2
8021
8022*** Warning: the command libtool uses to detect shared libraries,
8023*** $file_magic_cmd, produces output that libtool cannot recognize.
8024*** The result is that libtool may fail to recognize shared libraries
8025*** as such.  This will affect the creation of libtool libraries that
8026*** depend on shared libraries, but programs linked with such libtool
8027*** libraries will work regardless of this problem.  Nevertheless, you
8028*** may want to report the problem to your system manager and/or to
8029*** bug-libtool@gnu.org
8030
8031_LT_EOF
8032	  fi ;;
8033	esac
8034      fi
8035      break
8036    fi
8037  done
8038  IFS="$lt_save_ifs"
8039  MAGIC_CMD="$lt_save_MAGIC_CMD"
8040  ;;
8041esac
8042fi
8043
8044MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8045if test -n "$MAGIC_CMD"; then
8046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8047$as_echo "$MAGIC_CMD" >&6; }
8048else
8049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050$as_echo "no" >&6; }
8051fi
8052
8053
8054  else
8055    MAGIC_CMD=:
8056  fi
8057fi
8058
8059  fi
8060  ;;
8061esac
8062
8063# Use C for the default configuration in the libtool script
8064
8065lt_save_CC="$CC"
8066ac_ext=c
8067ac_cpp='$CPP $CPPFLAGS'
8068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071
8072
8073# Source file extension for C test sources.
8074ac_ext=c
8075
8076# Object file extension for compiled C test sources.
8077objext=o
8078objext=$objext
8079
8080# Code to be used in simple compile tests
8081lt_simple_compile_test_code="int some_variable = 0;"
8082
8083# Code to be used in simple link tests
8084lt_simple_link_test_code='int main(){return(0);}'
8085
8086
8087
8088
8089
8090
8091
8092# If no C compiler was specified, use CC.
8093LTCC=${LTCC-"$CC"}
8094
8095# If no C compiler flags were specified, use CFLAGS.
8096LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8097
8098# Allow CC to be a program name with arguments.
8099compiler=$CC
8100
8101# Save the default compiler, since it gets overwritten when the other
8102# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8103compiler_DEFAULT=$CC
8104
8105# save warnings/boilerplate of simple test code
8106ac_outfile=conftest.$ac_objext
8107echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8108eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8109_lt_compiler_boilerplate=`cat conftest.err`
8110$RM conftest*
8111
8112ac_outfile=conftest.$ac_objext
8113echo "$lt_simple_link_test_code" >conftest.$ac_ext
8114eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8115_lt_linker_boilerplate=`cat conftest.err`
8116$RM -r conftest*
8117
8118
8119## CAVEAT EMPTOR:
8120## There is no encapsulation within the following macros, do not change
8121## the running order or otherwise move them around unless you know exactly
8122## what you are doing...
8123if test -n "$compiler"; then
8124
8125lt_prog_compiler_no_builtin_flag=
8126
8127if test "$GCC" = yes; then
8128  case $cc_basename in
8129  nvcc*)
8130    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8131  *)
8132    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8133  esac
8134
8135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8136$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8137if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8138  $as_echo_n "(cached) " >&6
8139else
8140  lt_cv_prog_compiler_rtti_exceptions=no
8141   ac_outfile=conftest.$ac_objext
8142   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8143   lt_compiler_flag="-fno-rtti -fno-exceptions"
8144   # Insert the option either (1) after the last *FLAGS variable, or
8145   # (2) before a word containing "conftest.", or (3) at the end.
8146   # Note that $ac_compile itself does not contain backslashes and begins
8147   # with a dollar sign (not a hyphen), so the echo should work correctly.
8148   # The option is referenced via a variable to avoid confusing sed.
8149   lt_compile=`echo "$ac_compile" | $SED \
8150   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8151   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8152   -e 's:$: $lt_compiler_flag:'`
8153   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8154   (eval "$lt_compile" 2>conftest.err)
8155   ac_status=$?
8156   cat conftest.err >&5
8157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158   if (exit $ac_status) && test -s "$ac_outfile"; then
8159     # The compiler can only warn and ignore the option if not recognized
8160     # So say no if there are warnings other than the usual output.
8161     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8162     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8163     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8164       lt_cv_prog_compiler_rtti_exceptions=yes
8165     fi
8166   fi
8167   $RM conftest*
8168
8169fi
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8171$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8172
8173if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8174    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8175else
8176    :
8177fi
8178
8179fi
8180
8181
8182
8183
8184
8185
8186  lt_prog_compiler_wl=
8187lt_prog_compiler_pic=
8188lt_prog_compiler_static=
8189
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8191$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8192
8193  if test "$GCC" = yes; then
8194    lt_prog_compiler_wl='-Wl,'
8195    lt_prog_compiler_static='-static'
8196
8197    case $host_os in
8198      aix*)
8199      # All AIX code is PIC.
8200      if test "$host_cpu" = ia64; then
8201	# AIX 5 now supports IA64 processor
8202	lt_prog_compiler_static='-Bstatic'
8203      fi
8204      lt_prog_compiler_pic='-fPIC'
8205      ;;
8206
8207    amigaos*)
8208      case $host_cpu in
8209      powerpc)
8210            # see comment about AmigaOS4 .so support
8211            lt_prog_compiler_pic='-fPIC'
8212        ;;
8213      m68k)
8214            # FIXME: we need at least 68020 code to build shared libraries, but
8215            # adding the `-m68020' flag to GCC prevents building anything better,
8216            # like `-m68040'.
8217            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8218        ;;
8219      esac
8220      ;;
8221
8222    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8223      # PIC is the default for these OSes.
8224      ;;
8225
8226    mingw* | cygwin* | pw32* | os2* | cegcc*)
8227      # This hack is so that the source file can tell whether it is being
8228      # built for inclusion in a dll (and should export symbols for example).
8229      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8230      # (--disable-auto-import) libraries
8231      lt_prog_compiler_pic='-DDLL_EXPORT'
8232      ;;
8233
8234    darwin* | rhapsody*)
8235      # PIC is the default on this platform
8236      # Common symbols not allowed in MH_DYLIB files
8237      lt_prog_compiler_pic='-fno-common'
8238      ;;
8239
8240    haiku*)
8241      # PIC is the default for Haiku.
8242      # The "-static" flag exists, but is broken.
8243      lt_prog_compiler_static=
8244      ;;
8245
8246    hpux*)
8247      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8248      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8249      # sets the default TLS model and affects inlining.
8250      case $host_cpu in
8251      hppa*64*)
8252	# +Z the default
8253	;;
8254      *)
8255	lt_prog_compiler_pic='-fPIC'
8256	;;
8257      esac
8258      ;;
8259
8260    interix[3-9]*)
8261      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8262      # Instead, we relocate shared libraries at runtime.
8263      ;;
8264
8265    msdosdjgpp*)
8266      # Just because we use GCC doesn't mean we suddenly get shared libraries
8267      # on systems that don't support them.
8268      lt_prog_compiler_can_build_shared=no
8269      enable_shared=no
8270      ;;
8271
8272    *nto* | *qnx*)
8273      # QNX uses GNU C++, but need to define -shared option too, otherwise
8274      # it will coredump.
8275      lt_prog_compiler_pic='-fPIC -shared'
8276      ;;
8277
8278    sysv4*MP*)
8279      if test -d /usr/nec; then
8280	lt_prog_compiler_pic=-Kconform_pic
8281      fi
8282      ;;
8283
8284    *)
8285      lt_prog_compiler_pic='-fPIC'
8286      ;;
8287    esac
8288
8289    case $cc_basename in
8290    nvcc*) # Cuda Compiler Driver 2.2
8291      lt_prog_compiler_wl='-Xlinker '
8292      lt_prog_compiler_pic='-Xcompiler -fPIC'
8293      ;;
8294    esac
8295  else
8296    # PORTME Check for flag to pass linker flags through the system compiler.
8297    case $host_os in
8298    aix*)
8299      lt_prog_compiler_wl='-Wl,'
8300      if test "$host_cpu" = ia64; then
8301	# AIX 5 now supports IA64 processor
8302	lt_prog_compiler_static='-Bstatic'
8303      else
8304	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8305      fi
8306      ;;
8307
8308    mingw* | cygwin* | pw32* | os2* | cegcc*)
8309      # This hack is so that the source file can tell whether it is being
8310      # built for inclusion in a dll (and should export symbols for example).
8311      lt_prog_compiler_pic='-DDLL_EXPORT'
8312      ;;
8313
8314    hpux9* | hpux10* | hpux11*)
8315      lt_prog_compiler_wl='-Wl,'
8316      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8317      # not for PA HP-UX.
8318      case $host_cpu in
8319      hppa*64*|ia64*)
8320	# +Z the default
8321	;;
8322      *)
8323	lt_prog_compiler_pic='+Z'
8324	;;
8325      esac
8326      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8327      lt_prog_compiler_static='${wl}-a ${wl}archive'
8328      ;;
8329
8330    irix5* | irix6* | nonstopux*)
8331      lt_prog_compiler_wl='-Wl,'
8332      # PIC (with -KPIC) is the default.
8333      lt_prog_compiler_static='-non_shared'
8334      ;;
8335
8336    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8337      case $cc_basename in
8338      # old Intel for x86_64 which still supported -KPIC.
8339      ecc*)
8340	lt_prog_compiler_wl='-Wl,'
8341	lt_prog_compiler_pic='-KPIC'
8342	lt_prog_compiler_static='-static'
8343        ;;
8344      # icc used to be incompatible with GCC.
8345      # ICC 10 doesn't accept -KPIC any more.
8346      icc* | ifort*)
8347	lt_prog_compiler_wl='-Wl,'
8348	lt_prog_compiler_pic='-fPIC'
8349	lt_prog_compiler_static='-static'
8350        ;;
8351      # Lahey Fortran 8.1.
8352      lf95*)
8353	lt_prog_compiler_wl='-Wl,'
8354	lt_prog_compiler_pic='--shared'
8355	lt_prog_compiler_static='--static'
8356	;;
8357      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8358        # Portland Group compilers (*not* the Pentium gcc compiler,
8359	# which looks to be a dead project)
8360	lt_prog_compiler_wl='-Wl,'
8361	lt_prog_compiler_pic='-fpic'
8362	lt_prog_compiler_static='-Bstatic'
8363        ;;
8364      ccc*)
8365        lt_prog_compiler_wl='-Wl,'
8366        # All Alpha code is PIC.
8367        lt_prog_compiler_static='-non_shared'
8368        ;;
8369      xl* | bgxl* | bgf* | mpixl*)
8370	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8371	lt_prog_compiler_wl='-Wl,'
8372	lt_prog_compiler_pic='-qpic'
8373	lt_prog_compiler_static='-qstaticlink'
8374	;;
8375      *)
8376	case `$CC -V 2>&1 | sed 5q` in
8377	*Sun\ F* | *Sun*Fortran*)
8378	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8379	  lt_prog_compiler_pic='-KPIC'
8380	  lt_prog_compiler_static='-Bstatic'
8381	  lt_prog_compiler_wl=''
8382	  ;;
8383	*Sun\ C*)
8384	  # Sun C 5.9
8385	  lt_prog_compiler_pic='-KPIC'
8386	  lt_prog_compiler_static='-Bstatic'
8387	  lt_prog_compiler_wl='-Wl,'
8388	  ;;
8389	esac
8390	;;
8391      esac
8392      ;;
8393
8394    newsos6)
8395      lt_prog_compiler_pic='-KPIC'
8396      lt_prog_compiler_static='-Bstatic'
8397      ;;
8398
8399    *nto* | *qnx*)
8400      # QNX uses GNU C++, but need to define -shared option too, otherwise
8401      # it will coredump.
8402      lt_prog_compiler_pic='-fPIC -shared'
8403      ;;
8404
8405    osf3* | osf4* | osf5*)
8406      lt_prog_compiler_wl='-Wl,'
8407      # All OSF/1 code is PIC.
8408      lt_prog_compiler_static='-non_shared'
8409      ;;
8410
8411    rdos*)
8412      lt_prog_compiler_static='-non_shared'
8413      ;;
8414
8415    solaris*)
8416      lt_prog_compiler_pic='-KPIC'
8417      lt_prog_compiler_static='-Bstatic'
8418      case $cc_basename in
8419      f77* | f90* | f95*)
8420	lt_prog_compiler_wl='-Qoption ld ';;
8421      *)
8422	lt_prog_compiler_wl='-Wl,';;
8423      esac
8424      ;;
8425
8426    sunos4*)
8427      lt_prog_compiler_wl='-Qoption ld '
8428      lt_prog_compiler_pic='-PIC'
8429      lt_prog_compiler_static='-Bstatic'
8430      ;;
8431
8432    sysv4 | sysv4.2uw2* | sysv4.3*)
8433      lt_prog_compiler_wl='-Wl,'
8434      lt_prog_compiler_pic='-KPIC'
8435      lt_prog_compiler_static='-Bstatic'
8436      ;;
8437
8438    sysv4*MP*)
8439      if test -d /usr/nec ;then
8440	lt_prog_compiler_pic='-Kconform_pic'
8441	lt_prog_compiler_static='-Bstatic'
8442      fi
8443      ;;
8444
8445    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8446      lt_prog_compiler_wl='-Wl,'
8447      lt_prog_compiler_pic='-KPIC'
8448      lt_prog_compiler_static='-Bstatic'
8449      ;;
8450
8451    unicos*)
8452      lt_prog_compiler_wl='-Wl,'
8453      lt_prog_compiler_can_build_shared=no
8454      ;;
8455
8456    uts4*)
8457      lt_prog_compiler_pic='-pic'
8458      lt_prog_compiler_static='-Bstatic'
8459      ;;
8460
8461    *)
8462      lt_prog_compiler_can_build_shared=no
8463      ;;
8464    esac
8465  fi
8466
8467case $host_os in
8468  # For platforms which do not support PIC, -DPIC is meaningless:
8469  *djgpp*)
8470    lt_prog_compiler_pic=
8471    ;;
8472  *)
8473    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8474    ;;
8475esac
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8477$as_echo "$lt_prog_compiler_pic" >&6; }
8478
8479
8480
8481
8482
8483
8484#
8485# Check to make sure the PIC flag actually works.
8486#
8487if test -n "$lt_prog_compiler_pic"; then
8488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8489$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8490if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8491  $as_echo_n "(cached) " >&6
8492else
8493  lt_cv_prog_compiler_pic_works=no
8494   ac_outfile=conftest.$ac_objext
8495   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8497   # Insert the option either (1) after the last *FLAGS variable, or
8498   # (2) before a word containing "conftest.", or (3) at the end.
8499   # Note that $ac_compile itself does not contain backslashes and begins
8500   # with a dollar sign (not a hyphen), so the echo should work correctly.
8501   # The option is referenced via a variable to avoid confusing sed.
8502   lt_compile=`echo "$ac_compile" | $SED \
8503   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505   -e 's:$: $lt_compiler_flag:'`
8506   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507   (eval "$lt_compile" 2>conftest.err)
8508   ac_status=$?
8509   cat conftest.err >&5
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   if (exit $ac_status) && test -s "$ac_outfile"; then
8512     # The compiler can only warn and ignore the option if not recognized
8513     # So say no if there are warnings other than the usual output.
8514     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8515     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8517       lt_cv_prog_compiler_pic_works=yes
8518     fi
8519   fi
8520   $RM conftest*
8521
8522fi
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8524$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8525
8526if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8527    case $lt_prog_compiler_pic in
8528     "" | " "*) ;;
8529     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8530     esac
8531else
8532    lt_prog_compiler_pic=
8533     lt_prog_compiler_can_build_shared=no
8534fi
8535
8536fi
8537
8538
8539
8540
8541
8542
8543#
8544# Check to make sure the static flag actually works.
8545#
8546wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8548$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8549if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8550  $as_echo_n "(cached) " >&6
8551else
8552  lt_cv_prog_compiler_static_works=no
8553   save_LDFLAGS="$LDFLAGS"
8554   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8555   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8556   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8557     # The linker can only warn and ignore the option if not recognized
8558     # So say no if there are warnings
8559     if test -s conftest.err; then
8560       # Append any errors to the config.log.
8561       cat conftest.err 1>&5
8562       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8563       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8564       if diff conftest.exp conftest.er2 >/dev/null; then
8565         lt_cv_prog_compiler_static_works=yes
8566       fi
8567     else
8568       lt_cv_prog_compiler_static_works=yes
8569     fi
8570   fi
8571   $RM -r conftest*
8572   LDFLAGS="$save_LDFLAGS"
8573
8574fi
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8576$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8577
8578if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8579    :
8580else
8581    lt_prog_compiler_static=
8582fi
8583
8584
8585
8586
8587
8588
8589
8590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8591$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8592if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8593  $as_echo_n "(cached) " >&6
8594else
8595  lt_cv_prog_compiler_c_o=no
8596   $RM -r conftest 2>/dev/null
8597   mkdir conftest
8598   cd conftest
8599   mkdir out
8600   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8601
8602   lt_compiler_flag="-o out/conftest2.$ac_objext"
8603   # Insert the option either (1) after the last *FLAGS variable, or
8604   # (2) before a word containing "conftest.", or (3) at the end.
8605   # Note that $ac_compile itself does not contain backslashes and begins
8606   # with a dollar sign (not a hyphen), so the echo should work correctly.
8607   lt_compile=`echo "$ac_compile" | $SED \
8608   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8609   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8610   -e 's:$: $lt_compiler_flag:'`
8611   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8612   (eval "$lt_compile" 2>out/conftest.err)
8613   ac_status=$?
8614   cat out/conftest.err >&5
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8617   then
8618     # The compiler can only warn and ignore the option if not recognized
8619     # So say no if there are warnings
8620     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8621     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8622     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8623       lt_cv_prog_compiler_c_o=yes
8624     fi
8625   fi
8626   chmod u+w . 2>&5
8627   $RM conftest*
8628   # SGI C++ compiler will create directory out/ii_files/ for
8629   # template instantiation
8630   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8631   $RM out/* && rmdir out
8632   cd ..
8633   $RM -r conftest
8634   $RM conftest*
8635
8636fi
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8638$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8639
8640
8641
8642
8643
8644
8645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8646$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8647if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8648  $as_echo_n "(cached) " >&6
8649else
8650  lt_cv_prog_compiler_c_o=no
8651   $RM -r conftest 2>/dev/null
8652   mkdir conftest
8653   cd conftest
8654   mkdir out
8655   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8656
8657   lt_compiler_flag="-o out/conftest2.$ac_objext"
8658   # Insert the option either (1) after the last *FLAGS variable, or
8659   # (2) before a word containing "conftest.", or (3) at the end.
8660   # Note that $ac_compile itself does not contain backslashes and begins
8661   # with a dollar sign (not a hyphen), so the echo should work correctly.
8662   lt_compile=`echo "$ac_compile" | $SED \
8663   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8664   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8665   -e 's:$: $lt_compiler_flag:'`
8666   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8667   (eval "$lt_compile" 2>out/conftest.err)
8668   ac_status=$?
8669   cat out/conftest.err >&5
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8672   then
8673     # The compiler can only warn and ignore the option if not recognized
8674     # So say no if there are warnings
8675     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8676     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8677     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8678       lt_cv_prog_compiler_c_o=yes
8679     fi
8680   fi
8681   chmod u+w . 2>&5
8682   $RM conftest*
8683   # SGI C++ compiler will create directory out/ii_files/ for
8684   # template instantiation
8685   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8686   $RM out/* && rmdir out
8687   cd ..
8688   $RM -r conftest
8689   $RM conftest*
8690
8691fi
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8693$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8694
8695
8696
8697
8698hard_links="nottested"
8699if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8700  # do not overwrite the value of need_locks provided by the user
8701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8702$as_echo_n "checking if we can lock with hard links... " >&6; }
8703  hard_links=yes
8704  $RM conftest*
8705  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8706  touch conftest.a
8707  ln conftest.a conftest.b 2>&5 || hard_links=no
8708  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8710$as_echo "$hard_links" >&6; }
8711  if test "$hard_links" = no; then
8712    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8713$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8714    need_locks=warn
8715  fi
8716else
8717  need_locks=no
8718fi
8719
8720
8721
8722
8723
8724
8725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8726$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8727
8728  runpath_var=
8729  allow_undefined_flag=
8730  always_export_symbols=no
8731  archive_cmds=
8732  archive_expsym_cmds=
8733  compiler_needs_object=no
8734  enable_shared_with_static_runtimes=no
8735  export_dynamic_flag_spec=
8736  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8737  hardcode_automatic=no
8738  hardcode_direct=no
8739  hardcode_direct_absolute=no
8740  hardcode_libdir_flag_spec=
8741  hardcode_libdir_flag_spec_ld=
8742  hardcode_libdir_separator=
8743  hardcode_minus_L=no
8744  hardcode_shlibpath_var=unsupported
8745  inherit_rpath=no
8746  link_all_deplibs=unknown
8747  module_cmds=
8748  module_expsym_cmds=
8749  old_archive_from_new_cmds=
8750  old_archive_from_expsyms_cmds=
8751  thread_safe_flag_spec=
8752  whole_archive_flag_spec=
8753  # include_expsyms should be a list of space-separated symbols to be *always*
8754  # included in the symbol list
8755  include_expsyms=
8756  # exclude_expsyms can be an extended regexp of symbols to exclude
8757  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8758  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8759  # as well as any symbol that contains `d'.
8760  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8761  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8762  # platforms (ab)use it in PIC code, but their linkers get confused if
8763  # the symbol is explicitly referenced.  Since portable code cannot
8764  # rely on this symbol name, it's probably fine to never include it in
8765  # preloaded symbol tables.
8766  # Exclude shared library initialization/finalization symbols.
8767  extract_expsyms_cmds=
8768
8769  case $host_os in
8770  cygwin* | mingw* | pw32* | cegcc*)
8771    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8772    # When not using gcc, we currently assume that we are using
8773    # Microsoft Visual C++.
8774    if test "$GCC" != yes; then
8775      with_gnu_ld=no
8776    fi
8777    ;;
8778  interix*)
8779    # we just hope/assume this is gcc and not c89 (= MSVC++)
8780    with_gnu_ld=yes
8781    ;;
8782  openbsd*)
8783    with_gnu_ld=no
8784    ;;
8785  esac
8786
8787  ld_shlibs=yes
8788
8789  # On some targets, GNU ld is compatible enough with the native linker
8790  # that we're better off using the native interface for both.
8791  lt_use_gnu_ld_interface=no
8792  if test "$with_gnu_ld" = yes; then
8793    case $host_os in
8794      aix*)
8795	# The AIX port of GNU ld has always aspired to compatibility
8796	# with the native linker.  However, as the warning in the GNU ld
8797	# block says, versions before 2.19.5* couldn't really create working
8798	# shared libraries, regardless of the interface used.
8799	case `$LD -v 2>&1` in
8800	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8801	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8802	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8803	  *)
8804	    lt_use_gnu_ld_interface=yes
8805	    ;;
8806	esac
8807	;;
8808      *)
8809	lt_use_gnu_ld_interface=yes
8810	;;
8811    esac
8812  fi
8813
8814  if test "$lt_use_gnu_ld_interface" = yes; then
8815    # If archive_cmds runs LD, not CC, wlarc should be empty
8816    wlarc='${wl}'
8817
8818    # Set some defaults for GNU ld with shared library support. These
8819    # are reset later if shared libraries are not supported. Putting them
8820    # here allows them to be overridden if necessary.
8821    runpath_var=LD_RUN_PATH
8822    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8823    export_dynamic_flag_spec='${wl}--export-dynamic'
8824    # ancient GNU ld didn't support --whole-archive et. al.
8825    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8826      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8827    else
8828      whole_archive_flag_spec=
8829    fi
8830    supports_anon_versioning=no
8831    case `$LD -v 2>&1` in
8832      *GNU\ gold*) supports_anon_versioning=yes ;;
8833      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8834      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8835      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8836      *\ 2.11.*) ;; # other 2.11 versions
8837      *) supports_anon_versioning=yes ;;
8838    esac
8839
8840    # See if GNU ld supports shared libraries.
8841    case $host_os in
8842    aix[3-9]*)
8843      # On AIX/PPC, the GNU linker is very broken
8844      if test "$host_cpu" != ia64; then
8845	ld_shlibs=no
8846	cat <<_LT_EOF 1>&2
8847
8848*** Warning: the GNU linker, at least up to release 2.19, is reported
8849*** to be unable to reliably create shared libraries on AIX.
8850*** Therefore, libtool is disabling shared libraries support.  If you
8851*** really care for shared libraries, you may want to install binutils
8852*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8853*** You will then need to restart the configuration process.
8854
8855_LT_EOF
8856      fi
8857      ;;
8858
8859    amigaos*)
8860      case $host_cpu in
8861      powerpc)
8862            # see comment about AmigaOS4 .so support
8863            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864            archive_expsym_cmds=''
8865        ;;
8866      m68k)
8867            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)'
8868            hardcode_libdir_flag_spec='-L$libdir'
8869            hardcode_minus_L=yes
8870        ;;
8871      esac
8872      ;;
8873
8874    beos*)
8875      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8876	allow_undefined_flag=unsupported
8877	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8878	# support --undefined.  This deserves some investigation.  FIXME
8879	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8880      else
8881	ld_shlibs=no
8882      fi
8883      ;;
8884
8885    cygwin* | mingw* | pw32* | cegcc*)
8886      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8887      # as there is no search path for DLLs.
8888      hardcode_libdir_flag_spec='-L$libdir'
8889      export_dynamic_flag_spec='${wl}--export-all-symbols'
8890      allow_undefined_flag=unsupported
8891      always_export_symbols=no
8892      enable_shared_with_static_runtimes=yes
8893      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8894
8895      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8896        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8897	# If the export-symbols file already is a .def file (1st line
8898	# is EXPORTS), use it as is; otherwise, prepend...
8899	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8900	  cp $export_symbols $output_objdir/$soname.def;
8901	else
8902	  echo EXPORTS > $output_objdir/$soname.def;
8903	  cat $export_symbols >> $output_objdir/$soname.def;
8904	fi~
8905	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8906      else
8907	ld_shlibs=no
8908      fi
8909      ;;
8910
8911    haiku*)
8912      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8913      link_all_deplibs=yes
8914      ;;
8915
8916    interix[3-9]*)
8917      hardcode_direct=no
8918      hardcode_shlibpath_var=no
8919      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8920      export_dynamic_flag_spec='${wl}-E'
8921      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8922      # Instead, shared libraries are loaded at an image base (0x10000000 by
8923      # default) and relocated if they conflict, which is a slow very memory
8924      # consuming and fragmenting process.  To avoid this, we pick a random,
8925      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8926      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8927      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8928      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'
8929      ;;
8930
8931    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8932      tmp_diet=no
8933      if test "$host_os" = linux-dietlibc; then
8934	case $cc_basename in
8935	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8936	esac
8937      fi
8938      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8939	 && test "$tmp_diet" = no
8940      then
8941	tmp_addflag=' $pic_flag'
8942	tmp_sharedflag='-shared'
8943	case $cc_basename,$host_cpu in
8944        pgcc*)				# Portland Group C compiler
8945	  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'
8946	  tmp_addflag=' $pic_flag'
8947	  ;;
8948	pgf77* | pgf90* | pgf95* | pgfortran*)
8949					# Portland Group f77 and f90 compilers
8950	  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'
8951	  tmp_addflag=' $pic_flag -Mnomain' ;;
8952	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8953	  tmp_addflag=' -i_dynamic' ;;
8954	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8955	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8956	ifc* | ifort*)			# Intel Fortran compiler
8957	  tmp_addflag=' -nofor_main' ;;
8958	lf95*)				# Lahey Fortran 8.1
8959	  whole_archive_flag_spec=
8960	  tmp_sharedflag='--shared' ;;
8961	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8962	  tmp_sharedflag='-qmkshrobj'
8963	  tmp_addflag= ;;
8964	nvcc*)	# Cuda Compiler Driver 2.2
8965	  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'
8966	  compiler_needs_object=yes
8967	  ;;
8968	esac
8969	case `$CC -V 2>&1 | sed 5q` in
8970	*Sun\ C*)			# Sun C 5.9
8971	  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'
8972	  compiler_needs_object=yes
8973	  tmp_sharedflag='-G' ;;
8974	*Sun\ F*)			# Sun Fortran 8.3
8975	  tmp_sharedflag='-G' ;;
8976	esac
8977	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978
8979        if test "x$supports_anon_versioning" = xyes; then
8980          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8981	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8982	    echo "local: *; };" >> $output_objdir/$libname.ver~
8983	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8984        fi
8985
8986	case $cc_basename in
8987	xlf* | bgf* | bgxlf* | mpixlf*)
8988	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8989	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8990	  hardcode_libdir_flag_spec=
8991	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8992	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8993	  if test "x$supports_anon_versioning" = xyes; then
8994	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8995	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8996	      echo "local: *; };" >> $output_objdir/$libname.ver~
8997	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8998	  fi
8999	  ;;
9000	esac
9001      else
9002        ld_shlibs=no
9003      fi
9004      ;;
9005
9006    netbsd*)
9007      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9008	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9009	wlarc=
9010      else
9011	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013      fi
9014      ;;
9015
9016    solaris*)
9017      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9018	ld_shlibs=no
9019	cat <<_LT_EOF 1>&2
9020
9021*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9022*** create shared libraries on Solaris systems.  Therefore, libtool
9023*** is disabling shared libraries support.  We urge you to upgrade GNU
9024*** binutils to release 2.9.1 or newer.  Another option is to modify
9025*** your PATH or compiler configuration so that the native linker is
9026*** used, and then restart.
9027
9028_LT_EOF
9029      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9030	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032      else
9033	ld_shlibs=no
9034      fi
9035      ;;
9036
9037    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9038      case `$LD -v 2>&1` in
9039        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9040	ld_shlibs=no
9041	cat <<_LT_EOF 1>&2
9042
9043*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9044*** reliably create shared libraries on SCO systems.  Therefore, libtool
9045*** is disabling shared libraries support.  We urge you to upgrade GNU
9046*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9047*** your PATH or compiler configuration so that the native linker is
9048*** used, and then restart.
9049
9050_LT_EOF
9051	;;
9052	*)
9053	  # For security reasons, it is highly recommended that you always
9054	  # use absolute paths for naming shared libraries, and exclude the
9055	  # DT_RUNPATH tag from executables and libraries.  But doing so
9056	  # requires that you compile everything twice, which is a pain.
9057	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9058	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9061	  else
9062	    ld_shlibs=no
9063	  fi
9064	;;
9065      esac
9066      ;;
9067
9068    sunos4*)
9069      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9070      wlarc=
9071      hardcode_direct=yes
9072      hardcode_shlibpath_var=no
9073      ;;
9074
9075    *)
9076      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9077	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9078	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9079      else
9080	ld_shlibs=no
9081      fi
9082      ;;
9083    esac
9084
9085    if test "$ld_shlibs" = no; then
9086      runpath_var=
9087      hardcode_libdir_flag_spec=
9088      export_dynamic_flag_spec=
9089      whole_archive_flag_spec=
9090    fi
9091  else
9092    # PORTME fill in a description of your system's linker (not GNU ld)
9093    case $host_os in
9094    aix3*)
9095      allow_undefined_flag=unsupported
9096      always_export_symbols=yes
9097      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'
9098      # Note: this linker hardcodes the directories in LIBPATH if there
9099      # are no directories specified by -L.
9100      hardcode_minus_L=yes
9101      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9102	# Neither direct hardcoding nor static linking is supported with a
9103	# broken collect2.
9104	hardcode_direct=unsupported
9105      fi
9106      ;;
9107
9108    aix[4-9]*)
9109      if test "$host_cpu" = ia64; then
9110	# On IA64, the linker does run time linking by default, so we don't
9111	# have to do anything special.
9112	aix_use_runtimelinking=no
9113	exp_sym_flag='-Bexport'
9114	no_entry_flag=""
9115      else
9116	# If we're using GNU nm, then we don't want the "-C" option.
9117	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9118	# Also, AIX nm treats weak defined symbols like other global
9119	# defined symbols, whereas GNU nm marks them as "W".
9120	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9121	  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'
9122	else
9123	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9124	fi
9125	aix_use_runtimelinking=no
9126
9127	# Test if we are trying to use run time linking or normal
9128	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9129	# need to do runtime linking.
9130	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9131	  for ld_flag in $LDFLAGS; do
9132	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9133	    aix_use_runtimelinking=yes
9134	    break
9135	  fi
9136	  done
9137	  ;;
9138	esac
9139
9140	exp_sym_flag='-bexport'
9141	no_entry_flag='-bnoentry'
9142      fi
9143
9144      # When large executables or shared objects are built, AIX ld can
9145      # have problems creating the table of contents.  If linking a library
9146      # or program results in "error TOC overflow" add -mminimal-toc to
9147      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9148      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9149
9150      archive_cmds=''
9151      hardcode_direct=yes
9152      hardcode_direct_absolute=yes
9153      hardcode_libdir_separator=':'
9154      link_all_deplibs=yes
9155      file_list_spec='${wl}-f,'
9156
9157      if test "$GCC" = yes; then
9158	case $host_os in aix4.[012]|aix4.[012].*)
9159	# We only want to do this on AIX 4.2 and lower, the check
9160	# below for broken collect2 doesn't work under 4.3+
9161	  collect2name=`${CC} -print-prog-name=collect2`
9162	  if test -f "$collect2name" &&
9163	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9164	  then
9165	  # We have reworked collect2
9166	  :
9167	  else
9168	  # We have old collect2
9169	  hardcode_direct=unsupported
9170	  # It fails to find uninstalled libraries when the uninstalled
9171	  # path is not listed in the libpath.  Setting hardcode_minus_L
9172	  # to unsupported forces relinking
9173	  hardcode_minus_L=yes
9174	  hardcode_libdir_flag_spec='-L$libdir'
9175	  hardcode_libdir_separator=
9176	  fi
9177	  ;;
9178	esac
9179	shared_flag='-shared'
9180	if test "$aix_use_runtimelinking" = yes; then
9181	  shared_flag="$shared_flag "'${wl}-G'
9182	fi
9183      else
9184	# not using gcc
9185	if test "$host_cpu" = ia64; then
9186	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9187	# chokes on -Wl,-G. The following line is correct:
9188	  shared_flag='-G'
9189	else
9190	  if test "$aix_use_runtimelinking" = yes; then
9191	    shared_flag='${wl}-G'
9192	  else
9193	    shared_flag='${wl}-bM:SRE'
9194	  fi
9195	fi
9196      fi
9197
9198      export_dynamic_flag_spec='${wl}-bexpall'
9199      # It seems that -bexpall does not export symbols beginning with
9200      # underscore (_), so it is better to generate a list of symbols to export.
9201      always_export_symbols=yes
9202      if test "$aix_use_runtimelinking" = yes; then
9203	# Warning - without using the other runtime loading flags (-brtl),
9204	# -berok will link without error, but may produce a broken library.
9205	allow_undefined_flag='-berok'
9206        # Determine the default libpath from the value encoded in an
9207        # empty executable.
9208        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209/* end confdefs.h.  */
9210
9211int
9212main ()
9213{
9214
9215  ;
9216  return 0;
9217}
9218_ACEOF
9219if ac_fn_c_try_link "$LINENO"; then :
9220
9221lt_aix_libpath_sed='
9222    /Import File Strings/,/^$/ {
9223	/^0/ {
9224	    s/^0  *\(.*\)$/\1/
9225	    p
9226	}
9227    }'
9228aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229# Check for a 64-bit object if we didn't find anything.
9230if test -z "$aix_libpath"; then
9231  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232fi
9233fi
9234rm -f core conftest.err conftest.$ac_objext \
9235    conftest$ac_exeext conftest.$ac_ext
9236if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9237
9238        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9239        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"
9240      else
9241	if test "$host_cpu" = ia64; then
9242	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9243	  allow_undefined_flag="-z nodefs"
9244	  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"
9245	else
9246	 # Determine the default libpath from the value encoded in an
9247	 # empty executable.
9248	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250
9251int
9252main ()
9253{
9254
9255  ;
9256  return 0;
9257}
9258_ACEOF
9259if ac_fn_c_try_link "$LINENO"; then :
9260
9261lt_aix_libpath_sed='
9262    /Import File Strings/,/^$/ {
9263	/^0/ {
9264	    s/^0  *\(.*\)$/\1/
9265	    p
9266	}
9267    }'
9268aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9269# Check for a 64-bit object if we didn't find anything.
9270if test -z "$aix_libpath"; then
9271  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9272fi
9273fi
9274rm -f core conftest.err conftest.$ac_objext \
9275    conftest$ac_exeext conftest.$ac_ext
9276if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9277
9278	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9279	  # Warning - without using the other run time loading flags,
9280	  # -berok will link without error, but may produce a broken library.
9281	  no_undefined_flag=' ${wl}-bernotok'
9282	  allow_undefined_flag=' ${wl}-berok'
9283	  if test "$with_gnu_ld" = yes; then
9284	    # We only use this code for GNU lds that support --whole-archive.
9285	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9286	  else
9287	    # Exported symbols can be pulled into shared objects from archives
9288	    whole_archive_flag_spec='$convenience'
9289	  fi
9290	  archive_cmds_need_lc=yes
9291	  # This is similar to how AIX traditionally builds its shared libraries.
9292	  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'
9293	fi
9294      fi
9295      ;;
9296
9297    amigaos*)
9298      case $host_cpu in
9299      powerpc)
9300            # see comment about AmigaOS4 .so support
9301            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302            archive_expsym_cmds=''
9303        ;;
9304      m68k)
9305            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)'
9306            hardcode_libdir_flag_spec='-L$libdir'
9307            hardcode_minus_L=yes
9308        ;;
9309      esac
9310      ;;
9311
9312    bsdi[45]*)
9313      export_dynamic_flag_spec=-rdynamic
9314      ;;
9315
9316    cygwin* | mingw* | pw32* | cegcc*)
9317      # When not using gcc, we currently assume that we are using
9318      # Microsoft Visual C++.
9319      # hardcode_libdir_flag_spec is actually meaningless, as there is
9320      # no search path for DLLs.
9321      hardcode_libdir_flag_spec=' '
9322      allow_undefined_flag=unsupported
9323      # Tell ltmain to make .lib files, not .a files.
9324      libext=lib
9325      # Tell ltmain to make .dll files, not .so files.
9326      shrext_cmds=".dll"
9327      # FIXME: Setting linknames here is a bad hack.
9328      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9329      # The linker will automatically build a .lib file if we build a DLL.
9330      old_archive_from_new_cmds='true'
9331      # FIXME: Should let the user specify the lib program.
9332      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9333      fix_srcfile_path='`cygpath -w "$srcfile"`'
9334      enable_shared_with_static_runtimes=yes
9335      ;;
9336
9337    darwin* | rhapsody*)
9338
9339
9340  archive_cmds_need_lc=no
9341  hardcode_direct=no
9342  hardcode_automatic=yes
9343  hardcode_shlibpath_var=unsupported
9344  if test "$lt_cv_ld_force_load" = "yes"; then
9345    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\"`'
9346  else
9347    whole_archive_flag_spec=''
9348  fi
9349  link_all_deplibs=yes
9350  allow_undefined_flag="$_lt_dar_allow_undefined"
9351  case $cc_basename in
9352     ifort*) _lt_dar_can_shared=yes ;;
9353     *) _lt_dar_can_shared=$GCC ;;
9354  esac
9355  if test "$_lt_dar_can_shared" = "yes"; then
9356    output_verbose_link_cmd=func_echo_all
9357    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9358    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9359    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}"
9360    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}"
9361
9362  else
9363  ld_shlibs=no
9364  fi
9365
9366      ;;
9367
9368    dgux*)
9369      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370      hardcode_libdir_flag_spec='-L$libdir'
9371      hardcode_shlibpath_var=no
9372      ;;
9373
9374    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9375    # support.  Future versions do this automatically, but an explicit c++rt0.o
9376    # does not break anything, and helps significantly (at the cost of a little
9377    # extra space).
9378    freebsd2.2*)
9379      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9380      hardcode_libdir_flag_spec='-R$libdir'
9381      hardcode_direct=yes
9382      hardcode_shlibpath_var=no
9383      ;;
9384
9385    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9386    freebsd2.*)
9387      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9388      hardcode_direct=yes
9389      hardcode_minus_L=yes
9390      hardcode_shlibpath_var=no
9391      ;;
9392
9393    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9394    freebsd* | dragonfly*)
9395      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9396      hardcode_libdir_flag_spec='-R$libdir'
9397      hardcode_direct=yes
9398      hardcode_shlibpath_var=no
9399      ;;
9400
9401    hpux9*)
9402      if test "$GCC" = yes; then
9403	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'
9404      else
9405	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'
9406      fi
9407      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9408      hardcode_libdir_separator=:
9409      hardcode_direct=yes
9410
9411      # hardcode_minus_L: Not really in the search PATH,
9412      # but as the default location of the library.
9413      hardcode_minus_L=yes
9414      export_dynamic_flag_spec='${wl}-E'
9415      ;;
9416
9417    hpux10*)
9418      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9419	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9420      else
9421	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9422      fi
9423      if test "$with_gnu_ld" = no; then
9424	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9425	hardcode_libdir_flag_spec_ld='+b $libdir'
9426	hardcode_libdir_separator=:
9427	hardcode_direct=yes
9428	hardcode_direct_absolute=yes
9429	export_dynamic_flag_spec='${wl}-E'
9430	# hardcode_minus_L: Not really in the search PATH,
9431	# but as the default location of the library.
9432	hardcode_minus_L=yes
9433      fi
9434      ;;
9435
9436    hpux11*)
9437      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9438	case $host_cpu in
9439	hppa*64*)
9440	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9441	  ;;
9442	ia64*)
9443	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9444	  ;;
9445	*)
9446	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9447	  ;;
9448	esac
9449      else
9450	case $host_cpu in
9451	hppa*64*)
9452	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9453	  ;;
9454	ia64*)
9455	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9456	  ;;
9457	*)
9458
9459	  # Older versions of the 11.00 compiler do not understand -b yet
9460	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9461	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9462$as_echo_n "checking if $CC understands -b... " >&6; }
9463if test "${lt_cv_prog_compiler__b+set}" = set; then :
9464  $as_echo_n "(cached) " >&6
9465else
9466  lt_cv_prog_compiler__b=no
9467   save_LDFLAGS="$LDFLAGS"
9468   LDFLAGS="$LDFLAGS -b"
9469   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9470   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9471     # The linker can only warn and ignore the option if not recognized
9472     # So say no if there are warnings
9473     if test -s conftest.err; then
9474       # Append any errors to the config.log.
9475       cat conftest.err 1>&5
9476       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9477       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9478       if diff conftest.exp conftest.er2 >/dev/null; then
9479         lt_cv_prog_compiler__b=yes
9480       fi
9481     else
9482       lt_cv_prog_compiler__b=yes
9483     fi
9484   fi
9485   $RM -r conftest*
9486   LDFLAGS="$save_LDFLAGS"
9487
9488fi
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9490$as_echo "$lt_cv_prog_compiler__b" >&6; }
9491
9492if test x"$lt_cv_prog_compiler__b" = xyes; then
9493    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9494else
9495    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9496fi
9497
9498	  ;;
9499	esac
9500      fi
9501      if test "$with_gnu_ld" = no; then
9502	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9503	hardcode_libdir_separator=:
9504
9505	case $host_cpu in
9506	hppa*64*|ia64*)
9507	  hardcode_direct=no
9508	  hardcode_shlibpath_var=no
9509	  ;;
9510	*)
9511	  hardcode_direct=yes
9512	  hardcode_direct_absolute=yes
9513	  export_dynamic_flag_spec='${wl}-E'
9514
9515	  # hardcode_minus_L: Not really in the search PATH,
9516	  # but as the default location of the library.
9517	  hardcode_minus_L=yes
9518	  ;;
9519	esac
9520      fi
9521      ;;
9522
9523    irix5* | irix6* | nonstopux*)
9524      if test "$GCC" = yes; then
9525	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'
9526	# Try to use the -exported_symbol ld option, if it does not
9527	# work, assume that -exports_file does not work either and
9528	# implicitly export all symbols.
9529        save_LDFLAGS="$LDFLAGS"
9530        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9531        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532/* end confdefs.h.  */
9533int foo(void) {}
9534_ACEOF
9535if ac_fn_c_try_link "$LINENO"; then :
9536  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'
9537
9538fi
9539rm -f core conftest.err conftest.$ac_objext \
9540    conftest$ac_exeext conftest.$ac_ext
9541        LDFLAGS="$save_LDFLAGS"
9542      else
9543	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'
9544	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'
9545      fi
9546      archive_cmds_need_lc='no'
9547      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9548      hardcode_libdir_separator=:
9549      inherit_rpath=yes
9550      link_all_deplibs=yes
9551      ;;
9552
9553    netbsd*)
9554      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9555	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9556      else
9557	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9558      fi
9559      hardcode_libdir_flag_spec='-R$libdir'
9560      hardcode_direct=yes
9561      hardcode_shlibpath_var=no
9562      ;;
9563
9564    newsos6)
9565      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566      hardcode_direct=yes
9567      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9568      hardcode_libdir_separator=:
9569      hardcode_shlibpath_var=no
9570      ;;
9571
9572    *nto* | *qnx*)
9573      ;;
9574
9575    openbsd*)
9576      if test -f /usr/libexec/ld.so; then
9577	hardcode_direct=yes
9578	hardcode_shlibpath_var=no
9579	hardcode_direct_absolute=yes
9580	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9581	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9582	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9583	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9584	  export_dynamic_flag_spec='${wl}-E'
9585	else
9586	  case $host_os in
9587	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9588	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9589	     hardcode_libdir_flag_spec='-R$libdir'
9590	     ;;
9591	   *)
9592	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9593	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9594	     ;;
9595	  esac
9596	fi
9597      else
9598	ld_shlibs=no
9599      fi
9600      ;;
9601
9602    os2*)
9603      hardcode_libdir_flag_spec='-L$libdir'
9604      hardcode_minus_L=yes
9605      allow_undefined_flag=unsupported
9606      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'
9607      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9608      ;;
9609
9610    osf3*)
9611      if test "$GCC" = yes; then
9612	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9613	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'
9614      else
9615	allow_undefined_flag=' -expect_unresolved \*'
9616	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'
9617      fi
9618      archive_cmds_need_lc='no'
9619      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620      hardcode_libdir_separator=:
9621      ;;
9622
9623    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9624      if test "$GCC" = yes; then
9625	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9626	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'
9627	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628      else
9629	allow_undefined_flag=' -expect_unresolved \*'
9630	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'
9631	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~
9632	$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'
9633
9634	# Both c and cxx compiler support -rpath directly
9635	hardcode_libdir_flag_spec='-rpath $libdir'
9636      fi
9637      archive_cmds_need_lc='no'
9638      hardcode_libdir_separator=:
9639      ;;
9640
9641    solaris*)
9642      no_undefined_flag=' -z defs'
9643      if test "$GCC" = yes; then
9644	wlarc='${wl}'
9645	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9646	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9647	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9648      else
9649	case `$CC -V 2>&1` in
9650	*"Compilers 5.0"*)
9651	  wlarc=''
9652	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9654	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9655	  ;;
9656	*)
9657	  wlarc='${wl}'
9658	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9659	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9660	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9661	  ;;
9662	esac
9663      fi
9664      hardcode_libdir_flag_spec='-R$libdir'
9665      hardcode_shlibpath_var=no
9666      case $host_os in
9667      solaris2.[0-5] | solaris2.[0-5].*) ;;
9668      *)
9669	# The compiler driver will combine and reorder linker options,
9670	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9671	# but is careful enough not to reorder.
9672	# Supported since Solaris 2.6 (maybe 2.5.1?)
9673	if test "$GCC" = yes; then
9674	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9675	else
9676	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9677	fi
9678	;;
9679      esac
9680      link_all_deplibs=yes
9681      ;;
9682
9683    sunos4*)
9684      if test "x$host_vendor" = xsequent; then
9685	# Use $CC to link under sequent, because it throws in some extra .o
9686	# files that make .init and .fini sections work.
9687	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9688      else
9689	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9690      fi
9691      hardcode_libdir_flag_spec='-L$libdir'
9692      hardcode_direct=yes
9693      hardcode_minus_L=yes
9694      hardcode_shlibpath_var=no
9695      ;;
9696
9697    sysv4)
9698      case $host_vendor in
9699	sni)
9700	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701	  hardcode_direct=yes # is this really true???
9702	;;
9703	siemens)
9704	  ## LD is ld it makes a PLAMLIB
9705	  ## CC just makes a GrossModule.
9706	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9707	  reload_cmds='$CC -r -o $output$reload_objs'
9708	  hardcode_direct=no
9709        ;;
9710	motorola)
9711	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9713	;;
9714      esac
9715      runpath_var='LD_RUN_PATH'
9716      hardcode_shlibpath_var=no
9717      ;;
9718
9719    sysv4.3*)
9720      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721      hardcode_shlibpath_var=no
9722      export_dynamic_flag_spec='-Bexport'
9723      ;;
9724
9725    sysv4*MP*)
9726      if test -d /usr/nec; then
9727	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728	hardcode_shlibpath_var=no
9729	runpath_var=LD_RUN_PATH
9730	hardcode_runpath_var=yes
9731	ld_shlibs=yes
9732      fi
9733      ;;
9734
9735    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9736      no_undefined_flag='${wl}-z,text'
9737      archive_cmds_need_lc=no
9738      hardcode_shlibpath_var=no
9739      runpath_var='LD_RUN_PATH'
9740
9741      if test "$GCC" = yes; then
9742	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744      else
9745	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747      fi
9748      ;;
9749
9750    sysv5* | sco3.2v5* | sco5v6*)
9751      # Note: We can NOT use -z defs as we might desire, because we do not
9752      # link with -lc, and that would cause any symbols used from libc to
9753      # always be unresolved, which means just about no library would
9754      # ever link correctly.  If we're not using GNU ld we use -z text
9755      # though, which does catch some bad symbols but isn't as heavy-handed
9756      # as -z defs.
9757      no_undefined_flag='${wl}-z,text'
9758      allow_undefined_flag='${wl}-z,nodefs'
9759      archive_cmds_need_lc=no
9760      hardcode_shlibpath_var=no
9761      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9762      hardcode_libdir_separator=':'
9763      link_all_deplibs=yes
9764      export_dynamic_flag_spec='${wl}-Bexport'
9765      runpath_var='LD_RUN_PATH'
9766
9767      if test "$GCC" = yes; then
9768	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770      else
9771	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9773      fi
9774      ;;
9775
9776    uts4*)
9777      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778      hardcode_libdir_flag_spec='-L$libdir'
9779      hardcode_shlibpath_var=no
9780      ;;
9781
9782    *)
9783      ld_shlibs=no
9784      ;;
9785    esac
9786
9787    if test x$host_vendor = xsni; then
9788      case $host in
9789      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9790	export_dynamic_flag_spec='${wl}-Blargedynsym'
9791	;;
9792      esac
9793    fi
9794  fi
9795
9796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9797$as_echo "$ld_shlibs" >&6; }
9798test "$ld_shlibs" = no && can_build_shared=no
9799
9800with_gnu_ld=$with_gnu_ld
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816#
9817# Do we need to explicitly link libc?
9818#
9819case "x$archive_cmds_need_lc" in
9820x|xyes)
9821  # Assume -lc should be added
9822  archive_cmds_need_lc=yes
9823
9824  if test "$enable_shared" = yes && test "$GCC" = yes; then
9825    case $archive_cmds in
9826    *'~'*)
9827      # FIXME: we may have to deal with multi-command sequences.
9828      ;;
9829    '$CC '*)
9830      # Test whether the compiler implicitly links with -lc since on some
9831      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9832      # to ld, don't add -lc before -lgcc.
9833      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9834$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9835if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9836  $as_echo_n "(cached) " >&6
9837else
9838  $RM conftest*
9839	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9840
9841	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9842  (eval $ac_compile) 2>&5
9843  ac_status=$?
9844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9845  test $ac_status = 0; } 2>conftest.err; then
9846	  soname=conftest
9847	  lib=conftest
9848	  libobjs=conftest.$ac_objext
9849	  deplibs=
9850	  wl=$lt_prog_compiler_wl
9851	  pic_flag=$lt_prog_compiler_pic
9852	  compiler_flags=-v
9853	  linker_flags=-v
9854	  verstring=
9855	  output_objdir=.
9856	  libname=conftest
9857	  lt_save_allow_undefined_flag=$allow_undefined_flag
9858	  allow_undefined_flag=
9859	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9860  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9861  ac_status=$?
9862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9863  test $ac_status = 0; }
9864	  then
9865	    lt_cv_archive_cmds_need_lc=no
9866	  else
9867	    lt_cv_archive_cmds_need_lc=yes
9868	  fi
9869	  allow_undefined_flag=$lt_save_allow_undefined_flag
9870	else
9871	  cat conftest.err 1>&5
9872	fi
9873	$RM conftest*
9874
9875fi
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9877$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9878      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9879      ;;
9880    esac
9881  fi
9882  ;;
9883esac
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10042$as_echo_n "checking dynamic linker characteristics... " >&6; }
10043
10044if test "$GCC" = yes; then
10045  case $host_os in
10046    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10047    *) lt_awk_arg="/^libraries:/" ;;
10048  esac
10049  case $host_os in
10050    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10051    *) lt_sed_strip_eq="s,=/,/,g" ;;
10052  esac
10053  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10054  case $lt_search_path_spec in
10055  *\;*)
10056    # if the path contains ";" then we assume it to be the separator
10057    # otherwise default to the standard path separator (i.e. ":") - it is
10058    # assumed that no part of a normal pathname contains ";" but that should
10059    # okay in the real world where ";" in dirpaths is itself problematic.
10060    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10061    ;;
10062  *)
10063    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10064    ;;
10065  esac
10066  # Ok, now we have the path, separated by spaces, we can step through it
10067  # and add multilib dir if necessary.
10068  lt_tmp_lt_search_path_spec=
10069  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10070  for lt_sys_path in $lt_search_path_spec; do
10071    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10072      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10073    else
10074      test -d "$lt_sys_path" && \
10075	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10076    fi
10077  done
10078  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10079BEGIN {RS=" "; FS="/|\n";} {
10080  lt_foo="";
10081  lt_count=0;
10082  for (lt_i = NF; lt_i > 0; lt_i--) {
10083    if ($lt_i != "" && $lt_i != ".") {
10084      if ($lt_i == "..") {
10085        lt_count++;
10086      } else {
10087        if (lt_count == 0) {
10088          lt_foo="/" $lt_i lt_foo;
10089        } else {
10090          lt_count--;
10091        }
10092      }
10093    }
10094  }
10095  if (lt_foo != "") { lt_freq[lt_foo]++; }
10096  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10097}'`
10098  # AWK program above erroneously prepends '/' to C:/dos/paths
10099  # for these hosts.
10100  case $host_os in
10101    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10102      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10103  esac
10104  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10105else
10106  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10107fi
10108library_names_spec=
10109libname_spec='lib$name'
10110soname_spec=
10111shrext_cmds=".so"
10112postinstall_cmds=
10113postuninstall_cmds=
10114finish_cmds=
10115finish_eval=
10116shlibpath_var=
10117shlibpath_overrides_runpath=unknown
10118version_type=none
10119dynamic_linker="$host_os ld.so"
10120sys_lib_dlsearch_path_spec="/lib /usr/lib"
10121need_lib_prefix=unknown
10122hardcode_into_libs=no
10123
10124# when you set need_version to no, make sure it does not cause -set_version
10125# flags to be left without arguments
10126need_version=unknown
10127
10128case $host_os in
10129aix3*)
10130  version_type=linux
10131  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10132  shlibpath_var=LIBPATH
10133
10134  # AIX 3 has no versioning support, so we append a major version to the name.
10135  soname_spec='${libname}${release}${shared_ext}$major'
10136  ;;
10137
10138aix[4-9]*)
10139  version_type=linux
10140  need_lib_prefix=no
10141  need_version=no
10142  hardcode_into_libs=yes
10143  if test "$host_cpu" = ia64; then
10144    # AIX 5 supports IA64
10145    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10146    shlibpath_var=LD_LIBRARY_PATH
10147  else
10148    # With GCC up to 2.95.x, collect2 would create an import file
10149    # for dependence libraries.  The import file would start with
10150    # the line `#! .'.  This would cause the generated library to
10151    # depend on `.', always an invalid library.  This was fixed in
10152    # development snapshots of GCC prior to 3.0.
10153    case $host_os in
10154      aix4 | aix4.[01] | aix4.[01].*)
10155      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10156	   echo ' yes '
10157	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10158	:
10159      else
10160	can_build_shared=no
10161      fi
10162      ;;
10163    esac
10164    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10165    # soname into executable. Probably we can add versioning support to
10166    # collect2, so additional links can be useful in future.
10167    if test "$aix_use_runtimelinking" = yes; then
10168      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10169      # instead of lib<name>.a to let people know that these are not
10170      # typical AIX shared libraries.
10171      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172    else
10173      # We preserve .a as extension for shared libraries through AIX4.2
10174      # and later when we are not doing run time linking.
10175      library_names_spec='${libname}${release}.a $libname.a'
10176      soname_spec='${libname}${release}${shared_ext}$major'
10177    fi
10178    shlibpath_var=LIBPATH
10179  fi
10180  ;;
10181
10182amigaos*)
10183  case $host_cpu in
10184  powerpc)
10185    # Since July 2007 AmigaOS4 officially supports .so libraries.
10186    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10187    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188    ;;
10189  m68k)
10190    library_names_spec='$libname.ixlibrary $libname.a'
10191    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10192    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'
10193    ;;
10194  esac
10195  ;;
10196
10197beos*)
10198  library_names_spec='${libname}${shared_ext}'
10199  dynamic_linker="$host_os ld.so"
10200  shlibpath_var=LIBRARY_PATH
10201  ;;
10202
10203bsdi[45]*)
10204  version_type=linux
10205  need_version=no
10206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207  soname_spec='${libname}${release}${shared_ext}$major'
10208  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10209  shlibpath_var=LD_LIBRARY_PATH
10210  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10211  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10212  # the default ld.so.conf also contains /usr/contrib/lib and
10213  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10214  # libtool to hard-code these into programs
10215  ;;
10216
10217cygwin* | mingw* | pw32* | cegcc*)
10218  version_type=windows
10219  shrext_cmds=".dll"
10220  need_version=no
10221  need_lib_prefix=no
10222
10223  case $GCC,$host_os in
10224  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10225    library_names_spec='$libname.dll.a'
10226    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10227    postinstall_cmds='base_file=`basename \${file}`~
10228      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10229      dldir=$destdir/`dirname \$dlpath`~
10230      test -d \$dldir || mkdir -p \$dldir~
10231      $install_prog $dir/$dlname \$dldir/$dlname~
10232      chmod a+x \$dldir/$dlname~
10233      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10234        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10235      fi'
10236    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10237      dlpath=$dir/\$dldll~
10238       $RM \$dlpath'
10239    shlibpath_overrides_runpath=yes
10240
10241    case $host_os in
10242    cygwin*)
10243      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10244      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10245
10246      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10247      ;;
10248    mingw* | cegcc*)
10249      # MinGW DLLs use traditional 'lib' prefix
10250      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10251      ;;
10252    pw32*)
10253      # pw32 DLLs use 'pw' prefix rather than 'lib'
10254      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10255      ;;
10256    esac
10257    ;;
10258
10259  *)
10260    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10261    ;;
10262  esac
10263  dynamic_linker='Win32 ld.exe'
10264  # FIXME: first we should search . and the directory the executable is in
10265  shlibpath_var=PATH
10266  ;;
10267
10268darwin* | rhapsody*)
10269  dynamic_linker="$host_os dyld"
10270  version_type=darwin
10271  need_lib_prefix=no
10272  need_version=no
10273  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10274  soname_spec='${libname}${release}${major}$shared_ext'
10275  shlibpath_overrides_runpath=yes
10276  shlibpath_var=DYLD_LIBRARY_PATH
10277  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10278
10279  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10280  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10281  ;;
10282
10283dgux*)
10284  version_type=linux
10285  need_lib_prefix=no
10286  need_version=no
10287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10288  soname_spec='${libname}${release}${shared_ext}$major'
10289  shlibpath_var=LD_LIBRARY_PATH
10290  ;;
10291
10292freebsd* | dragonfly*)
10293  # DragonFly does not have aout.  When/if they implement a new
10294  # versioning mechanism, adjust this.
10295  if test -x /usr/bin/objformat; then
10296    objformat=`/usr/bin/objformat`
10297  else
10298    case $host_os in
10299    freebsd[23].*) objformat=aout ;;
10300    *) objformat=elf ;;
10301    esac
10302  fi
10303  version_type=freebsd-$objformat
10304  case $version_type in
10305    freebsd-elf*)
10306      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10307      need_version=no
10308      need_lib_prefix=no
10309      ;;
10310    freebsd-*)
10311      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10312      need_version=yes
10313      ;;
10314  esac
10315  shlibpath_var=LD_LIBRARY_PATH
10316  case $host_os in
10317  freebsd2.*)
10318    shlibpath_overrides_runpath=yes
10319    ;;
10320  freebsd3.[01]* | freebsdelf3.[01]*)
10321    shlibpath_overrides_runpath=yes
10322    hardcode_into_libs=yes
10323    ;;
10324  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10325  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10326    shlibpath_overrides_runpath=no
10327    hardcode_into_libs=yes
10328    ;;
10329  *) # from 4.6 on, and DragonFly
10330    shlibpath_overrides_runpath=yes
10331    hardcode_into_libs=yes
10332    ;;
10333  esac
10334  ;;
10335
10336gnu*)
10337  version_type=linux
10338  need_lib_prefix=no
10339  need_version=no
10340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10341  soname_spec='${libname}${release}${shared_ext}$major'
10342  shlibpath_var=LD_LIBRARY_PATH
10343  hardcode_into_libs=yes
10344  ;;
10345
10346haiku*)
10347  version_type=linux
10348  need_lib_prefix=no
10349  need_version=no
10350  dynamic_linker="$host_os runtime_loader"
10351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10352  soname_spec='${libname}${release}${shared_ext}$major'
10353  shlibpath_var=LIBRARY_PATH
10354  shlibpath_overrides_runpath=yes
10355  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10356  hardcode_into_libs=yes
10357  ;;
10358
10359hpux9* | hpux10* | hpux11*)
10360  # Give a soname corresponding to the major version so that dld.sl refuses to
10361  # link against other versions.
10362  version_type=sunos
10363  need_lib_prefix=no
10364  need_version=no
10365  case $host_cpu in
10366  ia64*)
10367    shrext_cmds='.so'
10368    hardcode_into_libs=yes
10369    dynamic_linker="$host_os dld.so"
10370    shlibpath_var=LD_LIBRARY_PATH
10371    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10372    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373    soname_spec='${libname}${release}${shared_ext}$major'
10374    if test "X$HPUX_IA64_MODE" = X32; then
10375      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10376    else
10377      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10378    fi
10379    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10380    ;;
10381  hppa*64*)
10382    shrext_cmds='.sl'
10383    hardcode_into_libs=yes
10384    dynamic_linker="$host_os dld.sl"
10385    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10386    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10387    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388    soname_spec='${libname}${release}${shared_ext}$major'
10389    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10390    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10391    ;;
10392  *)
10393    shrext_cmds='.sl'
10394    dynamic_linker="$host_os dld.sl"
10395    shlibpath_var=SHLIB_PATH
10396    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10397    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398    soname_spec='${libname}${release}${shared_ext}$major'
10399    ;;
10400  esac
10401  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10402  postinstall_cmds='chmod 555 $lib'
10403  # or fails outright, so override atomically:
10404  install_override_mode=555
10405  ;;
10406
10407interix[3-9]*)
10408  version_type=linux
10409  need_lib_prefix=no
10410  need_version=no
10411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10412  soname_spec='${libname}${release}${shared_ext}$major'
10413  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10414  shlibpath_var=LD_LIBRARY_PATH
10415  shlibpath_overrides_runpath=no
10416  hardcode_into_libs=yes
10417  ;;
10418
10419irix5* | irix6* | nonstopux*)
10420  case $host_os in
10421    nonstopux*) version_type=nonstopux ;;
10422    *)
10423	if test "$lt_cv_prog_gnu_ld" = yes; then
10424		version_type=linux
10425	else
10426		version_type=irix
10427	fi ;;
10428  esac
10429  need_lib_prefix=no
10430  need_version=no
10431  soname_spec='${libname}${release}${shared_ext}$major'
10432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10433  case $host_os in
10434  irix5* | nonstopux*)
10435    libsuff= shlibsuff=
10436    ;;
10437  *)
10438    case $LD in # libtool.m4 will add one of these switches to LD
10439    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10440      libsuff= shlibsuff= libmagic=32-bit;;
10441    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10442      libsuff=32 shlibsuff=N32 libmagic=N32;;
10443    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10444      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10445    *) libsuff= shlibsuff= libmagic=never-match;;
10446    esac
10447    ;;
10448  esac
10449  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10450  shlibpath_overrides_runpath=no
10451  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10452  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10453  hardcode_into_libs=yes
10454  ;;
10455
10456# No shared lib support for Linux oldld, aout, or coff.
10457linux*oldld* | linux*aout* | linux*coff*)
10458  dynamic_linker=no
10459  ;;
10460
10461# This must be Linux ELF.
10462linux* | k*bsd*-gnu | kopensolaris*-gnu)
10463  version_type=linux
10464  need_lib_prefix=no
10465  need_version=no
10466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467  soname_spec='${libname}${release}${shared_ext}$major'
10468  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10469  shlibpath_var=LD_LIBRARY_PATH
10470  shlibpath_overrides_runpath=no
10471
10472  # Some binutils ld are patched to set DT_RUNPATH
10473  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10474  $as_echo_n "(cached) " >&6
10475else
10476  lt_cv_shlibpath_overrides_runpath=no
10477    save_LDFLAGS=$LDFLAGS
10478    save_libdir=$libdir
10479    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10480	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10481    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482/* end confdefs.h.  */
10483
10484int
10485main ()
10486{
10487
10488  ;
10489  return 0;
10490}
10491_ACEOF
10492if ac_fn_c_try_link "$LINENO"; then :
10493  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10494  lt_cv_shlibpath_overrides_runpath=yes
10495fi
10496fi
10497rm -f core conftest.err conftest.$ac_objext \
10498    conftest$ac_exeext conftest.$ac_ext
10499    LDFLAGS=$save_LDFLAGS
10500    libdir=$save_libdir
10501
10502fi
10503
10504  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10505
10506  # This implies no fast_install, which is unacceptable.
10507  # Some rework will be needed to allow for fast_install
10508  # before this can be enabled.
10509  hardcode_into_libs=yes
10510
10511  # Append ld.so.conf contents to the search path
10512  if test -f /etc/ld.so.conf; then
10513    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' ' '`
10514    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10515  fi
10516
10517  # We used to test for /lib/ld.so.1 and disable shared libraries on
10518  # powerpc, because MkLinux only supported shared libraries with the
10519  # GNU dynamic linker.  Since this was broken with cross compilers,
10520  # most powerpc-linux boxes support dynamic linking these days and
10521  # people can always --disable-shared, the test was removed, and we
10522  # assume the GNU/Linux dynamic linker is in use.
10523  dynamic_linker='GNU/Linux ld.so'
10524  ;;
10525
10526netbsd*)
10527  version_type=sunos
10528  need_lib_prefix=no
10529  need_version=no
10530  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10531    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10532    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10533    dynamic_linker='NetBSD (a.out) ld.so'
10534  else
10535    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10536    soname_spec='${libname}${release}${shared_ext}$major'
10537    dynamic_linker='NetBSD ld.elf_so'
10538  fi
10539  shlibpath_var=LD_LIBRARY_PATH
10540  shlibpath_overrides_runpath=yes
10541  hardcode_into_libs=yes
10542  ;;
10543
10544newsos6)
10545  version_type=linux
10546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547  shlibpath_var=LD_LIBRARY_PATH
10548  shlibpath_overrides_runpath=yes
10549  ;;
10550
10551*nto* | *qnx*)
10552  version_type=qnx
10553  need_lib_prefix=no
10554  need_version=no
10555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556  soname_spec='${libname}${release}${shared_ext}$major'
10557  shlibpath_var=LD_LIBRARY_PATH
10558  shlibpath_overrides_runpath=no
10559  hardcode_into_libs=yes
10560  dynamic_linker='ldqnx.so'
10561  ;;
10562
10563openbsd*)
10564  version_type=sunos
10565  sys_lib_dlsearch_path_spec="/usr/lib"
10566  need_lib_prefix=no
10567  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10568  case $host_os in
10569    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10570    *)				need_version=no  ;;
10571  esac
10572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574  shlibpath_var=LD_LIBRARY_PATH
10575  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10576    case $host_os in
10577      openbsd2.[89] | openbsd2.[89].*)
10578	shlibpath_overrides_runpath=no
10579	;;
10580      *)
10581	shlibpath_overrides_runpath=yes
10582	;;
10583      esac
10584  else
10585    shlibpath_overrides_runpath=yes
10586  fi
10587  ;;
10588
10589os2*)
10590  libname_spec='$name'
10591  shrext_cmds=".dll"
10592  need_lib_prefix=no
10593  library_names_spec='$libname${shared_ext} $libname.a'
10594  dynamic_linker='OS/2 ld.exe'
10595  shlibpath_var=LIBPATH
10596  ;;
10597
10598osf3* | osf4* | osf5*)
10599  version_type=osf
10600  need_lib_prefix=no
10601  need_version=no
10602  soname_spec='${libname}${release}${shared_ext}$major'
10603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604  shlibpath_var=LD_LIBRARY_PATH
10605  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10606  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10607  ;;
10608
10609rdos*)
10610  dynamic_linker=no
10611  ;;
10612
10613solaris*)
10614  version_type=linux
10615  need_lib_prefix=no
10616  need_version=no
10617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618  soname_spec='${libname}${release}${shared_ext}$major'
10619  shlibpath_var=LD_LIBRARY_PATH
10620  shlibpath_overrides_runpath=yes
10621  hardcode_into_libs=yes
10622  # ldd complains unless libraries are executable
10623  postinstall_cmds='chmod +x $lib'
10624  ;;
10625
10626sunos4*)
10627  version_type=sunos
10628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10629  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10630  shlibpath_var=LD_LIBRARY_PATH
10631  shlibpath_overrides_runpath=yes
10632  if test "$with_gnu_ld" = yes; then
10633    need_lib_prefix=no
10634  fi
10635  need_version=yes
10636  ;;
10637
10638sysv4 | sysv4.3*)
10639  version_type=linux
10640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641  soname_spec='${libname}${release}${shared_ext}$major'
10642  shlibpath_var=LD_LIBRARY_PATH
10643  case $host_vendor in
10644    sni)
10645      shlibpath_overrides_runpath=no
10646      need_lib_prefix=no
10647      runpath_var=LD_RUN_PATH
10648      ;;
10649    siemens)
10650      need_lib_prefix=no
10651      ;;
10652    motorola)
10653      need_lib_prefix=no
10654      need_version=no
10655      shlibpath_overrides_runpath=no
10656      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10657      ;;
10658  esac
10659  ;;
10660
10661sysv4*MP*)
10662  if test -d /usr/nec ;then
10663    version_type=linux
10664    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10665    soname_spec='$libname${shared_ext}.$major'
10666    shlibpath_var=LD_LIBRARY_PATH
10667  fi
10668  ;;
10669
10670sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10671  version_type=freebsd-elf
10672  need_lib_prefix=no
10673  need_version=no
10674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10675  soname_spec='${libname}${release}${shared_ext}$major'
10676  shlibpath_var=LD_LIBRARY_PATH
10677  shlibpath_overrides_runpath=yes
10678  hardcode_into_libs=yes
10679  if test "$with_gnu_ld" = yes; then
10680    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10681  else
10682    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10683    case $host_os in
10684      sco3.2v5*)
10685        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10686	;;
10687    esac
10688  fi
10689  sys_lib_dlsearch_path_spec='/usr/lib'
10690  ;;
10691
10692tpf*)
10693  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10694  version_type=linux
10695  need_lib_prefix=no
10696  need_version=no
10697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698  shlibpath_var=LD_LIBRARY_PATH
10699  shlibpath_overrides_runpath=no
10700  hardcode_into_libs=yes
10701  ;;
10702
10703uts4*)
10704  version_type=linux
10705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706  soname_spec='${libname}${release}${shared_ext}$major'
10707  shlibpath_var=LD_LIBRARY_PATH
10708  ;;
10709
10710*)
10711  dynamic_linker=no
10712  ;;
10713esac
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10715$as_echo "$dynamic_linker" >&6; }
10716test "$dynamic_linker" = no && can_build_shared=no
10717
10718variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10719if test "$GCC" = yes; then
10720  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10721fi
10722
10723if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10724  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10725fi
10726if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10727  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10728fi
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10822$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10823hardcode_action=
10824if test -n "$hardcode_libdir_flag_spec" ||
10825   test -n "$runpath_var" ||
10826   test "X$hardcode_automatic" = "Xyes" ; then
10827
10828  # We can hardcode non-existent directories.
10829  if test "$hardcode_direct" != no &&
10830     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10831     # have to relink, otherwise we might link with an installed library
10832     # when we should be linking with a yet-to-be-installed one
10833     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10834     test "$hardcode_minus_L" != no; then
10835    # Linking always hardcodes the temporary library directory.
10836    hardcode_action=relink
10837  else
10838    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10839    hardcode_action=immediate
10840  fi
10841else
10842  # We cannot hardcode anything, or else we can only hardcode existing
10843  # directories.
10844  hardcode_action=unsupported
10845fi
10846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10847$as_echo "$hardcode_action" >&6; }
10848
10849if test "$hardcode_action" = relink ||
10850   test "$inherit_rpath" = yes; then
10851  # Fast installation is not supported
10852  enable_fast_install=no
10853elif test "$shlibpath_overrides_runpath" = yes ||
10854     test "$enable_shared" = no; then
10855  # Fast installation is not necessary
10856  enable_fast_install=needless
10857fi
10858
10859
10860
10861
10862
10863
10864  if test "x$enable_dlopen" != xyes; then
10865  enable_dlopen=unknown
10866  enable_dlopen_self=unknown
10867  enable_dlopen_self_static=unknown
10868else
10869  lt_cv_dlopen=no
10870  lt_cv_dlopen_libs=
10871
10872  case $host_os in
10873  beos*)
10874    lt_cv_dlopen="load_add_on"
10875    lt_cv_dlopen_libs=
10876    lt_cv_dlopen_self=yes
10877    ;;
10878
10879  mingw* | pw32* | cegcc*)
10880    lt_cv_dlopen="LoadLibrary"
10881    lt_cv_dlopen_libs=
10882    ;;
10883
10884  cygwin*)
10885    lt_cv_dlopen="dlopen"
10886    lt_cv_dlopen_libs=
10887    ;;
10888
10889  darwin*)
10890  # if libdl is installed we need to link against it
10891    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10892$as_echo_n "checking for dlopen in -ldl... " >&6; }
10893if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10894  $as_echo_n "(cached) " >&6
10895else
10896  ac_check_lib_save_LIBS=$LIBS
10897LIBS="-ldl  $LIBS"
10898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899/* end confdefs.h.  */
10900
10901/* Override any GCC internal prototype to avoid an error.
10902   Use char because int might match the return type of a GCC
10903   builtin and then its argument prototype would still apply.  */
10904#ifdef __cplusplus
10905extern "C"
10906#endif
10907char dlopen ();
10908int
10909main ()
10910{
10911return dlopen ();
10912  ;
10913  return 0;
10914}
10915_ACEOF
10916if ac_fn_c_try_link "$LINENO"; then :
10917  ac_cv_lib_dl_dlopen=yes
10918else
10919  ac_cv_lib_dl_dlopen=no
10920fi
10921rm -f core conftest.err conftest.$ac_objext \
10922    conftest$ac_exeext conftest.$ac_ext
10923LIBS=$ac_check_lib_save_LIBS
10924fi
10925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10926$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10927if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10928  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10929else
10930
10931    lt_cv_dlopen="dyld"
10932    lt_cv_dlopen_libs=
10933    lt_cv_dlopen_self=yes
10934
10935fi
10936
10937    ;;
10938
10939  *)
10940    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10941if test "x$ac_cv_func_shl_load" = x""yes; then :
10942  lt_cv_dlopen="shl_load"
10943else
10944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10945$as_echo_n "checking for shl_load in -ldld... " >&6; }
10946if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10947  $as_echo_n "(cached) " >&6
10948else
10949  ac_check_lib_save_LIBS=$LIBS
10950LIBS="-ldld  $LIBS"
10951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952/* end confdefs.h.  */
10953
10954/* Override any GCC internal prototype to avoid an error.
10955   Use char because int might match the return type of a GCC
10956   builtin and then its argument prototype would still apply.  */
10957#ifdef __cplusplus
10958extern "C"
10959#endif
10960char shl_load ();
10961int
10962main ()
10963{
10964return shl_load ();
10965  ;
10966  return 0;
10967}
10968_ACEOF
10969if ac_fn_c_try_link "$LINENO"; then :
10970  ac_cv_lib_dld_shl_load=yes
10971else
10972  ac_cv_lib_dld_shl_load=no
10973fi
10974rm -f core conftest.err conftest.$ac_objext \
10975    conftest$ac_exeext conftest.$ac_ext
10976LIBS=$ac_check_lib_save_LIBS
10977fi
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10979$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10980if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10981  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10982else
10983  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10984if test "x$ac_cv_func_dlopen" = x""yes; then :
10985  lt_cv_dlopen="dlopen"
10986else
10987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10988$as_echo_n "checking for dlopen in -ldl... " >&6; }
10989if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10990  $as_echo_n "(cached) " >&6
10991else
10992  ac_check_lib_save_LIBS=$LIBS
10993LIBS="-ldl  $LIBS"
10994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995/* end confdefs.h.  */
10996
10997/* Override any GCC internal prototype to avoid an error.
10998   Use char because int might match the return type of a GCC
10999   builtin and then its argument prototype would still apply.  */
11000#ifdef __cplusplus
11001extern "C"
11002#endif
11003char dlopen ();
11004int
11005main ()
11006{
11007return dlopen ();
11008  ;
11009  return 0;
11010}
11011_ACEOF
11012if ac_fn_c_try_link "$LINENO"; then :
11013  ac_cv_lib_dl_dlopen=yes
11014else
11015  ac_cv_lib_dl_dlopen=no
11016fi
11017rm -f core conftest.err conftest.$ac_objext \
11018    conftest$ac_exeext conftest.$ac_ext
11019LIBS=$ac_check_lib_save_LIBS
11020fi
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11022$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11023if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11024  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11025else
11026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11027$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11028if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11029  $as_echo_n "(cached) " >&6
11030else
11031  ac_check_lib_save_LIBS=$LIBS
11032LIBS="-lsvld  $LIBS"
11033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034/* end confdefs.h.  */
11035
11036/* Override any GCC internal prototype to avoid an error.
11037   Use char because int might match the return type of a GCC
11038   builtin and then its argument prototype would still apply.  */
11039#ifdef __cplusplus
11040extern "C"
11041#endif
11042char dlopen ();
11043int
11044main ()
11045{
11046return dlopen ();
11047  ;
11048  return 0;
11049}
11050_ACEOF
11051if ac_fn_c_try_link "$LINENO"; then :
11052  ac_cv_lib_svld_dlopen=yes
11053else
11054  ac_cv_lib_svld_dlopen=no
11055fi
11056rm -f core conftest.err conftest.$ac_objext \
11057    conftest$ac_exeext conftest.$ac_ext
11058LIBS=$ac_check_lib_save_LIBS
11059fi
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11061$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11062if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11063  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11064else
11065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11066$as_echo_n "checking for dld_link in -ldld... " >&6; }
11067if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11068  $as_echo_n "(cached) " >&6
11069else
11070  ac_check_lib_save_LIBS=$LIBS
11071LIBS="-ldld  $LIBS"
11072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073/* end confdefs.h.  */
11074
11075/* Override any GCC internal prototype to avoid an error.
11076   Use char because int might match the return type of a GCC
11077   builtin and then its argument prototype would still apply.  */
11078#ifdef __cplusplus
11079extern "C"
11080#endif
11081char dld_link ();
11082int
11083main ()
11084{
11085return dld_link ();
11086  ;
11087  return 0;
11088}
11089_ACEOF
11090if ac_fn_c_try_link "$LINENO"; then :
11091  ac_cv_lib_dld_dld_link=yes
11092else
11093  ac_cv_lib_dld_dld_link=no
11094fi
11095rm -f core conftest.err conftest.$ac_objext \
11096    conftest$ac_exeext conftest.$ac_ext
11097LIBS=$ac_check_lib_save_LIBS
11098fi
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11100$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11101if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11102  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11103fi
11104
11105
11106fi
11107
11108
11109fi
11110
11111
11112fi
11113
11114
11115fi
11116
11117
11118fi
11119
11120    ;;
11121  esac
11122
11123  if test "x$lt_cv_dlopen" != xno; then
11124    enable_dlopen=yes
11125  else
11126    enable_dlopen=no
11127  fi
11128
11129  case $lt_cv_dlopen in
11130  dlopen)
11131    save_CPPFLAGS="$CPPFLAGS"
11132    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11133
11134    save_LDFLAGS="$LDFLAGS"
11135    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11136
11137    save_LIBS="$LIBS"
11138    LIBS="$lt_cv_dlopen_libs $LIBS"
11139
11140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11141$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11142if test "${lt_cv_dlopen_self+set}" = set; then :
11143  $as_echo_n "(cached) " >&6
11144else
11145  	  if test "$cross_compiling" = yes; then :
11146  lt_cv_dlopen_self=cross
11147else
11148  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11149  lt_status=$lt_dlunknown
11150  cat > conftest.$ac_ext <<_LT_EOF
11151#line 11151 "configure"
11152#include "confdefs.h"
11153
11154#if HAVE_DLFCN_H
11155#include <dlfcn.h>
11156#endif
11157
11158#include <stdio.h>
11159
11160#ifdef RTLD_GLOBAL
11161#  define LT_DLGLOBAL		RTLD_GLOBAL
11162#else
11163#  ifdef DL_GLOBAL
11164#    define LT_DLGLOBAL		DL_GLOBAL
11165#  else
11166#    define LT_DLGLOBAL		0
11167#  endif
11168#endif
11169
11170/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11171   find out it does not work in some platform. */
11172#ifndef LT_DLLAZY_OR_NOW
11173#  ifdef RTLD_LAZY
11174#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11175#  else
11176#    ifdef DL_LAZY
11177#      define LT_DLLAZY_OR_NOW		DL_LAZY
11178#    else
11179#      ifdef RTLD_NOW
11180#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11181#      else
11182#        ifdef DL_NOW
11183#          define LT_DLLAZY_OR_NOW	DL_NOW
11184#        else
11185#          define LT_DLLAZY_OR_NOW	0
11186#        endif
11187#      endif
11188#    endif
11189#  endif
11190#endif
11191
11192/* When -fvisbility=hidden is used, assume the code has been annotated
11193   correspondingly for the symbols needed.  */
11194#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11195void fnord () __attribute__((visibility("default")));
11196#endif
11197
11198void fnord () { int i=42; }
11199int main ()
11200{
11201  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11202  int status = $lt_dlunknown;
11203
11204  if (self)
11205    {
11206      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11207      else
11208        {
11209	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11210          else puts (dlerror ());
11211	}
11212      /* dlclose (self); */
11213    }
11214  else
11215    puts (dlerror ());
11216
11217  return status;
11218}
11219_LT_EOF
11220  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11221  (eval $ac_link) 2>&5
11222  ac_status=$?
11223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11224  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11225    (./conftest; exit; ) >&5 2>/dev/null
11226    lt_status=$?
11227    case x$lt_status in
11228      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11229      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11230      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11231    esac
11232  else :
11233    # compilation failed
11234    lt_cv_dlopen_self=no
11235  fi
11236fi
11237rm -fr conftest*
11238
11239
11240fi
11241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11242$as_echo "$lt_cv_dlopen_self" >&6; }
11243
11244    if test "x$lt_cv_dlopen_self" = xyes; then
11245      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11246      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11247$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11248if test "${lt_cv_dlopen_self_static+set}" = set; then :
11249  $as_echo_n "(cached) " >&6
11250else
11251  	  if test "$cross_compiling" = yes; then :
11252  lt_cv_dlopen_self_static=cross
11253else
11254  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11255  lt_status=$lt_dlunknown
11256  cat > conftest.$ac_ext <<_LT_EOF
11257#line 11257 "configure"
11258#include "confdefs.h"
11259
11260#if HAVE_DLFCN_H
11261#include <dlfcn.h>
11262#endif
11263
11264#include <stdio.h>
11265
11266#ifdef RTLD_GLOBAL
11267#  define LT_DLGLOBAL		RTLD_GLOBAL
11268#else
11269#  ifdef DL_GLOBAL
11270#    define LT_DLGLOBAL		DL_GLOBAL
11271#  else
11272#    define LT_DLGLOBAL		0
11273#  endif
11274#endif
11275
11276/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11277   find out it does not work in some platform. */
11278#ifndef LT_DLLAZY_OR_NOW
11279#  ifdef RTLD_LAZY
11280#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11281#  else
11282#    ifdef DL_LAZY
11283#      define LT_DLLAZY_OR_NOW		DL_LAZY
11284#    else
11285#      ifdef RTLD_NOW
11286#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11287#      else
11288#        ifdef DL_NOW
11289#          define LT_DLLAZY_OR_NOW	DL_NOW
11290#        else
11291#          define LT_DLLAZY_OR_NOW	0
11292#        endif
11293#      endif
11294#    endif
11295#  endif
11296#endif
11297
11298/* When -fvisbility=hidden is used, assume the code has been annotated
11299   correspondingly for the symbols needed.  */
11300#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11301void fnord () __attribute__((visibility("default")));
11302#endif
11303
11304void fnord () { int i=42; }
11305int main ()
11306{
11307  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11308  int status = $lt_dlunknown;
11309
11310  if (self)
11311    {
11312      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11313      else
11314        {
11315	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11316          else puts (dlerror ());
11317	}
11318      /* dlclose (self); */
11319    }
11320  else
11321    puts (dlerror ());
11322
11323  return status;
11324}
11325_LT_EOF
11326  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11327  (eval $ac_link) 2>&5
11328  ac_status=$?
11329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11330  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11331    (./conftest; exit; ) >&5 2>/dev/null
11332    lt_status=$?
11333    case x$lt_status in
11334      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11335      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11336      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11337    esac
11338  else :
11339    # compilation failed
11340    lt_cv_dlopen_self_static=no
11341  fi
11342fi
11343rm -fr conftest*
11344
11345
11346fi
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11348$as_echo "$lt_cv_dlopen_self_static" >&6; }
11349    fi
11350
11351    CPPFLAGS="$save_CPPFLAGS"
11352    LDFLAGS="$save_LDFLAGS"
11353    LIBS="$save_LIBS"
11354    ;;
11355  esac
11356
11357  case $lt_cv_dlopen_self in
11358  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11359  *) enable_dlopen_self=unknown ;;
11360  esac
11361
11362  case $lt_cv_dlopen_self_static in
11363  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11364  *) enable_dlopen_self_static=unknown ;;
11365  esac
11366fi
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384striplib=
11385old_striplib=
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11387$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11388if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11389  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11390  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11392$as_echo "yes" >&6; }
11393else
11394# FIXME - insert some real tests, host_os isn't really good enough
11395  case $host_os in
11396  darwin*)
11397    if test -n "$STRIP" ; then
11398      striplib="$STRIP -x"
11399      old_striplib="$STRIP -S"
11400      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401$as_echo "yes" >&6; }
11402    else
11403      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404$as_echo "no" >&6; }
11405    fi
11406    ;;
11407  *)
11408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409$as_echo "no" >&6; }
11410    ;;
11411  esac
11412fi
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425  # Report which library types will actually be built
11426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11427$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11429$as_echo "$can_build_shared" >&6; }
11430
11431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11432$as_echo_n "checking whether to build shared libraries... " >&6; }
11433  test "$can_build_shared" = "no" && enable_shared=no
11434
11435  # On AIX, shared libraries and static libraries use the same namespace, and
11436  # are all built from PIC.
11437  case $host_os in
11438  aix3*)
11439    test "$enable_shared" = yes && enable_static=no
11440    if test -n "$RANLIB"; then
11441      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11442      postinstall_cmds='$RANLIB $lib'
11443    fi
11444    ;;
11445
11446  aix[4-9]*)
11447    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11448      test "$enable_shared" = yes && enable_static=no
11449    fi
11450    ;;
11451  esac
11452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11453$as_echo "$enable_shared" >&6; }
11454
11455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11456$as_echo_n "checking whether to build static libraries... " >&6; }
11457  # Make sure either enable_shared or enable_static is yes.
11458  test "$enable_shared" = yes || enable_static=yes
11459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11460$as_echo "$enable_static" >&6; }
11461
11462
11463
11464
11465fi
11466ac_ext=c
11467ac_cpp='$CPP $CPPFLAGS'
11468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11470ac_compiler_gnu=$ac_cv_c_compiler_gnu
11471
11472CC="$lt_save_CC"
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486        ac_config_commands="$ac_config_commands libtool"
11487
11488
11489
11490
11491# Only expand once:
11492
11493
11494
11495
11496# Check whether --enable-largefile was given.
11497if test "${enable_largefile+set}" = set; then :
11498  enableval=$enable_largefile;
11499fi
11500
11501if test "$enable_largefile" != no; then
11502
11503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11504$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11505if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11506  $as_echo_n "(cached) " >&6
11507else
11508  ac_cv_sys_largefile_CC=no
11509     if test "$GCC" != yes; then
11510       ac_save_CC=$CC
11511       while :; do
11512	 # IRIX 6.2 and later do not support large files by default,
11513	 # so use the C compiler's -n32 option if that helps.
11514	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515/* end confdefs.h.  */
11516#include <sys/types.h>
11517 /* Check that off_t can represent 2**63 - 1 correctly.
11518    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11519    since some C++ compilers masquerading as C compilers
11520    incorrectly reject 9223372036854775807.  */
11521#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11522  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11523		       && LARGE_OFF_T % 2147483647 == 1)
11524		      ? 1 : -1];
11525int
11526main ()
11527{
11528
11529  ;
11530  return 0;
11531}
11532_ACEOF
11533	 if ac_fn_c_try_compile "$LINENO"; then :
11534  break
11535fi
11536rm -f core conftest.err conftest.$ac_objext
11537	 CC="$CC -n32"
11538	 if ac_fn_c_try_compile "$LINENO"; then :
11539  ac_cv_sys_largefile_CC=' -n32'; break
11540fi
11541rm -f core conftest.err conftest.$ac_objext
11542	 break
11543       done
11544       CC=$ac_save_CC
11545       rm -f conftest.$ac_ext
11546    fi
11547fi
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11549$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11550  if test "$ac_cv_sys_largefile_CC" != no; then
11551    CC=$CC$ac_cv_sys_largefile_CC
11552  fi
11553
11554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11555$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11556if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11557  $as_echo_n "(cached) " >&6
11558else
11559  while :; do
11560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561/* end confdefs.h.  */
11562#include <sys/types.h>
11563 /* Check that off_t can represent 2**63 - 1 correctly.
11564    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11565    since some C++ compilers masquerading as C compilers
11566    incorrectly reject 9223372036854775807.  */
11567#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11568  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11569		       && LARGE_OFF_T % 2147483647 == 1)
11570		      ? 1 : -1];
11571int
11572main ()
11573{
11574
11575  ;
11576  return 0;
11577}
11578_ACEOF
11579if ac_fn_c_try_compile "$LINENO"; then :
11580  ac_cv_sys_file_offset_bits=no; break
11581fi
11582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h.  */
11585#define _FILE_OFFSET_BITS 64
11586#include <sys/types.h>
11587 /* Check that off_t can represent 2**63 - 1 correctly.
11588    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11589    since some C++ compilers masquerading as C compilers
11590    incorrectly reject 9223372036854775807.  */
11591#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11592  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11593		       && LARGE_OFF_T % 2147483647 == 1)
11594		      ? 1 : -1];
11595int
11596main ()
11597{
11598
11599  ;
11600  return 0;
11601}
11602_ACEOF
11603if ac_fn_c_try_compile "$LINENO"; then :
11604  ac_cv_sys_file_offset_bits=64; break
11605fi
11606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607  ac_cv_sys_file_offset_bits=unknown
11608  break
11609done
11610fi
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11612$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11613case $ac_cv_sys_file_offset_bits in #(
11614  no | unknown) ;;
11615  *)
11616cat >>confdefs.h <<_ACEOF
11617#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11618_ACEOF
11619;;
11620esac
11621rm -rf conftest*
11622  if test $ac_cv_sys_file_offset_bits = unknown; then
11623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11624$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11625if test "${ac_cv_sys_large_files+set}" = set; then :
11626  $as_echo_n "(cached) " >&6
11627else
11628  while :; do
11629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630/* end confdefs.h.  */
11631#include <sys/types.h>
11632 /* Check that off_t can represent 2**63 - 1 correctly.
11633    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11634    since some C++ compilers masquerading as C compilers
11635    incorrectly reject 9223372036854775807.  */
11636#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11637  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11638		       && LARGE_OFF_T % 2147483647 == 1)
11639		      ? 1 : -1];
11640int
11641main ()
11642{
11643
11644  ;
11645  return 0;
11646}
11647_ACEOF
11648if ac_fn_c_try_compile "$LINENO"; then :
11649  ac_cv_sys_large_files=no; break
11650fi
11651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653/* end confdefs.h.  */
11654#define _LARGE_FILES 1
11655#include <sys/types.h>
11656 /* Check that off_t can represent 2**63 - 1 correctly.
11657    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11658    since some C++ compilers masquerading as C compilers
11659    incorrectly reject 9223372036854775807.  */
11660#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11661  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11662		       && LARGE_OFF_T % 2147483647 == 1)
11663		      ? 1 : -1];
11664int
11665main ()
11666{
11667
11668  ;
11669  return 0;
11670}
11671_ACEOF
11672if ac_fn_c_try_compile "$LINENO"; then :
11673  ac_cv_sys_large_files=1; break
11674fi
11675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676  ac_cv_sys_large_files=unknown
11677  break
11678done
11679fi
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11681$as_echo "$ac_cv_sys_large_files" >&6; }
11682case $ac_cv_sys_large_files in #(
11683  no | unknown) ;;
11684  *)
11685cat >>confdefs.h <<_ACEOF
11686#define _LARGE_FILES $ac_cv_sys_large_files
11687_ACEOF
11688;;
11689esac
11690rm -rf conftest*
11691  fi
11692fi
11693
11694
11695backtrace_supported=yes
11696
11697if test -n "${with_target_subdir}"; then
11698  # We are compiling a GCC library.  We can assume that the unwind
11699  # library exists.
11700  BACKTRACE_FILE="backtrace.lo simple.lo"
11701else
11702  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11703if test "x$ac_cv_header_unwind_h" = x""yes; then :
11704  ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
11705if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
11706  BACKTRACE_FILE="backtrace.lo simple.lo"
11707else
11708  BACKTRACE_FILE="nounwind.lo"
11709                    backtrace_supported=no
11710fi
11711
11712else
11713  BACKTRACE_FILE="nounwind.lo"
11714     backtrace_supported=no
11715fi
11716
11717
11718fi
11719
11720
11721EXTRA_FLAGS=
11722if test -n "${with_target_subdir}"; then
11723  EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
11724else
11725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
11726$as_echo_n "checking for -funwind-tables option... " >&6; }
11727if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
11728  $as_echo_n "(cached) " >&6
11729else
11730  CFLAGS_hold="$CFLAGS"
11731     CFLAGS="$CFLAGS -funwind-tables"
11732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733/* end confdefs.h.  */
11734static int f() { return 0; }
11735int
11736main ()
11737{
11738return f();
11739  ;
11740  return 0;
11741}
11742_ACEOF
11743if ac_fn_c_try_compile "$LINENO"; then :
11744  libbacktrace_cv_c_unwind_tables=yes
11745else
11746  libbacktrace_cv_c_unwind_tables=no
11747fi
11748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11749     CFLAGS="$CFLAGS_hold"
11750fi
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
11752$as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
11753  if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
11754    EXTRA_FLAGS=-funwind-tables
11755  fi
11756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
11757$as_echo_n "checking for -frandom-seed=string option... " >&6; }
11758if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
11759  $as_echo_n "(cached) " >&6
11760else
11761  CFLAGS_hold="$CFLAGS"
11762     CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
11763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764/* end confdefs.h.  */
11765
11766int
11767main ()
11768{
11769return 0;
11770  ;
11771  return 0;
11772}
11773_ACEOF
11774if ac_fn_c_try_compile "$LINENO"; then :
11775  libbacktrace_cv_c_random_seed_string=yes
11776else
11777  libbacktrace_cv_c_random_seed_string=no
11778fi
11779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780     CFLAGS="$CFLAGS_hold"
11781fi
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
11783$as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
11784  if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
11785    EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
11786  fi
11787fi
11788
11789if test -n "${with_target_subdir}"; then
11790  # Add CET specific flags is Intel CET is enabled.
11791   # Check whether --enable-cet was given.
11792if test "${enable_cet+set}" = set; then :
11793  enableval=$enable_cet;
11794      case "$enableval" in
11795       yes|no|auto) ;;
11796       *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
11797                          esac
11798
11799else
11800  enable_cet=no
11801fi
11802
11803
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
11805$as_echo_n "checking for CET support... " >&6; }
11806
11807case "$host" in
11808  i[34567]86-*-linux* | x86_64-*-linux*)
11809    case "$enable_cet" in
11810      auto)
11811	# Check if target supports multi-byte NOPs
11812	# and if assembler supports CET insn.
11813	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h.  */
11815
11816int
11817main ()
11818{
11819
11820#if !defined(__SSE2__)
11821#error target does not support multi-byte NOPs
11822#else
11823asm ("setssbsy");
11824#endif
11825
11826  ;
11827  return 0;
11828}
11829_ACEOF
11830if ac_fn_c_try_compile "$LINENO"; then :
11831  enable_cet=yes
11832else
11833  enable_cet=no
11834fi
11835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836	;;
11837      yes)
11838	# Check if assembler supports CET.
11839	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h.  */
11841
11842int
11843main ()
11844{
11845asm ("setssbsy");
11846  ;
11847  return 0;
11848}
11849_ACEOF
11850if ac_fn_c_try_compile "$LINENO"; then :
11851
11852else
11853  as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
11854fi
11855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856	;;
11857    esac
11858    ;;
11859  *)
11860    enable_cet=no
11861    ;;
11862esac
11863if test x$enable_cet = xyes; then
11864  CET_FLAGS="-fcf-protection -mshstk"
11865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11866$as_echo "yes" >&6; }
11867else
11868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869$as_echo "no" >&6; }
11870fi
11871
11872  EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
11873fi
11874
11875
11876ac_ext=c
11877ac_cpp='$CPP $CPPFLAGS'
11878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11880ac_compiler_gnu=$ac_cv_c_compiler_gnu
11881
11882WARN_FLAGS=
11883save_CFLAGS="$CFLAGS"
11884for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
11885			  -Wmissing-prototypes -Wold-style-definition \
11886			  -Wmissing-format-attribute -Wcast-qual; do
11887  # Do the check with the no- prefix removed since gcc silently
11888  # accepts any -Wno-* option on purpose
11889  case $real_option in
11890    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11891    *) option=$real_option ;;
11892  esac
11893  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11894
11895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11896$as_echo_n "checking whether $CC supports $option... " >&6; }
11897if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11898  $as_echo_n "(cached) " >&6
11899else
11900  CFLAGS="$option"
11901    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902/* end confdefs.h.  */
11903
11904int
11905main ()
11906{
11907
11908  ;
11909  return 0;
11910}
11911_ACEOF
11912if ac_fn_c_try_compile "$LINENO"; then :
11913  eval "$as_acx_Woption=yes"
11914else
11915  eval "$as_acx_Woption=no"
11916fi
11917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918
11919fi
11920eval ac_res=\$$as_acx_Woption
11921	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11922$as_echo "$ac_res" >&6; }
11923  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11924  WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
11925fi
11926  done
11927CFLAGS="$save_CFLAGS"
11928ac_ext=c
11929ac_cpp='$CPP $CPPFLAGS'
11930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11932ac_compiler_gnu=$ac_cv_c_compiler_gnu
11933
11934
11935
11936if test -n "${with_target_subdir}"; then
11937  WARN_FLAGS="$WARN_FLAGS -Werror"
11938fi
11939
11940
11941
11942if test -n "${with_target_subdir}"; then
11943
11944
11945# Check whether --with-system-libunwind was given.
11946if test "${with_system_libunwind+set}" = set; then :
11947  withval=$with_system_libunwind;
11948fi
11949
11950  # If system-libunwind was not specifically set, pick a default setting.
11951  if test x$with_system_libunwind = x; then
11952    case ${target} in
11953      ia64-*-hpux*) with_system_libunwind=yes ;;
11954      *) with_system_libunwind=no ;;
11955    esac
11956  fi
11957  # Based on system-libunwind and target, do we have ipinfo?
11958  if  test x$with_system_libunwind = xyes; then
11959    case ${target} in
11960      ia64-*-*) have_unwind_getipinfo=no ;;
11961      *) have_unwind_getipinfo=yes ;;
11962    esac
11963  else
11964    # Darwin before version 9 does not have _Unwind_GetIPInfo.
11965
11966    case ${target} in
11967      *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
11968      *) have_unwind_getipinfo=yes ;;
11969    esac
11970
11971  fi
11972
11973  if test x$have_unwind_getipinfo = xyes; then
11974
11975$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11976
11977  fi
11978
11979else
11980  ac_save_CFFLAGS="$CFLAGS"
11981  CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
11982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
11983$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
11984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985/* end confdefs.h.  */
11986#include "unwind.h"
11987	struct _Unwind_Context *context;
11988	int ip_before_insn = 0;
11989int
11990main ()
11991{
11992return _Unwind_GetIPInfo (context, &ip_before_insn);
11993  ;
11994  return 0;
11995}
11996_ACEOF
11997if ac_fn_c_try_link "$LINENO"; then :
11998  have_unwind_getipinfo=yes
11999else
12000  have_unwind_getipinfo=no
12001fi
12002rm -f core conftest.err conftest.$ac_objext \
12003    conftest$ac_exeext conftest.$ac_ext
12004  CFLAGS="$ac_save_CFLAGS"
12005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12006$as_echo "$have_unwind_getipinfo" >&6; }
12007  if test "$have_unwind_getipinfo" = "yes"; then
12008
12009$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12010
12011  fi
12012fi
12013
12014# Enable --enable-host-shared.
12015# Check whether --enable-host-shared was given.
12016if test "${enable_host_shared+set}" = set; then :
12017  enableval=$enable_host_shared; PIC_FLAG=-fPIC
12018else
12019  PIC_FLAG=
12020fi
12021
12022
12023
12024# Test for __sync support.
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12026$as_echo_n "checking __sync extensions... " >&6; }
12027if test "${libbacktrace_cv_sys_sync+set}" = set; then :
12028  $as_echo_n "(cached) " >&6
12029else
12030  if test -n "${with_target_subdir}"; then
12031   case "${host}" in
12032   hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12033   *) libbacktrace_cv_sys_sync=yes ;;
12034   esac
12035 else
12036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037/* end confdefs.h.  */
12038int i;
12039int
12040main ()
12041{
12042__sync_bool_compare_and_swap (&i, i, i);
12043                       __sync_lock_test_and_set (&i, 1);
12044                       __sync_lock_release (&i);
12045  ;
12046  return 0;
12047}
12048_ACEOF
12049if ac_fn_c_try_link "$LINENO"; then :
12050  libbacktrace_cv_sys_sync=yes
12051else
12052  libbacktrace_cv_sys_sync=no
12053fi
12054rm -f core conftest.err conftest.$ac_objext \
12055    conftest$ac_exeext conftest.$ac_ext
12056 fi
12057fi
12058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12059$as_echo "$libbacktrace_cv_sys_sync" >&6; }
12060BACKTRACE_SUPPORTS_THREADS=0
12061if test "$libbacktrace_cv_sys_sync" = "yes"; then
12062  BACKTRACE_SUPPORTS_THREADS=1
12063
12064$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12065
12066fi
12067
12068
12069# Test for __atomic support.
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12071$as_echo_n "checking __atomic extensions... " >&6; }
12072if test "${libbacktrace_cv_sys_atomic+set}" = set; then :
12073  $as_echo_n "(cached) " >&6
12074else
12075  if test -n "${with_target_subdir}"; then
12076   libbacktrace_cv_sys_atomic=yes
12077 else
12078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079/* end confdefs.h.  */
12080int i;
12081int
12082main ()
12083{
12084__atomic_load_n (&i, __ATOMIC_ACQUIRE);
12085		       __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12086  ;
12087  return 0;
12088}
12089_ACEOF
12090if ac_fn_c_try_link "$LINENO"; then :
12091  libbacktrace_cv_sys_atomic=yes
12092else
12093  libbacktrace_cv_sys_atomic=no
12094fi
12095rm -f core conftest.err conftest.$ac_objext \
12096    conftest$ac_exeext conftest.$ac_ext
12097 fi
12098fi
12099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12100$as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12101if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12102
12103$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12104
12105fi
12106
12107# The library needs to be able to read the executable itself.  Compile
12108# a file to determine the executable format.  The awk script
12109# filetype.awk prints out the file type.
12110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12111$as_echo_n "checking output filetype... " >&6; }
12112if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
12113  $as_echo_n "(cached) " >&6
12114else
12115  filetype=
12116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117/* end confdefs.h.  */
12118int i;
12119int
12120main ()
12121{
12122int j;
12123  ;
12124  return 0;
12125}
12126_ACEOF
12127if ac_fn_c_try_compile "$LINENO"; then :
12128  filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12129else
12130  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12132as_fn_error "compiler failed
12133See \`config.log' for more details." "$LINENO" 5; }
12134fi
12135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136libbacktrace_cv_sys_filetype=$filetype
12137fi
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12139$as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12140
12141# Match the file type to decide what files to compile.
12142FORMAT_FILE=
12143backtrace_supports_data=yes
12144case "$libbacktrace_cv_sys_filetype" in
12145elf*) FORMAT_FILE="elf.lo" ;;
12146pecoff) FORMAT_FILE="pecoff.lo"
12147        backtrace_supports_data=no
12148	;;
12149xcoff*) FORMAT_FILE="xcoff.lo"
12150        backtrace_supports_data=no
12151        ;;
12152*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12153$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12154   FORMAT_FILE="unknown.lo"
12155   backtrace_supported=no
12156   ;;
12157esac
12158
12159
12160# ELF defines.
12161elfsize=
12162case "$libbacktrace_cv_sys_filetype" in
12163elf32) elfsize=32 ;;
12164elf64) elfsize=64 ;;
12165*)     elfsize=unused
12166esac
12167
12168cat >>confdefs.h <<_ACEOF
12169#define BACKTRACE_ELF_SIZE $elfsize
12170_ACEOF
12171
12172
12173# XCOFF defines.
12174xcoffsize=
12175case "$libbacktrace_cv_sys_filetype" in
12176xcoff32) xcoffsize=32 ;;
12177xcoff64) xcoffsize=64 ;;
12178*)       xcoffsize=unused
12179esac
12180
12181cat >>confdefs.h <<_ACEOF
12182#define BACKTRACE_XCOFF_SIZE $xcoffsize
12183_ACEOF
12184
12185
12186BACKTRACE_SUPPORTED=0
12187if test "$backtrace_supported" = "yes"; then
12188  BACKTRACE_SUPPORTED=1
12189fi
12190
12191
12192BACKTRACE_SUPPORTS_DATA=0
12193if test "$backtrace_supports_data" = "yes"; then
12194  BACKTRACE_SUPPORTS_DATA=1
12195fi
12196
12197
12198
12199
12200inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
12201
12202acx_cv_header_stdint=stddef.h
12203acx_cv_header_stdint_kind="(already complete)"
12204for i in stdint.h $inttype_headers; do
12205  unset ac_cv_type_uintptr_t
12206  unset ac_cv_type_uintmax_t
12207  unset ac_cv_type_int_least32_t
12208  unset ac_cv_type_int_fast32_t
12209  unset ac_cv_type_uint64_t
12210  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12211  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12212#include <$i>
12213"
12214if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12215  acx_cv_header_stdint=$i
12216else
12217  continue
12218fi
12219
12220  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12221#include <$i>
12222"
12223if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12224
12225else
12226  acx_cv_header_stdint_kind="(mostly complete)"
12227fi
12228
12229  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12230#include <$i>
12231"
12232if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12233
12234else
12235  acx_cv_header_stdint_kind="(mostly complete)"
12236fi
12237
12238  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12239#include <$i>
12240"
12241if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12242
12243else
12244  acx_cv_header_stdint_kind="(mostly complete)"
12245fi
12246
12247  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12248#include <$i>
12249"
12250if test "x$ac_cv_type_uint64_t" = x""yes; then :
12251
12252else
12253  acx_cv_header_stdint_kind="(lacks uint64_t)"
12254fi
12255
12256  break
12257done
12258if test "$acx_cv_header_stdint" = stddef.h; then
12259  acx_cv_header_stdint_kind="(lacks uintmax_t)"
12260  for i in stdint.h $inttype_headers; do
12261    unset ac_cv_type_uintptr_t
12262    unset ac_cv_type_uint32_t
12263    unset ac_cv_type_uint64_t
12264    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12265    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12266#include <$i>
12267"
12268if test "x$ac_cv_type_uint32_t" = x""yes; then :
12269  acx_cv_header_stdint=$i
12270else
12271  continue
12272fi
12273
12274    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12275#include <$i>
12276"
12277if test "x$ac_cv_type_uint64_t" = x""yes; then :
12278
12279fi
12280
12281    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12282#include <$i>
12283"
12284if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12285
12286fi
12287
12288    break
12289  done
12290fi
12291if test "$acx_cv_header_stdint" = stddef.h; then
12292  acx_cv_header_stdint_kind="(u_intXX_t style)"
12293  for i in sys/types.h $inttype_headers; do
12294    unset ac_cv_type_u_int32_t
12295    unset ac_cv_type_u_int64_t
12296    $as_echo_n "looking for u_intXX_t types in $i, " >&6
12297    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12298#include <$i>
12299"
12300if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12301  acx_cv_header_stdint=$i
12302else
12303  continue
12304fi
12305
12306    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12307#include <$i>
12308"
12309if test "x$ac_cv_type_u_int64_t" = x""yes; then :
12310
12311fi
12312
12313    break
12314  done
12315fi
12316if test "$acx_cv_header_stdint" = stddef.h; then
12317  acx_cv_header_stdint_kind="(using manual detection)"
12318fi
12319
12320test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12321test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12322test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12323test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12324test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12325
12326# ----------------- Summarize what we found so far
12327
12328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12329$as_echo_n "checking what to include in gstdint.h... " >&6; }
12330
12331case `$as_basename -- gstdint.h ||
12332$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12333	 Xgstdint.h : 'X\(//\)$' \| \
12334	 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12335$as_echo X/gstdint.h |
12336    sed '/^.*\/\([^/][^/]*\)\/*$/{
12337	    s//\1/
12338	    q
12339	  }
12340	  /^X\/\(\/\/\)$/{
12341	    s//\1/
12342	    q
12343	  }
12344	  /^X\/\(\/\).*/{
12345	    s//\1/
12346	    q
12347	  }
12348	  s/.*/./; q'` in
12349  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12350$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12351  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12352$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12353  *) ;;
12354esac
12355
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12357$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12358
12359# ----------------- done included file, check C basic types --------
12360
12361# Lacking an uintptr_t?  Test size of void *
12362case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12363  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12364# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12365# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12366# This bug is HP SR number 8606223364.
12367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12368$as_echo_n "checking size of void *... " >&6; }
12369if test "${ac_cv_sizeof_void_p+set}" = set; then :
12370  $as_echo_n "(cached) " >&6
12371else
12372  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
12373
12374else
12375  if test "$ac_cv_type_void_p" = yes; then
12376     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12378{ as_fn_set_status 77
12379as_fn_error "cannot compute sizeof (void *)
12380See \`config.log' for more details." "$LINENO" 5; }; }
12381   else
12382     ac_cv_sizeof_void_p=0
12383   fi
12384fi
12385
12386fi
12387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12388$as_echo "$ac_cv_sizeof_void_p" >&6; }
12389
12390
12391
12392cat >>confdefs.h <<_ACEOF
12393#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12394_ACEOF
12395
12396 ;;
12397esac
12398
12399# Lacking an uint64_t?  Test size of long
12400case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12401  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12402# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12403# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12404# This bug is HP SR number 8606223364.
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12406$as_echo_n "checking size of long... " >&6; }
12407if test "${ac_cv_sizeof_long+set}" = set; then :
12408  $as_echo_n "(cached) " >&6
12409else
12410  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12411
12412else
12413  if test "$ac_cv_type_long" = yes; then
12414     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12416{ as_fn_set_status 77
12417as_fn_error "cannot compute sizeof (long)
12418See \`config.log' for more details." "$LINENO" 5; }; }
12419   else
12420     ac_cv_sizeof_long=0
12421   fi
12422fi
12423
12424fi
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12426$as_echo "$ac_cv_sizeof_long" >&6; }
12427
12428
12429
12430cat >>confdefs.h <<_ACEOF
12431#define SIZEOF_LONG $ac_cv_sizeof_long
12432_ACEOF
12433
12434 ;;
12435esac
12436
12437if test $acx_cv_header_stdint = stddef.h; then
12438  # Lacking a good header?  Test size of everything and deduce all types.
12439  # The cast to long int works around a bug in the HP C Compiler
12440# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12441# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12442# This bug is HP SR number 8606223364.
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12444$as_echo_n "checking size of int... " >&6; }
12445if test "${ac_cv_sizeof_int+set}" = set; then :
12446  $as_echo_n "(cached) " >&6
12447else
12448  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12449
12450else
12451  if test "$ac_cv_type_int" = yes; then
12452     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12454{ as_fn_set_status 77
12455as_fn_error "cannot compute sizeof (int)
12456See \`config.log' for more details." "$LINENO" 5; }; }
12457   else
12458     ac_cv_sizeof_int=0
12459   fi
12460fi
12461
12462fi
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12464$as_echo "$ac_cv_sizeof_int" >&6; }
12465
12466
12467
12468cat >>confdefs.h <<_ACEOF
12469#define SIZEOF_INT $ac_cv_sizeof_int
12470_ACEOF
12471
12472
12473  # The cast to long int works around a bug in the HP C Compiler
12474# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12475# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12476# This bug is HP SR number 8606223364.
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12478$as_echo_n "checking size of short... " >&6; }
12479if test "${ac_cv_sizeof_short+set}" = set; then :
12480  $as_echo_n "(cached) " >&6
12481else
12482  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12483
12484else
12485  if test "$ac_cv_type_short" = yes; then
12486     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12488{ as_fn_set_status 77
12489as_fn_error "cannot compute sizeof (short)
12490See \`config.log' for more details." "$LINENO" 5; }; }
12491   else
12492     ac_cv_sizeof_short=0
12493   fi
12494fi
12495
12496fi
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12498$as_echo "$ac_cv_sizeof_short" >&6; }
12499
12500
12501
12502cat >>confdefs.h <<_ACEOF
12503#define SIZEOF_SHORT $ac_cv_sizeof_short
12504_ACEOF
12505
12506
12507  # The cast to long int works around a bug in the HP C Compiler
12508# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12509# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12510# This bug is HP SR number 8606223364.
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12512$as_echo_n "checking size of char... " >&6; }
12513if test "${ac_cv_sizeof_char+set}" = set; then :
12514  $as_echo_n "(cached) " >&6
12515else
12516  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12517
12518else
12519  if test "$ac_cv_type_char" = yes; then
12520     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12522{ as_fn_set_status 77
12523as_fn_error "cannot compute sizeof (char)
12524See \`config.log' for more details." "$LINENO" 5; }; }
12525   else
12526     ac_cv_sizeof_char=0
12527   fi
12528fi
12529
12530fi
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12532$as_echo "$ac_cv_sizeof_char" >&6; }
12533
12534
12535
12536cat >>confdefs.h <<_ACEOF
12537#define SIZEOF_CHAR $ac_cv_sizeof_char
12538_ACEOF
12539
12540
12541
12542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12543$as_echo_n "checking for type equivalent to int8_t... " >&6; }
12544  case "$ac_cv_sizeof_char" in
12545    1) acx_cv_type_int8_t=char ;;
12546    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12547  esac
12548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12549$as_echo "$acx_cv_type_int8_t" >&6; }
12550
12551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12552$as_echo_n "checking for type equivalent to int16_t... " >&6; }
12553  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12554    2:*) acx_cv_type_int16_t=int ;;
12555    *:2) acx_cv_type_int16_t=short ;;
12556    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12557  esac
12558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12559$as_echo "$acx_cv_type_int16_t" >&6; }
12560
12561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12562$as_echo_n "checking for type equivalent to int32_t... " >&6; }
12563  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12564    4:*) acx_cv_type_int32_t=int ;;
12565    *:4) acx_cv_type_int32_t=long ;;
12566    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12567  esac
12568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12569$as_echo "$acx_cv_type_int32_t" >&6; }
12570fi
12571
12572# These tests are here to make the output prettier
12573
12574if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12575  case "$ac_cv_sizeof_long" in
12576    8) acx_cv_type_int64_t=long ;;
12577  esac
12578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12579$as_echo_n "checking for type equivalent to int64_t... " >&6; }
12580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12581$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12582fi
12583
12584# Now we can use the above types
12585
12586if test "$ac_cv_type_uintptr_t" != yes; then
12587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12588$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12589  case $ac_cv_sizeof_void_p in
12590    2) acx_cv_type_intptr_t=int16_t ;;
12591    4) acx_cv_type_intptr_t=int32_t ;;
12592    8) acx_cv_type_intptr_t=int64_t ;;
12593    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12594  esac
12595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12596$as_echo "$acx_cv_type_intptr_t" >&6; }
12597fi
12598
12599# ----------------- done all checks, emit header -------------
12600ac_config_commands="$ac_config_commands gstdint.h"
12601
12602
12603
12604
12605for ac_header in sys/mman.h
12606do :
12607  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12608if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12609  cat >>confdefs.h <<_ACEOF
12610#define HAVE_SYS_MMAN_H 1
12611_ACEOF
12612
12613fi
12614
12615done
12616
12617if test "$ac_cv_header_sys_mman_h" = "no"; then
12618  have_mmap=no
12619else
12620  if test -n "${with_target_subdir}"; then
12621    # When built as a GCC target library, we can't do a link test.  We
12622    # simply assume that if we have mman.h, we have mmap.
12623    have_mmap=yes
12624    case "${host}" in
12625    spu-*-*|*-*-msdosdjgpp)
12626        # The SPU does not have mmap, but it has a sys/mman.h header file
12627        # containing "mmap_eaddr" and the mmap flags, confusing the test.
12628        # DJGPP also has sys/man.h, but no mmap
12629	have_mmap=no ;;
12630    esac
12631  else
12632    ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12633if test "x$ac_cv_func_mmap" = x""yes; then :
12634  have_mmap=yes
12635else
12636  have_mmap=no
12637fi
12638
12639  fi
12640fi
12641if test "$have_mmap" = "no"; then
12642  VIEW_FILE=read.lo
12643  ALLOC_FILE=alloc.lo
12644else
12645  VIEW_FILE=mmapio.lo
12646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647/* end confdefs.h.  */
12648
12649#include <sys/mman.h>
12650#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
12651  #error no MAP_ANONYMOUS
12652#endif
12653
12654_ACEOF
12655if ac_fn_c_try_cpp "$LINENO"; then :
12656  ALLOC_FILE=mmap.lo
12657else
12658  ALLOC_FILE=alloc.lo
12659fi
12660rm -f conftest.err conftest.$ac_ext
12661fi
12662
12663
12664
12665BACKTRACE_USES_MALLOC=0
12666if test "$ALLOC_FILE" = "alloc.lo"; then
12667  BACKTRACE_USES_MALLOC=1
12668fi
12669
12670
12671# Check for dl_iterate_phdr.
12672for ac_header in link.h
12673do :
12674  ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
12675if test "x$ac_cv_header_link_h" = x""yes; then :
12676  cat >>confdefs.h <<_ACEOF
12677#define HAVE_LINK_H 1
12678_ACEOF
12679
12680fi
12681
12682done
12683
12684if test "$ac_cv_header_link_h" = "no"; then
12685  have_dl_iterate_phdr=no
12686else
12687  if test -n "${with_target_subdir}"; then
12688    # When built as a GCC target library, we can't do a link test.
12689    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690/* end confdefs.h.  */
12691#include <link.h>
12692
12693_ACEOF
12694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12695  $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
12696  have_dl_iterate_phdr=yes
12697else
12698  have_dl_iterate_phdr=no
12699fi
12700rm -f conftest*
12701
12702    case "${host}" in
12703    *-*-solaris2.10*)
12704        # Avoid dl_iterate_phdr on Solaris 10, where it is in the
12705    	# header file but is only in -ldl.
12706	have_dl_iterate_phdr=no ;;
12707    esac
12708  else
12709    ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
12710if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
12711  have_dl_iterate_phdr=yes
12712else
12713  have_dl_iterate_phdr=no
12714fi
12715
12716  fi
12717fi
12718if test "$have_dl_iterate_phdr" = "yes"; then
12719
12720$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
12721
12722fi
12723
12724# Check for loadquery.
12725for ac_header in sys/ldr.h
12726do :
12727  ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
12728if test "x$ac_cv_header_sys_ldr_h" = x""yes; then :
12729  cat >>confdefs.h <<_ACEOF
12730#define HAVE_SYS_LDR_H 1
12731_ACEOF
12732
12733fi
12734
12735done
12736
12737if test "$ac_cv_header_sys_ldr_h" = "no"; then
12738  have_loadquery=no
12739else
12740  if test -n "${with_target_subdir}"; then
12741    # When built as a GCC target library, we can't do a link test.
12742    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743/* end confdefs.h.  */
12744#include <sys/ldr.h>
12745
12746_ACEOF
12747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12748  $EGREP "loadquery" >/dev/null 2>&1; then :
12749  have_loadquery=yes
12750else
12751  have_loadquery=no
12752fi
12753rm -f conftest*
12754
12755  else
12756    ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
12757if test "x$ac_cv_func_loadquery" = x""yes; then :
12758  have_loadquery=yes
12759else
12760  have_loadquery=no
12761fi
12762
12763  fi
12764fi
12765if test "$have_loadquery" = "yes"; then
12766
12767$as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
12768
12769fi
12770
12771# Check for the fcntl function.
12772if test -n "${with_target_subdir}"; then
12773   case "${host}" in
12774   *-*-mingw*) have_fcntl=no ;;
12775   spu-*-*) have_fcntl=no ;;
12776   *) have_fcntl=yes ;;
12777   esac
12778else
12779  ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
12780if test "x$ac_cv_func_fcntl" = x""yes; then :
12781  have_fcntl=yes
12782else
12783  have_fcntl=no
12784fi
12785
12786fi
12787if test "$have_fcntl" = "yes"; then
12788
12789$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
12790
12791fi
12792
12793ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
12794if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
12795  ac_have_decl=1
12796else
12797  ac_have_decl=0
12798fi
12799
12800cat >>confdefs.h <<_ACEOF
12801#define HAVE_DECL_STRNLEN $ac_have_decl
12802_ACEOF
12803
12804for ac_func in lstat readlink
12805do :
12806  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12807ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12808eval as_val=\$$as_ac_var
12809   if test "x$as_val" = x""yes; then :
12810  cat >>confdefs.h <<_ACEOF
12811#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12812_ACEOF
12813
12814fi
12815done
12816
12817
12818# Check for getexecname function.
12819if test -n "${with_target_subdir}"; then
12820   case "${host}" in
12821   *-*-solaris2*) have_getexecname=yes ;;
12822   *) have_getexecname=no ;;
12823   esac
12824else
12825  ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
12826if test "x$ac_cv_func_getexecname" = x""yes; then :
12827  have_getexecname=yes
12828else
12829  have_getexecname=no
12830fi
12831
12832fi
12833if test "$have_getexecname" = "yes"; then
12834
12835$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
12836
12837fi
12838
12839# Check for the clock_gettime function.
12840for ac_func in clock_gettime
12841do :
12842  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12843if test "x$ac_cv_func_clock_gettime" = x""yes; then :
12844  cat >>confdefs.h <<_ACEOF
12845#define HAVE_CLOCK_GETTIME 1
12846_ACEOF
12847
12848fi
12849done
12850
12851clock_gettime_link=
12852# At least for glibc, clock_gettime is in librt.  But don't
12853# pull that in if it still doesn't give us the function we want.  This
12854# test is copied from libgomp, and modified to not link in -lrt as
12855# we're using this for test timing only.
12856if test "$ac_cv_func_clock_gettime" = no; then
12857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12858$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12859if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
12860  $as_echo_n "(cached) " >&6
12861else
12862  ac_check_lib_save_LIBS=$LIBS
12863LIBS="-lrt  $LIBS"
12864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865/* end confdefs.h.  */
12866
12867/* Override any GCC internal prototype to avoid an error.
12868   Use char because int might match the return type of a GCC
12869   builtin and then its argument prototype would still apply.  */
12870#ifdef __cplusplus
12871extern "C"
12872#endif
12873char clock_gettime ();
12874int
12875main ()
12876{
12877return clock_gettime ();
12878  ;
12879  return 0;
12880}
12881_ACEOF
12882if ac_fn_c_try_link "$LINENO"; then :
12883  ac_cv_lib_rt_clock_gettime=yes
12884else
12885  ac_cv_lib_rt_clock_gettime=no
12886fi
12887rm -f core conftest.err conftest.$ac_objext \
12888    conftest$ac_exeext conftest.$ac_ext
12889LIBS=$ac_check_lib_save_LIBS
12890fi
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12892$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12893if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
12894  CLOCK_GETTIME_LINK=-lrt
12895
12896$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12897
12898fi
12899
12900fi
12901
12902
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
12904$as_echo_n "checking whether -pthread is supported... " >&6; }
12905if test "${libgo_cv_lib_pthread+set}" = set; then :
12906  $as_echo_n "(cached) " >&6
12907else
12908  CFLAGS_hold=$CFLAGS
12909CFLAGS="$CFLAGS -pthread"
12910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911/* end confdefs.h.  */
12912int i;
12913_ACEOF
12914if ac_fn_c_try_compile "$LINENO"; then :
12915  libgo_cv_lib_pthread=yes
12916else
12917  libgo_cv_lib_pthread=no
12918fi
12919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920CFLAGS=$CFLAGS_hold
12921fi
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
12923$as_echo "$libgo_cv_lib_pthread" >&6; }
12924PTHREAD_CFLAGS=
12925if test "$libgo_cv_lib_pthread" = yes; then
12926  PTHREAD_CFLAGS=-pthread
12927fi
12928
12929
12930 if test "$libgo_cv_lib_pthread" = yes; then
12931  HAVE_PTHREAD_TRUE=
12932  HAVE_PTHREAD_FALSE='#'
12933else
12934  HAVE_PTHREAD_TRUE='#'
12935  HAVE_PTHREAD_FALSE=
12936fi
12937
12938
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
12940$as_echo_n "checking for compress in -lz... " >&6; }
12941if test "${ac_cv_lib_z_compress+set}" = set; then :
12942  $as_echo_n "(cached) " >&6
12943else
12944  ac_check_lib_save_LIBS=$LIBS
12945LIBS="-lz  $LIBS"
12946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947/* end confdefs.h.  */
12948
12949/* Override any GCC internal prototype to avoid an error.
12950   Use char because int might match the return type of a GCC
12951   builtin and then its argument prototype would still apply.  */
12952#ifdef __cplusplus
12953extern "C"
12954#endif
12955char compress ();
12956int
12957main ()
12958{
12959return compress ();
12960  ;
12961  return 0;
12962}
12963_ACEOF
12964if ac_fn_c_try_link "$LINENO"; then :
12965  ac_cv_lib_z_compress=yes
12966else
12967  ac_cv_lib_z_compress=no
12968fi
12969rm -f core conftest.err conftest.$ac_objext \
12970    conftest$ac_exeext conftest.$ac_ext
12971LIBS=$ac_check_lib_save_LIBS
12972fi
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
12974$as_echo "$ac_cv_lib_z_compress" >&6; }
12975if test "x$ac_cv_lib_z_compress" = x""yes; then :
12976  cat >>confdefs.h <<_ACEOF
12977#define HAVE_LIBZ 1
12978_ACEOF
12979
12980  LIBS="-lz $LIBS"
12981
12982fi
12983
12984if test $ac_cv_lib_z_compress = "yes"; then
12985
12986$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12987
12988fi
12989 if test "$ac_cv_lib_z_compress" = yes; then
12990  HAVE_ZLIB_TRUE=
12991  HAVE_ZLIB_FALSE='#'
12992else
12993  HAVE_ZLIB_TRUE='#'
12994  HAVE_ZLIB_FALSE=
12995fi
12996
12997
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
12999$as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
13000if test "${libgo_cv_ld_compress+set}" = set; then :
13001  $as_echo_n "(cached) " >&6
13002else
13003  LDFLAGS_hold=$LDFLAGS
13004LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006/* end confdefs.h.  */
13007
13008int
13009main ()
13010{
13011
13012  ;
13013  return 0;
13014}
13015_ACEOF
13016if ac_fn_c_try_link "$LINENO"; then :
13017  libgo_cv_ld_compress=yes
13018else
13019  libgo_cv_ld_compress=no
13020fi
13021rm -f core conftest.err conftest.$ac_objext \
13022    conftest$ac_exeext conftest.$ac_ext
13023LDFLAGS=$LDFLAGS_hold
13024fi
13025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13026$as_echo "$libgo_cv_ld_compress" >&6; }
13027 if test "$libgo_cv_ld_compress" = yes; then
13028  HAVE_COMPRESSED_DEBUG_TRUE=
13029  HAVE_COMPRESSED_DEBUG_FALSE='#'
13030else
13031  HAVE_COMPRESSED_DEBUG_TRUE='#'
13032  HAVE_COMPRESSED_DEBUG_FALSE=
13033fi
13034
13035
13036
13037# Extract the first word of "objcopy", so it can be a program name with args.
13038set dummy objcopy; ac_word=$2
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040$as_echo_n "checking for $ac_word... " >&6; }
13041if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
13042  $as_echo_n "(cached) " >&6
13043else
13044  if test -n "$OBJCOPY"; then
13045  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13046else
13047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048for as_dir in $PATH
13049do
13050  IFS=$as_save_IFS
13051  test -z "$as_dir" && as_dir=.
13052    for ac_exec_ext in '' $ac_executable_extensions; do
13053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054    ac_cv_prog_OBJCOPY="objcopy"
13055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056    break 2
13057  fi
13058done
13059  done
13060IFS=$as_save_IFS
13061
13062fi
13063fi
13064OBJCOPY=$ac_cv_prog_OBJCOPY
13065if test -n "$OBJCOPY"; then
13066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13067$as_echo "$OBJCOPY" >&6; }
13068else
13069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071fi
13072
13073
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
13075$as_echo_n "checking whether objcopy supports debuglink... " >&6; }
13076if test "${libbacktrace_cv_objcopy_debuglink+set}" = set; then :
13077  $as_echo_n "(cached) " >&6
13078else
13079  if test -n "${with_target_subdir}"; then
13080  libbacktrace_cv_objcopy_debuglink=no
13081elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
13082  rm -f /tmp/ls$$
13083  libbacktrace_cv_objcopy_debuglink=yes
13084else
13085  libbacktrace_cv_objcopy_debuglink=no
13086fi
13087fi
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
13089$as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
13090 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
13091  HAVE_OBJCOPY_DEBUGLINK_TRUE=
13092  HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
13093else
13094  HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
13095  HAVE_OBJCOPY_DEBUGLINK_FALSE=
13096fi
13097
13098
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
13100$as_echo_n "checking whether tests can run... " >&6; }
13101if test "${libbacktrace_cv_sys_native+set}" = set; then :
13102  $as_echo_n "(cached) " >&6
13103else
13104  if test "$cross_compiling" = yes; then :
13105  libbacktrace_cv_sys_native=no
13106else
13107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108/* end confdefs.h.  */
13109
13110int
13111main ()
13112{
13113return 0;
13114  ;
13115  return 0;
13116}
13117_ACEOF
13118if ac_fn_c_try_run "$LINENO"; then :
13119  libbacktrace_cv_sys_native=yes
13120else
13121  libbacktrace_cv_sys_native=no
13122fi
13123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13124  conftest.$ac_objext conftest.beam conftest.$ac_ext
13125fi
13126
13127fi
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
13129$as_echo "$libbacktrace_cv_sys_native" >&6; }
13130 if test "$libbacktrace_cv_sys_native" = "yes"; then
13131  NATIVE_TRUE=
13132  NATIVE_FALSE='#'
13133else
13134  NATIVE_TRUE='#'
13135  NATIVE_FALSE=
13136fi
13137
13138
13139if test "${multilib}" = "yes"; then
13140  multilib_arg="--enable-multilib"
13141else
13142  multilib_arg=
13143fi
13144
13145ac_config_files="$ac_config_files Makefile backtrace-supported.h"
13146
13147
13148# We need multilib support, but only if configuring for the target.
13149ac_config_commands="$ac_config_commands default"
13150
13151
13152cat >confcache <<\_ACEOF
13153# This file is a shell script that caches the results of configure
13154# tests run on this system so they can be shared between configure
13155# scripts and configure runs, see configure's option --config-cache.
13156# It is not useful on other systems.  If it contains results you don't
13157# want to keep, you may remove or edit it.
13158#
13159# config.status only pays attention to the cache file if you give it
13160# the --recheck option to rerun configure.
13161#
13162# `ac_cv_env_foo' variables (set or unset) will be overridden when
13163# loading this file, other *unset* `ac_cv_foo' will be assigned the
13164# following values.
13165
13166_ACEOF
13167
13168# The following way of writing the cache mishandles newlines in values,
13169# but we know of no workaround that is simple, portable, and efficient.
13170# So, we kill variables containing newlines.
13171# Ultrix sh set writes to stderr and can't be redirected directly,
13172# and sets the high bit in the cache file unless we assign to the vars.
13173(
13174  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13175    eval ac_val=\$$ac_var
13176    case $ac_val in #(
13177    *${as_nl}*)
13178      case $ac_var in #(
13179      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13180$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13181      esac
13182      case $ac_var in #(
13183      _ | IFS | as_nl) ;; #(
13184      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13185      *) { eval $ac_var=; unset $ac_var;} ;;
13186      esac ;;
13187    esac
13188  done
13189
13190  (set) 2>&1 |
13191    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13192    *${as_nl}ac_space=\ *)
13193      # `set' does not quote correctly, so add quotes: double-quote
13194      # substitution turns \\\\ into \\, and sed turns \\ into \.
13195      sed -n \
13196	"s/'/'\\\\''/g;
13197	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13198      ;; #(
13199    *)
13200      # `set' quotes correctly as required by POSIX, so do not add quotes.
13201      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13202      ;;
13203    esac |
13204    sort
13205) |
13206  sed '
13207     /^ac_cv_env_/b end
13208     t clear
13209     :clear
13210     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13211     t end
13212     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13213     :end' >>confcache
13214if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13215  if test -w "$cache_file"; then
13216    test "x$cache_file" != "x/dev/null" &&
13217      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13218$as_echo "$as_me: updating cache $cache_file" >&6;}
13219    cat confcache >$cache_file
13220  else
13221    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13222$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13223  fi
13224fi
13225rm -f confcache
13226
13227test "x$prefix" = xNONE && prefix=$ac_default_prefix
13228# Let make expand exec_prefix.
13229test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13230
13231DEFS=-DHAVE_CONFIG_H
13232
13233ac_libobjs=
13234ac_ltlibobjs=
13235for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13236  # 1. Remove the extension, and $U if already installed.
13237  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13238  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13239  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13240  #    will be set to the directory where LIBOBJS objects are built.
13241  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13242  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13243done
13244LIBOBJS=$ac_libobjs
13245
13246LTLIBOBJS=$ac_ltlibobjs
13247
13248
13249 if test -n "$EXEEXT"; then
13250  am__EXEEXT_TRUE=
13251  am__EXEEXT_FALSE='#'
13252else
13253  am__EXEEXT_TRUE='#'
13254  am__EXEEXT_FALSE=
13255fi
13256
13257if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13258  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13259Usually this means the macro was only invoked conditionally." "$LINENO" 5
13260fi
13261if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
13262  as_fn_error "conditional \"HAVE_PTHREAD\" was never defined.
13263Usually this means the macro was only invoked conditionally." "$LINENO" 5
13264fi
13265if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
13266  as_fn_error "conditional \"HAVE_ZLIB\" was never defined.
13267Usually this means the macro was only invoked conditionally." "$LINENO" 5
13268fi
13269if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
13270  as_fn_error "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
13271Usually this means the macro was only invoked conditionally." "$LINENO" 5
13272fi
13273if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
13274  as_fn_error "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
13275Usually this means the macro was only invoked conditionally." "$LINENO" 5
13276fi
13277if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
13278  as_fn_error "conditional \"NATIVE\" was never defined.
13279Usually this means the macro was only invoked conditionally." "$LINENO" 5
13280fi
13281
13282: ${CONFIG_STATUS=./config.status}
13283ac_write_fail=0
13284ac_clean_files_save=$ac_clean_files
13285ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13287$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13288as_write_fail=0
13289cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13290#! $SHELL
13291# Generated by $as_me.
13292# Run this file to recreate the current configuration.
13293# Compiler output produced by configure, useful for debugging
13294# configure, is in config.log if it exists.
13295
13296debug=false
13297ac_cs_recheck=false
13298ac_cs_silent=false
13299
13300SHELL=\${CONFIG_SHELL-$SHELL}
13301export SHELL
13302_ASEOF
13303cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13304## -------------------- ##
13305## M4sh Initialization. ##
13306## -------------------- ##
13307
13308# Be more Bourne compatible
13309DUALCASE=1; export DUALCASE # for MKS sh
13310if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13311  emulate sh
13312  NULLCMD=:
13313  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13314  # is contrary to our usage.  Disable this feature.
13315  alias -g '${1+"$@"}'='"$@"'
13316  setopt NO_GLOB_SUBST
13317else
13318  case `(set -o) 2>/dev/null` in #(
13319  *posix*) :
13320    set -o posix ;; #(
13321  *) :
13322     ;;
13323esac
13324fi
13325
13326
13327as_nl='
13328'
13329export as_nl
13330# Printing a long string crashes Solaris 7 /usr/bin/printf.
13331as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13332as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13333as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13334# Prefer a ksh shell builtin over an external printf program on Solaris,
13335# but without wasting forks for bash or zsh.
13336if test -z "$BASH_VERSION$ZSH_VERSION" \
13337    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13338  as_echo='print -r --'
13339  as_echo_n='print -rn --'
13340elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13341  as_echo='printf %s\n'
13342  as_echo_n='printf %s'
13343else
13344  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13345    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13346    as_echo_n='/usr/ucb/echo -n'
13347  else
13348    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13349    as_echo_n_body='eval
13350      arg=$1;
13351      case $arg in #(
13352      *"$as_nl"*)
13353	expr "X$arg" : "X\\(.*\\)$as_nl";
13354	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13355      esac;
13356      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13357    '
13358    export as_echo_n_body
13359    as_echo_n='sh -c $as_echo_n_body as_echo'
13360  fi
13361  export as_echo_body
13362  as_echo='sh -c $as_echo_body as_echo'
13363fi
13364
13365# The user is always right.
13366if test "${PATH_SEPARATOR+set}" != set; then
13367  PATH_SEPARATOR=:
13368  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13369    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13370      PATH_SEPARATOR=';'
13371  }
13372fi
13373
13374
13375# IFS
13376# We need space, tab and new line, in precisely that order.  Quoting is
13377# there to prevent editors from complaining about space-tab.
13378# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13379# splitting by setting IFS to empty value.)
13380IFS=" ""	$as_nl"
13381
13382# Find who we are.  Look in the path if we contain no directory separator.
13383case $0 in #((
13384  *[\\/]* ) as_myself=$0 ;;
13385  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386for as_dir in $PATH
13387do
13388  IFS=$as_save_IFS
13389  test -z "$as_dir" && as_dir=.
13390    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13391  done
13392IFS=$as_save_IFS
13393
13394     ;;
13395esac
13396# We did not find ourselves, most probably we were run as `sh COMMAND'
13397# in which case we are not to be found in the path.
13398if test "x$as_myself" = x; then
13399  as_myself=$0
13400fi
13401if test ! -f "$as_myself"; then
13402  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13403  exit 1
13404fi
13405
13406# Unset variables that we do not need and which cause bugs (e.g. in
13407# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13408# suppresses any "Segmentation fault" message there.  '((' could
13409# trigger a bug in pdksh 5.2.14.
13410for as_var in BASH_ENV ENV MAIL MAILPATH
13411do eval test x\${$as_var+set} = xset \
13412  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13413done
13414PS1='$ '
13415PS2='> '
13416PS4='+ '
13417
13418# NLS nuisances.
13419LC_ALL=C
13420export LC_ALL
13421LANGUAGE=C
13422export LANGUAGE
13423
13424# CDPATH.
13425(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13426
13427
13428# as_fn_error ERROR [LINENO LOG_FD]
13429# ---------------------------------
13430# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13431# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13432# script with status $?, using 1 if that was 0.
13433as_fn_error ()
13434{
13435  as_status=$?; test $as_status -eq 0 && as_status=1
13436  if test "$3"; then
13437    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13438    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13439  fi
13440  $as_echo "$as_me: error: $1" >&2
13441  as_fn_exit $as_status
13442} # as_fn_error
13443
13444
13445# as_fn_set_status STATUS
13446# -----------------------
13447# Set $? to STATUS, without forking.
13448as_fn_set_status ()
13449{
13450  return $1
13451} # as_fn_set_status
13452
13453# as_fn_exit STATUS
13454# -----------------
13455# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13456as_fn_exit ()
13457{
13458  set +e
13459  as_fn_set_status $1
13460  exit $1
13461} # as_fn_exit
13462
13463# as_fn_unset VAR
13464# ---------------
13465# Portably unset VAR.
13466as_fn_unset ()
13467{
13468  { eval $1=; unset $1;}
13469}
13470as_unset=as_fn_unset
13471# as_fn_append VAR VALUE
13472# ----------------------
13473# Append the text in VALUE to the end of the definition contained in VAR. Take
13474# advantage of any shell optimizations that allow amortized linear growth over
13475# repeated appends, instead of the typical quadratic growth present in naive
13476# implementations.
13477if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13478  eval 'as_fn_append ()
13479  {
13480    eval $1+=\$2
13481  }'
13482else
13483  as_fn_append ()
13484  {
13485    eval $1=\$$1\$2
13486  }
13487fi # as_fn_append
13488
13489# as_fn_arith ARG...
13490# ------------------
13491# Perform arithmetic evaluation on the ARGs, and store the result in the
13492# global $as_val. Take advantage of shells that can avoid forks. The arguments
13493# must be portable across $(()) and expr.
13494if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13495  eval 'as_fn_arith ()
13496  {
13497    as_val=$(( $* ))
13498  }'
13499else
13500  as_fn_arith ()
13501  {
13502    as_val=`expr "$@" || test $? -eq 1`
13503  }
13504fi # as_fn_arith
13505
13506
13507if expr a : '\(a\)' >/dev/null 2>&1 &&
13508   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13509  as_expr=expr
13510else
13511  as_expr=false
13512fi
13513
13514if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13515  as_basename=basename
13516else
13517  as_basename=false
13518fi
13519
13520if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13521  as_dirname=dirname
13522else
13523  as_dirname=false
13524fi
13525
13526as_me=`$as_basename -- "$0" ||
13527$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13528	 X"$0" : 'X\(//\)$' \| \
13529	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13530$as_echo X/"$0" |
13531    sed '/^.*\/\([^/][^/]*\)\/*$/{
13532	    s//\1/
13533	    q
13534	  }
13535	  /^X\/\(\/\/\)$/{
13536	    s//\1/
13537	    q
13538	  }
13539	  /^X\/\(\/\).*/{
13540	    s//\1/
13541	    q
13542	  }
13543	  s/.*/./; q'`
13544
13545# Avoid depending upon Character Ranges.
13546as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13547as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13548as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13549as_cr_digits='0123456789'
13550as_cr_alnum=$as_cr_Letters$as_cr_digits
13551
13552ECHO_C= ECHO_N= ECHO_T=
13553case `echo -n x` in #(((((
13554-n*)
13555  case `echo 'xy\c'` in
13556  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13557  xy)  ECHO_C='\c';;
13558  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13559       ECHO_T='	';;
13560  esac;;
13561*)
13562  ECHO_N='-n';;
13563esac
13564
13565rm -f conf$$ conf$$.exe conf$$.file
13566if test -d conf$$.dir; then
13567  rm -f conf$$.dir/conf$$.file
13568else
13569  rm -f conf$$.dir
13570  mkdir conf$$.dir 2>/dev/null
13571fi
13572if (echo >conf$$.file) 2>/dev/null; then
13573  if ln -s conf$$.file conf$$ 2>/dev/null; then
13574    as_ln_s='ln -s'
13575    # ... but there are two gotchas:
13576    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13577    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13578    # In both cases, we have to default to `cp -p'.
13579    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13580      as_ln_s='cp -p'
13581  elif ln conf$$.file conf$$ 2>/dev/null; then
13582    as_ln_s=ln
13583  else
13584    as_ln_s='cp -p'
13585  fi
13586else
13587  as_ln_s='cp -p'
13588fi
13589rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13590rmdir conf$$.dir 2>/dev/null
13591
13592
13593# as_fn_mkdir_p
13594# -------------
13595# Create "$as_dir" as a directory, including parents if necessary.
13596as_fn_mkdir_p ()
13597{
13598
13599  case $as_dir in #(
13600  -*) as_dir=./$as_dir;;
13601  esac
13602  test -d "$as_dir" || eval $as_mkdir_p || {
13603    as_dirs=
13604    while :; do
13605      case $as_dir in #(
13606      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13607      *) as_qdir=$as_dir;;
13608      esac
13609      as_dirs="'$as_qdir' $as_dirs"
13610      as_dir=`$as_dirname -- "$as_dir" ||
13611$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13612	 X"$as_dir" : 'X\(//\)[^/]' \| \
13613	 X"$as_dir" : 'X\(//\)$' \| \
13614	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13615$as_echo X"$as_dir" |
13616    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13617	    s//\1/
13618	    q
13619	  }
13620	  /^X\(\/\/\)[^/].*/{
13621	    s//\1/
13622	    q
13623	  }
13624	  /^X\(\/\/\)$/{
13625	    s//\1/
13626	    q
13627	  }
13628	  /^X\(\/\).*/{
13629	    s//\1/
13630	    q
13631	  }
13632	  s/.*/./; q'`
13633      test -d "$as_dir" && break
13634    done
13635    test -z "$as_dirs" || eval "mkdir $as_dirs"
13636  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13637
13638
13639} # as_fn_mkdir_p
13640if mkdir -p . 2>/dev/null; then
13641  as_mkdir_p='mkdir -p "$as_dir"'
13642else
13643  test -d ./-p && rmdir ./-p
13644  as_mkdir_p=false
13645fi
13646
13647if test -x / >/dev/null 2>&1; then
13648  as_test_x='test -x'
13649else
13650  if ls -dL / >/dev/null 2>&1; then
13651    as_ls_L_option=L
13652  else
13653    as_ls_L_option=
13654  fi
13655  as_test_x='
13656    eval sh -c '\''
13657      if test -d "$1"; then
13658	test -d "$1/.";
13659      else
13660	case $1 in #(
13661	-*)set "./$1";;
13662	esac;
13663	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13664	???[sx]*):;;*)false;;esac;fi
13665    '\'' sh
13666  '
13667fi
13668as_executable_p=$as_test_x
13669
13670# Sed expression to map a string onto a valid CPP name.
13671as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13672
13673# Sed expression to map a string onto a valid variable name.
13674as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13675
13676
13677exec 6>&1
13678## ----------------------------------- ##
13679## Main body of $CONFIG_STATUS script. ##
13680## ----------------------------------- ##
13681_ASEOF
13682test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13683
13684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13685# Save the log message, to keep $0 and so on meaningful, and to
13686# report actual input values of CONFIG_FILES etc. instead of their
13687# values after options handling.
13688ac_log="
13689This file was extended by package-unused $as_me version-unused, which was
13690generated by GNU Autoconf 2.64.  Invocation command line was
13691
13692  CONFIG_FILES    = $CONFIG_FILES
13693  CONFIG_HEADERS  = $CONFIG_HEADERS
13694  CONFIG_LINKS    = $CONFIG_LINKS
13695  CONFIG_COMMANDS = $CONFIG_COMMANDS
13696  $ $0 $@
13697
13698on `(hostname || uname -n) 2>/dev/null | sed 1q`
13699"
13700
13701_ACEOF
13702
13703case $ac_config_files in *"
13704"*) set x $ac_config_files; shift; ac_config_files=$*;;
13705esac
13706
13707case $ac_config_headers in *"
13708"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13709esac
13710
13711
13712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13713# Files that config.status was made for.
13714config_files="$ac_config_files"
13715config_headers="$ac_config_headers"
13716config_commands="$ac_config_commands"
13717
13718_ACEOF
13719
13720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13721ac_cs_usage="\
13722\`$as_me' instantiates files and other configuration actions
13723from templates according to the current configuration.  Unless the files
13724and actions are specified as TAGs, all are instantiated by default.
13725
13726Usage: $0 [OPTION]... [TAG]...
13727
13728  -h, --help       print this help, then exit
13729  -V, --version    print version number and configuration settings, then exit
13730  -q, --quiet, --silent
13731                   do not print progress messages
13732  -d, --debug      don't remove temporary files
13733      --recheck    update $as_me by reconfiguring in the same conditions
13734      --file=FILE[:TEMPLATE]
13735                   instantiate the configuration file FILE
13736      --header=FILE[:TEMPLATE]
13737                   instantiate the configuration header FILE
13738
13739Configuration files:
13740$config_files
13741
13742Configuration headers:
13743$config_headers
13744
13745Configuration commands:
13746$config_commands
13747
13748Report bugs to the package provider."
13749
13750_ACEOF
13751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13752ac_cs_version="\\
13753package-unused config.status version-unused
13754configured by $0, generated by GNU Autoconf 2.64,
13755  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13756
13757Copyright (C) 2009 Free Software Foundation, Inc.
13758This config.status script is free software; the Free Software Foundation
13759gives unlimited permission to copy, distribute and modify it."
13760
13761ac_pwd='$ac_pwd'
13762srcdir='$srcdir'
13763INSTALL='$INSTALL'
13764MKDIR_P='$MKDIR_P'
13765AWK='$AWK'
13766test -n "\$AWK" || AWK=awk
13767_ACEOF
13768
13769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13770# The default lists apply if the user does not specify any file.
13771ac_need_defaults=:
13772while test $# != 0
13773do
13774  case $1 in
13775  --*=*)
13776    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13777    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13778    ac_shift=:
13779    ;;
13780  *)
13781    ac_option=$1
13782    ac_optarg=$2
13783    ac_shift=shift
13784    ;;
13785  esac
13786
13787  case $ac_option in
13788  # Handling of the options.
13789  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13790    ac_cs_recheck=: ;;
13791  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13792    $as_echo "$ac_cs_version"; exit ;;
13793  --debug | --debu | --deb | --de | --d | -d )
13794    debug=: ;;
13795  --file | --fil | --fi | --f )
13796    $ac_shift
13797    case $ac_optarg in
13798    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13799    esac
13800    as_fn_append CONFIG_FILES " '$ac_optarg'"
13801    ac_need_defaults=false;;
13802  --header | --heade | --head | --hea )
13803    $ac_shift
13804    case $ac_optarg in
13805    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13806    esac
13807    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13808    ac_need_defaults=false;;
13809  --he | --h)
13810    # Conflict between --help and --header
13811    as_fn_error "ambiguous option: \`$1'
13812Try \`$0 --help' for more information.";;
13813  --help | --hel | -h )
13814    $as_echo "$ac_cs_usage"; exit ;;
13815  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13816  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13817    ac_cs_silent=: ;;
13818
13819  # This is an error.
13820  -*) as_fn_error "unrecognized option: \`$1'
13821Try \`$0 --help' for more information." ;;
13822
13823  *) as_fn_append ac_config_targets " $1"
13824     ac_need_defaults=false ;;
13825
13826  esac
13827  shift
13828done
13829
13830ac_configure_extra_args=
13831
13832if $ac_cs_silent; then
13833  exec 6>/dev/null
13834  ac_configure_extra_args="$ac_configure_extra_args --silent"
13835fi
13836
13837_ACEOF
13838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13839if \$ac_cs_recheck; then
13840  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13841  shift
13842  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13843  CONFIG_SHELL='$SHELL'
13844  export CONFIG_SHELL
13845  exec "\$@"
13846fi
13847
13848_ACEOF
13849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13850exec 5>>config.log
13851{
13852  echo
13853  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13854## Running $as_me. ##
13855_ASBOX
13856  $as_echo "$ac_log"
13857} >&5
13858
13859_ACEOF
13860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13861#
13862# INIT-COMMANDS
13863#
13864
13865srcdir="$srcdir"
13866host="$host"
13867target="$target"
13868with_multisubdir="$with_multisubdir"
13869with_multisrctop="$with_multisrctop"
13870with_target_subdir="$with_target_subdir"
13871ac_configure_args="${multilib_arg} ${ac_configure_args}"
13872multi_basedir="$multi_basedir"
13873CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13874CC="$CC"
13875CXX="$CXX"
13876GFORTRAN="$GFORTRAN"
13877
13878
13879# The HP-UX ksh and POSIX shell print the target directory to stdout
13880# if CDPATH is set.
13881(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13882
13883sed_quote_subst='$sed_quote_subst'
13884double_quote_subst='$double_quote_subst'
13885delay_variable_subst='$delay_variable_subst'
13886macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13887macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13888enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13889enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13890pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13891enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13892SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13893ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13894host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13895host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13896host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13897build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13898build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13899build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13900SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13901Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13902GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13903EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13904FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13905LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13906NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13907LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13908max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13909ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13910exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13911lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13912lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13913lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13914reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13915reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13916OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13917deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13918file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13919AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13920AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13921STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13922RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13923old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13924old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13925old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13926lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13927CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13928CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13929compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13930GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13931lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13932lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13933lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13934lt_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"`'
13935objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13936MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13937lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13938lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13939lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13940lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13941lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13942need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13943DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13944NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13945LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13946OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13947OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13948libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13949shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13950extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13951archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13952enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13953export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13954whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13955compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13956old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13957old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13958archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13959archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13960module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13961module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13962with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13963allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13964no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13965hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13966hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13967hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13968hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13969hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13970hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13971hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13972hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13973inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13974link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13975fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13976always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13977export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13978exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13979include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13980prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13981file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13982variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13983need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13984need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13985version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13986runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13987shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13988shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13989libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13990library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13991soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13992install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13993postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13994postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13995finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13996finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13997hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13998sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13999sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14000hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14001enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14002enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14003enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14004old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14005striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14006
14007LTCC='$LTCC'
14008LTCFLAGS='$LTCFLAGS'
14009compiler='$compiler_DEFAULT'
14010
14011# A function that is used when there is no print builtin or printf.
14012func_fallback_echo ()
14013{
14014  eval 'cat <<_LTECHO_EOF
14015\$1
14016_LTECHO_EOF'
14017}
14018
14019# Quote evaled strings.
14020for var in SHELL \
14021ECHO \
14022SED \
14023GREP \
14024EGREP \
14025FGREP \
14026LD \
14027NM \
14028LN_S \
14029lt_SP2NL \
14030lt_NL2SP \
14031reload_flag \
14032OBJDUMP \
14033deplibs_check_method \
14034file_magic_cmd \
14035AR \
14036AR_FLAGS \
14037STRIP \
14038RANLIB \
14039CC \
14040CFLAGS \
14041compiler \
14042lt_cv_sys_global_symbol_pipe \
14043lt_cv_sys_global_symbol_to_cdecl \
14044lt_cv_sys_global_symbol_to_c_name_address \
14045lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14046lt_prog_compiler_no_builtin_flag \
14047lt_prog_compiler_wl \
14048lt_prog_compiler_pic \
14049lt_prog_compiler_static \
14050lt_cv_prog_compiler_c_o \
14051need_locks \
14052DSYMUTIL \
14053NMEDIT \
14054LIPO \
14055OTOOL \
14056OTOOL64 \
14057shrext_cmds \
14058export_dynamic_flag_spec \
14059whole_archive_flag_spec \
14060compiler_needs_object \
14061with_gnu_ld \
14062allow_undefined_flag \
14063no_undefined_flag \
14064hardcode_libdir_flag_spec \
14065hardcode_libdir_flag_spec_ld \
14066hardcode_libdir_separator \
14067fix_srcfile_path \
14068exclude_expsyms \
14069include_expsyms \
14070file_list_spec \
14071variables_saved_for_relink \
14072libname_spec \
14073library_names_spec \
14074soname_spec \
14075install_override_mode \
14076finish_eval \
14077old_striplib \
14078striplib; do
14079    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14080    *[\\\\\\\`\\"\\\$]*)
14081      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14082      ;;
14083    *)
14084      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14085      ;;
14086    esac
14087done
14088
14089# Double-quote double-evaled strings.
14090for var in reload_cmds \
14091old_postinstall_cmds \
14092old_postuninstall_cmds \
14093old_archive_cmds \
14094extract_expsyms_cmds \
14095old_archive_from_new_cmds \
14096old_archive_from_expsyms_cmds \
14097archive_cmds \
14098archive_expsym_cmds \
14099module_cmds \
14100module_expsym_cmds \
14101export_symbols_cmds \
14102prelink_cmds \
14103postinstall_cmds \
14104postuninstall_cmds \
14105finish_cmds \
14106sys_lib_search_path_spec \
14107sys_lib_dlsearch_path_spec; do
14108    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14109    *[\\\\\\\`\\"\\\$]*)
14110      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14111      ;;
14112    *)
14113      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14114      ;;
14115    esac
14116done
14117
14118ac_aux_dir='$ac_aux_dir'
14119xsi_shell='$xsi_shell'
14120lt_shell_append='$lt_shell_append'
14121
14122# See if we are running on zsh, and set the options which allow our
14123# commands through without removal of \ escapes INIT.
14124if test -n "\${ZSH_VERSION+set}" ; then
14125   setopt NO_GLOB_SUBST
14126fi
14127
14128
14129    PACKAGE='$PACKAGE'
14130    VERSION='$VERSION'
14131    TIMESTAMP='$TIMESTAMP'
14132    RM='$RM'
14133    ofile='$ofile'
14134
14135
14136
14137
14138GCC="$GCC"
14139CC="$CC"
14140acx_cv_header_stdint="$acx_cv_header_stdint"
14141acx_cv_type_int8_t="$acx_cv_type_int8_t"
14142acx_cv_type_int16_t="$acx_cv_type_int16_t"
14143acx_cv_type_int32_t="$acx_cv_type_int32_t"
14144acx_cv_type_int64_t="$acx_cv_type_int64_t"
14145acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
14146ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
14147ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
14148ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
14149ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
14150ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
14151ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
14152ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
14153ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
14154
14155
14156# Variables needed in config.status (file generation) which aren't already
14157# passed by autoconf.
14158SUBDIRS="$SUBDIRS"
14159
14160
14161_ACEOF
14162
14163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14164
14165# Handling of arguments.
14166for ac_config_target in $ac_config_targets
14167do
14168  case $ac_config_target in
14169    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14170    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14171    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14172    "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
14173    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14174    "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
14175    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14176
14177  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14178  esac
14179done
14180
14181
14182# If the user did not use the arguments to specify the items to instantiate,
14183# then the envvar interface is used.  Set only those that are not.
14184# We use the long form for the default assignment because of an extremely
14185# bizarre bug on SunOS 4.1.3.
14186if $ac_need_defaults; then
14187  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14188  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14189  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14190fi
14191
14192# Have a temporary directory for convenience.  Make it in the build tree
14193# simply because there is no reason against having it here, and in addition,
14194# creating and moving files from /tmp can sometimes cause problems.
14195# Hook for its removal unless debugging.
14196# Note that there is a small window in which the directory will not be cleaned:
14197# after its creation but before its name has been assigned to `$tmp'.
14198$debug ||
14199{
14200  tmp=
14201  trap 'exit_status=$?
14202  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14203' 0
14204  trap 'as_fn_exit 1' 1 2 13 15
14205}
14206# Create a (secure) tmp directory for tmp files.
14207
14208{
14209  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14210  test -n "$tmp" && test -d "$tmp"
14211}  ||
14212{
14213  tmp=./conf$$-$RANDOM
14214  (umask 077 && mkdir "$tmp")
14215} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14216
14217# Set up the scripts for CONFIG_FILES section.
14218# No need to generate them if there are no CONFIG_FILES.
14219# This happens for instance with `./config.status config.h'.
14220if test -n "$CONFIG_FILES"; then
14221
14222
14223ac_cr=`echo X | tr X '\015'`
14224# On cygwin, bash can eat \r inside `` if the user requested igncr.
14225# But we know of no other shell where ac_cr would be empty at this
14226# point, so we can use a bashism as a fallback.
14227if test "x$ac_cr" = x; then
14228  eval ac_cr=\$\'\\r\'
14229fi
14230ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14231if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14232  ac_cs_awk_cr='\r'
14233else
14234  ac_cs_awk_cr=$ac_cr
14235fi
14236
14237echo 'BEGIN {' >"$tmp/subs1.awk" &&
14238_ACEOF
14239
14240
14241{
14242  echo "cat >conf$$subs.awk <<_ACEOF" &&
14243  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14244  echo "_ACEOF"
14245} >conf$$subs.sh ||
14246  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14247ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14248ac_delim='%!_!# '
14249for ac_last_try in false false false false false :; do
14250  . ./conf$$subs.sh ||
14251    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14252
14253  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14254  if test $ac_delim_n = $ac_delim_num; then
14255    break
14256  elif $ac_last_try; then
14257    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14258  else
14259    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14260  fi
14261done
14262rm -f conf$$subs.sh
14263
14264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14265cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14266_ACEOF
14267sed -n '
14268h
14269s/^/S["/; s/!.*/"]=/
14270p
14271g
14272s/^[^!]*!//
14273:repl
14274t repl
14275s/'"$ac_delim"'$//
14276t delim
14277:nl
14278h
14279s/\(.\{148\}\).*/\1/
14280t more1
14281s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14282p
14283n
14284b repl
14285:more1
14286s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14287p
14288g
14289s/.\{148\}//
14290t nl
14291:delim
14292h
14293s/\(.\{148\}\).*/\1/
14294t more2
14295s/["\\]/\\&/g; s/^/"/; s/$/"/
14296p
14297b
14298:more2
14299s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14300p
14301g
14302s/.\{148\}//
14303t delim
14304' <conf$$subs.awk | sed '
14305/^[^""]/{
14306  N
14307  s/\n//
14308}
14309' >>$CONFIG_STATUS || ac_write_fail=1
14310rm -f conf$$subs.awk
14311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14312_ACAWK
14313cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14314  for (key in S) S_is_set[key] = 1
14315  FS = ""
14316
14317}
14318{
14319  line = $ 0
14320  nfields = split(line, field, "@")
14321  substed = 0
14322  len = length(field[1])
14323  for (i = 2; i < nfields; i++) {
14324    key = field[i]
14325    keylen = length(key)
14326    if (S_is_set[key]) {
14327      value = S[key]
14328      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14329      len += length(value) + length(field[++i])
14330      substed = 1
14331    } else
14332      len += 1 + keylen
14333  }
14334
14335  print line
14336}
14337
14338_ACAWK
14339_ACEOF
14340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14341if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14342  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14343else
14344  cat
14345fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14346  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14347_ACEOF
14348
14349# VPATH may cause trouble with some makes, so we remove $(srcdir),
14350# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14351# trailing colons and then remove the whole line if VPATH becomes empty
14352# (actually we leave an empty line to preserve line numbers).
14353if test "x$srcdir" = x.; then
14354  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14355s/:*\$(srcdir):*/:/
14356s/:*\${srcdir}:*/:/
14357s/:*@srcdir@:*/:/
14358s/^\([^=]*=[	 ]*\):*/\1/
14359s/:*$//
14360s/^[^=]*=[	 ]*$//
14361}'
14362fi
14363
14364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14365fi # test -n "$CONFIG_FILES"
14366
14367# Set up the scripts for CONFIG_HEADERS section.
14368# No need to generate them if there are no CONFIG_HEADERS.
14369# This happens for instance with `./config.status Makefile'.
14370if test -n "$CONFIG_HEADERS"; then
14371cat >"$tmp/defines.awk" <<\_ACAWK ||
14372BEGIN {
14373_ACEOF
14374
14375# Transform confdefs.h into an awk script `defines.awk', embedded as
14376# here-document in config.status, that substitutes the proper values into
14377# config.h.in to produce config.h.
14378
14379# Create a delimiter string that does not exist in confdefs.h, to ease
14380# handling of long lines.
14381ac_delim='%!_!# '
14382for ac_last_try in false false :; do
14383  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14384  if test -z "$ac_t"; then
14385    break
14386  elif $ac_last_try; then
14387    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14388  else
14389    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14390  fi
14391done
14392
14393# For the awk script, D is an array of macro values keyed by name,
14394# likewise P contains macro parameters if any.  Preserve backslash
14395# newline sequences.
14396
14397ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14398sed -n '
14399s/.\{148\}/&'"$ac_delim"'/g
14400t rset
14401:rset
14402s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14403t def
14404d
14405:def
14406s/\\$//
14407t bsnl
14408s/["\\]/\\&/g
14409s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14410D["\1"]=" \3"/p
14411s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14412d
14413:bsnl
14414s/["\\]/\\&/g
14415s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14416D["\1"]=" \3\\\\\\n"\\/p
14417t cont
14418s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14419t cont
14420d
14421:cont
14422n
14423s/.\{148\}/&'"$ac_delim"'/g
14424t clear
14425:clear
14426s/\\$//
14427t bsnlc
14428s/["\\]/\\&/g; s/^/"/; s/$/"/p
14429d
14430:bsnlc
14431s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14432b cont
14433' <confdefs.h | sed '
14434s/'"$ac_delim"'/"\\\
14435"/g' >>$CONFIG_STATUS || ac_write_fail=1
14436
14437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14438  for (key in D) D_is_set[key] = 1
14439  FS = ""
14440}
14441/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14442  line = \$ 0
14443  split(line, arg, " ")
14444  if (arg[1] == "#") {
14445    defundef = arg[2]
14446    mac1 = arg[3]
14447  } else {
14448    defundef = substr(arg[1], 2)
14449    mac1 = arg[2]
14450  }
14451  split(mac1, mac2, "(") #)
14452  macro = mac2[1]
14453  prefix = substr(line, 1, index(line, defundef) - 1)
14454  if (D_is_set[macro]) {
14455    # Preserve the white space surrounding the "#".
14456    print prefix "define", macro P[macro] D[macro]
14457    next
14458  } else {
14459    # Replace #undef with comments.  This is necessary, for example,
14460    # in the case of _POSIX_SOURCE, which is predefined and required
14461    # on some systems where configure will not decide to define it.
14462    if (defundef == "undef") {
14463      print "/*", prefix defundef, macro, "*/"
14464      next
14465    }
14466  }
14467}
14468{ print }
14469_ACAWK
14470_ACEOF
14471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14472  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14473fi # test -n "$CONFIG_HEADERS"
14474
14475
14476eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14477shift
14478for ac_tag
14479do
14480  case $ac_tag in
14481  :[FHLC]) ac_mode=$ac_tag; continue;;
14482  esac
14483  case $ac_mode$ac_tag in
14484  :[FHL]*:*);;
14485  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14486  :[FH]-) ac_tag=-:-;;
14487  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14488  esac
14489  ac_save_IFS=$IFS
14490  IFS=:
14491  set x $ac_tag
14492  IFS=$ac_save_IFS
14493  shift
14494  ac_file=$1
14495  shift
14496
14497  case $ac_mode in
14498  :L) ac_source=$1;;
14499  :[FH])
14500    ac_file_inputs=
14501    for ac_f
14502    do
14503      case $ac_f in
14504      -) ac_f="$tmp/stdin";;
14505      *) # Look for the file first in the build tree, then in the source tree
14506	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14507	 # because $ac_f cannot contain `:'.
14508	 test -f "$ac_f" ||
14509	   case $ac_f in
14510	   [\\/$]*) false;;
14511	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14512	   esac ||
14513	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14514      esac
14515      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14516      as_fn_append ac_file_inputs " '$ac_f'"
14517    done
14518
14519    # Let's still pretend it is `configure' which instantiates (i.e., don't
14520    # use $as_me), people would be surprised to read:
14521    #    /* config.h.  Generated by config.status.  */
14522    configure_input='Generated from '`
14523	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14524	`' by configure.'
14525    if test x"$ac_file" != x-; then
14526      configure_input="$ac_file.  $configure_input"
14527      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14528$as_echo "$as_me: creating $ac_file" >&6;}
14529    fi
14530    # Neutralize special characters interpreted by sed in replacement strings.
14531    case $configure_input in #(
14532    *\&* | *\|* | *\\* )
14533       ac_sed_conf_input=`$as_echo "$configure_input" |
14534       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14535    *) ac_sed_conf_input=$configure_input;;
14536    esac
14537
14538    case $ac_tag in
14539    *:-:* | *:-) cat >"$tmp/stdin" \
14540      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14541    esac
14542    ;;
14543  esac
14544
14545  ac_dir=`$as_dirname -- "$ac_file" ||
14546$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14547	 X"$ac_file" : 'X\(//\)[^/]' \| \
14548	 X"$ac_file" : 'X\(//\)$' \| \
14549	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14550$as_echo X"$ac_file" |
14551    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14552	    s//\1/
14553	    q
14554	  }
14555	  /^X\(\/\/\)[^/].*/{
14556	    s//\1/
14557	    q
14558	  }
14559	  /^X\(\/\/\)$/{
14560	    s//\1/
14561	    q
14562	  }
14563	  /^X\(\/\).*/{
14564	    s//\1/
14565	    q
14566	  }
14567	  s/.*/./; q'`
14568  as_dir="$ac_dir"; as_fn_mkdir_p
14569  ac_builddir=.
14570
14571case "$ac_dir" in
14572.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14573*)
14574  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14575  # A ".." for each directory in $ac_dir_suffix.
14576  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14577  case $ac_top_builddir_sub in
14578  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14579  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14580  esac ;;
14581esac
14582ac_abs_top_builddir=$ac_pwd
14583ac_abs_builddir=$ac_pwd$ac_dir_suffix
14584# for backward compatibility:
14585ac_top_builddir=$ac_top_build_prefix
14586
14587case $srcdir in
14588  .)  # We are building in place.
14589    ac_srcdir=.
14590    ac_top_srcdir=$ac_top_builddir_sub
14591    ac_abs_top_srcdir=$ac_pwd ;;
14592  [\\/]* | ?:[\\/]* )  # Absolute name.
14593    ac_srcdir=$srcdir$ac_dir_suffix;
14594    ac_top_srcdir=$srcdir
14595    ac_abs_top_srcdir=$srcdir ;;
14596  *) # Relative name.
14597    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14598    ac_top_srcdir=$ac_top_build_prefix$srcdir
14599    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14600esac
14601ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14602
14603
14604  case $ac_mode in
14605  :F)
14606  #
14607  # CONFIG_FILE
14608  #
14609
14610  case $INSTALL in
14611  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14612  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14613  esac
14614  ac_MKDIR_P=$MKDIR_P
14615  case $MKDIR_P in
14616  [\\/$]* | ?:[\\/]* ) ;;
14617  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14618  esac
14619_ACEOF
14620
14621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14622# If the template does not know about datarootdir, expand it.
14623# FIXME: This hack should be removed a few years after 2.60.
14624ac_datarootdir_hack=; ac_datarootdir_seen=
14625ac_sed_dataroot='
14626/datarootdir/ {
14627  p
14628  q
14629}
14630/@datadir@/p
14631/@docdir@/p
14632/@infodir@/p
14633/@localedir@/p
14634/@mandir@/p'
14635case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14636*datarootdir*) ac_datarootdir_seen=yes;;
14637*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14638  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14639$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14640_ACEOF
14641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14642  ac_datarootdir_hack='
14643  s&@datadir@&$datadir&g
14644  s&@docdir@&$docdir&g
14645  s&@infodir@&$infodir&g
14646  s&@localedir@&$localedir&g
14647  s&@mandir@&$mandir&g
14648  s&\\\${datarootdir}&$datarootdir&g' ;;
14649esac
14650_ACEOF
14651
14652# Neutralize VPATH when `$srcdir' = `.'.
14653# Shell code in configure.ac might set extrasub.
14654# FIXME: do we really want to maintain this feature?
14655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14656ac_sed_extra="$ac_vpsub
14657$extrasub
14658_ACEOF
14659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14660:t
14661/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14662s|@configure_input@|$ac_sed_conf_input|;t t
14663s&@top_builddir@&$ac_top_builddir_sub&;t t
14664s&@top_build_prefix@&$ac_top_build_prefix&;t t
14665s&@srcdir@&$ac_srcdir&;t t
14666s&@abs_srcdir@&$ac_abs_srcdir&;t t
14667s&@top_srcdir@&$ac_top_srcdir&;t t
14668s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14669s&@builddir@&$ac_builddir&;t t
14670s&@abs_builddir@&$ac_abs_builddir&;t t
14671s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14672s&@INSTALL@&$ac_INSTALL&;t t
14673s&@MKDIR_P@&$ac_MKDIR_P&;t t
14674$ac_datarootdir_hack
14675"
14676eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14677  || as_fn_error "could not create $ac_file" "$LINENO" 5
14678
14679test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14680  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14681  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14682  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14683which seems to be undefined.  Please make sure it is defined." >&5
14684$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14685which seems to be undefined.  Please make sure it is defined." >&2;}
14686
14687  rm -f "$tmp/stdin"
14688  case $ac_file in
14689  -) cat "$tmp/out" && rm -f "$tmp/out";;
14690  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14691  esac \
14692  || as_fn_error "could not create $ac_file" "$LINENO" 5
14693 ;;
14694  :H)
14695  #
14696  # CONFIG_HEADER
14697  #
14698  if test x"$ac_file" != x-; then
14699    {
14700      $as_echo "/* $configure_input  */" \
14701      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14702    } >"$tmp/config.h" \
14703      || as_fn_error "could not create $ac_file" "$LINENO" 5
14704    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14705      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14706$as_echo "$as_me: $ac_file is unchanged" >&6;}
14707    else
14708      rm -f "$ac_file"
14709      mv "$tmp/config.h" "$ac_file" \
14710	|| as_fn_error "could not create $ac_file" "$LINENO" 5
14711    fi
14712  else
14713    $as_echo "/* $configure_input  */" \
14714      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14715      || as_fn_error "could not create -" "$LINENO" 5
14716  fi
14717# Compute "$ac_file"'s index in $config_headers.
14718_am_arg="$ac_file"
14719_am_stamp_count=1
14720for _am_header in $config_headers :; do
14721  case $_am_header in
14722    $_am_arg | $_am_arg:* )
14723      break ;;
14724    * )
14725      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14726  esac
14727done
14728echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14729$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14730	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14731	 X"$_am_arg" : 'X\(//\)$' \| \
14732	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14733$as_echo X"$_am_arg" |
14734    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14735	    s//\1/
14736	    q
14737	  }
14738	  /^X\(\/\/\)[^/].*/{
14739	    s//\1/
14740	    q
14741	  }
14742	  /^X\(\/\/\)$/{
14743	    s//\1/
14744	    q
14745	  }
14746	  /^X\(\/\).*/{
14747	    s//\1/
14748	    q
14749	  }
14750	  s/.*/./; q'`/stamp-h$_am_stamp_count
14751 ;;
14752
14753  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14754$as_echo "$as_me: executing $ac_file commands" >&6;}
14755 ;;
14756  esac
14757
14758
14759  case $ac_file$ac_mode in
14760    "default-1":C)
14761# Only add multilib support code if we just rebuilt the top-level
14762# Makefile.
14763case " $CONFIG_FILES " in
14764 *" Makefile "*)
14765   ac_file=Makefile . ${multi_basedir}/config-ml.in
14766   ;;
14767esac ;;
14768    "libtool":C)
14769
14770    # See if we are running on zsh, and set the options which allow our
14771    # commands through without removal of \ escapes.
14772    if test -n "${ZSH_VERSION+set}" ; then
14773      setopt NO_GLOB_SUBST
14774    fi
14775
14776    cfgfile="${ofile}T"
14777    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14778    $RM "$cfgfile"
14779
14780    cat <<_LT_EOF >> "$cfgfile"
14781#! $SHELL
14782
14783# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14784# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14785# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14786# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14787#
14788#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14789#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14790#   Written by Gordon Matzigkeit, 1996
14791#
14792#   This file is part of GNU Libtool.
14793#
14794# GNU Libtool is free software; you can redistribute it and/or
14795# modify it under the terms of the GNU General Public License as
14796# published by the Free Software Foundation; either version 2 of
14797# the License, or (at your option) any later version.
14798#
14799# As a special exception to the GNU General Public License,
14800# if you distribute this file as part of a program or library that
14801# is built using GNU Libtool, you may include this file under the
14802# same distribution terms that you use for the rest of that program.
14803#
14804# GNU Libtool is distributed in the hope that it will be useful,
14805# but WITHOUT ANY WARRANTY; without even the implied warranty of
14806# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14807# GNU General Public License for more details.
14808#
14809# You should have received a copy of the GNU General Public License
14810# along with GNU Libtool; see the file COPYING.  If not, a copy
14811# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14812# obtained by writing to the Free Software Foundation, Inc.,
14813# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14814
14815
14816# The names of the tagged configurations supported by this script.
14817available_tags=""
14818
14819# ### BEGIN LIBTOOL CONFIG
14820
14821# Which release of libtool.m4 was used?
14822macro_version=$macro_version
14823macro_revision=$macro_revision
14824
14825# Whether or not to build shared libraries.
14826build_libtool_libs=$enable_shared
14827
14828# Whether or not to build static libraries.
14829build_old_libs=$enable_static
14830
14831# What type of objects to build.
14832pic_mode=$pic_mode
14833
14834# Whether or not to optimize for fast installation.
14835fast_install=$enable_fast_install
14836
14837# Shell to use when invoking shell scripts.
14838SHELL=$lt_SHELL
14839
14840# An echo program that protects backslashes.
14841ECHO=$lt_ECHO
14842
14843# The host system.
14844host_alias=$host_alias
14845host=$host
14846host_os=$host_os
14847
14848# The build system.
14849build_alias=$build_alias
14850build=$build
14851build_os=$build_os
14852
14853# A sed program that does not truncate output.
14854SED=$lt_SED
14855
14856# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14857Xsed="\$SED -e 1s/^X//"
14858
14859# A grep program that handles long lines.
14860GREP=$lt_GREP
14861
14862# An ERE matcher.
14863EGREP=$lt_EGREP
14864
14865# A literal string matcher.
14866FGREP=$lt_FGREP
14867
14868# A BSD- or MS-compatible name lister.
14869NM=$lt_NM
14870
14871# Whether we need soft or hard links.
14872LN_S=$lt_LN_S
14873
14874# What is the maximum length of a command?
14875max_cmd_len=$max_cmd_len
14876
14877# Object file suffix (normally "o").
14878objext=$ac_objext
14879
14880# Executable file suffix (normally "").
14881exeext=$exeext
14882
14883# whether the shell understands "unset".
14884lt_unset=$lt_unset
14885
14886# turn spaces into newlines.
14887SP2NL=$lt_lt_SP2NL
14888
14889# turn newlines into spaces.
14890NL2SP=$lt_lt_NL2SP
14891
14892# An object symbol dumper.
14893OBJDUMP=$lt_OBJDUMP
14894
14895# Method to check whether dependent libraries are shared objects.
14896deplibs_check_method=$lt_deplibs_check_method
14897
14898# Command to use when deplibs_check_method == "file_magic".
14899file_magic_cmd=$lt_file_magic_cmd
14900
14901# The archiver.
14902AR=$lt_AR
14903AR_FLAGS=$lt_AR_FLAGS
14904
14905# A symbol stripping program.
14906STRIP=$lt_STRIP
14907
14908# Commands used to install an old-style archive.
14909RANLIB=$lt_RANLIB
14910old_postinstall_cmds=$lt_old_postinstall_cmds
14911old_postuninstall_cmds=$lt_old_postuninstall_cmds
14912
14913# Whether to use a lock for old archive extraction.
14914lock_old_archive_extraction=$lock_old_archive_extraction
14915
14916# A C compiler.
14917LTCC=$lt_CC
14918
14919# LTCC compiler flags.
14920LTCFLAGS=$lt_CFLAGS
14921
14922# Take the output of nm and produce a listing of raw symbols and C names.
14923global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14924
14925# Transform the output of nm in a proper C declaration.
14926global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14927
14928# Transform the output of nm in a C name address pair.
14929global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14930
14931# Transform the output of nm in a C name address pair when lib prefix is needed.
14932global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14933
14934# The name of the directory that contains temporary libtool files.
14935objdir=$objdir
14936
14937# Used to examine libraries when file_magic_cmd begins with "file".
14938MAGIC_CMD=$MAGIC_CMD
14939
14940# Must we lock files when doing compilation?
14941need_locks=$lt_need_locks
14942
14943# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14944DSYMUTIL=$lt_DSYMUTIL
14945
14946# Tool to change global to local symbols on Mac OS X.
14947NMEDIT=$lt_NMEDIT
14948
14949# Tool to manipulate fat objects and archives on Mac OS X.
14950LIPO=$lt_LIPO
14951
14952# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14953OTOOL=$lt_OTOOL
14954
14955# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14956OTOOL64=$lt_OTOOL64
14957
14958# Old archive suffix (normally "a").
14959libext=$libext
14960
14961# Shared library suffix (normally ".so").
14962shrext_cmds=$lt_shrext_cmds
14963
14964# The commands to extract the exported symbol list from a shared archive.
14965extract_expsyms_cmds=$lt_extract_expsyms_cmds
14966
14967# Variables whose values should be saved in libtool wrapper scripts and
14968# restored at link time.
14969variables_saved_for_relink=$lt_variables_saved_for_relink
14970
14971# Do we need the "lib" prefix for modules?
14972need_lib_prefix=$need_lib_prefix
14973
14974# Do we need a version for libraries?
14975need_version=$need_version
14976
14977# Library versioning type.
14978version_type=$version_type
14979
14980# Shared library runtime path variable.
14981runpath_var=$runpath_var
14982
14983# Shared library path variable.
14984shlibpath_var=$shlibpath_var
14985
14986# Is shlibpath searched before the hard-coded library search path?
14987shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14988
14989# Format of library name prefix.
14990libname_spec=$lt_libname_spec
14991
14992# List of archive names.  First name is the real one, the rest are links.
14993# The last name is the one that the linker finds with -lNAME
14994library_names_spec=$lt_library_names_spec
14995
14996# The coded name of the library, if different from the real name.
14997soname_spec=$lt_soname_spec
14998
14999# Permission mode override for installation of shared libraries.
15000install_override_mode=$lt_install_override_mode
15001
15002# Command to use after installation of a shared archive.
15003postinstall_cmds=$lt_postinstall_cmds
15004
15005# Command to use after uninstallation of a shared archive.
15006postuninstall_cmds=$lt_postuninstall_cmds
15007
15008# Commands used to finish a libtool library installation in a directory.
15009finish_cmds=$lt_finish_cmds
15010
15011# As "finish_cmds", except a single script fragment to be evaled but
15012# not shown.
15013finish_eval=$lt_finish_eval
15014
15015# Whether we should hardcode library paths into libraries.
15016hardcode_into_libs=$hardcode_into_libs
15017
15018# Compile-time system search path for libraries.
15019sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15020
15021# Run-time system search path for libraries.
15022sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15023
15024# Whether dlopen is supported.
15025dlopen_support=$enable_dlopen
15026
15027# Whether dlopen of programs is supported.
15028dlopen_self=$enable_dlopen_self
15029
15030# Whether dlopen of statically linked programs is supported.
15031dlopen_self_static=$enable_dlopen_self_static
15032
15033# Commands to strip libraries.
15034old_striplib=$lt_old_striplib
15035striplib=$lt_striplib
15036
15037
15038# The linker used to build libraries.
15039LD=$lt_LD
15040
15041# How to create reloadable object files.
15042reload_flag=$lt_reload_flag
15043reload_cmds=$lt_reload_cmds
15044
15045# Commands used to build an old-style archive.
15046old_archive_cmds=$lt_old_archive_cmds
15047
15048# A language specific compiler.
15049CC=$lt_compiler
15050
15051# Is the compiler the GNU compiler?
15052with_gcc=$GCC
15053
15054# Compiler flag to turn off builtin functions.
15055no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15056
15057# How to pass a linker flag through the compiler.
15058wl=$lt_lt_prog_compiler_wl
15059
15060# Additional compiler flags for building library objects.
15061pic_flag=$lt_lt_prog_compiler_pic
15062
15063# Compiler flag to prevent dynamic linking.
15064link_static_flag=$lt_lt_prog_compiler_static
15065
15066# Does compiler simultaneously support -c and -o options?
15067compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15068
15069# Whether or not to add -lc for building shared libraries.
15070build_libtool_need_lc=$archive_cmds_need_lc
15071
15072# Whether or not to disallow shared libs when runtime libs are static.
15073allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15074
15075# Compiler flag to allow reflexive dlopens.
15076export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15077
15078# Compiler flag to generate shared objects directly from archives.
15079whole_archive_flag_spec=$lt_whole_archive_flag_spec
15080
15081# Whether the compiler copes with passing no objects directly.
15082compiler_needs_object=$lt_compiler_needs_object
15083
15084# Create an old-style archive from a shared archive.
15085old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15086
15087# Create a temporary old-style archive to link instead of a shared archive.
15088old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15089
15090# Commands used to build a shared archive.
15091archive_cmds=$lt_archive_cmds
15092archive_expsym_cmds=$lt_archive_expsym_cmds
15093
15094# Commands used to build a loadable module if different from building
15095# a shared archive.
15096module_cmds=$lt_module_cmds
15097module_expsym_cmds=$lt_module_expsym_cmds
15098
15099# Whether we are building with GNU ld or not.
15100with_gnu_ld=$lt_with_gnu_ld
15101
15102# Flag that allows shared libraries with undefined symbols to be built.
15103allow_undefined_flag=$lt_allow_undefined_flag
15104
15105# Flag that enforces no undefined symbols.
15106no_undefined_flag=$lt_no_undefined_flag
15107
15108# Flag to hardcode \$libdir into a binary during linking.
15109# This must work even if \$libdir does not exist
15110hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15111
15112# If ld is used when linking, flag to hardcode \$libdir into a binary
15113# during linking.  This must work even if \$libdir does not exist.
15114hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15115
15116# Whether we need a single "-rpath" flag with a separated argument.
15117hardcode_libdir_separator=$lt_hardcode_libdir_separator
15118
15119# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15120# DIR into the resulting binary.
15121hardcode_direct=$hardcode_direct
15122
15123# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15124# DIR into the resulting binary and the resulting library dependency is
15125# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15126# library is relocated.
15127hardcode_direct_absolute=$hardcode_direct_absolute
15128
15129# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15130# into the resulting binary.
15131hardcode_minus_L=$hardcode_minus_L
15132
15133# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15134# into the resulting binary.
15135hardcode_shlibpath_var=$hardcode_shlibpath_var
15136
15137# Set to "yes" if building a shared library automatically hardcodes DIR
15138# into the library and all subsequent libraries and executables linked
15139# against it.
15140hardcode_automatic=$hardcode_automatic
15141
15142# Set to yes if linker adds runtime paths of dependent libraries
15143# to runtime path list.
15144inherit_rpath=$inherit_rpath
15145
15146# Whether libtool must link a program against all its dependency libraries.
15147link_all_deplibs=$link_all_deplibs
15148
15149# Fix the shell variable \$srcfile for the compiler.
15150fix_srcfile_path=$lt_fix_srcfile_path
15151
15152# Set to "yes" if exported symbols are required.
15153always_export_symbols=$always_export_symbols
15154
15155# The commands to list exported symbols.
15156export_symbols_cmds=$lt_export_symbols_cmds
15157
15158# Symbols that should not be listed in the preloaded symbols.
15159exclude_expsyms=$lt_exclude_expsyms
15160
15161# Symbols that must always be exported.
15162include_expsyms=$lt_include_expsyms
15163
15164# Commands necessary for linking programs (against libraries) with templates.
15165prelink_cmds=$lt_prelink_cmds
15166
15167# Specify filename containing input files.
15168file_list_spec=$lt_file_list_spec
15169
15170# How to hardcode a shared library path into an executable.
15171hardcode_action=$hardcode_action
15172
15173# ### END LIBTOOL CONFIG
15174
15175_LT_EOF
15176
15177  case $host_os in
15178  aix3*)
15179    cat <<\_LT_EOF >> "$cfgfile"
15180# AIX sometimes has problems with the GCC collect2 program.  For some
15181# reason, if we set the COLLECT_NAMES environment variable, the problems
15182# vanish in a puff of smoke.
15183if test "X${COLLECT_NAMES+set}" != Xset; then
15184  COLLECT_NAMES=
15185  export COLLECT_NAMES
15186fi
15187_LT_EOF
15188    ;;
15189  esac
15190
15191
15192ltmain="$ac_aux_dir/ltmain.sh"
15193
15194
15195  # We use sed instead of cat because bash on DJGPP gets confused if
15196  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15197  # text mode, it properly converts lines to CR/LF.  This bash problem
15198  # is reportedly fixed, but why not run on old versions too?
15199  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15200    || (rm -f "$cfgfile"; exit 1)
15201
15202  case $xsi_shell in
15203  yes)
15204    cat << \_LT_EOF >> "$cfgfile"
15205
15206# func_dirname file append nondir_replacement
15207# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15208# otherwise set result to NONDIR_REPLACEMENT.
15209func_dirname ()
15210{
15211  case ${1} in
15212    */*) func_dirname_result="${1%/*}${2}" ;;
15213    *  ) func_dirname_result="${3}" ;;
15214  esac
15215}
15216
15217# func_basename file
15218func_basename ()
15219{
15220  func_basename_result="${1##*/}"
15221}
15222
15223# func_dirname_and_basename file append nondir_replacement
15224# perform func_basename and func_dirname in a single function
15225# call:
15226#   dirname:  Compute the dirname of FILE.  If nonempty,
15227#             add APPEND to the result, otherwise set result
15228#             to NONDIR_REPLACEMENT.
15229#             value returned in "$func_dirname_result"
15230#   basename: Compute filename of FILE.
15231#             value retuned in "$func_basename_result"
15232# Implementation must be kept synchronized with func_dirname
15233# and func_basename. For efficiency, we do not delegate to
15234# those functions but instead duplicate the functionality here.
15235func_dirname_and_basename ()
15236{
15237  case ${1} in
15238    */*) func_dirname_result="${1%/*}${2}" ;;
15239    *  ) func_dirname_result="${3}" ;;
15240  esac
15241  func_basename_result="${1##*/}"
15242}
15243
15244# func_stripname prefix suffix name
15245# strip PREFIX and SUFFIX off of NAME.
15246# PREFIX and SUFFIX must not contain globbing or regex special
15247# characters, hashes, percent signs, but SUFFIX may contain a leading
15248# dot (in which case that matches only a dot).
15249func_stripname ()
15250{
15251  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15252  # positional parameters, so assign one to ordinary parameter first.
15253  func_stripname_result=${3}
15254  func_stripname_result=${func_stripname_result#"${1}"}
15255  func_stripname_result=${func_stripname_result%"${2}"}
15256}
15257
15258# func_opt_split
15259func_opt_split ()
15260{
15261  func_opt_split_opt=${1%%=*}
15262  func_opt_split_arg=${1#*=}
15263}
15264
15265# func_lo2o object
15266func_lo2o ()
15267{
15268  case ${1} in
15269    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15270    *)    func_lo2o_result=${1} ;;
15271  esac
15272}
15273
15274# func_xform libobj-or-source
15275func_xform ()
15276{
15277  func_xform_result=${1%.*}.lo
15278}
15279
15280# func_arith arithmetic-term...
15281func_arith ()
15282{
15283  func_arith_result=$(( $* ))
15284}
15285
15286# func_len string
15287# STRING may not start with a hyphen.
15288func_len ()
15289{
15290  func_len_result=${#1}
15291}
15292
15293_LT_EOF
15294    ;;
15295  *) # Bourne compatible functions.
15296    cat << \_LT_EOF >> "$cfgfile"
15297
15298# func_dirname file append nondir_replacement
15299# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15300# otherwise set result to NONDIR_REPLACEMENT.
15301func_dirname ()
15302{
15303  # Extract subdirectory from the argument.
15304  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15305  if test "X$func_dirname_result" = "X${1}"; then
15306    func_dirname_result="${3}"
15307  else
15308    func_dirname_result="$func_dirname_result${2}"
15309  fi
15310}
15311
15312# func_basename file
15313func_basename ()
15314{
15315  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15316}
15317
15318
15319# func_stripname prefix suffix name
15320# strip PREFIX and SUFFIX off of NAME.
15321# PREFIX and SUFFIX must not contain globbing or regex special
15322# characters, hashes, percent signs, but SUFFIX may contain a leading
15323# dot (in which case that matches only a dot).
15324# func_strip_suffix prefix name
15325func_stripname ()
15326{
15327  case ${2} in
15328    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15329    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15330  esac
15331}
15332
15333# sed scripts:
15334my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15335my_sed_long_arg='1s/^-[^=]*=//'
15336
15337# func_opt_split
15338func_opt_split ()
15339{
15340  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15341  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15342}
15343
15344# func_lo2o object
15345func_lo2o ()
15346{
15347  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15348}
15349
15350# func_xform libobj-or-source
15351func_xform ()
15352{
15353  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15354}
15355
15356# func_arith arithmetic-term...
15357func_arith ()
15358{
15359  func_arith_result=`expr "$@"`
15360}
15361
15362# func_len string
15363# STRING may not start with a hyphen.
15364func_len ()
15365{
15366  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15367}
15368
15369_LT_EOF
15370esac
15371
15372case $lt_shell_append in
15373  yes)
15374    cat << \_LT_EOF >> "$cfgfile"
15375
15376# func_append var value
15377# Append VALUE to the end of shell variable VAR.
15378func_append ()
15379{
15380  eval "$1+=\$2"
15381}
15382_LT_EOF
15383    ;;
15384  *)
15385    cat << \_LT_EOF >> "$cfgfile"
15386
15387# func_append var value
15388# Append VALUE to the end of shell variable VAR.
15389func_append ()
15390{
15391  eval "$1=\$$1\$2"
15392}
15393
15394_LT_EOF
15395    ;;
15396  esac
15397
15398
15399  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15400    || (rm -f "$cfgfile"; exit 1)
15401
15402  mv -f "$cfgfile" "$ofile" ||
15403    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15404  chmod +x "$ofile"
15405
15406 ;;
15407    "gstdint.h":C)
15408if test "$GCC" = yes; then
15409  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
15410else
15411  echo "/* generated for $CC */" > tmp-stdint.h
15412fi
15413
15414sed 's/^ *//' >> tmp-stdint.h <<EOF
15415
15416  #ifndef GCC_GENERATED_STDINT_H
15417  #define GCC_GENERATED_STDINT_H 1
15418
15419  #include <sys/types.h>
15420EOF
15421
15422if test "$acx_cv_header_stdint" != stdint.h; then
15423  echo "#include <stddef.h>" >> tmp-stdint.h
15424fi
15425if test "$acx_cv_header_stdint" != stddef.h; then
15426  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
15427fi
15428
15429sed 's/^ *//' >> tmp-stdint.h <<EOF
15430  /* glibc uses these symbols as guards to prevent redefinitions.  */
15431  #ifdef __int8_t_defined
15432  #define _INT8_T
15433  #define _INT16_T
15434  #define _INT32_T
15435  #endif
15436  #ifdef __uint32_t_defined
15437  #define _UINT32_T
15438  #endif
15439
15440EOF
15441
15442# ----------------- done header, emit basic int types -------------
15443if test "$acx_cv_header_stdint" = stddef.h; then
15444  sed 's/^ *//' >> tmp-stdint.h <<EOF
15445
15446    #ifndef _UINT8_T
15447    #define _UINT8_T
15448    #ifndef __uint8_t_defined
15449    #define __uint8_t_defined
15450    #ifndef uint8_t
15451    typedef unsigned $acx_cv_type_int8_t uint8_t;
15452    #endif
15453    #endif
15454    #endif
15455
15456    #ifndef _UINT16_T
15457    #define _UINT16_T
15458    #ifndef __uint16_t_defined
15459    #define __uint16_t_defined
15460    #ifndef uint16_t
15461    typedef unsigned $acx_cv_type_int16_t uint16_t;
15462    #endif
15463    #endif
15464    #endif
15465
15466    #ifndef _UINT32_T
15467    #define _UINT32_T
15468    #ifndef __uint32_t_defined
15469    #define __uint32_t_defined
15470    #ifndef uint32_t
15471    typedef unsigned $acx_cv_type_int32_t uint32_t;
15472    #endif
15473    #endif
15474    #endif
15475
15476    #ifndef _INT8_T
15477    #define _INT8_T
15478    #ifndef __int8_t_defined
15479    #define __int8_t_defined
15480    #ifndef int8_t
15481    typedef $acx_cv_type_int8_t int8_t;
15482    #endif
15483    #endif
15484    #endif
15485
15486    #ifndef _INT16_T
15487    #define _INT16_T
15488    #ifndef __int16_t_defined
15489    #define __int16_t_defined
15490    #ifndef int16_t
15491    typedef $acx_cv_type_int16_t int16_t;
15492    #endif
15493    #endif
15494    #endif
15495
15496    #ifndef _INT32_T
15497    #define _INT32_T
15498    #ifndef __int32_t_defined
15499    #define __int32_t_defined
15500    #ifndef int32_t
15501    typedef $acx_cv_type_int32_t int32_t;
15502    #endif
15503    #endif
15504    #endif
15505EOF
15506elif test "$ac_cv_type_u_int32_t" = yes; then
15507  sed 's/^ *//' >> tmp-stdint.h <<EOF
15508
15509    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
15510    #ifndef _INT8_T
15511    #define _INT8_T
15512    #endif
15513    #ifndef _INT16_T
15514    #define _INT16_T
15515    #endif
15516    #ifndef _INT32_T
15517    #define _INT32_T
15518    #endif
15519
15520    #ifndef _UINT8_T
15521    #define _UINT8_T
15522    #ifndef __uint8_t_defined
15523    #define __uint8_t_defined
15524    #ifndef uint8_t
15525    typedef u_int8_t uint8_t;
15526    #endif
15527    #endif
15528    #endif
15529
15530    #ifndef _UINT16_T
15531    #define _UINT16_T
15532    #ifndef __uint16_t_defined
15533    #define __uint16_t_defined
15534    #ifndef uint16_t
15535    typedef u_int16_t uint16_t;
15536    #endif
15537    #endif
15538    #endif
15539
15540    #ifndef _UINT32_T
15541    #define _UINT32_T
15542    #ifndef __uint32_t_defined
15543    #define __uint32_t_defined
15544    #ifndef uint32_t
15545    typedef u_int32_t uint32_t;
15546    #endif
15547    #endif
15548    #endif
15549EOF
15550else
15551  sed 's/^ *//' >> tmp-stdint.h <<EOF
15552
15553    /* Some systems have guard macros to prevent redefinitions, define them.  */
15554    #ifndef _INT8_T
15555    #define _INT8_T
15556    #endif
15557    #ifndef _INT16_T
15558    #define _INT16_T
15559    #endif
15560    #ifndef _INT32_T
15561    #define _INT32_T
15562    #endif
15563    #ifndef _UINT8_T
15564    #define _UINT8_T
15565    #endif
15566    #ifndef _UINT16_T
15567    #define _UINT16_T
15568    #endif
15569    #ifndef _UINT32_T
15570    #define _UINT32_T
15571    #endif
15572EOF
15573fi
15574
15575# ------------- done basic int types, emit int64_t types ------------
15576if test "$ac_cv_type_uint64_t" = yes; then
15577  sed 's/^ *//' >> tmp-stdint.h <<EOF
15578
15579    /* system headers have good uint64_t and int64_t */
15580    #ifndef _INT64_T
15581    #define _INT64_T
15582    #endif
15583    #ifndef _UINT64_T
15584    #define _UINT64_T
15585    #endif
15586EOF
15587elif test "$ac_cv_type_u_int64_t" = yes; then
15588  sed 's/^ *//' >> tmp-stdint.h <<EOF
15589
15590    /* system headers have an u_int64_t (and int64_t) */
15591    #ifndef _INT64_T
15592    #define _INT64_T
15593    #endif
15594    #ifndef _UINT64_T
15595    #define _UINT64_T
15596    #ifndef __uint64_t_defined
15597    #define __uint64_t_defined
15598    #ifndef uint64_t
15599    typedef u_int64_t uint64_t;
15600    #endif
15601    #endif
15602    #endif
15603EOF
15604elif test -n "$acx_cv_type_int64_t"; then
15605  sed 's/^ *//' >> tmp-stdint.h <<EOF
15606
15607    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
15608    #ifndef _INT64_T
15609    #define _INT64_T
15610    #ifndef int64_t
15611    typedef $acx_cv_type_int64_t int64_t;
15612    #endif
15613    #endif
15614    #ifndef _UINT64_T
15615    #define _UINT64_T
15616    #ifndef __uint64_t_defined
15617    #define __uint64_t_defined
15618    #ifndef uint64_t
15619    typedef unsigned $acx_cv_type_int64_t uint64_t;
15620    #endif
15621    #endif
15622    #endif
15623EOF
15624else
15625  sed 's/^ *//' >> tmp-stdint.h <<EOF
15626
15627    /* some common heuristics for int64_t, using compiler-specific tests */
15628    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
15629    #ifndef _INT64_T
15630    #define _INT64_T
15631    #ifndef __int64_t_defined
15632    #ifndef int64_t
15633    typedef long long int64_t;
15634    #endif
15635    #endif
15636    #endif
15637    #ifndef _UINT64_T
15638    #define _UINT64_T
15639    #ifndef uint64_t
15640    typedef unsigned long long uint64_t;
15641    #endif
15642    #endif
15643
15644    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
15645    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
15646       does not implement __extension__.  But that compiler doesn't define
15647       __GNUC_MINOR__.  */
15648    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
15649    # define __extension__
15650    # endif
15651
15652    # ifndef _INT64_T
15653    # define _INT64_T
15654    # ifndef int64_t
15655    __extension__ typedef long long int64_t;
15656    # endif
15657    # endif
15658    # ifndef _UINT64_T
15659    # define _UINT64_T
15660    # ifndef uint64_t
15661    __extension__ typedef unsigned long long uint64_t;
15662    # endif
15663    # endif
15664
15665    #elif !defined __STRICT_ANSI__
15666    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
15667
15668    #  ifndef _INT64_T
15669    #  define _INT64_T
15670    #  ifndef int64_t
15671    typedef __int64 int64_t;
15672    #  endif
15673    #  endif
15674    #  ifndef _UINT64_T
15675    #  define _UINT64_T
15676    #  ifndef uint64_t
15677    typedef unsigned __int64 uint64_t;
15678    #  endif
15679    #  endif
15680    # endif /* compiler */
15681
15682    #endif /* ANSI version */
15683EOF
15684fi
15685
15686# ------------- done int64_t types, emit intptr types ------------
15687if test "$ac_cv_type_uintptr_t" != yes; then
15688  sed 's/^ *//' >> tmp-stdint.h <<EOF
15689
15690    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
15691    #ifndef __uintptr_t_defined
15692    #ifndef uintptr_t
15693    typedef u$acx_cv_type_intptr_t uintptr_t;
15694    #endif
15695    #endif
15696    #ifndef __intptr_t_defined
15697    #ifndef intptr_t
15698    typedef $acx_cv_type_intptr_t  intptr_t;
15699    #endif
15700    #endif
15701EOF
15702fi
15703
15704# ------------- done intptr types, emit int_least types ------------
15705if test "$ac_cv_type_int_least32_t" != yes; then
15706  sed 's/^ *//' >> tmp-stdint.h <<EOF
15707
15708    /* Define int_least types */
15709    typedef int8_t     int_least8_t;
15710    typedef int16_t    int_least16_t;
15711    typedef int32_t    int_least32_t;
15712    #ifdef _INT64_T
15713    typedef int64_t    int_least64_t;
15714    #endif
15715
15716    typedef uint8_t    uint_least8_t;
15717    typedef uint16_t   uint_least16_t;
15718    typedef uint32_t   uint_least32_t;
15719    #ifdef _UINT64_T
15720    typedef uint64_t   uint_least64_t;
15721    #endif
15722EOF
15723fi
15724
15725# ------------- done intptr types, emit int_fast types ------------
15726if test "$ac_cv_type_int_fast32_t" != yes; then
15727      sed 's/^ *//' >> tmp-stdint.h <<EOF
15728
15729    /* Define int_fast types.  short is often slow */
15730    typedef int8_t       int_fast8_t;
15731    typedef int          int_fast16_t;
15732    typedef int32_t      int_fast32_t;
15733    #ifdef _INT64_T
15734    typedef int64_t      int_fast64_t;
15735    #endif
15736
15737    typedef uint8_t      uint_fast8_t;
15738    typedef unsigned int uint_fast16_t;
15739    typedef uint32_t     uint_fast32_t;
15740    #ifdef _UINT64_T
15741    typedef uint64_t     uint_fast64_t;
15742    #endif
15743EOF
15744fi
15745
15746if test "$ac_cv_type_uintmax_t" != yes; then
15747  sed 's/^ *//' >> tmp-stdint.h <<EOF
15748
15749    /* Define intmax based on what we found */
15750    #ifndef intmax_t
15751    #ifdef _INT64_T
15752    typedef int64_t       intmax_t;
15753    #else
15754    typedef long          intmax_t;
15755    #endif
15756    #endif
15757    #ifndef uintmax_t
15758    #ifdef _UINT64_T
15759    typedef uint64_t      uintmax_t;
15760    #else
15761    typedef unsigned long uintmax_t;
15762    #endif
15763    #endif
15764EOF
15765fi
15766
15767sed 's/^ *//' >> tmp-stdint.h <<EOF
15768
15769  #endif /* GCC_GENERATED_STDINT_H */
15770EOF
15771
15772if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
15773  rm -f tmp-stdint.h
15774else
15775  mv -f tmp-stdint.h gstdint.h
15776fi
15777
15778 ;;
15779    "default":C) if test -n "$CONFIG_FILES"; then
15780   if test -n "${with_target_subdir}"; then
15781     # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15782     # that multilib installs will end up installed in the correct place.
15783     # The testsuite needs it for multilib-aware ABI baseline files.
15784     # To work around this not being passed down from config-ml.in ->
15785     # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
15786     # append it here.  Only modify Makefiles that have just been created.
15787     #
15788     # Also, get rid of this simulated-VPATH thing that automake does.
15789     cat > vpsed << \_EOF
15790  s!`test -f '$<' || echo '$(srcdir)/'`!!
15791_EOF
15792     for i in $SUBDIRS; do
15793      case $CONFIG_FILES in
15794       *${i}/Makefile*)
15795	 #echo "Adding MULTISUBDIR to $i/Makefile"
15796	 sed -f vpsed $i/Makefile > tmp
15797	 grep '^MULTISUBDIR =' Makefile >> tmp
15798	 mv tmp $i/Makefile
15799	 ;;
15800      esac
15801     done
15802     rm vpsed
15803   fi
15804 fi
15805 ;;
15806
15807  esac
15808done # for ac_tag
15809
15810
15811as_fn_exit 0
15812_ACEOF
15813ac_clean_files=$ac_clean_files_save
15814
15815test $ac_write_fail = 0 ||
15816  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15817
15818
15819# configure is writing to config.log, and then calls config.status.
15820# config.status does its own redirection, appending to config.log.
15821# Unfortunately, on DOS this fails, as config.log is still kept open
15822# by configure, so config.status won't be able to write to it; its
15823# output is simply discarded.  So we exec the FD to /dev/null,
15824# effectively closing config.log, so it can be properly (re)opened and
15825# appended to by config.status.  When coming back to configure, we
15826# need to make the FD available again.
15827if test "$no_create" != yes; then
15828  ac_cs_success=:
15829  ac_config_status_args=
15830  test "$silent" = yes &&
15831    ac_config_status_args="$ac_config_status_args --quiet"
15832  exec 5>/dev/null
15833  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15834  exec 5>>config.log
15835  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15836  # would make configure fail if this is the last instruction.
15837  $ac_cs_success || as_fn_exit $?
15838fi
15839if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15840  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15841$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15842fi
15843
15844