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
607BACKTRACE_USES_MALLOC
608ALLOC_FILE
609VIEW_FILE
610BACKTRACE_SUPPORTED
611FORMAT_FILE
612BACKTRACE_SUPPORTS_THREADS
613PIC_FLAG
614WARN_FLAGS
615EXTRA_FLAGS
616BACKTRACE_FILE
617OTOOL64
618OTOOL
619LIPO
620NMEDIT
621DSYMUTIL
622AR
623OBJDUMP
624LN_S
625NM
626ac_ct_DUMPBIN
627DUMPBIN
628LD
629FGREP
630SED
631LIBTOOL
632RANLIB
633MAINT
634MAINTAINER_MODE_FALSE
635MAINTAINER_MODE_TRUE
636am__untar
637am__tar
638AMTAR
639am__leading_dot
640SET_MAKE
641AWK
642mkdir_p
643MKDIR_P
644INSTALL_STRIP_PROGRAM
645STRIP
646install_sh
647MAKEINFO
648AUTOHEADER
649AUTOMAKE
650AUTOCONF
651ACLOCAL
652VERSION
653PACKAGE
654CYGPATH_W
655am__isrc
656INSTALL_DATA
657INSTALL_SCRIPT
658INSTALL_PROGRAM
659libtool_VERSION
660EGREP
661GREP
662CPP
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_os
671target_vendor
672target_cpu
673target
674host_os
675host_vendor
676host_cpu
677host
678build_os
679build_vendor
680build_cpu
681build
682multi_basedir
683target_alias
684host_alias
685build_alias
686LIBS
687ECHO_T
688ECHO_N
689ECHO_C
690DEFS
691mandir
692localedir
693libdir
694psdir
695pdfdir
696dvidir
697htmldir
698infodir
699docdir
700oldincludedir
701includedir
702localstatedir
703sharedstatedir
704sysconfdir
705datadir
706datarootdir
707libexecdir
708sbindir
709bindir
710program_transform_name
711prefix
712exec_prefix
713PACKAGE_URL
714PACKAGE_BUGREPORT
715PACKAGE_STRING
716PACKAGE_VERSION
717PACKAGE_TARNAME
718PACKAGE_NAME
719PATH_SEPARATOR
720SHELL'
721ac_subst_files=''
722ac_user_opts='
723enable_option_checking
724enable_multilib
725enable_maintainer_mode
726with_target_subdir
727enable_shared
728enable_static
729with_pic
730enable_fast_install
731with_gnu_ld
732enable_libtool_lock
733with_system_libunwind
734'
735      ac_precious_vars='build_alias
736host_alias
737target_alias
738CC
739CFLAGS
740LDFLAGS
741LIBS
742CPPFLAGS
743CPP'
744
745
746# Initialize some variables set by options.
747ac_init_help=
748ac_init_version=false
749ac_unrecognized_opts=
750ac_unrecognized_sep=
751# The variables have the same names as the options, with
752# dashes changed to underlines.
753cache_file=/dev/null
754exec_prefix=NONE
755no_create=
756no_recursion=
757prefix=NONE
758program_prefix=NONE
759program_suffix=NONE
760program_transform_name=s,x,x,
761silent=
762site=
763srcdir=
764verbose=
765x_includes=NONE
766x_libraries=NONE
767
768# Installation directory options.
769# These are left unexpanded so users can "make install exec_prefix=/foo"
770# and all the variables that are supposed to be based on exec_prefix
771# by default will actually change.
772# Use braces instead of parens because sh, perl, etc. also accept them.
773# (The list follows the same order as the GNU Coding Standards.)
774bindir='${exec_prefix}/bin'
775sbindir='${exec_prefix}/sbin'
776libexecdir='${exec_prefix}/libexec'
777datarootdir='${prefix}/share'
778datadir='${datarootdir}'
779sysconfdir='${prefix}/etc'
780sharedstatedir='${prefix}/com'
781localstatedir='${prefix}/var'
782includedir='${prefix}/include'
783oldincludedir='/usr/include'
784docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785infodir='${datarootdir}/info'
786htmldir='${docdir}'
787dvidir='${docdir}'
788pdfdir='${docdir}'
789psdir='${docdir}'
790libdir='${exec_prefix}/lib'
791localedir='${datarootdir}/locale'
792mandir='${datarootdir}/man'
793
794ac_prev=
795ac_dashdash=
796for ac_option
797do
798  # If the previous option needs an argument, assign it.
799  if test -n "$ac_prev"; then
800    eval $ac_prev=\$ac_option
801    ac_prev=
802    continue
803  fi
804
805  case $ac_option in
806  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807  *)	ac_optarg=yes ;;
808  esac
809
810  # Accept the important Cygnus configure options, so we can diagnose typos.
811
812  case $ac_dashdash$ac_option in
813  --)
814    ac_dashdash=yes ;;
815
816  -bindir | --bindir | --bindi | --bind | --bin | --bi)
817    ac_prev=bindir ;;
818  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819    bindir=$ac_optarg ;;
820
821  -build | --build | --buil | --bui | --bu)
822    ac_prev=build_alias ;;
823  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824    build_alias=$ac_optarg ;;
825
826  -cache-file | --cache-file | --cache-fil | --cache-fi \
827  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828    ac_prev=cache_file ;;
829  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831    cache_file=$ac_optarg ;;
832
833  --config-cache | -C)
834    cache_file=config.cache ;;
835
836  -datadir | --datadir | --datadi | --datad)
837    ac_prev=datadir ;;
838  -datadir=* | --datadir=* | --datadi=* | --datad=*)
839    datadir=$ac_optarg ;;
840
841  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842  | --dataroo | --dataro | --datar)
843    ac_prev=datarootdir ;;
844  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846    datarootdir=$ac_optarg ;;
847
848  -disable-* | --disable-*)
849    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850    # Reject names that are not valid shell variable names.
851    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852      as_fn_error "invalid feature name: $ac_useropt"
853    ac_useropt_orig=$ac_useropt
854    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855    case $ac_user_opts in
856      *"
857"enable_$ac_useropt"
858"*) ;;
859      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860	 ac_unrecognized_sep=', ';;
861    esac
862    eval enable_$ac_useropt=no ;;
863
864  -docdir | --docdir | --docdi | --doc | --do)
865    ac_prev=docdir ;;
866  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867    docdir=$ac_optarg ;;
868
869  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870    ac_prev=dvidir ;;
871  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872    dvidir=$ac_optarg ;;
873
874  -enable-* | --enable-*)
875    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876    # Reject names that are not valid shell variable names.
877    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878      as_fn_error "invalid feature name: $ac_useropt"
879    ac_useropt_orig=$ac_useropt
880    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881    case $ac_user_opts in
882      *"
883"enable_$ac_useropt"
884"*) ;;
885      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886	 ac_unrecognized_sep=', ';;
887    esac
888    eval enable_$ac_useropt=\$ac_optarg ;;
889
890  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892  | --exec | --exe | --ex)
893    ac_prev=exec_prefix ;;
894  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896  | --exec=* | --exe=* | --ex=*)
897    exec_prefix=$ac_optarg ;;
898
899  -gas | --gas | --ga | --g)
900    # Obsolete; use --with-gas.
901    with_gas=yes ;;
902
903  -help | --help | --hel | --he | -h)
904    ac_init_help=long ;;
905  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906    ac_init_help=recursive ;;
907  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908    ac_init_help=short ;;
909
910  -host | --host | --hos | --ho)
911    ac_prev=host_alias ;;
912  -host=* | --host=* | --hos=* | --ho=*)
913    host_alias=$ac_optarg ;;
914
915  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916    ac_prev=htmldir ;;
917  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918  | --ht=*)
919    htmldir=$ac_optarg ;;
920
921  -includedir | --includedir | --includedi | --included | --include \
922  | --includ | --inclu | --incl | --inc)
923    ac_prev=includedir ;;
924  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925  | --includ=* | --inclu=* | --incl=* | --inc=*)
926    includedir=$ac_optarg ;;
927
928  -infodir | --infodir | --infodi | --infod | --info | --inf)
929    ac_prev=infodir ;;
930  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931    infodir=$ac_optarg ;;
932
933  -libdir | --libdir | --libdi | --libd)
934    ac_prev=libdir ;;
935  -libdir=* | --libdir=* | --libdi=* | --libd=*)
936    libdir=$ac_optarg ;;
937
938  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939  | --libexe | --libex | --libe)
940    ac_prev=libexecdir ;;
941  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942  | --libexe=* | --libex=* | --libe=*)
943    libexecdir=$ac_optarg ;;
944
945  -localedir | --localedir | --localedi | --localed | --locale)
946    ac_prev=localedir ;;
947  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948    localedir=$ac_optarg ;;
949
950  -localstatedir | --localstatedir | --localstatedi | --localstated \
951  | --localstate | --localstat | --localsta | --localst | --locals)
952    ac_prev=localstatedir ;;
953  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955    localstatedir=$ac_optarg ;;
956
957  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958    ac_prev=mandir ;;
959  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960    mandir=$ac_optarg ;;
961
962  -nfp | --nfp | --nf)
963    # Obsolete; use --without-fp.
964    with_fp=no ;;
965
966  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967  | --no-cr | --no-c | -n)
968    no_create=yes ;;
969
970  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972    no_recursion=yes ;;
973
974  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976  | --oldin | --oldi | --old | --ol | --o)
977    ac_prev=oldincludedir ;;
978  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981    oldincludedir=$ac_optarg ;;
982
983  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984    ac_prev=prefix ;;
985  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
986    prefix=$ac_optarg ;;
987
988  -program-prefix | --program-prefix | --program-prefi | --program-pref \
989  | --program-pre | --program-pr | --program-p)
990    ac_prev=program_prefix ;;
991  -program-prefix=* | --program-prefix=* | --program-prefi=* \
992  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993    program_prefix=$ac_optarg ;;
994
995  -program-suffix | --program-suffix | --program-suffi | --program-suff \
996  | --program-suf | --program-su | --program-s)
997    ac_prev=program_suffix ;;
998  -program-suffix=* | --program-suffix=* | --program-suffi=* \
999  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000    program_suffix=$ac_optarg ;;
1001
1002  -program-transform-name | --program-transform-name \
1003  | --program-transform-nam | --program-transform-na \
1004  | --program-transform-n | --program-transform- \
1005  | --program-transform | --program-transfor \
1006  | --program-transfo | --program-transf \
1007  | --program-trans | --program-tran \
1008  | --progr-tra | --program-tr | --program-t)
1009    ac_prev=program_transform_name ;;
1010  -program-transform-name=* | --program-transform-name=* \
1011  | --program-transform-nam=* | --program-transform-na=* \
1012  | --program-transform-n=* | --program-transform-=* \
1013  | --program-transform=* | --program-transfor=* \
1014  | --program-transfo=* | --program-transf=* \
1015  | --program-trans=* | --program-tran=* \
1016  | --progr-tra=* | --program-tr=* | --program-t=*)
1017    program_transform_name=$ac_optarg ;;
1018
1019  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020    ac_prev=pdfdir ;;
1021  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022    pdfdir=$ac_optarg ;;
1023
1024  -psdir | --psdir | --psdi | --psd | --ps)
1025    ac_prev=psdir ;;
1026  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027    psdir=$ac_optarg ;;
1028
1029  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030  | -silent | --silent | --silen | --sile | --sil)
1031    silent=yes ;;
1032
1033  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034    ac_prev=sbindir ;;
1035  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036  | --sbi=* | --sb=*)
1037    sbindir=$ac_optarg ;;
1038
1039  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041  | --sharedst | --shareds | --shared | --share | --shar \
1042  | --sha | --sh)
1043    ac_prev=sharedstatedir ;;
1044  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047  | --sha=* | --sh=*)
1048    sharedstatedir=$ac_optarg ;;
1049
1050  -site | --site | --sit)
1051    ac_prev=site ;;
1052  -site=* | --site=* | --sit=*)
1053    site=$ac_optarg ;;
1054
1055  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056    ac_prev=srcdir ;;
1057  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058    srcdir=$ac_optarg ;;
1059
1060  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061  | --syscon | --sysco | --sysc | --sys | --sy)
1062    ac_prev=sysconfdir ;;
1063  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065    sysconfdir=$ac_optarg ;;
1066
1067  -target | --target | --targe | --targ | --tar | --ta | --t)
1068    ac_prev=target_alias ;;
1069  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070    target_alias=$ac_optarg ;;
1071
1072  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073    verbose=yes ;;
1074
1075  -version | --version | --versio | --versi | --vers | -V)
1076    ac_init_version=: ;;
1077
1078  -with-* | --with-*)
1079    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080    # Reject names that are not valid shell variable names.
1081    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082      as_fn_error "invalid package name: $ac_useropt"
1083    ac_useropt_orig=$ac_useropt
1084    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085    case $ac_user_opts in
1086      *"
1087"with_$ac_useropt"
1088"*) ;;
1089      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090	 ac_unrecognized_sep=', ';;
1091    esac
1092    eval with_$ac_useropt=\$ac_optarg ;;
1093
1094  -without-* | --without-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1106	 ac_unrecognized_sep=', ';;
1107    esac
1108    eval with_$ac_useropt=no ;;
1109
1110  --x)
1111    # Obsolete; use --with-x.
1112    with_x=yes ;;
1113
1114  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115  | --x-incl | --x-inc | --x-in | --x-i)
1116    ac_prev=x_includes ;;
1117  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119    x_includes=$ac_optarg ;;
1120
1121  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123    ac_prev=x_libraries ;;
1124  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126    x_libraries=$ac_optarg ;;
1127
1128  -*) as_fn_error "unrecognized option: \`$ac_option'
1129Try \`$0 --help' for more information."
1130    ;;
1131
1132  *=*)
1133    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134    # Reject names that are not valid shell variable names.
1135    case $ac_envvar in #(
1136      '' | [0-9]* | *[!_$as_cr_alnum]* )
1137      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1138    esac
1139    eval $ac_envvar=\$ac_optarg
1140    export $ac_envvar ;;
1141
1142  *)
1143    # FIXME: should be removed in autoconf 3.0.
1144    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1148    ;;
1149
1150  esac
1151done
1152
1153if test -n "$ac_prev"; then
1154  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155  as_fn_error "missing argument to $ac_option"
1156fi
1157
1158if test -n "$ac_unrecognized_opts"; then
1159  case $enable_option_checking in
1160    no) ;;
1161    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1162    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163  esac
1164fi
1165
1166# Check all directory arguments for consistency.
1167for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168		datadir sysconfdir sharedstatedir localstatedir includedir \
1169		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170		libdir localedir mandir
1171do
1172  eval ac_val=\$$ac_var
1173  # Remove trailing slashes.
1174  case $ac_val in
1175    */ )
1176      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177      eval $ac_var=\$ac_val;;
1178  esac
1179  # Be sure to have absolute directory names.
1180  case $ac_val in
1181    [\\/$]* | ?:[\\/]* )  continue;;
1182    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183  esac
1184  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1185done
1186
1187# There might be people who depend on the old broken behavior: `$host'
1188# used to hold the argument of --host etc.
1189# FIXME: To remove some day.
1190build=$build_alias
1191host=$host_alias
1192target=$target_alias
1193
1194# FIXME: To remove some day.
1195if test "x$host_alias" != x; then
1196  if test "x$build_alias" = x; then
1197    cross_compiling=maybe
1198    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199    If a cross compiler is detected then cross compile mode will be used." >&2
1200  elif test "x$build_alias" != "x$host_alias"; then
1201    cross_compiling=yes
1202  fi
1203fi
1204
1205ac_tool_prefix=
1206test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207
1208test "$silent" = yes && exec 6>/dev/null
1209
1210
1211ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212ac_ls_di=`ls -di .` &&
1213ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214  as_fn_error "working directory cannot be determined"
1215test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216  as_fn_error "pwd does not report name of working directory"
1217
1218
1219# Find the source files, if location was not specified.
1220if test -z "$srcdir"; then
1221  ac_srcdir_defaulted=yes
1222  # Try the directory containing this script, then the parent directory.
1223  ac_confdir=`$as_dirname -- "$as_myself" ||
1224$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225	 X"$as_myself" : 'X\(//\)[^/]' \| \
1226	 X"$as_myself" : 'X\(//\)$' \| \
1227	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228$as_echo X"$as_myself" |
1229    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230	    s//\1/
1231	    q
1232	  }
1233	  /^X\(\/\/\)[^/].*/{
1234	    s//\1/
1235	    q
1236	  }
1237	  /^X\(\/\/\)$/{
1238	    s//\1/
1239	    q
1240	  }
1241	  /^X\(\/\).*/{
1242	    s//\1/
1243	    q
1244	  }
1245	  s/.*/./; q'`
1246  srcdir=$ac_confdir
1247  if test ! -r "$srcdir/$ac_unique_file"; then
1248    srcdir=..
1249  fi
1250else
1251  ac_srcdir_defaulted=no
1252fi
1253if test ! -r "$srcdir/$ac_unique_file"; then
1254  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1256fi
1257ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258ac_abs_confdir=`(
1259	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1260	pwd)`
1261# When building in place, set srcdir=.
1262if test "$ac_abs_confdir" = "$ac_pwd"; then
1263  srcdir=.
1264fi
1265# Remove unnecessary trailing slashes from srcdir.
1266# Double slashes in file names in object file debugging info
1267# mess up M-x gdb in Emacs.
1268case $srcdir in
1269*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270esac
1271for ac_var in $ac_precious_vars; do
1272  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273  eval ac_env_${ac_var}_value=\$${ac_var}
1274  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276done
1277
1278#
1279# Report the --help message.
1280#
1281if test "$ac_init_help" = "long"; then
1282  # Omit some internal or obsolete options to make the list less imposing.
1283  # This message is too long to be a string in the A/UX 3.1 sh.
1284  cat <<_ACEOF
1285\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1286
1287Usage: $0 [OPTION]... [VAR=VALUE]...
1288
1289To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290VAR=VALUE.  See below for descriptions of some of the useful variables.
1291
1292Defaults for the options are specified in brackets.
1293
1294Configuration:
1295  -h, --help              display this help and exit
1296      --help=short        display options specific to this package
1297      --help=recursive    display the short help of all the included packages
1298  -V, --version           display version information and exit
1299  -q, --quiet, --silent   do not print \`checking...' messages
1300      --cache-file=FILE   cache test results in FILE [disabled]
1301  -C, --config-cache      alias for \`--cache-file=config.cache'
1302  -n, --no-create         do not create output files
1303      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1304
1305Installation directories:
1306  --prefix=PREFIX         install architecture-independent files in PREFIX
1307                          [$ac_default_prefix]
1308  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1309                          [PREFIX]
1310
1311By default, \`make install' will install all the files in
1312\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1313an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314for instance \`--prefix=\$HOME'.
1315
1316For better control, use the options below.
1317
1318Fine tuning of the installation directories:
1319  --bindir=DIR            user executables [EPREFIX/bin]
1320  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1321  --libexecdir=DIR        program executables [EPREFIX/libexec]
1322  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1323  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1324  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1325  --libdir=DIR            object code libraries [EPREFIX/lib]
1326  --includedir=DIR        C header files [PREFIX/include]
1327  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1328  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1329  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1330  --infodir=DIR           info documentation [DATAROOTDIR/info]
1331  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1332  --mandir=DIR            man documentation [DATAROOTDIR/man]
1333  --docdir=DIR            documentation root [DATAROOTDIR/doc/libbacktrace]
1334  --htmldir=DIR           html documentation [DOCDIR]
1335  --dvidir=DIR            dvi documentation [DOCDIR]
1336  --pdfdir=DIR            pdf documentation [DOCDIR]
1337  --psdir=DIR             ps documentation [DOCDIR]
1338_ACEOF
1339
1340  cat <<\_ACEOF
1341
1342Program names:
1343  --program-prefix=PREFIX            prepend PREFIX to installed program names
1344  --program-suffix=SUFFIX            append SUFFIX to installed program names
1345  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1346
1347System types:
1348  --build=BUILD     configure for building on BUILD [guessed]
1349  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1350  --target=TARGET   configure for building compilers for TARGET [HOST]
1351_ACEOF
1352fi
1353
1354if test -n "$ac_init_help"; then
1355  case $ac_init_help in
1356     short | recursive ) echo "Configuration of package-unused version-unused:";;
1357   esac
1358  cat <<\_ACEOF
1359
1360Optional Features:
1361  --disable-option-checking  ignore unrecognized --enable/--with options
1362  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1363  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1364  --enable-multilib       build many library versions (default)
1365  --enable-maintainer-mode  enable make rules and dependencies not useful
1366			  (and sometimes confusing) to the casual installer
1367  --enable-shared[=PKGS]  build shared libraries [default=no]
1368  --enable-static[=PKGS]  build static libraries [default=yes]
1369  --enable-fast-install[=PKGS]
1370                          optimize for fast installation [default=yes]
1371  --disable-libtool-lock  avoid locking (might break parallel builds)
1372
1373Optional Packages:
1374  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1375  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1376  --with-target-subdir=SUBDIR      Configuring in a subdirectory for target
1377  --with-pic              try to use only PIC/non-PIC objects [default=use
1378                          both]
1379  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1380  --with-system-libunwind use installed libunwind
1381
1382Some influential environment variables:
1383  CC          C compiler command
1384  CFLAGS      C compiler flags
1385  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1386              nonstandard directory <lib dir>
1387  LIBS        libraries to pass to the linker, e.g. -l<library>
1388  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1389              you have headers in a nonstandard directory <include dir>
1390  CPP         C preprocessor
1391
1392Use these variables to override the choices made by `configure' or to help
1393it to find libraries and programs with nonstandard names/locations.
1394
1395Report bugs to the package provider.
1396_ACEOF
1397ac_status=$?
1398fi
1399
1400if test "$ac_init_help" = "recursive"; then
1401  # If there are subdirs, report their specific --help.
1402  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403    test -d "$ac_dir" ||
1404      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405      continue
1406    ac_builddir=.
1407
1408case "$ac_dir" in
1409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410*)
1411  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1412  # A ".." for each directory in $ac_dir_suffix.
1413  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1414  case $ac_top_builddir_sub in
1415  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417  esac ;;
1418esac
1419ac_abs_top_builddir=$ac_pwd
1420ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421# for backward compatibility:
1422ac_top_builddir=$ac_top_build_prefix
1423
1424case $srcdir in
1425  .)  # We are building in place.
1426    ac_srcdir=.
1427    ac_top_srcdir=$ac_top_builddir_sub
1428    ac_abs_top_srcdir=$ac_pwd ;;
1429  [\\/]* | ?:[\\/]* )  # Absolute name.
1430    ac_srcdir=$srcdir$ac_dir_suffix;
1431    ac_top_srcdir=$srcdir
1432    ac_abs_top_srcdir=$srcdir ;;
1433  *) # Relative name.
1434    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435    ac_top_srcdir=$ac_top_build_prefix$srcdir
1436    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437esac
1438ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1439
1440    cd "$ac_dir" || { ac_status=$?; continue; }
1441    # Check for guested configure.
1442    if test -f "$ac_srcdir/configure.gnu"; then
1443      echo &&
1444      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445    elif test -f "$ac_srcdir/configure"; then
1446      echo &&
1447      $SHELL "$ac_srcdir/configure" --help=recursive
1448    else
1449      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450    fi || ac_status=$?
1451    cd "$ac_pwd" || { ac_status=$?; break; }
1452  done
1453fi
1454
1455test -n "$ac_init_help" && exit $ac_status
1456if $ac_init_version; then
1457  cat <<\_ACEOF
1458package-unused configure version-unused
1459generated by GNU Autoconf 2.64
1460
1461Copyright (C) 2009 Free Software Foundation, Inc.
1462This configure script is free software; the Free Software Foundation
1463gives unlimited permission to copy, distribute and modify it.
1464_ACEOF
1465  exit
1466fi
1467
1468## ------------------------ ##
1469## Autoconf initialization. ##
1470## ------------------------ ##
1471
1472# ac_fn_c_try_compile LINENO
1473# --------------------------
1474# Try to compile conftest.$ac_ext, and return whether this succeeded.
1475ac_fn_c_try_compile ()
1476{
1477  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478  rm -f conftest.$ac_objext
1479  if { { ac_try="$ac_compile"
1480case "(($ac_try" in
1481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482  *) ac_try_echo=$ac_try;;
1483esac
1484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485$as_echo "$ac_try_echo"; } >&5
1486  (eval "$ac_compile") 2>conftest.err
1487  ac_status=$?
1488  if test -s conftest.err; then
1489    grep -v '^ *+' conftest.err >conftest.er1
1490    cat conftest.er1 >&5
1491    mv -f conftest.er1 conftest.err
1492  fi
1493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494  test $ac_status = 0; } && {
1495	 test -z "$ac_c_werror_flag" ||
1496	 test ! -s conftest.err
1497       } && test -s conftest.$ac_objext; then :
1498  ac_retval=0
1499else
1500  $as_echo "$as_me: failed program was:" >&5
1501sed 's/^/| /' conftest.$ac_ext >&5
1502
1503	ac_retval=1
1504fi
1505  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1506  return $ac_retval
1507
1508} # ac_fn_c_try_compile
1509
1510# ac_fn_c_try_cpp LINENO
1511# ----------------------
1512# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1513ac_fn_c_try_cpp ()
1514{
1515  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516  if { { ac_try="$ac_cpp conftest.$ac_ext"
1517case "(($ac_try" in
1518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519  *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1524  ac_status=$?
1525  if test -s conftest.err; then
1526    grep -v '^ *+' conftest.err >conftest.er1
1527    cat conftest.er1 >&5
1528    mv -f conftest.er1 conftest.err
1529  fi
1530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531  test $ac_status = 0; } >/dev/null && {
1532	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1533	 test ! -s conftest.err
1534       }; then :
1535  ac_retval=0
1536else
1537  $as_echo "$as_me: failed program was:" >&5
1538sed 's/^/| /' conftest.$ac_ext >&5
1539
1540    ac_retval=1
1541fi
1542  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1543  return $ac_retval
1544
1545} # ac_fn_c_try_cpp
1546
1547# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1548# -------------------------------------------------------
1549# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1550# the include files in INCLUDES and setting the cache variable VAR
1551# accordingly.
1552ac_fn_c_check_header_mongrel ()
1553{
1554  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1557$as_echo_n "checking for $2... " >&6; }
1558if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1559  $as_echo_n "(cached) " >&6
1560fi
1561eval ac_res=\$$3
1562	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1563$as_echo "$ac_res" >&6; }
1564else
1565  # Is the header compilable?
1566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1567$as_echo_n "checking $2 usability... " >&6; }
1568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569/* end confdefs.h.  */
1570$4
1571#include <$2>
1572_ACEOF
1573if ac_fn_c_try_compile "$LINENO"; then :
1574  ac_header_compiler=yes
1575else
1576  ac_header_compiler=no
1577fi
1578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1580$as_echo "$ac_header_compiler" >&6; }
1581
1582# Is the header present?
1583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1584$as_echo_n "checking $2 presence... " >&6; }
1585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586/* end confdefs.h.  */
1587#include <$2>
1588_ACEOF
1589if ac_fn_c_try_cpp "$LINENO"; then :
1590  ac_header_preproc=yes
1591else
1592  ac_header_preproc=no
1593fi
1594rm -f conftest.err conftest.$ac_ext
1595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1596$as_echo "$ac_header_preproc" >&6; }
1597
1598# So?  What about this header?
1599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1600  yes:no: )
1601    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1602$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1603    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1604$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1605    ;;
1606  no:yes:* )
1607    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1608$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1609    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1610$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1611    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1612$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1613    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1614$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1615    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1616$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1617    ;;
1618esac
1619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620$as_echo_n "checking for $2... " >&6; }
1621if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1622  $as_echo_n "(cached) " >&6
1623else
1624  eval "$3=\$ac_header_compiler"
1625fi
1626eval ac_res=\$$3
1627	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628$as_echo "$ac_res" >&6; }
1629fi
1630  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631
1632} # ac_fn_c_check_header_mongrel
1633
1634# ac_fn_c_try_run LINENO
1635# ----------------------
1636# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1637# that executables *can* be run.
1638ac_fn_c_try_run ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  if { { ac_try="$ac_link"
1642case "(($ac_try" in
1643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644  *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647$as_echo "$ac_try_echo"; } >&5
1648  (eval "$ac_link") 2>&5
1649  ac_status=$?
1650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1652  { { case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_try") 2>&5
1659  ac_status=$?
1660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; }; }; then :
1662  ac_retval=0
1663else
1664  $as_echo "$as_me: program exited with status $ac_status" >&5
1665       $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668       ac_retval=$ac_status
1669fi
1670  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672  return $ac_retval
1673
1674} # ac_fn_c_try_run
1675
1676# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677# -------------------------------------------------------
1678# Tests whether HEADER exists and can be compiled using the include files in
1679# INCLUDES, setting the cache variable VAR accordingly.
1680ac_fn_c_check_header_compile ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684$as_echo_n "checking for $2... " >&6; }
1685if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1686  $as_echo_n "(cached) " >&6
1687else
1688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h.  */
1690$4
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694  eval "$3=yes"
1695else
1696  eval "$3=no"
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699fi
1700eval ac_res=\$$3
1701	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702$as_echo "$ac_res" >&6; }
1703  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704
1705} # ac_fn_c_check_header_compile
1706
1707# ac_fn_c_try_link LINENO
1708# -----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_link ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  rm -f conftest.$ac_objext conftest$ac_exeext
1714  if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717  *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721  (eval "$ac_link") 2>conftest.err
1722  ac_status=$?
1723  if test -s conftest.err; then
1724    grep -v '^ *+' conftest.err >conftest.er1
1725    cat conftest.er1 >&5
1726    mv -f conftest.er1 conftest.err
1727  fi
1728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729  test $ac_status = 0; } && {
1730	 test -z "$ac_c_werror_flag" ||
1731	 test ! -s conftest.err
1732       } && test -s conftest$ac_exeext && {
1733	 test "$cross_compiling" = yes ||
1734	 $as_test_x conftest$ac_exeext
1735       }; then :
1736  ac_retval=0
1737else
1738  $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741	ac_retval=1
1742fi
1743  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745  # interfere with the next link command; also delete a directory that is
1746  # left behind by Apple's compiler.  We do this before executing the actions.
1747  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749  return $ac_retval
1750
1751} # ac_fn_c_try_link
1752
1753# ac_fn_c_check_func LINENO FUNC VAR
1754# ----------------------------------
1755# Tests whether FUNC exists, setting the cache variable VAR accordingly
1756ac_fn_c_check_func ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760$as_echo_n "checking for $2... " >&6; }
1761if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1762  $as_echo_n "(cached) " >&6
1763else
1764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h.  */
1766/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1767   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1768#define $2 innocuous_$2
1769
1770/* System header to define __stub macros and hopefully few prototypes,
1771    which can conflict with char $2 (); below.
1772    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1773    <limits.h> exists even on freestanding compilers.  */
1774
1775#ifdef __STDC__
1776# include <limits.h>
1777#else
1778# include <assert.h>
1779#endif
1780
1781#undef $2
1782
1783/* Override any GCC internal prototype to avoid an error.
1784   Use char because int might match the return type of a GCC
1785   builtin and then its argument prototype would still apply.  */
1786#ifdef __cplusplus
1787extern "C"
1788#endif
1789char $2 ();
1790/* The GNU C library defines this for functions which it implements
1791    to always fail with ENOSYS.  Some functions are actually named
1792    something starting with __ and the normal name is an alias.  */
1793#if defined __stub_$2 || defined __stub___$2
1794choke me
1795#endif
1796
1797int
1798main ()
1799{
1800return $2 ();
1801  ;
1802  return 0;
1803}
1804_ACEOF
1805if ac_fn_c_try_link "$LINENO"; then :
1806  eval "$3=yes"
1807else
1808  eval "$3=no"
1809fi
1810rm -f core conftest.err conftest.$ac_objext \
1811    conftest$ac_exeext conftest.$ac_ext
1812fi
1813eval ac_res=\$$3
1814	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
1816  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817
1818} # ac_fn_c_check_func
1819
1820# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1821# -------------------------------------------
1822# Tests whether TYPE exists after having included INCLUDES, setting cache
1823# variable VAR accordingly.
1824ac_fn_c_check_type ()
1825{
1826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828$as_echo_n "checking for $2... " >&6; }
1829if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830  $as_echo_n "(cached) " >&6
1831else
1832  eval "$3=no"
1833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h.  */
1835$4
1836int
1837main ()
1838{
1839if (sizeof ($2))
1840	 return 0;
1841  ;
1842  return 0;
1843}
1844_ACEOF
1845if ac_fn_c_try_compile "$LINENO"; then :
1846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848$4
1849int
1850main ()
1851{
1852if (sizeof (($2)))
1853	    return 0;
1854  ;
1855  return 0;
1856}
1857_ACEOF
1858if ac_fn_c_try_compile "$LINENO"; then :
1859
1860else
1861  eval "$3=yes"
1862fi
1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864fi
1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866fi
1867eval ac_res=\$$3
1868	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
1872} # ac_fn_c_check_type
1873
1874# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1875# --------------------------------------------
1876# Tries to find the compile-time value of EXPR in a program that includes
1877# INCLUDES, setting VAR accordingly. Returns whether the value could be
1878# computed
1879ac_fn_c_compute_int ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  if test "$cross_compiling" = yes; then
1883    # Depending upon the size, compute the lo and hi bounds.
1884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h.  */
1886$4
1887int
1888main ()
1889{
1890static int test_array [1 - 2 * !(($2) >= 0)];
1891test_array [0] = 0
1892
1893  ;
1894  return 0;
1895}
1896_ACEOF
1897if ac_fn_c_try_compile "$LINENO"; then :
1898  ac_lo=0 ac_mid=0
1899  while :; do
1900    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h.  */
1902$4
1903int
1904main ()
1905{
1906static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1907test_array [0] = 0
1908
1909  ;
1910  return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_compile "$LINENO"; then :
1914  ac_hi=$ac_mid; break
1915else
1916  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1917			if test $ac_lo -le $ac_mid; then
1918			  ac_lo= ac_hi=
1919			  break
1920			fi
1921			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924  done
1925else
1926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h.  */
1928$4
1929int
1930main ()
1931{
1932static int test_array [1 - 2 * !(($2) < 0)];
1933test_array [0] = 0
1934
1935  ;
1936  return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940  ac_hi=-1 ac_mid=-1
1941  while :; do
1942    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$4
1945int
1946main ()
1947{
1948static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1949test_array [0] = 0
1950
1951  ;
1952  return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956  ac_lo=$ac_mid; break
1957else
1958  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1959			if test $ac_mid -le $ac_hi; then
1960			  ac_lo= ac_hi=
1961			  break
1962			fi
1963			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966  done
1967else
1968  ac_lo= ac_hi=
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971fi
1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973# Binary search between lo and hi bounds.
1974while test "x$ac_lo" != "x$ac_hi"; do
1975  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h.  */
1978$4
1979int
1980main ()
1981{
1982static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1983test_array [0] = 0
1984
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990  ac_hi=$ac_mid
1991else
1992  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995done
1996case $ac_lo in #((
1997?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1998'') ac_retval=1 ;;
1999esac
2000  else
2001    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h.  */
2003$4
2004static long int longval () { return $2; }
2005static unsigned long int ulongval () { return $2; }
2006#include <stdio.h>
2007#include <stdlib.h>
2008int
2009main ()
2010{
2011
2012  FILE *f = fopen ("conftest.val", "w");
2013  if (! f)
2014    return 1;
2015  if (($2) < 0)
2016    {
2017      long int i = longval ();
2018      if (i != ($2))
2019	return 1;
2020      fprintf (f, "%ld", i);
2021    }
2022  else
2023    {
2024      unsigned long int i = ulongval ();
2025      if (i != ($2))
2026	return 1;
2027      fprintf (f, "%lu", i);
2028    }
2029  /* Do not output a trailing newline, as this causes \r\n confusion
2030     on some platforms.  */
2031  return ferror (f) || fclose (f) != 0;
2032
2033  ;
2034  return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_run "$LINENO"; then :
2038  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2039else
2040  ac_retval=1
2041fi
2042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2043  conftest.$ac_objext conftest.beam conftest.$ac_ext
2044rm -f conftest.val
2045
2046  fi
2047  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048  return $ac_retval
2049
2050} # ac_fn_c_compute_int
2051
2052# ac_fn_c_check_decl LINENO SYMBOL VAR
2053# ------------------------------------
2054# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2055ac_fn_c_check_decl ()
2056{
2057  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058  as_decl_name=`echo $2|sed 's/ *(.*//'`
2059  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2061$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2062if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2063  $as_echo_n "(cached) " >&6
2064else
2065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h.  */
2067$4
2068int
2069main ()
2070{
2071#ifndef $as_decl_name
2072#ifdef __cplusplus
2073  (void) $as_decl_use;
2074#else
2075  (void) $as_decl_name;
2076#endif
2077#endif
2078
2079  ;
2080  return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084  eval "$3=yes"
2085else
2086  eval "$3=no"
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089fi
2090eval ac_res=\$$3
2091	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092$as_echo "$ac_res" >&6; }
2093  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094
2095} # ac_fn_c_check_decl
2096cat >config.log <<_ACEOF
2097This file contains any messages produced by compilers while
2098running configure, to aid debugging if configure makes a mistake.
2099
2100It was created by package-unused $as_me version-unused, which was
2101generated by GNU Autoconf 2.64.  Invocation command line was
2102
2103  $ $0 $@
2104
2105_ACEOF
2106exec 5>>config.log
2107{
2108cat <<_ASUNAME
2109## --------- ##
2110## Platform. ##
2111## --------- ##
2112
2113hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2114uname -m = `(uname -m) 2>/dev/null || echo unknown`
2115uname -r = `(uname -r) 2>/dev/null || echo unknown`
2116uname -s = `(uname -s) 2>/dev/null || echo unknown`
2117uname -v = `(uname -v) 2>/dev/null || echo unknown`
2118
2119/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2120/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2121
2122/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2123/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2124/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2125/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2126/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2127/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2128/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2129
2130_ASUNAME
2131
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135  IFS=$as_save_IFS
2136  test -z "$as_dir" && as_dir=.
2137    $as_echo "PATH: $as_dir"
2138  done
2139IFS=$as_save_IFS
2140
2141} >&5
2142
2143cat >&5 <<_ACEOF
2144
2145
2146## ----------- ##
2147## Core tests. ##
2148## ----------- ##
2149
2150_ACEOF
2151
2152
2153# Keep a trace of the command line.
2154# Strip out --no-create and --no-recursion so they do not pile up.
2155# Strip out --silent because we don't want to record it for future runs.
2156# Also quote any args containing shell meta-characters.
2157# Make two passes to allow for proper duplicate-argument suppression.
2158ac_configure_args=
2159ac_configure_args0=
2160ac_configure_args1=
2161ac_must_keep_next=false
2162for ac_pass in 1 2
2163do
2164  for ac_arg
2165  do
2166    case $ac_arg in
2167    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2168    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2169    | -silent | --silent | --silen | --sile | --sil)
2170      continue ;;
2171    *\'*)
2172      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2173    esac
2174    case $ac_pass in
2175    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2176    2)
2177      as_fn_append ac_configure_args1 " '$ac_arg'"
2178      if test $ac_must_keep_next = true; then
2179	ac_must_keep_next=false # Got value, back to normal.
2180      else
2181	case $ac_arg in
2182	  *=* | --config-cache | -C | -disable-* | --disable-* \
2183	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2184	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2185	  | -with-* | --with-* | -without-* | --without-* | --x)
2186	    case "$ac_configure_args0 " in
2187	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2188	    esac
2189	    ;;
2190	  -* ) ac_must_keep_next=true ;;
2191	esac
2192      fi
2193      as_fn_append ac_configure_args " '$ac_arg'"
2194      ;;
2195    esac
2196  done
2197done
2198{ ac_configure_args0=; unset ac_configure_args0;}
2199{ ac_configure_args1=; unset ac_configure_args1;}
2200
2201# When interrupted or exit'd, cleanup temporary files, and complete
2202# config.log.  We remove comments because anyway the quotes in there
2203# would cause problems or look ugly.
2204# WARNING: Use '\'' to represent an apostrophe within the trap.
2205# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2206trap 'exit_status=$?
2207  # Save into config.log some information that might help in debugging.
2208  {
2209    echo
2210
2211    cat <<\_ASBOX
2212## ---------------- ##
2213## Cache variables. ##
2214## ---------------- ##
2215_ASBOX
2216    echo
2217    # The following way of writing the cache mishandles newlines in values,
2218(
2219  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2220    eval ac_val=\$$ac_var
2221    case $ac_val in #(
2222    *${as_nl}*)
2223      case $ac_var in #(
2224      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2225$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2226      esac
2227      case $ac_var in #(
2228      _ | IFS | as_nl) ;; #(
2229      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2230      *) { eval $ac_var=; unset $ac_var;} ;;
2231      esac ;;
2232    esac
2233  done
2234  (set) 2>&1 |
2235    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2236    *${as_nl}ac_space=\ *)
2237      sed -n \
2238	"s/'\''/'\''\\\\'\'''\''/g;
2239	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2240      ;; #(
2241    *)
2242      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2243      ;;
2244    esac |
2245    sort
2246)
2247    echo
2248
2249    cat <<\_ASBOX
2250## ----------------- ##
2251## Output variables. ##
2252## ----------------- ##
2253_ASBOX
2254    echo
2255    for ac_var in $ac_subst_vars
2256    do
2257      eval ac_val=\$$ac_var
2258      case $ac_val in
2259      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260      esac
2261      $as_echo "$ac_var='\''$ac_val'\''"
2262    done | sort
2263    echo
2264
2265    if test -n "$ac_subst_files"; then
2266      cat <<\_ASBOX
2267## ------------------- ##
2268## File substitutions. ##
2269## ------------------- ##
2270_ASBOX
2271      echo
2272      for ac_var in $ac_subst_files
2273      do
2274	eval ac_val=\$$ac_var
2275	case $ac_val in
2276	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277	esac
2278	$as_echo "$ac_var='\''$ac_val'\''"
2279      done | sort
2280      echo
2281    fi
2282
2283    if test -s confdefs.h; then
2284      cat <<\_ASBOX
2285## ----------- ##
2286## confdefs.h. ##
2287## ----------- ##
2288_ASBOX
2289      echo
2290      cat confdefs.h
2291      echo
2292    fi
2293    test "$ac_signal" != 0 &&
2294      $as_echo "$as_me: caught signal $ac_signal"
2295    $as_echo "$as_me: exit $exit_status"
2296  } >&5
2297  rm -f core *.core core.conftest.* &&
2298    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2299    exit $exit_status
2300' 0
2301for ac_signal in 1 2 13 15; do
2302  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2303done
2304ac_signal=0
2305
2306# confdefs.h avoids OS command line length limits that DEFS can exceed.
2307rm -f -r conftest* confdefs.h
2308
2309$as_echo "/* confdefs.h */" > confdefs.h
2310
2311# Predefined preprocessor variables.
2312
2313cat >>confdefs.h <<_ACEOF
2314#define PACKAGE_NAME "$PACKAGE_NAME"
2315_ACEOF
2316
2317cat >>confdefs.h <<_ACEOF
2318#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319_ACEOF
2320
2321cat >>confdefs.h <<_ACEOF
2322#define PACKAGE_VERSION "$PACKAGE_VERSION"
2323_ACEOF
2324
2325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_STRING "$PACKAGE_STRING"
2327_ACEOF
2328
2329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2331_ACEOF
2332
2333cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_URL "$PACKAGE_URL"
2335_ACEOF
2336
2337
2338# Let the site file select an alternate cache file if it wants to.
2339# Prefer an explicitly selected file to automatically selected ones.
2340ac_site_file1=NONE
2341ac_site_file2=NONE
2342if test -n "$CONFIG_SITE"; then
2343  ac_site_file1=$CONFIG_SITE
2344elif test "x$prefix" != xNONE; then
2345  ac_site_file1=$prefix/share/config.site
2346  ac_site_file2=$prefix/etc/config.site
2347else
2348  ac_site_file1=$ac_default_prefix/share/config.site
2349  ac_site_file2=$ac_default_prefix/etc/config.site
2350fi
2351for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2352do
2353  test "x$ac_site_file" = xNONE && continue
2354  if test -r "$ac_site_file"; then
2355    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2356$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2357    sed 's/^/| /' "$ac_site_file" >&5
2358    . "$ac_site_file"
2359  fi
2360done
2361
2362if test -r "$cache_file"; then
2363  # Some versions of bash will fail to source /dev/null (special
2364  # files actually), so we avoid doing that.
2365  if test -f "$cache_file"; then
2366    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2367$as_echo "$as_me: loading cache $cache_file" >&6;}
2368    case $cache_file in
2369      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2370      *)                      . "./$cache_file";;
2371    esac
2372  fi
2373else
2374  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2375$as_echo "$as_me: creating cache $cache_file" >&6;}
2376  >$cache_file
2377fi
2378
2379# Check that the precious variables saved in the cache have kept the same
2380# value.
2381ac_cache_corrupted=false
2382for ac_var in $ac_precious_vars; do
2383  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2384  eval ac_new_set=\$ac_env_${ac_var}_set
2385  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2386  eval ac_new_val=\$ac_env_${ac_var}_value
2387  case $ac_old_set,$ac_new_set in
2388    set,)
2389      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2390$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2391      ac_cache_corrupted=: ;;
2392    ,set)
2393      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2394$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2395      ac_cache_corrupted=: ;;
2396    ,);;
2397    *)
2398      if test "x$ac_old_val" != "x$ac_new_val"; then
2399	# differences in whitespace do not lead to failure.
2400	ac_old_val_w=`echo x $ac_old_val`
2401	ac_new_val_w=`echo x $ac_new_val`
2402	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2403	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2404$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2405	  ac_cache_corrupted=:
2406	else
2407	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2408$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2409	  eval $ac_var=\$ac_old_val
2410	fi
2411	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2412$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2413	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2414$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2415      fi;;
2416  esac
2417  # Pass precious variables to config.status.
2418  if test "$ac_new_set" = set; then
2419    case $ac_new_val in
2420    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2421    *) ac_arg=$ac_var=$ac_new_val ;;
2422    esac
2423    case " $ac_configure_args " in
2424      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2425      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2426    esac
2427  fi
2428done
2429if $ac_cache_corrupted; then
2430  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2432  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2433$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2434  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2435fi
2436## -------------------- ##
2437## Main body of script. ##
2438## -------------------- ##
2439
2440ac_ext=c
2441ac_cpp='$CPP $CPPFLAGS'
2442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445
2446
2447
2448
2449
2450
2451ac_config_headers="$ac_config_headers config.h"
2452
2453
2454if test -n "${with_target_subdir}"; then
2455  # Default to --enable-multilib
2456# Check whether --enable-multilib was given.
2457if test "${enable_multilib+set}" = set; then :
2458  enableval=$enable_multilib; case "$enableval" in
2459  yes) multilib=yes ;;
2460  no)  multilib=no ;;
2461  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2462 esac
2463else
2464  multilib=yes
2465fi
2466
2467
2468# We may get other options which we leave undocumented:
2469# --with-target-subdir, --with-multisrctop, --with-multisubdir
2470# See config-ml.in if you want the gory details.
2471
2472if test "$srcdir" = "."; then
2473  if test "$with_target_subdir" != "."; then
2474    multi_basedir="$srcdir/$with_multisrctop../.."
2475  else
2476    multi_basedir="$srcdir/$with_multisrctop.."
2477  fi
2478else
2479  multi_basedir="$srcdir/.."
2480fi
2481
2482
2483# Even if the default multilib is not a cross compilation,
2484# it may be that some of the other multilibs are.
2485if test $cross_compiling = no && test $multilib = yes \
2486   && test "x${with_multisubdir}" != x ; then
2487   cross_compiling=maybe
2488fi
2489
2490ac_config_commands="$ac_config_commands default-1"
2491
2492fi
2493
2494ac_aux_dir=
2495for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2496  for ac_t in install-sh install.sh shtool; do
2497    if test -f "$ac_dir/$ac_t"; then
2498      ac_aux_dir=$ac_dir
2499      ac_install_sh="$ac_aux_dir/$ac_t -c"
2500      break 2
2501    fi
2502  done
2503done
2504if test -z "$ac_aux_dir"; then
2505  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2506fi
2507
2508# These three variables are undocumented and unsupported,
2509# and are intended to be withdrawn in a future Autoconf release.
2510# They can cause serious problems if a builder's source tree is in a directory
2511# whose full name contains unusual characters.
2512ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2513ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2514ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2515
2516
2517# Make sure we can run config.sub.
2518$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2519  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2520
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2522$as_echo_n "checking build system type... " >&6; }
2523if test "${ac_cv_build+set}" = set; then :
2524  $as_echo_n "(cached) " >&6
2525else
2526  ac_build_alias=$build_alias
2527test "x$ac_build_alias" = x &&
2528  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2529test "x$ac_build_alias" = x &&
2530  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2531ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2532  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2533
2534fi
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2536$as_echo "$ac_cv_build" >&6; }
2537case $ac_cv_build in
2538*-*-*) ;;
2539*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2540esac
2541build=$ac_cv_build
2542ac_save_IFS=$IFS; IFS='-'
2543set x $ac_cv_build
2544shift
2545build_cpu=$1
2546build_vendor=$2
2547shift; shift
2548# Remember, the first character of IFS is used to create $*,
2549# except with old shells:
2550build_os=$*
2551IFS=$ac_save_IFS
2552case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2553
2554
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2556$as_echo_n "checking host system type... " >&6; }
2557if test "${ac_cv_host+set}" = set; then :
2558  $as_echo_n "(cached) " >&6
2559else
2560  if test "x$host_alias" = x; then
2561  ac_cv_host=$ac_cv_build
2562else
2563  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2564    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2565fi
2566
2567fi
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2569$as_echo "$ac_cv_host" >&6; }
2570case $ac_cv_host in
2571*-*-*) ;;
2572*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2573esac
2574host=$ac_cv_host
2575ac_save_IFS=$IFS; IFS='-'
2576set x $ac_cv_host
2577shift
2578host_cpu=$1
2579host_vendor=$2
2580shift; shift
2581# Remember, the first character of IFS is used to create $*,
2582# except with old shells:
2583host_os=$*
2584IFS=$ac_save_IFS
2585case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2586
2587
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2589$as_echo_n "checking target system type... " >&6; }
2590if test "${ac_cv_target+set}" = set; then :
2591  $as_echo_n "(cached) " >&6
2592else
2593  if test "x$target_alias" = x; then
2594  ac_cv_target=$ac_cv_host
2595else
2596  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2597    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2598fi
2599
2600fi
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2602$as_echo "$ac_cv_target" >&6; }
2603case $ac_cv_target in
2604*-*-*) ;;
2605*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2606esac
2607target=$ac_cv_target
2608ac_save_IFS=$IFS; IFS='-'
2609set x $ac_cv_target
2610shift
2611target_cpu=$1
2612target_vendor=$2
2613shift; shift
2614# Remember, the first character of IFS is used to create $*,
2615# except with old shells:
2616target_os=$*
2617IFS=$ac_save_IFS
2618case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2619
2620
2621# The aliases save the names the user supplied, while $host etc.
2622# will get canonicalized.
2623test -n "$target_alias" &&
2624  test "$program_prefix$program_suffix$program_transform_name" = \
2625    NONENONEs,x,x, &&
2626  program_prefix=${target_alias}-
2627
2628target_alias=${target_alias-$host_alias}
2629
2630ac_ext=c
2631ac_cpp='$CPP $CPPFLAGS'
2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635if test -n "$ac_tool_prefix"; then
2636  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2637set dummy ${ac_tool_prefix}gcc; ac_word=$2
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if test "${ac_cv_prog_CC+set}" = set; then :
2641  $as_echo_n "(cached) " >&6
2642else
2643  if test -n "$CC"; then
2644  ac_cv_prog_CC="$CC" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649  IFS=$as_save_IFS
2650  test -z "$as_dir" && as_dir=.
2651    for ac_exec_ext in '' $ac_executable_extensions; do
2652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655    break 2
2656  fi
2657done
2658  done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663CC=$ac_cv_prog_CC
2664if test -n "$CC"; then
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2666$as_echo "$CC" >&6; }
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672
2673fi
2674if test -z "$ac_cv_prog_CC"; then
2675  ac_ct_CC=$CC
2676  # Extract the first word of "gcc", so it can be a program name with args.
2677set dummy gcc; ac_word=$2
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
2680if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  if test -n "$ac_ct_CC"; then
2684  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691    for ac_exec_ext in '' $ac_executable_extensions; do
2692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693    ac_cv_prog_ac_ct_CC="gcc"
2694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695    break 2
2696  fi
2697done
2698  done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704if test -n "$ac_ct_CC"; then
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2706$as_echo "$ac_ct_CC" >&6; }
2707else
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709$as_echo "no" >&6; }
2710fi
2711
2712  if test "x$ac_ct_CC" = x; then
2713    CC=""
2714  else
2715    case $cross_compiling:$ac_tool_warned in
2716yes:)
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2719ac_tool_warned=yes ;;
2720esac
2721    CC=$ac_ct_CC
2722  fi
2723else
2724  CC="$ac_cv_prog_CC"
2725fi
2726
2727if test -z "$CC"; then
2728          if test -n "$ac_tool_prefix"; then
2729    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2730set dummy ${ac_tool_prefix}cc; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if test "${ac_cv_prog_CC+set}" = set; then :
2734  $as_echo_n "(cached) " >&6
2735else
2736  if test -n "$CC"; then
2737  ac_cv_prog_CC="$CC" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746    ac_cv_prog_CC="${ac_tool_prefix}cc"
2747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756CC=$ac_cv_prog_CC
2757if test -n "$CC"; then
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759$as_echo "$CC" >&6; }
2760else
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766  fi
2767fi
2768if test -z "$CC"; then
2769  # Extract the first word of "cc", so it can be a program name with args.
2770set dummy cc; ac_word=$2
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
2773if test "${ac_cv_prog_CC+set}" = set; then :
2774  $as_echo_n "(cached) " >&6
2775else
2776  if test -n "$CC"; then
2777  ac_cv_prog_CC="$CC" # Let the user override the test.
2778else
2779  ac_prog_rejected=no
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785    for ac_exec_ext in '' $ac_executable_extensions; do
2786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788       ac_prog_rejected=yes
2789       continue
2790     fi
2791    ac_cv_prog_CC="cc"
2792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796  done
2797IFS=$as_save_IFS
2798
2799if test $ac_prog_rejected = yes; then
2800  # We found a bogon in the path, so make sure we never use it.
2801  set dummy $ac_cv_prog_CC
2802  shift
2803  if test $# != 0; then
2804    # We chose a different compiler from the bogus one.
2805    # However, it has the same basename, so the bogon will be chosen
2806    # first if we set CC to just the basename; use the full file name.
2807    shift
2808    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2809  fi
2810fi
2811fi
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816$as_echo "$CC" >&6; }
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822
2823fi
2824if test -z "$CC"; then
2825  if test -n "$ac_tool_prefix"; then
2826  for ac_prog in cl.exe
2827  do
2828    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; }
2832if test "${ac_cv_prog_CC+set}" = set; then :
2833  $as_echo_n "(cached) " >&6
2834else
2835  if test -n "$CC"; then
2836  ac_cv_prog_CC="$CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  test -z "$as_dir" && as_dir=.
2843    for ac_exec_ext in '' $ac_executable_extensions; do
2844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847    break 2
2848  fi
2849done
2850  done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855CC=$ac_cv_prog_CC
2856if test -n "$CC"; then
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858$as_echo "$CC" >&6; }
2859else
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861$as_echo "no" >&6; }
2862fi
2863
2864
2865    test -n "$CC" && break
2866  done
2867fi
2868if test -z "$CC"; then
2869  ac_ct_CC=$CC
2870  for ac_prog in cl.exe
2871do
2872  # Extract the first word of "$ac_prog", so it can be a program name with args.
2873set dummy $ac_prog; ac_word=$2
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2877  $as_echo_n "(cached) " >&6
2878else
2879  if test -n "$ac_ct_CC"; then
2880  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887    for ac_exec_ext in '' $ac_executable_extensions; do
2888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889    ac_cv_prog_ac_ct_CC="$ac_prog"
2890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891    break 2
2892  fi
2893done
2894  done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900if test -n "$ac_ct_CC"; then
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2902$as_echo "$ac_ct_CC" >&6; }
2903else
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908
2909  test -n "$ac_ct_CC" && break
2910done
2911
2912  if test "x$ac_ct_CC" = x; then
2913    CC=""
2914  else
2915    case $cross_compiling:$ac_tool_warned in
2916yes:)
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919ac_tool_warned=yes ;;
2920esac
2921    CC=$ac_ct_CC
2922  fi
2923fi
2924
2925fi
2926
2927
2928test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930as_fn_error "no acceptable C compiler found in \$PATH
2931See \`config.log' for more details." "$LINENO" 5; }
2932
2933# Provide some information about the compiler.
2934$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2935set X $ac_compile
2936ac_compiler=$2
2937for ac_option in --version -v -V -qversion; do
2938  { { ac_try="$ac_compiler $ac_option >&5"
2939case "(($ac_try" in
2940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941  *) ac_try_echo=$ac_try;;
2942esac
2943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2944$as_echo "$ac_try_echo"; } >&5
2945  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2946  ac_status=$?
2947  if test -s conftest.err; then
2948    sed '10a\
2949... rest of stderr output deleted ...
2950         10q' conftest.err >conftest.er1
2951    cat conftest.er1 >&5
2952    rm -f conftest.er1 conftest.err
2953  fi
2954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955  test $ac_status = 0; }
2956done
2957
2958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969ac_clean_files_save=$ac_clean_files
2970ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2971# Try to create an executable without -o first, disregard a.out.
2972# It will help us diagnose broken compilers, and finding out an intuition
2973# of exeext.
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2975$as_echo_n "checking for C compiler default output file name... " >&6; }
2976ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2977
2978# The possible output files:
2979ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2980
2981ac_rmfiles=
2982for ac_file in $ac_files
2983do
2984  case $ac_file in
2985    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2986    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2987  esac
2988done
2989rm -f $ac_rmfiles
2990
2991if { { ac_try="$ac_link_default"
2992case "(($ac_try" in
2993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994  *) ac_try_echo=$ac_try;;
2995esac
2996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2997$as_echo "$ac_try_echo"; } >&5
2998  (eval "$ac_link_default") 2>&5
2999  ac_status=$?
3000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001  test $ac_status = 0; }; then :
3002  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3003# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3004# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3005# so that the user can short-circuit this test for compilers unknown to
3006# Autoconf.
3007for ac_file in $ac_files ''
3008do
3009  test -f "$ac_file" || continue
3010  case $ac_file in
3011    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3012	;;
3013    [ab].out )
3014	# We found the default executable, but exeext='' is most
3015	# certainly right.
3016	break;;
3017    *.* )
3018	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3019	then :; else
3020	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021	fi
3022	# We set ac_cv_exeext here because the later test for it is not
3023	# safe: cross compilers may not add the suffix if given an `-o'
3024	# argument, so we may need to know it at that point already.
3025	# Even if this section looks crufty: it has the advantage of
3026	# actually working.
3027	break;;
3028    * )
3029	break;;
3030  esac
3031done
3032test "$ac_cv_exeext" = no && ac_cv_exeext=
3033
3034else
3035  ac_file=''
3036fi
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3038$as_echo "$ac_file" >&6; }
3039if test -z "$ac_file"; then :
3040  $as_echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
3043{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045{ as_fn_set_status 77
3046as_fn_error "C compiler cannot create executables
3047See \`config.log' for more details." "$LINENO" 5; }; }
3048fi
3049ac_exeext=$ac_cv_exeext
3050
3051# Check that the compiler produces executables we can run.  If not, either
3052# the compiler is broken, or we cross compile.
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3054$as_echo_n "checking whether the C compiler works... " >&6; }
3055# If not cross compiling, check that we can run a simple program.
3056if test "$cross_compiling" != yes; then
3057  if { ac_try='./$ac_file'
3058  { { case "(($ac_try" in
3059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060  *) ac_try_echo=$ac_try;;
3061esac
3062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063$as_echo "$ac_try_echo"; } >&5
3064  (eval "$ac_try") 2>&5
3065  ac_status=$?
3066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067  test $ac_status = 0; }; }; then
3068    cross_compiling=no
3069  else
3070    if test "$cross_compiling" = maybe; then
3071	cross_compiling=yes
3072    else
3073	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075as_fn_error "cannot run C compiled programs.
3076If you meant to cross compile, use \`--host'.
3077See \`config.log' for more details." "$LINENO" 5; }
3078    fi
3079  fi
3080fi
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082$as_echo "yes" >&6; }
3083
3084rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3085ac_clean_files=$ac_clean_files_save
3086# Check that the compiler produces executables we can run.  If not, either
3087# the compiler is broken, or we cross compile.
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3089$as_echo_n "checking whether we are cross compiling... " >&6; }
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3091$as_echo "$cross_compiling" >&6; }
3092
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3094$as_echo_n "checking for suffix of executables... " >&6; }
3095if { { ac_try="$ac_link"
3096case "(($ac_try" in
3097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098  *) ac_try_echo=$ac_try;;
3099esac
3100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101$as_echo "$ac_try_echo"; } >&5
3102  (eval "$ac_link") 2>&5
3103  ac_status=$?
3104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105  test $ac_status = 0; }; then :
3106  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3107# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3108# work properly (i.e., refer to `conftest.exe'), while it won't with
3109# `rm'.
3110for ac_file in conftest.exe conftest conftest.*; do
3111  test -f "$ac_file" || continue
3112  case $ac_file in
3113    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3115	  break;;
3116    * ) break;;
3117  esac
3118done
3119else
3120  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122as_fn_error "cannot compute suffix of executables: cannot compile and link
3123See \`config.log' for more details." "$LINENO" 5; }
3124fi
3125rm -f conftest$ac_cv_exeext
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3127$as_echo "$ac_cv_exeext" >&6; }
3128
3129rm -f conftest.$ac_ext
3130EXEEXT=$ac_cv_exeext
3131ac_exeext=$EXEEXT
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3133$as_echo_n "checking for suffix of object files... " >&6; }
3134if test "${ac_cv_objext+set}" = set; then :
3135  $as_echo_n "(cached) " >&6
3136else
3137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138/* end confdefs.h.  */
3139
3140int
3141main ()
3142{
3143
3144  ;
3145  return 0;
3146}
3147_ACEOF
3148rm -f conftest.o conftest.obj
3149if { { ac_try="$ac_compile"
3150case "(($ac_try" in
3151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152  *) ac_try_echo=$ac_try;;
3153esac
3154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155$as_echo "$ac_try_echo"; } >&5
3156  (eval "$ac_compile") 2>&5
3157  ac_status=$?
3158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159  test $ac_status = 0; }; then :
3160  for ac_file in conftest.o conftest.obj conftest.*; do
3161  test -f "$ac_file" || continue;
3162  case $ac_file in
3163    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3164    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3165       break;;
3166  esac
3167done
3168else
3169  $as_echo "$as_me: failed program was:" >&5
3170sed 's/^/| /' conftest.$ac_ext >&5
3171
3172{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174as_fn_error "cannot compute suffix of object files: cannot compile
3175See \`config.log' for more details." "$LINENO" 5; }
3176fi
3177rm -f conftest.$ac_cv_objext conftest.$ac_ext
3178fi
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3180$as_echo "$ac_cv_objext" >&6; }
3181OBJEXT=$ac_cv_objext
3182ac_objext=$OBJEXT
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3184$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3185if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189/* end confdefs.h.  */
3190
3191int
3192main ()
3193{
3194#ifndef __GNUC__
3195       choke me
3196#endif
3197
3198  ;
3199  return 0;
3200}
3201_ACEOF
3202if ac_fn_c_try_compile "$LINENO"; then :
3203  ac_compiler_gnu=yes
3204else
3205  ac_compiler_gnu=no
3206fi
3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208ac_cv_c_compiler_gnu=$ac_compiler_gnu
3209
3210fi
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3212$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3213if test $ac_compiler_gnu = yes; then
3214  GCC=yes
3215else
3216  GCC=
3217fi
3218ac_test_CFLAGS=${CFLAGS+set}
3219ac_save_CFLAGS=$CFLAGS
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3221$as_echo_n "checking whether $CC accepts -g... " >&6; }
3222if test "${ac_cv_prog_cc_g+set}" = set; then :
3223  $as_echo_n "(cached) " >&6
3224else
3225  ac_save_c_werror_flag=$ac_c_werror_flag
3226   ac_c_werror_flag=yes
3227   ac_cv_prog_cc_g=no
3228   CFLAGS="-g"
3229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230/* end confdefs.h.  */
3231
3232int
3233main ()
3234{
3235
3236  ;
3237  return 0;
3238}
3239_ACEOF
3240if ac_fn_c_try_compile "$LINENO"; then :
3241  ac_cv_prog_cc_g=yes
3242else
3243  CFLAGS=""
3244      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h.  */
3246
3247int
3248main ()
3249{
3250
3251  ;
3252  return 0;
3253}
3254_ACEOF
3255if ac_fn_c_try_compile "$LINENO"; then :
3256
3257else
3258  ac_c_werror_flag=$ac_save_c_werror_flag
3259	 CFLAGS="-g"
3260	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h.  */
3262
3263int
3264main ()
3265{
3266
3267  ;
3268  return 0;
3269}
3270_ACEOF
3271if ac_fn_c_try_compile "$LINENO"; then :
3272  ac_cv_prog_cc_g=yes
3273fi
3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275fi
3276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277fi
3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279   ac_c_werror_flag=$ac_save_c_werror_flag
3280fi
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3282$as_echo "$ac_cv_prog_cc_g" >&6; }
3283if test "$ac_test_CFLAGS" = set; then
3284  CFLAGS=$ac_save_CFLAGS
3285elif test $ac_cv_prog_cc_g = yes; then
3286  if test "$GCC" = yes; then
3287    CFLAGS="-g -O2"
3288  else
3289    CFLAGS="-g"
3290  fi
3291else
3292  if test "$GCC" = yes; then
3293    CFLAGS="-O2"
3294  else
3295    CFLAGS=
3296  fi
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3299$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3300if test "${ac_cv_prog_cc_c89+set}" = set; then :
3301  $as_echo_n "(cached) " >&6
3302else
3303  ac_cv_prog_cc_c89=no
3304ac_save_CC=$CC
3305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h.  */
3307#include <stdarg.h>
3308#include <stdio.h>
3309#include <sys/types.h>
3310#include <sys/stat.h>
3311/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3312struct buf { int x; };
3313FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314static char *e (p, i)
3315     char **p;
3316     int i;
3317{
3318  return p[i];
3319}
3320static char *f (char * (*g) (char **, int), char **p, ...)
3321{
3322  char *s;
3323  va_list v;
3324  va_start (v,p);
3325  s = g (p, va_arg (v,int));
3326  va_end (v);
3327  return s;
3328}
3329
3330/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3331   function prototypes and stuff, but not '\xHH' hex character constants.
3332   These don't provoke an error unfortunately, instead are silently treated
3333   as 'x'.  The following induces an error, until -std is added to get
3334   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3335   array size at least.  It's necessary to write '\x00'==0 to get something
3336   that's true only with -std.  */
3337int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3338
3339/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3340   inside strings and character constants.  */
3341#define FOO(x) 'x'
3342int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3343
3344int test (int i, double x);
3345struct s1 {int (*f) (int a);};
3346struct s2 {int (*f) (double a);};
3347int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348int argc;
3349char **argv;
3350int
3351main ()
3352{
3353return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3354  ;
3355  return 0;
3356}
3357_ACEOF
3358for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3359	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3360do
3361  CC="$ac_save_CC $ac_arg"
3362  if ac_fn_c_try_compile "$LINENO"; then :
3363  ac_cv_prog_cc_c89=$ac_arg
3364fi
3365rm -f core conftest.err conftest.$ac_objext
3366  test "x$ac_cv_prog_cc_c89" != "xno" && break
3367done
3368rm -f conftest.$ac_ext
3369CC=$ac_save_CC
3370
3371fi
3372# AC_CACHE_VAL
3373case "x$ac_cv_prog_cc_c89" in
3374  x)
3375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3376$as_echo "none needed" >&6; } ;;
3377  xno)
3378    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3379$as_echo "unsupported" >&6; } ;;
3380  *)
3381    CC="$CC $ac_cv_prog_cc_c89"
3382    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3383$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3384esac
3385if test "x$ac_cv_prog_cc_c89" != xno; then :
3386
3387fi
3388
3389ac_ext=c
3390ac_cpp='$CPP $CPPFLAGS'
3391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394
3395
3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3402$as_echo_n "checking how to run the C preprocessor... " >&6; }
3403# On Suns, sometimes $CPP names a directory.
3404if test -n "$CPP" && test -d "$CPP"; then
3405  CPP=
3406fi
3407if test -z "$CPP"; then
3408  if test "${ac_cv_prog_CPP+set}" = set; then :
3409  $as_echo_n "(cached) " >&6
3410else
3411      # Double quotes because CPP needs to be expanded
3412    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3413    do
3414      ac_preproc_ok=false
3415for ac_c_preproc_warn_flag in '' yes
3416do
3417  # Use a header file that comes with gcc, so configuring glibc
3418  # with a fresh cross-compiler works.
3419  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420  # <limits.h> exists even on freestanding compilers.
3421  # On the NeXT, cc -E runs the code through the compiler's parser,
3422  # not just through cpp. "Syntax error" is here to catch this case.
3423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h.  */
3425#ifdef __STDC__
3426# include <limits.h>
3427#else
3428# include <assert.h>
3429#endif
3430		     Syntax error
3431_ACEOF
3432if ac_fn_c_try_cpp "$LINENO"; then :
3433
3434else
3435  # Broken: fails on valid input.
3436continue
3437fi
3438rm -f conftest.err conftest.$ac_ext
3439
3440  # OK, works on sane cases.  Now check whether nonexistent headers
3441  # can be detected and how.
3442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h.  */
3444#include <ac_nonexistent.h>
3445_ACEOF
3446if ac_fn_c_try_cpp "$LINENO"; then :
3447  # Broken: success on invalid input.
3448continue
3449else
3450  # Passes both tests.
3451ac_preproc_ok=:
3452break
3453fi
3454rm -f conftest.err conftest.$ac_ext
3455
3456done
3457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3458rm -f conftest.err conftest.$ac_ext
3459if $ac_preproc_ok; then :
3460  break
3461fi
3462
3463    done
3464    ac_cv_prog_CPP=$CPP
3465
3466fi
3467  CPP=$ac_cv_prog_CPP
3468else
3469  ac_cv_prog_CPP=$CPP
3470fi
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3472$as_echo "$CPP" >&6; }
3473ac_preproc_ok=false
3474for ac_c_preproc_warn_flag in '' yes
3475do
3476  # Use a header file that comes with gcc, so configuring glibc
3477  # with a fresh cross-compiler works.
3478  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3479  # <limits.h> exists even on freestanding compilers.
3480  # On the NeXT, cc -E runs the code through the compiler's parser,
3481  # not just through cpp. "Syntax error" is here to catch this case.
3482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483/* end confdefs.h.  */
3484#ifdef __STDC__
3485# include <limits.h>
3486#else
3487# include <assert.h>
3488#endif
3489		     Syntax error
3490_ACEOF
3491if ac_fn_c_try_cpp "$LINENO"; then :
3492
3493else
3494  # Broken: fails on valid input.
3495continue
3496fi
3497rm -f conftest.err conftest.$ac_ext
3498
3499  # OK, works on sane cases.  Now check whether nonexistent headers
3500  # can be detected and how.
3501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h.  */
3503#include <ac_nonexistent.h>
3504_ACEOF
3505if ac_fn_c_try_cpp "$LINENO"; then :
3506  # Broken: success on invalid input.
3507continue
3508else
3509  # Passes both tests.
3510ac_preproc_ok=:
3511break
3512fi
3513rm -f conftest.err conftest.$ac_ext
3514
3515done
3516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3517rm -f conftest.err conftest.$ac_ext
3518if $ac_preproc_ok; then :
3519
3520else
3521  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523as_fn_error "C preprocessor \"$CPP\" fails sanity check
3524See \`config.log' for more details." "$LINENO" 5; }
3525fi
3526
3527ac_ext=c
3528ac_cpp='$CPP $CPPFLAGS'
3529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3535$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3536if test "${ac_cv_path_GREP+set}" = set; then :
3537  $as_echo_n "(cached) " >&6
3538else
3539  if test -z "$GREP"; then
3540  ac_path_GREP_found=false
3541  # Loop through the user's path and test for each of PROGNAME-LIST
3542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3544do
3545  IFS=$as_save_IFS
3546  test -z "$as_dir" && as_dir=.
3547    for ac_prog in grep ggrep; do
3548    for ac_exec_ext in '' $ac_executable_extensions; do
3549      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3550      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3551# Check for GNU ac_path_GREP and select it if it is found.
3552  # Check for GNU $ac_path_GREP
3553case `"$ac_path_GREP" --version 2>&1` in
3554*GNU*)
3555  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3556*)
3557  ac_count=0
3558  $as_echo_n 0123456789 >"conftest.in"
3559  while :
3560  do
3561    cat "conftest.in" "conftest.in" >"conftest.tmp"
3562    mv "conftest.tmp" "conftest.in"
3563    cp "conftest.in" "conftest.nl"
3564    $as_echo 'GREP' >> "conftest.nl"
3565    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3566    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3567    as_fn_arith $ac_count + 1 && ac_count=$as_val
3568    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3569      # Best one so far, save it but keep looking for a better one
3570      ac_cv_path_GREP="$ac_path_GREP"
3571      ac_path_GREP_max=$ac_count
3572    fi
3573    # 10*(2^10) chars as input seems more than enough
3574    test $ac_count -gt 10 && break
3575  done
3576  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3577esac
3578
3579      $ac_path_GREP_found && break 3
3580    done
3581  done
3582  done
3583IFS=$as_save_IFS
3584  if test -z "$ac_cv_path_GREP"; then
3585    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3586  fi
3587else
3588  ac_cv_path_GREP=$GREP
3589fi
3590
3591fi
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3593$as_echo "$ac_cv_path_GREP" >&6; }
3594 GREP="$ac_cv_path_GREP"
3595
3596
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3598$as_echo_n "checking for egrep... " >&6; }
3599if test "${ac_cv_path_EGREP+set}" = set; then :
3600  $as_echo_n "(cached) " >&6
3601else
3602  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3603   then ac_cv_path_EGREP="$GREP -E"
3604   else
3605     if test -z "$EGREP"; then
3606  ac_path_EGREP_found=false
3607  # Loop through the user's path and test for each of PROGNAME-LIST
3608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3610do
3611  IFS=$as_save_IFS
3612  test -z "$as_dir" && as_dir=.
3613    for ac_prog in egrep; do
3614    for ac_exec_ext in '' $ac_executable_extensions; do
3615      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3616      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3617# Check for GNU ac_path_EGREP and select it if it is found.
3618  # Check for GNU $ac_path_EGREP
3619case `"$ac_path_EGREP" --version 2>&1` in
3620*GNU*)
3621  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3622*)
3623  ac_count=0
3624  $as_echo_n 0123456789 >"conftest.in"
3625  while :
3626  do
3627    cat "conftest.in" "conftest.in" >"conftest.tmp"
3628    mv "conftest.tmp" "conftest.in"
3629    cp "conftest.in" "conftest.nl"
3630    $as_echo 'EGREP' >> "conftest.nl"
3631    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3632    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3633    as_fn_arith $ac_count + 1 && ac_count=$as_val
3634    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3635      # Best one so far, save it but keep looking for a better one
3636      ac_cv_path_EGREP="$ac_path_EGREP"
3637      ac_path_EGREP_max=$ac_count
3638    fi
3639    # 10*(2^10) chars as input seems more than enough
3640    test $ac_count -gt 10 && break
3641  done
3642  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3643esac
3644
3645      $ac_path_EGREP_found && break 3
3646    done
3647  done
3648  done
3649IFS=$as_save_IFS
3650  if test -z "$ac_cv_path_EGREP"; then
3651    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3652  fi
3653else
3654  ac_cv_path_EGREP=$EGREP
3655fi
3656
3657   fi
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3660$as_echo "$ac_cv_path_EGREP" >&6; }
3661 EGREP="$ac_cv_path_EGREP"
3662
3663
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3665$as_echo_n "checking for ANSI C header files... " >&6; }
3666if test "${ac_cv_header_stdc+set}" = set; then :
3667  $as_echo_n "(cached) " >&6
3668else
3669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h.  */
3671#include <stdlib.h>
3672#include <stdarg.h>
3673#include <string.h>
3674#include <float.h>
3675
3676int
3677main ()
3678{
3679
3680  ;
3681  return 0;
3682}
3683_ACEOF
3684if ac_fn_c_try_compile "$LINENO"; then :
3685  ac_cv_header_stdc=yes
3686else
3687  ac_cv_header_stdc=no
3688fi
3689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690
3691if test $ac_cv_header_stdc = yes; then
3692  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h.  */
3695#include <string.h>
3696
3697_ACEOF
3698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699  $EGREP "memchr" >/dev/null 2>&1; then :
3700
3701else
3702  ac_cv_header_stdc=no
3703fi
3704rm -f conftest*
3705
3706fi
3707
3708if test $ac_cv_header_stdc = yes; then
3709  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711/* end confdefs.h.  */
3712#include <stdlib.h>
3713
3714_ACEOF
3715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716  $EGREP "free" >/dev/null 2>&1; then :
3717
3718else
3719  ac_cv_header_stdc=no
3720fi
3721rm -f conftest*
3722
3723fi
3724
3725if test $ac_cv_header_stdc = yes; then
3726  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3727  if test "$cross_compiling" = yes; then :
3728  :
3729else
3730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732#include <ctype.h>
3733#include <stdlib.h>
3734#if ((' ' & 0x0FF) == 0x020)
3735# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3736# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3737#else
3738# define ISLOWER(c) \
3739		   (('a' <= (c) && (c) <= 'i') \
3740		     || ('j' <= (c) && (c) <= 'r') \
3741		     || ('s' <= (c) && (c) <= 'z'))
3742# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3743#endif
3744
3745#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3746int
3747main ()
3748{
3749  int i;
3750  for (i = 0; i < 256; i++)
3751    if (XOR (islower (i), ISLOWER (i))
3752	|| toupper (i) != TOUPPER (i))
3753      return 2;
3754  return 0;
3755}
3756_ACEOF
3757if ac_fn_c_try_run "$LINENO"; then :
3758
3759else
3760  ac_cv_header_stdc=no
3761fi
3762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3763  conftest.$ac_objext conftest.beam conftest.$ac_ext
3764fi
3765
3766fi
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3769$as_echo "$ac_cv_header_stdc" >&6; }
3770if test $ac_cv_header_stdc = yes; then
3771
3772$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3773
3774fi
3775
3776# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3777for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3778		  inttypes.h stdint.h unistd.h
3779do :
3780  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3781ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3782"
3783eval as_val=\$$as_ac_Header
3784   if test "x$as_val" = x""yes; then :
3785  cat >>confdefs.h <<_ACEOF
3786#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3787_ACEOF
3788
3789fi
3790
3791done
3792
3793
3794
3795  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3796if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3797  MINIX=yes
3798else
3799  MINIX=
3800fi
3801
3802
3803  if test "$MINIX" = yes; then
3804
3805$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3806
3807
3808$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3809
3810
3811$as_echo "#define _MINIX 1" >>confdefs.h
3812
3813  fi
3814
3815
3816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3817$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3818if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3819  $as_echo_n "(cached) " >&6
3820else
3821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h.  */
3823
3824#	  define __EXTENSIONS__ 1
3825	  $ac_includes_default
3826int
3827main ()
3828{
3829
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834if ac_fn_c_try_compile "$LINENO"; then :
3835  ac_cv_safe_to_define___extensions__=yes
3836else
3837  ac_cv_safe_to_define___extensions__=no
3838fi
3839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840fi
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3842$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3843  test $ac_cv_safe_to_define___extensions__ = yes &&
3844    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3845
3846  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3847
3848  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3849
3850  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3851
3852  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3853
3854
3855
3856libtool_VERSION=1:0:0
3857
3858
3859# 1.11.1: Require that version of automake.
3860# foreign: Don't require README, INSTALL, NEWS, etc.
3861# no-define: Don't define PACKAGE and VERSION.
3862# no-dependencies: Don't generate automatic dependencies.
3863#    (because it breaks when using bootstrap-lean, since some of the
3864#    headers are gone at "make install" time).
3865# -Wall: Issue all automake warnings.
3866# -Wno-portability: Don't warn about constructs supported by GNU make.
3867#    (because GCC requires GNU make anyhow).
3868am__api_version='1.11'
3869
3870# Find a good install program.  We prefer a C program (faster),
3871# so one script is as good as another.  But avoid the broken or
3872# incompatible versions:
3873# SysV /etc/install, /usr/sbin/install
3874# SunOS /usr/etc/install
3875# IRIX /sbin/install
3876# AIX /bin/install
3877# AmigaOS /C/install, which installs bootblocks on floppy discs
3878# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3879# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3880# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3881# OS/2's system install, which has a completely different semantic
3882# ./install, which can be erroneously created by make from ./install.sh.
3883# Reject install programs that cannot install multiple files.
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3885$as_echo_n "checking for a BSD-compatible install... " >&6; }
3886if test -z "$INSTALL"; then
3887if test "${ac_cv_path_install+set}" = set; then :
3888  $as_echo_n "(cached) " >&6
3889else
3890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH
3892do
3893  IFS=$as_save_IFS
3894  test -z "$as_dir" && as_dir=.
3895    # Account for people who put trailing slashes in PATH elements.
3896case $as_dir/ in #((
3897  ./ | .// | /[cC]/* | \
3898  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3899  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3900  /usr/ucb/* ) ;;
3901  *)
3902    # OSF1 and SCO ODT 3.0 have their own names for install.
3903    # Don't use installbsd from OSF since it installs stuff as root
3904    # by default.
3905    for ac_prog in ginstall scoinst install; do
3906      for ac_exec_ext in '' $ac_executable_extensions; do
3907	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3908	  if test $ac_prog = install &&
3909	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3910	    # AIX install.  It has an incompatible calling convention.
3911	    :
3912	  elif test $ac_prog = install &&
3913	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3914	    # program-specific install script used by HP pwplus--don't use.
3915	    :
3916	  else
3917	    rm -rf conftest.one conftest.two conftest.dir
3918	    echo one > conftest.one
3919	    echo two > conftest.two
3920	    mkdir conftest.dir
3921	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3922	      test -s conftest.one && test -s conftest.two &&
3923	      test -s conftest.dir/conftest.one &&
3924	      test -s conftest.dir/conftest.two
3925	    then
3926	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3927	      break 3
3928	    fi
3929	  fi
3930	fi
3931      done
3932    done
3933    ;;
3934esac
3935
3936  done
3937IFS=$as_save_IFS
3938
3939rm -rf conftest.one conftest.two conftest.dir
3940
3941fi
3942  if test "${ac_cv_path_install+set}" = set; then
3943    INSTALL=$ac_cv_path_install
3944  else
3945    # As a last resort, use the slow shell script.  Don't cache a
3946    # value for INSTALL within a source directory, because that will
3947    # break other packages using the cache if that directory is
3948    # removed, or if the value is a relative name.
3949    INSTALL=$ac_install_sh
3950  fi
3951fi
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3953$as_echo "$INSTALL" >&6; }
3954
3955# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3956# It thinks the first close brace ends the variable substitution.
3957test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3958
3959test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3960
3961test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3962
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3964$as_echo_n "checking whether build environment is sane... " >&6; }
3965# Just in case
3966sleep 1
3967echo timestamp > conftest.file
3968# Reject unsafe characters in $srcdir or the absolute working directory
3969# name.  Accept space and tab only in the latter.
3970am_lf='
3971'
3972case `pwd` in
3973  *[\\\"\#\$\&\'\`$am_lf]*)
3974    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3975esac
3976case $srcdir in
3977  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3978    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3979esac
3980
3981# Do `set' in a subshell so we don't clobber the current shell's
3982# arguments.  Must try -L first in case configure is actually a
3983# symlink; some systems play weird games with the mod time of symlinks
3984# (eg FreeBSD returns the mod time of the symlink's containing
3985# directory).
3986if (
3987   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3988   if test "$*" = "X"; then
3989      # -L didn't work.
3990      set X `ls -t "$srcdir/configure" conftest.file`
3991   fi
3992   rm -f conftest.file
3993   if test "$*" != "X $srcdir/configure conftest.file" \
3994      && test "$*" != "X conftest.file $srcdir/configure"; then
3995
3996      # If neither matched, then we have a broken ls.  This can happen
3997      # if, for instance, CONFIG_SHELL is bash and it inherits a
3998      # broken ls alias from the environment.  This has actually
3999      # happened.  Such a system could not be considered "sane".
4000      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4001alias in your environment" "$LINENO" 5
4002   fi
4003
4004   test "$2" = conftest.file
4005   )
4006then
4007   # Ok.
4008   :
4009else
4010   as_fn_error "newly created file is older than distributed files!
4011Check your system clock" "$LINENO" 5
4012fi
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4014$as_echo "yes" >&6; }
4015test "$program_prefix" != NONE &&
4016  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4017# Use a double $ so make ignores it.
4018test "$program_suffix" != NONE &&
4019  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4020# Double any \ or $.
4021# By default was `s,x,x', remove it if useless.
4022ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4023program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4024
4025# expand $ac_aux_dir to an absolute path
4026am_aux_dir=`cd $ac_aux_dir && pwd`
4027
4028if test x"${MISSING+set}" != xset; then
4029  case $am_aux_dir in
4030  *\ * | *\	*)
4031    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4032  *)
4033    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4034  esac
4035fi
4036# Use eval to expand $SHELL
4037if eval "$MISSING --run true"; then
4038  am_missing_run="$MISSING --run "
4039else
4040  am_missing_run=
4041  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4042$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4043fi
4044
4045if test x"${install_sh}" != xset; then
4046  case $am_aux_dir in
4047  *\ * | *\	*)
4048    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4049  *)
4050    install_sh="\${SHELL} $am_aux_dir/install-sh"
4051  esac
4052fi
4053
4054# Installed binaries are usually stripped using `strip' when the user
4055# run `make install-strip'.  However `strip' might not be the right
4056# tool to use in cross-compilation environments, therefore Automake
4057# will honor the `STRIP' environment variable to overrule this program.
4058if test "$cross_compiling" != no; then
4059  if test -n "$ac_tool_prefix"; then
4060  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4061set dummy ${ac_tool_prefix}strip; ac_word=$2
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063$as_echo_n "checking for $ac_word... " >&6; }
4064if test "${ac_cv_prog_STRIP+set}" = set; then :
4065  $as_echo_n "(cached) " >&6
4066else
4067  if test -n "$STRIP"; then
4068  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4069else
4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH
4072do
4073  IFS=$as_save_IFS
4074  test -z "$as_dir" && as_dir=.
4075    for ac_exec_ext in '' $ac_executable_extensions; do
4076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079    break 2
4080  fi
4081done
4082  done
4083IFS=$as_save_IFS
4084
4085fi
4086fi
4087STRIP=$ac_cv_prog_STRIP
4088if test -n "$STRIP"; then
4089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4090$as_echo "$STRIP" >&6; }
4091else
4092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093$as_echo "no" >&6; }
4094fi
4095
4096
4097fi
4098if test -z "$ac_cv_prog_STRIP"; then
4099  ac_ct_STRIP=$STRIP
4100  # Extract the first word of "strip", so it can be a program name with args.
4101set dummy strip; ac_word=$2
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103$as_echo_n "checking for $ac_word... " >&6; }
4104if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4105  $as_echo_n "(cached) " >&6
4106else
4107  if test -n "$ac_ct_STRIP"; then
4108  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4109else
4110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113  IFS=$as_save_IFS
4114  test -z "$as_dir" && as_dir=.
4115    for ac_exec_ext in '' $ac_executable_extensions; do
4116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4117    ac_cv_prog_ac_ct_STRIP="strip"
4118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119    break 2
4120  fi
4121done
4122  done
4123IFS=$as_save_IFS
4124
4125fi
4126fi
4127ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4128if test -n "$ac_ct_STRIP"; then
4129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4130$as_echo "$ac_ct_STRIP" >&6; }
4131else
4132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133$as_echo "no" >&6; }
4134fi
4135
4136  if test "x$ac_ct_STRIP" = x; then
4137    STRIP=":"
4138  else
4139    case $cross_compiling:$ac_tool_warned in
4140yes:)
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4143ac_tool_warned=yes ;;
4144esac
4145    STRIP=$ac_ct_STRIP
4146  fi
4147else
4148  STRIP="$ac_cv_prog_STRIP"
4149fi
4150
4151fi
4152INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4153
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4155$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4156if test -z "$MKDIR_P"; then
4157  if test "${ac_cv_path_mkdir+set}" = set; then :
4158  $as_echo_n "(cached) " >&6
4159else
4160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4162do
4163  IFS=$as_save_IFS
4164  test -z "$as_dir" && as_dir=.
4165    for ac_prog in mkdir gmkdir; do
4166	 for ac_exec_ext in '' $ac_executable_extensions; do
4167	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4168	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4169	     'mkdir (GNU coreutils) '* | \
4170	     'mkdir (coreutils) '* | \
4171	     'mkdir (fileutils) '4.1*)
4172	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4173	       break 3;;
4174	   esac
4175	 done
4176       done
4177  done
4178IFS=$as_save_IFS
4179
4180fi
4181
4182  if test "${ac_cv_path_mkdir+set}" = set; then
4183    MKDIR_P="$ac_cv_path_mkdir -p"
4184  else
4185    # As a last resort, use the slow shell script.  Don't cache a
4186    # value for MKDIR_P within a source directory, because that will
4187    # break other packages using the cache if that directory is
4188    # removed, or if the value is a relative name.
4189    test -d ./--version && rmdir ./--version
4190    MKDIR_P="$ac_install_sh -d"
4191  fi
4192fi
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4194$as_echo "$MKDIR_P" >&6; }
4195
4196mkdir_p="$MKDIR_P"
4197case $mkdir_p in
4198  [\\/$]* | ?:[\\/]*) ;;
4199  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4200esac
4201
4202for ac_prog in gawk mawk nawk awk
4203do
4204  # Extract the first word of "$ac_prog", so it can be a program name with args.
4205set dummy $ac_prog; ac_word=$2
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if test "${ac_cv_prog_AWK+set}" = set; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  if test -n "$AWK"; then
4212  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217  IFS=$as_save_IFS
4218  test -z "$as_dir" && as_dir=.
4219    for ac_exec_ext in '' $ac_executable_extensions; do
4220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221    ac_cv_prog_AWK="$ac_prog"
4222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223    break 2
4224  fi
4225done
4226  done
4227IFS=$as_save_IFS
4228
4229fi
4230fi
4231AWK=$ac_cv_prog_AWK
4232if test -n "$AWK"; then
4233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4234$as_echo "$AWK" >&6; }
4235else
4236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
4238fi
4239
4240
4241  test -n "$AWK" && break
4242done
4243
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4245$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4246set x ${MAKE-make}
4247ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4248if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4249  $as_echo_n "(cached) " >&6
4250else
4251  cat >conftest.make <<\_ACEOF
4252SHELL = /bin/sh
4253all:
4254	@echo '@@@%%%=$(MAKE)=@@@%%%'
4255_ACEOF
4256# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4257case `${MAKE-make} -f conftest.make 2>/dev/null` in
4258  *@@@%%%=?*=@@@%%%*)
4259    eval ac_cv_prog_make_${ac_make}_set=yes;;
4260  *)
4261    eval ac_cv_prog_make_${ac_make}_set=no;;
4262esac
4263rm -f conftest.make
4264fi
4265if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4267$as_echo "yes" >&6; }
4268  SET_MAKE=
4269else
4270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271$as_echo "no" >&6; }
4272  SET_MAKE="MAKE=${MAKE-make}"
4273fi
4274
4275rm -rf .tst 2>/dev/null
4276mkdir .tst 2>/dev/null
4277if test -d .tst; then
4278  am__leading_dot=.
4279else
4280  am__leading_dot=_
4281fi
4282rmdir .tst 2>/dev/null
4283
4284if test "`cd $srcdir && pwd`" != "`pwd`"; then
4285  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4286  # is not polluted with repeated "-I."
4287  am__isrc=' -I$(srcdir)'
4288  # test to see if srcdir already configured
4289  if test -f $srcdir/config.status; then
4290    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4291  fi
4292fi
4293
4294# test whether we have cygpath
4295if test -z "$CYGPATH_W"; then
4296  if (cygpath --version) >/dev/null 2>/dev/null; then
4297    CYGPATH_W='cygpath -w'
4298  else
4299    CYGPATH_W=echo
4300  fi
4301fi
4302
4303
4304# Define the identity of the package.
4305 PACKAGE='libbacktrace'
4306 VERSION='version-unused'
4307
4308
4309# Some tools Automake needs.
4310
4311ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4312
4313
4314AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4315
4316
4317AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4318
4319
4320AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4321
4322
4323MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4324
4325# We need awk for the "check" target.  The system "awk" is bad on
4326# some platforms.
4327# Always define AMTAR for backward compatibility.
4328
4329AMTAR=${AMTAR-"${am_missing_run}tar"}
4330
4331am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4332
4333
4334
4335
4336
4337
4338
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4340$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4341    # Check whether --enable-maintainer-mode was given.
4342if test "${enable_maintainer_mode+set}" = set; then :
4343  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4344else
4345  USE_MAINTAINER_MODE=no
4346fi
4347
4348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4349$as_echo "$USE_MAINTAINER_MODE" >&6; }
4350   if test $USE_MAINTAINER_MODE = yes; then
4351  MAINTAINER_MODE_TRUE=
4352  MAINTAINER_MODE_FALSE='#'
4353else
4354  MAINTAINER_MODE_TRUE='#'
4355  MAINTAINER_MODE_FALSE=
4356fi
4357
4358  MAINT=$MAINTAINER_MODE_TRUE
4359
4360
4361
4362
4363# Check whether --with-target-subdir was given.
4364if test "${with_target_subdir+set}" = set; then :
4365  withval=$with_target_subdir;
4366fi
4367
4368
4369# We must force CC to /not/ be precious variables; otherwise
4370# the wrong, non-multilib-adjusted value will be used in multilibs.
4371# As a side effect, we have to subst CFLAGS ourselves.
4372
4373
4374ac_ext=c
4375ac_cpp='$CPP $CPPFLAGS'
4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379if test -n "$ac_tool_prefix"; then
4380  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4381set dummy ${ac_tool_prefix}gcc; ac_word=$2
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383$as_echo_n "checking for $ac_word... " >&6; }
4384if test "${ac_cv_prog_CC+set}" = set; then :
4385  $as_echo_n "(cached) " >&6
4386else
4387  if test -n "$CC"; then
4388  ac_cv_prog_CC="$CC" # Let the user override the test.
4389else
4390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391for as_dir in $PATH
4392do
4393  IFS=$as_save_IFS
4394  test -z "$as_dir" && as_dir=.
4395    for ac_exec_ext in '' $ac_executable_extensions; do
4396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399    break 2
4400  fi
4401done
4402  done
4403IFS=$as_save_IFS
4404
4405fi
4406fi
4407CC=$ac_cv_prog_CC
4408if test -n "$CC"; then
4409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4410$as_echo "$CC" >&6; }
4411else
4412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413$as_echo "no" >&6; }
4414fi
4415
4416
4417fi
4418if test -z "$ac_cv_prog_CC"; then
4419  ac_ct_CC=$CC
4420  # Extract the first word of "gcc", so it can be a program name with args.
4421set dummy gcc; ac_word=$2
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423$as_echo_n "checking for $ac_word... " >&6; }
4424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4425  $as_echo_n "(cached) " >&6
4426else
4427  if test -n "$ac_ct_CC"; then
4428  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4429else
4430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433  IFS=$as_save_IFS
4434  test -z "$as_dir" && as_dir=.
4435    for ac_exec_ext in '' $ac_executable_extensions; do
4436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437    ac_cv_prog_ac_ct_CC="gcc"
4438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439    break 2
4440  fi
4441done
4442  done
4443IFS=$as_save_IFS
4444
4445fi
4446fi
4447ac_ct_CC=$ac_cv_prog_ac_ct_CC
4448if test -n "$ac_ct_CC"; then
4449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4450$as_echo "$ac_ct_CC" >&6; }
4451else
4452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453$as_echo "no" >&6; }
4454fi
4455
4456  if test "x$ac_ct_CC" = x; then
4457    CC=""
4458  else
4459    case $cross_compiling:$ac_tool_warned in
4460yes:)
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463ac_tool_warned=yes ;;
4464esac
4465    CC=$ac_ct_CC
4466  fi
4467else
4468  CC="$ac_cv_prog_CC"
4469fi
4470
4471if test -z "$CC"; then
4472          if test -n "$ac_tool_prefix"; then
4473    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4474set dummy ${ac_tool_prefix}cc; ac_word=$2
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476$as_echo_n "checking for $ac_word... " >&6; }
4477if test "${ac_cv_prog_CC+set}" = set; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480  if test -n "$CC"; then
4481  ac_cv_prog_CC="$CC" # Let the user override the test.
4482else
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486  IFS=$as_save_IFS
4487  test -z "$as_dir" && as_dir=.
4488    for ac_exec_ext in '' $ac_executable_extensions; do
4489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490    ac_cv_prog_CC="${ac_tool_prefix}cc"
4491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492    break 2
4493  fi
4494done
4495  done
4496IFS=$as_save_IFS
4497
4498fi
4499fi
4500CC=$ac_cv_prog_CC
4501if test -n "$CC"; then
4502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4503$as_echo "$CC" >&6; }
4504else
4505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506$as_echo "no" >&6; }
4507fi
4508
4509
4510  fi
4511fi
4512if test -z "$CC"; then
4513  # Extract the first word of "cc", so it can be a program name with args.
4514set dummy cc; ac_word=$2
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516$as_echo_n "checking for $ac_word... " >&6; }
4517if test "${ac_cv_prog_CC+set}" = set; then :
4518  $as_echo_n "(cached) " >&6
4519else
4520  if test -n "$CC"; then
4521  ac_cv_prog_CC="$CC" # Let the user override the test.
4522else
4523  ac_prog_rejected=no
4524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH
4526do
4527  IFS=$as_save_IFS
4528  test -z "$as_dir" && as_dir=.
4529    for ac_exec_ext in '' $ac_executable_extensions; do
4530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4532       ac_prog_rejected=yes
4533       continue
4534     fi
4535    ac_cv_prog_CC="cc"
4536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537    break 2
4538  fi
4539done
4540  done
4541IFS=$as_save_IFS
4542
4543if test $ac_prog_rejected = yes; then
4544  # We found a bogon in the path, so make sure we never use it.
4545  set dummy $ac_cv_prog_CC
4546  shift
4547  if test $# != 0; then
4548    # We chose a different compiler from the bogus one.
4549    # However, it has the same basename, so the bogon will be chosen
4550    # first if we set CC to just the basename; use the full file name.
4551    shift
4552    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4553  fi
4554fi
4555fi
4556fi
4557CC=$ac_cv_prog_CC
4558if test -n "$CC"; then
4559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4560$as_echo "$CC" >&6; }
4561else
4562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563$as_echo "no" >&6; }
4564fi
4565
4566
4567fi
4568if test -z "$CC"; then
4569  if test -n "$ac_tool_prefix"; then
4570  for ac_prog in cl.exe
4571  do
4572    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575$as_echo_n "checking for $ac_word... " >&6; }
4576if test "${ac_cv_prog_CC+set}" = set; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  if test -n "$CC"; then
4580  ac_cv_prog_CC="$CC" # Let the user override the test.
4581else
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585  IFS=$as_save_IFS
4586  test -z "$as_dir" && as_dir=.
4587    for ac_exec_ext in '' $ac_executable_extensions; do
4588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591    break 2
4592  fi
4593done
4594  done
4595IFS=$as_save_IFS
4596
4597fi
4598fi
4599CC=$ac_cv_prog_CC
4600if test -n "$CC"; then
4601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4602$as_echo "$CC" >&6; }
4603else
4604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605$as_echo "no" >&6; }
4606fi
4607
4608
4609    test -n "$CC" && break
4610  done
4611fi
4612if test -z "$CC"; then
4613  ac_ct_CC=$CC
4614  for ac_prog in cl.exe
4615do
4616  # Extract the first word of "$ac_prog", so it can be a program name with args.
4617set dummy $ac_prog; ac_word=$2
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619$as_echo_n "checking for $ac_word... " >&6; }
4620if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623  if test -n "$ac_ct_CC"; then
4624  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4625else
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629  IFS=$as_save_IFS
4630  test -z "$as_dir" && as_dir=.
4631    for ac_exec_ext in '' $ac_executable_extensions; do
4632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633    ac_cv_prog_ac_ct_CC="$ac_prog"
4634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635    break 2
4636  fi
4637done
4638  done
4639IFS=$as_save_IFS
4640
4641fi
4642fi
4643ac_ct_CC=$ac_cv_prog_ac_ct_CC
4644if test -n "$ac_ct_CC"; then
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4646$as_echo "$ac_ct_CC" >&6; }
4647else
4648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649$as_echo "no" >&6; }
4650fi
4651
4652
4653  test -n "$ac_ct_CC" && break
4654done
4655
4656  if test "x$ac_ct_CC" = x; then
4657    CC=""
4658  else
4659    case $cross_compiling:$ac_tool_warned in
4660yes:)
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4663ac_tool_warned=yes ;;
4664esac
4665    CC=$ac_ct_CC
4666  fi
4667fi
4668
4669fi
4670
4671
4672test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4674as_fn_error "no acceptable C compiler found in \$PATH
4675See \`config.log' for more details." "$LINENO" 5; }
4676
4677# Provide some information about the compiler.
4678$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4679set X $ac_compile
4680ac_compiler=$2
4681for ac_option in --version -v -V -qversion; do
4682  { { ac_try="$ac_compiler $ac_option >&5"
4683case "(($ac_try" in
4684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685  *) ac_try_echo=$ac_try;;
4686esac
4687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4688$as_echo "$ac_try_echo"; } >&5
4689  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4690  ac_status=$?
4691  if test -s conftest.err; then
4692    sed '10a\
4693... rest of stderr output deleted ...
4694         10q' conftest.err >conftest.er1
4695    cat conftest.er1 >&5
4696    rm -f conftest.er1 conftest.err
4697  fi
4698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4699  test $ac_status = 0; }
4700done
4701
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4703$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4704if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4705  $as_echo_n "(cached) " >&6
4706else
4707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708/* end confdefs.h.  */
4709
4710int
4711main ()
4712{
4713#ifndef __GNUC__
4714       choke me
4715#endif
4716
4717  ;
4718  return 0;
4719}
4720_ACEOF
4721if ac_fn_c_try_compile "$LINENO"; then :
4722  ac_compiler_gnu=yes
4723else
4724  ac_compiler_gnu=no
4725fi
4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727ac_cv_c_compiler_gnu=$ac_compiler_gnu
4728
4729fi
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4731$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4732if test $ac_compiler_gnu = yes; then
4733  GCC=yes
4734else
4735  GCC=
4736fi
4737ac_test_CFLAGS=${CFLAGS+set}
4738ac_save_CFLAGS=$CFLAGS
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4740$as_echo_n "checking whether $CC accepts -g... " >&6; }
4741if test "${ac_cv_prog_cc_g+set}" = set; then :
4742  $as_echo_n "(cached) " >&6
4743else
4744  ac_save_c_werror_flag=$ac_c_werror_flag
4745   ac_c_werror_flag=yes
4746   ac_cv_prog_cc_g=no
4747   CFLAGS="-g"
4748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749/* end confdefs.h.  */
4750
4751int
4752main ()
4753{
4754
4755  ;
4756  return 0;
4757}
4758_ACEOF
4759if ac_fn_c_try_compile "$LINENO"; then :
4760  ac_cv_prog_cc_g=yes
4761else
4762  CFLAGS=""
4763      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h.  */
4765
4766int
4767main ()
4768{
4769
4770  ;
4771  return 0;
4772}
4773_ACEOF
4774if ac_fn_c_try_compile "$LINENO"; then :
4775
4776else
4777  ac_c_werror_flag=$ac_save_c_werror_flag
4778	 CFLAGS="-g"
4779	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h.  */
4781
4782int
4783main ()
4784{
4785
4786  ;
4787  return 0;
4788}
4789_ACEOF
4790if ac_fn_c_try_compile "$LINENO"; then :
4791  ac_cv_prog_cc_g=yes
4792fi
4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794fi
4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796fi
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798   ac_c_werror_flag=$ac_save_c_werror_flag
4799fi
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4801$as_echo "$ac_cv_prog_cc_g" >&6; }
4802if test "$ac_test_CFLAGS" = set; then
4803  CFLAGS=$ac_save_CFLAGS
4804elif test $ac_cv_prog_cc_g = yes; then
4805  if test "$GCC" = yes; then
4806    CFLAGS="-g -O2"
4807  else
4808    CFLAGS="-g"
4809  fi
4810else
4811  if test "$GCC" = yes; then
4812    CFLAGS="-O2"
4813  else
4814    CFLAGS=
4815  fi
4816fi
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4818$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4819if test "${ac_cv_prog_cc_c89+set}" = set; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  ac_cv_prog_cc_c89=no
4823ac_save_CC=$CC
4824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825/* end confdefs.h.  */
4826#include <stdarg.h>
4827#include <stdio.h>
4828#include <sys/types.h>
4829#include <sys/stat.h>
4830/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4831struct buf { int x; };
4832FILE * (*rcsopen) (struct buf *, struct stat *, int);
4833static char *e (p, i)
4834     char **p;
4835     int i;
4836{
4837  return p[i];
4838}
4839static char *f (char * (*g) (char **, int), char **p, ...)
4840{
4841  char *s;
4842  va_list v;
4843  va_start (v,p);
4844  s = g (p, va_arg (v,int));
4845  va_end (v);
4846  return s;
4847}
4848
4849/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4850   function prototypes and stuff, but not '\xHH' hex character constants.
4851   These don't provoke an error unfortunately, instead are silently treated
4852   as 'x'.  The following induces an error, until -std is added to get
4853   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4854   array size at least.  It's necessary to write '\x00'==0 to get something
4855   that's true only with -std.  */
4856int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4857
4858/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4859   inside strings and character constants.  */
4860#define FOO(x) 'x'
4861int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4862
4863int test (int i, double x);
4864struct s1 {int (*f) (int a);};
4865struct s2 {int (*f) (double a);};
4866int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4867int argc;
4868char **argv;
4869int
4870main ()
4871{
4872return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4873  ;
4874  return 0;
4875}
4876_ACEOF
4877for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4878	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4879do
4880  CC="$ac_save_CC $ac_arg"
4881  if ac_fn_c_try_compile "$LINENO"; then :
4882  ac_cv_prog_cc_c89=$ac_arg
4883fi
4884rm -f core conftest.err conftest.$ac_objext
4885  test "x$ac_cv_prog_cc_c89" != "xno" && break
4886done
4887rm -f conftest.$ac_ext
4888CC=$ac_save_CC
4889
4890fi
4891# AC_CACHE_VAL
4892case "x$ac_cv_prog_cc_c89" in
4893  x)
4894    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4895$as_echo "none needed" >&6; } ;;
4896  xno)
4897    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4898$as_echo "unsupported" >&6; } ;;
4899  *)
4900    CC="$CC $ac_cv_prog_cc_c89"
4901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4902$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4903esac
4904if test "x$ac_cv_prog_cc_c89" != xno; then :
4905
4906fi
4907
4908ac_ext=c
4909ac_cpp='$CPP $CPPFLAGS'
4910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913
4914
4915
4916
4917
4918if test -n "$ac_tool_prefix"; then
4919  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4920set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922$as_echo_n "checking for $ac_word... " >&6; }
4923if test "${ac_cv_prog_RANLIB+set}" = set; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  if test -n "$RANLIB"; then
4927  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932  IFS=$as_save_IFS
4933  test -z "$as_dir" && as_dir=.
4934    for ac_exec_ext in '' $ac_executable_extensions; do
4935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938    break 2
4939  fi
4940done
4941  done
4942IFS=$as_save_IFS
4943
4944fi
4945fi
4946RANLIB=$ac_cv_prog_RANLIB
4947if test -n "$RANLIB"; then
4948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4949$as_echo "$RANLIB" >&6; }
4950else
4951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952$as_echo "no" >&6; }
4953fi
4954
4955
4956fi
4957if test -z "$ac_cv_prog_RANLIB"; then
4958  ac_ct_RANLIB=$RANLIB
4959  # Extract the first word of "ranlib", so it can be a program name with args.
4960set dummy ranlib; ac_word=$2
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962$as_echo_n "checking for $ac_word... " >&6; }
4963if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4964  $as_echo_n "(cached) " >&6
4965else
4966  if test -n "$ac_ct_RANLIB"; then
4967  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4968else
4969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970for as_dir in $PATH
4971do
4972  IFS=$as_save_IFS
4973  test -z "$as_dir" && as_dir=.
4974    for ac_exec_ext in '' $ac_executable_extensions; do
4975  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976    ac_cv_prog_ac_ct_RANLIB="ranlib"
4977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978    break 2
4979  fi
4980done
4981  done
4982IFS=$as_save_IFS
4983
4984fi
4985fi
4986ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4987if test -n "$ac_ct_RANLIB"; then
4988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4989$as_echo "$ac_ct_RANLIB" >&6; }
4990else
4991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992$as_echo "no" >&6; }
4993fi
4994
4995  if test "x$ac_ct_RANLIB" = x; then
4996    RANLIB=":"
4997  else
4998    case $cross_compiling:$ac_tool_warned in
4999yes:)
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5002ac_tool_warned=yes ;;
5003esac
5004    RANLIB=$ac_ct_RANLIB
5005  fi
5006else
5007  RANLIB="$ac_cv_prog_RANLIB"
5008fi
5009
5010
5011for ac_prog in gawk mawk nawk awk
5012do
5013  # Extract the first word of "$ac_prog", so it can be a program name with args.
5014set dummy $ac_prog; ac_word=$2
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if test "${ac_cv_prog_AWK+set}" = set; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  if test -n "$AWK"; then
5021  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026  IFS=$as_save_IFS
5027  test -z "$as_dir" && as_dir=.
5028    for ac_exec_ext in '' $ac_executable_extensions; do
5029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030    ac_cv_prog_AWK="$ac_prog"
5031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032    break 2
5033  fi
5034done
5035  done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040AWK=$ac_cv_prog_AWK
5041if test -n "$AWK"; then
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5043$as_echo "$AWK" >&6; }
5044else
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047fi
5048
5049
5050  test -n "$AWK" && break
5051done
5052
5053case "$AWK" in
5054"") as_fn_error "can't build without awk" "$LINENO" 5 ;;
5055esac
5056
5057case `pwd` in
5058  *\ * | *\	*)
5059    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5060$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5061esac
5062
5063
5064
5065macro_version='2.2.7a'
5066macro_revision='1.3134'
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080ltmain="$ac_aux_dir/ltmain.sh"
5081
5082# Backslashify metacharacters that are still active within
5083# double-quoted strings.
5084sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5085
5086# Same as above, but do not quote variable references.
5087double_quote_subst='s/\(["`\\]\)/\\\1/g'
5088
5089# Sed substitution to delay expansion of an escaped shell variable in a
5090# double_quote_subst'ed string.
5091delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5092
5093# Sed substitution to delay expansion of an escaped single quote.
5094delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5095
5096# Sed substitution to avoid accidental globbing in evaled expressions
5097no_glob_subst='s/\*/\\\*/g'
5098
5099ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5100ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5101ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5102
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5104$as_echo_n "checking how to print strings... " >&6; }
5105# Test print first, because it will be a builtin if present.
5106if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5107   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5108  ECHO='print -r --'
5109elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5110  ECHO='printf %s\n'
5111else
5112  # Use this function as a fallback that always works.
5113  func_fallback_echo ()
5114  {
5115    eval 'cat <<_LTECHO_EOF
5116$1
5117_LTECHO_EOF'
5118  }
5119  ECHO='func_fallback_echo'
5120fi
5121
5122# func_echo_all arg...
5123# Invoke $ECHO with all args, space-separated.
5124func_echo_all ()
5125{
5126    $ECHO ""
5127}
5128
5129case "$ECHO" in
5130  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5131$as_echo "printf" >&6; } ;;
5132  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5133$as_echo "print -r" >&6; } ;;
5134  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5135$as_echo "cat" >&6; } ;;
5136esac
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5152$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5153if test "${ac_cv_path_SED+set}" = set; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5157     for ac_i in 1 2 3 4 5 6 7; do
5158       ac_script="$ac_script$as_nl$ac_script"
5159     done
5160     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5161     { ac_script=; unset ac_script;}
5162     if test -z "$SED"; then
5163  ac_path_SED_found=false
5164  # Loop through the user's path and test for each of PROGNAME-LIST
5165  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168  IFS=$as_save_IFS
5169  test -z "$as_dir" && as_dir=.
5170    for ac_prog in sed gsed; do
5171    for ac_exec_ext in '' $ac_executable_extensions; do
5172      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5173      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5174# Check for GNU ac_path_SED and select it if it is found.
5175  # Check for GNU $ac_path_SED
5176case `"$ac_path_SED" --version 2>&1` in
5177*GNU*)
5178  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5179*)
5180  ac_count=0
5181  $as_echo_n 0123456789 >"conftest.in"
5182  while :
5183  do
5184    cat "conftest.in" "conftest.in" >"conftest.tmp"
5185    mv "conftest.tmp" "conftest.in"
5186    cp "conftest.in" "conftest.nl"
5187    $as_echo '' >> "conftest.nl"
5188    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5189    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5190    as_fn_arith $ac_count + 1 && ac_count=$as_val
5191    if test $ac_count -gt ${ac_path_SED_max-0}; then
5192      # Best one so far, save it but keep looking for a better one
5193      ac_cv_path_SED="$ac_path_SED"
5194      ac_path_SED_max=$ac_count
5195    fi
5196    # 10*(2^10) chars as input seems more than enough
5197    test $ac_count -gt 10 && break
5198  done
5199  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5200esac
5201
5202      $ac_path_SED_found && break 3
5203    done
5204  done
5205  done
5206IFS=$as_save_IFS
5207  if test -z "$ac_cv_path_SED"; then
5208    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5209  fi
5210else
5211  ac_cv_path_SED=$SED
5212fi
5213
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5216$as_echo "$ac_cv_path_SED" >&6; }
5217 SED="$ac_cv_path_SED"
5218  rm -f conftest.sed
5219
5220test -z "$SED" && SED=sed
5221Xsed="$SED -e 1s/^X//"
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5234$as_echo_n "checking for fgrep... " >&6; }
5235if test "${ac_cv_path_FGREP+set}" = set; then :
5236  $as_echo_n "(cached) " >&6
5237else
5238  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5239   then ac_cv_path_FGREP="$GREP -F"
5240   else
5241     if test -z "$FGREP"; then
5242  ac_path_FGREP_found=false
5243  # Loop through the user's path and test for each of PROGNAME-LIST
5244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5246do
5247  IFS=$as_save_IFS
5248  test -z "$as_dir" && as_dir=.
5249    for ac_prog in fgrep; do
5250    for ac_exec_ext in '' $ac_executable_extensions; do
5251      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5252      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5253# Check for GNU ac_path_FGREP and select it if it is found.
5254  # Check for GNU $ac_path_FGREP
5255case `"$ac_path_FGREP" --version 2>&1` in
5256*GNU*)
5257  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5258*)
5259  ac_count=0
5260  $as_echo_n 0123456789 >"conftest.in"
5261  while :
5262  do
5263    cat "conftest.in" "conftest.in" >"conftest.tmp"
5264    mv "conftest.tmp" "conftest.in"
5265    cp "conftest.in" "conftest.nl"
5266    $as_echo 'FGREP' >> "conftest.nl"
5267    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269    as_fn_arith $ac_count + 1 && ac_count=$as_val
5270    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5271      # Best one so far, save it but keep looking for a better one
5272      ac_cv_path_FGREP="$ac_path_FGREP"
5273      ac_path_FGREP_max=$ac_count
5274    fi
5275    # 10*(2^10) chars as input seems more than enough
5276    test $ac_count -gt 10 && break
5277  done
5278  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279esac
5280
5281      $ac_path_FGREP_found && break 3
5282    done
5283  done
5284  done
5285IFS=$as_save_IFS
5286  if test -z "$ac_cv_path_FGREP"; then
5287    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5288  fi
5289else
5290  ac_cv_path_FGREP=$FGREP
5291fi
5292
5293   fi
5294fi
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5296$as_echo "$ac_cv_path_FGREP" >&6; }
5297 FGREP="$ac_cv_path_FGREP"
5298
5299
5300test -z "$GREP" && GREP=grep
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320# Check whether --with-gnu-ld was given.
5321if test "${with_gnu_ld+set}" = set; then :
5322  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5323else
5324  with_gnu_ld=no
5325fi
5326
5327ac_prog=ld
5328if test "$GCC" = yes; then
5329  # Check if gcc -print-prog-name=ld gives a path.
5330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5331$as_echo_n "checking for ld used by $CC... " >&6; }
5332  case $host in
5333  *-*-mingw*)
5334    # gcc leaves a trailing carriage return which upsets mingw
5335    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5336  *)
5337    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5338  esac
5339  case $ac_prog in
5340    # Accept absolute paths.
5341    [\\/]* | ?:[\\/]*)
5342      re_direlt='/[^/][^/]*/\.\./'
5343      # Canonicalize the pathname of ld
5344      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5345      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5346	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5347      done
5348      test -z "$LD" && LD="$ac_prog"
5349      ;;
5350  "")
5351    # If it fails, then pretend we aren't using GCC.
5352    ac_prog=ld
5353    ;;
5354  *)
5355    # If it is relative, then search for the first ld in PATH.
5356    with_gnu_ld=unknown
5357    ;;
5358  esac
5359elif test "$with_gnu_ld" = yes; then
5360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5361$as_echo_n "checking for GNU ld... " >&6; }
5362else
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5364$as_echo_n "checking for non-GNU ld... " >&6; }
5365fi
5366if test "${lt_cv_path_LD+set}" = set; then :
5367  $as_echo_n "(cached) " >&6
5368else
5369  if test -z "$LD"; then
5370  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5371  for ac_dir in $PATH; do
5372    IFS="$lt_save_ifs"
5373    test -z "$ac_dir" && ac_dir=.
5374    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5375      lt_cv_path_LD="$ac_dir/$ac_prog"
5376      # Check to see if the program is GNU ld.  I'd rather use --version,
5377      # but apparently some variants of GNU ld only accept -v.
5378      # Break only if it was the GNU/non-GNU ld that we prefer.
5379      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5380      *GNU* | *'with BFD'*)
5381	test "$with_gnu_ld" != no && break
5382	;;
5383      *)
5384	test "$with_gnu_ld" != yes && break
5385	;;
5386      esac
5387    fi
5388  done
5389  IFS="$lt_save_ifs"
5390else
5391  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5392fi
5393fi
5394
5395LD="$lt_cv_path_LD"
5396if test -n "$LD"; then
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5398$as_echo "$LD" >&6; }
5399else
5400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401$as_echo "no" >&6; }
5402fi
5403test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5405$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5406if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5410case `$LD -v 2>&1 </dev/null` in
5411*GNU* | *'with BFD'*)
5412  lt_cv_prog_gnu_ld=yes
5413  ;;
5414*)
5415  lt_cv_prog_gnu_ld=no
5416  ;;
5417esac
5418fi
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5420$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5421with_gnu_ld=$lt_cv_prog_gnu_ld
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5432$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5433if test "${lt_cv_path_NM+set}" = set; then :
5434  $as_echo_n "(cached) " >&6
5435else
5436  if test -n "$NM"; then
5437  # Let the user override the test.
5438  lt_cv_path_NM="$NM"
5439else
5440  lt_nm_to_check="${ac_tool_prefix}nm"
5441  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5442    lt_nm_to_check="$lt_nm_to_check nm"
5443  fi
5444  for lt_tmp_nm in $lt_nm_to_check; do
5445    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5446    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5447      IFS="$lt_save_ifs"
5448      test -z "$ac_dir" && ac_dir=.
5449      tmp_nm="$ac_dir/$lt_tmp_nm"
5450      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5451	# Check to see if the nm accepts a BSD-compat flag.
5452	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5453	#   nm: unknown option "B" ignored
5454	# Tru64's nm complains that /dev/null is an invalid object file
5455	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5456	*/dev/null* | *'Invalid file or object type'*)
5457	  lt_cv_path_NM="$tmp_nm -B"
5458	  break
5459	  ;;
5460	*)
5461	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5462	  */dev/null*)
5463	    lt_cv_path_NM="$tmp_nm -p"
5464	    break
5465	    ;;
5466	  *)
5467	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5468	    continue # so that we can try to find one that supports BSD flags
5469	    ;;
5470	  esac
5471	  ;;
5472	esac
5473      fi
5474    done
5475    IFS="$lt_save_ifs"
5476  done
5477  : ${lt_cv_path_NM=no}
5478fi
5479fi
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5481$as_echo "$lt_cv_path_NM" >&6; }
5482if test "$lt_cv_path_NM" != "no"; then
5483  NM="$lt_cv_path_NM"
5484else
5485  # Didn't find any BSD compatible name lister, look for dumpbin.
5486  if test -n "$DUMPBIN"; then :
5487    # Let the user override the test.
5488  else
5489    if test -n "$ac_tool_prefix"; then
5490  for ac_prog in dumpbin "link -dump"
5491  do
5492    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495$as_echo_n "checking for $ac_word... " >&6; }
5496if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5497  $as_echo_n "(cached) " >&6
5498else
5499  if test -n "$DUMPBIN"; then
5500  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5501else
5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503for as_dir in $PATH
5504do
5505  IFS=$as_save_IFS
5506  test -z "$as_dir" && as_dir=.
5507    for ac_exec_ext in '' $ac_executable_extensions; do
5508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511    break 2
5512  fi
5513done
5514  done
5515IFS=$as_save_IFS
5516
5517fi
5518fi
5519DUMPBIN=$ac_cv_prog_DUMPBIN
5520if test -n "$DUMPBIN"; then
5521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5522$as_echo "$DUMPBIN" >&6; }
5523else
5524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525$as_echo "no" >&6; }
5526fi
5527
5528
5529    test -n "$DUMPBIN" && break
5530  done
5531fi
5532if test -z "$DUMPBIN"; then
5533  ac_ct_DUMPBIN=$DUMPBIN
5534  for ac_prog in dumpbin "link -dump"
5535do
5536  # Extract the first word of "$ac_prog", so it can be a program name with args.
5537set dummy $ac_prog; ac_word=$2
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539$as_echo_n "checking for $ac_word... " >&6; }
5540if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5541  $as_echo_n "(cached) " >&6
5542else
5543  if test -n "$ac_ct_DUMPBIN"; then
5544  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5545else
5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549  IFS=$as_save_IFS
5550  test -z "$as_dir" && as_dir=.
5551    for ac_exec_ext in '' $ac_executable_extensions; do
5552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555    break 2
5556  fi
5557done
5558  done
5559IFS=$as_save_IFS
5560
5561fi
5562fi
5563ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5564if test -n "$ac_ct_DUMPBIN"; then
5565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5566$as_echo "$ac_ct_DUMPBIN" >&6; }
5567else
5568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569$as_echo "no" >&6; }
5570fi
5571
5572
5573  test -n "$ac_ct_DUMPBIN" && break
5574done
5575
5576  if test "x$ac_ct_DUMPBIN" = x; then
5577    DUMPBIN=":"
5578  else
5579    case $cross_compiling:$ac_tool_warned in
5580yes:)
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583ac_tool_warned=yes ;;
5584esac
5585    DUMPBIN=$ac_ct_DUMPBIN
5586  fi
5587fi
5588
5589    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5590    *COFF*)
5591      DUMPBIN="$DUMPBIN -symbols"
5592      ;;
5593    *)
5594      DUMPBIN=:
5595      ;;
5596    esac
5597  fi
5598
5599  if test "$DUMPBIN" != ":"; then
5600    NM="$DUMPBIN"
5601  fi
5602fi
5603test -z "$NM" && NM=nm
5604
5605
5606
5607
5608
5609
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5611$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5612if test "${lt_cv_nm_interface+set}" = set; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  lt_cv_nm_interface="BSD nm"
5616  echo "int some_variable = 0;" > conftest.$ac_ext
5617  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5618  (eval "$ac_compile" 2>conftest.err)
5619  cat conftest.err >&5
5620  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5621  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5622  cat conftest.err >&5
5623  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5624  cat conftest.out >&5
5625  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5626    lt_cv_nm_interface="MS dumpbin"
5627  fi
5628  rm -f conftest*
5629fi
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5631$as_echo "$lt_cv_nm_interface" >&6; }
5632
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5634$as_echo_n "checking whether ln -s works... " >&6; }
5635LN_S=$as_ln_s
5636if test "$LN_S" = "ln -s"; then
5637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5638$as_echo "yes" >&6; }
5639else
5640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5641$as_echo "no, using $LN_S" >&6; }
5642fi
5643
5644# find the maximum length of command line arguments
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5646$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5647if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650    i=0
5651  teststring="ABCD"
5652
5653  case $build_os in
5654  msdosdjgpp*)
5655    # On DJGPP, this test can blow up pretty badly due to problems in libc
5656    # (any single argument exceeding 2000 bytes causes a buffer overrun
5657    # during glob expansion).  Even if it were fixed, the result of this
5658    # check would be larger than it should be.
5659    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5660    ;;
5661
5662  gnu*)
5663    # Under GNU Hurd, this test is not required because there is
5664    # no limit to the length of command line arguments.
5665    # Libtool will interpret -1 as no limit whatsoever
5666    lt_cv_sys_max_cmd_len=-1;
5667    ;;
5668
5669  cygwin* | mingw* | cegcc*)
5670    # On Win9x/ME, this test blows up -- it succeeds, but takes
5671    # about 5 minutes as the teststring grows exponentially.
5672    # Worse, since 9x/ME are not pre-emptively multitasking,
5673    # you end up with a "frozen" computer, even though with patience
5674    # the test eventually succeeds (with a max line length of 256k).
5675    # Instead, let's just punt: use the minimum linelength reported by
5676    # all of the supported platforms: 8192 (on NT/2K/XP).
5677    lt_cv_sys_max_cmd_len=8192;
5678    ;;
5679
5680  mint*)
5681    # On MiNT this can take a long time and run out of memory.
5682    lt_cv_sys_max_cmd_len=8192;
5683    ;;
5684
5685  amigaos*)
5686    # On AmigaOS with pdksh, this test takes hours, literally.
5687    # So we just punt and use a minimum line length of 8192.
5688    lt_cv_sys_max_cmd_len=8192;
5689    ;;
5690
5691  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5692    # This has been around since 386BSD, at least.  Likely further.
5693    if test -x /sbin/sysctl; then
5694      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5695    elif test -x /usr/sbin/sysctl; then
5696      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5697    else
5698      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5699    fi
5700    # And add a safety zone
5701    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5702    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5703    ;;
5704
5705  interix*)
5706    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5707    lt_cv_sys_max_cmd_len=196608
5708    ;;
5709
5710  osf*)
5711    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5712    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5713    # nice to cause kernel panics so lets avoid the loop below.
5714    # First set a reasonable default.
5715    lt_cv_sys_max_cmd_len=16384
5716    #
5717    if test -x /sbin/sysconfig; then
5718      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5719        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5720      esac
5721    fi
5722    ;;
5723  sco3.2v5*)
5724    lt_cv_sys_max_cmd_len=102400
5725    ;;
5726  sysv5* | sco5v6* | sysv4.2uw2*)
5727    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5728    if test -n "$kargmax"; then
5729      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5730    else
5731      lt_cv_sys_max_cmd_len=32768
5732    fi
5733    ;;
5734  *)
5735    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5736    if test -n "$lt_cv_sys_max_cmd_len"; then
5737      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5738      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5739    else
5740      # Make teststring a little bigger before we do anything with it.
5741      # a 1K string should be a reasonable start.
5742      for i in 1 2 3 4 5 6 7 8 ; do
5743        teststring=$teststring$teststring
5744      done
5745      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5746      # If test is not a shell built-in, we'll probably end up computing a
5747      # maximum length that is only half of the actual maximum length, but
5748      # we can't tell.
5749      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5750	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5751	      test $i != 17 # 1/2 MB should be enough
5752      do
5753        i=`expr $i + 1`
5754        teststring=$teststring$teststring
5755      done
5756      # Only check the string length outside the loop.
5757      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5758      teststring=
5759      # Add a significant safety factor because C++ compilers can tack on
5760      # massive amounts of additional arguments before passing them to the
5761      # linker.  It appears as though 1/2 is a usable value.
5762      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5763    fi
5764    ;;
5765  esac
5766
5767fi
5768
5769if test -n $lt_cv_sys_max_cmd_len ; then
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5771$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5772else
5773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5774$as_echo "none" >&6; }
5775fi
5776max_cmd_len=$lt_cv_sys_max_cmd_len
5777
5778
5779
5780
5781
5782
5783: ${CP="cp -f"}
5784: ${MV="mv -f"}
5785: ${RM="rm -f"}
5786
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5788$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5789# Try some XSI features
5790xsi_shell=no
5791( _lt_dummy="a/b/c"
5792  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5793      = c,a/b,, \
5794    && eval 'test $(( 1 + 1 )) -eq 2 \
5795    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5796  && xsi_shell=yes
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5798$as_echo "$xsi_shell" >&6; }
5799
5800
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5802$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5803lt_shell_append=no
5804( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5805    >/dev/null 2>&1 \
5806  && lt_shell_append=yes
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5808$as_echo "$lt_shell_append" >&6; }
5809
5810
5811if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5812  lt_unset=unset
5813else
5814  lt_unset=false
5815fi
5816
5817
5818
5819
5820
5821# test EBCDIC or ASCII
5822case `echo X|tr X '\101'` in
5823 A) # ASCII based system
5824    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5825  lt_SP2NL='tr \040 \012'
5826  lt_NL2SP='tr \015\012 \040\040'
5827  ;;
5828 *) # EBCDIC based system
5829  lt_SP2NL='tr \100 \n'
5830  lt_NL2SP='tr \r\n \100\100'
5831  ;;
5832esac
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5843$as_echo_n "checking for $LD option to reload object files... " >&6; }
5844if test "${lt_cv_ld_reload_flag+set}" = set; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  lt_cv_ld_reload_flag='-r'
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5850$as_echo "$lt_cv_ld_reload_flag" >&6; }
5851reload_flag=$lt_cv_ld_reload_flag
5852case $reload_flag in
5853"" | " "*) ;;
5854*) reload_flag=" $reload_flag" ;;
5855esac
5856reload_cmds='$LD$reload_flag -o $output$reload_objs'
5857case $host_os in
5858  darwin*)
5859    if test "$GCC" = yes; then
5860      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5861    else
5862      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5863    fi
5864    ;;
5865esac
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875if test -n "$ac_tool_prefix"; then
5876  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5877set dummy ${ac_tool_prefix}objdump; ac_word=$2
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879$as_echo_n "checking for $ac_word... " >&6; }
5880if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5881  $as_echo_n "(cached) " >&6
5882else
5883  if test -n "$OBJDUMP"; then
5884  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5885else
5886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889  IFS=$as_save_IFS
5890  test -z "$as_dir" && as_dir=.
5891    for ac_exec_ext in '' $ac_executable_extensions; do
5892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895    break 2
5896  fi
5897done
5898  done
5899IFS=$as_save_IFS
5900
5901fi
5902fi
5903OBJDUMP=$ac_cv_prog_OBJDUMP
5904if test -n "$OBJDUMP"; then
5905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5906$as_echo "$OBJDUMP" >&6; }
5907else
5908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909$as_echo "no" >&6; }
5910fi
5911
5912
5913fi
5914if test -z "$ac_cv_prog_OBJDUMP"; then
5915  ac_ct_OBJDUMP=$OBJDUMP
5916  # Extract the first word of "objdump", so it can be a program name with args.
5917set dummy objdump; ac_word=$2
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919$as_echo_n "checking for $ac_word... " >&6; }
5920if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5921  $as_echo_n "(cached) " >&6
5922else
5923  if test -n "$ac_ct_OBJDUMP"; then
5924  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5925else
5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929  IFS=$as_save_IFS
5930  test -z "$as_dir" && as_dir=.
5931    for ac_exec_ext in '' $ac_executable_extensions; do
5932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935    break 2
5936  fi
5937done
5938  done
5939IFS=$as_save_IFS
5940
5941fi
5942fi
5943ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5944if test -n "$ac_ct_OBJDUMP"; then
5945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5946$as_echo "$ac_ct_OBJDUMP" >&6; }
5947else
5948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949$as_echo "no" >&6; }
5950fi
5951
5952  if test "x$ac_ct_OBJDUMP" = x; then
5953    OBJDUMP="false"
5954  else
5955    case $cross_compiling:$ac_tool_warned in
5956yes:)
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959ac_tool_warned=yes ;;
5960esac
5961    OBJDUMP=$ac_ct_OBJDUMP
5962  fi
5963else
5964  OBJDUMP="$ac_cv_prog_OBJDUMP"
5965fi
5966
5967test -z "$OBJDUMP" && OBJDUMP=objdump
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5978$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5979if test "${lt_cv_deplibs_check_method+set}" = set; then :
5980  $as_echo_n "(cached) " >&6
5981else
5982  lt_cv_file_magic_cmd='$MAGIC_CMD'
5983lt_cv_file_magic_test_file=
5984lt_cv_deplibs_check_method='unknown'
5985# Need to set the preceding variable on all platforms that support
5986# interlibrary dependencies.
5987# 'none' -- dependencies not supported.
5988# `unknown' -- same as none, but documents that we really don't know.
5989# 'pass_all' -- all dependencies passed with no checks.
5990# 'test_compile' -- check by making test program.
5991# 'file_magic [[regex]]' -- check by looking for files in library path
5992# which responds to the $file_magic_cmd with a given extended regex.
5993# If you have `file' or equivalent on your system and you're not sure
5994# whether `pass_all' will *always* work, you probably want this one.
5995
5996case $host_os in
5997aix[4-9]*)
5998  lt_cv_deplibs_check_method=pass_all
5999  ;;
6000
6001beos*)
6002  lt_cv_deplibs_check_method=pass_all
6003  ;;
6004
6005bsdi[45]*)
6006  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6007  lt_cv_file_magic_cmd='/usr/bin/file -L'
6008  lt_cv_file_magic_test_file=/shlib/libc.so
6009  ;;
6010
6011cygwin*)
6012  # func_win32_libid is a shell function defined in ltmain.sh
6013  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6014  lt_cv_file_magic_cmd='func_win32_libid'
6015  ;;
6016
6017mingw* | pw32*)
6018  # Base MSYS/MinGW do not provide the 'file' command needed by
6019  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6020  # unless we find 'file', for example because we are cross-compiling.
6021  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6022  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6023    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6024    lt_cv_file_magic_cmd='func_win32_libid'
6025  else
6026    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6027    lt_cv_file_magic_cmd='$OBJDUMP -f'
6028  fi
6029  ;;
6030
6031cegcc*)
6032  # use the weaker test based on 'objdump'. See mingw*.
6033  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6034  lt_cv_file_magic_cmd='$OBJDUMP -f'
6035  ;;
6036
6037darwin* | rhapsody*)
6038  lt_cv_deplibs_check_method=pass_all
6039  ;;
6040
6041freebsd* | dragonfly*)
6042  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6043    case $host_cpu in
6044    i*86 )
6045      # Not sure whether the presence of OpenBSD here was a mistake.
6046      # Let's accept both of them until this is cleared up.
6047      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6048      lt_cv_file_magic_cmd=/usr/bin/file
6049      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6050      ;;
6051    esac
6052  else
6053    lt_cv_deplibs_check_method=pass_all
6054  fi
6055  ;;
6056
6057gnu*)
6058  lt_cv_deplibs_check_method=pass_all
6059  ;;
6060
6061haiku*)
6062  lt_cv_deplibs_check_method=pass_all
6063  ;;
6064
6065hpux10.20* | hpux11*)
6066  lt_cv_file_magic_cmd=/usr/bin/file
6067  case $host_cpu in
6068  ia64*)
6069    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6070    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6071    ;;
6072  hppa*64*)
6073    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]'
6074    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6075    ;;
6076  *)
6077    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6078    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6079    ;;
6080  esac
6081  ;;
6082
6083interix[3-9]*)
6084  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6085  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6086  ;;
6087
6088irix5* | irix6* | nonstopux*)
6089  case $LD in
6090  *-32|*"-32 ") libmagic=32-bit;;
6091  *-n32|*"-n32 ") libmagic=N32;;
6092  *-64|*"-64 ") libmagic=64-bit;;
6093  *) libmagic=never-match;;
6094  esac
6095  lt_cv_deplibs_check_method=pass_all
6096  ;;
6097
6098# This must be Linux ELF.
6099linux* | k*bsd*-gnu | kopensolaris*-gnu)
6100  lt_cv_deplibs_check_method=pass_all
6101  ;;
6102
6103netbsd*)
6104  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6105    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6106  else
6107    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6108  fi
6109  ;;
6110
6111newos6*)
6112  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6113  lt_cv_file_magic_cmd=/usr/bin/file
6114  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6115  ;;
6116
6117*nto* | *qnx*)
6118  lt_cv_deplibs_check_method=pass_all
6119  ;;
6120
6121openbsd*)
6122  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6123    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6124  else
6125    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6126  fi
6127  ;;
6128
6129osf3* | osf4* | osf5*)
6130  lt_cv_deplibs_check_method=pass_all
6131  ;;
6132
6133rdos*)
6134  lt_cv_deplibs_check_method=pass_all
6135  ;;
6136
6137solaris*)
6138  lt_cv_deplibs_check_method=pass_all
6139  ;;
6140
6141sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6142  lt_cv_deplibs_check_method=pass_all
6143  ;;
6144
6145sysv4 | sysv4.3*)
6146  case $host_vendor in
6147  motorola)
6148    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]'
6149    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6150    ;;
6151  ncr)
6152    lt_cv_deplibs_check_method=pass_all
6153    ;;
6154  sequent)
6155    lt_cv_file_magic_cmd='/bin/file'
6156    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6157    ;;
6158  sni)
6159    lt_cv_file_magic_cmd='/bin/file'
6160    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6161    lt_cv_file_magic_test_file=/lib/libc.so
6162    ;;
6163  siemens)
6164    lt_cv_deplibs_check_method=pass_all
6165    ;;
6166  pc)
6167    lt_cv_deplibs_check_method=pass_all
6168    ;;
6169  esac
6170  ;;
6171
6172tpf*)
6173  lt_cv_deplibs_check_method=pass_all
6174  ;;
6175esac
6176
6177fi
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6179$as_echo "$lt_cv_deplibs_check_method" >&6; }
6180file_magic_cmd=$lt_cv_file_magic_cmd
6181deplibs_check_method=$lt_cv_deplibs_check_method
6182test -z "$deplibs_check_method" && deplibs_check_method=unknown
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195if test -n "$ac_tool_prefix"; then
6196  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6197set dummy ${ac_tool_prefix}ar; ac_word=$2
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199$as_echo_n "checking for $ac_word... " >&6; }
6200if test "${ac_cv_prog_AR+set}" = set; then :
6201  $as_echo_n "(cached) " >&6
6202else
6203  if test -n "$AR"; then
6204  ac_cv_prog_AR="$AR" # Let the user override the test.
6205else
6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207for as_dir in $PATH
6208do
6209  IFS=$as_save_IFS
6210  test -z "$as_dir" && as_dir=.
6211    for ac_exec_ext in '' $ac_executable_extensions; do
6212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213    ac_cv_prog_AR="${ac_tool_prefix}ar"
6214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215    break 2
6216  fi
6217done
6218  done
6219IFS=$as_save_IFS
6220
6221fi
6222fi
6223AR=$ac_cv_prog_AR
6224if test -n "$AR"; then
6225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6226$as_echo "$AR" >&6; }
6227else
6228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229$as_echo "no" >&6; }
6230fi
6231
6232
6233fi
6234if test -z "$ac_cv_prog_AR"; then
6235  ac_ct_AR=$AR
6236  # Extract the first word of "ar", so it can be a program name with args.
6237set dummy ar; ac_word=$2
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239$as_echo_n "checking for $ac_word... " >&6; }
6240if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6241  $as_echo_n "(cached) " >&6
6242else
6243  if test -n "$ac_ct_AR"; then
6244  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6245else
6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247for as_dir in $PATH
6248do
6249  IFS=$as_save_IFS
6250  test -z "$as_dir" && as_dir=.
6251    for ac_exec_ext in '' $ac_executable_extensions; do
6252  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253    ac_cv_prog_ac_ct_AR="ar"
6254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255    break 2
6256  fi
6257done
6258  done
6259IFS=$as_save_IFS
6260
6261fi
6262fi
6263ac_ct_AR=$ac_cv_prog_ac_ct_AR
6264if test -n "$ac_ct_AR"; then
6265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6266$as_echo "$ac_ct_AR" >&6; }
6267else
6268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269$as_echo "no" >&6; }
6270fi
6271
6272  if test "x$ac_ct_AR" = x; then
6273    AR="false"
6274  else
6275    case $cross_compiling:$ac_tool_warned in
6276yes:)
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279ac_tool_warned=yes ;;
6280esac
6281    AR=$ac_ct_AR
6282  fi
6283else
6284  AR="$ac_cv_prog_AR"
6285fi
6286
6287test -z "$AR" && AR=ar
6288test -z "$AR_FLAGS" && AR_FLAGS=cru
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300if test -n "$ac_tool_prefix"; then
6301  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6302set dummy ${ac_tool_prefix}strip; ac_word=$2
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304$as_echo_n "checking for $ac_word... " >&6; }
6305if test "${ac_cv_prog_STRIP+set}" = set; then :
6306  $as_echo_n "(cached) " >&6
6307else
6308  if test -n "$STRIP"; then
6309  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6310else
6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314  IFS=$as_save_IFS
6315  test -z "$as_dir" && as_dir=.
6316    for ac_exec_ext in '' $ac_executable_extensions; do
6317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320    break 2
6321  fi
6322done
6323  done
6324IFS=$as_save_IFS
6325
6326fi
6327fi
6328STRIP=$ac_cv_prog_STRIP
6329if test -n "$STRIP"; then
6330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6331$as_echo "$STRIP" >&6; }
6332else
6333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; }
6335fi
6336
6337
6338fi
6339if test -z "$ac_cv_prog_STRIP"; then
6340  ac_ct_STRIP=$STRIP
6341  # Extract the first word of "strip", so it can be a program name with args.
6342set dummy strip; ac_word=$2
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6346  $as_echo_n "(cached) " >&6
6347else
6348  if test -n "$ac_ct_STRIP"; then
6349  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354  IFS=$as_save_IFS
6355  test -z "$as_dir" && as_dir=.
6356    for ac_exec_ext in '' $ac_executable_extensions; do
6357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358    ac_cv_prog_ac_ct_STRIP="strip"
6359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360    break 2
6361  fi
6362done
6363  done
6364IFS=$as_save_IFS
6365
6366fi
6367fi
6368ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6369if test -n "$ac_ct_STRIP"; then
6370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6371$as_echo "$ac_ct_STRIP" >&6; }
6372else
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376
6377  if test "x$ac_ct_STRIP" = x; then
6378    STRIP=":"
6379  else
6380    case $cross_compiling:$ac_tool_warned in
6381yes:)
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384ac_tool_warned=yes ;;
6385esac
6386    STRIP=$ac_ct_STRIP
6387  fi
6388else
6389  STRIP="$ac_cv_prog_STRIP"
6390fi
6391
6392test -z "$STRIP" && STRIP=:
6393
6394
6395
6396
6397
6398
6399if test -n "$ac_tool_prefix"; then
6400  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6401set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403$as_echo_n "checking for $ac_word... " >&6; }
6404if test "${ac_cv_prog_RANLIB+set}" = set; then :
6405  $as_echo_n "(cached) " >&6
6406else
6407  if test -n "$RANLIB"; then
6408  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6409else
6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413  IFS=$as_save_IFS
6414  test -z "$as_dir" && as_dir=.
6415    for ac_exec_ext in '' $ac_executable_extensions; do
6416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419    break 2
6420  fi
6421done
6422  done
6423IFS=$as_save_IFS
6424
6425fi
6426fi
6427RANLIB=$ac_cv_prog_RANLIB
6428if test -n "$RANLIB"; then
6429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6430$as_echo "$RANLIB" >&6; }
6431else
6432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433$as_echo "no" >&6; }
6434fi
6435
6436
6437fi
6438if test -z "$ac_cv_prog_RANLIB"; then
6439  ac_ct_RANLIB=$RANLIB
6440  # Extract the first word of "ranlib", so it can be a program name with args.
6441set dummy ranlib; ac_word=$2
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443$as_echo_n "checking for $ac_word... " >&6; }
6444if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447  if test -n "$ac_ct_RANLIB"; then
6448  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453  IFS=$as_save_IFS
6454  test -z "$as_dir" && as_dir=.
6455    for ac_exec_ext in '' $ac_executable_extensions; do
6456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457    ac_cv_prog_ac_ct_RANLIB="ranlib"
6458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459    break 2
6460  fi
6461done
6462  done
6463IFS=$as_save_IFS
6464
6465fi
6466fi
6467ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6468if test -n "$ac_ct_RANLIB"; then
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6470$as_echo "$ac_ct_RANLIB" >&6; }
6471else
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473$as_echo "no" >&6; }
6474fi
6475
6476  if test "x$ac_ct_RANLIB" = x; then
6477    RANLIB=":"
6478  else
6479    case $cross_compiling:$ac_tool_warned in
6480yes:)
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483ac_tool_warned=yes ;;
6484esac
6485    RANLIB=$ac_ct_RANLIB
6486  fi
6487else
6488  RANLIB="$ac_cv_prog_RANLIB"
6489fi
6490
6491test -z "$RANLIB" && RANLIB=:
6492
6493
6494
6495
6496
6497
6498# Determine commands to create old-style static archives.
6499old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6500old_postinstall_cmds='chmod 644 $oldlib'
6501old_postuninstall_cmds=
6502
6503if test -n "$RANLIB"; then
6504  case $host_os in
6505  openbsd*)
6506    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6507    ;;
6508  *)
6509    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6510    ;;
6511  esac
6512  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6513fi
6514
6515case $host_os in
6516  darwin*)
6517    lock_old_archive_extraction=yes ;;
6518  *)
6519    lock_old_archive_extraction=no ;;
6520esac
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560# If no C compiler was specified, use CC.
6561LTCC=${LTCC-"$CC"}
6562
6563# If no C compiler flags were specified, use CFLAGS.
6564LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6565
6566# Allow CC to be a program name with arguments.
6567compiler=$CC
6568
6569
6570# Check for command to grab the raw symbol name followed by C symbol from nm.
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6572$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6573if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6574  $as_echo_n "(cached) " >&6
6575else
6576
6577# These are sane defaults that work on at least a few old systems.
6578# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6579
6580# Character class describing NM global symbol codes.
6581symcode='[BCDEGRST]'
6582
6583# Regexp to match symbols that can be accessed directly from C.
6584sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6585
6586# Define system-specific variables.
6587case $host_os in
6588aix*)
6589  symcode='[BCDT]'
6590  ;;
6591cygwin* | mingw* | pw32* | cegcc*)
6592  symcode='[ABCDGISTW]'
6593  ;;
6594hpux*)
6595  if test "$host_cpu" = ia64; then
6596    symcode='[ABCDEGRST]'
6597  fi
6598  ;;
6599irix* | nonstopux*)
6600  symcode='[BCDEGRST]'
6601  ;;
6602osf*)
6603  symcode='[BCDEGQRST]'
6604  ;;
6605solaris*)
6606  symcode='[BDRT]'
6607  ;;
6608sco3.2v5*)
6609  symcode='[DT]'
6610  ;;
6611sysv4.2uw2*)
6612  symcode='[DT]'
6613  ;;
6614sysv5* | sco5v6* | unixware* | OpenUNIX*)
6615  symcode='[ABDT]'
6616  ;;
6617sysv4)
6618  symcode='[DFNSTU]'
6619  ;;
6620esac
6621
6622# If we're using GNU nm, then use its standard symbol codes.
6623case `$NM -V 2>&1` in
6624*GNU* | *'with BFD'*)
6625  symcode='[ABCDGIRSTW]' ;;
6626esac
6627
6628# Transform an extracted symbol line into a proper C declaration.
6629# Some systems (esp. on ia64) link data and code symbols differently,
6630# so use this general approach.
6631lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6632
6633# Transform an extracted symbol line into symbol name and symbol address
6634lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6635lt_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'"
6636
6637# Handle CRLF in mingw tool chain
6638opt_cr=
6639case $build_os in
6640mingw*)
6641  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6642  ;;
6643esac
6644
6645# Try without a prefix underscore, then with it.
6646for ac_symprfx in "" "_"; do
6647
6648  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6649  symxfrm="\\1 $ac_symprfx\\2 \\2"
6650
6651  # Write the raw and C identifiers.
6652  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6653    # Fake it for dumpbin and say T for any non-static function
6654    # and D for any global variable.
6655    # Also find C++ and __fastcall symbols from MSVC++,
6656    # which start with @ or ?.
6657    lt_cv_sys_global_symbol_pipe="$AWK '"\
6658"     {last_section=section; section=\$ 3};"\
6659"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6660"     \$ 0!~/External *\|/{next};"\
6661"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6662"     {if(hide[section]) next};"\
6663"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6664"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6665"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6666"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6667"     ' prfx=^$ac_symprfx"
6668  else
6669    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6670  fi
6671
6672  # Check to see that the pipe works correctly.
6673  pipe_works=no
6674
6675  rm -f conftest*
6676  cat > conftest.$ac_ext <<_LT_EOF
6677#ifdef __cplusplus
6678extern "C" {
6679#endif
6680char nm_test_var;
6681void nm_test_func(void);
6682void nm_test_func(void){}
6683#ifdef __cplusplus
6684}
6685#endif
6686int main(){nm_test_var='a';nm_test_func();return(0);}
6687_LT_EOF
6688
6689  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6690  (eval $ac_compile) 2>&5
6691  ac_status=$?
6692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6693  test $ac_status = 0; }; then
6694    # Now try to grab the symbols.
6695    nlist=conftest.nm
6696    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6697  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6698  ac_status=$?
6699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700  test $ac_status = 0; } && test -s "$nlist"; then
6701      # Try sorting and uniquifying the output.
6702      if sort "$nlist" | uniq > "$nlist"T; then
6703	mv -f "$nlist"T "$nlist"
6704      else
6705	rm -f "$nlist"T
6706      fi
6707
6708      # Make sure that we snagged all the symbols we need.
6709      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6710	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6711	  cat <<_LT_EOF > conftest.$ac_ext
6712#ifdef __cplusplus
6713extern "C" {
6714#endif
6715
6716_LT_EOF
6717	  # Now generate the symbol file.
6718	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6719
6720	  cat <<_LT_EOF >> conftest.$ac_ext
6721
6722/* The mapping between symbol names and symbols.  */
6723const struct {
6724  const char *name;
6725  void       *address;
6726}
6727lt__PROGRAM__LTX_preloaded_symbols[] =
6728{
6729  { "@PROGRAM@", (void *) 0 },
6730_LT_EOF
6731	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6732	  cat <<\_LT_EOF >> conftest.$ac_ext
6733  {0, (void *) 0}
6734};
6735
6736/* This works around a problem in FreeBSD linker */
6737#ifdef FREEBSD_WORKAROUND
6738static const void *lt_preloaded_setup() {
6739  return lt__PROGRAM__LTX_preloaded_symbols;
6740}
6741#endif
6742
6743#ifdef __cplusplus
6744}
6745#endif
6746_LT_EOF
6747	  # Now try linking the two files.
6748	  mv conftest.$ac_objext conftstm.$ac_objext
6749	  lt_save_LIBS="$LIBS"
6750	  lt_save_CFLAGS="$CFLAGS"
6751	  LIBS="conftstm.$ac_objext"
6752	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6753	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6754  (eval $ac_link) 2>&5
6755  ac_status=$?
6756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6758	    pipe_works=yes
6759	  fi
6760	  LIBS="$lt_save_LIBS"
6761	  CFLAGS="$lt_save_CFLAGS"
6762	else
6763	  echo "cannot find nm_test_func in $nlist" >&5
6764	fi
6765      else
6766	echo "cannot find nm_test_var in $nlist" >&5
6767      fi
6768    else
6769      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6770    fi
6771  else
6772    echo "$progname: failed program was:" >&5
6773    cat conftest.$ac_ext >&5
6774  fi
6775  rm -rf conftest* conftst*
6776
6777  # Do not use the global_symbol_pipe unless it works.
6778  if test "$pipe_works" = yes; then
6779    break
6780  else
6781    lt_cv_sys_global_symbol_pipe=
6782  fi
6783done
6784
6785fi
6786
6787if test -z "$lt_cv_sys_global_symbol_pipe"; then
6788  lt_cv_sys_global_symbol_to_cdecl=
6789fi
6790if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6792$as_echo "failed" >&6; }
6793else
6794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6795$as_echo "ok" >&6; }
6796fi
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819# Check whether --enable-libtool-lock was given.
6820if test "${enable_libtool_lock+set}" = set; then :
6821  enableval=$enable_libtool_lock;
6822fi
6823
6824test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6825
6826# Some flags need to be propagated to the compiler or linker for good
6827# libtool support.
6828case $host in
6829ia64-*-hpux*)
6830  # Find out which ABI we are using.
6831  echo 'int i;' > conftest.$ac_ext
6832  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6833  (eval $ac_compile) 2>&5
6834  ac_status=$?
6835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836  test $ac_status = 0; }; then
6837    case `/usr/bin/file conftest.$ac_objext` in
6838      *ELF-32*)
6839	HPUX_IA64_MODE="32"
6840	;;
6841      *ELF-64*)
6842	HPUX_IA64_MODE="64"
6843	;;
6844    esac
6845  fi
6846  rm -rf conftest*
6847  ;;
6848*-*-irix6*)
6849  # Find out which ABI we are using.
6850  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6851  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852  (eval $ac_compile) 2>&5
6853  ac_status=$?
6854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855  test $ac_status = 0; }; then
6856    if test "$lt_cv_prog_gnu_ld" = yes; then
6857      case `/usr/bin/file conftest.$ac_objext` in
6858	*32-bit*)
6859	  LD="${LD-ld} -melf32bsmip"
6860	  ;;
6861	*N32*)
6862	  LD="${LD-ld} -melf32bmipn32"
6863	  ;;
6864	*64-bit*)
6865	  LD="${LD-ld} -melf64bmip"
6866	;;
6867      esac
6868    else
6869      case `/usr/bin/file conftest.$ac_objext` in
6870	*32-bit*)
6871	  LD="${LD-ld} -32"
6872	  ;;
6873	*N32*)
6874	  LD="${LD-ld} -n32"
6875	  ;;
6876	*64-bit*)
6877	  LD="${LD-ld} -64"
6878	  ;;
6879      esac
6880    fi
6881  fi
6882  rm -rf conftest*
6883  ;;
6884
6885x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6886s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6887  # Find out which ABI we are using.
6888  echo 'int i;' > conftest.$ac_ext
6889  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6890  (eval $ac_compile) 2>&5
6891  ac_status=$?
6892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893  test $ac_status = 0; }; then
6894    case `/usr/bin/file conftest.o` in
6895      *32-bit*)
6896	case $host in
6897	  x86_64-*kfreebsd*-gnu)
6898	    LD="${LD-ld} -m elf_i386_fbsd"
6899	    ;;
6900	  x86_64-*linux*)
6901	    case `/usr/bin/file conftest.o` in
6902	      *x86-64*)
6903		LD="${LD-ld} -m elf32_x86_64"
6904		;;
6905	      *)
6906		LD="${LD-ld} -m elf_i386"
6907		;;
6908	    esac
6909	    ;;
6910	  powerpc64le-*linux*)
6911	    LD="${LD-ld} -m elf32lppclinux"
6912	    ;;
6913	  powerpc64-*linux*)
6914	    LD="${LD-ld} -m elf32ppclinux"
6915	    ;;
6916	  s390x-*linux*)
6917	    LD="${LD-ld} -m elf_s390"
6918	    ;;
6919	  sparc64-*linux*)
6920	    LD="${LD-ld} -m elf32_sparc"
6921	    ;;
6922	esac
6923	;;
6924      *64-bit*)
6925	case $host in
6926	  x86_64-*kfreebsd*-gnu)
6927	    LD="${LD-ld} -m elf_x86_64_fbsd"
6928	    ;;
6929	  x86_64-*linux*)
6930	    LD="${LD-ld} -m elf_x86_64"
6931	    ;;
6932	  powerpcle-*linux*)
6933	    LD="${LD-ld} -m elf64lppc"
6934	    ;;
6935	  powerpc-*linux*)
6936	    LD="${LD-ld} -m elf64ppc"
6937	    ;;
6938	  s390*-*linux*|s390*-*tpf*)
6939	    LD="${LD-ld} -m elf64_s390"
6940	    ;;
6941	  sparc*-*linux*)
6942	    LD="${LD-ld} -m elf64_sparc"
6943	    ;;
6944	esac
6945	;;
6946    esac
6947  fi
6948  rm -rf conftest*
6949  ;;
6950
6951*-*-sco3.2v5*)
6952  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6953  SAVE_CFLAGS="$CFLAGS"
6954  CFLAGS="$CFLAGS -belf"
6955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6956$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6957if test "${lt_cv_cc_needs_belf+set}" = set; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960  ac_ext=c
6961ac_cpp='$CPP $CPPFLAGS'
6962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964ac_compiler_gnu=$ac_cv_c_compiler_gnu
6965
6966     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967/* end confdefs.h.  */
6968
6969int
6970main ()
6971{
6972
6973  ;
6974  return 0;
6975}
6976_ACEOF
6977if ac_fn_c_try_link "$LINENO"; then :
6978  lt_cv_cc_needs_belf=yes
6979else
6980  lt_cv_cc_needs_belf=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext \
6983    conftest$ac_exeext conftest.$ac_ext
6984     ac_ext=c
6985ac_cpp='$CPP $CPPFLAGS'
6986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6988ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6992$as_echo "$lt_cv_cc_needs_belf" >&6; }
6993  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6994    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6995    CFLAGS="$SAVE_CFLAGS"
6996  fi
6997  ;;
6998sparc*-*solaris*)
6999  # Find out which ABI we are using.
7000  echo 'int i;' > conftest.$ac_ext
7001  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7002  (eval $ac_compile) 2>&5
7003  ac_status=$?
7004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005  test $ac_status = 0; }; then
7006    case `/usr/bin/file conftest.o` in
7007    *64-bit*)
7008      case $lt_cv_prog_gnu_ld in
7009      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7010      *)
7011	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7012	  LD="${LD-ld} -64"
7013	fi
7014	;;
7015      esac
7016      ;;
7017    esac
7018  fi
7019  rm -rf conftest*
7020  ;;
7021esac
7022
7023need_locks="$enable_libtool_lock"
7024
7025
7026  case $host_os in
7027    rhapsody* | darwin*)
7028    if test -n "$ac_tool_prefix"; then
7029  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7030set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032$as_echo_n "checking for $ac_word... " >&6; }
7033if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7034  $as_echo_n "(cached) " >&6
7035else
7036  if test -n "$DSYMUTIL"; then
7037  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7038else
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042  IFS=$as_save_IFS
7043  test -z "$as_dir" && as_dir=.
7044    for ac_exec_ext in '' $ac_executable_extensions; do
7045  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048    break 2
7049  fi
7050done
7051  done
7052IFS=$as_save_IFS
7053
7054fi
7055fi
7056DSYMUTIL=$ac_cv_prog_DSYMUTIL
7057if test -n "$DSYMUTIL"; then
7058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7059$as_echo "$DSYMUTIL" >&6; }
7060else
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062$as_echo "no" >&6; }
7063fi
7064
7065
7066fi
7067if test -z "$ac_cv_prog_DSYMUTIL"; then
7068  ac_ct_DSYMUTIL=$DSYMUTIL
7069  # Extract the first word of "dsymutil", so it can be a program name with args.
7070set dummy dsymutil; ac_word=$2
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072$as_echo_n "checking for $ac_word... " >&6; }
7073if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7074  $as_echo_n "(cached) " >&6
7075else
7076  if test -n "$ac_ct_DSYMUTIL"; then
7077  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082  IFS=$as_save_IFS
7083  test -z "$as_dir" && as_dir=.
7084    for ac_exec_ext in '' $ac_executable_extensions; do
7085  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088    break 2
7089  fi
7090done
7091  done
7092IFS=$as_save_IFS
7093
7094fi
7095fi
7096ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7097if test -n "$ac_ct_DSYMUTIL"; then
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7099$as_echo "$ac_ct_DSYMUTIL" >&6; }
7100else
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102$as_echo "no" >&6; }
7103fi
7104
7105  if test "x$ac_ct_DSYMUTIL" = x; then
7106    DSYMUTIL=":"
7107  else
7108    case $cross_compiling:$ac_tool_warned in
7109yes:)
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112ac_tool_warned=yes ;;
7113esac
7114    DSYMUTIL=$ac_ct_DSYMUTIL
7115  fi
7116else
7117  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7118fi
7119
7120    if test -n "$ac_tool_prefix"; then
7121  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7122set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124$as_echo_n "checking for $ac_word... " >&6; }
7125if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7126  $as_echo_n "(cached) " >&6
7127else
7128  if test -n "$NMEDIT"; then
7129  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7130else
7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134  IFS=$as_save_IFS
7135  test -z "$as_dir" && as_dir=.
7136    for ac_exec_ext in '' $ac_executable_extensions; do
7137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140    break 2
7141  fi
7142done
7143  done
7144IFS=$as_save_IFS
7145
7146fi
7147fi
7148NMEDIT=$ac_cv_prog_NMEDIT
7149if test -n "$NMEDIT"; then
7150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7151$as_echo "$NMEDIT" >&6; }
7152else
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154$as_echo "no" >&6; }
7155fi
7156
7157
7158fi
7159if test -z "$ac_cv_prog_NMEDIT"; then
7160  ac_ct_NMEDIT=$NMEDIT
7161  # Extract the first word of "nmedit", so it can be a program name with args.
7162set dummy nmedit; ac_word=$2
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164$as_echo_n "checking for $ac_word... " >&6; }
7165if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  if test -n "$ac_ct_NMEDIT"; then
7169  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7170else
7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176    for ac_exec_ext in '' $ac_executable_extensions; do
7177  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183  done
7184IFS=$as_save_IFS
7185
7186fi
7187fi
7188ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7189if test -n "$ac_ct_NMEDIT"; then
7190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7191$as_echo "$ac_ct_NMEDIT" >&6; }
7192else
7193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194$as_echo "no" >&6; }
7195fi
7196
7197  if test "x$ac_ct_NMEDIT" = x; then
7198    NMEDIT=":"
7199  else
7200    case $cross_compiling:$ac_tool_warned in
7201yes:)
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204ac_tool_warned=yes ;;
7205esac
7206    NMEDIT=$ac_ct_NMEDIT
7207  fi
7208else
7209  NMEDIT="$ac_cv_prog_NMEDIT"
7210fi
7211
7212    if test -n "$ac_tool_prefix"; then
7213  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7214set dummy ${ac_tool_prefix}lipo; ac_word=$2
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216$as_echo_n "checking for $ac_word... " >&6; }
7217if test "${ac_cv_prog_LIPO+set}" = set; then :
7218  $as_echo_n "(cached) " >&6
7219else
7220  if test -n "$LIPO"; then
7221  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7222else
7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226  IFS=$as_save_IFS
7227  test -z "$as_dir" && as_dir=.
7228    for ac_exec_ext in '' $ac_executable_extensions; do
7229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232    break 2
7233  fi
7234done
7235  done
7236IFS=$as_save_IFS
7237
7238fi
7239fi
7240LIPO=$ac_cv_prog_LIPO
7241if test -n "$LIPO"; then
7242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7243$as_echo "$LIPO" >&6; }
7244else
7245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246$as_echo "no" >&6; }
7247fi
7248
7249
7250fi
7251if test -z "$ac_cv_prog_LIPO"; then
7252  ac_ct_LIPO=$LIPO
7253  # Extract the first word of "lipo", so it can be a program name with args.
7254set dummy lipo; ac_word=$2
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256$as_echo_n "checking for $ac_word... " >&6; }
7257if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  if test -n "$ac_ct_LIPO"; then
7261  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7262else
7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266  IFS=$as_save_IFS
7267  test -z "$as_dir" && as_dir=.
7268    for ac_exec_ext in '' $ac_executable_extensions; do
7269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7270    ac_cv_prog_ac_ct_LIPO="lipo"
7271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272    break 2
7273  fi
7274done
7275  done
7276IFS=$as_save_IFS
7277
7278fi
7279fi
7280ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7281if test -n "$ac_ct_LIPO"; then
7282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7283$as_echo "$ac_ct_LIPO" >&6; }
7284else
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286$as_echo "no" >&6; }
7287fi
7288
7289  if test "x$ac_ct_LIPO" = x; then
7290    LIPO=":"
7291  else
7292    case $cross_compiling:$ac_tool_warned in
7293yes:)
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7296ac_tool_warned=yes ;;
7297esac
7298    LIPO=$ac_ct_LIPO
7299  fi
7300else
7301  LIPO="$ac_cv_prog_LIPO"
7302fi
7303
7304    if test -n "$ac_tool_prefix"; then
7305  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7306set dummy ${ac_tool_prefix}otool; ac_word=$2
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308$as_echo_n "checking for $ac_word... " >&6; }
7309if test "${ac_cv_prog_OTOOL+set}" = set; then :
7310  $as_echo_n "(cached) " >&6
7311else
7312  if test -n "$OTOOL"; then
7313  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318  IFS=$as_save_IFS
7319  test -z "$as_dir" && as_dir=.
7320    for ac_exec_ext in '' $ac_executable_extensions; do
7321  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324    break 2
7325  fi
7326done
7327  done
7328IFS=$as_save_IFS
7329
7330fi
7331fi
7332OTOOL=$ac_cv_prog_OTOOL
7333if test -n "$OTOOL"; then
7334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7335$as_echo "$OTOOL" >&6; }
7336else
7337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338$as_echo "no" >&6; }
7339fi
7340
7341
7342fi
7343if test -z "$ac_cv_prog_OTOOL"; then
7344  ac_ct_OTOOL=$OTOOL
7345  # Extract the first word of "otool", so it can be a program name with args.
7346set dummy otool; ac_word=$2
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348$as_echo_n "checking for $ac_word... " >&6; }
7349if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  if test -n "$ac_ct_OTOOL"; then
7353  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7354else
7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358  IFS=$as_save_IFS
7359  test -z "$as_dir" && as_dir=.
7360    for ac_exec_ext in '' $ac_executable_extensions; do
7361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7362    ac_cv_prog_ac_ct_OTOOL="otool"
7363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364    break 2
7365  fi
7366done
7367  done
7368IFS=$as_save_IFS
7369
7370fi
7371fi
7372ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7373if test -n "$ac_ct_OTOOL"; then
7374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7375$as_echo "$ac_ct_OTOOL" >&6; }
7376else
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378$as_echo "no" >&6; }
7379fi
7380
7381  if test "x$ac_ct_OTOOL" = x; then
7382    OTOOL=":"
7383  else
7384    case $cross_compiling:$ac_tool_warned in
7385yes:)
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7388ac_tool_warned=yes ;;
7389esac
7390    OTOOL=$ac_ct_OTOOL
7391  fi
7392else
7393  OTOOL="$ac_cv_prog_OTOOL"
7394fi
7395
7396    if test -n "$ac_tool_prefix"; then
7397  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7398set dummy ${ac_tool_prefix}otool64; ac_word=$2
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400$as_echo_n "checking for $ac_word... " >&6; }
7401if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404  if test -n "$OTOOL64"; then
7405  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7406else
7407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408for as_dir in $PATH
7409do
7410  IFS=$as_save_IFS
7411  test -z "$as_dir" && as_dir=.
7412    for ac_exec_ext in '' $ac_executable_extensions; do
7413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416    break 2
7417  fi
7418done
7419  done
7420IFS=$as_save_IFS
7421
7422fi
7423fi
7424OTOOL64=$ac_cv_prog_OTOOL64
7425if test -n "$OTOOL64"; then
7426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7427$as_echo "$OTOOL64" >&6; }
7428else
7429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430$as_echo "no" >&6; }
7431fi
7432
7433
7434fi
7435if test -z "$ac_cv_prog_OTOOL64"; then
7436  ac_ct_OTOOL64=$OTOOL64
7437  # Extract the first word of "otool64", so it can be a program name with args.
7438set dummy otool64; ac_word=$2
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440$as_echo_n "checking for $ac_word... " >&6; }
7441if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7442  $as_echo_n "(cached) " >&6
7443else
7444  if test -n "$ac_ct_OTOOL64"; then
7445  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7446else
7447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448for as_dir in $PATH
7449do
7450  IFS=$as_save_IFS
7451  test -z "$as_dir" && as_dir=.
7452    for ac_exec_ext in '' $ac_executable_extensions; do
7453  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454    ac_cv_prog_ac_ct_OTOOL64="otool64"
7455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456    break 2
7457  fi
7458done
7459  done
7460IFS=$as_save_IFS
7461
7462fi
7463fi
7464ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7465if test -n "$ac_ct_OTOOL64"; then
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7467$as_echo "$ac_ct_OTOOL64" >&6; }
7468else
7469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470$as_echo "no" >&6; }
7471fi
7472
7473  if test "x$ac_ct_OTOOL64" = x; then
7474    OTOOL64=":"
7475  else
7476    case $cross_compiling:$ac_tool_warned in
7477yes:)
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7480ac_tool_warned=yes ;;
7481esac
7482    OTOOL64=$ac_ct_OTOOL64
7483  fi
7484else
7485  OTOOL64="$ac_cv_prog_OTOOL64"
7486fi
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7515$as_echo_n "checking for -single_module linker flag... " >&6; }
7516if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7517  $as_echo_n "(cached) " >&6
7518else
7519  lt_cv_apple_cc_single_mod=no
7520      if test -z "${LT_MULTI_MODULE}"; then
7521	# By default we will add the -single_module flag. You can override
7522	# by either setting the environment variable LT_MULTI_MODULE
7523	# non-empty at configure time, or by adding -multi_module to the
7524	# link flags.
7525	rm -rf libconftest.dylib*
7526	echo "int foo(void){return 1;}" > conftest.c
7527	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7528-dynamiclib -Wl,-single_module conftest.c" >&5
7529	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7530	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7531        _lt_result=$?
7532	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7533	  lt_cv_apple_cc_single_mod=yes
7534	else
7535	  cat conftest.err >&5
7536	fi
7537	rm -rf libconftest.dylib*
7538	rm -f conftest.*
7539      fi
7540fi
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7542$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7543    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7544$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7545if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7546  $as_echo_n "(cached) " >&6
7547else
7548  lt_cv_ld_exported_symbols_list=no
7549      save_LDFLAGS=$LDFLAGS
7550      echo "_main" > conftest.sym
7551      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7552      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h.  */
7554
7555int
7556main ()
7557{
7558
7559  ;
7560  return 0;
7561}
7562_ACEOF
7563if ac_fn_c_try_link "$LINENO"; then :
7564  lt_cv_ld_exported_symbols_list=yes
7565else
7566  lt_cv_ld_exported_symbols_list=no
7567fi
7568rm -f core conftest.err conftest.$ac_objext \
7569    conftest$ac_exeext conftest.$ac_ext
7570	LDFLAGS="$save_LDFLAGS"
7571
7572fi
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7574$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7575    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7576$as_echo_n "checking for -force_load linker flag... " >&6; }
7577if test "${lt_cv_ld_force_load+set}" = set; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  lt_cv_ld_force_load=no
7581      cat > conftest.c << _LT_EOF
7582int forced_loaded() { return 2;}
7583_LT_EOF
7584      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7585      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7586      echo "$AR cru libconftest.a conftest.o" >&5
7587      $AR cru libconftest.a conftest.o 2>&5
7588      cat > conftest.c << _LT_EOF
7589int main() { return 0;}
7590_LT_EOF
7591      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7592      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7593      _lt_result=$?
7594      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7595	lt_cv_ld_force_load=yes
7596      else
7597	cat conftest.err >&5
7598      fi
7599        rm -f conftest.err libconftest.a conftest conftest.c
7600        rm -rf conftest.dSYM
7601
7602fi
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7604$as_echo "$lt_cv_ld_force_load" >&6; }
7605    case $host_os in
7606    rhapsody* | darwin1.[012])
7607      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7608    darwin1.*)
7609      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7610    darwin*) # darwin 5.x on
7611      # if running on 10.5 or later, the deployment target defaults
7612      # to the OS version, if on x86, and 10.4, the deployment
7613      # target defaults to 10.4. Don't you love it?
7614      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7615	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7616	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7617	10.[012]*)
7618	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7619	10.*)
7620	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7621      esac
7622    ;;
7623  esac
7624    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7625      _lt_dar_single_mod='$single_module'
7626    fi
7627    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7628      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7629    else
7630      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7631    fi
7632    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7633      _lt_dsymutil='~$DSYMUTIL $lib || :'
7634    else
7635      _lt_dsymutil=
7636    fi
7637    ;;
7638  esac
7639
7640for ac_header in dlfcn.h
7641do :
7642  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7643"
7644if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7645  cat >>confdefs.h <<_ACEOF
7646#define HAVE_DLFCN_H 1
7647_ACEOF
7648
7649fi
7650
7651done
7652
7653
7654
7655
7656
7657# Set options
7658# Check whether --enable-shared was given.
7659if test "${enable_shared+set}" = set; then :
7660  enableval=$enable_shared; p=${PACKAGE-default}
7661    case $enableval in
7662    yes) enable_shared=yes ;;
7663    no) enable_shared=no ;;
7664    *)
7665      enable_shared=no
7666      # Look at the argument we got.  We use all the common list separators.
7667      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7668      for pkg in $enableval; do
7669	IFS="$lt_save_ifs"
7670	if test "X$pkg" = "X$p"; then
7671	  enable_shared=yes
7672	fi
7673      done
7674      IFS="$lt_save_ifs"
7675      ;;
7676    esac
7677else
7678  enable_shared=no
7679fi
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690        enable_dlopen=no
7691
7692
7693  enable_win32_dll=no
7694
7695
7696
7697  # Check whether --enable-static was given.
7698if test "${enable_static+set}" = set; then :
7699  enableval=$enable_static; p=${PACKAGE-default}
7700    case $enableval in
7701    yes) enable_static=yes ;;
7702    no) enable_static=no ;;
7703    *)
7704     enable_static=no
7705      # Look at the argument we got.  We use all the common list separators.
7706      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7707      for pkg in $enableval; do
7708	IFS="$lt_save_ifs"
7709	if test "X$pkg" = "X$p"; then
7710	  enable_static=yes
7711	fi
7712      done
7713      IFS="$lt_save_ifs"
7714      ;;
7715    esac
7716else
7717  enable_static=yes
7718fi
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729# Check whether --with-pic was given.
7730if test "${with_pic+set}" = set; then :
7731  withval=$with_pic; pic_mode="$withval"
7732else
7733  pic_mode=default
7734fi
7735
7736
7737test -z "$pic_mode" && pic_mode=default
7738
7739
7740
7741
7742
7743
7744
7745  # Check whether --enable-fast-install was given.
7746if test "${enable_fast_install+set}" = set; then :
7747  enableval=$enable_fast_install; p=${PACKAGE-default}
7748    case $enableval in
7749    yes) enable_fast_install=yes ;;
7750    no) enable_fast_install=no ;;
7751    *)
7752      enable_fast_install=no
7753      # Look at the argument we got.  We use all the common list separators.
7754      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7755      for pkg in $enableval; do
7756	IFS="$lt_save_ifs"
7757	if test "X$pkg" = "X$p"; then
7758	  enable_fast_install=yes
7759	fi
7760      done
7761      IFS="$lt_save_ifs"
7762      ;;
7763    esac
7764else
7765  enable_fast_install=yes
7766fi
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778# This can be used to rebuild libtool when needed
7779LIBTOOL_DEPS="$ltmain"
7780
7781# Always use our own libtool.
7782LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809test -z "$LN_S" && LN_S="ln -s"
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824if test -n "${ZSH_VERSION+set}" ; then
7825   setopt NO_GLOB_SUBST
7826fi
7827
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7829$as_echo_n "checking for objdir... " >&6; }
7830if test "${lt_cv_objdir+set}" = set; then :
7831  $as_echo_n "(cached) " >&6
7832else
7833  rm -f .libs 2>/dev/null
7834mkdir .libs 2>/dev/null
7835if test -d .libs; then
7836  lt_cv_objdir=.libs
7837else
7838  # MS-DOS does not allow filenames that begin with a dot.
7839  lt_cv_objdir=_libs
7840fi
7841rmdir .libs 2>/dev/null
7842fi
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7844$as_echo "$lt_cv_objdir" >&6; }
7845objdir=$lt_cv_objdir
7846
7847
7848
7849
7850
7851cat >>confdefs.h <<_ACEOF
7852#define LT_OBJDIR "$lt_cv_objdir/"
7853_ACEOF
7854
7855
7856
7857
7858case $host_os in
7859aix3*)
7860  # AIX sometimes has problems with the GCC collect2 program.  For some
7861  # reason, if we set the COLLECT_NAMES environment variable, the problems
7862  # vanish in a puff of smoke.
7863  if test "X${COLLECT_NAMES+set}" != Xset; then
7864    COLLECT_NAMES=
7865    export COLLECT_NAMES
7866  fi
7867  ;;
7868esac
7869
7870# Global variables:
7871ofile=libtool
7872can_build_shared=yes
7873
7874# All known linkers require a `.a' archive for static linking (except MSVC,
7875# which needs '.lib').
7876libext=a
7877
7878with_gnu_ld="$lt_cv_prog_gnu_ld"
7879
7880old_CC="$CC"
7881old_CFLAGS="$CFLAGS"
7882
7883# Set sane defaults for various variables
7884test -z "$CC" && CC=cc
7885test -z "$LTCC" && LTCC=$CC
7886test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7887test -z "$LD" && LD=ld
7888test -z "$ac_objext" && ac_objext=o
7889
7890for cc_temp in $compiler""; do
7891  case $cc_temp in
7892    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7893    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7894    \-*) ;;
7895    *) break;;
7896  esac
7897done
7898cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7899
7900
7901# Only perform the check for file, if the check method requires it
7902test -z "$MAGIC_CMD" && MAGIC_CMD=file
7903case $deplibs_check_method in
7904file_magic*)
7905  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7907$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7908if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7909  $as_echo_n "(cached) " >&6
7910else
7911  case $MAGIC_CMD in
7912[\\/*] |  ?:[\\/]*)
7913  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7914  ;;
7915*)
7916  lt_save_MAGIC_CMD="$MAGIC_CMD"
7917  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7918  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7919  for ac_dir in $ac_dummy; do
7920    IFS="$lt_save_ifs"
7921    test -z "$ac_dir" && ac_dir=.
7922    if test -f $ac_dir/${ac_tool_prefix}file; then
7923      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7924      if test -n "$file_magic_test_file"; then
7925	case $deplibs_check_method in
7926	"file_magic "*)
7927	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7928	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7929	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7930	    $EGREP "$file_magic_regex" > /dev/null; then
7931	    :
7932	  else
7933	    cat <<_LT_EOF 1>&2
7934
7935*** Warning: the command libtool uses to detect shared libraries,
7936*** $file_magic_cmd, produces output that libtool cannot recognize.
7937*** The result is that libtool may fail to recognize shared libraries
7938*** as such.  This will affect the creation of libtool libraries that
7939*** depend on shared libraries, but programs linked with such libtool
7940*** libraries will work regardless of this problem.  Nevertheless, you
7941*** may want to report the problem to your system manager and/or to
7942*** bug-libtool@gnu.org
7943
7944_LT_EOF
7945	  fi ;;
7946	esac
7947      fi
7948      break
7949    fi
7950  done
7951  IFS="$lt_save_ifs"
7952  MAGIC_CMD="$lt_save_MAGIC_CMD"
7953  ;;
7954esac
7955fi
7956
7957MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7958if test -n "$MAGIC_CMD"; then
7959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7960$as_echo "$MAGIC_CMD" >&6; }
7961else
7962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963$as_echo "no" >&6; }
7964fi
7965
7966
7967
7968
7969
7970if test -z "$lt_cv_path_MAGIC_CMD"; then
7971  if test -n "$ac_tool_prefix"; then
7972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7973$as_echo_n "checking for file... " >&6; }
7974if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7975  $as_echo_n "(cached) " >&6
7976else
7977  case $MAGIC_CMD in
7978[\\/*] |  ?:[\\/]*)
7979  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7980  ;;
7981*)
7982  lt_save_MAGIC_CMD="$MAGIC_CMD"
7983  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7984  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7985  for ac_dir in $ac_dummy; do
7986    IFS="$lt_save_ifs"
7987    test -z "$ac_dir" && ac_dir=.
7988    if test -f $ac_dir/file; then
7989      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7990      if test -n "$file_magic_test_file"; then
7991	case $deplibs_check_method in
7992	"file_magic "*)
7993	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7994	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7996	    $EGREP "$file_magic_regex" > /dev/null; then
7997	    :
7998	  else
7999	    cat <<_LT_EOF 1>&2
8000
8001*** Warning: the command libtool uses to detect shared libraries,
8002*** $file_magic_cmd, produces output that libtool cannot recognize.
8003*** The result is that libtool may fail to recognize shared libraries
8004*** as such.  This will affect the creation of libtool libraries that
8005*** depend on shared libraries, but programs linked with such libtool
8006*** libraries will work regardless of this problem.  Nevertheless, you
8007*** may want to report the problem to your system manager and/or to
8008*** bug-libtool@gnu.org
8009
8010_LT_EOF
8011	  fi ;;
8012	esac
8013      fi
8014      break
8015    fi
8016  done
8017  IFS="$lt_save_ifs"
8018  MAGIC_CMD="$lt_save_MAGIC_CMD"
8019  ;;
8020esac
8021fi
8022
8023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8024if test -n "$MAGIC_CMD"; then
8025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8026$as_echo "$MAGIC_CMD" >&6; }
8027else
8028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029$as_echo "no" >&6; }
8030fi
8031
8032
8033  else
8034    MAGIC_CMD=:
8035  fi
8036fi
8037
8038  fi
8039  ;;
8040esac
8041
8042# Use C for the default configuration in the libtool script
8043
8044lt_save_CC="$CC"
8045ac_ext=c
8046ac_cpp='$CPP $CPPFLAGS'
8047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8049ac_compiler_gnu=$ac_cv_c_compiler_gnu
8050
8051
8052# Source file extension for C test sources.
8053ac_ext=c
8054
8055# Object file extension for compiled C test sources.
8056objext=o
8057objext=$objext
8058
8059# Code to be used in simple compile tests
8060lt_simple_compile_test_code="int some_variable = 0;"
8061
8062# Code to be used in simple link tests
8063lt_simple_link_test_code='int main(){return(0);}'
8064
8065
8066
8067
8068
8069
8070
8071# If no C compiler was specified, use CC.
8072LTCC=${LTCC-"$CC"}
8073
8074# If no C compiler flags were specified, use CFLAGS.
8075LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8076
8077# Allow CC to be a program name with arguments.
8078compiler=$CC
8079
8080# Save the default compiler, since it gets overwritten when the other
8081# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8082compiler_DEFAULT=$CC
8083
8084# save warnings/boilerplate of simple test code
8085ac_outfile=conftest.$ac_objext
8086echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8088_lt_compiler_boilerplate=`cat conftest.err`
8089$RM conftest*
8090
8091ac_outfile=conftest.$ac_objext
8092echo "$lt_simple_link_test_code" >conftest.$ac_ext
8093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8094_lt_linker_boilerplate=`cat conftest.err`
8095$RM -r conftest*
8096
8097
8098## CAVEAT EMPTOR:
8099## There is no encapsulation within the following macros, do not change
8100## the running order or otherwise move them around unless you know exactly
8101## what you are doing...
8102if test -n "$compiler"; then
8103
8104lt_prog_compiler_no_builtin_flag=
8105
8106if test "$GCC" = yes; then
8107  case $cc_basename in
8108  nvcc*)
8109    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8110  *)
8111    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8112  esac
8113
8114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8115$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8116if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8117  $as_echo_n "(cached) " >&6
8118else
8119  lt_cv_prog_compiler_rtti_exceptions=no
8120   ac_outfile=conftest.$ac_objext
8121   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8122   lt_compiler_flag="-fno-rtti -fno-exceptions"
8123   # Insert the option either (1) after the last *FLAGS variable, or
8124   # (2) before a word containing "conftest.", or (3) at the end.
8125   # Note that $ac_compile itself does not contain backslashes and begins
8126   # with a dollar sign (not a hyphen), so the echo should work correctly.
8127   # The option is referenced via a variable to avoid confusing sed.
8128   lt_compile=`echo "$ac_compile" | $SED \
8129   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8130   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8131   -e 's:$: $lt_compiler_flag:'`
8132   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8133   (eval "$lt_compile" 2>conftest.err)
8134   ac_status=$?
8135   cat conftest.err >&5
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   if (exit $ac_status) && test -s "$ac_outfile"; then
8138     # The compiler can only warn and ignore the option if not recognized
8139     # So say no if there are warnings other than the usual output.
8140     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8141     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8142     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8143       lt_cv_prog_compiler_rtti_exceptions=yes
8144     fi
8145   fi
8146   $RM conftest*
8147
8148fi
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8150$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8151
8152if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8153    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8154else
8155    :
8156fi
8157
8158fi
8159
8160
8161
8162
8163
8164
8165  lt_prog_compiler_wl=
8166lt_prog_compiler_pic=
8167lt_prog_compiler_static=
8168
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8170$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8171
8172  if test "$GCC" = yes; then
8173    lt_prog_compiler_wl='-Wl,'
8174    lt_prog_compiler_static='-static'
8175
8176    case $host_os in
8177      aix*)
8178      # All AIX code is PIC.
8179      if test "$host_cpu" = ia64; then
8180	# AIX 5 now supports IA64 processor
8181	lt_prog_compiler_static='-Bstatic'
8182      fi
8183      lt_prog_compiler_pic='-fPIC'
8184      ;;
8185
8186    amigaos*)
8187      case $host_cpu in
8188      powerpc)
8189            # see comment about AmigaOS4 .so support
8190            lt_prog_compiler_pic='-fPIC'
8191        ;;
8192      m68k)
8193            # FIXME: we need at least 68020 code to build shared libraries, but
8194            # adding the `-m68020' flag to GCC prevents building anything better,
8195            # like `-m68040'.
8196            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8197        ;;
8198      esac
8199      ;;
8200
8201    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8202      # PIC is the default for these OSes.
8203      ;;
8204
8205    mingw* | cygwin* | pw32* | os2* | cegcc*)
8206      # This hack is so that the source file can tell whether it is being
8207      # built for inclusion in a dll (and should export symbols for example).
8208      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8209      # (--disable-auto-import) libraries
8210      lt_prog_compiler_pic='-DDLL_EXPORT'
8211      ;;
8212
8213    darwin* | rhapsody*)
8214      # PIC is the default on this platform
8215      # Common symbols not allowed in MH_DYLIB files
8216      lt_prog_compiler_pic='-fno-common'
8217      ;;
8218
8219    haiku*)
8220      # PIC is the default for Haiku.
8221      # The "-static" flag exists, but is broken.
8222      lt_prog_compiler_static=
8223      ;;
8224
8225    hpux*)
8226      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8227      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8228      # sets the default TLS model and affects inlining.
8229      case $host_cpu in
8230      hppa*64*)
8231	# +Z the default
8232	;;
8233      *)
8234	lt_prog_compiler_pic='-fPIC'
8235	;;
8236      esac
8237      ;;
8238
8239    interix[3-9]*)
8240      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8241      # Instead, we relocate shared libraries at runtime.
8242      ;;
8243
8244    msdosdjgpp*)
8245      # Just because we use GCC doesn't mean we suddenly get shared libraries
8246      # on systems that don't support them.
8247      lt_prog_compiler_can_build_shared=no
8248      enable_shared=no
8249      ;;
8250
8251    *nto* | *qnx*)
8252      # QNX uses GNU C++, but need to define -shared option too, otherwise
8253      # it will coredump.
8254      lt_prog_compiler_pic='-fPIC -shared'
8255      ;;
8256
8257    sysv4*MP*)
8258      if test -d /usr/nec; then
8259	lt_prog_compiler_pic=-Kconform_pic
8260      fi
8261      ;;
8262
8263    *)
8264      lt_prog_compiler_pic='-fPIC'
8265      ;;
8266    esac
8267
8268    case $cc_basename in
8269    nvcc*) # Cuda Compiler Driver 2.2
8270      lt_prog_compiler_wl='-Xlinker '
8271      lt_prog_compiler_pic='-Xcompiler -fPIC'
8272      ;;
8273    esac
8274  else
8275    # PORTME Check for flag to pass linker flags through the system compiler.
8276    case $host_os in
8277    aix*)
8278      lt_prog_compiler_wl='-Wl,'
8279      if test "$host_cpu" = ia64; then
8280	# AIX 5 now supports IA64 processor
8281	lt_prog_compiler_static='-Bstatic'
8282      else
8283	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8284      fi
8285      ;;
8286
8287    mingw* | cygwin* | pw32* | os2* | cegcc*)
8288      # This hack is so that the source file can tell whether it is being
8289      # built for inclusion in a dll (and should export symbols for example).
8290      lt_prog_compiler_pic='-DDLL_EXPORT'
8291      ;;
8292
8293    hpux9* | hpux10* | hpux11*)
8294      lt_prog_compiler_wl='-Wl,'
8295      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8296      # not for PA HP-UX.
8297      case $host_cpu in
8298      hppa*64*|ia64*)
8299	# +Z the default
8300	;;
8301      *)
8302	lt_prog_compiler_pic='+Z'
8303	;;
8304      esac
8305      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8306      lt_prog_compiler_static='${wl}-a ${wl}archive'
8307      ;;
8308
8309    irix5* | irix6* | nonstopux*)
8310      lt_prog_compiler_wl='-Wl,'
8311      # PIC (with -KPIC) is the default.
8312      lt_prog_compiler_static='-non_shared'
8313      ;;
8314
8315    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8316      case $cc_basename in
8317      # old Intel for x86_64 which still supported -KPIC.
8318      ecc*)
8319	lt_prog_compiler_wl='-Wl,'
8320	lt_prog_compiler_pic='-KPIC'
8321	lt_prog_compiler_static='-static'
8322        ;;
8323      # icc used to be incompatible with GCC.
8324      # ICC 10 doesn't accept -KPIC any more.
8325      icc* | ifort*)
8326	lt_prog_compiler_wl='-Wl,'
8327	lt_prog_compiler_pic='-fPIC'
8328	lt_prog_compiler_static='-static'
8329        ;;
8330      # Lahey Fortran 8.1.
8331      lf95*)
8332	lt_prog_compiler_wl='-Wl,'
8333	lt_prog_compiler_pic='--shared'
8334	lt_prog_compiler_static='--static'
8335	;;
8336      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8337        # Portland Group compilers (*not* the Pentium gcc compiler,
8338	# which looks to be a dead project)
8339	lt_prog_compiler_wl='-Wl,'
8340	lt_prog_compiler_pic='-fpic'
8341	lt_prog_compiler_static='-Bstatic'
8342        ;;
8343      ccc*)
8344        lt_prog_compiler_wl='-Wl,'
8345        # All Alpha code is PIC.
8346        lt_prog_compiler_static='-non_shared'
8347        ;;
8348      xl* | bgxl* | bgf* | mpixl*)
8349	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8350	lt_prog_compiler_wl='-Wl,'
8351	lt_prog_compiler_pic='-qpic'
8352	lt_prog_compiler_static='-qstaticlink'
8353	;;
8354      *)
8355	case `$CC -V 2>&1 | sed 5q` in
8356	*Sun\ F* | *Sun*Fortran*)
8357	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8358	  lt_prog_compiler_pic='-KPIC'
8359	  lt_prog_compiler_static='-Bstatic'
8360	  lt_prog_compiler_wl=''
8361	  ;;
8362	*Sun\ C*)
8363	  # Sun C 5.9
8364	  lt_prog_compiler_pic='-KPIC'
8365	  lt_prog_compiler_static='-Bstatic'
8366	  lt_prog_compiler_wl='-Wl,'
8367	  ;;
8368	esac
8369	;;
8370      esac
8371      ;;
8372
8373    newsos6)
8374      lt_prog_compiler_pic='-KPIC'
8375      lt_prog_compiler_static='-Bstatic'
8376      ;;
8377
8378    *nto* | *qnx*)
8379      # QNX uses GNU C++, but need to define -shared option too, otherwise
8380      # it will coredump.
8381      lt_prog_compiler_pic='-fPIC -shared'
8382      ;;
8383
8384    osf3* | osf4* | osf5*)
8385      lt_prog_compiler_wl='-Wl,'
8386      # All OSF/1 code is PIC.
8387      lt_prog_compiler_static='-non_shared'
8388      ;;
8389
8390    rdos*)
8391      lt_prog_compiler_static='-non_shared'
8392      ;;
8393
8394    solaris*)
8395      lt_prog_compiler_pic='-KPIC'
8396      lt_prog_compiler_static='-Bstatic'
8397      case $cc_basename in
8398      f77* | f90* | f95*)
8399	lt_prog_compiler_wl='-Qoption ld ';;
8400      *)
8401	lt_prog_compiler_wl='-Wl,';;
8402      esac
8403      ;;
8404
8405    sunos4*)
8406      lt_prog_compiler_wl='-Qoption ld '
8407      lt_prog_compiler_pic='-PIC'
8408      lt_prog_compiler_static='-Bstatic'
8409      ;;
8410
8411    sysv4 | sysv4.2uw2* | sysv4.3*)
8412      lt_prog_compiler_wl='-Wl,'
8413      lt_prog_compiler_pic='-KPIC'
8414      lt_prog_compiler_static='-Bstatic'
8415      ;;
8416
8417    sysv4*MP*)
8418      if test -d /usr/nec ;then
8419	lt_prog_compiler_pic='-Kconform_pic'
8420	lt_prog_compiler_static='-Bstatic'
8421      fi
8422      ;;
8423
8424    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8425      lt_prog_compiler_wl='-Wl,'
8426      lt_prog_compiler_pic='-KPIC'
8427      lt_prog_compiler_static='-Bstatic'
8428      ;;
8429
8430    unicos*)
8431      lt_prog_compiler_wl='-Wl,'
8432      lt_prog_compiler_can_build_shared=no
8433      ;;
8434
8435    uts4*)
8436      lt_prog_compiler_pic='-pic'
8437      lt_prog_compiler_static='-Bstatic'
8438      ;;
8439
8440    *)
8441      lt_prog_compiler_can_build_shared=no
8442      ;;
8443    esac
8444  fi
8445
8446case $host_os in
8447  # For platforms which do not support PIC, -DPIC is meaningless:
8448  *djgpp*)
8449    lt_prog_compiler_pic=
8450    ;;
8451  *)
8452    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8453    ;;
8454esac
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8456$as_echo "$lt_prog_compiler_pic" >&6; }
8457
8458
8459
8460
8461
8462
8463#
8464# Check to make sure the PIC flag actually works.
8465#
8466if test -n "$lt_prog_compiler_pic"; then
8467  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8468$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8469if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8470  $as_echo_n "(cached) " >&6
8471else
8472  lt_cv_prog_compiler_pic_works=no
8473   ac_outfile=conftest.$ac_objext
8474   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8475   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8476   # Insert the option either (1) after the last *FLAGS variable, or
8477   # (2) before a word containing "conftest.", or (3) at the end.
8478   # Note that $ac_compile itself does not contain backslashes and begins
8479   # with a dollar sign (not a hyphen), so the echo should work correctly.
8480   # The option is referenced via a variable to avoid confusing sed.
8481   lt_compile=`echo "$ac_compile" | $SED \
8482   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8483   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8484   -e 's:$: $lt_compiler_flag:'`
8485   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8486   (eval "$lt_compile" 2>conftest.err)
8487   ac_status=$?
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   if (exit $ac_status) && test -s "$ac_outfile"; then
8491     # The compiler can only warn and ignore the option if not recognized
8492     # So say no if there are warnings other than the usual output.
8493     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8494     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8495     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8496       lt_cv_prog_compiler_pic_works=yes
8497     fi
8498   fi
8499   $RM conftest*
8500
8501fi
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8503$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8504
8505if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8506    case $lt_prog_compiler_pic in
8507     "" | " "*) ;;
8508     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8509     esac
8510else
8511    lt_prog_compiler_pic=
8512     lt_prog_compiler_can_build_shared=no
8513fi
8514
8515fi
8516
8517
8518
8519
8520
8521
8522#
8523# Check to make sure the static flag actually works.
8524#
8525wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8527$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8528if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  lt_cv_prog_compiler_static_works=no
8532   save_LDFLAGS="$LDFLAGS"
8533   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8534   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8535   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8536     # The linker can only warn and ignore the option if not recognized
8537     # So say no if there are warnings
8538     if test -s conftest.err; then
8539       # Append any errors to the config.log.
8540       cat conftest.err 1>&5
8541       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8542       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8543       if diff conftest.exp conftest.er2 >/dev/null; then
8544         lt_cv_prog_compiler_static_works=yes
8545       fi
8546     else
8547       lt_cv_prog_compiler_static_works=yes
8548     fi
8549   fi
8550   $RM -r conftest*
8551   LDFLAGS="$save_LDFLAGS"
8552
8553fi
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8555$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8556
8557if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8558    :
8559else
8560    lt_prog_compiler_static=
8561fi
8562
8563
8564
8565
8566
8567
8568
8569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8570$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8571if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8572  $as_echo_n "(cached) " >&6
8573else
8574  lt_cv_prog_compiler_c_o=no
8575   $RM -r conftest 2>/dev/null
8576   mkdir conftest
8577   cd conftest
8578   mkdir out
8579   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8580
8581   lt_compiler_flag="-o out/conftest2.$ac_objext"
8582   # Insert the option either (1) after the last *FLAGS variable, or
8583   # (2) before a word containing "conftest.", or (3) at the end.
8584   # Note that $ac_compile itself does not contain backslashes and begins
8585   # with a dollar sign (not a hyphen), so the echo should work correctly.
8586   lt_compile=`echo "$ac_compile" | $SED \
8587   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8588   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8589   -e 's:$: $lt_compiler_flag:'`
8590   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8591   (eval "$lt_compile" 2>out/conftest.err)
8592   ac_status=$?
8593   cat out/conftest.err >&5
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8596   then
8597     # The compiler can only warn and ignore the option if not recognized
8598     # So say no if there are warnings
8599     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8600     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8601     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8602       lt_cv_prog_compiler_c_o=yes
8603     fi
8604   fi
8605   chmod u+w . 2>&5
8606   $RM conftest*
8607   # SGI C++ compiler will create directory out/ii_files/ for
8608   # template instantiation
8609   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8610   $RM out/* && rmdir out
8611   cd ..
8612   $RM -r conftest
8613   $RM conftest*
8614
8615fi
8616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8617$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8618
8619
8620
8621
8622
8623
8624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8625$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8626if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8627  $as_echo_n "(cached) " >&6
8628else
8629  lt_cv_prog_compiler_c_o=no
8630   $RM -r conftest 2>/dev/null
8631   mkdir conftest
8632   cd conftest
8633   mkdir out
8634   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8635
8636   lt_compiler_flag="-o out/conftest2.$ac_objext"
8637   # Insert the option either (1) after the last *FLAGS variable, or
8638   # (2) before a word containing "conftest.", or (3) at the end.
8639   # Note that $ac_compile itself does not contain backslashes and begins
8640   # with a dollar sign (not a hyphen), so the echo should work correctly.
8641   lt_compile=`echo "$ac_compile" | $SED \
8642   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8643   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8644   -e 's:$: $lt_compiler_flag:'`
8645   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8646   (eval "$lt_compile" 2>out/conftest.err)
8647   ac_status=$?
8648   cat out/conftest.err >&5
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8651   then
8652     # The compiler can only warn and ignore the option if not recognized
8653     # So say no if there are warnings
8654     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8655     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8656     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8657       lt_cv_prog_compiler_c_o=yes
8658     fi
8659   fi
8660   chmod u+w . 2>&5
8661   $RM conftest*
8662   # SGI C++ compiler will create directory out/ii_files/ for
8663   # template instantiation
8664   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8665   $RM out/* && rmdir out
8666   cd ..
8667   $RM -r conftest
8668   $RM conftest*
8669
8670fi
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8672$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8673
8674
8675
8676
8677hard_links="nottested"
8678if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8679  # do not overwrite the value of need_locks provided by the user
8680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8681$as_echo_n "checking if we can lock with hard links... " >&6; }
8682  hard_links=yes
8683  $RM conftest*
8684  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8685  touch conftest.a
8686  ln conftest.a conftest.b 2>&5 || hard_links=no
8687  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8689$as_echo "$hard_links" >&6; }
8690  if test "$hard_links" = no; then
8691    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8692$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8693    need_locks=warn
8694  fi
8695else
8696  need_locks=no
8697fi
8698
8699
8700
8701
8702
8703
8704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8705$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8706
8707  runpath_var=
8708  allow_undefined_flag=
8709  always_export_symbols=no
8710  archive_cmds=
8711  archive_expsym_cmds=
8712  compiler_needs_object=no
8713  enable_shared_with_static_runtimes=no
8714  export_dynamic_flag_spec=
8715  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8716  hardcode_automatic=no
8717  hardcode_direct=no
8718  hardcode_direct_absolute=no
8719  hardcode_libdir_flag_spec=
8720  hardcode_libdir_flag_spec_ld=
8721  hardcode_libdir_separator=
8722  hardcode_minus_L=no
8723  hardcode_shlibpath_var=unsupported
8724  inherit_rpath=no
8725  link_all_deplibs=unknown
8726  module_cmds=
8727  module_expsym_cmds=
8728  old_archive_from_new_cmds=
8729  old_archive_from_expsyms_cmds=
8730  thread_safe_flag_spec=
8731  whole_archive_flag_spec=
8732  # include_expsyms should be a list of space-separated symbols to be *always*
8733  # included in the symbol list
8734  include_expsyms=
8735  # exclude_expsyms can be an extended regexp of symbols to exclude
8736  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8737  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8738  # as well as any symbol that contains `d'.
8739  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8740  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8741  # platforms (ab)use it in PIC code, but their linkers get confused if
8742  # the symbol is explicitly referenced.  Since portable code cannot
8743  # rely on this symbol name, it's probably fine to never include it in
8744  # preloaded symbol tables.
8745  # Exclude shared library initialization/finalization symbols.
8746  extract_expsyms_cmds=
8747
8748  case $host_os in
8749  cygwin* | mingw* | pw32* | cegcc*)
8750    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8751    # When not using gcc, we currently assume that we are using
8752    # Microsoft Visual C++.
8753    if test "$GCC" != yes; then
8754      with_gnu_ld=no
8755    fi
8756    ;;
8757  interix*)
8758    # we just hope/assume this is gcc and not c89 (= MSVC++)
8759    with_gnu_ld=yes
8760    ;;
8761  openbsd*)
8762    with_gnu_ld=no
8763    ;;
8764  esac
8765
8766  ld_shlibs=yes
8767
8768  # On some targets, GNU ld is compatible enough with the native linker
8769  # that we're better off using the native interface for both.
8770  lt_use_gnu_ld_interface=no
8771  if test "$with_gnu_ld" = yes; then
8772    case $host_os in
8773      aix*)
8774	# The AIX port of GNU ld has always aspired to compatibility
8775	# with the native linker.  However, as the warning in the GNU ld
8776	# block says, versions before 2.19.5* couldn't really create working
8777	# shared libraries, regardless of the interface used.
8778	case `$LD -v 2>&1` in
8779	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8780	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8781	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8782	  *)
8783	    lt_use_gnu_ld_interface=yes
8784	    ;;
8785	esac
8786	;;
8787      *)
8788	lt_use_gnu_ld_interface=yes
8789	;;
8790    esac
8791  fi
8792
8793  if test "$lt_use_gnu_ld_interface" = yes; then
8794    # If archive_cmds runs LD, not CC, wlarc should be empty
8795    wlarc='${wl}'
8796
8797    # Set some defaults for GNU ld with shared library support. These
8798    # are reset later if shared libraries are not supported. Putting them
8799    # here allows them to be overridden if necessary.
8800    runpath_var=LD_RUN_PATH
8801    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802    export_dynamic_flag_spec='${wl}--export-dynamic'
8803    # ancient GNU ld didn't support --whole-archive et. al.
8804    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8805      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8806    else
8807      whole_archive_flag_spec=
8808    fi
8809    supports_anon_versioning=no
8810    case `$LD -v 2>&1` in
8811      *GNU\ gold*) supports_anon_versioning=yes ;;
8812      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8813      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8814      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8815      *\ 2.11.*) ;; # other 2.11 versions
8816      *) supports_anon_versioning=yes ;;
8817    esac
8818
8819    # See if GNU ld supports shared libraries.
8820    case $host_os in
8821    aix[3-9]*)
8822      # On AIX/PPC, the GNU linker is very broken
8823      if test "$host_cpu" != ia64; then
8824	ld_shlibs=no
8825	cat <<_LT_EOF 1>&2
8826
8827*** Warning: the GNU linker, at least up to release 2.19, is reported
8828*** to be unable to reliably create shared libraries on AIX.
8829*** Therefore, libtool is disabling shared libraries support.  If you
8830*** really care for shared libraries, you may want to install binutils
8831*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8832*** You will then need to restart the configuration process.
8833
8834_LT_EOF
8835      fi
8836      ;;
8837
8838    amigaos*)
8839      case $host_cpu in
8840      powerpc)
8841            # see comment about AmigaOS4 .so support
8842            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843            archive_expsym_cmds=''
8844        ;;
8845      m68k)
8846            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)'
8847            hardcode_libdir_flag_spec='-L$libdir'
8848            hardcode_minus_L=yes
8849        ;;
8850      esac
8851      ;;
8852
8853    beos*)
8854      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8855	allow_undefined_flag=unsupported
8856	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8857	# support --undefined.  This deserves some investigation.  FIXME
8858	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859      else
8860	ld_shlibs=no
8861      fi
8862      ;;
8863
8864    cygwin* | mingw* | pw32* | cegcc*)
8865      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8866      # as there is no search path for DLLs.
8867      hardcode_libdir_flag_spec='-L$libdir'
8868      export_dynamic_flag_spec='${wl}--export-all-symbols'
8869      allow_undefined_flag=unsupported
8870      always_export_symbols=no
8871      enable_shared_with_static_runtimes=yes
8872      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8873
8874      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8875        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8876	# If the export-symbols file already is a .def file (1st line
8877	# is EXPORTS), use it as is; otherwise, prepend...
8878	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8879	  cp $export_symbols $output_objdir/$soname.def;
8880	else
8881	  echo EXPORTS > $output_objdir/$soname.def;
8882	  cat $export_symbols >> $output_objdir/$soname.def;
8883	fi~
8884	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8885      else
8886	ld_shlibs=no
8887      fi
8888      ;;
8889
8890    haiku*)
8891      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892      link_all_deplibs=yes
8893      ;;
8894
8895    interix[3-9]*)
8896      hardcode_direct=no
8897      hardcode_shlibpath_var=no
8898      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8899      export_dynamic_flag_spec='${wl}-E'
8900      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8901      # Instead, shared libraries are loaded at an image base (0x10000000 by
8902      # default) and relocated if they conflict, which is a slow very memory
8903      # consuming and fragmenting process.  To avoid this, we pick a random,
8904      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8905      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8906      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8907      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'
8908      ;;
8909
8910    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8911      tmp_diet=no
8912      if test "$host_os" = linux-dietlibc; then
8913	case $cc_basename in
8914	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8915	esac
8916      fi
8917      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8918	 && test "$tmp_diet" = no
8919      then
8920	tmp_addflag=
8921	tmp_sharedflag='-shared'
8922	case $cc_basename,$host_cpu in
8923        pgcc*)				# Portland Group C compiler
8924	  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'
8925	  tmp_addflag=' $pic_flag'
8926	  ;;
8927	pgf77* | pgf90* | pgf95* | pgfortran*)
8928					# Portland Group f77 and f90 compilers
8929	  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'
8930	  tmp_addflag=' $pic_flag -Mnomain' ;;
8931	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8932	  tmp_addflag=' -i_dynamic' ;;
8933	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8934	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8935	ifc* | ifort*)			# Intel Fortran compiler
8936	  tmp_addflag=' -nofor_main' ;;
8937	lf95*)				# Lahey Fortran 8.1
8938	  whole_archive_flag_spec=
8939	  tmp_sharedflag='--shared' ;;
8940	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8941	  tmp_sharedflag='-qmkshrobj'
8942	  tmp_addflag= ;;
8943	nvcc*)	# Cuda Compiler Driver 2.2
8944	  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'
8945	  compiler_needs_object=yes
8946	  ;;
8947	esac
8948	case `$CC -V 2>&1 | sed 5q` in
8949	*Sun\ C*)			# Sun C 5.9
8950	  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'
8951	  compiler_needs_object=yes
8952	  tmp_sharedflag='-G' ;;
8953	*Sun\ F*)			# Sun Fortran 8.3
8954	  tmp_sharedflag='-G' ;;
8955	esac
8956	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957
8958        if test "x$supports_anon_versioning" = xyes; then
8959          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8960	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8961	    echo "local: *; };" >> $output_objdir/$libname.ver~
8962	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8963        fi
8964
8965	case $cc_basename in
8966	xlf* | bgf* | bgxlf* | mpixlf*)
8967	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8968	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8969	  hardcode_libdir_flag_spec=
8970	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8971	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8972	  if test "x$supports_anon_versioning" = xyes; then
8973	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8974	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8975	      echo "local: *; };" >> $output_objdir/$libname.ver~
8976	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8977	  fi
8978	  ;;
8979	esac
8980      else
8981        ld_shlibs=no
8982      fi
8983      ;;
8984
8985    netbsd*)
8986      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8987	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8988	wlarc=
8989      else
8990	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8991	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8992      fi
8993      ;;
8994
8995    solaris*)
8996      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8997	ld_shlibs=no
8998	cat <<_LT_EOF 1>&2
8999
9000*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9001*** create shared libraries on Solaris systems.  Therefore, libtool
9002*** is disabling shared libraries support.  We urge you to upgrade GNU
9003*** binutils to release 2.9.1 or newer.  Another option is to modify
9004*** your PATH or compiler configuration so that the native linker is
9005*** used, and then restart.
9006
9007_LT_EOF
9008      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9009	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9010	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9011      else
9012	ld_shlibs=no
9013      fi
9014      ;;
9015
9016    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9017      case `$LD -v 2>&1` in
9018        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9019	ld_shlibs=no
9020	cat <<_LT_EOF 1>&2
9021
9022*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9023*** reliably create shared libraries on SCO systems.  Therefore, libtool
9024*** is disabling shared libraries support.  We urge you to upgrade GNU
9025*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9026*** your PATH or compiler configuration so that the native linker is
9027*** used, and then restart.
9028
9029_LT_EOF
9030	;;
9031	*)
9032	  # For security reasons, it is highly recommended that you always
9033	  # use absolute paths for naming shared libraries, and exclude the
9034	  # DT_RUNPATH tag from executables and libraries.  But doing so
9035	  # requires that you compile everything twice, which is a pain.
9036	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9037	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9038	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9039	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9040	  else
9041	    ld_shlibs=no
9042	  fi
9043	;;
9044      esac
9045      ;;
9046
9047    sunos4*)
9048      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9049      wlarc=
9050      hardcode_direct=yes
9051      hardcode_shlibpath_var=no
9052      ;;
9053
9054    *)
9055      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9056	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9058      else
9059	ld_shlibs=no
9060      fi
9061      ;;
9062    esac
9063
9064    if test "$ld_shlibs" = no; then
9065      runpath_var=
9066      hardcode_libdir_flag_spec=
9067      export_dynamic_flag_spec=
9068      whole_archive_flag_spec=
9069    fi
9070  else
9071    # PORTME fill in a description of your system's linker (not GNU ld)
9072    case $host_os in
9073    aix3*)
9074      allow_undefined_flag=unsupported
9075      always_export_symbols=yes
9076      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'
9077      # Note: this linker hardcodes the directories in LIBPATH if there
9078      # are no directories specified by -L.
9079      hardcode_minus_L=yes
9080      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9081	# Neither direct hardcoding nor static linking is supported with a
9082	# broken collect2.
9083	hardcode_direct=unsupported
9084      fi
9085      ;;
9086
9087    aix[4-9]*)
9088      if test "$host_cpu" = ia64; then
9089	# On IA64, the linker does run time linking by default, so we don't
9090	# have to do anything special.
9091	aix_use_runtimelinking=no
9092	exp_sym_flag='-Bexport'
9093	no_entry_flag=""
9094      else
9095	# If we're using GNU nm, then we don't want the "-C" option.
9096	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9097	# Also, AIX nm treats weak defined symbols like other global
9098	# defined symbols, whereas GNU nm marks them as "W".
9099	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9100	  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'
9101	else
9102	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9103	fi
9104	aix_use_runtimelinking=no
9105
9106	# Test if we are trying to use run time linking or normal
9107	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9108	# need to do runtime linking.
9109	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9110	  for ld_flag in $LDFLAGS; do
9111	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9112	    aix_use_runtimelinking=yes
9113	    break
9114	  fi
9115	  done
9116	  ;;
9117	esac
9118
9119	exp_sym_flag='-bexport'
9120	no_entry_flag='-bnoentry'
9121      fi
9122
9123      # When large executables or shared objects are built, AIX ld can
9124      # have problems creating the table of contents.  If linking a library
9125      # or program results in "error TOC overflow" add -mminimal-toc to
9126      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9127      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9128
9129      archive_cmds=''
9130      hardcode_direct=yes
9131      hardcode_direct_absolute=yes
9132      hardcode_libdir_separator=':'
9133      link_all_deplibs=yes
9134      file_list_spec='${wl}-f,'
9135
9136      if test "$GCC" = yes; then
9137	case $host_os in aix4.[012]|aix4.[012].*)
9138	# We only want to do this on AIX 4.2 and lower, the check
9139	# below for broken collect2 doesn't work under 4.3+
9140	  collect2name=`${CC} -print-prog-name=collect2`
9141	  if test -f "$collect2name" &&
9142	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9143	  then
9144	  # We have reworked collect2
9145	  :
9146	  else
9147	  # We have old collect2
9148	  hardcode_direct=unsupported
9149	  # It fails to find uninstalled libraries when the uninstalled
9150	  # path is not listed in the libpath.  Setting hardcode_minus_L
9151	  # to unsupported forces relinking
9152	  hardcode_minus_L=yes
9153	  hardcode_libdir_flag_spec='-L$libdir'
9154	  hardcode_libdir_separator=
9155	  fi
9156	  ;;
9157	esac
9158	shared_flag='-shared'
9159	if test "$aix_use_runtimelinking" = yes; then
9160	  shared_flag="$shared_flag "'${wl}-G'
9161	fi
9162      else
9163	# not using gcc
9164	if test "$host_cpu" = ia64; then
9165	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9166	# chokes on -Wl,-G. The following line is correct:
9167	  shared_flag='-G'
9168	else
9169	  if test "$aix_use_runtimelinking" = yes; then
9170	    shared_flag='${wl}-G'
9171	  else
9172	    shared_flag='${wl}-bM:SRE'
9173	  fi
9174	fi
9175      fi
9176
9177      export_dynamic_flag_spec='${wl}-bexpall'
9178      # It seems that -bexpall does not export symbols beginning with
9179      # underscore (_), so it is better to generate a list of symbols to export.
9180      always_export_symbols=yes
9181      if test "$aix_use_runtimelinking" = yes; then
9182	# Warning - without using the other runtime loading flags (-brtl),
9183	# -berok will link without error, but may produce a broken library.
9184	allow_undefined_flag='-berok'
9185        # Determine the default libpath from the value encoded in an
9186        # empty executable.
9187        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h.  */
9189
9190int
9191main ()
9192{
9193
9194  ;
9195  return 0;
9196}
9197_ACEOF
9198if ac_fn_c_try_link "$LINENO"; then :
9199
9200lt_aix_libpath_sed='
9201    /Import File Strings/,/^$/ {
9202	/^0/ {
9203	    s/^0  *\(.*\)$/\1/
9204	    p
9205	}
9206    }'
9207aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208# Check for a 64-bit object if we didn't find anything.
9209if test -z "$aix_libpath"; then
9210  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9211fi
9212fi
9213rm -f core conftest.err conftest.$ac_objext \
9214    conftest$ac_exeext conftest.$ac_ext
9215if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9216
9217        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9218        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"
9219      else
9220	if test "$host_cpu" = ia64; then
9221	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9222	  allow_undefined_flag="-z nodefs"
9223	  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"
9224	else
9225	 # Determine the default libpath from the value encoded in an
9226	 # empty executable.
9227	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228/* end confdefs.h.  */
9229
9230int
9231main ()
9232{
9233
9234  ;
9235  return 0;
9236}
9237_ACEOF
9238if ac_fn_c_try_link "$LINENO"; then :
9239
9240lt_aix_libpath_sed='
9241    /Import File Strings/,/^$/ {
9242	/^0/ {
9243	    s/^0  *\(.*\)$/\1/
9244	    p
9245	}
9246    }'
9247aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9248# Check for a 64-bit object if we didn't find anything.
9249if test -z "$aix_libpath"; then
9250  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9251fi
9252fi
9253rm -f core conftest.err conftest.$ac_objext \
9254    conftest$ac_exeext conftest.$ac_ext
9255if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9256
9257	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9258	  # Warning - without using the other run time loading flags,
9259	  # -berok will link without error, but may produce a broken library.
9260	  no_undefined_flag=' ${wl}-bernotok'
9261	  allow_undefined_flag=' ${wl}-berok'
9262	  if test "$with_gnu_ld" = yes; then
9263	    # We only use this code for GNU lds that support --whole-archive.
9264	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9265	  else
9266	    # Exported symbols can be pulled into shared objects from archives
9267	    whole_archive_flag_spec='$convenience'
9268	  fi
9269	  archive_cmds_need_lc=yes
9270	  # This is similar to how AIX traditionally builds its shared libraries.
9271	  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'
9272	fi
9273      fi
9274      ;;
9275
9276    amigaos*)
9277      case $host_cpu in
9278      powerpc)
9279            # see comment about AmigaOS4 .so support
9280            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281            archive_expsym_cmds=''
9282        ;;
9283      m68k)
9284            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)'
9285            hardcode_libdir_flag_spec='-L$libdir'
9286            hardcode_minus_L=yes
9287        ;;
9288      esac
9289      ;;
9290
9291    bsdi[45]*)
9292      export_dynamic_flag_spec=-rdynamic
9293      ;;
9294
9295    cygwin* | mingw* | pw32* | cegcc*)
9296      # When not using gcc, we currently assume that we are using
9297      # Microsoft Visual C++.
9298      # hardcode_libdir_flag_spec is actually meaningless, as there is
9299      # no search path for DLLs.
9300      hardcode_libdir_flag_spec=' '
9301      allow_undefined_flag=unsupported
9302      # Tell ltmain to make .lib files, not .a files.
9303      libext=lib
9304      # Tell ltmain to make .dll files, not .so files.
9305      shrext_cmds=".dll"
9306      # FIXME: Setting linknames here is a bad hack.
9307      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9308      # The linker will automatically build a .lib file if we build a DLL.
9309      old_archive_from_new_cmds='true'
9310      # FIXME: Should let the user specify the lib program.
9311      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9312      fix_srcfile_path='`cygpath -w "$srcfile"`'
9313      enable_shared_with_static_runtimes=yes
9314      ;;
9315
9316    darwin* | rhapsody*)
9317
9318
9319  archive_cmds_need_lc=no
9320  hardcode_direct=no
9321  hardcode_automatic=yes
9322  hardcode_shlibpath_var=unsupported
9323  if test "$lt_cv_ld_force_load" = "yes"; then
9324    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\"`'
9325  else
9326    whole_archive_flag_spec=''
9327  fi
9328  link_all_deplibs=yes
9329  allow_undefined_flag="$_lt_dar_allow_undefined"
9330  case $cc_basename in
9331     ifort*) _lt_dar_can_shared=yes ;;
9332     *) _lt_dar_can_shared=$GCC ;;
9333  esac
9334  if test "$_lt_dar_can_shared" = "yes"; then
9335    output_verbose_link_cmd=func_echo_all
9336    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9337    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9338    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}"
9339    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}"
9340
9341  else
9342  ld_shlibs=no
9343  fi
9344
9345      ;;
9346
9347    dgux*)
9348      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349      hardcode_libdir_flag_spec='-L$libdir'
9350      hardcode_shlibpath_var=no
9351      ;;
9352
9353    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9354    # support.  Future versions do this automatically, but an explicit c++rt0.o
9355    # does not break anything, and helps significantly (at the cost of a little
9356    # extra space).
9357    freebsd2.2*)
9358      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9359      hardcode_libdir_flag_spec='-R$libdir'
9360      hardcode_direct=yes
9361      hardcode_shlibpath_var=no
9362      ;;
9363
9364    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9365    freebsd2.*)
9366      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9367      hardcode_direct=yes
9368      hardcode_minus_L=yes
9369      hardcode_shlibpath_var=no
9370      ;;
9371
9372    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9373    freebsd* | dragonfly*)
9374      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9375      hardcode_libdir_flag_spec='-R$libdir'
9376      hardcode_direct=yes
9377      hardcode_shlibpath_var=no
9378      ;;
9379
9380    hpux9*)
9381      if test "$GCC" = yes; then
9382	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'
9383      else
9384	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'
9385      fi
9386      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9387      hardcode_libdir_separator=:
9388      hardcode_direct=yes
9389
9390      # hardcode_minus_L: Not really in the search PATH,
9391      # but as the default location of the library.
9392      hardcode_minus_L=yes
9393      export_dynamic_flag_spec='${wl}-E'
9394      ;;
9395
9396    hpux10*)
9397      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9398	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9399      else
9400	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9401      fi
9402      if test "$with_gnu_ld" = no; then
9403	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9404	hardcode_libdir_flag_spec_ld='+b $libdir'
9405	hardcode_libdir_separator=:
9406	hardcode_direct=yes
9407	hardcode_direct_absolute=yes
9408	export_dynamic_flag_spec='${wl}-E'
9409	# hardcode_minus_L: Not really in the search PATH,
9410	# but as the default location of the library.
9411	hardcode_minus_L=yes
9412      fi
9413      ;;
9414
9415    hpux11*)
9416      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9417	case $host_cpu in
9418	hppa*64*)
9419	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9420	  ;;
9421	ia64*)
9422	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9423	  ;;
9424	*)
9425	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426	  ;;
9427	esac
9428      else
9429	case $host_cpu in
9430	hppa*64*)
9431	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9432	  ;;
9433	ia64*)
9434	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9435	  ;;
9436	*)
9437
9438	  # Older versions of the 11.00 compiler do not understand -b yet
9439	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9440	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9441$as_echo_n "checking if $CC understands -b... " >&6; }
9442if test "${lt_cv_prog_compiler__b+set}" = set; then :
9443  $as_echo_n "(cached) " >&6
9444else
9445  lt_cv_prog_compiler__b=no
9446   save_LDFLAGS="$LDFLAGS"
9447   LDFLAGS="$LDFLAGS -b"
9448   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9449   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9450     # The linker can only warn and ignore the option if not recognized
9451     # So say no if there are warnings
9452     if test -s conftest.err; then
9453       # Append any errors to the config.log.
9454       cat conftest.err 1>&5
9455       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9456       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9457       if diff conftest.exp conftest.er2 >/dev/null; then
9458         lt_cv_prog_compiler__b=yes
9459       fi
9460     else
9461       lt_cv_prog_compiler__b=yes
9462     fi
9463   fi
9464   $RM -r conftest*
9465   LDFLAGS="$save_LDFLAGS"
9466
9467fi
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9469$as_echo "$lt_cv_prog_compiler__b" >&6; }
9470
9471if test x"$lt_cv_prog_compiler__b" = xyes; then
9472    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9473else
9474    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9475fi
9476
9477	  ;;
9478	esac
9479      fi
9480      if test "$with_gnu_ld" = no; then
9481	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9482	hardcode_libdir_separator=:
9483
9484	case $host_cpu in
9485	hppa*64*|ia64*)
9486	  hardcode_direct=no
9487	  hardcode_shlibpath_var=no
9488	  ;;
9489	*)
9490	  hardcode_direct=yes
9491	  hardcode_direct_absolute=yes
9492	  export_dynamic_flag_spec='${wl}-E'
9493
9494	  # hardcode_minus_L: Not really in the search PATH,
9495	  # but as the default location of the library.
9496	  hardcode_minus_L=yes
9497	  ;;
9498	esac
9499      fi
9500      ;;
9501
9502    irix5* | irix6* | nonstopux*)
9503      if test "$GCC" = yes; then
9504	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'
9505	# Try to use the -exported_symbol ld option, if it does not
9506	# work, assume that -exports_file does not work either and
9507	# implicitly export all symbols.
9508        save_LDFLAGS="$LDFLAGS"
9509        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9510        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511/* end confdefs.h.  */
9512int foo(void) {}
9513_ACEOF
9514if ac_fn_c_try_link "$LINENO"; then :
9515  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'
9516
9517fi
9518rm -f core conftest.err conftest.$ac_objext \
9519    conftest$ac_exeext conftest.$ac_ext
9520        LDFLAGS="$save_LDFLAGS"
9521      else
9522	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'
9523	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'
9524      fi
9525      archive_cmds_need_lc='no'
9526      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9527      hardcode_libdir_separator=:
9528      inherit_rpath=yes
9529      link_all_deplibs=yes
9530      ;;
9531
9532    netbsd*)
9533      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9534	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9535      else
9536	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9537      fi
9538      hardcode_libdir_flag_spec='-R$libdir'
9539      hardcode_direct=yes
9540      hardcode_shlibpath_var=no
9541      ;;
9542
9543    newsos6)
9544      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545      hardcode_direct=yes
9546      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547      hardcode_libdir_separator=:
9548      hardcode_shlibpath_var=no
9549      ;;
9550
9551    *nto* | *qnx*)
9552      ;;
9553
9554    openbsd*)
9555      if test -f /usr/libexec/ld.so; then
9556	hardcode_direct=yes
9557	hardcode_shlibpath_var=no
9558	hardcode_direct_absolute=yes
9559	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9560	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9561	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9562	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9563	  export_dynamic_flag_spec='${wl}-E'
9564	else
9565	  case $host_os in
9566	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9567	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9568	     hardcode_libdir_flag_spec='-R$libdir'
9569	     ;;
9570	   *)
9571	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9572	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9573	     ;;
9574	  esac
9575	fi
9576      else
9577	ld_shlibs=no
9578      fi
9579      ;;
9580
9581    os2*)
9582      hardcode_libdir_flag_spec='-L$libdir'
9583      hardcode_minus_L=yes
9584      allow_undefined_flag=unsupported
9585      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'
9586      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9587      ;;
9588
9589    osf3*)
9590      if test "$GCC" = yes; then
9591	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9592	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'
9593      else
9594	allow_undefined_flag=' -expect_unresolved \*'
9595	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'
9596      fi
9597      archive_cmds_need_lc='no'
9598      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9599      hardcode_libdir_separator=:
9600      ;;
9601
9602    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9603      if test "$GCC" = yes; then
9604	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9605	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'
9606	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9607      else
9608	allow_undefined_flag=' -expect_unresolved \*'
9609	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'
9610	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~
9611	$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'
9612
9613	# Both c and cxx compiler support -rpath directly
9614	hardcode_libdir_flag_spec='-rpath $libdir'
9615      fi
9616      archive_cmds_need_lc='no'
9617      hardcode_libdir_separator=:
9618      ;;
9619
9620    solaris*)
9621      no_undefined_flag=' -z defs'
9622      if test "$GCC" = yes; then
9623	wlarc='${wl}'
9624	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9625	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9626	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9627      else
9628	case `$CC -V 2>&1` in
9629	*"Compilers 5.0"*)
9630	  wlarc=''
9631	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9633	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9634	  ;;
9635	*)
9636	  wlarc='${wl}'
9637	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9638	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9639	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9640	  ;;
9641	esac
9642      fi
9643      hardcode_libdir_flag_spec='-R$libdir'
9644      hardcode_shlibpath_var=no
9645      case $host_os in
9646      solaris2.[0-5] | solaris2.[0-5].*) ;;
9647      *)
9648	# The compiler driver will combine and reorder linker options,
9649	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9650	# but is careful enough not to reorder.
9651	# Supported since Solaris 2.6 (maybe 2.5.1?)
9652	if test "$GCC" = yes; then
9653	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9654	else
9655	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9656	fi
9657	;;
9658      esac
9659      link_all_deplibs=yes
9660      ;;
9661
9662    sunos4*)
9663      if test "x$host_vendor" = xsequent; then
9664	# Use $CC to link under sequent, because it throws in some extra .o
9665	# files that make .init and .fini sections work.
9666	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9667      else
9668	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9669      fi
9670      hardcode_libdir_flag_spec='-L$libdir'
9671      hardcode_direct=yes
9672      hardcode_minus_L=yes
9673      hardcode_shlibpath_var=no
9674      ;;
9675
9676    sysv4)
9677      case $host_vendor in
9678	sni)
9679	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680	  hardcode_direct=yes # is this really true???
9681	;;
9682	siemens)
9683	  ## LD is ld it makes a PLAMLIB
9684	  ## CC just makes a GrossModule.
9685	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9686	  reload_cmds='$CC -r -o $output$reload_objs'
9687	  hardcode_direct=no
9688        ;;
9689	motorola)
9690	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9692	;;
9693      esac
9694      runpath_var='LD_RUN_PATH'
9695      hardcode_shlibpath_var=no
9696      ;;
9697
9698    sysv4.3*)
9699      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700      hardcode_shlibpath_var=no
9701      export_dynamic_flag_spec='-Bexport'
9702      ;;
9703
9704    sysv4*MP*)
9705      if test -d /usr/nec; then
9706	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707	hardcode_shlibpath_var=no
9708	runpath_var=LD_RUN_PATH
9709	hardcode_runpath_var=yes
9710	ld_shlibs=yes
9711      fi
9712      ;;
9713
9714    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9715      no_undefined_flag='${wl}-z,text'
9716      archive_cmds_need_lc=no
9717      hardcode_shlibpath_var=no
9718      runpath_var='LD_RUN_PATH'
9719
9720      if test "$GCC" = yes; then
9721	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723      else
9724	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726      fi
9727      ;;
9728
9729    sysv5* | sco3.2v5* | sco5v6*)
9730      # Note: We can NOT use -z defs as we might desire, because we do not
9731      # link with -lc, and that would cause any symbols used from libc to
9732      # always be unresolved, which means just about no library would
9733      # ever link correctly.  If we're not using GNU ld we use -z text
9734      # though, which does catch some bad symbols but isn't as heavy-handed
9735      # as -z defs.
9736      no_undefined_flag='${wl}-z,text'
9737      allow_undefined_flag='${wl}-z,nodefs'
9738      archive_cmds_need_lc=no
9739      hardcode_shlibpath_var=no
9740      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9741      hardcode_libdir_separator=':'
9742      link_all_deplibs=yes
9743      export_dynamic_flag_spec='${wl}-Bexport'
9744      runpath_var='LD_RUN_PATH'
9745
9746      if test "$GCC" = yes; then
9747	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749      else
9750	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9751	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9752      fi
9753      ;;
9754
9755    uts4*)
9756      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757      hardcode_libdir_flag_spec='-L$libdir'
9758      hardcode_shlibpath_var=no
9759      ;;
9760
9761    *)
9762      ld_shlibs=no
9763      ;;
9764    esac
9765
9766    if test x$host_vendor = xsni; then
9767      case $host in
9768      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9769	export_dynamic_flag_spec='${wl}-Blargedynsym'
9770	;;
9771      esac
9772    fi
9773  fi
9774
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9776$as_echo "$ld_shlibs" >&6; }
9777test "$ld_shlibs" = no && can_build_shared=no
9778
9779with_gnu_ld=$with_gnu_ld
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795#
9796# Do we need to explicitly link libc?
9797#
9798case "x$archive_cmds_need_lc" in
9799x|xyes)
9800  # Assume -lc should be added
9801  archive_cmds_need_lc=yes
9802
9803  if test "$enable_shared" = yes && test "$GCC" = yes; then
9804    case $archive_cmds in
9805    *'~'*)
9806      # FIXME: we may have to deal with multi-command sequences.
9807      ;;
9808    '$CC '*)
9809      # Test whether the compiler implicitly links with -lc since on some
9810      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9811      # to ld, don't add -lc before -lgcc.
9812      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9813$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9814if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9815  $as_echo_n "(cached) " >&6
9816else
9817  $RM conftest*
9818	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9819
9820	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9821  (eval $ac_compile) 2>&5
9822  ac_status=$?
9823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9824  test $ac_status = 0; } 2>conftest.err; then
9825	  soname=conftest
9826	  lib=conftest
9827	  libobjs=conftest.$ac_objext
9828	  deplibs=
9829	  wl=$lt_prog_compiler_wl
9830	  pic_flag=$lt_prog_compiler_pic
9831	  compiler_flags=-v
9832	  linker_flags=-v
9833	  verstring=
9834	  output_objdir=.
9835	  libname=conftest
9836	  lt_save_allow_undefined_flag=$allow_undefined_flag
9837	  allow_undefined_flag=
9838	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9839  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9840  ac_status=$?
9841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842  test $ac_status = 0; }
9843	  then
9844	    lt_cv_archive_cmds_need_lc=no
9845	  else
9846	    lt_cv_archive_cmds_need_lc=yes
9847	  fi
9848	  allow_undefined_flag=$lt_save_allow_undefined_flag
9849	else
9850	  cat conftest.err 1>&5
9851	fi
9852	$RM conftest*
9853
9854fi
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9856$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9857      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9858      ;;
9859    esac
9860  fi
9861  ;;
9862esac
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10021$as_echo_n "checking dynamic linker characteristics... " >&6; }
10022
10023if test "$GCC" = yes; then
10024  case $host_os in
10025    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10026    *) lt_awk_arg="/^libraries:/" ;;
10027  esac
10028  case $host_os in
10029    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10030    *) lt_sed_strip_eq="s,=/,/,g" ;;
10031  esac
10032  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10033  case $lt_search_path_spec in
10034  *\;*)
10035    # if the path contains ";" then we assume it to be the separator
10036    # otherwise default to the standard path separator (i.e. ":") - it is
10037    # assumed that no part of a normal pathname contains ";" but that should
10038    # okay in the real world where ";" in dirpaths is itself problematic.
10039    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10040    ;;
10041  *)
10042    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10043    ;;
10044  esac
10045  # Ok, now we have the path, separated by spaces, we can step through it
10046  # and add multilib dir if necessary.
10047  lt_tmp_lt_search_path_spec=
10048  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10049  for lt_sys_path in $lt_search_path_spec; do
10050    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10051      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10052    else
10053      test -d "$lt_sys_path" && \
10054	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10055    fi
10056  done
10057  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10058BEGIN {RS=" "; FS="/|\n";} {
10059  lt_foo="";
10060  lt_count=0;
10061  for (lt_i = NF; lt_i > 0; lt_i--) {
10062    if ($lt_i != "" && $lt_i != ".") {
10063      if ($lt_i == "..") {
10064        lt_count++;
10065      } else {
10066        if (lt_count == 0) {
10067          lt_foo="/" $lt_i lt_foo;
10068        } else {
10069          lt_count--;
10070        }
10071      }
10072    }
10073  }
10074  if (lt_foo != "") { lt_freq[lt_foo]++; }
10075  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10076}'`
10077  # AWK program above erroneously prepends '/' to C:/dos/paths
10078  # for these hosts.
10079  case $host_os in
10080    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10081      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10082  esac
10083  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10084else
10085  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10086fi
10087library_names_spec=
10088libname_spec='lib$name'
10089soname_spec=
10090shrext_cmds=".so"
10091postinstall_cmds=
10092postuninstall_cmds=
10093finish_cmds=
10094finish_eval=
10095shlibpath_var=
10096shlibpath_overrides_runpath=unknown
10097version_type=none
10098dynamic_linker="$host_os ld.so"
10099sys_lib_dlsearch_path_spec="/lib /usr/lib"
10100need_lib_prefix=unknown
10101hardcode_into_libs=no
10102
10103# when you set need_version to no, make sure it does not cause -set_version
10104# flags to be left without arguments
10105need_version=unknown
10106
10107case $host_os in
10108aix3*)
10109  version_type=linux
10110  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10111  shlibpath_var=LIBPATH
10112
10113  # AIX 3 has no versioning support, so we append a major version to the name.
10114  soname_spec='${libname}${release}${shared_ext}$major'
10115  ;;
10116
10117aix[4-9]*)
10118  version_type=linux
10119  need_lib_prefix=no
10120  need_version=no
10121  hardcode_into_libs=yes
10122  if test "$host_cpu" = ia64; then
10123    # AIX 5 supports IA64
10124    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10125    shlibpath_var=LD_LIBRARY_PATH
10126  else
10127    # With GCC up to 2.95.x, collect2 would create an import file
10128    # for dependence libraries.  The import file would start with
10129    # the line `#! .'.  This would cause the generated library to
10130    # depend on `.', always an invalid library.  This was fixed in
10131    # development snapshots of GCC prior to 3.0.
10132    case $host_os in
10133      aix4 | aix4.[01] | aix4.[01].*)
10134      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10135	   echo ' yes '
10136	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10137	:
10138      else
10139	can_build_shared=no
10140      fi
10141      ;;
10142    esac
10143    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10144    # soname into executable. Probably we can add versioning support to
10145    # collect2, so additional links can be useful in future.
10146    if test "$aix_use_runtimelinking" = yes; then
10147      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10148      # instead of lib<name>.a to let people know that these are not
10149      # typical AIX shared libraries.
10150      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151    else
10152      # We preserve .a as extension for shared libraries through AIX4.2
10153      # and later when we are not doing run time linking.
10154      library_names_spec='${libname}${release}.a $libname.a'
10155      soname_spec='${libname}${release}${shared_ext}$major'
10156    fi
10157    shlibpath_var=LIBPATH
10158  fi
10159  ;;
10160
10161amigaos*)
10162  case $host_cpu in
10163  powerpc)
10164    # Since July 2007 AmigaOS4 officially supports .so libraries.
10165    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10166    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167    ;;
10168  m68k)
10169    library_names_spec='$libname.ixlibrary $libname.a'
10170    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10171    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'
10172    ;;
10173  esac
10174  ;;
10175
10176beos*)
10177  library_names_spec='${libname}${shared_ext}'
10178  dynamic_linker="$host_os ld.so"
10179  shlibpath_var=LIBRARY_PATH
10180  ;;
10181
10182bsdi[45]*)
10183  version_type=linux
10184  need_version=no
10185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186  soname_spec='${libname}${release}${shared_ext}$major'
10187  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10188  shlibpath_var=LD_LIBRARY_PATH
10189  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10190  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10191  # the default ld.so.conf also contains /usr/contrib/lib and
10192  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10193  # libtool to hard-code these into programs
10194  ;;
10195
10196cygwin* | mingw* | pw32* | cegcc*)
10197  version_type=windows
10198  shrext_cmds=".dll"
10199  need_version=no
10200  need_lib_prefix=no
10201
10202  case $GCC,$host_os in
10203  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10204    library_names_spec='$libname.dll.a'
10205    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10206    postinstall_cmds='base_file=`basename \${file}`~
10207      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10208      dldir=$destdir/`dirname \$dlpath`~
10209      test -d \$dldir || mkdir -p \$dldir~
10210      $install_prog $dir/$dlname \$dldir/$dlname~
10211      chmod a+x \$dldir/$dlname~
10212      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10213        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10214      fi'
10215    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10216      dlpath=$dir/\$dldll~
10217       $RM \$dlpath'
10218    shlibpath_overrides_runpath=yes
10219
10220    case $host_os in
10221    cygwin*)
10222      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10223      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224
10225      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10226      ;;
10227    mingw* | cegcc*)
10228      # MinGW DLLs use traditional 'lib' prefix
10229      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10230      ;;
10231    pw32*)
10232      # pw32 DLLs use 'pw' prefix rather than 'lib'
10233      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10234      ;;
10235    esac
10236    ;;
10237
10238  *)
10239    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10240    ;;
10241  esac
10242  dynamic_linker='Win32 ld.exe'
10243  # FIXME: first we should search . and the directory the executable is in
10244  shlibpath_var=PATH
10245  ;;
10246
10247darwin* | rhapsody*)
10248  dynamic_linker="$host_os dyld"
10249  version_type=darwin
10250  need_lib_prefix=no
10251  need_version=no
10252  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10253  soname_spec='${libname}${release}${major}$shared_ext'
10254  shlibpath_overrides_runpath=yes
10255  shlibpath_var=DYLD_LIBRARY_PATH
10256  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10257
10258  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10259  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10260  ;;
10261
10262dgux*)
10263  version_type=linux
10264  need_lib_prefix=no
10265  need_version=no
10266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10267  soname_spec='${libname}${release}${shared_ext}$major'
10268  shlibpath_var=LD_LIBRARY_PATH
10269  ;;
10270
10271freebsd* | dragonfly*)
10272  # DragonFly does not have aout.  When/if they implement a new
10273  # versioning mechanism, adjust this.
10274  if test -x /usr/bin/objformat; then
10275    objformat=`/usr/bin/objformat`
10276  else
10277    case $host_os in
10278    freebsd[23].*) objformat=aout ;;
10279    *) objformat=elf ;;
10280    esac
10281  fi
10282  version_type=freebsd-$objformat
10283  case $version_type in
10284    freebsd-elf*)
10285      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10286      need_version=no
10287      need_lib_prefix=no
10288      ;;
10289    freebsd-*)
10290      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10291      need_version=yes
10292      ;;
10293  esac
10294  shlibpath_var=LD_LIBRARY_PATH
10295  case $host_os in
10296  freebsd2.*)
10297    shlibpath_overrides_runpath=yes
10298    ;;
10299  freebsd3.[01]* | freebsdelf3.[01]*)
10300    shlibpath_overrides_runpath=yes
10301    hardcode_into_libs=yes
10302    ;;
10303  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10304  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10305    shlibpath_overrides_runpath=no
10306    hardcode_into_libs=yes
10307    ;;
10308  *) # from 4.6 on, and DragonFly
10309    shlibpath_overrides_runpath=yes
10310    hardcode_into_libs=yes
10311    ;;
10312  esac
10313  ;;
10314
10315gnu*)
10316  version_type=linux
10317  need_lib_prefix=no
10318  need_version=no
10319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10320  soname_spec='${libname}${release}${shared_ext}$major'
10321  shlibpath_var=LD_LIBRARY_PATH
10322  hardcode_into_libs=yes
10323  ;;
10324
10325haiku*)
10326  version_type=linux
10327  need_lib_prefix=no
10328  need_version=no
10329  dynamic_linker="$host_os runtime_loader"
10330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10331  soname_spec='${libname}${release}${shared_ext}$major'
10332  shlibpath_var=LIBRARY_PATH
10333  shlibpath_overrides_runpath=yes
10334  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10335  hardcode_into_libs=yes
10336  ;;
10337
10338hpux9* | hpux10* | hpux11*)
10339  # Give a soname corresponding to the major version so that dld.sl refuses to
10340  # link against other versions.
10341  version_type=sunos
10342  need_lib_prefix=no
10343  need_version=no
10344  case $host_cpu in
10345  ia64*)
10346    shrext_cmds='.so'
10347    hardcode_into_libs=yes
10348    dynamic_linker="$host_os dld.so"
10349    shlibpath_var=LD_LIBRARY_PATH
10350    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test "X$HPUX_IA64_MODE" = X32; then
10354      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10355    else
10356      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10357    fi
10358    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10359    ;;
10360  hppa*64*)
10361    shrext_cmds='.sl'
10362    hardcode_into_libs=yes
10363    dynamic_linker="$host_os dld.sl"
10364    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10365    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10366    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367    soname_spec='${libname}${release}${shared_ext}$major'
10368    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10369    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10370    ;;
10371  *)
10372    shrext_cmds='.sl'
10373    dynamic_linker="$host_os dld.sl"
10374    shlibpath_var=SHLIB_PATH
10375    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10376    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377    soname_spec='${libname}${release}${shared_ext}$major'
10378    ;;
10379  esac
10380  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10381  postinstall_cmds='chmod 555 $lib'
10382  # or fails outright, so override atomically:
10383  install_override_mode=555
10384  ;;
10385
10386interix[3-9]*)
10387  version_type=linux
10388  need_lib_prefix=no
10389  need_version=no
10390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10391  soname_spec='${libname}${release}${shared_ext}$major'
10392  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10393  shlibpath_var=LD_LIBRARY_PATH
10394  shlibpath_overrides_runpath=no
10395  hardcode_into_libs=yes
10396  ;;
10397
10398irix5* | irix6* | nonstopux*)
10399  case $host_os in
10400    nonstopux*) version_type=nonstopux ;;
10401    *)
10402	if test "$lt_cv_prog_gnu_ld" = yes; then
10403		version_type=linux
10404	else
10405		version_type=irix
10406	fi ;;
10407  esac
10408  need_lib_prefix=no
10409  need_version=no
10410  soname_spec='${libname}${release}${shared_ext}$major'
10411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10412  case $host_os in
10413  irix5* | nonstopux*)
10414    libsuff= shlibsuff=
10415    ;;
10416  *)
10417    case $LD in # libtool.m4 will add one of these switches to LD
10418    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10419      libsuff= shlibsuff= libmagic=32-bit;;
10420    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10421      libsuff=32 shlibsuff=N32 libmagic=N32;;
10422    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10423      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10424    *) libsuff= shlibsuff= libmagic=never-match;;
10425    esac
10426    ;;
10427  esac
10428  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10429  shlibpath_overrides_runpath=no
10430  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10431  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10432  hardcode_into_libs=yes
10433  ;;
10434
10435# No shared lib support for Linux oldld, aout, or coff.
10436linux*oldld* | linux*aout* | linux*coff*)
10437  dynamic_linker=no
10438  ;;
10439
10440# This must be Linux ELF.
10441linux* | k*bsd*-gnu | kopensolaris*-gnu)
10442  version_type=linux
10443  need_lib_prefix=no
10444  need_version=no
10445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446  soname_spec='${libname}${release}${shared_ext}$major'
10447  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10448  shlibpath_var=LD_LIBRARY_PATH
10449  shlibpath_overrides_runpath=no
10450
10451  # Some binutils ld are patched to set DT_RUNPATH
10452  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10453  $as_echo_n "(cached) " >&6
10454else
10455  lt_cv_shlibpath_overrides_runpath=no
10456    save_LDFLAGS=$LDFLAGS
10457    save_libdir=$libdir
10458    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10459	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10460    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461/* end confdefs.h.  */
10462
10463int
10464main ()
10465{
10466
10467  ;
10468  return 0;
10469}
10470_ACEOF
10471if ac_fn_c_try_link "$LINENO"; then :
10472  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10473  lt_cv_shlibpath_overrides_runpath=yes
10474fi
10475fi
10476rm -f core conftest.err conftest.$ac_objext \
10477    conftest$ac_exeext conftest.$ac_ext
10478    LDFLAGS=$save_LDFLAGS
10479    libdir=$save_libdir
10480
10481fi
10482
10483  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10484
10485  # This implies no fast_install, which is unacceptable.
10486  # Some rework will be needed to allow for fast_install
10487  # before this can be enabled.
10488  hardcode_into_libs=yes
10489
10490  # Append ld.so.conf contents to the search path
10491  if test -f /etc/ld.so.conf; then
10492    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' ' '`
10493    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10494  fi
10495
10496  # We used to test for /lib/ld.so.1 and disable shared libraries on
10497  # powerpc, because MkLinux only supported shared libraries with the
10498  # GNU dynamic linker.  Since this was broken with cross compilers,
10499  # most powerpc-linux boxes support dynamic linking these days and
10500  # people can always --disable-shared, the test was removed, and we
10501  # assume the GNU/Linux dynamic linker is in use.
10502  dynamic_linker='GNU/Linux ld.so'
10503  ;;
10504
10505netbsd*)
10506  version_type=sunos
10507  need_lib_prefix=no
10508  need_version=no
10509  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10510    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10511    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10512    dynamic_linker='NetBSD (a.out) ld.so'
10513  else
10514    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10515    soname_spec='${libname}${release}${shared_ext}$major'
10516    dynamic_linker='NetBSD ld.elf_so'
10517  fi
10518  shlibpath_var=LD_LIBRARY_PATH
10519  shlibpath_overrides_runpath=yes
10520  hardcode_into_libs=yes
10521  ;;
10522
10523newsos6)
10524  version_type=linux
10525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526  shlibpath_var=LD_LIBRARY_PATH
10527  shlibpath_overrides_runpath=yes
10528  ;;
10529
10530*nto* | *qnx*)
10531  version_type=qnx
10532  need_lib_prefix=no
10533  need_version=no
10534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535  soname_spec='${libname}${release}${shared_ext}$major'
10536  shlibpath_var=LD_LIBRARY_PATH
10537  shlibpath_overrides_runpath=no
10538  hardcode_into_libs=yes
10539  dynamic_linker='ldqnx.so'
10540  ;;
10541
10542openbsd*)
10543  version_type=sunos
10544  sys_lib_dlsearch_path_spec="/usr/lib"
10545  need_lib_prefix=no
10546  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10547  case $host_os in
10548    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10549    *)				need_version=no  ;;
10550  esac
10551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10552  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10553  shlibpath_var=LD_LIBRARY_PATH
10554  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10555    case $host_os in
10556      openbsd2.[89] | openbsd2.[89].*)
10557	shlibpath_overrides_runpath=no
10558	;;
10559      *)
10560	shlibpath_overrides_runpath=yes
10561	;;
10562      esac
10563  else
10564    shlibpath_overrides_runpath=yes
10565  fi
10566  ;;
10567
10568os2*)
10569  libname_spec='$name'
10570  shrext_cmds=".dll"
10571  need_lib_prefix=no
10572  library_names_spec='$libname${shared_ext} $libname.a'
10573  dynamic_linker='OS/2 ld.exe'
10574  shlibpath_var=LIBPATH
10575  ;;
10576
10577osf3* | osf4* | osf5*)
10578  version_type=osf
10579  need_lib_prefix=no
10580  need_version=no
10581  soname_spec='${libname}${release}${shared_ext}$major'
10582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583  shlibpath_var=LD_LIBRARY_PATH
10584  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10585  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10586  ;;
10587
10588rdos*)
10589  dynamic_linker=no
10590  ;;
10591
10592solaris*)
10593  version_type=linux
10594  need_lib_prefix=no
10595  need_version=no
10596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597  soname_spec='${libname}${release}${shared_ext}$major'
10598  shlibpath_var=LD_LIBRARY_PATH
10599  shlibpath_overrides_runpath=yes
10600  hardcode_into_libs=yes
10601  # ldd complains unless libraries are executable
10602  postinstall_cmds='chmod +x $lib'
10603  ;;
10604
10605sunos4*)
10606  version_type=sunos
10607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10608  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10609  shlibpath_var=LD_LIBRARY_PATH
10610  shlibpath_overrides_runpath=yes
10611  if test "$with_gnu_ld" = yes; then
10612    need_lib_prefix=no
10613  fi
10614  need_version=yes
10615  ;;
10616
10617sysv4 | sysv4.3*)
10618  version_type=linux
10619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620  soname_spec='${libname}${release}${shared_ext}$major'
10621  shlibpath_var=LD_LIBRARY_PATH
10622  case $host_vendor in
10623    sni)
10624      shlibpath_overrides_runpath=no
10625      need_lib_prefix=no
10626      runpath_var=LD_RUN_PATH
10627      ;;
10628    siemens)
10629      need_lib_prefix=no
10630      ;;
10631    motorola)
10632      need_lib_prefix=no
10633      need_version=no
10634      shlibpath_overrides_runpath=no
10635      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10636      ;;
10637  esac
10638  ;;
10639
10640sysv4*MP*)
10641  if test -d /usr/nec ;then
10642    version_type=linux
10643    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10644    soname_spec='$libname${shared_ext}.$major'
10645    shlibpath_var=LD_LIBRARY_PATH
10646  fi
10647  ;;
10648
10649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10650  version_type=freebsd-elf
10651  need_lib_prefix=no
10652  need_version=no
10653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10654  soname_spec='${libname}${release}${shared_ext}$major'
10655  shlibpath_var=LD_LIBRARY_PATH
10656  shlibpath_overrides_runpath=yes
10657  hardcode_into_libs=yes
10658  if test "$with_gnu_ld" = yes; then
10659    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10660  else
10661    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10662    case $host_os in
10663      sco3.2v5*)
10664        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10665	;;
10666    esac
10667  fi
10668  sys_lib_dlsearch_path_spec='/usr/lib'
10669  ;;
10670
10671tpf*)
10672  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10673  version_type=linux
10674  need_lib_prefix=no
10675  need_version=no
10676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677  shlibpath_var=LD_LIBRARY_PATH
10678  shlibpath_overrides_runpath=no
10679  hardcode_into_libs=yes
10680  ;;
10681
10682uts4*)
10683  version_type=linux
10684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685  soname_spec='${libname}${release}${shared_ext}$major'
10686  shlibpath_var=LD_LIBRARY_PATH
10687  ;;
10688
10689*)
10690  dynamic_linker=no
10691  ;;
10692esac
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10694$as_echo "$dynamic_linker" >&6; }
10695test "$dynamic_linker" = no && can_build_shared=no
10696
10697variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10698if test "$GCC" = yes; then
10699  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10700fi
10701
10702if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10703  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10704fi
10705if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10706  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10707fi
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10801$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10802hardcode_action=
10803if test -n "$hardcode_libdir_flag_spec" ||
10804   test -n "$runpath_var" ||
10805   test "X$hardcode_automatic" = "Xyes" ; then
10806
10807  # We can hardcode non-existent directories.
10808  if test "$hardcode_direct" != no &&
10809     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10810     # have to relink, otherwise we might link with an installed library
10811     # when we should be linking with a yet-to-be-installed one
10812     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10813     test "$hardcode_minus_L" != no; then
10814    # Linking always hardcodes the temporary library directory.
10815    hardcode_action=relink
10816  else
10817    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10818    hardcode_action=immediate
10819  fi
10820else
10821  # We cannot hardcode anything, or else we can only hardcode existing
10822  # directories.
10823  hardcode_action=unsupported
10824fi
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10826$as_echo "$hardcode_action" >&6; }
10827
10828if test "$hardcode_action" = relink ||
10829   test "$inherit_rpath" = yes; then
10830  # Fast installation is not supported
10831  enable_fast_install=no
10832elif test "$shlibpath_overrides_runpath" = yes ||
10833     test "$enable_shared" = no; then
10834  # Fast installation is not necessary
10835  enable_fast_install=needless
10836fi
10837
10838
10839
10840
10841
10842
10843  if test "x$enable_dlopen" != xyes; then
10844  enable_dlopen=unknown
10845  enable_dlopen_self=unknown
10846  enable_dlopen_self_static=unknown
10847else
10848  lt_cv_dlopen=no
10849  lt_cv_dlopen_libs=
10850
10851  case $host_os in
10852  beos*)
10853    lt_cv_dlopen="load_add_on"
10854    lt_cv_dlopen_libs=
10855    lt_cv_dlopen_self=yes
10856    ;;
10857
10858  mingw* | pw32* | cegcc*)
10859    lt_cv_dlopen="LoadLibrary"
10860    lt_cv_dlopen_libs=
10861    ;;
10862
10863  cygwin*)
10864    lt_cv_dlopen="dlopen"
10865    lt_cv_dlopen_libs=
10866    ;;
10867
10868  darwin*)
10869  # if libdl is installed we need to link against it
10870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10871$as_echo_n "checking for dlopen in -ldl... " >&6; }
10872if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10873  $as_echo_n "(cached) " >&6
10874else
10875  ac_check_lib_save_LIBS=$LIBS
10876LIBS="-ldl  $LIBS"
10877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878/* end confdefs.h.  */
10879
10880/* Override any GCC internal prototype to avoid an error.
10881   Use char because int might match the return type of a GCC
10882   builtin and then its argument prototype would still apply.  */
10883#ifdef __cplusplus
10884extern "C"
10885#endif
10886char dlopen ();
10887int
10888main ()
10889{
10890return dlopen ();
10891  ;
10892  return 0;
10893}
10894_ACEOF
10895if ac_fn_c_try_link "$LINENO"; then :
10896  ac_cv_lib_dl_dlopen=yes
10897else
10898  ac_cv_lib_dl_dlopen=no
10899fi
10900rm -f core conftest.err conftest.$ac_objext \
10901    conftest$ac_exeext conftest.$ac_ext
10902LIBS=$ac_check_lib_save_LIBS
10903fi
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10905$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10906if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10907  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10908else
10909
10910    lt_cv_dlopen="dyld"
10911    lt_cv_dlopen_libs=
10912    lt_cv_dlopen_self=yes
10913
10914fi
10915
10916    ;;
10917
10918  *)
10919    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10920if test "x$ac_cv_func_shl_load" = x""yes; then :
10921  lt_cv_dlopen="shl_load"
10922else
10923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10924$as_echo_n "checking for shl_load in -ldld... " >&6; }
10925if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10926  $as_echo_n "(cached) " >&6
10927else
10928  ac_check_lib_save_LIBS=$LIBS
10929LIBS="-ldld  $LIBS"
10930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931/* end confdefs.h.  */
10932
10933/* Override any GCC internal prototype to avoid an error.
10934   Use char because int might match the return type of a GCC
10935   builtin and then its argument prototype would still apply.  */
10936#ifdef __cplusplus
10937extern "C"
10938#endif
10939char shl_load ();
10940int
10941main ()
10942{
10943return shl_load ();
10944  ;
10945  return 0;
10946}
10947_ACEOF
10948if ac_fn_c_try_link "$LINENO"; then :
10949  ac_cv_lib_dld_shl_load=yes
10950else
10951  ac_cv_lib_dld_shl_load=no
10952fi
10953rm -f core conftest.err conftest.$ac_objext \
10954    conftest$ac_exeext conftest.$ac_ext
10955LIBS=$ac_check_lib_save_LIBS
10956fi
10957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10958$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10959if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10960  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10961else
10962  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10963if test "x$ac_cv_func_dlopen" = x""yes; then :
10964  lt_cv_dlopen="dlopen"
10965else
10966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10967$as_echo_n "checking for dlopen in -ldl... " >&6; }
10968if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10969  $as_echo_n "(cached) " >&6
10970else
10971  ac_check_lib_save_LIBS=$LIBS
10972LIBS="-ldl  $LIBS"
10973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974/* end confdefs.h.  */
10975
10976/* Override any GCC internal prototype to avoid an error.
10977   Use char because int might match the return type of a GCC
10978   builtin and then its argument prototype would still apply.  */
10979#ifdef __cplusplus
10980extern "C"
10981#endif
10982char dlopen ();
10983int
10984main ()
10985{
10986return dlopen ();
10987  ;
10988  return 0;
10989}
10990_ACEOF
10991if ac_fn_c_try_link "$LINENO"; then :
10992  ac_cv_lib_dl_dlopen=yes
10993else
10994  ac_cv_lib_dl_dlopen=no
10995fi
10996rm -f core conftest.err conftest.$ac_objext \
10997    conftest$ac_exeext conftest.$ac_ext
10998LIBS=$ac_check_lib_save_LIBS
10999fi
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11001$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11002if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11003  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11004else
11005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11006$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11007if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11008  $as_echo_n "(cached) " >&6
11009else
11010  ac_check_lib_save_LIBS=$LIBS
11011LIBS="-lsvld  $LIBS"
11012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h.  */
11014
11015/* Override any GCC internal prototype to avoid an error.
11016   Use char because int might match the return type of a GCC
11017   builtin and then its argument prototype would still apply.  */
11018#ifdef __cplusplus
11019extern "C"
11020#endif
11021char dlopen ();
11022int
11023main ()
11024{
11025return dlopen ();
11026  ;
11027  return 0;
11028}
11029_ACEOF
11030if ac_fn_c_try_link "$LINENO"; then :
11031  ac_cv_lib_svld_dlopen=yes
11032else
11033  ac_cv_lib_svld_dlopen=no
11034fi
11035rm -f core conftest.err conftest.$ac_objext \
11036    conftest$ac_exeext conftest.$ac_ext
11037LIBS=$ac_check_lib_save_LIBS
11038fi
11039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11040$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11041if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11042  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11043else
11044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11045$as_echo_n "checking for dld_link in -ldld... " >&6; }
11046if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11047  $as_echo_n "(cached) " >&6
11048else
11049  ac_check_lib_save_LIBS=$LIBS
11050LIBS="-ldld  $LIBS"
11051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052/* end confdefs.h.  */
11053
11054/* Override any GCC internal prototype to avoid an error.
11055   Use char because int might match the return type of a GCC
11056   builtin and then its argument prototype would still apply.  */
11057#ifdef __cplusplus
11058extern "C"
11059#endif
11060char dld_link ();
11061int
11062main ()
11063{
11064return dld_link ();
11065  ;
11066  return 0;
11067}
11068_ACEOF
11069if ac_fn_c_try_link "$LINENO"; then :
11070  ac_cv_lib_dld_dld_link=yes
11071else
11072  ac_cv_lib_dld_dld_link=no
11073fi
11074rm -f core conftest.err conftest.$ac_objext \
11075    conftest$ac_exeext conftest.$ac_ext
11076LIBS=$ac_check_lib_save_LIBS
11077fi
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11079$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11080if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11081  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11082fi
11083
11084
11085fi
11086
11087
11088fi
11089
11090
11091fi
11092
11093
11094fi
11095
11096
11097fi
11098
11099    ;;
11100  esac
11101
11102  if test "x$lt_cv_dlopen" != xno; then
11103    enable_dlopen=yes
11104  else
11105    enable_dlopen=no
11106  fi
11107
11108  case $lt_cv_dlopen in
11109  dlopen)
11110    save_CPPFLAGS="$CPPFLAGS"
11111    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11112
11113    save_LDFLAGS="$LDFLAGS"
11114    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11115
11116    save_LIBS="$LIBS"
11117    LIBS="$lt_cv_dlopen_libs $LIBS"
11118
11119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11120$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11121if test "${lt_cv_dlopen_self+set}" = set; then :
11122  $as_echo_n "(cached) " >&6
11123else
11124  	  if test "$cross_compiling" = yes; then :
11125  lt_cv_dlopen_self=cross
11126else
11127  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11128  lt_status=$lt_dlunknown
11129  cat > conftest.$ac_ext <<_LT_EOF
11130#line 11130 "configure"
11131#include "confdefs.h"
11132
11133#if HAVE_DLFCN_H
11134#include <dlfcn.h>
11135#endif
11136
11137#include <stdio.h>
11138
11139#ifdef RTLD_GLOBAL
11140#  define LT_DLGLOBAL		RTLD_GLOBAL
11141#else
11142#  ifdef DL_GLOBAL
11143#    define LT_DLGLOBAL		DL_GLOBAL
11144#  else
11145#    define LT_DLGLOBAL		0
11146#  endif
11147#endif
11148
11149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11150   find out it does not work in some platform. */
11151#ifndef LT_DLLAZY_OR_NOW
11152#  ifdef RTLD_LAZY
11153#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11154#  else
11155#    ifdef DL_LAZY
11156#      define LT_DLLAZY_OR_NOW		DL_LAZY
11157#    else
11158#      ifdef RTLD_NOW
11159#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11160#      else
11161#        ifdef DL_NOW
11162#          define LT_DLLAZY_OR_NOW	DL_NOW
11163#        else
11164#          define LT_DLLAZY_OR_NOW	0
11165#        endif
11166#      endif
11167#    endif
11168#  endif
11169#endif
11170
11171/* When -fvisbility=hidden is used, assume the code has been annotated
11172   correspondingly for the symbols needed.  */
11173#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11174void fnord () __attribute__((visibility("default")));
11175#endif
11176
11177void fnord () { int i=42; }
11178int main ()
11179{
11180  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11181  int status = $lt_dlunknown;
11182
11183  if (self)
11184    {
11185      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11186      else
11187        {
11188	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11189          else puts (dlerror ());
11190	}
11191      /* dlclose (self); */
11192    }
11193  else
11194    puts (dlerror ());
11195
11196  return status;
11197}
11198_LT_EOF
11199  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11200  (eval $ac_link) 2>&5
11201  ac_status=$?
11202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11203  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11204    (./conftest; exit; ) >&5 2>/dev/null
11205    lt_status=$?
11206    case x$lt_status in
11207      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11208      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11209      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11210    esac
11211  else :
11212    # compilation failed
11213    lt_cv_dlopen_self=no
11214  fi
11215fi
11216rm -fr conftest*
11217
11218
11219fi
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11221$as_echo "$lt_cv_dlopen_self" >&6; }
11222
11223    if test "x$lt_cv_dlopen_self" = xyes; then
11224      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11225      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11226$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11227if test "${lt_cv_dlopen_self_static+set}" = set; then :
11228  $as_echo_n "(cached) " >&6
11229else
11230  	  if test "$cross_compiling" = yes; then :
11231  lt_cv_dlopen_self_static=cross
11232else
11233  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11234  lt_status=$lt_dlunknown
11235  cat > conftest.$ac_ext <<_LT_EOF
11236#line 11236 "configure"
11237#include "confdefs.h"
11238
11239#if HAVE_DLFCN_H
11240#include <dlfcn.h>
11241#endif
11242
11243#include <stdio.h>
11244
11245#ifdef RTLD_GLOBAL
11246#  define LT_DLGLOBAL		RTLD_GLOBAL
11247#else
11248#  ifdef DL_GLOBAL
11249#    define LT_DLGLOBAL		DL_GLOBAL
11250#  else
11251#    define LT_DLGLOBAL		0
11252#  endif
11253#endif
11254
11255/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11256   find out it does not work in some platform. */
11257#ifndef LT_DLLAZY_OR_NOW
11258#  ifdef RTLD_LAZY
11259#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11260#  else
11261#    ifdef DL_LAZY
11262#      define LT_DLLAZY_OR_NOW		DL_LAZY
11263#    else
11264#      ifdef RTLD_NOW
11265#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11266#      else
11267#        ifdef DL_NOW
11268#          define LT_DLLAZY_OR_NOW	DL_NOW
11269#        else
11270#          define LT_DLLAZY_OR_NOW	0
11271#        endif
11272#      endif
11273#    endif
11274#  endif
11275#endif
11276
11277/* When -fvisbility=hidden is used, assume the code has been annotated
11278   correspondingly for the symbols needed.  */
11279#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11280void fnord () __attribute__((visibility("default")));
11281#endif
11282
11283void fnord () { int i=42; }
11284int main ()
11285{
11286  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11287  int status = $lt_dlunknown;
11288
11289  if (self)
11290    {
11291      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11292      else
11293        {
11294	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11295          else puts (dlerror ());
11296	}
11297      /* dlclose (self); */
11298    }
11299  else
11300    puts (dlerror ());
11301
11302  return status;
11303}
11304_LT_EOF
11305  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11306  (eval $ac_link) 2>&5
11307  ac_status=$?
11308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11309  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11310    (./conftest; exit; ) >&5 2>/dev/null
11311    lt_status=$?
11312    case x$lt_status in
11313      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11314      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11315      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11316    esac
11317  else :
11318    # compilation failed
11319    lt_cv_dlopen_self_static=no
11320  fi
11321fi
11322rm -fr conftest*
11323
11324
11325fi
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11327$as_echo "$lt_cv_dlopen_self_static" >&6; }
11328    fi
11329
11330    CPPFLAGS="$save_CPPFLAGS"
11331    LDFLAGS="$save_LDFLAGS"
11332    LIBS="$save_LIBS"
11333    ;;
11334  esac
11335
11336  case $lt_cv_dlopen_self in
11337  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11338  *) enable_dlopen_self=unknown ;;
11339  esac
11340
11341  case $lt_cv_dlopen_self_static in
11342  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11343  *) enable_dlopen_self_static=unknown ;;
11344  esac
11345fi
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363striplib=
11364old_striplib=
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11366$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11367if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11368  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11369  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371$as_echo "yes" >&6; }
11372else
11373# FIXME - insert some real tests, host_os isn't really good enough
11374  case $host_os in
11375  darwin*)
11376    if test -n "$STRIP" ; then
11377      striplib="$STRIP -x"
11378      old_striplib="$STRIP -S"
11379      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11380$as_echo "yes" >&6; }
11381    else
11382      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383$as_echo "no" >&6; }
11384    fi
11385    ;;
11386  *)
11387    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388$as_echo "no" >&6; }
11389    ;;
11390  esac
11391fi
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404  # Report which library types will actually be built
11405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11406$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11408$as_echo "$can_build_shared" >&6; }
11409
11410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11411$as_echo_n "checking whether to build shared libraries... " >&6; }
11412  test "$can_build_shared" = "no" && enable_shared=no
11413
11414  # On AIX, shared libraries and static libraries use the same namespace, and
11415  # are all built from PIC.
11416  case $host_os in
11417  aix3*)
11418    test "$enable_shared" = yes && enable_static=no
11419    if test -n "$RANLIB"; then
11420      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11421      postinstall_cmds='$RANLIB $lib'
11422    fi
11423    ;;
11424
11425  aix[4-9]*)
11426    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11427      test "$enable_shared" = yes && enable_static=no
11428    fi
11429    ;;
11430  esac
11431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11432$as_echo "$enable_shared" >&6; }
11433
11434  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11435$as_echo_n "checking whether to build static libraries... " >&6; }
11436  # Make sure either enable_shared or enable_static is yes.
11437  test "$enable_shared" = yes || enable_static=yes
11438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11439$as_echo "$enable_static" >&6; }
11440
11441
11442
11443
11444fi
11445ac_ext=c
11446ac_cpp='$CPP $CPPFLAGS'
11447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11449ac_compiler_gnu=$ac_cv_c_compiler_gnu
11450
11451CC="$lt_save_CC"
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465        ac_config_commands="$ac_config_commands libtool"
11466
11467
11468
11469
11470# Only expand once:
11471
11472
11473
11474
11475backtrace_supported=yes
11476
11477if test -n "${with_target_subdir}"; then
11478  # We are compiling a GCC library.  We can assume that the unwind
11479  # library exists.
11480  BACKTRACE_FILE="backtrace.lo simple.lo"
11481else
11482  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11483if test "x$ac_cv_header_unwind_h" = x""yes; then :
11484  ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
11485if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
11486  BACKTRACE_FILE="backtrace.lo simple.lo"
11487else
11488  BACKTRACE_FILE="nounwind.lo"
11489                    backtrace_supported=no
11490fi
11491
11492else
11493  BACKTRACE_FILE="nounwind.lo"
11494     backtrace_supported=no
11495fi
11496
11497
11498fi
11499
11500
11501EXTRA_FLAGS=
11502if test -n "${with_target_subdir}"; then
11503  EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
11504else
11505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
11506$as_echo_n "checking for -funwind-tables option... " >&6; }
11507if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  CFLAGS_hold="$CFLAGS"
11511     CFLAGS="$CFLAGS -funwind-tables"
11512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513/* end confdefs.h.  */
11514static int f() { return 0; }
11515int
11516main ()
11517{
11518return f();
11519  ;
11520  return 0;
11521}
11522_ACEOF
11523if ac_fn_c_try_compile "$LINENO"; then :
11524  libbacktrace_cv_c_unwind_tables=yes
11525else
11526  libbacktrace_cv_c_unwind_tables=no
11527fi
11528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11529     CFLAGS="$CFLAGS_hold"
11530fi
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
11532$as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
11533  if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
11534    EXTRA_FLAGS=-funwind-tables
11535  fi
11536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
11537$as_echo_n "checking for -frandom-seed=string option... " >&6; }
11538if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
11539  $as_echo_n "(cached) " >&6
11540else
11541  CFLAGS_hold="$CFLAGS"
11542     CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
11543     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544/* end confdefs.h.  */
11545
11546int
11547main ()
11548{
11549return 0;
11550  ;
11551  return 0;
11552}
11553_ACEOF
11554if ac_fn_c_try_compile "$LINENO"; then :
11555  libbacktrace_cv_c_random_seed_string=yes
11556else
11557  libbacktrace_cv_c_random_seed_string=no
11558fi
11559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560     CFLAGS="$CFLAGS_hold"
11561fi
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
11563$as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
11564  if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
11565    EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
11566  fi
11567fi
11568
11569
11570WARN_FLAGS=
11571save_CFLAGS="$CFLAGS"
11572for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
11573			  -Wmissing-prototypes -Wold-style-definition \
11574			  -Wmissing-format-attribute -Wcast-qual; do
11575  # Do the check with the no- prefix removed since gcc silently
11576  # accepts any -Wno-* option on purpose
11577  case $real_option in
11578    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11579    *) option=$real_option ;;
11580  esac
11581  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11582
11583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11584$as_echo_n "checking whether $CC supports $option... " >&6; }
11585if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11586  $as_echo_n "(cached) " >&6
11587else
11588  CFLAGS="$option"
11589    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590/* end confdefs.h.  */
11591
11592int
11593main ()
11594{
11595
11596  ;
11597  return 0;
11598}
11599_ACEOF
11600if ac_fn_c_try_compile "$LINENO"; then :
11601  eval "$as_acx_Woption=yes"
11602else
11603  eval "$as_acx_Woption=no"
11604fi
11605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11606
11607fi
11608eval ac_res=\$$as_acx_Woption
11609	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11610$as_echo "$ac_res" >&6; }
11611  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11612  WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
11613fi
11614  done
11615CFLAGS="$save_CFLAGS"
11616
11617
11618if test -n "${with_target_subdir}"; then
11619  WARN_FLAGS="$WARN_FLAGS -Werror"
11620fi
11621
11622
11623
11624if test -n "${with_target_subdir}"; then
11625
11626
11627# Check whether --with-system-libunwind was given.
11628if test "${with_system_libunwind+set}" = set; then :
11629  withval=$with_system_libunwind;
11630fi
11631
11632  # If system-libunwind was not specifically set, pick a default setting.
11633  if test x$with_system_libunwind = x; then
11634    case ${target} in
11635      ia64-*-hpux*) with_system_libunwind=yes ;;
11636      *) with_system_libunwind=no ;;
11637    esac
11638  fi
11639  # Based on system-libunwind and target, do we have ipinfo?
11640  if  test x$with_system_libunwind = xyes; then
11641    case ${target} in
11642      ia64-*-*) have_unwind_getipinfo=no ;;
11643      *) have_unwind_getipinfo=yes ;;
11644    esac
11645  else
11646    # Darwin before version 9 does not have _Unwind_GetIPInfo.
11647
11648    case ${target} in
11649      *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
11650      *) have_unwind_getipinfo=yes ;;
11651    esac
11652
11653  fi
11654
11655  if test x$have_unwind_getipinfo = xyes; then
11656
11657$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11658
11659  fi
11660
11661else
11662  ac_save_CFFLAGS="$CFLAGS"
11663  CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
11664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
11665$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
11666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667/* end confdefs.h.  */
11668#include "unwind.h"
11669	struct _Unwind_Context *context;
11670	int ip_before_insn = 0;
11671int
11672main ()
11673{
11674return _Unwind_GetIPInfo (context, &ip_before_insn);
11675  ;
11676  return 0;
11677}
11678_ACEOF
11679if ac_fn_c_try_link "$LINENO"; then :
11680  have_unwind_getipinfo=yes
11681else
11682  have_unwind_getipinfo=no
11683fi
11684rm -f core conftest.err conftest.$ac_objext \
11685    conftest$ac_exeext conftest.$ac_ext
11686  CFLAGS="$ac_save_CFLAGS"
11687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
11688$as_echo "$have_unwind_getipinfo" >&6; }
11689  if test "$have_unwind_getipinfo" = "yes"; then
11690
11691$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11692
11693  fi
11694fi
11695
11696# When building as a target library, shared libraries may want to link
11697# this in.  We don't want to provide another shared library to
11698# complicate dependencies.  Instead, we just compile with -fPIC.
11699PIC_FLAG=
11700if test -n "${with_target_subdir}"; then
11701  PIC_FLAG=-fPIC
11702fi
11703
11704
11705# Test for __sync support.
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
11707$as_echo_n "checking __sync extensions... " >&6; }
11708if test "${libbacktrace_cv_sys_sync+set}" = set; then :
11709  $as_echo_n "(cached) " >&6
11710else
11711  if test -n "${with_target_subdir}"; then
11712   libbacktrace_cv_sys_sync=yes
11713 else
11714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h.  */
11716int i;
11717int
11718main ()
11719{
11720__sync_bool_compare_and_swap (&i, i, i);
11721                       __sync_lock_test_and_set (&i, 1);
11722                       __sync_lock_release (&i);
11723  ;
11724  return 0;
11725}
11726_ACEOF
11727if ac_fn_c_try_link "$LINENO"; then :
11728  libbacktrace_cv_sys_sync=yes
11729else
11730  libbacktrace_cv_sys_sync=no
11731fi
11732rm -f core conftest.err conftest.$ac_objext \
11733    conftest$ac_exeext conftest.$ac_ext
11734 fi
11735fi
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
11737$as_echo "$libbacktrace_cv_sys_sync" >&6; }
11738BACKTRACE_SUPPORTS_THREADS=0
11739if test "$libbacktrace_cv_sys_sync" = "yes"; then
11740  BACKTRACE_SUPPORTS_THREADS=1
11741
11742$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
11743
11744fi
11745
11746
11747# The library needs to be able to read the executable itself.  Compile
11748# a file to determine the executable format.  The awk script
11749# filetype.awk prints out the file type.
11750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
11751$as_echo_n "checking output filetype... " >&6; }
11752if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
11753  $as_echo_n "(cached) " >&6
11754else
11755  filetype=
11756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757/* end confdefs.h.  */
11758int i;
11759int
11760main ()
11761{
11762int j;
11763  ;
11764  return 0;
11765}
11766_ACEOF
11767if ac_fn_c_try_compile "$LINENO"; then :
11768  filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
11769else
11770  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11772as_fn_error "compiler failed
11773See \`config.log' for more details." "$LINENO" 5; }
11774fi
11775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776libbacktrace_cv_sys_filetype=$filetype
11777fi
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
11779$as_echo "$libbacktrace_cv_sys_filetype" >&6; }
11780
11781# Match the file type to decide what files to compile.
11782FORMAT_FILE=
11783case "$libbacktrace_cv_sys_filetype" in
11784elf*) FORMAT_FILE="elf.lo" ;;
11785*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
11786$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
11787   FORMAT_FILE="unknown.lo"
11788   backtrace_supported=no
11789   ;;
11790esac
11791
11792
11793# ELF defines.
11794elfsize=
11795case "$libbacktrace_cv_sys_filetype" in
11796elf32) elfsize=32 ;;
11797elf64) elfsize=64 ;;
11798esac
11799
11800cat >>confdefs.h <<_ACEOF
11801#define BACKTRACE_ELF_SIZE $elfsize
11802_ACEOF
11803
11804
11805BACKTRACE_SUPPORTED=0
11806if test "$backtrace_supported" = "yes"; then
11807  BACKTRACE_SUPPORTED=1
11808fi
11809
11810
11811
11812
11813inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
11814
11815acx_cv_header_stdint=stddef.h
11816acx_cv_header_stdint_kind="(already complete)"
11817for i in stdint.h $inttype_headers; do
11818  unset ac_cv_type_uintptr_t
11819  unset ac_cv_type_uintmax_t
11820  unset ac_cv_type_int_least32_t
11821  unset ac_cv_type_int_fast32_t
11822  unset ac_cv_type_uint64_t
11823  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
11824  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
11825#include <$i>
11826"
11827if test "x$ac_cv_type_uintmax_t" = x""yes; then :
11828  acx_cv_header_stdint=$i
11829else
11830  continue
11831fi
11832
11833  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11834#include <$i>
11835"
11836if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11837
11838else
11839  acx_cv_header_stdint_kind="(mostly complete)"
11840fi
11841
11842  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
11843#include <$i>
11844"
11845if test "x$ac_cv_type_int_least32_t" = x""yes; then :
11846
11847else
11848  acx_cv_header_stdint_kind="(mostly complete)"
11849fi
11850
11851  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
11852#include <$i>
11853"
11854if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
11855
11856else
11857  acx_cv_header_stdint_kind="(mostly complete)"
11858fi
11859
11860  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11861#include <$i>
11862"
11863if test "x$ac_cv_type_uint64_t" = x""yes; then :
11864
11865else
11866  acx_cv_header_stdint_kind="(lacks uint64_t)"
11867fi
11868
11869  break
11870done
11871if test "$acx_cv_header_stdint" = stddef.h; then
11872  acx_cv_header_stdint_kind="(lacks uintmax_t)"
11873  for i in stdint.h $inttype_headers; do
11874    unset ac_cv_type_uintptr_t
11875    unset ac_cv_type_uint32_t
11876    unset ac_cv_type_uint64_t
11877    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
11878    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
11879#include <$i>
11880"
11881if test "x$ac_cv_type_uint32_t" = x""yes; then :
11882  acx_cv_header_stdint=$i
11883else
11884  continue
11885fi
11886
11887    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11888#include <$i>
11889"
11890if test "x$ac_cv_type_uint64_t" = x""yes; then :
11891
11892fi
11893
11894    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11895#include <$i>
11896"
11897if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11898
11899fi
11900
11901    break
11902  done
11903fi
11904if test "$acx_cv_header_stdint" = stddef.h; then
11905  acx_cv_header_stdint_kind="(u_intXX_t style)"
11906  for i in sys/types.h $inttype_headers; do
11907    unset ac_cv_type_u_int32_t
11908    unset ac_cv_type_u_int64_t
11909    $as_echo_n "looking for u_intXX_t types in $i, " >&6
11910    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
11911#include <$i>
11912"
11913if test "x$ac_cv_type_u_int32_t" = x""yes; then :
11914  acx_cv_header_stdint=$i
11915else
11916  continue
11917fi
11918
11919    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
11920#include <$i>
11921"
11922if test "x$ac_cv_type_u_int64_t" = x""yes; then :
11923
11924fi
11925
11926    break
11927  done
11928fi
11929if test "$acx_cv_header_stdint" = stddef.h; then
11930  acx_cv_header_stdint_kind="(using manual detection)"
11931fi
11932
11933test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11934test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11935test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11936test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11937test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11938
11939# ----------------- Summarize what we found so far
11940
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
11942$as_echo_n "checking what to include in gstdint.h... " >&6; }
11943
11944case `$as_basename -- gstdint.h ||
11945$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
11946	 Xgstdint.h : 'X\(//\)$' \| \
11947	 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
11948$as_echo X/gstdint.h |
11949    sed '/^.*\/\([^/][^/]*\)\/*$/{
11950	    s//\1/
11951	    q
11952	  }
11953	  /^X\/\(\/\/\)$/{
11954	    s//\1/
11955	    q
11956	  }
11957	  /^X\/\(\/\).*/{
11958	    s//\1/
11959	    q
11960	  }
11961	  s/.*/./; q'` in
11962  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11963$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11964  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11965$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11966  *) ;;
11967esac
11968
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11970$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
11971
11972# ----------------- done included file, check C basic types --------
11973
11974# Lacking an uintptr_t?  Test size of void *
11975case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11976  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
11977# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11978# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11979# This bug is HP SR number 8606223364.
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11981$as_echo_n "checking size of void *... " >&6; }
11982if test "${ac_cv_sizeof_void_p+set}" = set; then :
11983  $as_echo_n "(cached) " >&6
11984else
11985  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
11986
11987else
11988  if test "$ac_cv_type_void_p" = yes; then
11989     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11991{ as_fn_set_status 77
11992as_fn_error "cannot compute sizeof (void *)
11993See \`config.log' for more details." "$LINENO" 5; }; }
11994   else
11995     ac_cv_sizeof_void_p=0
11996   fi
11997fi
11998
11999fi
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12001$as_echo "$ac_cv_sizeof_void_p" >&6; }
12002
12003
12004
12005cat >>confdefs.h <<_ACEOF
12006#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12007_ACEOF
12008
12009 ;;
12010esac
12011
12012# Lacking an uint64_t?  Test size of long
12013case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12014  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12015# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12016# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12017# This bug is HP SR number 8606223364.
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12019$as_echo_n "checking size of long... " >&6; }
12020if test "${ac_cv_sizeof_long+set}" = set; then :
12021  $as_echo_n "(cached) " >&6
12022else
12023  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12024
12025else
12026  if test "$ac_cv_type_long" = yes; then
12027     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12029{ as_fn_set_status 77
12030as_fn_error "cannot compute sizeof (long)
12031See \`config.log' for more details." "$LINENO" 5; }; }
12032   else
12033     ac_cv_sizeof_long=0
12034   fi
12035fi
12036
12037fi
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12039$as_echo "$ac_cv_sizeof_long" >&6; }
12040
12041
12042
12043cat >>confdefs.h <<_ACEOF
12044#define SIZEOF_LONG $ac_cv_sizeof_long
12045_ACEOF
12046
12047 ;;
12048esac
12049
12050if test $acx_cv_header_stdint = stddef.h; then
12051  # Lacking a good header?  Test size of everything and deduce all types.
12052  # The cast to long int works around a bug in the HP C Compiler
12053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12055# This bug is HP SR number 8606223364.
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12057$as_echo_n "checking size of int... " >&6; }
12058if test "${ac_cv_sizeof_int+set}" = set; then :
12059  $as_echo_n "(cached) " >&6
12060else
12061  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12062
12063else
12064  if test "$ac_cv_type_int" = yes; then
12065     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12067{ as_fn_set_status 77
12068as_fn_error "cannot compute sizeof (int)
12069See \`config.log' for more details." "$LINENO" 5; }; }
12070   else
12071     ac_cv_sizeof_int=0
12072   fi
12073fi
12074
12075fi
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12077$as_echo "$ac_cv_sizeof_int" >&6; }
12078
12079
12080
12081cat >>confdefs.h <<_ACEOF
12082#define SIZEOF_INT $ac_cv_sizeof_int
12083_ACEOF
12084
12085
12086  # The cast to long int works around a bug in the HP C Compiler
12087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12089# This bug is HP SR number 8606223364.
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12091$as_echo_n "checking size of short... " >&6; }
12092if test "${ac_cv_sizeof_short+set}" = set; then :
12093  $as_echo_n "(cached) " >&6
12094else
12095  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12096
12097else
12098  if test "$ac_cv_type_short" = yes; then
12099     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12101{ as_fn_set_status 77
12102as_fn_error "cannot compute sizeof (short)
12103See \`config.log' for more details." "$LINENO" 5; }; }
12104   else
12105     ac_cv_sizeof_short=0
12106   fi
12107fi
12108
12109fi
12110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12111$as_echo "$ac_cv_sizeof_short" >&6; }
12112
12113
12114
12115cat >>confdefs.h <<_ACEOF
12116#define SIZEOF_SHORT $ac_cv_sizeof_short
12117_ACEOF
12118
12119
12120  # The cast to long int works around a bug in the HP C Compiler
12121# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12122# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12123# This bug is HP SR number 8606223364.
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12125$as_echo_n "checking size of char... " >&6; }
12126if test "${ac_cv_sizeof_char+set}" = set; then :
12127  $as_echo_n "(cached) " >&6
12128else
12129  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12130
12131else
12132  if test "$ac_cv_type_char" = yes; then
12133     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12135{ as_fn_set_status 77
12136as_fn_error "cannot compute sizeof (char)
12137See \`config.log' for more details." "$LINENO" 5; }; }
12138   else
12139     ac_cv_sizeof_char=0
12140   fi
12141fi
12142
12143fi
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12145$as_echo "$ac_cv_sizeof_char" >&6; }
12146
12147
12148
12149cat >>confdefs.h <<_ACEOF
12150#define SIZEOF_CHAR $ac_cv_sizeof_char
12151_ACEOF
12152
12153
12154
12155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12156$as_echo_n "checking for type equivalent to int8_t... " >&6; }
12157  case "$ac_cv_sizeof_char" in
12158    1) acx_cv_type_int8_t=char ;;
12159    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12160  esac
12161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12162$as_echo "$acx_cv_type_int8_t" >&6; }
12163
12164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12165$as_echo_n "checking for type equivalent to int16_t... " >&6; }
12166  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12167    2:*) acx_cv_type_int16_t=int ;;
12168    *:2) acx_cv_type_int16_t=short ;;
12169    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12170  esac
12171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12172$as_echo "$acx_cv_type_int16_t" >&6; }
12173
12174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12175$as_echo_n "checking for type equivalent to int32_t... " >&6; }
12176  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12177    4:*) acx_cv_type_int32_t=int ;;
12178    *:4) acx_cv_type_int32_t=long ;;
12179    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12180  esac
12181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12182$as_echo "$acx_cv_type_int32_t" >&6; }
12183fi
12184
12185# These tests are here to make the output prettier
12186
12187if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12188  case "$ac_cv_sizeof_long" in
12189    8) acx_cv_type_int64_t=long ;;
12190  esac
12191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12192$as_echo_n "checking for type equivalent to int64_t... " >&6; }
12193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12194$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12195fi
12196
12197# Now we can use the above types
12198
12199if test "$ac_cv_type_uintptr_t" != yes; then
12200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12201$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12202  case $ac_cv_sizeof_void_p in
12203    2) acx_cv_type_intptr_t=int16_t ;;
12204    4) acx_cv_type_intptr_t=int32_t ;;
12205    8) acx_cv_type_intptr_t=int64_t ;;
12206    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12207  esac
12208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12209$as_echo "$acx_cv_type_intptr_t" >&6; }
12210fi
12211
12212# ----------------- done all checks, emit header -------------
12213ac_config_commands="$ac_config_commands gstdint.h"
12214
12215
12216
12217
12218for ac_header in sys/mman.h
12219do :
12220  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12221if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12222  cat >>confdefs.h <<_ACEOF
12223#define HAVE_SYS_MMAN_H 1
12224_ACEOF
12225
12226fi
12227
12228done
12229
12230if test "$ac_cv_header_sys_mman_h" = "no"; then
12231  have_mmap=no
12232else
12233  if test -n "${with_target_subdir}"; then
12234    # When built as a GCC target library, we can't do a link test.  We
12235    # simply assume that if we have mman.h, we have mmap.
12236    have_mmap=yes
12237  else
12238    ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12239if test "x$ac_cv_func_mmap" = x""yes; then :
12240  have_mmap=yes
12241else
12242  have_mmap=no
12243fi
12244
12245  fi
12246fi
12247if test "$have_mmap" = "no"; then
12248  VIEW_FILE=read.lo
12249  ALLOC_FILE=alloc.lo
12250else
12251  VIEW_FILE=mmapio.lo
12252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253/* end confdefs.h.  */
12254
12255#include <sys/mman.h>
12256#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
12257  #error no MAP_ANONYMOUS
12258#endif
12259
12260_ACEOF
12261if ac_fn_c_try_cpp "$LINENO"; then :
12262  ALLOC_FILE=mmap.lo
12263else
12264  ALLOC_FILE=alloc.lo
12265fi
12266rm -f conftest.err conftest.$ac_ext
12267fi
12268
12269
12270
12271BACKTRACE_USES_MALLOC=0
12272if test "$ALLOC_FILE" = "alloc.lo"; then
12273  BACKTRACE_USES_MALLOC=1
12274fi
12275
12276
12277# Check for dl_iterate_phdr.
12278for ac_header in link.h
12279do :
12280  ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
12281if test "x$ac_cv_header_link_h" = x""yes; then :
12282  cat >>confdefs.h <<_ACEOF
12283#define HAVE_LINK_H 1
12284_ACEOF
12285
12286fi
12287
12288done
12289
12290if test "$ac_cv_header_link_h" = "no"; then
12291  have_dl_iterate_phdr=no
12292else
12293  if test -n "${with_target_subdir}"; then
12294    # When built as a GCC target library, we can't do a link test.
12295    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296/* end confdefs.h.  */
12297#include <link.h>
12298
12299_ACEOF
12300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12301  $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
12302  have_dl_iterate_phdr=yes
12303else
12304  have_dl_iterate_phdr=no
12305fi
12306rm -f conftest*
12307
12308    case "${host}" in
12309    *-*-solaris2.10*)
12310        # Avoid dl_iterate_phdr on Solaris 10, where it is in the
12311    	# header file but is only in -ldl.
12312	have_dl_iterate_phdr=no ;;
12313    esac
12314  else
12315    ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
12316if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
12317  have_dl_iterate_phdr=yes
12318else
12319  have_dl_iterate_phdr=no
12320fi
12321
12322  fi
12323fi
12324if test "$have_dl_iterate_phdr" = "yes"; then
12325
12326$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
12327
12328fi
12329
12330# Check for the fcntl function.
12331if test -n "${with_target_subdir}"; then
12332   case "${host}" in
12333   *-*-mingw*) have_fcntl=no ;;
12334   *) have_fcntl=yes ;;
12335   esac
12336else
12337  ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
12338if test "x$ac_cv_func_fcntl" = x""yes; then :
12339  have_fcntl=yes
12340else
12341  have_fcntl=no
12342fi
12343
12344fi
12345if test "$have_fcntl" = "yes"; then
12346
12347$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
12348
12349fi
12350
12351ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
12352if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
12353  ac_have_decl=1
12354else
12355  ac_have_decl=0
12356fi
12357
12358cat >>confdefs.h <<_ACEOF
12359#define HAVE_DECL_STRNLEN $ac_have_decl
12360_ACEOF
12361
12362
12363# Check for getexecname function.
12364if test -n "${with_target_subdir}"; then
12365   case "${host}" in
12366   *-*-solaris2*) have_getexecname=yes ;;
12367   *) have_getexecname=no ;;
12368   esac
12369else
12370  ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
12371if test "x$ac_cv_func_getexecname" = x""yes; then :
12372  have_getexecname=yes
12373else
12374  have_getexecname=no
12375fi
12376
12377fi
12378if test "$have_getexecname" = "yes"; then
12379
12380$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
12381
12382fi
12383
12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
12385$as_echo_n "checking whether tests can run... " >&6; }
12386if test "${libbacktrace_cv_sys_native+set}" = set; then :
12387  $as_echo_n "(cached) " >&6
12388else
12389  if test "$cross_compiling" = yes; then :
12390  libbacktrace_cv_sys_native=no
12391else
12392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393/* end confdefs.h.  */
12394
12395int
12396main ()
12397{
12398return 0;
12399  ;
12400  return 0;
12401}
12402_ACEOF
12403if ac_fn_c_try_run "$LINENO"; then :
12404  libbacktrace_cv_sys_native=yes
12405else
12406  libbacktrace_cv_sys_native=no
12407fi
12408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12409  conftest.$ac_objext conftest.beam conftest.$ac_ext
12410fi
12411
12412fi
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
12414$as_echo "$libbacktrace_cv_sys_native" >&6; }
12415 if test "$libbacktrace_cv_sys_native" = "yes"; then
12416  NATIVE_TRUE=
12417  NATIVE_FALSE='#'
12418else
12419  NATIVE_TRUE='#'
12420  NATIVE_FALSE=
12421fi
12422
12423
12424if test "${multilib}" = "yes"; then
12425  multilib_arg="--enable-multilib"
12426else
12427  multilib_arg=
12428fi
12429
12430ac_config_files="$ac_config_files Makefile backtrace-supported.h"
12431
12432
12433# We need multilib support, but only if configuring for the target.
12434ac_config_commands="$ac_config_commands default"
12435
12436
12437cat >confcache <<\_ACEOF
12438# This file is a shell script that caches the results of configure
12439# tests run on this system so they can be shared between configure
12440# scripts and configure runs, see configure's option --config-cache.
12441# It is not useful on other systems.  If it contains results you don't
12442# want to keep, you may remove or edit it.
12443#
12444# config.status only pays attention to the cache file if you give it
12445# the --recheck option to rerun configure.
12446#
12447# `ac_cv_env_foo' variables (set or unset) will be overridden when
12448# loading this file, other *unset* `ac_cv_foo' will be assigned the
12449# following values.
12450
12451_ACEOF
12452
12453# The following way of writing the cache mishandles newlines in values,
12454# but we know of no workaround that is simple, portable, and efficient.
12455# So, we kill variables containing newlines.
12456# Ultrix sh set writes to stderr and can't be redirected directly,
12457# and sets the high bit in the cache file unless we assign to the vars.
12458(
12459  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12460    eval ac_val=\$$ac_var
12461    case $ac_val in #(
12462    *${as_nl}*)
12463      case $ac_var in #(
12464      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12465$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12466      esac
12467      case $ac_var in #(
12468      _ | IFS | as_nl) ;; #(
12469      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12470      *) { eval $ac_var=; unset $ac_var;} ;;
12471      esac ;;
12472    esac
12473  done
12474
12475  (set) 2>&1 |
12476    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12477    *${as_nl}ac_space=\ *)
12478      # `set' does not quote correctly, so add quotes: double-quote
12479      # substitution turns \\\\ into \\, and sed turns \\ into \.
12480      sed -n \
12481	"s/'/'\\\\''/g;
12482	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12483      ;; #(
12484    *)
12485      # `set' quotes correctly as required by POSIX, so do not add quotes.
12486      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12487      ;;
12488    esac |
12489    sort
12490) |
12491  sed '
12492     /^ac_cv_env_/b end
12493     t clear
12494     :clear
12495     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12496     t end
12497     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12498     :end' >>confcache
12499if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12500  if test -w "$cache_file"; then
12501    test "x$cache_file" != "x/dev/null" &&
12502      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12503$as_echo "$as_me: updating cache $cache_file" >&6;}
12504    cat confcache >$cache_file
12505  else
12506    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12507$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12508  fi
12509fi
12510rm -f confcache
12511
12512test "x$prefix" = xNONE && prefix=$ac_default_prefix
12513# Let make expand exec_prefix.
12514test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12515
12516DEFS=-DHAVE_CONFIG_H
12517
12518ac_libobjs=
12519ac_ltlibobjs=
12520for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12521  # 1. Remove the extension, and $U if already installed.
12522  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12523  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12524  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12525  #    will be set to the directory where LIBOBJS objects are built.
12526  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12527  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12528done
12529LIBOBJS=$ac_libobjs
12530
12531LTLIBOBJS=$ac_ltlibobjs
12532
12533
12534 if test -n "$EXEEXT"; then
12535  am__EXEEXT_TRUE=
12536  am__EXEEXT_FALSE='#'
12537else
12538  am__EXEEXT_TRUE='#'
12539  am__EXEEXT_FALSE=
12540fi
12541
12542if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12543  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12544Usually this means the macro was only invoked conditionally." "$LINENO" 5
12545fi
12546if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
12547  as_fn_error "conditional \"NATIVE\" was never defined.
12548Usually this means the macro was only invoked conditionally." "$LINENO" 5
12549fi
12550
12551: ${CONFIG_STATUS=./config.status}
12552ac_write_fail=0
12553ac_clean_files_save=$ac_clean_files
12554ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12556$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12557as_write_fail=0
12558cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12559#! $SHELL
12560# Generated by $as_me.
12561# Run this file to recreate the current configuration.
12562# Compiler output produced by configure, useful for debugging
12563# configure, is in config.log if it exists.
12564
12565debug=false
12566ac_cs_recheck=false
12567ac_cs_silent=false
12568
12569SHELL=\${CONFIG_SHELL-$SHELL}
12570export SHELL
12571_ASEOF
12572cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12573## -------------------- ##
12574## M4sh Initialization. ##
12575## -------------------- ##
12576
12577# Be more Bourne compatible
12578DUALCASE=1; export DUALCASE # for MKS sh
12579if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12580  emulate sh
12581  NULLCMD=:
12582  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12583  # is contrary to our usage.  Disable this feature.
12584  alias -g '${1+"$@"}'='"$@"'
12585  setopt NO_GLOB_SUBST
12586else
12587  case `(set -o) 2>/dev/null` in #(
12588  *posix*) :
12589    set -o posix ;; #(
12590  *) :
12591     ;;
12592esac
12593fi
12594
12595
12596as_nl='
12597'
12598export as_nl
12599# Printing a long string crashes Solaris 7 /usr/bin/printf.
12600as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12601as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12602as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12603# Prefer a ksh shell builtin over an external printf program on Solaris,
12604# but without wasting forks for bash or zsh.
12605if test -z "$BASH_VERSION$ZSH_VERSION" \
12606    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12607  as_echo='print -r --'
12608  as_echo_n='print -rn --'
12609elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12610  as_echo='printf %s\n'
12611  as_echo_n='printf %s'
12612else
12613  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12614    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12615    as_echo_n='/usr/ucb/echo -n'
12616  else
12617    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12618    as_echo_n_body='eval
12619      arg=$1;
12620      case $arg in #(
12621      *"$as_nl"*)
12622	expr "X$arg" : "X\\(.*\\)$as_nl";
12623	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12624      esac;
12625      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12626    '
12627    export as_echo_n_body
12628    as_echo_n='sh -c $as_echo_n_body as_echo'
12629  fi
12630  export as_echo_body
12631  as_echo='sh -c $as_echo_body as_echo'
12632fi
12633
12634# The user is always right.
12635if test "${PATH_SEPARATOR+set}" != set; then
12636  PATH_SEPARATOR=:
12637  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12638    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12639      PATH_SEPARATOR=';'
12640  }
12641fi
12642
12643
12644# IFS
12645# We need space, tab and new line, in precisely that order.  Quoting is
12646# there to prevent editors from complaining about space-tab.
12647# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12648# splitting by setting IFS to empty value.)
12649IFS=" ""	$as_nl"
12650
12651# Find who we are.  Look in the path if we contain no directory separator.
12652case $0 in #((
12653  *[\\/]* ) as_myself=$0 ;;
12654  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655for as_dir in $PATH
12656do
12657  IFS=$as_save_IFS
12658  test -z "$as_dir" && as_dir=.
12659    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12660  done
12661IFS=$as_save_IFS
12662
12663     ;;
12664esac
12665# We did not find ourselves, most probably we were run as `sh COMMAND'
12666# in which case we are not to be found in the path.
12667if test "x$as_myself" = x; then
12668  as_myself=$0
12669fi
12670if test ! -f "$as_myself"; then
12671  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12672  exit 1
12673fi
12674
12675# Unset variables that we do not need and which cause bugs (e.g. in
12676# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12677# suppresses any "Segmentation fault" message there.  '((' could
12678# trigger a bug in pdksh 5.2.14.
12679for as_var in BASH_ENV ENV MAIL MAILPATH
12680do eval test x\${$as_var+set} = xset \
12681  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12682done
12683PS1='$ '
12684PS2='> '
12685PS4='+ '
12686
12687# NLS nuisances.
12688LC_ALL=C
12689export LC_ALL
12690LANGUAGE=C
12691export LANGUAGE
12692
12693# CDPATH.
12694(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12695
12696
12697# as_fn_error ERROR [LINENO LOG_FD]
12698# ---------------------------------
12699# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12700# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12701# script with status $?, using 1 if that was 0.
12702as_fn_error ()
12703{
12704  as_status=$?; test $as_status -eq 0 && as_status=1
12705  if test "$3"; then
12706    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12707    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12708  fi
12709  $as_echo "$as_me: error: $1" >&2
12710  as_fn_exit $as_status
12711} # as_fn_error
12712
12713
12714# as_fn_set_status STATUS
12715# -----------------------
12716# Set $? to STATUS, without forking.
12717as_fn_set_status ()
12718{
12719  return $1
12720} # as_fn_set_status
12721
12722# as_fn_exit STATUS
12723# -----------------
12724# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12725as_fn_exit ()
12726{
12727  set +e
12728  as_fn_set_status $1
12729  exit $1
12730} # as_fn_exit
12731
12732# as_fn_unset VAR
12733# ---------------
12734# Portably unset VAR.
12735as_fn_unset ()
12736{
12737  { eval $1=; unset $1;}
12738}
12739as_unset=as_fn_unset
12740# as_fn_append VAR VALUE
12741# ----------------------
12742# Append the text in VALUE to the end of the definition contained in VAR. Take
12743# advantage of any shell optimizations that allow amortized linear growth over
12744# repeated appends, instead of the typical quadratic growth present in naive
12745# implementations.
12746if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12747  eval 'as_fn_append ()
12748  {
12749    eval $1+=\$2
12750  }'
12751else
12752  as_fn_append ()
12753  {
12754    eval $1=\$$1\$2
12755  }
12756fi # as_fn_append
12757
12758# as_fn_arith ARG...
12759# ------------------
12760# Perform arithmetic evaluation on the ARGs, and store the result in the
12761# global $as_val. Take advantage of shells that can avoid forks. The arguments
12762# must be portable across $(()) and expr.
12763if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12764  eval 'as_fn_arith ()
12765  {
12766    as_val=$(( $* ))
12767  }'
12768else
12769  as_fn_arith ()
12770  {
12771    as_val=`expr "$@" || test $? -eq 1`
12772  }
12773fi # as_fn_arith
12774
12775
12776if expr a : '\(a\)' >/dev/null 2>&1 &&
12777   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12778  as_expr=expr
12779else
12780  as_expr=false
12781fi
12782
12783if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12784  as_basename=basename
12785else
12786  as_basename=false
12787fi
12788
12789if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12790  as_dirname=dirname
12791else
12792  as_dirname=false
12793fi
12794
12795as_me=`$as_basename -- "$0" ||
12796$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12797	 X"$0" : 'X\(//\)$' \| \
12798	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12799$as_echo X/"$0" |
12800    sed '/^.*\/\([^/][^/]*\)\/*$/{
12801	    s//\1/
12802	    q
12803	  }
12804	  /^X\/\(\/\/\)$/{
12805	    s//\1/
12806	    q
12807	  }
12808	  /^X\/\(\/\).*/{
12809	    s//\1/
12810	    q
12811	  }
12812	  s/.*/./; q'`
12813
12814# Avoid depending upon Character Ranges.
12815as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12816as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12817as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12818as_cr_digits='0123456789'
12819as_cr_alnum=$as_cr_Letters$as_cr_digits
12820
12821ECHO_C= ECHO_N= ECHO_T=
12822case `echo -n x` in #(((((
12823-n*)
12824  case `echo 'xy\c'` in
12825  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12826  xy)  ECHO_C='\c';;
12827  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12828       ECHO_T='	';;
12829  esac;;
12830*)
12831  ECHO_N='-n';;
12832esac
12833
12834rm -f conf$$ conf$$.exe conf$$.file
12835if test -d conf$$.dir; then
12836  rm -f conf$$.dir/conf$$.file
12837else
12838  rm -f conf$$.dir
12839  mkdir conf$$.dir 2>/dev/null
12840fi
12841if (echo >conf$$.file) 2>/dev/null; then
12842  if ln -s conf$$.file conf$$ 2>/dev/null; then
12843    as_ln_s='ln -s'
12844    # ... but there are two gotchas:
12845    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12846    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12847    # In both cases, we have to default to `cp -p'.
12848    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12849      as_ln_s='cp -p'
12850  elif ln conf$$.file conf$$ 2>/dev/null; then
12851    as_ln_s=ln
12852  else
12853    as_ln_s='cp -p'
12854  fi
12855else
12856  as_ln_s='cp -p'
12857fi
12858rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12859rmdir conf$$.dir 2>/dev/null
12860
12861
12862# as_fn_mkdir_p
12863# -------------
12864# Create "$as_dir" as a directory, including parents if necessary.
12865as_fn_mkdir_p ()
12866{
12867
12868  case $as_dir in #(
12869  -*) as_dir=./$as_dir;;
12870  esac
12871  test -d "$as_dir" || eval $as_mkdir_p || {
12872    as_dirs=
12873    while :; do
12874      case $as_dir in #(
12875      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12876      *) as_qdir=$as_dir;;
12877      esac
12878      as_dirs="'$as_qdir' $as_dirs"
12879      as_dir=`$as_dirname -- "$as_dir" ||
12880$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12881	 X"$as_dir" : 'X\(//\)[^/]' \| \
12882	 X"$as_dir" : 'X\(//\)$' \| \
12883	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12884$as_echo X"$as_dir" |
12885    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12886	    s//\1/
12887	    q
12888	  }
12889	  /^X\(\/\/\)[^/].*/{
12890	    s//\1/
12891	    q
12892	  }
12893	  /^X\(\/\/\)$/{
12894	    s//\1/
12895	    q
12896	  }
12897	  /^X\(\/\).*/{
12898	    s//\1/
12899	    q
12900	  }
12901	  s/.*/./; q'`
12902      test -d "$as_dir" && break
12903    done
12904    test -z "$as_dirs" || eval "mkdir $as_dirs"
12905  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12906
12907
12908} # as_fn_mkdir_p
12909if mkdir -p . 2>/dev/null; then
12910  as_mkdir_p='mkdir -p "$as_dir"'
12911else
12912  test -d ./-p && rmdir ./-p
12913  as_mkdir_p=false
12914fi
12915
12916if test -x / >/dev/null 2>&1; then
12917  as_test_x='test -x'
12918else
12919  if ls -dL / >/dev/null 2>&1; then
12920    as_ls_L_option=L
12921  else
12922    as_ls_L_option=
12923  fi
12924  as_test_x='
12925    eval sh -c '\''
12926      if test -d "$1"; then
12927	test -d "$1/.";
12928      else
12929	case $1 in #(
12930	-*)set "./$1";;
12931	esac;
12932	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12933	???[sx]*):;;*)false;;esac;fi
12934    '\'' sh
12935  '
12936fi
12937as_executable_p=$as_test_x
12938
12939# Sed expression to map a string onto a valid CPP name.
12940as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12941
12942# Sed expression to map a string onto a valid variable name.
12943as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12944
12945
12946exec 6>&1
12947## ----------------------------------- ##
12948## Main body of $CONFIG_STATUS script. ##
12949## ----------------------------------- ##
12950_ASEOF
12951test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12952
12953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12954# Save the log message, to keep $0 and so on meaningful, and to
12955# report actual input values of CONFIG_FILES etc. instead of their
12956# values after options handling.
12957ac_log="
12958This file was extended by package-unused $as_me version-unused, which was
12959generated by GNU Autoconf 2.64.  Invocation command line was
12960
12961  CONFIG_FILES    = $CONFIG_FILES
12962  CONFIG_HEADERS  = $CONFIG_HEADERS
12963  CONFIG_LINKS    = $CONFIG_LINKS
12964  CONFIG_COMMANDS = $CONFIG_COMMANDS
12965  $ $0 $@
12966
12967on `(hostname || uname -n) 2>/dev/null | sed 1q`
12968"
12969
12970_ACEOF
12971
12972case $ac_config_files in *"
12973"*) set x $ac_config_files; shift; ac_config_files=$*;;
12974esac
12975
12976case $ac_config_headers in *"
12977"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12978esac
12979
12980
12981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12982# Files that config.status was made for.
12983config_files="$ac_config_files"
12984config_headers="$ac_config_headers"
12985config_commands="$ac_config_commands"
12986
12987_ACEOF
12988
12989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12990ac_cs_usage="\
12991\`$as_me' instantiates files and other configuration actions
12992from templates according to the current configuration.  Unless the files
12993and actions are specified as TAGs, all are instantiated by default.
12994
12995Usage: $0 [OPTION]... [TAG]...
12996
12997  -h, --help       print this help, then exit
12998  -V, --version    print version number and configuration settings, then exit
12999  -q, --quiet, --silent
13000                   do not print progress messages
13001  -d, --debug      don't remove temporary files
13002      --recheck    update $as_me by reconfiguring in the same conditions
13003      --file=FILE[:TEMPLATE]
13004                   instantiate the configuration file FILE
13005      --header=FILE[:TEMPLATE]
13006                   instantiate the configuration header FILE
13007
13008Configuration files:
13009$config_files
13010
13011Configuration headers:
13012$config_headers
13013
13014Configuration commands:
13015$config_commands
13016
13017Report bugs to the package provider."
13018
13019_ACEOF
13020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13021ac_cs_version="\\
13022package-unused config.status version-unused
13023configured by $0, generated by GNU Autoconf 2.64,
13024  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13025
13026Copyright (C) 2009 Free Software Foundation, Inc.
13027This config.status script is free software; the Free Software Foundation
13028gives unlimited permission to copy, distribute and modify it."
13029
13030ac_pwd='$ac_pwd'
13031srcdir='$srcdir'
13032INSTALL='$INSTALL'
13033MKDIR_P='$MKDIR_P'
13034AWK='$AWK'
13035test -n "\$AWK" || AWK=awk
13036_ACEOF
13037
13038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13039# The default lists apply if the user does not specify any file.
13040ac_need_defaults=:
13041while test $# != 0
13042do
13043  case $1 in
13044  --*=*)
13045    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13046    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13047    ac_shift=:
13048    ;;
13049  *)
13050    ac_option=$1
13051    ac_optarg=$2
13052    ac_shift=shift
13053    ;;
13054  esac
13055
13056  case $ac_option in
13057  # Handling of the options.
13058  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13059    ac_cs_recheck=: ;;
13060  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13061    $as_echo "$ac_cs_version"; exit ;;
13062  --debug | --debu | --deb | --de | --d | -d )
13063    debug=: ;;
13064  --file | --fil | --fi | --f )
13065    $ac_shift
13066    case $ac_optarg in
13067    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13068    esac
13069    as_fn_append CONFIG_FILES " '$ac_optarg'"
13070    ac_need_defaults=false;;
13071  --header | --heade | --head | --hea )
13072    $ac_shift
13073    case $ac_optarg in
13074    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13075    esac
13076    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13077    ac_need_defaults=false;;
13078  --he | --h)
13079    # Conflict between --help and --header
13080    as_fn_error "ambiguous option: \`$1'
13081Try \`$0 --help' for more information.";;
13082  --help | --hel | -h )
13083    $as_echo "$ac_cs_usage"; exit ;;
13084  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13085  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13086    ac_cs_silent=: ;;
13087
13088  # This is an error.
13089  -*) as_fn_error "unrecognized option: \`$1'
13090Try \`$0 --help' for more information." ;;
13091
13092  *) as_fn_append ac_config_targets " $1"
13093     ac_need_defaults=false ;;
13094
13095  esac
13096  shift
13097done
13098
13099ac_configure_extra_args=
13100
13101if $ac_cs_silent; then
13102  exec 6>/dev/null
13103  ac_configure_extra_args="$ac_configure_extra_args --silent"
13104fi
13105
13106_ACEOF
13107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13108if \$ac_cs_recheck; then
13109  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13110  shift
13111  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13112  CONFIG_SHELL='$SHELL'
13113  export CONFIG_SHELL
13114  exec "\$@"
13115fi
13116
13117_ACEOF
13118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13119exec 5>>config.log
13120{
13121  echo
13122  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13123## Running $as_me. ##
13124_ASBOX
13125  $as_echo "$ac_log"
13126} >&5
13127
13128_ACEOF
13129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13130#
13131# INIT-COMMANDS
13132#
13133
13134srcdir="$srcdir"
13135host="$host"
13136target="$target"
13137with_multisubdir="$with_multisubdir"
13138with_multisrctop="$with_multisrctop"
13139with_target_subdir="$with_target_subdir"
13140ac_configure_args="${multilib_arg} ${ac_configure_args}"
13141multi_basedir="$multi_basedir"
13142CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13143CC="$CC"
13144CXX="$CXX"
13145GFORTRAN="$GFORTRAN"
13146GCJ="$GCJ"
13147
13148
13149# The HP-UX ksh and POSIX shell print the target directory to stdout
13150# if CDPATH is set.
13151(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13152
13153sed_quote_subst='$sed_quote_subst'
13154double_quote_subst='$double_quote_subst'
13155delay_variable_subst='$delay_variable_subst'
13156macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13157macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13158enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13159enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13160pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13161enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13162SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13163ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13164host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13165host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13166host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13167build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13168build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13169build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13170SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13171Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13172GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13173EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13174FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13175LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13176NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13177LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13178max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13179ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13180exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13181lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13182lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13183lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13184reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13185reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13186OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13187deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13188file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13189AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13190AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13191STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13192RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13193old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13194old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13195old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13196lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13197CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13198CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13199compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13200GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13201lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13202lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13203lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13204lt_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"`'
13205objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13206MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13207lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13208lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13209lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13210lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13211lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13212need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13213DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13214NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13215LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13216OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13217OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13218libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13219shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13220extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13221archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13222enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13223export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13224whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13225compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13226old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13227old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13228archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13229archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13230module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13231module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13232with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13233allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13234no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13235hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13236hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13237hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13238hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13239hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13240hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13241hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13242hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13243inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13244link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13245fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13246always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13247export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13248exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13249include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13250prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13251file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13252variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13253need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13254need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13255version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13256runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13257shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13258shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13259libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13260library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13261soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13262install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13263postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13264postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13265finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13266finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13267hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13268sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13269sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13270hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13271enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13272enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13273enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13274old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13275striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13276
13277LTCC='$LTCC'
13278LTCFLAGS='$LTCFLAGS'
13279compiler='$compiler_DEFAULT'
13280
13281# A function that is used when there is no print builtin or printf.
13282func_fallback_echo ()
13283{
13284  eval 'cat <<_LTECHO_EOF
13285\$1
13286_LTECHO_EOF'
13287}
13288
13289# Quote evaled strings.
13290for var in SHELL \
13291ECHO \
13292SED \
13293GREP \
13294EGREP \
13295FGREP \
13296LD \
13297NM \
13298LN_S \
13299lt_SP2NL \
13300lt_NL2SP \
13301reload_flag \
13302OBJDUMP \
13303deplibs_check_method \
13304file_magic_cmd \
13305AR \
13306AR_FLAGS \
13307STRIP \
13308RANLIB \
13309CC \
13310CFLAGS \
13311compiler \
13312lt_cv_sys_global_symbol_pipe \
13313lt_cv_sys_global_symbol_to_cdecl \
13314lt_cv_sys_global_symbol_to_c_name_address \
13315lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13316lt_prog_compiler_no_builtin_flag \
13317lt_prog_compiler_wl \
13318lt_prog_compiler_pic \
13319lt_prog_compiler_static \
13320lt_cv_prog_compiler_c_o \
13321need_locks \
13322DSYMUTIL \
13323NMEDIT \
13324LIPO \
13325OTOOL \
13326OTOOL64 \
13327shrext_cmds \
13328export_dynamic_flag_spec \
13329whole_archive_flag_spec \
13330compiler_needs_object \
13331with_gnu_ld \
13332allow_undefined_flag \
13333no_undefined_flag \
13334hardcode_libdir_flag_spec \
13335hardcode_libdir_flag_spec_ld \
13336hardcode_libdir_separator \
13337fix_srcfile_path \
13338exclude_expsyms \
13339include_expsyms \
13340file_list_spec \
13341variables_saved_for_relink \
13342libname_spec \
13343library_names_spec \
13344soname_spec \
13345install_override_mode \
13346finish_eval \
13347old_striplib \
13348striplib; do
13349    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13350    *[\\\\\\\`\\"\\\$]*)
13351      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13352      ;;
13353    *)
13354      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13355      ;;
13356    esac
13357done
13358
13359# Double-quote double-evaled strings.
13360for var in reload_cmds \
13361old_postinstall_cmds \
13362old_postuninstall_cmds \
13363old_archive_cmds \
13364extract_expsyms_cmds \
13365old_archive_from_new_cmds \
13366old_archive_from_expsyms_cmds \
13367archive_cmds \
13368archive_expsym_cmds \
13369module_cmds \
13370module_expsym_cmds \
13371export_symbols_cmds \
13372prelink_cmds \
13373postinstall_cmds \
13374postuninstall_cmds \
13375finish_cmds \
13376sys_lib_search_path_spec \
13377sys_lib_dlsearch_path_spec; do
13378    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13379    *[\\\\\\\`\\"\\\$]*)
13380      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13381      ;;
13382    *)
13383      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13384      ;;
13385    esac
13386done
13387
13388ac_aux_dir='$ac_aux_dir'
13389xsi_shell='$xsi_shell'
13390lt_shell_append='$lt_shell_append'
13391
13392# See if we are running on zsh, and set the options which allow our
13393# commands through without removal of \ escapes INIT.
13394if test -n "\${ZSH_VERSION+set}" ; then
13395   setopt NO_GLOB_SUBST
13396fi
13397
13398
13399    PACKAGE='$PACKAGE'
13400    VERSION='$VERSION'
13401    TIMESTAMP='$TIMESTAMP'
13402    RM='$RM'
13403    ofile='$ofile'
13404
13405
13406
13407
13408GCC="$GCC"
13409CC="$CC"
13410acx_cv_header_stdint="$acx_cv_header_stdint"
13411acx_cv_type_int8_t="$acx_cv_type_int8_t"
13412acx_cv_type_int16_t="$acx_cv_type_int16_t"
13413acx_cv_type_int32_t="$acx_cv_type_int32_t"
13414acx_cv_type_int64_t="$acx_cv_type_int64_t"
13415acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
13416ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
13417ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
13418ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
13419ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
13420ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
13421ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
13422ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
13423ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
13424
13425
13426# Variables needed in config.status (file generation) which aren't already
13427# passed by autoconf.
13428SUBDIRS="$SUBDIRS"
13429
13430
13431_ACEOF
13432
13433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13434
13435# Handling of arguments.
13436for ac_config_target in $ac_config_targets
13437do
13438  case $ac_config_target in
13439    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13440    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13441    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13442    "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
13443    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13444    "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
13445    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13446
13447  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13448  esac
13449done
13450
13451
13452# If the user did not use the arguments to specify the items to instantiate,
13453# then the envvar interface is used.  Set only those that are not.
13454# We use the long form for the default assignment because of an extremely
13455# bizarre bug on SunOS 4.1.3.
13456if $ac_need_defaults; then
13457  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13458  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13459  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13460fi
13461
13462# Have a temporary directory for convenience.  Make it in the build tree
13463# simply because there is no reason against having it here, and in addition,
13464# creating and moving files from /tmp can sometimes cause problems.
13465# Hook for its removal unless debugging.
13466# Note that there is a small window in which the directory will not be cleaned:
13467# after its creation but before its name has been assigned to `$tmp'.
13468$debug ||
13469{
13470  tmp=
13471  trap 'exit_status=$?
13472  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13473' 0
13474  trap 'as_fn_exit 1' 1 2 13 15
13475}
13476# Create a (secure) tmp directory for tmp files.
13477
13478{
13479  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13480  test -n "$tmp" && test -d "$tmp"
13481}  ||
13482{
13483  tmp=./conf$$-$RANDOM
13484  (umask 077 && mkdir "$tmp")
13485} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13486
13487# Set up the scripts for CONFIG_FILES section.
13488# No need to generate them if there are no CONFIG_FILES.
13489# This happens for instance with `./config.status config.h'.
13490if test -n "$CONFIG_FILES"; then
13491
13492
13493ac_cr=`echo X | tr X '\015'`
13494# On cygwin, bash can eat \r inside `` if the user requested igncr.
13495# But we know of no other shell where ac_cr would be empty at this
13496# point, so we can use a bashism as a fallback.
13497if test "x$ac_cr" = x; then
13498  eval ac_cr=\$\'\\r\'
13499fi
13500ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13501if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13502  ac_cs_awk_cr='\r'
13503else
13504  ac_cs_awk_cr=$ac_cr
13505fi
13506
13507echo 'BEGIN {' >"$tmp/subs1.awk" &&
13508_ACEOF
13509
13510
13511{
13512  echo "cat >conf$$subs.awk <<_ACEOF" &&
13513  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13514  echo "_ACEOF"
13515} >conf$$subs.sh ||
13516  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13517ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13518ac_delim='%!_!# '
13519for ac_last_try in false false false false false :; do
13520  . ./conf$$subs.sh ||
13521    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13522
13523  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13524  if test $ac_delim_n = $ac_delim_num; then
13525    break
13526  elif $ac_last_try; then
13527    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13528  else
13529    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13530  fi
13531done
13532rm -f conf$$subs.sh
13533
13534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13535cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13536_ACEOF
13537sed -n '
13538h
13539s/^/S["/; s/!.*/"]=/
13540p
13541g
13542s/^[^!]*!//
13543:repl
13544t repl
13545s/'"$ac_delim"'$//
13546t delim
13547:nl
13548h
13549s/\(.\{148\}\).*/\1/
13550t more1
13551s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13552p
13553n
13554b repl
13555:more1
13556s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13557p
13558g
13559s/.\{148\}//
13560t nl
13561:delim
13562h
13563s/\(.\{148\}\).*/\1/
13564t more2
13565s/["\\]/\\&/g; s/^/"/; s/$/"/
13566p
13567b
13568:more2
13569s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13570p
13571g
13572s/.\{148\}//
13573t delim
13574' <conf$$subs.awk | sed '
13575/^[^""]/{
13576  N
13577  s/\n//
13578}
13579' >>$CONFIG_STATUS || ac_write_fail=1
13580rm -f conf$$subs.awk
13581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13582_ACAWK
13583cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13584  for (key in S) S_is_set[key] = 1
13585  FS = ""
13586
13587}
13588{
13589  line = $ 0
13590  nfields = split(line, field, "@")
13591  substed = 0
13592  len = length(field[1])
13593  for (i = 2; i < nfields; i++) {
13594    key = field[i]
13595    keylen = length(key)
13596    if (S_is_set[key]) {
13597      value = S[key]
13598      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13599      len += length(value) + length(field[++i])
13600      substed = 1
13601    } else
13602      len += 1 + keylen
13603  }
13604
13605  print line
13606}
13607
13608_ACAWK
13609_ACEOF
13610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13611if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13612  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13613else
13614  cat
13615fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13616  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13617_ACEOF
13618
13619# VPATH may cause trouble with some makes, so we remove $(srcdir),
13620# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13621# trailing colons and then remove the whole line if VPATH becomes empty
13622# (actually we leave an empty line to preserve line numbers).
13623if test "x$srcdir" = x.; then
13624  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13625s/:*\$(srcdir):*/:/
13626s/:*\${srcdir}:*/:/
13627s/:*@srcdir@:*/:/
13628s/^\([^=]*=[	 ]*\):*/\1/
13629s/:*$//
13630s/^[^=]*=[	 ]*$//
13631}'
13632fi
13633
13634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13635fi # test -n "$CONFIG_FILES"
13636
13637# Set up the scripts for CONFIG_HEADERS section.
13638# No need to generate them if there are no CONFIG_HEADERS.
13639# This happens for instance with `./config.status Makefile'.
13640if test -n "$CONFIG_HEADERS"; then
13641cat >"$tmp/defines.awk" <<\_ACAWK ||
13642BEGIN {
13643_ACEOF
13644
13645# Transform confdefs.h into an awk script `defines.awk', embedded as
13646# here-document in config.status, that substitutes the proper values into
13647# config.h.in to produce config.h.
13648
13649# Create a delimiter string that does not exist in confdefs.h, to ease
13650# handling of long lines.
13651ac_delim='%!_!# '
13652for ac_last_try in false false :; do
13653  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13654  if test -z "$ac_t"; then
13655    break
13656  elif $ac_last_try; then
13657    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13658  else
13659    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13660  fi
13661done
13662
13663# For the awk script, D is an array of macro values keyed by name,
13664# likewise P contains macro parameters if any.  Preserve backslash
13665# newline sequences.
13666
13667ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13668sed -n '
13669s/.\{148\}/&'"$ac_delim"'/g
13670t rset
13671:rset
13672s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13673t def
13674d
13675:def
13676s/\\$//
13677t bsnl
13678s/["\\]/\\&/g
13679s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13680D["\1"]=" \3"/p
13681s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13682d
13683:bsnl
13684s/["\\]/\\&/g
13685s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13686D["\1"]=" \3\\\\\\n"\\/p
13687t cont
13688s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13689t cont
13690d
13691:cont
13692n
13693s/.\{148\}/&'"$ac_delim"'/g
13694t clear
13695:clear
13696s/\\$//
13697t bsnlc
13698s/["\\]/\\&/g; s/^/"/; s/$/"/p
13699d
13700:bsnlc
13701s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13702b cont
13703' <confdefs.h | sed '
13704s/'"$ac_delim"'/"\\\
13705"/g' >>$CONFIG_STATUS || ac_write_fail=1
13706
13707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13708  for (key in D) D_is_set[key] = 1
13709  FS = ""
13710}
13711/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13712  line = \$ 0
13713  split(line, arg, " ")
13714  if (arg[1] == "#") {
13715    defundef = arg[2]
13716    mac1 = arg[3]
13717  } else {
13718    defundef = substr(arg[1], 2)
13719    mac1 = arg[2]
13720  }
13721  split(mac1, mac2, "(") #)
13722  macro = mac2[1]
13723  prefix = substr(line, 1, index(line, defundef) - 1)
13724  if (D_is_set[macro]) {
13725    # Preserve the white space surrounding the "#".
13726    print prefix "define", macro P[macro] D[macro]
13727    next
13728  } else {
13729    # Replace #undef with comments.  This is necessary, for example,
13730    # in the case of _POSIX_SOURCE, which is predefined and required
13731    # on some systems where configure will not decide to define it.
13732    if (defundef == "undef") {
13733      print "/*", prefix defundef, macro, "*/"
13734      next
13735    }
13736  }
13737}
13738{ print }
13739_ACAWK
13740_ACEOF
13741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13742  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13743fi # test -n "$CONFIG_HEADERS"
13744
13745
13746eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13747shift
13748for ac_tag
13749do
13750  case $ac_tag in
13751  :[FHLC]) ac_mode=$ac_tag; continue;;
13752  esac
13753  case $ac_mode$ac_tag in
13754  :[FHL]*:*);;
13755  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13756  :[FH]-) ac_tag=-:-;;
13757  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13758  esac
13759  ac_save_IFS=$IFS
13760  IFS=:
13761  set x $ac_tag
13762  IFS=$ac_save_IFS
13763  shift
13764  ac_file=$1
13765  shift
13766
13767  case $ac_mode in
13768  :L) ac_source=$1;;
13769  :[FH])
13770    ac_file_inputs=
13771    for ac_f
13772    do
13773      case $ac_f in
13774      -) ac_f="$tmp/stdin";;
13775      *) # Look for the file first in the build tree, then in the source tree
13776	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13777	 # because $ac_f cannot contain `:'.
13778	 test -f "$ac_f" ||
13779	   case $ac_f in
13780	   [\\/$]*) false;;
13781	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13782	   esac ||
13783	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13784      esac
13785      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13786      as_fn_append ac_file_inputs " '$ac_f'"
13787    done
13788
13789    # Let's still pretend it is `configure' which instantiates (i.e., don't
13790    # use $as_me), people would be surprised to read:
13791    #    /* config.h.  Generated by config.status.  */
13792    configure_input='Generated from '`
13793	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13794	`' by configure.'
13795    if test x"$ac_file" != x-; then
13796      configure_input="$ac_file.  $configure_input"
13797      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13798$as_echo "$as_me: creating $ac_file" >&6;}
13799    fi
13800    # Neutralize special characters interpreted by sed in replacement strings.
13801    case $configure_input in #(
13802    *\&* | *\|* | *\\* )
13803       ac_sed_conf_input=`$as_echo "$configure_input" |
13804       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13805    *) ac_sed_conf_input=$configure_input;;
13806    esac
13807
13808    case $ac_tag in
13809    *:-:* | *:-) cat >"$tmp/stdin" \
13810      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13811    esac
13812    ;;
13813  esac
13814
13815  ac_dir=`$as_dirname -- "$ac_file" ||
13816$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13817	 X"$ac_file" : 'X\(//\)[^/]' \| \
13818	 X"$ac_file" : 'X\(//\)$' \| \
13819	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13820$as_echo X"$ac_file" |
13821    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13822	    s//\1/
13823	    q
13824	  }
13825	  /^X\(\/\/\)[^/].*/{
13826	    s//\1/
13827	    q
13828	  }
13829	  /^X\(\/\/\)$/{
13830	    s//\1/
13831	    q
13832	  }
13833	  /^X\(\/\).*/{
13834	    s//\1/
13835	    q
13836	  }
13837	  s/.*/./; q'`
13838  as_dir="$ac_dir"; as_fn_mkdir_p
13839  ac_builddir=.
13840
13841case "$ac_dir" in
13842.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13843*)
13844  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13845  # A ".." for each directory in $ac_dir_suffix.
13846  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13847  case $ac_top_builddir_sub in
13848  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13849  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13850  esac ;;
13851esac
13852ac_abs_top_builddir=$ac_pwd
13853ac_abs_builddir=$ac_pwd$ac_dir_suffix
13854# for backward compatibility:
13855ac_top_builddir=$ac_top_build_prefix
13856
13857case $srcdir in
13858  .)  # We are building in place.
13859    ac_srcdir=.
13860    ac_top_srcdir=$ac_top_builddir_sub
13861    ac_abs_top_srcdir=$ac_pwd ;;
13862  [\\/]* | ?:[\\/]* )  # Absolute name.
13863    ac_srcdir=$srcdir$ac_dir_suffix;
13864    ac_top_srcdir=$srcdir
13865    ac_abs_top_srcdir=$srcdir ;;
13866  *) # Relative name.
13867    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13868    ac_top_srcdir=$ac_top_build_prefix$srcdir
13869    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13870esac
13871ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13872
13873
13874  case $ac_mode in
13875  :F)
13876  #
13877  # CONFIG_FILE
13878  #
13879
13880  case $INSTALL in
13881  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13882  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13883  esac
13884  ac_MKDIR_P=$MKDIR_P
13885  case $MKDIR_P in
13886  [\\/$]* | ?:[\\/]* ) ;;
13887  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13888  esac
13889_ACEOF
13890
13891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13892# If the template does not know about datarootdir, expand it.
13893# FIXME: This hack should be removed a few years after 2.60.
13894ac_datarootdir_hack=; ac_datarootdir_seen=
13895ac_sed_dataroot='
13896/datarootdir/ {
13897  p
13898  q
13899}
13900/@datadir@/p
13901/@docdir@/p
13902/@infodir@/p
13903/@localedir@/p
13904/@mandir@/p'
13905case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13906*datarootdir*) ac_datarootdir_seen=yes;;
13907*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13908  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13909$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13910_ACEOF
13911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13912  ac_datarootdir_hack='
13913  s&@datadir@&$datadir&g
13914  s&@docdir@&$docdir&g
13915  s&@infodir@&$infodir&g
13916  s&@localedir@&$localedir&g
13917  s&@mandir@&$mandir&g
13918  s&\\\${datarootdir}&$datarootdir&g' ;;
13919esac
13920_ACEOF
13921
13922# Neutralize VPATH when `$srcdir' = `.'.
13923# Shell code in configure.ac might set extrasub.
13924# FIXME: do we really want to maintain this feature?
13925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13926ac_sed_extra="$ac_vpsub
13927$extrasub
13928_ACEOF
13929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13930:t
13931/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13932s|@configure_input@|$ac_sed_conf_input|;t t
13933s&@top_builddir@&$ac_top_builddir_sub&;t t
13934s&@top_build_prefix@&$ac_top_build_prefix&;t t
13935s&@srcdir@&$ac_srcdir&;t t
13936s&@abs_srcdir@&$ac_abs_srcdir&;t t
13937s&@top_srcdir@&$ac_top_srcdir&;t t
13938s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13939s&@builddir@&$ac_builddir&;t t
13940s&@abs_builddir@&$ac_abs_builddir&;t t
13941s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13942s&@INSTALL@&$ac_INSTALL&;t t
13943s&@MKDIR_P@&$ac_MKDIR_P&;t t
13944$ac_datarootdir_hack
13945"
13946eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13947  || as_fn_error "could not create $ac_file" "$LINENO" 5
13948
13949test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13950  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13951  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13952  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13953which seems to be undefined.  Please make sure it is defined." >&5
13954$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13955which seems to be undefined.  Please make sure it is defined." >&2;}
13956
13957  rm -f "$tmp/stdin"
13958  case $ac_file in
13959  -) cat "$tmp/out" && rm -f "$tmp/out";;
13960  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13961  esac \
13962  || as_fn_error "could not create $ac_file" "$LINENO" 5
13963 ;;
13964  :H)
13965  #
13966  # CONFIG_HEADER
13967  #
13968  if test x"$ac_file" != x-; then
13969    {
13970      $as_echo "/* $configure_input  */" \
13971      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13972    } >"$tmp/config.h" \
13973      || as_fn_error "could not create $ac_file" "$LINENO" 5
13974    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13975      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13976$as_echo "$as_me: $ac_file is unchanged" >&6;}
13977    else
13978      rm -f "$ac_file"
13979      mv "$tmp/config.h" "$ac_file" \
13980	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13981    fi
13982  else
13983    $as_echo "/* $configure_input  */" \
13984      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13985      || as_fn_error "could not create -" "$LINENO" 5
13986  fi
13987# Compute "$ac_file"'s index in $config_headers.
13988_am_arg="$ac_file"
13989_am_stamp_count=1
13990for _am_header in $config_headers :; do
13991  case $_am_header in
13992    $_am_arg | $_am_arg:* )
13993      break ;;
13994    * )
13995      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13996  esac
13997done
13998echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13999$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14000	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14001	 X"$_am_arg" : 'X\(//\)$' \| \
14002	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14003$as_echo X"$_am_arg" |
14004    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14005	    s//\1/
14006	    q
14007	  }
14008	  /^X\(\/\/\)[^/].*/{
14009	    s//\1/
14010	    q
14011	  }
14012	  /^X\(\/\/\)$/{
14013	    s//\1/
14014	    q
14015	  }
14016	  /^X\(\/\).*/{
14017	    s//\1/
14018	    q
14019	  }
14020	  s/.*/./; q'`/stamp-h$_am_stamp_count
14021 ;;
14022
14023  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14024$as_echo "$as_me: executing $ac_file commands" >&6;}
14025 ;;
14026  esac
14027
14028
14029  case $ac_file$ac_mode in
14030    "default-1":C)
14031# Only add multilib support code if we just rebuilt the top-level
14032# Makefile.
14033case " $CONFIG_FILES " in
14034 *" Makefile "*)
14035   ac_file=Makefile . ${multi_basedir}/config-ml.in
14036   ;;
14037esac ;;
14038    "libtool":C)
14039
14040    # See if we are running on zsh, and set the options which allow our
14041    # commands through without removal of \ escapes.
14042    if test -n "${ZSH_VERSION+set}" ; then
14043      setopt NO_GLOB_SUBST
14044    fi
14045
14046    cfgfile="${ofile}T"
14047    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14048    $RM "$cfgfile"
14049
14050    cat <<_LT_EOF >> "$cfgfile"
14051#! $SHELL
14052
14053# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14054# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14055# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14056# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14057#
14058#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14059#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14060#   Written by Gordon Matzigkeit, 1996
14061#
14062#   This file is part of GNU Libtool.
14063#
14064# GNU Libtool is free software; you can redistribute it and/or
14065# modify it under the terms of the GNU General Public License as
14066# published by the Free Software Foundation; either version 2 of
14067# the License, or (at your option) any later version.
14068#
14069# As a special exception to the GNU General Public License,
14070# if you distribute this file as part of a program or library that
14071# is built using GNU Libtool, you may include this file under the
14072# same distribution terms that you use for the rest of that program.
14073#
14074# GNU Libtool is distributed in the hope that it will be useful,
14075# but WITHOUT ANY WARRANTY; without even the implied warranty of
14076# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14077# GNU General Public License for more details.
14078#
14079# You should have received a copy of the GNU General Public License
14080# along with GNU Libtool; see the file COPYING.  If not, a copy
14081# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14082# obtained by writing to the Free Software Foundation, Inc.,
14083# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14084
14085
14086# The names of the tagged configurations supported by this script.
14087available_tags=""
14088
14089# ### BEGIN LIBTOOL CONFIG
14090
14091# Which release of libtool.m4 was used?
14092macro_version=$macro_version
14093macro_revision=$macro_revision
14094
14095# Whether or not to build shared libraries.
14096build_libtool_libs=$enable_shared
14097
14098# Whether or not to build static libraries.
14099build_old_libs=$enable_static
14100
14101# What type of objects to build.
14102pic_mode=$pic_mode
14103
14104# Whether or not to optimize for fast installation.
14105fast_install=$enable_fast_install
14106
14107# Shell to use when invoking shell scripts.
14108SHELL=$lt_SHELL
14109
14110# An echo program that protects backslashes.
14111ECHO=$lt_ECHO
14112
14113# The host system.
14114host_alias=$host_alias
14115host=$host
14116host_os=$host_os
14117
14118# The build system.
14119build_alias=$build_alias
14120build=$build
14121build_os=$build_os
14122
14123# A sed program that does not truncate output.
14124SED=$lt_SED
14125
14126# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14127Xsed="\$SED -e 1s/^X//"
14128
14129# A grep program that handles long lines.
14130GREP=$lt_GREP
14131
14132# An ERE matcher.
14133EGREP=$lt_EGREP
14134
14135# A literal string matcher.
14136FGREP=$lt_FGREP
14137
14138# A BSD- or MS-compatible name lister.
14139NM=$lt_NM
14140
14141# Whether we need soft or hard links.
14142LN_S=$lt_LN_S
14143
14144# What is the maximum length of a command?
14145max_cmd_len=$max_cmd_len
14146
14147# Object file suffix (normally "o").
14148objext=$ac_objext
14149
14150# Executable file suffix (normally "").
14151exeext=$exeext
14152
14153# whether the shell understands "unset".
14154lt_unset=$lt_unset
14155
14156# turn spaces into newlines.
14157SP2NL=$lt_lt_SP2NL
14158
14159# turn newlines into spaces.
14160NL2SP=$lt_lt_NL2SP
14161
14162# An object symbol dumper.
14163OBJDUMP=$lt_OBJDUMP
14164
14165# Method to check whether dependent libraries are shared objects.
14166deplibs_check_method=$lt_deplibs_check_method
14167
14168# Command to use when deplibs_check_method == "file_magic".
14169file_magic_cmd=$lt_file_magic_cmd
14170
14171# The archiver.
14172AR=$lt_AR
14173AR_FLAGS=$lt_AR_FLAGS
14174
14175# A symbol stripping program.
14176STRIP=$lt_STRIP
14177
14178# Commands used to install an old-style archive.
14179RANLIB=$lt_RANLIB
14180old_postinstall_cmds=$lt_old_postinstall_cmds
14181old_postuninstall_cmds=$lt_old_postuninstall_cmds
14182
14183# Whether to use a lock for old archive extraction.
14184lock_old_archive_extraction=$lock_old_archive_extraction
14185
14186# A C compiler.
14187LTCC=$lt_CC
14188
14189# LTCC compiler flags.
14190LTCFLAGS=$lt_CFLAGS
14191
14192# Take the output of nm and produce a listing of raw symbols and C names.
14193global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14194
14195# Transform the output of nm in a proper C declaration.
14196global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14197
14198# Transform the output of nm in a C name address pair.
14199global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14200
14201# Transform the output of nm in a C name address pair when lib prefix is needed.
14202global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14203
14204# The name of the directory that contains temporary libtool files.
14205objdir=$objdir
14206
14207# Used to examine libraries when file_magic_cmd begins with "file".
14208MAGIC_CMD=$MAGIC_CMD
14209
14210# Must we lock files when doing compilation?
14211need_locks=$lt_need_locks
14212
14213# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14214DSYMUTIL=$lt_DSYMUTIL
14215
14216# Tool to change global to local symbols on Mac OS X.
14217NMEDIT=$lt_NMEDIT
14218
14219# Tool to manipulate fat objects and archives on Mac OS X.
14220LIPO=$lt_LIPO
14221
14222# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14223OTOOL=$lt_OTOOL
14224
14225# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14226OTOOL64=$lt_OTOOL64
14227
14228# Old archive suffix (normally "a").
14229libext=$libext
14230
14231# Shared library suffix (normally ".so").
14232shrext_cmds=$lt_shrext_cmds
14233
14234# The commands to extract the exported symbol list from a shared archive.
14235extract_expsyms_cmds=$lt_extract_expsyms_cmds
14236
14237# Variables whose values should be saved in libtool wrapper scripts and
14238# restored at link time.
14239variables_saved_for_relink=$lt_variables_saved_for_relink
14240
14241# Do we need the "lib" prefix for modules?
14242need_lib_prefix=$need_lib_prefix
14243
14244# Do we need a version for libraries?
14245need_version=$need_version
14246
14247# Library versioning type.
14248version_type=$version_type
14249
14250# Shared library runtime path variable.
14251runpath_var=$runpath_var
14252
14253# Shared library path variable.
14254shlibpath_var=$shlibpath_var
14255
14256# Is shlibpath searched before the hard-coded library search path?
14257shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14258
14259# Format of library name prefix.
14260libname_spec=$lt_libname_spec
14261
14262# List of archive names.  First name is the real one, the rest are links.
14263# The last name is the one that the linker finds with -lNAME
14264library_names_spec=$lt_library_names_spec
14265
14266# The coded name of the library, if different from the real name.
14267soname_spec=$lt_soname_spec
14268
14269# Permission mode override for installation of shared libraries.
14270install_override_mode=$lt_install_override_mode
14271
14272# Command to use after installation of a shared archive.
14273postinstall_cmds=$lt_postinstall_cmds
14274
14275# Command to use after uninstallation of a shared archive.
14276postuninstall_cmds=$lt_postuninstall_cmds
14277
14278# Commands used to finish a libtool library installation in a directory.
14279finish_cmds=$lt_finish_cmds
14280
14281# As "finish_cmds", except a single script fragment to be evaled but
14282# not shown.
14283finish_eval=$lt_finish_eval
14284
14285# Whether we should hardcode library paths into libraries.
14286hardcode_into_libs=$hardcode_into_libs
14287
14288# Compile-time system search path for libraries.
14289sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14290
14291# Run-time system search path for libraries.
14292sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14293
14294# Whether dlopen is supported.
14295dlopen_support=$enable_dlopen
14296
14297# Whether dlopen of programs is supported.
14298dlopen_self=$enable_dlopen_self
14299
14300# Whether dlopen of statically linked programs is supported.
14301dlopen_self_static=$enable_dlopen_self_static
14302
14303# Commands to strip libraries.
14304old_striplib=$lt_old_striplib
14305striplib=$lt_striplib
14306
14307
14308# The linker used to build libraries.
14309LD=$lt_LD
14310
14311# How to create reloadable object files.
14312reload_flag=$lt_reload_flag
14313reload_cmds=$lt_reload_cmds
14314
14315# Commands used to build an old-style archive.
14316old_archive_cmds=$lt_old_archive_cmds
14317
14318# A language specific compiler.
14319CC=$lt_compiler
14320
14321# Is the compiler the GNU compiler?
14322with_gcc=$GCC
14323
14324# Compiler flag to turn off builtin functions.
14325no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14326
14327# How to pass a linker flag through the compiler.
14328wl=$lt_lt_prog_compiler_wl
14329
14330# Additional compiler flags for building library objects.
14331pic_flag=$lt_lt_prog_compiler_pic
14332
14333# Compiler flag to prevent dynamic linking.
14334link_static_flag=$lt_lt_prog_compiler_static
14335
14336# Does compiler simultaneously support -c and -o options?
14337compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14338
14339# Whether or not to add -lc for building shared libraries.
14340build_libtool_need_lc=$archive_cmds_need_lc
14341
14342# Whether or not to disallow shared libs when runtime libs are static.
14343allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14344
14345# Compiler flag to allow reflexive dlopens.
14346export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14347
14348# Compiler flag to generate shared objects directly from archives.
14349whole_archive_flag_spec=$lt_whole_archive_flag_spec
14350
14351# Whether the compiler copes with passing no objects directly.
14352compiler_needs_object=$lt_compiler_needs_object
14353
14354# Create an old-style archive from a shared archive.
14355old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14356
14357# Create a temporary old-style archive to link instead of a shared archive.
14358old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14359
14360# Commands used to build a shared archive.
14361archive_cmds=$lt_archive_cmds
14362archive_expsym_cmds=$lt_archive_expsym_cmds
14363
14364# Commands used to build a loadable module if different from building
14365# a shared archive.
14366module_cmds=$lt_module_cmds
14367module_expsym_cmds=$lt_module_expsym_cmds
14368
14369# Whether we are building with GNU ld or not.
14370with_gnu_ld=$lt_with_gnu_ld
14371
14372# Flag that allows shared libraries with undefined symbols to be built.
14373allow_undefined_flag=$lt_allow_undefined_flag
14374
14375# Flag that enforces no undefined symbols.
14376no_undefined_flag=$lt_no_undefined_flag
14377
14378# Flag to hardcode \$libdir into a binary during linking.
14379# This must work even if \$libdir does not exist
14380hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14381
14382# If ld is used when linking, flag to hardcode \$libdir into a binary
14383# during linking.  This must work even if \$libdir does not exist.
14384hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14385
14386# Whether we need a single "-rpath" flag with a separated argument.
14387hardcode_libdir_separator=$lt_hardcode_libdir_separator
14388
14389# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14390# DIR into the resulting binary.
14391hardcode_direct=$hardcode_direct
14392
14393# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14394# DIR into the resulting binary and the resulting library dependency is
14395# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14396# library is relocated.
14397hardcode_direct_absolute=$hardcode_direct_absolute
14398
14399# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14400# into the resulting binary.
14401hardcode_minus_L=$hardcode_minus_L
14402
14403# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14404# into the resulting binary.
14405hardcode_shlibpath_var=$hardcode_shlibpath_var
14406
14407# Set to "yes" if building a shared library automatically hardcodes DIR
14408# into the library and all subsequent libraries and executables linked
14409# against it.
14410hardcode_automatic=$hardcode_automatic
14411
14412# Set to yes if linker adds runtime paths of dependent libraries
14413# to runtime path list.
14414inherit_rpath=$inherit_rpath
14415
14416# Whether libtool must link a program against all its dependency libraries.
14417link_all_deplibs=$link_all_deplibs
14418
14419# Fix the shell variable \$srcfile for the compiler.
14420fix_srcfile_path=$lt_fix_srcfile_path
14421
14422# Set to "yes" if exported symbols are required.
14423always_export_symbols=$always_export_symbols
14424
14425# The commands to list exported symbols.
14426export_symbols_cmds=$lt_export_symbols_cmds
14427
14428# Symbols that should not be listed in the preloaded symbols.
14429exclude_expsyms=$lt_exclude_expsyms
14430
14431# Symbols that must always be exported.
14432include_expsyms=$lt_include_expsyms
14433
14434# Commands necessary for linking programs (against libraries) with templates.
14435prelink_cmds=$lt_prelink_cmds
14436
14437# Specify filename containing input files.
14438file_list_spec=$lt_file_list_spec
14439
14440# How to hardcode a shared library path into an executable.
14441hardcode_action=$hardcode_action
14442
14443# ### END LIBTOOL CONFIG
14444
14445_LT_EOF
14446
14447  case $host_os in
14448  aix3*)
14449    cat <<\_LT_EOF >> "$cfgfile"
14450# AIX sometimes has problems with the GCC collect2 program.  For some
14451# reason, if we set the COLLECT_NAMES environment variable, the problems
14452# vanish in a puff of smoke.
14453if test "X${COLLECT_NAMES+set}" != Xset; then
14454  COLLECT_NAMES=
14455  export COLLECT_NAMES
14456fi
14457_LT_EOF
14458    ;;
14459  esac
14460
14461
14462ltmain="$ac_aux_dir/ltmain.sh"
14463
14464
14465  # We use sed instead of cat because bash on DJGPP gets confused if
14466  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14467  # text mode, it properly converts lines to CR/LF.  This bash problem
14468  # is reportedly fixed, but why not run on old versions too?
14469  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14470    || (rm -f "$cfgfile"; exit 1)
14471
14472  case $xsi_shell in
14473  yes)
14474    cat << \_LT_EOF >> "$cfgfile"
14475
14476# func_dirname file append nondir_replacement
14477# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14478# otherwise set result to NONDIR_REPLACEMENT.
14479func_dirname ()
14480{
14481  case ${1} in
14482    */*) func_dirname_result="${1%/*}${2}" ;;
14483    *  ) func_dirname_result="${3}" ;;
14484  esac
14485}
14486
14487# func_basename file
14488func_basename ()
14489{
14490  func_basename_result="${1##*/}"
14491}
14492
14493# func_dirname_and_basename file append nondir_replacement
14494# perform func_basename and func_dirname in a single function
14495# call:
14496#   dirname:  Compute the dirname of FILE.  If nonempty,
14497#             add APPEND to the result, otherwise set result
14498#             to NONDIR_REPLACEMENT.
14499#             value returned in "$func_dirname_result"
14500#   basename: Compute filename of FILE.
14501#             value retuned in "$func_basename_result"
14502# Implementation must be kept synchronized with func_dirname
14503# and func_basename. For efficiency, we do not delegate to
14504# those functions but instead duplicate the functionality here.
14505func_dirname_and_basename ()
14506{
14507  case ${1} in
14508    */*) func_dirname_result="${1%/*}${2}" ;;
14509    *  ) func_dirname_result="${3}" ;;
14510  esac
14511  func_basename_result="${1##*/}"
14512}
14513
14514# func_stripname prefix suffix name
14515# strip PREFIX and SUFFIX off of NAME.
14516# PREFIX and SUFFIX must not contain globbing or regex special
14517# characters, hashes, percent signs, but SUFFIX may contain a leading
14518# dot (in which case that matches only a dot).
14519func_stripname ()
14520{
14521  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14522  # positional parameters, so assign one to ordinary parameter first.
14523  func_stripname_result=${3}
14524  func_stripname_result=${func_stripname_result#"${1}"}
14525  func_stripname_result=${func_stripname_result%"${2}"}
14526}
14527
14528# func_opt_split
14529func_opt_split ()
14530{
14531  func_opt_split_opt=${1%%=*}
14532  func_opt_split_arg=${1#*=}
14533}
14534
14535# func_lo2o object
14536func_lo2o ()
14537{
14538  case ${1} in
14539    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14540    *)    func_lo2o_result=${1} ;;
14541  esac
14542}
14543
14544# func_xform libobj-or-source
14545func_xform ()
14546{
14547  func_xform_result=${1%.*}.lo
14548}
14549
14550# func_arith arithmetic-term...
14551func_arith ()
14552{
14553  func_arith_result=$(( $* ))
14554}
14555
14556# func_len string
14557# STRING may not start with a hyphen.
14558func_len ()
14559{
14560  func_len_result=${#1}
14561}
14562
14563_LT_EOF
14564    ;;
14565  *) # Bourne compatible functions.
14566    cat << \_LT_EOF >> "$cfgfile"
14567
14568# func_dirname file append nondir_replacement
14569# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14570# otherwise set result to NONDIR_REPLACEMENT.
14571func_dirname ()
14572{
14573  # Extract subdirectory from the argument.
14574  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14575  if test "X$func_dirname_result" = "X${1}"; then
14576    func_dirname_result="${3}"
14577  else
14578    func_dirname_result="$func_dirname_result${2}"
14579  fi
14580}
14581
14582# func_basename file
14583func_basename ()
14584{
14585  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14586}
14587
14588
14589# func_stripname prefix suffix name
14590# strip PREFIX and SUFFIX off of NAME.
14591# PREFIX and SUFFIX must not contain globbing or regex special
14592# characters, hashes, percent signs, but SUFFIX may contain a leading
14593# dot (in which case that matches only a dot).
14594# func_strip_suffix prefix name
14595func_stripname ()
14596{
14597  case ${2} in
14598    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14599    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14600  esac
14601}
14602
14603# sed scripts:
14604my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14605my_sed_long_arg='1s/^-[^=]*=//'
14606
14607# func_opt_split
14608func_opt_split ()
14609{
14610  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14611  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14612}
14613
14614# func_lo2o object
14615func_lo2o ()
14616{
14617  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14618}
14619
14620# func_xform libobj-or-source
14621func_xform ()
14622{
14623  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14624}
14625
14626# func_arith arithmetic-term...
14627func_arith ()
14628{
14629  func_arith_result=`expr "$@"`
14630}
14631
14632# func_len string
14633# STRING may not start with a hyphen.
14634func_len ()
14635{
14636  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14637}
14638
14639_LT_EOF
14640esac
14641
14642case $lt_shell_append in
14643  yes)
14644    cat << \_LT_EOF >> "$cfgfile"
14645
14646# func_append var value
14647# Append VALUE to the end of shell variable VAR.
14648func_append ()
14649{
14650  eval "$1+=\$2"
14651}
14652_LT_EOF
14653    ;;
14654  *)
14655    cat << \_LT_EOF >> "$cfgfile"
14656
14657# func_append var value
14658# Append VALUE to the end of shell variable VAR.
14659func_append ()
14660{
14661  eval "$1=\$$1\$2"
14662}
14663
14664_LT_EOF
14665    ;;
14666  esac
14667
14668
14669  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14670    || (rm -f "$cfgfile"; exit 1)
14671
14672  mv -f "$cfgfile" "$ofile" ||
14673    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14674  chmod +x "$ofile"
14675
14676 ;;
14677    "gstdint.h":C)
14678if test "$GCC" = yes; then
14679  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
14680else
14681  echo "/* generated for $CC */" > tmp-stdint.h
14682fi
14683
14684sed 's/^ *//' >> tmp-stdint.h <<EOF
14685
14686  #ifndef GCC_GENERATED_STDINT_H
14687  #define GCC_GENERATED_STDINT_H 1
14688
14689  #include <sys/types.h>
14690EOF
14691
14692if test "$acx_cv_header_stdint" != stdint.h; then
14693  echo "#include <stddef.h>" >> tmp-stdint.h
14694fi
14695if test "$acx_cv_header_stdint" != stddef.h; then
14696  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
14697fi
14698
14699sed 's/^ *//' >> tmp-stdint.h <<EOF
14700  /* glibc uses these symbols as guards to prevent redefinitions.  */
14701  #ifdef __int8_t_defined
14702  #define _INT8_T
14703  #define _INT16_T
14704  #define _INT32_T
14705  #endif
14706  #ifdef __uint32_t_defined
14707  #define _UINT32_T
14708  #endif
14709
14710EOF
14711
14712# ----------------- done header, emit basic int types -------------
14713if test "$acx_cv_header_stdint" = stddef.h; then
14714  sed 's/^ *//' >> tmp-stdint.h <<EOF
14715
14716    #ifndef _UINT8_T
14717    #define _UINT8_T
14718    #ifndef __uint8_t_defined
14719    #define __uint8_t_defined
14720    #ifndef uint8_t
14721    typedef unsigned $acx_cv_type_int8_t uint8_t;
14722    #endif
14723    #endif
14724    #endif
14725
14726    #ifndef _UINT16_T
14727    #define _UINT16_T
14728    #ifndef __uint16_t_defined
14729    #define __uint16_t_defined
14730    #ifndef uint16_t
14731    typedef unsigned $acx_cv_type_int16_t uint16_t;
14732    #endif
14733    #endif
14734    #endif
14735
14736    #ifndef _UINT32_T
14737    #define _UINT32_T
14738    #ifndef __uint32_t_defined
14739    #define __uint32_t_defined
14740    #ifndef uint32_t
14741    typedef unsigned $acx_cv_type_int32_t uint32_t;
14742    #endif
14743    #endif
14744    #endif
14745
14746    #ifndef _INT8_T
14747    #define _INT8_T
14748    #ifndef __int8_t_defined
14749    #define __int8_t_defined
14750    #ifndef int8_t
14751    typedef $acx_cv_type_int8_t int8_t;
14752    #endif
14753    #endif
14754    #endif
14755
14756    #ifndef _INT16_T
14757    #define _INT16_T
14758    #ifndef __int16_t_defined
14759    #define __int16_t_defined
14760    #ifndef int16_t
14761    typedef $acx_cv_type_int16_t int16_t;
14762    #endif
14763    #endif
14764    #endif
14765
14766    #ifndef _INT32_T
14767    #define _INT32_T
14768    #ifndef __int32_t_defined
14769    #define __int32_t_defined
14770    #ifndef int32_t
14771    typedef $acx_cv_type_int32_t int32_t;
14772    #endif
14773    #endif
14774    #endif
14775EOF
14776elif test "$ac_cv_type_u_int32_t" = yes; then
14777  sed 's/^ *//' >> tmp-stdint.h <<EOF
14778
14779    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
14780    #ifndef _INT8_T
14781    #define _INT8_T
14782    #endif
14783    #ifndef _INT16_T
14784    #define _INT16_T
14785    #endif
14786    #ifndef _INT32_T
14787    #define _INT32_T
14788    #endif
14789
14790    #ifndef _UINT8_T
14791    #define _UINT8_T
14792    #ifndef __uint8_t_defined
14793    #define __uint8_t_defined
14794    #ifndef uint8_t
14795    typedef u_int8_t uint8_t;
14796    #endif
14797    #endif
14798    #endif
14799
14800    #ifndef _UINT16_T
14801    #define _UINT16_T
14802    #ifndef __uint16_t_defined
14803    #define __uint16_t_defined
14804    #ifndef uint16_t
14805    typedef u_int16_t uint16_t;
14806    #endif
14807    #endif
14808    #endif
14809
14810    #ifndef _UINT32_T
14811    #define _UINT32_T
14812    #ifndef __uint32_t_defined
14813    #define __uint32_t_defined
14814    #ifndef uint32_t
14815    typedef u_int32_t uint32_t;
14816    #endif
14817    #endif
14818    #endif
14819EOF
14820else
14821  sed 's/^ *//' >> tmp-stdint.h <<EOF
14822
14823    /* Some systems have guard macros to prevent redefinitions, define them.  */
14824    #ifndef _INT8_T
14825    #define _INT8_T
14826    #endif
14827    #ifndef _INT16_T
14828    #define _INT16_T
14829    #endif
14830    #ifndef _INT32_T
14831    #define _INT32_T
14832    #endif
14833    #ifndef _UINT8_T
14834    #define _UINT8_T
14835    #endif
14836    #ifndef _UINT16_T
14837    #define _UINT16_T
14838    #endif
14839    #ifndef _UINT32_T
14840    #define _UINT32_T
14841    #endif
14842EOF
14843fi
14844
14845# ------------- done basic int types, emit int64_t types ------------
14846if test "$ac_cv_type_uint64_t" = yes; then
14847  sed 's/^ *//' >> tmp-stdint.h <<EOF
14848
14849    /* system headers have good uint64_t and int64_t */
14850    #ifndef _INT64_T
14851    #define _INT64_T
14852    #endif
14853    #ifndef _UINT64_T
14854    #define _UINT64_T
14855    #endif
14856EOF
14857elif test "$ac_cv_type_u_int64_t" = yes; then
14858  sed 's/^ *//' >> tmp-stdint.h <<EOF
14859
14860    /* system headers have an u_int64_t (and int64_t) */
14861    #ifndef _INT64_T
14862    #define _INT64_T
14863    #endif
14864    #ifndef _UINT64_T
14865    #define _UINT64_T
14866    #ifndef __uint64_t_defined
14867    #define __uint64_t_defined
14868    #ifndef uint64_t
14869    typedef u_int64_t uint64_t;
14870    #endif
14871    #endif
14872    #endif
14873EOF
14874elif test -n "$acx_cv_type_int64_t"; then
14875  sed 's/^ *//' >> tmp-stdint.h <<EOF
14876
14877    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
14878    #ifndef _INT64_T
14879    #define _INT64_T
14880    #ifndef int64_t
14881    typedef $acx_cv_type_int64_t int64_t;
14882    #endif
14883    #endif
14884    #ifndef _UINT64_T
14885    #define _UINT64_T
14886    #ifndef __uint64_t_defined
14887    #define __uint64_t_defined
14888    #ifndef uint64_t
14889    typedef unsigned $acx_cv_type_int64_t uint64_t;
14890    #endif
14891    #endif
14892    #endif
14893EOF
14894else
14895  sed 's/^ *//' >> tmp-stdint.h <<EOF
14896
14897    /* some common heuristics for int64_t, using compiler-specific tests */
14898    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
14899    #ifndef _INT64_T
14900    #define _INT64_T
14901    #ifndef __int64_t_defined
14902    #ifndef int64_t
14903    typedef long long int64_t;
14904    #endif
14905    #endif
14906    #endif
14907    #ifndef _UINT64_T
14908    #define _UINT64_T
14909    #ifndef uint64_t
14910    typedef unsigned long long uint64_t;
14911    #endif
14912    #endif
14913
14914    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
14915    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
14916       does not implement __extension__.  But that compiler doesn't define
14917       __GNUC_MINOR__.  */
14918    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
14919    # define __extension__
14920    # endif
14921
14922    # ifndef _INT64_T
14923    # define _INT64_T
14924    # ifndef int64_t
14925    __extension__ typedef long long int64_t;
14926    # endif
14927    # endif
14928    # ifndef _UINT64_T
14929    # define _UINT64_T
14930    # ifndef uint64_t
14931    __extension__ typedef unsigned long long uint64_t;
14932    # endif
14933    # endif
14934
14935    #elif !defined __STRICT_ANSI__
14936    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
14937
14938    #  ifndef _INT64_T
14939    #  define _INT64_T
14940    #  ifndef int64_t
14941    typedef __int64 int64_t;
14942    #  endif
14943    #  endif
14944    #  ifndef _UINT64_T
14945    #  define _UINT64_T
14946    #  ifndef uint64_t
14947    typedef unsigned __int64 uint64_t;
14948    #  endif
14949    #  endif
14950    # endif /* compiler */
14951
14952    #endif /* ANSI version */
14953EOF
14954fi
14955
14956# ------------- done int64_t types, emit intptr types ------------
14957if test "$ac_cv_type_uintptr_t" != yes; then
14958  sed 's/^ *//' >> tmp-stdint.h <<EOF
14959
14960    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
14961    #ifndef __uintptr_t_defined
14962    #ifndef uintptr_t
14963    typedef u$acx_cv_type_intptr_t uintptr_t;
14964    #endif
14965    #endif
14966    #ifndef __intptr_t_defined
14967    #ifndef intptr_t
14968    typedef $acx_cv_type_intptr_t  intptr_t;
14969    #endif
14970    #endif
14971EOF
14972fi
14973
14974# ------------- done intptr types, emit int_least types ------------
14975if test "$ac_cv_type_int_least32_t" != yes; then
14976  sed 's/^ *//' >> tmp-stdint.h <<EOF
14977
14978    /* Define int_least types */
14979    typedef int8_t     int_least8_t;
14980    typedef int16_t    int_least16_t;
14981    typedef int32_t    int_least32_t;
14982    #ifdef _INT64_T
14983    typedef int64_t    int_least64_t;
14984    #endif
14985
14986    typedef uint8_t    uint_least8_t;
14987    typedef uint16_t   uint_least16_t;
14988    typedef uint32_t   uint_least32_t;
14989    #ifdef _UINT64_T
14990    typedef uint64_t   uint_least64_t;
14991    #endif
14992EOF
14993fi
14994
14995# ------------- done intptr types, emit int_fast types ------------
14996if test "$ac_cv_type_int_fast32_t" != yes; then
14997      sed 's/^ *//' >> tmp-stdint.h <<EOF
14998
14999    /* Define int_fast types.  short is often slow */
15000    typedef int8_t       int_fast8_t;
15001    typedef int          int_fast16_t;
15002    typedef int32_t      int_fast32_t;
15003    #ifdef _INT64_T
15004    typedef int64_t      int_fast64_t;
15005    #endif
15006
15007    typedef uint8_t      uint_fast8_t;
15008    typedef unsigned int uint_fast16_t;
15009    typedef uint32_t     uint_fast32_t;
15010    #ifdef _UINT64_T
15011    typedef uint64_t     uint_fast64_t;
15012    #endif
15013EOF
15014fi
15015
15016if test "$ac_cv_type_uintmax_t" != yes; then
15017  sed 's/^ *//' >> tmp-stdint.h <<EOF
15018
15019    /* Define intmax based on what we found */
15020    #ifndef intmax_t
15021    #ifdef _INT64_T
15022    typedef int64_t       intmax_t;
15023    #else
15024    typedef long          intmax_t;
15025    #endif
15026    #endif
15027    #ifndef uintmax_t
15028    #ifdef _UINT64_T
15029    typedef uint64_t      uintmax_t;
15030    #else
15031    typedef unsigned long uintmax_t;
15032    #endif
15033    #endif
15034EOF
15035fi
15036
15037sed 's/^ *//' >> tmp-stdint.h <<EOF
15038
15039  #endif /* GCC_GENERATED_STDINT_H */
15040EOF
15041
15042if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
15043  rm -f tmp-stdint.h
15044else
15045  mv -f tmp-stdint.h gstdint.h
15046fi
15047
15048 ;;
15049    "default":C) if test -n "$CONFIG_FILES"; then
15050   if test -n "${with_target_subdir}"; then
15051     # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15052     # that multilib installs will end up installed in the correct place.
15053     # The testsuite needs it for multilib-aware ABI baseline files.
15054     # To work around this not being passed down from config-ml.in ->
15055     # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
15056     # append it here.  Only modify Makefiles that have just been created.
15057     #
15058     # Also, get rid of this simulated-VPATH thing that automake does.
15059     cat > vpsed << \_EOF
15060  s!`test -f '$<' || echo '$(srcdir)/'`!!
15061_EOF
15062     for i in $SUBDIRS; do
15063      case $CONFIG_FILES in
15064       *${i}/Makefile*)
15065	 #echo "Adding MULTISUBDIR to $i/Makefile"
15066	 sed -f vpsed $i/Makefile > tmp
15067	 grep '^MULTISUBDIR =' Makefile >> tmp
15068	 mv tmp $i/Makefile
15069	 ;;
15070      esac
15071     done
15072     rm vpsed
15073   fi
15074 fi
15075 ;;
15076
15077  esac
15078done # for ac_tag
15079
15080
15081as_fn_exit 0
15082_ACEOF
15083ac_clean_files=$ac_clean_files_save
15084
15085test $ac_write_fail = 0 ||
15086  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15087
15088
15089# configure is writing to config.log, and then calls config.status.
15090# config.status does its own redirection, appending to config.log.
15091# Unfortunately, on DOS this fails, as config.log is still kept open
15092# by configure, so config.status won't be able to write to it; its
15093# output is simply discarded.  So we exec the FD to /dev/null,
15094# effectively closing config.log, so it can be properly (re)opened and
15095# appended to by config.status.  When coming back to configure, we
15096# need to make the FD available again.
15097if test "$no_create" != yes; then
15098  ac_cs_success=:
15099  ac_config_status_args=
15100  test "$silent" = yes &&
15101    ac_config_status_args="$ac_config_status_args --quiet"
15102  exec 5>/dev/null
15103  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15104  exec 5>>config.log
15105  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15106  # would make configure fail if this is the last instruction.
15107  $ac_cs_success || as_fn_exit $?
15108fi
15109if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15110  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15111$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15112fi
15113
15114