xref: /freebsd/contrib/sqlite3/configure (revision 0a36787e4c1fa0cf77dcf83be0867178476e372b)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.35.5.
4#
5# Report bugs to <http://www.sqlite.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.sqlite.org about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='sqlite'
592PACKAGE_TARNAME='sqlite'
593PACKAGE_VERSION='3.35.5'
594PACKAGE_STRING='sqlite 3.35.5'
595PACKAGE_BUGREPORT='http://www.sqlite.org'
596PACKAGE_URL=''
597
598ac_unique_file="sqlite3.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639SHELL_CFLAGS
640EXTRA_SHELL_OBJ
641READLINE_LIBS
642BUILD_CFLAGS
643CPP
644LT_SYS_LIBRARY_PATH
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
650MANIFEST_TOOL
651RANLIB
652ac_ct_AR
653AR
654DLLTOOL
655OBJDUMP
656LN_S
657NM
658ac_ct_DUMPBIN
659DUMPBIN
660LD
661FGREP
662EGREP
663GREP
664SED
665host_os
666host_vendor
667host_cpu
668host
669build_os
670build_vendor
671build_cpu
672build
673LIBTOOL
674am__fastdepCC_FALSE
675am__fastdepCC_TRUE
676CCDEPMODE
677am__nodep
678AMDEPBACKSLASH
679AMDEP_FALSE
680AMDEP_TRUE
681am__quote
682am__include
683DEPDIR
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
691AM_BACKSLASH
692AM_DEFAULT_VERBOSITY
693AM_DEFAULT_V
694AM_V
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_alias
719host_alias
720build_alias
721LIBS
722ECHO_T
723ECHO_N
724ECHO_C
725DEFS
726mandir
727localedir
728libdir
729psdir
730pdfdir
731dvidir
732htmldir
733infodir
734docdir
735oldincludedir
736includedir
737runstatedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
749PACKAGE_URL
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
757ac_subst_files=''
758ac_user_opts='
759enable_option_checking
760enable_silent_rules
761enable_largefile
762enable_dependency_tracking
763enable_shared
764enable_static
765with_pic
766enable_fast_install
767with_aix_soname
768with_gnu_ld
769with_sysroot
770enable_libtool_lock
771enable_editline
772enable_readline
773enable_threadsafe
774enable_dynamic_extensions
775enable_math
776enable_fts4
777enable_fts3
778enable_fts5
779enable_json1
780enable_rtree
781enable_session
782enable_debug
783enable_static_shell
784'
785      ac_precious_vars='build_alias
786host_alias
787target_alias
788CC
789CFLAGS
790LDFLAGS
791LIBS
792CPPFLAGS
793LT_SYS_LIBRARY_PATH
794CPP'
795
796
797# Initialize some variables set by options.
798ac_init_help=
799ac_init_version=false
800ac_unrecognized_opts=
801ac_unrecognized_sep=
802# The variables have the same names as the options, with
803# dashes changed to underlines.
804cache_file=/dev/null
805exec_prefix=NONE
806no_create=
807no_recursion=
808prefix=NONE
809program_prefix=NONE
810program_suffix=NONE
811program_transform_name=s,x,x,
812silent=
813site=
814srcdir=
815verbose=
816x_includes=NONE
817x_libraries=NONE
818
819# Installation directory options.
820# These are left unexpanded so users can "make install exec_prefix=/foo"
821# and all the variables that are supposed to be based on exec_prefix
822# by default will actually change.
823# Use braces instead of parens because sh, perl, etc. also accept them.
824# (The list follows the same order as the GNU Coding Standards.)
825bindir='${exec_prefix}/bin'
826sbindir='${exec_prefix}/sbin'
827libexecdir='${exec_prefix}/libexec'
828datarootdir='${prefix}/share'
829datadir='${datarootdir}'
830sysconfdir='${prefix}/etc'
831sharedstatedir='${prefix}/com'
832localstatedir='${prefix}/var'
833runstatedir='${localstatedir}/run'
834includedir='${prefix}/include'
835oldincludedir='/usr/include'
836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837infodir='${datarootdir}/info'
838htmldir='${docdir}'
839dvidir='${docdir}'
840pdfdir='${docdir}'
841psdir='${docdir}'
842libdir='${exec_prefix}/lib'
843localedir='${datarootdir}/locale'
844mandir='${datarootdir}/man'
845
846ac_prev=
847ac_dashdash=
848for ac_option
849do
850  # If the previous option needs an argument, assign it.
851  if test -n "$ac_prev"; then
852    eval $ac_prev=\$ac_option
853    ac_prev=
854    continue
855  fi
856
857  case $ac_option in
858  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859  *=)   ac_optarg= ;;
860  *)    ac_optarg=yes ;;
861  esac
862
863  # Accept the important Cygnus configure options, so we can diagnose typos.
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: $ac_useropt"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939	 ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
1055  -program-transform-name | --program-transform-name \
1056  | --program-transform-nam | --program-transform-na \
1057  | --program-transform-n | --program-transform- \
1058  | --program-transform | --program-transfor \
1059  | --program-transfo | --program-transf \
1060  | --program-trans | --program-tran \
1061  | --progr-tra | --program-tr | --program-t)
1062    ac_prev=program_transform_name ;;
1063  -program-transform-name=* | --program-transform-name=* \
1064  | --program-transform-nam=* | --program-transform-na=* \
1065  | --program-transform-n=* | --program-transform-=* \
1066  | --program-transform=* | --program-transfor=* \
1067  | --program-transfo=* | --program-transf=* \
1068  | --program-trans=* | --program-tran=* \
1069  | --progr-tra=* | --program-tr=* | --program-t=*)
1070    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087  | --runstate | --runstat | --runsta | --runst | --runs \
1088  | --run | --ru | --r)
1089    ac_prev=runstatedir ;;
1090  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092  | --run=* | --ru=* | --r=*)
1093    runstatedir=$ac_optarg ;;
1094
1095  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096    ac_prev=sbindir ;;
1097  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098  | --sbi=* | --sb=*)
1099    sbindir=$ac_optarg ;;
1100
1101  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103  | --sharedst | --shareds | --shared | --share | --shar \
1104  | --sha | --sh)
1105    ac_prev=sharedstatedir ;;
1106  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109  | --sha=* | --sh=*)
1110    sharedstatedir=$ac_optarg ;;
1111
1112  -site | --site | --sit)
1113    ac_prev=site ;;
1114  -site=* | --site=* | --sit=*)
1115    site=$ac_optarg ;;
1116
1117  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118    ac_prev=srcdir ;;
1119  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120    srcdir=$ac_optarg ;;
1121
1122  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123  | --syscon | --sysco | --sysc | --sys | --sy)
1124    ac_prev=sysconfdir ;;
1125  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127    sysconfdir=$ac_optarg ;;
1128
1129  -target | --target | --targe | --targ | --tar | --ta | --t)
1130    ac_prev=target_alias ;;
1131  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132    target_alias=$ac_optarg ;;
1133
1134  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135    verbose=yes ;;
1136
1137  -version | --version | --versio | --versi | --vers | -V)
1138    ac_init_version=: ;;
1139
1140  -with-* | --with-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: $ac_useropt"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=\$ac_optarg ;;
1155
1156  -without-* | --without-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: $ac_useropt"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=no ;;
1171
1172  --x)
1173    # Obsolete; use --with-x.
1174    with_x=yes ;;
1175
1176  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177  | --x-incl | --x-inc | --x-in | --x-i)
1178    ac_prev=x_includes ;;
1179  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181    x_includes=$ac_optarg ;;
1182
1183  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185    ac_prev=x_libraries ;;
1186  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188    x_libraries=$ac_optarg ;;
1189
1190  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191Try \`$0 --help' for more information"
1192    ;;
1193
1194  *=*)
1195    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196    # Reject names that are not valid shell variable names.
1197    case $ac_envvar in #(
1198      '' | [0-9]* | *[!_$as_cr_alnum]* )
1199      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200    esac
1201    eval $ac_envvar=\$ac_optarg
1202    export $ac_envvar ;;
1203
1204  *)
1205    # FIXME: should be removed in autoconf 3.0.
1206    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210    ;;
1211
1212  esac
1213done
1214
1215if test -n "$ac_prev"; then
1216  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217  as_fn_error $? "missing argument to $ac_option"
1218fi
1219
1220if test -n "$ac_unrecognized_opts"; then
1221  case $enable_option_checking in
1222    no) ;;
1223    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225  esac
1226fi
1227
1228# Check all directory arguments for consistency.
1229for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230		datadir sysconfdir sharedstatedir localstatedir includedir \
1231		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232		libdir localedir mandir runstatedir
1233do
1234  eval ac_val=\$$ac_var
1235  # Remove trailing slashes.
1236  case $ac_val in
1237    */ )
1238      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239      eval $ac_var=\$ac_val;;
1240  esac
1241  # Be sure to have absolute directory names.
1242  case $ac_val in
1243    [\\/$]* | ?:[\\/]* )  continue;;
1244    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245  esac
1246  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247done
1248
1249# There might be people who depend on the old broken behavior: `$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258  if test "x$build_alias" = x; then
1259    cross_compiling=maybe
1260  elif test "x$build_alias" != "x$host_alias"; then
1261    cross_compiling=yes
1262  fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274  as_fn_error $? "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276  as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281  ac_srcdir_defaulted=yes
1282  # Try the directory containing this script, then the parent directory.
1283  ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286	 X"$as_myself" : 'X\(//\)$' \| \
1287	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288$as_echo X"$as_myself" |
1289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\/\)[^/].*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\).*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  s/.*/./; q'`
1306  srcdir=$ac_confdir
1307  if test ! -r "$srcdir/$ac_unique_file"; then
1308    srcdir=..
1309  fi
1310else
1311  ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320	pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323  srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_env_${ac_var}_value=\$${ac_var}
1334  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342  # Omit some internal or obsolete options to make the list less imposing.
1343  # This message is too long to be a string in the A/UX 3.1 sh.
1344  cat <<_ACEOF
1345\`configure' configures sqlite 3.35.5 to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355  -h, --help              display this help and exit
1356      --help=short        display options specific to this package
1357      --help=recursive    display the short help of all the included packages
1358  -V, --version           display version information and exit
1359  -q, --quiet, --silent   do not print \`checking ...' messages
1360      --cache-file=FILE   cache test results in FILE [disabled]
1361  -C, --config-cache      alias for \`--cache-file=config.cache'
1362  -n, --no-create         do not create output files
1363      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365Installation directories:
1366  --prefix=PREFIX         install architecture-independent files in PREFIX
1367                          [$ac_default_prefix]
1368  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                          [PREFIX]
1370
1371By default, \`make install' will install all the files in
1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374for instance \`--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379  --bindir=DIR            user executables [EPREFIX/bin]
1380  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of sqlite 3.35.5:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-silent-rules   less verbose build output (undo: "make V=1")
1425  --disable-silent-rules  verbose build output (undo: "make V=0")
1426  --disable-largefile     omit support for large files
1427  --enable-dependency-tracking
1428                          do not reject slow dependency extractors
1429  --disable-dependency-tracking
1430                          speeds up one-time build
1431  --enable-shared[=PKGS]  build shared libraries [default=yes]
1432  --enable-static[=PKGS]  build static libraries [default=yes]
1433  --enable-fast-install[=PKGS]
1434                          optimize for fast installation [default=yes]
1435  --disable-libtool-lock  avoid locking (might break parallel builds)
1436  --enable-editline       use BSD libedit
1437  --enable-readline       use readline
1438  --enable-threadsafe     build a thread-safe library [default=yes]
1439  --enable-dynamic-extensions
1440                          support loadable extensions [default=yes]
1441  --enable-math           SQL math functions [default=yes]
1442  --enable-fts4           include fts4 support [default=yes]
1443  --enable-fts3           include fts3 support [default=no]
1444  --enable-fts5           include fts5 support [default=yes]
1445  --enable-json1          include json1 support [default=yes]
1446  --enable-rtree          include rtree support [default=yes]
1447  --enable-session        enable the session extension [default=no]
1448  --enable-debug          build with debugging features enabled [default=no]
1449  --enable-static-shell   statically link libsqlite3 into shell tool
1450                          [default=yes]
1451
1452Optional Packages:
1453  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1456                          both]
1457  --with-aix-soname=aix|svr4|both
1458                          shared library versioning (aka "SONAME") variant to
1459                          provide on AIX, [default=aix].
1460  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1461  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1462                          compiler's sysroot if not specified).
1463
1464Some influential environment variables:
1465  CC          C compiler command
1466  CFLAGS      C compiler flags
1467  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468              nonstandard directory <lib dir>
1469  LIBS        libraries to pass to the linker, e.g. -l<library>
1470  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471              you have headers in a nonstandard directory <include dir>
1472  LT_SYS_LIBRARY_PATH
1473              User-defined run-time library search path.
1474  CPP         C preprocessor
1475
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
1479Report bugs to <http://www.sqlite.org>.
1480_ACEOF
1481ac_status=$?
1482fi
1483
1484if test "$ac_init_help" = "recursive"; then
1485  # If there are subdirs, report their specific --help.
1486  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487    test -d "$ac_dir" ||
1488      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489      continue
1490    ac_builddir=.
1491
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
1495  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496  # A ".." for each directory in $ac_dir_suffix.
1497  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498  case $ac_top_builddir_sub in
1499  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501  esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
1507
1508case $srcdir in
1509  .)  # We are building in place.
1510    ac_srcdir=.
1511    ac_top_srcdir=$ac_top_builddir_sub
1512    ac_abs_top_srcdir=$ac_pwd ;;
1513  [\\/]* | ?:[\\/]* )  # Absolute name.
1514    ac_srcdir=$srcdir$ac_dir_suffix;
1515    ac_top_srcdir=$srcdir
1516    ac_abs_top_srcdir=$srcdir ;;
1517  *) # Relative name.
1518    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519    ac_top_srcdir=$ac_top_build_prefix$srcdir
1520    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521esac
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524    cd "$ac_dir" || { ac_status=$?; continue; }
1525    # Check for guested configure.
1526    if test -f "$ac_srcdir/configure.gnu"; then
1527      echo &&
1528      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529    elif test -f "$ac_srcdir/configure"; then
1530      echo &&
1531      $SHELL "$ac_srcdir/configure" --help=recursive
1532    else
1533      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534    fi || ac_status=$?
1535    cd "$ac_pwd" || { ac_status=$?; break; }
1536  done
1537fi
1538
1539test -n "$ac_init_help" && exit $ac_status
1540if $ac_init_version; then
1541  cat <<\_ACEOF
1542sqlite configure 3.35.5
1543generated by GNU Autoconf 2.69
1544
1545Copyright (C) 2012 Free Software Foundation, Inc.
1546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
1548_ACEOF
1549  exit
1550fi
1551
1552## ------------------------ ##
1553## Autoconf initialization. ##
1554## ------------------------ ##
1555
1556# ac_fn_c_try_compile LINENO
1557# --------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_compile ()
1560{
1561  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562  rm -f conftest.$ac_objext
1563  if { { ac_try="$ac_compile"
1564case "(($ac_try" in
1565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566  *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570  (eval "$ac_compile") 2>conftest.err
1571  ac_status=$?
1572  if test -s conftest.err; then
1573    grep -v '^ *+' conftest.err >conftest.er1
1574    cat conftest.er1 >&5
1575    mv -f conftest.er1 conftest.err
1576  fi
1577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578  test $ac_status = 0; } && {
1579	 test -z "$ac_c_werror_flag" ||
1580	 test ! -s conftest.err
1581       } && test -s conftest.$ac_objext; then :
1582  ac_retval=0
1583else
1584  $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
1586
1587	ac_retval=1
1588fi
1589  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590  as_fn_set_status $ac_retval
1591
1592} # ac_fn_c_try_compile
1593
1594# ac_fn_c_try_link LINENO
1595# -----------------------
1596# Try to link conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_link ()
1598{
1599  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600  rm -f conftest.$ac_objext conftest$ac_exeext
1601  if { { ac_try="$ac_link"
1602case "(($ac_try" in
1603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604  *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608  (eval "$ac_link") 2>conftest.err
1609  ac_status=$?
1610  if test -s conftest.err; then
1611    grep -v '^ *+' conftest.err >conftest.er1
1612    cat conftest.er1 >&5
1613    mv -f conftest.er1 conftest.err
1614  fi
1615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616  test $ac_status = 0; } && {
1617	 test -z "$ac_c_werror_flag" ||
1618	 test ! -s conftest.err
1619       } && test -s conftest$ac_exeext && {
1620	 test "$cross_compiling" = yes ||
1621	 test -x conftest$ac_exeext
1622       }; then :
1623  ac_retval=0
1624else
1625  $as_echo "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5
1627
1628	ac_retval=1
1629fi
1630  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1631  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1632  # interfere with the next link command; also delete a directory that is
1633  # left behind by Apple's compiler.  We do this before executing the actions.
1634  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636  as_fn_set_status $ac_retval
1637
1638} # ac_fn_c_try_link
1639
1640# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641# -------------------------------------------------------
1642# Tests whether HEADER exists and can be compiled using the include files in
1643# INCLUDES, setting the cache variable VAR accordingly.
1644ac_fn_c_check_header_compile ()
1645{
1646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648$as_echo_n "checking for $2... " >&6; }
1649if eval \${$3+:} false; then :
1650  $as_echo_n "(cached) " >&6
1651else
1652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h.  */
1654$4
1655#include <$2>
1656_ACEOF
1657if ac_fn_c_try_compile "$LINENO"; then :
1658  eval "$3=yes"
1659else
1660  eval "$3=no"
1661fi
1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663fi
1664eval ac_res=\$$3
1665	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666$as_echo "$ac_res" >&6; }
1667  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
1669} # ac_fn_c_check_header_compile
1670
1671# ac_fn_c_try_cpp LINENO
1672# ----------------------
1673# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_cpp ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  if { { ac_try="$ac_cpp conftest.$ac_ext"
1678case "(($ac_try" in
1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680  *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1685  ac_status=$?
1686  if test -s conftest.err; then
1687    grep -v '^ *+' conftest.err >conftest.er1
1688    cat conftest.er1 >&5
1689    mv -f conftest.er1 conftest.err
1690  fi
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } > conftest.i && {
1693	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694	 test ! -s conftest.err
1695       }; then :
1696  ac_retval=0
1697else
1698  $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
1700
1701    ac_retval=1
1702fi
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704  as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_cpp
1707
1708# ac_fn_c_try_run LINENO
1709# ----------------------
1710# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711# that executables *can* be run.
1712ac_fn_c_try_run ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  if { { ac_try="$ac_link"
1716case "(($ac_try" in
1717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718  *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722  (eval "$ac_link") 2>&5
1723  ac_status=$?
1724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726  { { case "(($ac_try" in
1727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728  *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732  (eval "$ac_try") 2>&5
1733  ac_status=$?
1734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735  test $ac_status = 0; }; }; then :
1736  ac_retval=0
1737else
1738  $as_echo "$as_me: program exited with status $ac_status" >&5
1739       $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742       ac_retval=$ac_status
1743fi
1744  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746  as_fn_set_status $ac_retval
1747
1748} # ac_fn_c_try_run
1749
1750# ac_fn_c_check_func LINENO FUNC VAR
1751# ----------------------------------
1752# Tests whether FUNC exists, setting the cache variable VAR accordingly
1753ac_fn_c_check_func ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval \${$3+:} false; then :
1759  $as_echo_n "(cached) " >&6
1760else
1761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1765#define $2 innocuous_$2
1766
1767/* System header to define __stub macros and hopefully few prototypes,
1768    which can conflict with char $2 (); below.
1769    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770    <limits.h> exists even on freestanding compilers.  */
1771
1772#ifdef __STDC__
1773# include <limits.h>
1774#else
1775# include <assert.h>
1776#endif
1777
1778#undef $2
1779
1780/* Override any GCC internal prototype to avoid an error.
1781   Use char because int might match the return type of a GCC
1782   builtin and then its argument prototype would still apply.  */
1783#ifdef __cplusplus
1784extern "C"
1785#endif
1786char $2 ();
1787/* The GNU C library defines this for functions which it implements
1788    to always fail with ENOSYS.  Some functions are actually named
1789    something starting with __ and the normal name is an alias.  */
1790#if defined __stub_$2 || defined __stub___$2
1791choke me
1792#endif
1793
1794int
1795main ()
1796{
1797return $2 ();
1798  ;
1799  return 0;
1800}
1801_ACEOF
1802if ac_fn_c_try_link "$LINENO"; then :
1803  eval "$3=yes"
1804else
1805  eval "$3=no"
1806fi
1807rm -f core conftest.err conftest.$ac_objext \
1808    conftest$ac_exeext conftest.$ac_ext
1809fi
1810eval ac_res=\$$3
1811	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
1813  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
1815} # ac_fn_c_check_func
1816
1817# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1818# ---------------------------------------------
1819# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1820# accordingly.
1821ac_fn_c_check_decl ()
1822{
1823  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824  as_decl_name=`echo $2|sed 's/ *(.*//'`
1825  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1827$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1828if eval \${$3+:} false; then :
1829  $as_echo_n "(cached) " >&6
1830else
1831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833$4
1834int
1835main ()
1836{
1837#ifndef $as_decl_name
1838#ifdef __cplusplus
1839  (void) $as_decl_use;
1840#else
1841  (void) $as_decl_name;
1842#endif
1843#endif
1844
1845  ;
1846  return 0;
1847}
1848_ACEOF
1849if ac_fn_c_try_compile "$LINENO"; then :
1850  eval "$3=yes"
1851else
1852  eval "$3=no"
1853fi
1854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855fi
1856eval ac_res=\$$3
1857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861} # ac_fn_c_check_decl
1862
1863# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1864# -------------------------------------------------------
1865# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1866# the include files in INCLUDES and setting the cache variable VAR
1867# accordingly.
1868ac_fn_c_check_header_mongrel ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  if eval \${$3+:} false; then :
1872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873$as_echo_n "checking for $2... " >&6; }
1874if eval \${$3+:} false; then :
1875  $as_echo_n "(cached) " >&6
1876fi
1877eval ac_res=\$$3
1878	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879$as_echo "$ac_res" >&6; }
1880else
1881  # Is the header compilable?
1882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1883$as_echo_n "checking $2 usability... " >&6; }
1884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h.  */
1886$4
1887#include <$2>
1888_ACEOF
1889if ac_fn_c_try_compile "$LINENO"; then :
1890  ac_header_compiler=yes
1891else
1892  ac_header_compiler=no
1893fi
1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1896$as_echo "$ac_header_compiler" >&6; }
1897
1898# Is the header present?
1899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1900$as_echo_n "checking $2 presence... " >&6; }
1901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h.  */
1903#include <$2>
1904_ACEOF
1905if ac_fn_c_try_cpp "$LINENO"; then :
1906  ac_header_preproc=yes
1907else
1908  ac_header_preproc=no
1909fi
1910rm -f conftest.err conftest.i conftest.$ac_ext
1911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1912$as_echo "$ac_header_preproc" >&6; }
1913
1914# So?  What about this header?
1915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1916  yes:no: )
1917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1918$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921    ;;
1922  no:yes:* )
1923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1924$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1925    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1926$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1928$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1929    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1930$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933( $as_echo "## ------------------------------------ ##
1934## Report this to http://www.sqlite.org ##
1935## ------------------------------------ ##"
1936     ) | sed "s/^/$as_me: WARNING:     /" >&2
1937    ;;
1938esac
1939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940$as_echo_n "checking for $2... " >&6; }
1941if eval \${$3+:} false; then :
1942  $as_echo_n "(cached) " >&6
1943else
1944  eval "$3=\$ac_header_compiler"
1945fi
1946eval ac_res=\$$3
1947	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948$as_echo "$ac_res" >&6; }
1949fi
1950  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952} # ac_fn_c_check_header_mongrel
1953cat >config.log <<_ACEOF
1954This file contains any messages produced by compilers while
1955running configure, to aid debugging if configure makes a mistake.
1956
1957It was created by sqlite $as_me 3.35.5, which was
1958generated by GNU Autoconf 2.69.  Invocation command line was
1959
1960  $ $0 $@
1961
1962_ACEOF
1963exec 5>>config.log
1964{
1965cat <<_ASUNAME
1966## --------- ##
1967## Platform. ##
1968## --------- ##
1969
1970hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1971uname -m = `(uname -m) 2>/dev/null || echo unknown`
1972uname -r = `(uname -r) 2>/dev/null || echo unknown`
1973uname -s = `(uname -s) 2>/dev/null || echo unknown`
1974uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975
1976/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1977/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1978
1979/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1980/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1981/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1982/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1983/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1984/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1985/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1986
1987_ASUNAME
1988
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992  IFS=$as_save_IFS
1993  test -z "$as_dir" && as_dir=.
1994    $as_echo "PATH: $as_dir"
1995  done
1996IFS=$as_save_IFS
1997
1998} >&5
1999
2000cat >&5 <<_ACEOF
2001
2002
2003## ----------- ##
2004## Core tests. ##
2005## ----------- ##
2006
2007_ACEOF
2008
2009
2010# Keep a trace of the command line.
2011# Strip out --no-create and --no-recursion so they do not pile up.
2012# Strip out --silent because we don't want to record it for future runs.
2013# Also quote any args containing shell meta-characters.
2014# Make two passes to allow for proper duplicate-argument suppression.
2015ac_configure_args=
2016ac_configure_args0=
2017ac_configure_args1=
2018ac_must_keep_next=false
2019for ac_pass in 1 2
2020do
2021  for ac_arg
2022  do
2023    case $ac_arg in
2024    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2025    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2026    | -silent | --silent | --silen | --sile | --sil)
2027      continue ;;
2028    *\'*)
2029      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030    esac
2031    case $ac_pass in
2032    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033    2)
2034      as_fn_append ac_configure_args1 " '$ac_arg'"
2035      if test $ac_must_keep_next = true; then
2036	ac_must_keep_next=false # Got value, back to normal.
2037      else
2038	case $ac_arg in
2039	  *=* | --config-cache | -C | -disable-* | --disable-* \
2040	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2041	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2042	  | -with-* | --with-* | -without-* | --without-* | --x)
2043	    case "$ac_configure_args0 " in
2044	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2045	    esac
2046	    ;;
2047	  -* ) ac_must_keep_next=true ;;
2048	esac
2049      fi
2050      as_fn_append ac_configure_args " '$ac_arg'"
2051      ;;
2052    esac
2053  done
2054done
2055{ ac_configure_args0=; unset ac_configure_args0;}
2056{ ac_configure_args1=; unset ac_configure_args1;}
2057
2058# When interrupted or exit'd, cleanup temporary files, and complete
2059# config.log.  We remove comments because anyway the quotes in there
2060# would cause problems or look ugly.
2061# WARNING: Use '\'' to represent an apostrophe within the trap.
2062# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2063trap 'exit_status=$?
2064  # Save into config.log some information that might help in debugging.
2065  {
2066    echo
2067
2068    $as_echo "## ---------------- ##
2069## Cache variables. ##
2070## ---------------- ##"
2071    echo
2072    # The following way of writing the cache mishandles newlines in values,
2073(
2074  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2075    eval ac_val=\$$ac_var
2076    case $ac_val in #(
2077    *${as_nl}*)
2078      case $ac_var in #(
2079      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2080$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2081      esac
2082      case $ac_var in #(
2083      _ | IFS | as_nl) ;; #(
2084      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2085      *) { eval $ac_var=; unset $ac_var;} ;;
2086      esac ;;
2087    esac
2088  done
2089  (set) 2>&1 |
2090    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2091    *${as_nl}ac_space=\ *)
2092      sed -n \
2093	"s/'\''/'\''\\\\'\'''\''/g;
2094	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2095      ;; #(
2096    *)
2097      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2098      ;;
2099    esac |
2100    sort
2101)
2102    echo
2103
2104    $as_echo "## ----------------- ##
2105## Output variables. ##
2106## ----------------- ##"
2107    echo
2108    for ac_var in $ac_subst_vars
2109    do
2110      eval ac_val=\$$ac_var
2111      case $ac_val in
2112      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113      esac
2114      $as_echo "$ac_var='\''$ac_val'\''"
2115    done | sort
2116    echo
2117
2118    if test -n "$ac_subst_files"; then
2119      $as_echo "## ------------------- ##
2120## File substitutions. ##
2121## ------------------- ##"
2122      echo
2123      for ac_var in $ac_subst_files
2124      do
2125	eval ac_val=\$$ac_var
2126	case $ac_val in
2127	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128	esac
2129	$as_echo "$ac_var='\''$ac_val'\''"
2130      done | sort
2131      echo
2132    fi
2133
2134    if test -s confdefs.h; then
2135      $as_echo "## ----------- ##
2136## confdefs.h. ##
2137## ----------- ##"
2138      echo
2139      cat confdefs.h
2140      echo
2141    fi
2142    test "$ac_signal" != 0 &&
2143      $as_echo "$as_me: caught signal $ac_signal"
2144    $as_echo "$as_me: exit $exit_status"
2145  } >&5
2146  rm -f core *.core core.conftest.* &&
2147    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2148    exit $exit_status
2149' 0
2150for ac_signal in 1 2 13 15; do
2151  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2152done
2153ac_signal=0
2154
2155# confdefs.h avoids OS command line length limits that DEFS can exceed.
2156rm -f -r conftest* confdefs.h
2157
2158$as_echo "/* confdefs.h */" > confdefs.h
2159
2160# Predefined preprocessor variables.
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_NAME "$PACKAGE_NAME"
2164_ACEOF
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2168_ACEOF
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_VERSION "$PACKAGE_VERSION"
2172_ACEOF
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_STRING "$PACKAGE_STRING"
2176_ACEOF
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2180_ACEOF
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_URL "$PACKAGE_URL"
2184_ACEOF
2185
2186
2187# Let the site file select an alternate cache file if it wants to.
2188# Prefer an explicitly selected file to automatically selected ones.
2189ac_site_file1=NONE
2190ac_site_file2=NONE
2191if test -n "$CONFIG_SITE"; then
2192  # We do not want a PATH search for config.site.
2193  case $CONFIG_SITE in #((
2194    -*)  ac_site_file1=./$CONFIG_SITE;;
2195    */*) ac_site_file1=$CONFIG_SITE;;
2196    *)   ac_site_file1=./$CONFIG_SITE;;
2197  esac
2198elif test "x$prefix" != xNONE; then
2199  ac_site_file1=$prefix/share/config.site
2200  ac_site_file2=$prefix/etc/config.site
2201else
2202  ac_site_file1=$ac_default_prefix/share/config.site
2203  ac_site_file2=$ac_default_prefix/etc/config.site
2204fi
2205for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2206do
2207  test "x$ac_site_file" = xNONE && continue
2208  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2209    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2210$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2211    sed 's/^/| /' "$ac_site_file" >&5
2212    . "$ac_site_file" \
2213      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215as_fn_error $? "failed to load site script $ac_site_file
2216See \`config.log' for more details" "$LINENO" 5; }
2217  fi
2218done
2219
2220if test -r "$cache_file"; then
2221  # Some versions of bash will fail to source /dev/null (special files
2222  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2223  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2224    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2225$as_echo "$as_me: loading cache $cache_file" >&6;}
2226    case $cache_file in
2227      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2228      *)                      . "./$cache_file";;
2229    esac
2230  fi
2231else
2232  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2233$as_echo "$as_me: creating cache $cache_file" >&6;}
2234  >$cache_file
2235fi
2236
2237# Check that the precious variables saved in the cache have kept the same
2238# value.
2239ac_cache_corrupted=false
2240for ac_var in $ac_precious_vars; do
2241  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2242  eval ac_new_set=\$ac_env_${ac_var}_set
2243  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2244  eval ac_new_val=\$ac_env_${ac_var}_value
2245  case $ac_old_set,$ac_new_set in
2246    set,)
2247      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2248$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2249      ac_cache_corrupted=: ;;
2250    ,set)
2251      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2252$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2253      ac_cache_corrupted=: ;;
2254    ,);;
2255    *)
2256      if test "x$ac_old_val" != "x$ac_new_val"; then
2257	# differences in whitespace do not lead to failure.
2258	ac_old_val_w=`echo x $ac_old_val`
2259	ac_new_val_w=`echo x $ac_new_val`
2260	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2261	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2262$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2263	  ac_cache_corrupted=:
2264	else
2265	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2266$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2267	  eval $ac_var=\$ac_old_val
2268	fi
2269	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2270$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2271	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2272$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2273      fi;;
2274  esac
2275  # Pass precious variables to config.status.
2276  if test "$ac_new_set" = set; then
2277    case $ac_new_val in
2278    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2279    *) ac_arg=$ac_var=$ac_new_val ;;
2280    esac
2281    case " $ac_configure_args " in
2282      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2283      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2284    esac
2285  fi
2286done
2287if $ac_cache_corrupted; then
2288  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2291$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2292  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293fi
2294## -------------------- ##
2295## Main body of script. ##
2296## -------------------- ##
2297
2298ac_ext=c
2299ac_cpp='$CPP $CPPFLAGS'
2300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303
2304
2305
2306ac_aux_dir=
2307for ac_dir in . "$srcdir"/.; do
2308  if test -f "$ac_dir/install-sh"; then
2309    ac_aux_dir=$ac_dir
2310    ac_install_sh="$ac_aux_dir/install-sh -c"
2311    break
2312  elif test -f "$ac_dir/install.sh"; then
2313    ac_aux_dir=$ac_dir
2314    ac_install_sh="$ac_aux_dir/install.sh -c"
2315    break
2316  elif test -f "$ac_dir/shtool"; then
2317    ac_aux_dir=$ac_dir
2318    ac_install_sh="$ac_aux_dir/shtool install -c"
2319    break
2320  fi
2321done
2322if test -z "$ac_aux_dir"; then
2323  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2324fi
2325
2326# These three variables are undocumented and unsupported,
2327# and are intended to be withdrawn in a future Autoconf release.
2328# They can cause serious problems if a builder's source tree is in a directory
2329# whose full name contains unusual characters.
2330ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2331ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2332ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2333
2334
2335
2336# Use automake.
2337am__api_version='1.15'
2338
2339# Find a good install program.  We prefer a C program (faster),
2340# so one script is as good as another.  But avoid the broken or
2341# incompatible versions:
2342# SysV /etc/install, /usr/sbin/install
2343# SunOS /usr/etc/install
2344# IRIX /sbin/install
2345# AIX /bin/install
2346# AmigaOS /C/install, which installs bootblocks on floppy discs
2347# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2348# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2349# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2350# OS/2's system install, which has a completely different semantic
2351# ./install, which can be erroneously created by make from ./install.sh.
2352# Reject install programs that cannot install multiple files.
2353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2354$as_echo_n "checking for a BSD-compatible install... " >&6; }
2355if test -z "$INSTALL"; then
2356if ${ac_cv_path_install+:} false; then :
2357  $as_echo_n "(cached) " >&6
2358else
2359  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362  IFS=$as_save_IFS
2363  test -z "$as_dir" && as_dir=.
2364    # Account for people who put trailing slashes in PATH elements.
2365case $as_dir/ in #((
2366  ./ | .// | /[cC]/* | \
2367  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2368  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2369  /usr/ucb/* ) ;;
2370  *)
2371    # OSF1 and SCO ODT 3.0 have their own names for install.
2372    # Don't use installbsd from OSF since it installs stuff as root
2373    # by default.
2374    for ac_prog in ginstall scoinst install; do
2375      for ac_exec_ext in '' $ac_executable_extensions; do
2376	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2377	  if test $ac_prog = install &&
2378	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2379	    # AIX install.  It has an incompatible calling convention.
2380	    :
2381	  elif test $ac_prog = install &&
2382	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383	    # program-specific install script used by HP pwplus--don't use.
2384	    :
2385	  else
2386	    rm -rf conftest.one conftest.two conftest.dir
2387	    echo one > conftest.one
2388	    echo two > conftest.two
2389	    mkdir conftest.dir
2390	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2391	      test -s conftest.one && test -s conftest.two &&
2392	      test -s conftest.dir/conftest.one &&
2393	      test -s conftest.dir/conftest.two
2394	    then
2395	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2396	      break 3
2397	    fi
2398	  fi
2399	fi
2400      done
2401    done
2402    ;;
2403esac
2404
2405  done
2406IFS=$as_save_IFS
2407
2408rm -rf conftest.one conftest.two conftest.dir
2409
2410fi
2411  if test "${ac_cv_path_install+set}" = set; then
2412    INSTALL=$ac_cv_path_install
2413  else
2414    # As a last resort, use the slow shell script.  Don't cache a
2415    # value for INSTALL within a source directory, because that will
2416    # break other packages using the cache if that directory is
2417    # removed, or if the value is a relative name.
2418    INSTALL=$ac_install_sh
2419  fi
2420fi
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2422$as_echo "$INSTALL" >&6; }
2423
2424# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2425# It thinks the first close brace ends the variable substitution.
2426test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2427
2428test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2429
2430test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2431
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2433$as_echo_n "checking whether build environment is sane... " >&6; }
2434# Reject unsafe characters in $srcdir or the absolute working directory
2435# name.  Accept space and tab only in the latter.
2436am_lf='
2437'
2438case `pwd` in
2439  *[\\\"\#\$\&\'\`$am_lf]*)
2440    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2441esac
2442case $srcdir in
2443  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2444    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2445esac
2446
2447# Do 'set' in a subshell so we don't clobber the current shell's
2448# arguments.  Must try -L first in case configure is actually a
2449# symlink; some systems play weird games with the mod time of symlinks
2450# (eg FreeBSD returns the mod time of the symlink's containing
2451# directory).
2452if (
2453   am_has_slept=no
2454   for am_try in 1 2; do
2455     echo "timestamp, slept: $am_has_slept" > conftest.file
2456     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2457     if test "$*" = "X"; then
2458	# -L didn't work.
2459	set X `ls -t "$srcdir/configure" conftest.file`
2460     fi
2461     if test "$*" != "X $srcdir/configure conftest.file" \
2462	&& test "$*" != "X conftest.file $srcdir/configure"; then
2463
2464	# If neither matched, then we have a broken ls.  This can happen
2465	# if, for instance, CONFIG_SHELL is bash and it inherits a
2466	# broken ls alias from the environment.  This has actually
2467	# happened.  Such a system could not be considered "sane".
2468	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2469  alias in your environment" "$LINENO" 5
2470     fi
2471     if test "$2" = conftest.file || test $am_try -eq 2; then
2472       break
2473     fi
2474     # Just in case.
2475     sleep 1
2476     am_has_slept=yes
2477   done
2478   test "$2" = conftest.file
2479   )
2480then
2481   # Ok.
2482   :
2483else
2484   as_fn_error $? "newly created file is older than distributed files!
2485Check your system clock" "$LINENO" 5
2486fi
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2488$as_echo "yes" >&6; }
2489# If we didn't sleep, we still need to ensure time stamps of config.status and
2490# generated files are strictly newer.
2491am_sleep_pid=
2492if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2493  ( sleep 1 ) &
2494  am_sleep_pid=$!
2495fi
2496
2497rm -f conftest.file
2498
2499test "$program_prefix" != NONE &&
2500  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2501# Use a double $ so make ignores it.
2502test "$program_suffix" != NONE &&
2503  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2504# Double any \ or $.
2505# By default was `s,x,x', remove it if useless.
2506ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2507program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2508
2509# Expand $ac_aux_dir to an absolute path.
2510am_aux_dir=`cd "$ac_aux_dir" && pwd`
2511
2512if test x"${MISSING+set}" != xset; then
2513  case $am_aux_dir in
2514  *\ * | *\	*)
2515    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2516  *)
2517    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2518  esac
2519fi
2520# Use eval to expand $SHELL
2521if eval "$MISSING --is-lightweight"; then
2522  am_missing_run="$MISSING "
2523else
2524  am_missing_run=
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2526$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2527fi
2528
2529if test x"${install_sh+set}" != xset; then
2530  case $am_aux_dir in
2531  *\ * | *\	*)
2532    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2533  *)
2534    install_sh="\${SHELL} $am_aux_dir/install-sh"
2535  esac
2536fi
2537
2538# Installed binaries are usually stripped using 'strip' when the user
2539# run "make install-strip".  However 'strip' might not be the right
2540# tool to use in cross-compilation environments, therefore Automake
2541# will honor the 'STRIP' environment variable to overrule this program.
2542if test "$cross_compiling" != no; then
2543  if test -n "$ac_tool_prefix"; then
2544  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2545set dummy ${ac_tool_prefix}strip; ac_word=$2
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547$as_echo_n "checking for $ac_word... " >&6; }
2548if ${ac_cv_prog_STRIP+:} false; then :
2549  $as_echo_n "(cached) " >&6
2550else
2551  if test -n "$STRIP"; then
2552  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2553else
2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH
2556do
2557  IFS=$as_save_IFS
2558  test -z "$as_dir" && as_dir=.
2559    for ac_exec_ext in '' $ac_executable_extensions; do
2560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563    break 2
2564  fi
2565done
2566  done
2567IFS=$as_save_IFS
2568
2569fi
2570fi
2571STRIP=$ac_cv_prog_STRIP
2572if test -n "$STRIP"; then
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2574$as_echo "$STRIP" >&6; }
2575else
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577$as_echo "no" >&6; }
2578fi
2579
2580
2581fi
2582if test -z "$ac_cv_prog_STRIP"; then
2583  ac_ct_STRIP=$STRIP
2584  # Extract the first word of "strip", so it can be a program name with args.
2585set dummy strip; ac_word=$2
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587$as_echo_n "checking for $ac_word... " >&6; }
2588if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2589  $as_echo_n "(cached) " >&6
2590else
2591  if test -n "$ac_ct_STRIP"; then
2592  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597  IFS=$as_save_IFS
2598  test -z "$as_dir" && as_dir=.
2599    for ac_exec_ext in '' $ac_executable_extensions; do
2600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601    ac_cv_prog_ac_ct_STRIP="strip"
2602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603    break 2
2604  fi
2605done
2606  done
2607IFS=$as_save_IFS
2608
2609fi
2610fi
2611ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2612if test -n "$ac_ct_STRIP"; then
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2614$as_echo "$ac_ct_STRIP" >&6; }
2615else
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617$as_echo "no" >&6; }
2618fi
2619
2620  if test "x$ac_ct_STRIP" = x; then
2621    STRIP=":"
2622  else
2623    case $cross_compiling:$ac_tool_warned in
2624yes:)
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2627ac_tool_warned=yes ;;
2628esac
2629    STRIP=$ac_ct_STRIP
2630  fi
2631else
2632  STRIP="$ac_cv_prog_STRIP"
2633fi
2634
2635fi
2636INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2637
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2639$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2640if test -z "$MKDIR_P"; then
2641  if ${ac_cv_path_mkdir+:} false; then :
2642  $as_echo_n "(cached) " >&6
2643else
2644  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2646do
2647  IFS=$as_save_IFS
2648  test -z "$as_dir" && as_dir=.
2649    for ac_prog in mkdir gmkdir; do
2650	 for ac_exec_ext in '' $ac_executable_extensions; do
2651	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2652	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2653	     'mkdir (GNU coreutils) '* | \
2654	     'mkdir (coreutils) '* | \
2655	     'mkdir (fileutils) '4.1*)
2656	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2657	       break 3;;
2658	   esac
2659	 done
2660       done
2661  done
2662IFS=$as_save_IFS
2663
2664fi
2665
2666  test -d ./--version && rmdir ./--version
2667  if test "${ac_cv_path_mkdir+set}" = set; then
2668    MKDIR_P="$ac_cv_path_mkdir -p"
2669  else
2670    # As a last resort, use the slow shell script.  Don't cache a
2671    # value for MKDIR_P within a source directory, because that will
2672    # break other packages using the cache if that directory is
2673    # removed, or if the value is a relative name.
2674    MKDIR_P="$ac_install_sh -d"
2675  fi
2676fi
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2678$as_echo "$MKDIR_P" >&6; }
2679
2680for ac_prog in gawk mawk nawk awk
2681do
2682  # Extract the first word of "$ac_prog", so it can be a program name with args.
2683set dummy $ac_prog; ac_word=$2
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
2686if ${ac_cv_prog_AWK+:} false; then :
2687  $as_echo_n "(cached) " >&6
2688else
2689  if test -n "$AWK"; then
2690  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695  IFS=$as_save_IFS
2696  test -z "$as_dir" && as_dir=.
2697    for ac_exec_ext in '' $ac_executable_extensions; do
2698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699    ac_cv_prog_AWK="$ac_prog"
2700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701    break 2
2702  fi
2703done
2704  done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709AWK=$ac_cv_prog_AWK
2710if test -n "$AWK"; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2712$as_echo "$AWK" >&6; }
2713else
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718
2719  test -n "$AWK" && break
2720done
2721
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2723$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2724set x ${MAKE-make}
2725ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2726if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2727  $as_echo_n "(cached) " >&6
2728else
2729  cat >conftest.make <<\_ACEOF
2730SHELL = /bin/sh
2731all:
2732	@echo '@@@%%%=$(MAKE)=@@@%%%'
2733_ACEOF
2734# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2735case `${MAKE-make} -f conftest.make 2>/dev/null` in
2736  *@@@%%%=?*=@@@%%%*)
2737    eval ac_cv_prog_make_${ac_make}_set=yes;;
2738  *)
2739    eval ac_cv_prog_make_${ac_make}_set=no;;
2740esac
2741rm -f conftest.make
2742fi
2743if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745$as_echo "yes" >&6; }
2746  SET_MAKE=
2747else
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750  SET_MAKE="MAKE=${MAKE-make}"
2751fi
2752
2753rm -rf .tst 2>/dev/null
2754mkdir .tst 2>/dev/null
2755if test -d .tst; then
2756  am__leading_dot=.
2757else
2758  am__leading_dot=_
2759fi
2760rmdir .tst 2>/dev/null
2761
2762# Check whether --enable-silent-rules was given.
2763if test "${enable_silent_rules+set}" = set; then :
2764  enableval=$enable_silent_rules;
2765fi
2766
2767case $enable_silent_rules in # (((
2768  yes) AM_DEFAULT_VERBOSITY=0;;
2769   no) AM_DEFAULT_VERBOSITY=1;;
2770    *) AM_DEFAULT_VERBOSITY=1;;
2771esac
2772am_make=${MAKE-make}
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2774$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2775if ${am_cv_make_support_nested_variables+:} false; then :
2776  $as_echo_n "(cached) " >&6
2777else
2778  if $as_echo 'TRUE=$(BAR$(V))
2779BAR0=false
2780BAR1=true
2781V=1
2782am__doit:
2783	@$(TRUE)
2784.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2785  am_cv_make_support_nested_variables=yes
2786else
2787  am_cv_make_support_nested_variables=no
2788fi
2789fi
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2791$as_echo "$am_cv_make_support_nested_variables" >&6; }
2792if test $am_cv_make_support_nested_variables = yes; then
2793    AM_V='$(V)'
2794  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2795else
2796  AM_V=$AM_DEFAULT_VERBOSITY
2797  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2798fi
2799AM_BACKSLASH='\'
2800
2801if test "`cd $srcdir && pwd`" != "`pwd`"; then
2802  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2803  # is not polluted with repeated "-I."
2804  am__isrc=' -I$(srcdir)'
2805  # test to see if srcdir already configured
2806  if test -f $srcdir/config.status; then
2807    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2808  fi
2809fi
2810
2811# test whether we have cygpath
2812if test -z "$CYGPATH_W"; then
2813  if (cygpath --version) >/dev/null 2>/dev/null; then
2814    CYGPATH_W='cygpath -w'
2815  else
2816    CYGPATH_W=echo
2817  fi
2818fi
2819
2820
2821# Define the identity of the package.
2822 PACKAGE='sqlite'
2823 VERSION='3.35.5'
2824
2825
2826cat >>confdefs.h <<_ACEOF
2827#define PACKAGE "$PACKAGE"
2828_ACEOF
2829
2830
2831cat >>confdefs.h <<_ACEOF
2832#define VERSION "$VERSION"
2833_ACEOF
2834
2835# Some tools Automake needs.
2836
2837ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2838
2839
2840AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2841
2842
2843AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2844
2845
2846AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2847
2848
2849MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2850
2851# For better backward compatibility.  To be removed once Automake 1.9.x
2852# dies out for good.  For more background, see:
2853# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2854# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2855mkdir_p='$(MKDIR_P)'
2856
2857# We need awk for the "check" target (and possibly the TAP driver).  The
2858# system "awk" is bad on some platforms.
2859# Always define AMTAR for backward compatibility.  Yes, it's still used
2860# in the wild :-(  We should find a proper way to deprecate it ...
2861AMTAR='$${TAR-tar}'
2862
2863
2864# We'll loop over all known methods to create a tar archive until one works.
2865_am_tools='gnutar  pax cpio none'
2866
2867am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2868
2869
2870
2871
2872
2873
2874# POSIX will say in a future version that running "rm -f" with no argument
2875# is OK; and we want to be able to make that assumption in our Makefile
2876# recipes.  So use an aggressive probe to check that the usage we want is
2877# actually supported "in the wild" to an acceptable degree.
2878# See automake bug#10828.
2879# To make any issue more visible, cause the running configure to be aborted
2880# by default if the 'rm' program in use doesn't match our expectations; the
2881# user can still override this though.
2882if rm -f && rm -fr && rm -rf; then : OK; else
2883  cat >&2 <<'END'
2884Oops!
2885
2886Your 'rm' program seems unable to run without file operands specified
2887on the command line, even when the '-f' option is present.  This is contrary
2888to the behaviour of most rm programs out there, and not conforming with
2889the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2890
2891Please tell bug-automake@gnu.org about your system, including the value
2892of your $PATH and any error possibly output before this message.  This
2893can help us improve future automake versions.
2894
2895END
2896  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2897    echo 'Configuration will proceed anyway, since you have set the' >&2
2898    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2899    echo >&2
2900  else
2901    cat >&2 <<'END'
2902Aborting the configuration process, to ensure you take notice of the issue.
2903
2904You can download and install GNU coreutils to get an 'rm' implementation
2905that behaves properly: <http://www.gnu.org/software/coreutils/>.
2906
2907If you want to complete the configuration process using your problematic
2908'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2909to "yes", and re-run configure.
2910
2911END
2912    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2913  fi
2914fi
2915
2916
2917DEPDIR="${am__leading_dot}deps"
2918
2919ac_config_commands="$ac_config_commands depfiles"
2920
2921
2922am_make=${MAKE-make}
2923cat > confinc << 'END'
2924am__doit:
2925	@echo this is the am__doit target
2926.PHONY: am__doit
2927END
2928# If we don't find an include directive, just comment out the code.
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2930$as_echo_n "checking for style of include used by $am_make... " >&6; }
2931am__include="#"
2932am__quote=
2933_am_result=none
2934# First try GNU make style include.
2935echo "include confinc" > confmf
2936# Ignore all kinds of additional output from 'make'.
2937case `$am_make -s -f confmf 2> /dev/null` in #(
2938*the\ am__doit\ target*)
2939  am__include=include
2940  am__quote=
2941  _am_result=GNU
2942  ;;
2943esac
2944# Now try BSD make style include.
2945if test "$am__include" = "#"; then
2946   echo '.include "confinc"' > confmf
2947   case `$am_make -s -f confmf 2> /dev/null` in #(
2948   *the\ am__doit\ target*)
2949     am__include=.include
2950     am__quote="\""
2951     _am_result=BSD
2952     ;;
2953   esac
2954fi
2955
2956
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2958$as_echo "$_am_result" >&6; }
2959rm -f confinc confmf
2960
2961# Check whether --enable-dependency-tracking was given.
2962if test "${enable_dependency_tracking+set}" = set; then :
2963  enableval=$enable_dependency_tracking;
2964fi
2965
2966if test "x$enable_dependency_tracking" != xno; then
2967  am_depcomp="$ac_aux_dir/depcomp"
2968  AMDEPBACKSLASH='\'
2969  am__nodep='_no'
2970fi
2971 if test "x$enable_dependency_tracking" != xno; then
2972  AMDEP_TRUE=
2973  AMDEP_FALSE='#'
2974else
2975  AMDEP_TRUE='#'
2976  AMDEP_FALSE=
2977fi
2978
2979
2980ac_ext=c
2981ac_cpp='$CPP $CPPFLAGS'
2982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985if test -n "$ac_tool_prefix"; then
2986  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2987set dummy ${ac_tool_prefix}gcc; ac_word=$2
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989$as_echo_n "checking for $ac_word... " >&6; }
2990if ${ac_cv_prog_CC+:} false; then :
2991  $as_echo_n "(cached) " >&6
2992else
2993  if test -n "$CC"; then
2994  ac_cv_prog_CC="$CC" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999  IFS=$as_save_IFS
3000  test -z "$as_dir" && as_dir=.
3001    for ac_exec_ext in '' $ac_executable_extensions; do
3002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005    break 2
3006  fi
3007done
3008  done
3009IFS=$as_save_IFS
3010
3011fi
3012fi
3013CC=$ac_cv_prog_CC
3014if test -n "$CC"; then
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016$as_echo "$CC" >&6; }
3017else
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
3020fi
3021
3022
3023fi
3024if test -z "$ac_cv_prog_CC"; then
3025  ac_ct_CC=$CC
3026  # Extract the first word of "gcc", so it can be a program name with args.
3027set dummy gcc; ac_word=$2
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029$as_echo_n "checking for $ac_word... " >&6; }
3030if ${ac_cv_prog_ac_ct_CC+:} false; then :
3031  $as_echo_n "(cached) " >&6
3032else
3033  if test -n "$ac_ct_CC"; then
3034  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3035else
3036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039  IFS=$as_save_IFS
3040  test -z "$as_dir" && as_dir=.
3041    for ac_exec_ext in '' $ac_executable_extensions; do
3042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043    ac_cv_prog_ac_ct_CC="gcc"
3044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045    break 2
3046  fi
3047done
3048  done
3049IFS=$as_save_IFS
3050
3051fi
3052fi
3053ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054if test -n "$ac_ct_CC"; then
3055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056$as_echo "$ac_ct_CC" >&6; }
3057else
3058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059$as_echo "no" >&6; }
3060fi
3061
3062  if test "x$ac_ct_CC" = x; then
3063    CC=""
3064  else
3065    case $cross_compiling:$ac_tool_warned in
3066yes:)
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3069ac_tool_warned=yes ;;
3070esac
3071    CC=$ac_ct_CC
3072  fi
3073else
3074  CC="$ac_cv_prog_CC"
3075fi
3076
3077if test -z "$CC"; then
3078          if test -n "$ac_tool_prefix"; then
3079    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3080set dummy ${ac_tool_prefix}cc; ac_word=$2
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082$as_echo_n "checking for $ac_word... " >&6; }
3083if ${ac_cv_prog_CC+:} false; then :
3084  $as_echo_n "(cached) " >&6
3085else
3086  if test -n "$CC"; then
3087  ac_cv_prog_CC="$CC" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092  IFS=$as_save_IFS
3093  test -z "$as_dir" && as_dir=.
3094    for ac_exec_ext in '' $ac_executable_extensions; do
3095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096    ac_cv_prog_CC="${ac_tool_prefix}cc"
3097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098    break 2
3099  fi
3100done
3101  done
3102IFS=$as_save_IFS
3103
3104fi
3105fi
3106CC=$ac_cv_prog_CC
3107if test -n "$CC"; then
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109$as_echo "$CC" >&6; }
3110else
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112$as_echo "no" >&6; }
3113fi
3114
3115
3116  fi
3117fi
3118if test -z "$CC"; then
3119  # Extract the first word of "cc", so it can be a program name with args.
3120set dummy cc; ac_word=$2
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122$as_echo_n "checking for $ac_word... " >&6; }
3123if ${ac_cv_prog_CC+:} false; then :
3124  $as_echo_n "(cached) " >&6
3125else
3126  if test -n "$CC"; then
3127  ac_cv_prog_CC="$CC" # Let the user override the test.
3128else
3129  ac_prog_rejected=no
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133  IFS=$as_save_IFS
3134  test -z "$as_dir" && as_dir=.
3135    for ac_exec_ext in '' $ac_executable_extensions; do
3136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3138       ac_prog_rejected=yes
3139       continue
3140     fi
3141    ac_cv_prog_CC="cc"
3142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143    break 2
3144  fi
3145done
3146  done
3147IFS=$as_save_IFS
3148
3149if test $ac_prog_rejected = yes; then
3150  # We found a bogon in the path, so make sure we never use it.
3151  set dummy $ac_cv_prog_CC
3152  shift
3153  if test $# != 0; then
3154    # We chose a different compiler from the bogus one.
3155    # However, it has the same basename, so the bogon will be chosen
3156    # first if we set CC to just the basename; use the full file name.
3157    shift
3158    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3159  fi
3160fi
3161fi
3162fi
3163CC=$ac_cv_prog_CC
3164if test -n "$CC"; then
3165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3166$as_echo "$CC" >&6; }
3167else
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
3170fi
3171
3172
3173fi
3174if test -z "$CC"; then
3175  if test -n "$ac_tool_prefix"; then
3176  for ac_prog in cl.exe
3177  do
3178    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181$as_echo_n "checking for $ac_word... " >&6; }
3182if ${ac_cv_prog_CC+:} false; then :
3183  $as_echo_n "(cached) " >&6
3184else
3185  if test -n "$CC"; then
3186  ac_cv_prog_CC="$CC" # Let the user override the test.
3187else
3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189for as_dir in $PATH
3190do
3191  IFS=$as_save_IFS
3192  test -z "$as_dir" && as_dir=.
3193    for ac_exec_ext in '' $ac_executable_extensions; do
3194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197    break 2
3198  fi
3199done
3200  done
3201IFS=$as_save_IFS
3202
3203fi
3204fi
3205CC=$ac_cv_prog_CC
3206if test -n "$CC"; then
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208$as_echo "$CC" >&6; }
3209else
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
3212fi
3213
3214
3215    test -n "$CC" && break
3216  done
3217fi
3218if test -z "$CC"; then
3219  ac_ct_CC=$CC
3220  for ac_prog in cl.exe
3221do
3222  # Extract the first word of "$ac_prog", so it can be a program name with args.
3223set dummy $ac_prog; ac_word=$2
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225$as_echo_n "checking for $ac_word... " >&6; }
3226if ${ac_cv_prog_ac_ct_CC+:} false; then :
3227  $as_echo_n "(cached) " >&6
3228else
3229  if test -n "$ac_ct_CC"; then
3230  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3231else
3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233for as_dir in $PATH
3234do
3235  IFS=$as_save_IFS
3236  test -z "$as_dir" && as_dir=.
3237    for ac_exec_ext in '' $ac_executable_extensions; do
3238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239    ac_cv_prog_ac_ct_CC="$ac_prog"
3240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241    break 2
3242  fi
3243done
3244  done
3245IFS=$as_save_IFS
3246
3247fi
3248fi
3249ac_ct_CC=$ac_cv_prog_ac_ct_CC
3250if test -n "$ac_ct_CC"; then
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3252$as_echo "$ac_ct_CC" >&6; }
3253else
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
3256fi
3257
3258
3259  test -n "$ac_ct_CC" && break
3260done
3261
3262  if test "x$ac_ct_CC" = x; then
3263    CC=""
3264  else
3265    case $cross_compiling:$ac_tool_warned in
3266yes:)
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3269ac_tool_warned=yes ;;
3270esac
3271    CC=$ac_ct_CC
3272  fi
3273fi
3274
3275fi
3276
3277
3278test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280as_fn_error $? "no acceptable C compiler found in \$PATH
3281See \`config.log' for more details" "$LINENO" 5; }
3282
3283# Provide some information about the compiler.
3284$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3285set X $ac_compile
3286ac_compiler=$2
3287for ac_option in --version -v -V -qversion; do
3288  { { ac_try="$ac_compiler $ac_option >&5"
3289case "(($ac_try" in
3290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291  *) ac_try_echo=$ac_try;;
3292esac
3293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294$as_echo "$ac_try_echo"; } >&5
3295  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3296  ac_status=$?
3297  if test -s conftest.err; then
3298    sed '10a\
3299... rest of stderr output deleted ...
3300         10q' conftest.err >conftest.er1
3301    cat conftest.er1 >&5
3302  fi
3303  rm -f conftest.er1 conftest.err
3304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305  test $ac_status = 0; }
3306done
3307
3308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309/* end confdefs.h.  */
3310
3311int
3312main ()
3313{
3314
3315  ;
3316  return 0;
3317}
3318_ACEOF
3319ac_clean_files_save=$ac_clean_files
3320ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3321# Try to create an executable without -o first, disregard a.out.
3322# It will help us diagnose broken compilers, and finding out an intuition
3323# of exeext.
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3325$as_echo_n "checking whether the C compiler works... " >&6; }
3326ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3327
3328# The possible output files:
3329ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3330
3331ac_rmfiles=
3332for ac_file in $ac_files
3333do
3334  case $ac_file in
3335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3336    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3337  esac
3338done
3339rm -f $ac_rmfiles
3340
3341if { { ac_try="$ac_link_default"
3342case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348  (eval "$ac_link_default") 2>&5
3349  ac_status=$?
3350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351  test $ac_status = 0; }; then :
3352  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3353# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3354# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3355# so that the user can short-circuit this test for compilers unknown to
3356# Autoconf.
3357for ac_file in $ac_files ''
3358do
3359  test -f "$ac_file" || continue
3360  case $ac_file in
3361    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3362	;;
3363    [ab].out )
3364	# We found the default executable, but exeext='' is most
3365	# certainly right.
3366	break;;
3367    *.* )
3368	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3369	then :; else
3370	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371	fi
3372	# We set ac_cv_exeext here because the later test for it is not
3373	# safe: cross compilers may not add the suffix if given an `-o'
3374	# argument, so we may need to know it at that point already.
3375	# Even if this section looks crufty: it has the advantage of
3376	# actually working.
3377	break;;
3378    * )
3379	break;;
3380  esac
3381done
3382test "$ac_cv_exeext" = no && ac_cv_exeext=
3383
3384else
3385  ac_file=''
3386fi
3387if test -z "$ac_file"; then :
3388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389$as_echo "no" >&6; }
3390$as_echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395as_fn_error 77 "C compiler cannot create executables
3396See \`config.log' for more details" "$LINENO" 5; }
3397else
3398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3399$as_echo "yes" >&6; }
3400fi
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3402$as_echo_n "checking for C compiler default output file name... " >&6; }
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3404$as_echo "$ac_file" >&6; }
3405ac_exeext=$ac_cv_exeext
3406
3407rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3408ac_clean_files=$ac_clean_files_save
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3410$as_echo_n "checking for suffix of executables... " >&6; }
3411if { { ac_try="$ac_link"
3412case "(($ac_try" in
3413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414  *) ac_try_echo=$ac_try;;
3415esac
3416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417$as_echo "$ac_try_echo"; } >&5
3418  (eval "$ac_link") 2>&5
3419  ac_status=$?
3420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421  test $ac_status = 0; }; then :
3422  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3423# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3424# work properly (i.e., refer to `conftest.exe'), while it won't with
3425# `rm'.
3426for ac_file in conftest.exe conftest conftest.*; do
3427  test -f "$ac_file" || continue
3428  case $ac_file in
3429    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3430    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3431	  break;;
3432    * ) break;;
3433  esac
3434done
3435else
3436  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3439See \`config.log' for more details" "$LINENO" 5; }
3440fi
3441rm -f conftest conftest$ac_cv_exeext
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3443$as_echo "$ac_cv_exeext" >&6; }
3444
3445rm -f conftest.$ac_ext
3446EXEEXT=$ac_cv_exeext
3447ac_exeext=$EXEEXT
3448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h.  */
3450#include <stdio.h>
3451int
3452main ()
3453{
3454FILE *f = fopen ("conftest.out", "w");
3455 return ferror (f) || fclose (f) != 0;
3456
3457  ;
3458  return 0;
3459}
3460_ACEOF
3461ac_clean_files="$ac_clean_files conftest.out"
3462# Check that the compiler produces executables we can run.  If not, either
3463# the compiler is broken, or we cross compile.
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3465$as_echo_n "checking whether we are cross compiling... " >&6; }
3466if test "$cross_compiling" != yes; then
3467  { { ac_try="$ac_link"
3468case "(($ac_try" in
3469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470  *) ac_try_echo=$ac_try;;
3471esac
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473$as_echo "$ac_try_echo"; } >&5
3474  (eval "$ac_link") 2>&5
3475  ac_status=$?
3476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477  test $ac_status = 0; }
3478  if { ac_try='./conftest$ac_cv_exeext'
3479  { { case "(($ac_try" in
3480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481  *) ac_try_echo=$ac_try;;
3482esac
3483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484$as_echo "$ac_try_echo"; } >&5
3485  (eval "$ac_try") 2>&5
3486  ac_status=$?
3487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488  test $ac_status = 0; }; }; then
3489    cross_compiling=no
3490  else
3491    if test "$cross_compiling" = maybe; then
3492	cross_compiling=yes
3493    else
3494	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496as_fn_error $? "cannot run C compiled programs.
3497If you meant to cross compile, use \`--host'.
3498See \`config.log' for more details" "$LINENO" 5; }
3499    fi
3500  fi
3501fi
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3503$as_echo "$cross_compiling" >&6; }
3504
3505rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3506ac_clean_files=$ac_clean_files_save
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3508$as_echo_n "checking for suffix of object files... " >&6; }
3509if ${ac_cv_objext+:} false; then :
3510  $as_echo_n "(cached) " >&6
3511else
3512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514
3515int
3516main ()
3517{
3518
3519  ;
3520  return 0;
3521}
3522_ACEOF
3523rm -f conftest.o conftest.obj
3524if { { ac_try="$ac_compile"
3525case "(($ac_try" in
3526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527  *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
3531  (eval "$ac_compile") 2>&5
3532  ac_status=$?
3533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534  test $ac_status = 0; }; then :
3535  for ac_file in conftest.o conftest.obj conftest.*; do
3536  test -f "$ac_file" || continue;
3537  case $ac_file in
3538    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3539    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3540       break;;
3541  esac
3542done
3543else
3544  $as_echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549as_fn_error $? "cannot compute suffix of object files: cannot compile
3550See \`config.log' for more details" "$LINENO" 5; }
3551fi
3552rm -f conftest.$ac_cv_objext conftest.$ac_ext
3553fi
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3555$as_echo "$ac_cv_objext" >&6; }
3556OBJEXT=$ac_cv_objext
3557ac_objext=$OBJEXT
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3559$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3560if ${ac_cv_c_compiler_gnu+:} false; then :
3561  $as_echo_n "(cached) " >&6
3562else
3563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565
3566int
3567main ()
3568{
3569#ifndef __GNUC__
3570       choke me
3571#endif
3572
3573  ;
3574  return 0;
3575}
3576_ACEOF
3577if ac_fn_c_try_compile "$LINENO"; then :
3578  ac_compiler_gnu=yes
3579else
3580  ac_compiler_gnu=no
3581fi
3582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584
3585fi
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3587$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3588if test $ac_compiler_gnu = yes; then
3589  GCC=yes
3590else
3591  GCC=
3592fi
3593ac_test_CFLAGS=${CFLAGS+set}
3594ac_save_CFLAGS=$CFLAGS
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3596$as_echo_n "checking whether $CC accepts -g... " >&6; }
3597if ${ac_cv_prog_cc_g+:} false; then :
3598  $as_echo_n "(cached) " >&6
3599else
3600  ac_save_c_werror_flag=$ac_c_werror_flag
3601   ac_c_werror_flag=yes
3602   ac_cv_prog_cc_g=no
3603   CFLAGS="-g"
3604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615if ac_fn_c_try_compile "$LINENO"; then :
3616  ac_cv_prog_cc_g=yes
3617else
3618  CFLAGS=""
3619      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h.  */
3621
3622int
3623main ()
3624{
3625
3626  ;
3627  return 0;
3628}
3629_ACEOF
3630if ac_fn_c_try_compile "$LINENO"; then :
3631
3632else
3633  ac_c_werror_flag=$ac_save_c_werror_flag
3634	 CFLAGS="-g"
3635	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h.  */
3637
3638int
3639main ()
3640{
3641
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646if ac_fn_c_try_compile "$LINENO"; then :
3647  ac_cv_prog_cc_g=yes
3648fi
3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650fi
3651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652fi
3653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654   ac_c_werror_flag=$ac_save_c_werror_flag
3655fi
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3657$as_echo "$ac_cv_prog_cc_g" >&6; }
3658if test "$ac_test_CFLAGS" = set; then
3659  CFLAGS=$ac_save_CFLAGS
3660elif test $ac_cv_prog_cc_g = yes; then
3661  if test "$GCC" = yes; then
3662    CFLAGS="-g -O2"
3663  else
3664    CFLAGS="-g"
3665  fi
3666else
3667  if test "$GCC" = yes; then
3668    CFLAGS="-O2"
3669  else
3670    CFLAGS=
3671  fi
3672fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3674$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3675if ${ac_cv_prog_cc_c89+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  ac_cv_prog_cc_c89=no
3679ac_save_CC=$CC
3680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h.  */
3682#include <stdarg.h>
3683#include <stdio.h>
3684struct stat;
3685/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3686struct buf { int x; };
3687FILE * (*rcsopen) (struct buf *, struct stat *, int);
3688static char *e (p, i)
3689     char **p;
3690     int i;
3691{
3692  return p[i];
3693}
3694static char *f (char * (*g) (char **, int), char **p, ...)
3695{
3696  char *s;
3697  va_list v;
3698  va_start (v,p);
3699  s = g (p, va_arg (v,int));
3700  va_end (v);
3701  return s;
3702}
3703
3704/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3705   function prototypes and stuff, but not '\xHH' hex character constants.
3706   These don't provoke an error unfortunately, instead are silently treated
3707   as 'x'.  The following induces an error, until -std is added to get
3708   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3709   array size at least.  It's necessary to write '\x00'==0 to get something
3710   that's true only with -std.  */
3711int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3712
3713/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3714   inside strings and character constants.  */
3715#define FOO(x) 'x'
3716int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3717
3718int test (int i, double x);
3719struct s1 {int (*f) (int a);};
3720struct s2 {int (*f) (double a);};
3721int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3722int argc;
3723char **argv;
3724int
3725main ()
3726{
3727return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3733	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3734do
3735  CC="$ac_save_CC $ac_arg"
3736  if ac_fn_c_try_compile "$LINENO"; then :
3737  ac_cv_prog_cc_c89=$ac_arg
3738fi
3739rm -f core conftest.err conftest.$ac_objext
3740  test "x$ac_cv_prog_cc_c89" != "xno" && break
3741done
3742rm -f conftest.$ac_ext
3743CC=$ac_save_CC
3744
3745fi
3746# AC_CACHE_VAL
3747case "x$ac_cv_prog_cc_c89" in
3748  x)
3749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3750$as_echo "none needed" >&6; } ;;
3751  xno)
3752    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753$as_echo "unsupported" >&6; } ;;
3754  *)
3755    CC="$CC $ac_cv_prog_cc_c89"
3756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3757$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3758esac
3759if test "x$ac_cv_prog_cc_c89" != xno; then :
3760
3761fi
3762
3763ac_ext=c
3764ac_cpp='$CPP $CPPFLAGS'
3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768
3769ac_ext=c
3770ac_cpp='$CPP $CPPFLAGS'
3771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3775$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3776if ${am_cv_prog_cc_c_o+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h.  */
3781
3782int
3783main ()
3784{
3785
3786  ;
3787  return 0;
3788}
3789_ACEOF
3790  # Make sure it works both with $CC and with simple cc.
3791  # Following AC_PROG_CC_C_O, we do the test twice because some
3792  # compilers refuse to overwrite an existing .o file with -o,
3793  # though they will create one.
3794  am_cv_prog_cc_c_o=yes
3795  for am_i in 1 2; do
3796    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3797   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3798   ac_status=$?
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } \
3801         && test -f conftest2.$ac_objext; then
3802      : OK
3803    else
3804      am_cv_prog_cc_c_o=no
3805      break
3806    fi
3807  done
3808  rm -f core conftest*
3809  unset am_i
3810fi
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3812$as_echo "$am_cv_prog_cc_c_o" >&6; }
3813if test "$am_cv_prog_cc_c_o" != yes; then
3814   # Losing compiler, so override with the script.
3815   # FIXME: It is wrong to rewrite CC.
3816   # But if we don't then we get into trouble of one sort or another.
3817   # A longer-term fix would be to have automake use am__CC in this case,
3818   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3819   CC="$am_aux_dir/compile $CC"
3820fi
3821ac_ext=c
3822ac_cpp='$CPP $CPPFLAGS'
3823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826
3827
3828depcc="$CC"   am_compiler_list=
3829
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3831$as_echo_n "checking dependency style of $depcc... " >&6; }
3832if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3833  $as_echo_n "(cached) " >&6
3834else
3835  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836  # We make a subdir and do the tests there.  Otherwise we can end up
3837  # making bogus files that we don't know about and never remove.  For
3838  # instance it was reported that on HP-UX the gcc test will end up
3839  # making a dummy file named 'D' -- because '-MD' means "put the output
3840  # in D".
3841  rm -rf conftest.dir
3842  mkdir conftest.dir
3843  # Copy depcomp to subdir because otherwise we won't find it if we're
3844  # using a relative directory.
3845  cp "$am_depcomp" conftest.dir
3846  cd conftest.dir
3847  # We will build objects and dependencies in a subdirectory because
3848  # it helps to detect inapplicable dependency modes.  For instance
3849  # both Tru64's cc and ICC support -MD to output dependencies as a
3850  # side effect of compilation, but ICC will put the dependencies in
3851  # the current directory while Tru64 will put them in the object
3852  # directory.
3853  mkdir sub
3854
3855  am_cv_CC_dependencies_compiler_type=none
3856  if test "$am_compiler_list" = ""; then
3857     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3858  fi
3859  am__universal=false
3860  case " $depcc " in #(
3861     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3862     esac
3863
3864  for depmode in $am_compiler_list; do
3865    # Setup a source with many dependencies, because some compilers
3866    # like to wrap large dependency lists on column 80 (with \), and
3867    # we should not choose a depcomp mode which is confused by this.
3868    #
3869    # We need to recreate these files for each test, as the compiler may
3870    # overwrite some of them when testing with obscure command lines.
3871    # This happens at least with the AIX C compiler.
3872    : > sub/conftest.c
3873    for i in 1 2 3 4 5 6; do
3874      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3875      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3876      # Solaris 10 /bin/sh.
3877      echo '/* dummy */' > sub/conftst$i.h
3878    done
3879    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3880
3881    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3882    # mode.  It turns out that the SunPro C++ compiler does not properly
3883    # handle '-M -o', and we need to detect this.  Also, some Intel
3884    # versions had trouble with output in subdirs.
3885    am__obj=sub/conftest.${OBJEXT-o}
3886    am__minus_obj="-o $am__obj"
3887    case $depmode in
3888    gcc)
3889      # This depmode causes a compiler race in universal mode.
3890      test "$am__universal" = false || continue
3891      ;;
3892    nosideeffect)
3893      # After this tag, mechanisms are not by side-effect, so they'll
3894      # only be used when explicitly requested.
3895      if test "x$enable_dependency_tracking" = xyes; then
3896	continue
3897      else
3898	break
3899      fi
3900      ;;
3901    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3902      # This compiler won't grok '-c -o', but also, the minuso test has
3903      # not run yet.  These depmodes are late enough in the game, and
3904      # so weak that their functioning should not be impacted.
3905      am__obj=conftest.${OBJEXT-o}
3906      am__minus_obj=
3907      ;;
3908    none) break ;;
3909    esac
3910    if depmode=$depmode \
3911       source=sub/conftest.c object=$am__obj \
3912       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3913       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3914         >/dev/null 2>conftest.err &&
3915       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3916       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3917       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3918       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3919      # icc doesn't choke on unknown options, it will just issue warnings
3920      # or remarks (even with -Werror).  So we grep stderr for any message
3921      # that says an option was ignored or not supported.
3922      # When given -MP, icc 7.0 and 7.1 complain thusly:
3923      #   icc: Command line warning: ignoring option '-M'; no argument required
3924      # The diagnosis changed in icc 8.0:
3925      #   icc: Command line remark: option '-MP' not supported
3926      if (grep 'ignoring option' conftest.err ||
3927          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3928        am_cv_CC_dependencies_compiler_type=$depmode
3929        break
3930      fi
3931    fi
3932  done
3933
3934  cd ..
3935  rm -rf conftest.dir
3936else
3937  am_cv_CC_dependencies_compiler_type=none
3938fi
3939
3940fi
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3942$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3943CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3944
3945 if
3946  test "x$enable_dependency_tracking" != xno \
3947  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3948  am__fastdepCC_TRUE=
3949  am__fastdepCC_FALSE='#'
3950else
3951  am__fastdepCC_TRUE='#'
3952  am__fastdepCC_FALSE=
3953fi
3954
3955
3956
3957# Check whether --enable-largefile was given.
3958if test "${enable_largefile+set}" = set; then :
3959  enableval=$enable_largefile;
3960fi
3961
3962if test "$enable_largefile" != no; then
3963
3964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3965$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3966if ${ac_cv_sys_largefile_CC+:} false; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969  ac_cv_sys_largefile_CC=no
3970     if test "$GCC" != yes; then
3971       ac_save_CC=$CC
3972       while :; do
3973	 # IRIX 6.2 and later do not support large files by default,
3974	 # so use the C compiler's -n32 option if that helps.
3975	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976/* end confdefs.h.  */
3977#include <sys/types.h>
3978 /* Check that off_t can represent 2**63 - 1 correctly.
3979    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3980    since some C++ compilers masquerading as C compilers
3981    incorrectly reject 9223372036854775807.  */
3982#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
3983  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3984		       && LARGE_OFF_T % 2147483647 == 1)
3985		      ? 1 : -1];
3986int
3987main ()
3988{
3989
3990  ;
3991  return 0;
3992}
3993_ACEOF
3994	 if ac_fn_c_try_compile "$LINENO"; then :
3995  break
3996fi
3997rm -f core conftest.err conftest.$ac_objext
3998	 CC="$CC -n32"
3999	 if ac_fn_c_try_compile "$LINENO"; then :
4000  ac_cv_sys_largefile_CC=' -n32'; break
4001fi
4002rm -f core conftest.err conftest.$ac_objext
4003	 break
4004       done
4005       CC=$ac_save_CC
4006       rm -f conftest.$ac_ext
4007    fi
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4010$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4011  if test "$ac_cv_sys_largefile_CC" != no; then
4012    CC=$CC$ac_cv_sys_largefile_CC
4013  fi
4014
4015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4016$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4017if ${ac_cv_sys_file_offset_bits+:} false; then :
4018  $as_echo_n "(cached) " >&6
4019else
4020  while :; do
4021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h.  */
4023#include <sys/types.h>
4024 /* Check that off_t can represent 2**63 - 1 correctly.
4025    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4026    since some C++ compilers masquerading as C compilers
4027    incorrectly reject 9223372036854775807.  */
4028#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4029  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4030		       && LARGE_OFF_T % 2147483647 == 1)
4031		      ? 1 : -1];
4032int
4033main ()
4034{
4035
4036  ;
4037  return 0;
4038}
4039_ACEOF
4040if ac_fn_c_try_compile "$LINENO"; then :
4041  ac_cv_sys_file_offset_bits=no; break
4042fi
4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046#define _FILE_OFFSET_BITS 64
4047#include <sys/types.h>
4048 /* Check that off_t can represent 2**63 - 1 correctly.
4049    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4050    since some C++ compilers masquerading as C compilers
4051    incorrectly reject 9223372036854775807.  */
4052#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4053  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4054		       && LARGE_OFF_T % 2147483647 == 1)
4055		      ? 1 : -1];
4056int
4057main ()
4058{
4059
4060  ;
4061  return 0;
4062}
4063_ACEOF
4064if ac_fn_c_try_compile "$LINENO"; then :
4065  ac_cv_sys_file_offset_bits=64; break
4066fi
4067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068  ac_cv_sys_file_offset_bits=unknown
4069  break
4070done
4071fi
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4073$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4074case $ac_cv_sys_file_offset_bits in #(
4075  no | unknown) ;;
4076  *)
4077cat >>confdefs.h <<_ACEOF
4078#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4079_ACEOF
4080;;
4081esac
4082rm -rf conftest*
4083  if test $ac_cv_sys_file_offset_bits = unknown; then
4084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4085$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4086if ${ac_cv_sys_large_files+:} false; then :
4087  $as_echo_n "(cached) " >&6
4088else
4089  while :; do
4090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091/* end confdefs.h.  */
4092#include <sys/types.h>
4093 /* Check that off_t can represent 2**63 - 1 correctly.
4094    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4095    since some C++ compilers masquerading as C compilers
4096    incorrectly reject 9223372036854775807.  */
4097#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4098  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4099		       && LARGE_OFF_T % 2147483647 == 1)
4100		      ? 1 : -1];
4101int
4102main ()
4103{
4104
4105  ;
4106  return 0;
4107}
4108_ACEOF
4109if ac_fn_c_try_compile "$LINENO"; then :
4110  ac_cv_sys_large_files=no; break
4111fi
4112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114/* end confdefs.h.  */
4115#define _LARGE_FILES 1
4116#include <sys/types.h>
4117 /* Check that off_t can represent 2**63 - 1 correctly.
4118    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119    since some C++ compilers masquerading as C compilers
4120    incorrectly reject 9223372036854775807.  */
4121#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4122  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123		       && LARGE_OFF_T % 2147483647 == 1)
4124		      ? 1 : -1];
4125int
4126main ()
4127{
4128
4129  ;
4130  return 0;
4131}
4132_ACEOF
4133if ac_fn_c_try_compile "$LINENO"; then :
4134  ac_cv_sys_large_files=1; break
4135fi
4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137  ac_cv_sys_large_files=unknown
4138  break
4139done
4140fi
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4142$as_echo "$ac_cv_sys_large_files" >&6; }
4143case $ac_cv_sys_large_files in #(
4144  no | unknown) ;;
4145  *)
4146cat >>confdefs.h <<_ACEOF
4147#define _LARGE_FILES $ac_cv_sys_large_files
4148_ACEOF
4149;;
4150esac
4151rm -rf conftest*
4152  fi
4153
4154
4155fi
4156
4157
4158# Check for required programs.
4159ac_ext=c
4160ac_cpp='$CPP $CPPFLAGS'
4161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164if test -n "$ac_tool_prefix"; then
4165  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4166set dummy ${ac_tool_prefix}gcc; ac_word=$2
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168$as_echo_n "checking for $ac_word... " >&6; }
4169if ${ac_cv_prog_CC+:} false; then :
4170  $as_echo_n "(cached) " >&6
4171else
4172  if test -n "$CC"; then
4173  ac_cv_prog_CC="$CC" # Let the user override the test.
4174else
4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178  IFS=$as_save_IFS
4179  test -z "$as_dir" && as_dir=.
4180    for ac_exec_ext in '' $ac_executable_extensions; do
4181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184    break 2
4185  fi
4186done
4187  done
4188IFS=$as_save_IFS
4189
4190fi
4191fi
4192CC=$ac_cv_prog_CC
4193if test -n "$CC"; then
4194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4195$as_echo "$CC" >&6; }
4196else
4197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198$as_echo "no" >&6; }
4199fi
4200
4201
4202fi
4203if test -z "$ac_cv_prog_CC"; then
4204  ac_ct_CC=$CC
4205  # Extract the first word of "gcc", so it can be a program name with args.
4206set dummy gcc; ac_word=$2
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208$as_echo_n "checking for $ac_word... " >&6; }
4209if ${ac_cv_prog_ac_ct_CC+:} false; then :
4210  $as_echo_n "(cached) " >&6
4211else
4212  if test -n "$ac_ct_CC"; then
4213  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218  IFS=$as_save_IFS
4219  test -z "$as_dir" && as_dir=.
4220    for ac_exec_ext in '' $ac_executable_extensions; do
4221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222    ac_cv_prog_ac_ct_CC="gcc"
4223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224    break 2
4225  fi
4226done
4227  done
4228IFS=$as_save_IFS
4229
4230fi
4231fi
4232ac_ct_CC=$ac_cv_prog_ac_ct_CC
4233if test -n "$ac_ct_CC"; then
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4235$as_echo "$ac_ct_CC" >&6; }
4236else
4237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238$as_echo "no" >&6; }
4239fi
4240
4241  if test "x$ac_ct_CC" = x; then
4242    CC=""
4243  else
4244    case $cross_compiling:$ac_tool_warned in
4245yes:)
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248ac_tool_warned=yes ;;
4249esac
4250    CC=$ac_ct_CC
4251  fi
4252else
4253  CC="$ac_cv_prog_CC"
4254fi
4255
4256if test -z "$CC"; then
4257          if test -n "$ac_tool_prefix"; then
4258    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4259set dummy ${ac_tool_prefix}cc; ac_word=$2
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261$as_echo_n "checking for $ac_word... " >&6; }
4262if ${ac_cv_prog_CC+:} false; then :
4263  $as_echo_n "(cached) " >&6
4264else
4265  if test -n "$CC"; then
4266  ac_cv_prog_CC="$CC" # Let the user override the test.
4267else
4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269for as_dir in $PATH
4270do
4271  IFS=$as_save_IFS
4272  test -z "$as_dir" && as_dir=.
4273    for ac_exec_ext in '' $ac_executable_extensions; do
4274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275    ac_cv_prog_CC="${ac_tool_prefix}cc"
4276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277    break 2
4278  fi
4279done
4280  done
4281IFS=$as_save_IFS
4282
4283fi
4284fi
4285CC=$ac_cv_prog_CC
4286if test -n "$CC"; then
4287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4288$as_echo "$CC" >&6; }
4289else
4290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291$as_echo "no" >&6; }
4292fi
4293
4294
4295  fi
4296fi
4297if test -z "$CC"; then
4298  # Extract the first word of "cc", so it can be a program name with args.
4299set dummy cc; ac_word=$2
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301$as_echo_n "checking for $ac_word... " >&6; }
4302if ${ac_cv_prog_CC+:} false; then :
4303  $as_echo_n "(cached) " >&6
4304else
4305  if test -n "$CC"; then
4306  ac_cv_prog_CC="$CC" # Let the user override the test.
4307else
4308  ac_prog_rejected=no
4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312  IFS=$as_save_IFS
4313  test -z "$as_dir" && as_dir=.
4314    for ac_exec_ext in '' $ac_executable_extensions; do
4315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4317       ac_prog_rejected=yes
4318       continue
4319     fi
4320    ac_cv_prog_CC="cc"
4321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322    break 2
4323  fi
4324done
4325  done
4326IFS=$as_save_IFS
4327
4328if test $ac_prog_rejected = yes; then
4329  # We found a bogon in the path, so make sure we never use it.
4330  set dummy $ac_cv_prog_CC
4331  shift
4332  if test $# != 0; then
4333    # We chose a different compiler from the bogus one.
4334    # However, it has the same basename, so the bogon will be chosen
4335    # first if we set CC to just the basename; use the full file name.
4336    shift
4337    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4338  fi
4339fi
4340fi
4341fi
4342CC=$ac_cv_prog_CC
4343if test -n "$CC"; then
4344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345$as_echo "$CC" >&6; }
4346else
4347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348$as_echo "no" >&6; }
4349fi
4350
4351
4352fi
4353if test -z "$CC"; then
4354  if test -n "$ac_tool_prefix"; then
4355  for ac_prog in cl.exe
4356  do
4357    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4358set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360$as_echo_n "checking for $ac_word... " >&6; }
4361if ${ac_cv_prog_CC+:} false; then :
4362  $as_echo_n "(cached) " >&6
4363else
4364  if test -n "$CC"; then
4365  ac_cv_prog_CC="$CC" # Let the user override the test.
4366else
4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
4369do
4370  IFS=$as_save_IFS
4371  test -z "$as_dir" && as_dir=.
4372    for ac_exec_ext in '' $ac_executable_extensions; do
4373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376    break 2
4377  fi
4378done
4379  done
4380IFS=$as_save_IFS
4381
4382fi
4383fi
4384CC=$ac_cv_prog_CC
4385if test -n "$CC"; then
4386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4387$as_echo "$CC" >&6; }
4388else
4389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390$as_echo "no" >&6; }
4391fi
4392
4393
4394    test -n "$CC" && break
4395  done
4396fi
4397if test -z "$CC"; then
4398  ac_ct_CC=$CC
4399  for ac_prog in cl.exe
4400do
4401  # Extract the first word of "$ac_prog", so it can be a program name with args.
4402set dummy $ac_prog; ac_word=$2
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404$as_echo_n "checking for $ac_word... " >&6; }
4405if ${ac_cv_prog_ac_ct_CC+:} false; then :
4406  $as_echo_n "(cached) " >&6
4407else
4408  if test -n "$ac_ct_CC"; then
4409  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414  IFS=$as_save_IFS
4415  test -z "$as_dir" && as_dir=.
4416    for ac_exec_ext in '' $ac_executable_extensions; do
4417  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418    ac_cv_prog_ac_ct_CC="$ac_prog"
4419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420    break 2
4421  fi
4422done
4423  done
4424IFS=$as_save_IFS
4425
4426fi
4427fi
4428ac_ct_CC=$ac_cv_prog_ac_ct_CC
4429if test -n "$ac_ct_CC"; then
4430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4431$as_echo "$ac_ct_CC" >&6; }
4432else
4433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434$as_echo "no" >&6; }
4435fi
4436
4437
4438  test -n "$ac_ct_CC" && break
4439done
4440
4441  if test "x$ac_ct_CC" = x; then
4442    CC=""
4443  else
4444    case $cross_compiling:$ac_tool_warned in
4445yes:)
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448ac_tool_warned=yes ;;
4449esac
4450    CC=$ac_ct_CC
4451  fi
4452fi
4453
4454fi
4455
4456
4457test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459as_fn_error $? "no acceptable C compiler found in \$PATH
4460See \`config.log' for more details" "$LINENO" 5; }
4461
4462# Provide some information about the compiler.
4463$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4464set X $ac_compile
4465ac_compiler=$2
4466for ac_option in --version -v -V -qversion; do
4467  { { ac_try="$ac_compiler $ac_option >&5"
4468case "(($ac_try" in
4469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470  *) ac_try_echo=$ac_try;;
4471esac
4472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4473$as_echo "$ac_try_echo"; } >&5
4474  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4475  ac_status=$?
4476  if test -s conftest.err; then
4477    sed '10a\
4478... rest of stderr output deleted ...
4479         10q' conftest.err >conftest.er1
4480    cat conftest.er1 >&5
4481  fi
4482  rm -f conftest.er1 conftest.err
4483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484  test $ac_status = 0; }
4485done
4486
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4488$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4489if ${ac_cv_c_compiler_gnu+:} false; then :
4490  $as_echo_n "(cached) " >&6
4491else
4492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493/* end confdefs.h.  */
4494
4495int
4496main ()
4497{
4498#ifndef __GNUC__
4499       choke me
4500#endif
4501
4502  ;
4503  return 0;
4504}
4505_ACEOF
4506if ac_fn_c_try_compile "$LINENO"; then :
4507  ac_compiler_gnu=yes
4508else
4509  ac_compiler_gnu=no
4510fi
4511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512ac_cv_c_compiler_gnu=$ac_compiler_gnu
4513
4514fi
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4516$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4517if test $ac_compiler_gnu = yes; then
4518  GCC=yes
4519else
4520  GCC=
4521fi
4522ac_test_CFLAGS=${CFLAGS+set}
4523ac_save_CFLAGS=$CFLAGS
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4525$as_echo_n "checking whether $CC accepts -g... " >&6; }
4526if ${ac_cv_prog_cc_g+:} false; then :
4527  $as_echo_n "(cached) " >&6
4528else
4529  ac_save_c_werror_flag=$ac_c_werror_flag
4530   ac_c_werror_flag=yes
4531   ac_cv_prog_cc_g=no
4532   CFLAGS="-g"
4533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h.  */
4535
4536int
4537main ()
4538{
4539
4540  ;
4541  return 0;
4542}
4543_ACEOF
4544if ac_fn_c_try_compile "$LINENO"; then :
4545  ac_cv_prog_cc_g=yes
4546else
4547  CFLAGS=""
4548      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h.  */
4550
4551int
4552main ()
4553{
4554
4555  ;
4556  return 0;
4557}
4558_ACEOF
4559if ac_fn_c_try_compile "$LINENO"; then :
4560
4561else
4562  ac_c_werror_flag=$ac_save_c_werror_flag
4563	 CFLAGS="-g"
4564	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565/* end confdefs.h.  */
4566
4567int
4568main ()
4569{
4570
4571  ;
4572  return 0;
4573}
4574_ACEOF
4575if ac_fn_c_try_compile "$LINENO"; then :
4576  ac_cv_prog_cc_g=yes
4577fi
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581fi
4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583   ac_c_werror_flag=$ac_save_c_werror_flag
4584fi
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4586$as_echo "$ac_cv_prog_cc_g" >&6; }
4587if test "$ac_test_CFLAGS" = set; then
4588  CFLAGS=$ac_save_CFLAGS
4589elif test $ac_cv_prog_cc_g = yes; then
4590  if test "$GCC" = yes; then
4591    CFLAGS="-g -O2"
4592  else
4593    CFLAGS="-g"
4594  fi
4595else
4596  if test "$GCC" = yes; then
4597    CFLAGS="-O2"
4598  else
4599    CFLAGS=
4600  fi
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4603$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4604if ${ac_cv_prog_cc_c89+:} false; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607  ac_cv_prog_cc_c89=no
4608ac_save_CC=$CC
4609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h.  */
4611#include <stdarg.h>
4612#include <stdio.h>
4613struct stat;
4614/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4615struct buf { int x; };
4616FILE * (*rcsopen) (struct buf *, struct stat *, int);
4617static char *e (p, i)
4618     char **p;
4619     int i;
4620{
4621  return p[i];
4622}
4623static char *f (char * (*g) (char **, int), char **p, ...)
4624{
4625  char *s;
4626  va_list v;
4627  va_start (v,p);
4628  s = g (p, va_arg (v,int));
4629  va_end (v);
4630  return s;
4631}
4632
4633/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4634   function prototypes and stuff, but not '\xHH' hex character constants.
4635   These don't provoke an error unfortunately, instead are silently treated
4636   as 'x'.  The following induces an error, until -std is added to get
4637   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4638   array size at least.  It's necessary to write '\x00'==0 to get something
4639   that's true only with -std.  */
4640int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4641
4642/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4643   inside strings and character constants.  */
4644#define FOO(x) 'x'
4645int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4646
4647int test (int i, double x);
4648struct s1 {int (*f) (int a);};
4649struct s2 {int (*f) (double a);};
4650int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4651int argc;
4652char **argv;
4653int
4654main ()
4655{
4656return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4657  ;
4658  return 0;
4659}
4660_ACEOF
4661for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4662	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4663do
4664  CC="$ac_save_CC $ac_arg"
4665  if ac_fn_c_try_compile "$LINENO"; then :
4666  ac_cv_prog_cc_c89=$ac_arg
4667fi
4668rm -f core conftest.err conftest.$ac_objext
4669  test "x$ac_cv_prog_cc_c89" != "xno" && break
4670done
4671rm -f conftest.$ac_ext
4672CC=$ac_save_CC
4673
4674fi
4675# AC_CACHE_VAL
4676case "x$ac_cv_prog_cc_c89" in
4677  x)
4678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4679$as_echo "none needed" >&6; } ;;
4680  xno)
4681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4682$as_echo "unsupported" >&6; } ;;
4683  *)
4684    CC="$CC $ac_cv_prog_cc_c89"
4685    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4686$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4687esac
4688if test "x$ac_cv_prog_cc_c89" != xno; then :
4689
4690fi
4691
4692ac_ext=c
4693ac_cpp='$CPP $CPPFLAGS'
4694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697
4698ac_ext=c
4699ac_cpp='$CPP $CPPFLAGS'
4700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4704$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4705if ${am_cv_prog_cc_c_o+:} false; then :
4706  $as_echo_n "(cached) " >&6
4707else
4708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h.  */
4710
4711int
4712main ()
4713{
4714
4715  ;
4716  return 0;
4717}
4718_ACEOF
4719  # Make sure it works both with $CC and with simple cc.
4720  # Following AC_PROG_CC_C_O, we do the test twice because some
4721  # compilers refuse to overwrite an existing .o file with -o,
4722  # though they will create one.
4723  am_cv_prog_cc_c_o=yes
4724  for am_i in 1 2; do
4725    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4726   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4727   ac_status=$?
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); } \
4730         && test -f conftest2.$ac_objext; then
4731      : OK
4732    else
4733      am_cv_prog_cc_c_o=no
4734      break
4735    fi
4736  done
4737  rm -f core conftest*
4738  unset am_i
4739fi
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4741$as_echo "$am_cv_prog_cc_c_o" >&6; }
4742if test "$am_cv_prog_cc_c_o" != yes; then
4743   # Losing compiler, so override with the script.
4744   # FIXME: It is wrong to rewrite CC.
4745   # But if we don't then we get into trouble of one sort or another.
4746   # A longer-term fix would be to have automake use am__CC in this case,
4747   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4748   CC="$am_aux_dir/compile $CC"
4749fi
4750ac_ext=c
4751ac_cpp='$CPP $CPPFLAGS'
4752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755
4756
4757depcc="$CC"   am_compiler_list=
4758
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4760$as_echo_n "checking dependency style of $depcc... " >&6; }
4761if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4762  $as_echo_n "(cached) " >&6
4763else
4764  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4765  # We make a subdir and do the tests there.  Otherwise we can end up
4766  # making bogus files that we don't know about and never remove.  For
4767  # instance it was reported that on HP-UX the gcc test will end up
4768  # making a dummy file named 'D' -- because '-MD' means "put the output
4769  # in D".
4770  rm -rf conftest.dir
4771  mkdir conftest.dir
4772  # Copy depcomp to subdir because otherwise we won't find it if we're
4773  # using a relative directory.
4774  cp "$am_depcomp" conftest.dir
4775  cd conftest.dir
4776  # We will build objects and dependencies in a subdirectory because
4777  # it helps to detect inapplicable dependency modes.  For instance
4778  # both Tru64's cc and ICC support -MD to output dependencies as a
4779  # side effect of compilation, but ICC will put the dependencies in
4780  # the current directory while Tru64 will put them in the object
4781  # directory.
4782  mkdir sub
4783
4784  am_cv_CC_dependencies_compiler_type=none
4785  if test "$am_compiler_list" = ""; then
4786     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4787  fi
4788  am__universal=false
4789  case " $depcc " in #(
4790     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4791     esac
4792
4793  for depmode in $am_compiler_list; do
4794    # Setup a source with many dependencies, because some compilers
4795    # like to wrap large dependency lists on column 80 (with \), and
4796    # we should not choose a depcomp mode which is confused by this.
4797    #
4798    # We need to recreate these files for each test, as the compiler may
4799    # overwrite some of them when testing with obscure command lines.
4800    # This happens at least with the AIX C compiler.
4801    : > sub/conftest.c
4802    for i in 1 2 3 4 5 6; do
4803      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4804      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4805      # Solaris 10 /bin/sh.
4806      echo '/* dummy */' > sub/conftst$i.h
4807    done
4808    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4809
4810    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4811    # mode.  It turns out that the SunPro C++ compiler does not properly
4812    # handle '-M -o', and we need to detect this.  Also, some Intel
4813    # versions had trouble with output in subdirs.
4814    am__obj=sub/conftest.${OBJEXT-o}
4815    am__minus_obj="-o $am__obj"
4816    case $depmode in
4817    gcc)
4818      # This depmode causes a compiler race in universal mode.
4819      test "$am__universal" = false || continue
4820      ;;
4821    nosideeffect)
4822      # After this tag, mechanisms are not by side-effect, so they'll
4823      # only be used when explicitly requested.
4824      if test "x$enable_dependency_tracking" = xyes; then
4825	continue
4826      else
4827	break
4828      fi
4829      ;;
4830    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4831      # This compiler won't grok '-c -o', but also, the minuso test has
4832      # not run yet.  These depmodes are late enough in the game, and
4833      # so weak that their functioning should not be impacted.
4834      am__obj=conftest.${OBJEXT-o}
4835      am__minus_obj=
4836      ;;
4837    none) break ;;
4838    esac
4839    if depmode=$depmode \
4840       source=sub/conftest.c object=$am__obj \
4841       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4842       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4843         >/dev/null 2>conftest.err &&
4844       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4845       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4846       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4847       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4848      # icc doesn't choke on unknown options, it will just issue warnings
4849      # or remarks (even with -Werror).  So we grep stderr for any message
4850      # that says an option was ignored or not supported.
4851      # When given -MP, icc 7.0 and 7.1 complain thusly:
4852      #   icc: Command line warning: ignoring option '-M'; no argument required
4853      # The diagnosis changed in icc 8.0:
4854      #   icc: Command line remark: option '-MP' not supported
4855      if (grep 'ignoring option' conftest.err ||
4856          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4857        am_cv_CC_dependencies_compiler_type=$depmode
4858        break
4859      fi
4860    fi
4861  done
4862
4863  cd ..
4864  rm -rf conftest.dir
4865else
4866  am_cv_CC_dependencies_compiler_type=none
4867fi
4868
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4871$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4872CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4873
4874 if
4875  test "x$enable_dependency_tracking" != xno \
4876  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4877  am__fastdepCC_TRUE=
4878  am__fastdepCC_FALSE='#'
4879else
4880  am__fastdepCC_TRUE='#'
4881  am__fastdepCC_FALSE=
4882fi
4883
4884
4885case `pwd` in
4886  *\ * | *\	*)
4887    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4888$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4889esac
4890
4891
4892
4893macro_version='2.4.6'
4894macro_revision='2.4.6'
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908ltmain=$ac_aux_dir/ltmain.sh
4909
4910# Make sure we can run config.sub.
4911$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4912  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4913
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4915$as_echo_n "checking build system type... " >&6; }
4916if ${ac_cv_build+:} false; then :
4917  $as_echo_n "(cached) " >&6
4918else
4919  ac_build_alias=$build_alias
4920test "x$ac_build_alias" = x &&
4921  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4922test "x$ac_build_alias" = x &&
4923  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4924ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4925  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4926
4927fi
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4929$as_echo "$ac_cv_build" >&6; }
4930case $ac_cv_build in
4931*-*-*) ;;
4932*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4933esac
4934build=$ac_cv_build
4935ac_save_IFS=$IFS; IFS='-'
4936set x $ac_cv_build
4937shift
4938build_cpu=$1
4939build_vendor=$2
4940shift; shift
4941# Remember, the first character of IFS is used to create $*,
4942# except with old shells:
4943build_os=$*
4944IFS=$ac_save_IFS
4945case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4946
4947
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4949$as_echo_n "checking host system type... " >&6; }
4950if ${ac_cv_host+:} false; then :
4951  $as_echo_n "(cached) " >&6
4952else
4953  if test "x$host_alias" = x; then
4954  ac_cv_host=$ac_cv_build
4955else
4956  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4957    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4958fi
4959
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4962$as_echo "$ac_cv_host" >&6; }
4963case $ac_cv_host in
4964*-*-*) ;;
4965*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4966esac
4967host=$ac_cv_host
4968ac_save_IFS=$IFS; IFS='-'
4969set x $ac_cv_host
4970shift
4971host_cpu=$1
4972host_vendor=$2
4973shift; shift
4974# Remember, the first character of IFS is used to create $*,
4975# except with old shells:
4976host_os=$*
4977IFS=$ac_save_IFS
4978case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4979
4980
4981# Backslashify metacharacters that are still active within
4982# double-quoted strings.
4983sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4984
4985# Same as above, but do not quote variable references.
4986double_quote_subst='s/\(["`\\]\)/\\\1/g'
4987
4988# Sed substitution to delay expansion of an escaped shell variable in a
4989# double_quote_subst'ed string.
4990delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4991
4992# Sed substitution to delay expansion of an escaped single quote.
4993delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4994
4995# Sed substitution to avoid accidental globbing in evaled expressions
4996no_glob_subst='s/\*/\\\*/g'
4997
4998ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4999ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5000ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5001
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5003$as_echo_n "checking how to print strings... " >&6; }
5004# Test print first, because it will be a builtin if present.
5005if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5006   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5007  ECHO='print -r --'
5008elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5009  ECHO='printf %s\n'
5010else
5011  # Use this function as a fallback that always works.
5012  func_fallback_echo ()
5013  {
5014    eval 'cat <<_LTECHO_EOF
5015$1
5016_LTECHO_EOF'
5017  }
5018  ECHO='func_fallback_echo'
5019fi
5020
5021# func_echo_all arg...
5022# Invoke $ECHO with all args, space-separated.
5023func_echo_all ()
5024{
5025    $ECHO ""
5026}
5027
5028case $ECHO in
5029  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5030$as_echo "printf" >&6; } ;;
5031  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5032$as_echo "print -r" >&6; } ;;
5033  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5034$as_echo "cat" >&6; } ;;
5035esac
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5051$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5052if ${ac_cv_path_SED+:} false; then :
5053  $as_echo_n "(cached) " >&6
5054else
5055            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5056     for ac_i in 1 2 3 4 5 6 7; do
5057       ac_script="$ac_script$as_nl$ac_script"
5058     done
5059     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5060     { ac_script=; unset ac_script;}
5061     if test -z "$SED"; then
5062  ac_path_SED_found=false
5063  # Loop through the user's path and test for each of PROGNAME-LIST
5064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067  IFS=$as_save_IFS
5068  test -z "$as_dir" && as_dir=.
5069    for ac_prog in sed gsed; do
5070    for ac_exec_ext in '' $ac_executable_extensions; do
5071      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5072      as_fn_executable_p "$ac_path_SED" || continue
5073# Check for GNU ac_path_SED and select it if it is found.
5074  # Check for GNU $ac_path_SED
5075case `"$ac_path_SED" --version 2>&1` in
5076*GNU*)
5077  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5078*)
5079  ac_count=0
5080  $as_echo_n 0123456789 >"conftest.in"
5081  while :
5082  do
5083    cat "conftest.in" "conftest.in" >"conftest.tmp"
5084    mv "conftest.tmp" "conftest.in"
5085    cp "conftest.in" "conftest.nl"
5086    $as_echo '' >> "conftest.nl"
5087    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5088    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5089    as_fn_arith $ac_count + 1 && ac_count=$as_val
5090    if test $ac_count -gt ${ac_path_SED_max-0}; then
5091      # Best one so far, save it but keep looking for a better one
5092      ac_cv_path_SED="$ac_path_SED"
5093      ac_path_SED_max=$ac_count
5094    fi
5095    # 10*(2^10) chars as input seems more than enough
5096    test $ac_count -gt 10 && break
5097  done
5098  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5099esac
5100
5101      $ac_path_SED_found && break 3
5102    done
5103  done
5104  done
5105IFS=$as_save_IFS
5106  if test -z "$ac_cv_path_SED"; then
5107    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5108  fi
5109else
5110  ac_cv_path_SED=$SED
5111fi
5112
5113fi
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5115$as_echo "$ac_cv_path_SED" >&6; }
5116 SED="$ac_cv_path_SED"
5117  rm -f conftest.sed
5118
5119test -z "$SED" && SED=sed
5120Xsed="$SED -e 1s/^X//"
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5133$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5134if ${ac_cv_path_GREP+:} false; then :
5135  $as_echo_n "(cached) " >&6
5136else
5137  if test -z "$GREP"; then
5138  ac_path_GREP_found=false
5139  # Loop through the user's path and test for each of PROGNAME-LIST
5140  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5142do
5143  IFS=$as_save_IFS
5144  test -z "$as_dir" && as_dir=.
5145    for ac_prog in grep ggrep; do
5146    for ac_exec_ext in '' $ac_executable_extensions; do
5147      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5148      as_fn_executable_p "$ac_path_GREP" || continue
5149# Check for GNU ac_path_GREP and select it if it is found.
5150  # Check for GNU $ac_path_GREP
5151case `"$ac_path_GREP" --version 2>&1` in
5152*GNU*)
5153  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5154*)
5155  ac_count=0
5156  $as_echo_n 0123456789 >"conftest.in"
5157  while :
5158  do
5159    cat "conftest.in" "conftest.in" >"conftest.tmp"
5160    mv "conftest.tmp" "conftest.in"
5161    cp "conftest.in" "conftest.nl"
5162    $as_echo 'GREP' >> "conftest.nl"
5163    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5164    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5165    as_fn_arith $ac_count + 1 && ac_count=$as_val
5166    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5167      # Best one so far, save it but keep looking for a better one
5168      ac_cv_path_GREP="$ac_path_GREP"
5169      ac_path_GREP_max=$ac_count
5170    fi
5171    # 10*(2^10) chars as input seems more than enough
5172    test $ac_count -gt 10 && break
5173  done
5174  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5175esac
5176
5177      $ac_path_GREP_found && break 3
5178    done
5179  done
5180  done
5181IFS=$as_save_IFS
5182  if test -z "$ac_cv_path_GREP"; then
5183    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5184  fi
5185else
5186  ac_cv_path_GREP=$GREP
5187fi
5188
5189fi
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5191$as_echo "$ac_cv_path_GREP" >&6; }
5192 GREP="$ac_cv_path_GREP"
5193
5194
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5196$as_echo_n "checking for egrep... " >&6; }
5197if ${ac_cv_path_EGREP+:} false; then :
5198  $as_echo_n "(cached) " >&6
5199else
5200  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5201   then ac_cv_path_EGREP="$GREP -E"
5202   else
5203     if test -z "$EGREP"; then
5204  ac_path_EGREP_found=false
5205  # Loop through the user's path and test for each of PROGNAME-LIST
5206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5208do
5209  IFS=$as_save_IFS
5210  test -z "$as_dir" && as_dir=.
5211    for ac_prog in egrep; do
5212    for ac_exec_ext in '' $ac_executable_extensions; do
5213      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5214      as_fn_executable_p "$ac_path_EGREP" || continue
5215# Check for GNU ac_path_EGREP and select it if it is found.
5216  # Check for GNU $ac_path_EGREP
5217case `"$ac_path_EGREP" --version 2>&1` in
5218*GNU*)
5219  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5220*)
5221  ac_count=0
5222  $as_echo_n 0123456789 >"conftest.in"
5223  while :
5224  do
5225    cat "conftest.in" "conftest.in" >"conftest.tmp"
5226    mv "conftest.tmp" "conftest.in"
5227    cp "conftest.in" "conftest.nl"
5228    $as_echo 'EGREP' >> "conftest.nl"
5229    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5230    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5231    as_fn_arith $ac_count + 1 && ac_count=$as_val
5232    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5233      # Best one so far, save it but keep looking for a better one
5234      ac_cv_path_EGREP="$ac_path_EGREP"
5235      ac_path_EGREP_max=$ac_count
5236    fi
5237    # 10*(2^10) chars as input seems more than enough
5238    test $ac_count -gt 10 && break
5239  done
5240  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5241esac
5242
5243      $ac_path_EGREP_found && break 3
5244    done
5245  done
5246  done
5247IFS=$as_save_IFS
5248  if test -z "$ac_cv_path_EGREP"; then
5249    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5250  fi
5251else
5252  ac_cv_path_EGREP=$EGREP
5253fi
5254
5255   fi
5256fi
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5258$as_echo "$ac_cv_path_EGREP" >&6; }
5259 EGREP="$ac_cv_path_EGREP"
5260
5261
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5263$as_echo_n "checking for fgrep... " >&6; }
5264if ${ac_cv_path_FGREP+:} false; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5268   then ac_cv_path_FGREP="$GREP -F"
5269   else
5270     if test -z "$FGREP"; then
5271  ac_path_FGREP_found=false
5272  # Loop through the user's path and test for each of PROGNAME-LIST
5273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5275do
5276  IFS=$as_save_IFS
5277  test -z "$as_dir" && as_dir=.
5278    for ac_prog in fgrep; do
5279    for ac_exec_ext in '' $ac_executable_extensions; do
5280      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5281      as_fn_executable_p "$ac_path_FGREP" || continue
5282# Check for GNU ac_path_FGREP and select it if it is found.
5283  # Check for GNU $ac_path_FGREP
5284case `"$ac_path_FGREP" --version 2>&1` in
5285*GNU*)
5286  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5287*)
5288  ac_count=0
5289  $as_echo_n 0123456789 >"conftest.in"
5290  while :
5291  do
5292    cat "conftest.in" "conftest.in" >"conftest.tmp"
5293    mv "conftest.tmp" "conftest.in"
5294    cp "conftest.in" "conftest.nl"
5295    $as_echo 'FGREP' >> "conftest.nl"
5296    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5297    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5298    as_fn_arith $ac_count + 1 && ac_count=$as_val
5299    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5300      # Best one so far, save it but keep looking for a better one
5301      ac_cv_path_FGREP="$ac_path_FGREP"
5302      ac_path_FGREP_max=$ac_count
5303    fi
5304    # 10*(2^10) chars as input seems more than enough
5305    test $ac_count -gt 10 && break
5306  done
5307  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5308esac
5309
5310      $ac_path_FGREP_found && break 3
5311    done
5312  done
5313  done
5314IFS=$as_save_IFS
5315  if test -z "$ac_cv_path_FGREP"; then
5316    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5317  fi
5318else
5319  ac_cv_path_FGREP=$FGREP
5320fi
5321
5322   fi
5323fi
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5325$as_echo "$ac_cv_path_FGREP" >&6; }
5326 FGREP="$ac_cv_path_FGREP"
5327
5328
5329test -z "$GREP" && GREP=grep
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349# Check whether --with-gnu-ld was given.
5350if test "${with_gnu_ld+set}" = set; then :
5351  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5352else
5353  with_gnu_ld=no
5354fi
5355
5356ac_prog=ld
5357if test yes = "$GCC"; then
5358  # Check if gcc -print-prog-name=ld gives a path.
5359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5360$as_echo_n "checking for ld used by $CC... " >&6; }
5361  case $host in
5362  *-*-mingw*)
5363    # gcc leaves a trailing carriage return, which upsets mingw
5364    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5365  *)
5366    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5367  esac
5368  case $ac_prog in
5369    # Accept absolute paths.
5370    [\\/]* | ?:[\\/]*)
5371      re_direlt='/[^/][^/]*/\.\./'
5372      # Canonicalize the pathname of ld
5373      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5374      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5375	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5376      done
5377      test -z "$LD" && LD=$ac_prog
5378      ;;
5379  "")
5380    # If it fails, then pretend we aren't using GCC.
5381    ac_prog=ld
5382    ;;
5383  *)
5384    # If it is relative, then search for the first ld in PATH.
5385    with_gnu_ld=unknown
5386    ;;
5387  esac
5388elif test yes = "$with_gnu_ld"; then
5389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5390$as_echo_n "checking for GNU ld... " >&6; }
5391else
5392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5393$as_echo_n "checking for non-GNU ld... " >&6; }
5394fi
5395if ${lt_cv_path_LD+:} false; then :
5396  $as_echo_n "(cached) " >&6
5397else
5398  if test -z "$LD"; then
5399  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5400  for ac_dir in $PATH; do
5401    IFS=$lt_save_ifs
5402    test -z "$ac_dir" && ac_dir=.
5403    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5404      lt_cv_path_LD=$ac_dir/$ac_prog
5405      # Check to see if the program is GNU ld.  I'd rather use --version,
5406      # but apparently some variants of GNU ld only accept -v.
5407      # Break only if it was the GNU/non-GNU ld that we prefer.
5408      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5409      *GNU* | *'with BFD'*)
5410	test no != "$with_gnu_ld" && break
5411	;;
5412      *)
5413	test yes != "$with_gnu_ld" && break
5414	;;
5415      esac
5416    fi
5417  done
5418  IFS=$lt_save_ifs
5419else
5420  lt_cv_path_LD=$LD # Let the user override the test with a path.
5421fi
5422fi
5423
5424LD=$lt_cv_path_LD
5425if test -n "$LD"; then
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5427$as_echo "$LD" >&6; }
5428else
5429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430$as_echo "no" >&6; }
5431fi
5432test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5434$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5435if ${lt_cv_prog_gnu_ld+:} false; then :
5436  $as_echo_n "(cached) " >&6
5437else
5438  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5439case `$LD -v 2>&1 </dev/null` in
5440*GNU* | *'with BFD'*)
5441  lt_cv_prog_gnu_ld=yes
5442  ;;
5443*)
5444  lt_cv_prog_gnu_ld=no
5445  ;;
5446esac
5447fi
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5449$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5450with_gnu_ld=$lt_cv_prog_gnu_ld
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5461$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5462if ${lt_cv_path_NM+:} false; then :
5463  $as_echo_n "(cached) " >&6
5464else
5465  if test -n "$NM"; then
5466  # Let the user override the test.
5467  lt_cv_path_NM=$NM
5468else
5469  lt_nm_to_check=${ac_tool_prefix}nm
5470  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5471    lt_nm_to_check="$lt_nm_to_check nm"
5472  fi
5473  for lt_tmp_nm in $lt_nm_to_check; do
5474    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5475    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5476      IFS=$lt_save_ifs
5477      test -z "$ac_dir" && ac_dir=.
5478      tmp_nm=$ac_dir/$lt_tmp_nm
5479      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5480	# Check to see if the nm accepts a BSD-compat flag.
5481	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5482	#   nm: unknown option "B" ignored
5483	# Tru64's nm complains that /dev/null is an invalid object file
5484	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5485	case $build_os in
5486	mingw*) lt_bad_file=conftest.nm/nofile ;;
5487	*) lt_bad_file=/dev/null ;;
5488	esac
5489	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5490	*$lt_bad_file* | *'Invalid file or object type'*)
5491	  lt_cv_path_NM="$tmp_nm -B"
5492	  break 2
5493	  ;;
5494	*)
5495	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5496	  */dev/null*)
5497	    lt_cv_path_NM="$tmp_nm -p"
5498	    break 2
5499	    ;;
5500	  *)
5501	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5502	    continue # so that we can try to find one that supports BSD flags
5503	    ;;
5504	  esac
5505	  ;;
5506	esac
5507      fi
5508    done
5509    IFS=$lt_save_ifs
5510  done
5511  : ${lt_cv_path_NM=no}
5512fi
5513fi
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5515$as_echo "$lt_cv_path_NM" >&6; }
5516if test no != "$lt_cv_path_NM"; then
5517  NM=$lt_cv_path_NM
5518else
5519  # Didn't find any BSD compatible name lister, look for dumpbin.
5520  if test -n "$DUMPBIN"; then :
5521    # Let the user override the test.
5522  else
5523    if test -n "$ac_tool_prefix"; then
5524  for ac_prog in dumpbin "link -dump"
5525  do
5526    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5527set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529$as_echo_n "checking for $ac_word... " >&6; }
5530if ${ac_cv_prog_DUMPBIN+:} false; then :
5531  $as_echo_n "(cached) " >&6
5532else
5533  if test -n "$DUMPBIN"; then
5534  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5535else
5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537for as_dir in $PATH
5538do
5539  IFS=$as_save_IFS
5540  test -z "$as_dir" && as_dir=.
5541    for ac_exec_ext in '' $ac_executable_extensions; do
5542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545    break 2
5546  fi
5547done
5548  done
5549IFS=$as_save_IFS
5550
5551fi
5552fi
5553DUMPBIN=$ac_cv_prog_DUMPBIN
5554if test -n "$DUMPBIN"; then
5555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5556$as_echo "$DUMPBIN" >&6; }
5557else
5558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559$as_echo "no" >&6; }
5560fi
5561
5562
5563    test -n "$DUMPBIN" && break
5564  done
5565fi
5566if test -z "$DUMPBIN"; then
5567  ac_ct_DUMPBIN=$DUMPBIN
5568  for ac_prog in dumpbin "link -dump"
5569do
5570  # Extract the first word of "$ac_prog", so it can be a program name with args.
5571set dummy $ac_prog; ac_word=$2
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573$as_echo_n "checking for $ac_word... " >&6; }
5574if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  if test -n "$ac_ct_DUMPBIN"; then
5578  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5579else
5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583  IFS=$as_save_IFS
5584  test -z "$as_dir" && as_dir=.
5585    for ac_exec_ext in '' $ac_executable_extensions; do
5586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589    break 2
5590  fi
5591done
5592  done
5593IFS=$as_save_IFS
5594
5595fi
5596fi
5597ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5598if test -n "$ac_ct_DUMPBIN"; then
5599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5600$as_echo "$ac_ct_DUMPBIN" >&6; }
5601else
5602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603$as_echo "no" >&6; }
5604fi
5605
5606
5607  test -n "$ac_ct_DUMPBIN" && break
5608done
5609
5610  if test "x$ac_ct_DUMPBIN" = x; then
5611    DUMPBIN=":"
5612  else
5613    case $cross_compiling:$ac_tool_warned in
5614yes:)
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5617ac_tool_warned=yes ;;
5618esac
5619    DUMPBIN=$ac_ct_DUMPBIN
5620  fi
5621fi
5622
5623    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5624    *COFF*)
5625      DUMPBIN="$DUMPBIN -symbols -headers"
5626      ;;
5627    *)
5628      DUMPBIN=:
5629      ;;
5630    esac
5631  fi
5632
5633  if test : != "$DUMPBIN"; then
5634    NM=$DUMPBIN
5635  fi
5636fi
5637test -z "$NM" && NM=nm
5638
5639
5640
5641
5642
5643
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5645$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5646if ${lt_cv_nm_interface+:} false; then :
5647  $as_echo_n "(cached) " >&6
5648else
5649  lt_cv_nm_interface="BSD nm"
5650  echo "int some_variable = 0;" > conftest.$ac_ext
5651  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5652  (eval "$ac_compile" 2>conftest.err)
5653  cat conftest.err >&5
5654  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5655  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5656  cat conftest.err >&5
5657  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5658  cat conftest.out >&5
5659  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5660    lt_cv_nm_interface="MS dumpbin"
5661  fi
5662  rm -f conftest*
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5665$as_echo "$lt_cv_nm_interface" >&6; }
5666
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5668$as_echo_n "checking whether ln -s works... " >&6; }
5669LN_S=$as_ln_s
5670if test "$LN_S" = "ln -s"; then
5671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5672$as_echo "yes" >&6; }
5673else
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5675$as_echo "no, using $LN_S" >&6; }
5676fi
5677
5678# find the maximum length of command line arguments
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5680$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5681if ${lt_cv_sys_max_cmd_len+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684    i=0
5685  teststring=ABCD
5686
5687  case $build_os in
5688  msdosdjgpp*)
5689    # On DJGPP, this test can blow up pretty badly due to problems in libc
5690    # (any single argument exceeding 2000 bytes causes a buffer overrun
5691    # during glob expansion).  Even if it were fixed, the result of this
5692    # check would be larger than it should be.
5693    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5694    ;;
5695
5696  gnu*)
5697    # Under GNU Hurd, this test is not required because there is
5698    # no limit to the length of command line arguments.
5699    # Libtool will interpret -1 as no limit whatsoever
5700    lt_cv_sys_max_cmd_len=-1;
5701    ;;
5702
5703  cygwin* | mingw* | cegcc*)
5704    # On Win9x/ME, this test blows up -- it succeeds, but takes
5705    # about 5 minutes as the teststring grows exponentially.
5706    # Worse, since 9x/ME are not pre-emptively multitasking,
5707    # you end up with a "frozen" computer, even though with patience
5708    # the test eventually succeeds (with a max line length of 256k).
5709    # Instead, let's just punt: use the minimum linelength reported by
5710    # all of the supported platforms: 8192 (on NT/2K/XP).
5711    lt_cv_sys_max_cmd_len=8192;
5712    ;;
5713
5714  mint*)
5715    # On MiNT this can take a long time and run out of memory.
5716    lt_cv_sys_max_cmd_len=8192;
5717    ;;
5718
5719  amigaos*)
5720    # On AmigaOS with pdksh, this test takes hours, literally.
5721    # So we just punt and use a minimum line length of 8192.
5722    lt_cv_sys_max_cmd_len=8192;
5723    ;;
5724
5725  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5726    # This has been around since 386BSD, at least.  Likely further.
5727    if test -x /sbin/sysctl; then
5728      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5729    elif test -x /usr/sbin/sysctl; then
5730      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5731    else
5732      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5733    fi
5734    # And add a safety zone
5735    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5736    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5737    ;;
5738
5739  interix*)
5740    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5741    lt_cv_sys_max_cmd_len=196608
5742    ;;
5743
5744  os2*)
5745    # The test takes a long time on OS/2.
5746    lt_cv_sys_max_cmd_len=8192
5747    ;;
5748
5749  osf*)
5750    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5751    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5752    # nice to cause kernel panics so lets avoid the loop below.
5753    # First set a reasonable default.
5754    lt_cv_sys_max_cmd_len=16384
5755    #
5756    if test -x /sbin/sysconfig; then
5757      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5758        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5759      esac
5760    fi
5761    ;;
5762  sco3.2v5*)
5763    lt_cv_sys_max_cmd_len=102400
5764    ;;
5765  sysv5* | sco5v6* | sysv4.2uw2*)
5766    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5767    if test -n "$kargmax"; then
5768      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5769    else
5770      lt_cv_sys_max_cmd_len=32768
5771    fi
5772    ;;
5773  *)
5774    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5775    if test -n "$lt_cv_sys_max_cmd_len" && \
5776       test undefined != "$lt_cv_sys_max_cmd_len"; then
5777      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5778      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5779    else
5780      # Make teststring a little bigger before we do anything with it.
5781      # a 1K string should be a reasonable start.
5782      for i in 1 2 3 4 5 6 7 8; do
5783        teststring=$teststring$teststring
5784      done
5785      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5786      # If test is not a shell built-in, we'll probably end up computing a
5787      # maximum length that is only half of the actual maximum length, but
5788      # we can't tell.
5789      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5790	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5791	      test 17 != "$i" # 1/2 MB should be enough
5792      do
5793        i=`expr $i + 1`
5794        teststring=$teststring$teststring
5795      done
5796      # Only check the string length outside the loop.
5797      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5798      teststring=
5799      # Add a significant safety factor because C++ compilers can tack on
5800      # massive amounts of additional arguments before passing them to the
5801      # linker.  It appears as though 1/2 is a usable value.
5802      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5803    fi
5804    ;;
5805  esac
5806
5807fi
5808
5809if test -n "$lt_cv_sys_max_cmd_len"; then
5810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5811$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5812else
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5814$as_echo "none" >&6; }
5815fi
5816max_cmd_len=$lt_cv_sys_max_cmd_len
5817
5818
5819
5820
5821
5822
5823: ${CP="cp -f"}
5824: ${MV="mv -f"}
5825: ${RM="rm -f"}
5826
5827if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5828  lt_unset=unset
5829else
5830  lt_unset=false
5831fi
5832
5833
5834
5835
5836
5837# test EBCDIC or ASCII
5838case `echo X|tr X '\101'` in
5839 A) # ASCII based system
5840    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5841  lt_SP2NL='tr \040 \012'
5842  lt_NL2SP='tr \015\012 \040\040'
5843  ;;
5844 *) # EBCDIC based system
5845  lt_SP2NL='tr \100 \n'
5846  lt_NL2SP='tr \r\n \100\100'
5847  ;;
5848esac
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5859$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5860if ${lt_cv_to_host_file_cmd+:} false; then :
5861  $as_echo_n "(cached) " >&6
5862else
5863  case $host in
5864  *-*-mingw* )
5865    case $build in
5866      *-*-mingw* ) # actually msys
5867        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5868        ;;
5869      *-*-cygwin* )
5870        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5871        ;;
5872      * ) # otherwise, assume *nix
5873        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5874        ;;
5875    esac
5876    ;;
5877  *-*-cygwin* )
5878    case $build in
5879      *-*-mingw* ) # actually msys
5880        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5881        ;;
5882      *-*-cygwin* )
5883        lt_cv_to_host_file_cmd=func_convert_file_noop
5884        ;;
5885      * ) # otherwise, assume *nix
5886        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5887        ;;
5888    esac
5889    ;;
5890  * ) # unhandled hosts (and "normal" native builds)
5891    lt_cv_to_host_file_cmd=func_convert_file_noop
5892    ;;
5893esac
5894
5895fi
5896
5897to_host_file_cmd=$lt_cv_to_host_file_cmd
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5899$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5900
5901
5902
5903
5904
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5906$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5907if ${lt_cv_to_tool_file_cmd+:} false; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910  #assume ordinary cross tools, or native build.
5911lt_cv_to_tool_file_cmd=func_convert_file_noop
5912case $host in
5913  *-*-mingw* )
5914    case $build in
5915      *-*-mingw* ) # actually msys
5916        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5917        ;;
5918    esac
5919    ;;
5920esac
5921
5922fi
5923
5924to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5926$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5927
5928
5929
5930
5931
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5933$as_echo_n "checking for $LD option to reload object files... " >&6; }
5934if ${lt_cv_ld_reload_flag+:} false; then :
5935  $as_echo_n "(cached) " >&6
5936else
5937  lt_cv_ld_reload_flag='-r'
5938fi
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5940$as_echo "$lt_cv_ld_reload_flag" >&6; }
5941reload_flag=$lt_cv_ld_reload_flag
5942case $reload_flag in
5943"" | " "*) ;;
5944*) reload_flag=" $reload_flag" ;;
5945esac
5946reload_cmds='$LD$reload_flag -o $output$reload_objs'
5947case $host_os in
5948  cygwin* | mingw* | pw32* | cegcc*)
5949    if test yes != "$GCC"; then
5950      reload_cmds=false
5951    fi
5952    ;;
5953  darwin*)
5954    if test yes = "$GCC"; then
5955      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5956    else
5957      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5958    fi
5959    ;;
5960esac
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970if test -n "$ac_tool_prefix"; then
5971  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5972set dummy ${ac_tool_prefix}objdump; ac_word=$2
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974$as_echo_n "checking for $ac_word... " >&6; }
5975if ${ac_cv_prog_OBJDUMP+:} false; then :
5976  $as_echo_n "(cached) " >&6
5977else
5978  if test -n "$OBJDUMP"; then
5979  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5980else
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984  IFS=$as_save_IFS
5985  test -z "$as_dir" && as_dir=.
5986    for ac_exec_ext in '' $ac_executable_extensions; do
5987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990    break 2
5991  fi
5992done
5993  done
5994IFS=$as_save_IFS
5995
5996fi
5997fi
5998OBJDUMP=$ac_cv_prog_OBJDUMP
5999if test -n "$OBJDUMP"; then
6000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6001$as_echo "$OBJDUMP" >&6; }
6002else
6003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004$as_echo "no" >&6; }
6005fi
6006
6007
6008fi
6009if test -z "$ac_cv_prog_OBJDUMP"; then
6010  ac_ct_OBJDUMP=$OBJDUMP
6011  # Extract the first word of "objdump", so it can be a program name with args.
6012set dummy objdump; ac_word=$2
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014$as_echo_n "checking for $ac_word... " >&6; }
6015if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6016  $as_echo_n "(cached) " >&6
6017else
6018  if test -n "$ac_ct_OBJDUMP"; then
6019  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024  IFS=$as_save_IFS
6025  test -z "$as_dir" && as_dir=.
6026    for ac_exec_ext in '' $ac_executable_extensions; do
6027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030    break 2
6031  fi
6032done
6033  done
6034IFS=$as_save_IFS
6035
6036fi
6037fi
6038ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6039if test -n "$ac_ct_OBJDUMP"; then
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6041$as_echo "$ac_ct_OBJDUMP" >&6; }
6042else
6043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044$as_echo "no" >&6; }
6045fi
6046
6047  if test "x$ac_ct_OBJDUMP" = x; then
6048    OBJDUMP="false"
6049  else
6050    case $cross_compiling:$ac_tool_warned in
6051yes:)
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054ac_tool_warned=yes ;;
6055esac
6056    OBJDUMP=$ac_ct_OBJDUMP
6057  fi
6058else
6059  OBJDUMP="$ac_cv_prog_OBJDUMP"
6060fi
6061
6062test -z "$OBJDUMP" && OBJDUMP=objdump
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6073$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6074if ${lt_cv_deplibs_check_method+:} false; then :
6075  $as_echo_n "(cached) " >&6
6076else
6077  lt_cv_file_magic_cmd='$MAGIC_CMD'
6078lt_cv_file_magic_test_file=
6079lt_cv_deplibs_check_method='unknown'
6080# Need to set the preceding variable on all platforms that support
6081# interlibrary dependencies.
6082# 'none' -- dependencies not supported.
6083# 'unknown' -- same as none, but documents that we really don't know.
6084# 'pass_all' -- all dependencies passed with no checks.
6085# 'test_compile' -- check by making test program.
6086# 'file_magic [[regex]]' -- check by looking for files in library path
6087# that responds to the $file_magic_cmd with a given extended regex.
6088# If you have 'file' or equivalent on your system and you're not sure
6089# whether 'pass_all' will *always* work, you probably want this one.
6090
6091case $host_os in
6092aix[4-9]*)
6093  lt_cv_deplibs_check_method=pass_all
6094  ;;
6095
6096beos*)
6097  lt_cv_deplibs_check_method=pass_all
6098  ;;
6099
6100bsdi[45]*)
6101  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6102  lt_cv_file_magic_cmd='/usr/bin/file -L'
6103  lt_cv_file_magic_test_file=/shlib/libc.so
6104  ;;
6105
6106cygwin*)
6107  # func_win32_libid is a shell function defined in ltmain.sh
6108  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6109  lt_cv_file_magic_cmd='func_win32_libid'
6110  ;;
6111
6112mingw* | pw32*)
6113  # Base MSYS/MinGW do not provide the 'file' command needed by
6114  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6115  # unless we find 'file', for example because we are cross-compiling.
6116  if ( file / ) >/dev/null 2>&1; then
6117    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6118    lt_cv_file_magic_cmd='func_win32_libid'
6119  else
6120    # Keep this pattern in sync with the one in func_win32_libid.
6121    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6122    lt_cv_file_magic_cmd='$OBJDUMP -f'
6123  fi
6124  ;;
6125
6126cegcc*)
6127  # use the weaker test based on 'objdump'. See mingw*.
6128  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6129  lt_cv_file_magic_cmd='$OBJDUMP -f'
6130  ;;
6131
6132darwin* | rhapsody*)
6133  lt_cv_deplibs_check_method=pass_all
6134  ;;
6135
6136freebsd* | dragonfly*)
6137  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6138    case $host_cpu in
6139    i*86 )
6140      # Not sure whether the presence of OpenBSD here was a mistake.
6141      # Let's accept both of them until this is cleared up.
6142      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6143      lt_cv_file_magic_cmd=/usr/bin/file
6144      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6145      ;;
6146    esac
6147  else
6148    lt_cv_deplibs_check_method=pass_all
6149  fi
6150  ;;
6151
6152haiku*)
6153  lt_cv_deplibs_check_method=pass_all
6154  ;;
6155
6156hpux10.20* | hpux11*)
6157  lt_cv_file_magic_cmd=/usr/bin/file
6158  case $host_cpu in
6159  ia64*)
6160    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6161    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6162    ;;
6163  hppa*64*)
6164    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]'
6165    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6166    ;;
6167  *)
6168    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6169    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6170    ;;
6171  esac
6172  ;;
6173
6174interix[3-9]*)
6175  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6176  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6177  ;;
6178
6179irix5* | irix6* | nonstopux*)
6180  case $LD in
6181  *-32|*"-32 ") libmagic=32-bit;;
6182  *-n32|*"-n32 ") libmagic=N32;;
6183  *-64|*"-64 ") libmagic=64-bit;;
6184  *) libmagic=never-match;;
6185  esac
6186  lt_cv_deplibs_check_method=pass_all
6187  ;;
6188
6189# This must be glibc/ELF.
6190linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6191  lt_cv_deplibs_check_method=pass_all
6192  ;;
6193
6194netbsd* | netbsdelf*-gnu)
6195  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6196    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6197  else
6198    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6199  fi
6200  ;;
6201
6202newos6*)
6203  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6204  lt_cv_file_magic_cmd=/usr/bin/file
6205  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6206  ;;
6207
6208*nto* | *qnx*)
6209  lt_cv_deplibs_check_method=pass_all
6210  ;;
6211
6212openbsd* | bitrig*)
6213  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6214    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6215  else
6216    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6217  fi
6218  ;;
6219
6220osf3* | osf4* | osf5*)
6221  lt_cv_deplibs_check_method=pass_all
6222  ;;
6223
6224rdos*)
6225  lt_cv_deplibs_check_method=pass_all
6226  ;;
6227
6228solaris*)
6229  lt_cv_deplibs_check_method=pass_all
6230  ;;
6231
6232sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6233  lt_cv_deplibs_check_method=pass_all
6234  ;;
6235
6236sysv4 | sysv4.3*)
6237  case $host_vendor in
6238  motorola)
6239    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]'
6240    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6241    ;;
6242  ncr)
6243    lt_cv_deplibs_check_method=pass_all
6244    ;;
6245  sequent)
6246    lt_cv_file_magic_cmd='/bin/file'
6247    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6248    ;;
6249  sni)
6250    lt_cv_file_magic_cmd='/bin/file'
6251    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6252    lt_cv_file_magic_test_file=/lib/libc.so
6253    ;;
6254  siemens)
6255    lt_cv_deplibs_check_method=pass_all
6256    ;;
6257  pc)
6258    lt_cv_deplibs_check_method=pass_all
6259    ;;
6260  esac
6261  ;;
6262
6263tpf*)
6264  lt_cv_deplibs_check_method=pass_all
6265  ;;
6266os2*)
6267  lt_cv_deplibs_check_method=pass_all
6268  ;;
6269esac
6270
6271fi
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6273$as_echo "$lt_cv_deplibs_check_method" >&6; }
6274
6275file_magic_glob=
6276want_nocaseglob=no
6277if test "$build" = "$host"; then
6278  case $host_os in
6279  mingw* | pw32*)
6280    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6281      want_nocaseglob=yes
6282    else
6283      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6284    fi
6285    ;;
6286  esac
6287fi
6288
6289file_magic_cmd=$lt_cv_file_magic_cmd
6290deplibs_check_method=$lt_cv_deplibs_check_method
6291test -z "$deplibs_check_method" && deplibs_check_method=unknown
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314if test -n "$ac_tool_prefix"; then
6315  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6316set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318$as_echo_n "checking for $ac_word... " >&6; }
6319if ${ac_cv_prog_DLLTOOL+:} false; then :
6320  $as_echo_n "(cached) " >&6
6321else
6322  if test -n "$DLLTOOL"; then
6323  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6324else
6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326for as_dir in $PATH
6327do
6328  IFS=$as_save_IFS
6329  test -z "$as_dir" && as_dir=.
6330    for ac_exec_ext in '' $ac_executable_extensions; do
6331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334    break 2
6335  fi
6336done
6337  done
6338IFS=$as_save_IFS
6339
6340fi
6341fi
6342DLLTOOL=$ac_cv_prog_DLLTOOL
6343if test -n "$DLLTOOL"; then
6344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6345$as_echo "$DLLTOOL" >&6; }
6346else
6347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348$as_echo "no" >&6; }
6349fi
6350
6351
6352fi
6353if test -z "$ac_cv_prog_DLLTOOL"; then
6354  ac_ct_DLLTOOL=$DLLTOOL
6355  # Extract the first word of "dlltool", so it can be a program name with args.
6356set dummy dlltool; ac_word=$2
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358$as_echo_n "checking for $ac_word... " >&6; }
6359if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6360  $as_echo_n "(cached) " >&6
6361else
6362  if test -n "$ac_ct_DLLTOOL"; then
6363  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6364else
6365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368  IFS=$as_save_IFS
6369  test -z "$as_dir" && as_dir=.
6370    for ac_exec_ext in '' $ac_executable_extensions; do
6371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374    break 2
6375  fi
6376done
6377  done
6378IFS=$as_save_IFS
6379
6380fi
6381fi
6382ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6383if test -n "$ac_ct_DLLTOOL"; then
6384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6385$as_echo "$ac_ct_DLLTOOL" >&6; }
6386else
6387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388$as_echo "no" >&6; }
6389fi
6390
6391  if test "x$ac_ct_DLLTOOL" = x; then
6392    DLLTOOL="false"
6393  else
6394    case $cross_compiling:$ac_tool_warned in
6395yes:)
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398ac_tool_warned=yes ;;
6399esac
6400    DLLTOOL=$ac_ct_DLLTOOL
6401  fi
6402else
6403  DLLTOOL="$ac_cv_prog_DLLTOOL"
6404fi
6405
6406test -z "$DLLTOOL" && DLLTOOL=dlltool
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6418$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6419if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6420  $as_echo_n "(cached) " >&6
6421else
6422  lt_cv_sharedlib_from_linklib_cmd='unknown'
6423
6424case $host_os in
6425cygwin* | mingw* | pw32* | cegcc*)
6426  # two different shell functions defined in ltmain.sh;
6427  # decide which one to use based on capabilities of $DLLTOOL
6428  case `$DLLTOOL --help 2>&1` in
6429  *--identify-strict*)
6430    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6431    ;;
6432  *)
6433    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6434    ;;
6435  esac
6436  ;;
6437*)
6438  # fallback: assume linklib IS sharedlib
6439  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6440  ;;
6441esac
6442
6443fi
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6445$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6446sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6447test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6448
6449
6450
6451
6452
6453
6454
6455if test -n "$ac_tool_prefix"; then
6456  for ac_prog in ar
6457  do
6458    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6459set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461$as_echo_n "checking for $ac_word... " >&6; }
6462if ${ac_cv_prog_AR+:} false; then :
6463  $as_echo_n "(cached) " >&6
6464else
6465  if test -n "$AR"; then
6466  ac_cv_prog_AR="$AR" # Let the user override the test.
6467else
6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471  IFS=$as_save_IFS
6472  test -z "$as_dir" && as_dir=.
6473    for ac_exec_ext in '' $ac_executable_extensions; do
6474  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477    break 2
6478  fi
6479done
6480  done
6481IFS=$as_save_IFS
6482
6483fi
6484fi
6485AR=$ac_cv_prog_AR
6486if test -n "$AR"; then
6487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6488$as_echo "$AR" >&6; }
6489else
6490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491$as_echo "no" >&6; }
6492fi
6493
6494
6495    test -n "$AR" && break
6496  done
6497fi
6498if test -z "$AR"; then
6499  ac_ct_AR=$AR
6500  for ac_prog in ar
6501do
6502  # Extract the first word of "$ac_prog", so it can be a program name with args.
6503set dummy $ac_prog; ac_word=$2
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505$as_echo_n "checking for $ac_word... " >&6; }
6506if ${ac_cv_prog_ac_ct_AR+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  if test -n "$ac_ct_AR"; then
6510  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6511else
6512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in $PATH
6514do
6515  IFS=$as_save_IFS
6516  test -z "$as_dir" && as_dir=.
6517    for ac_exec_ext in '' $ac_executable_extensions; do
6518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519    ac_cv_prog_ac_ct_AR="$ac_prog"
6520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521    break 2
6522  fi
6523done
6524  done
6525IFS=$as_save_IFS
6526
6527fi
6528fi
6529ac_ct_AR=$ac_cv_prog_ac_ct_AR
6530if test -n "$ac_ct_AR"; then
6531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6532$as_echo "$ac_ct_AR" >&6; }
6533else
6534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535$as_echo "no" >&6; }
6536fi
6537
6538
6539  test -n "$ac_ct_AR" && break
6540done
6541
6542  if test "x$ac_ct_AR" = x; then
6543    AR="false"
6544  else
6545    case $cross_compiling:$ac_tool_warned in
6546yes:)
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6549ac_tool_warned=yes ;;
6550esac
6551    AR=$ac_ct_AR
6552  fi
6553fi
6554
6555: ${AR=ar}
6556: ${AR_FLAGS=cru}
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6569$as_echo_n "checking for archiver @FILE support... " >&6; }
6570if ${lt_cv_ar_at_file+:} false; then :
6571  $as_echo_n "(cached) " >&6
6572else
6573  lt_cv_ar_at_file=no
6574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576
6577int
6578main ()
6579{
6580
6581  ;
6582  return 0;
6583}
6584_ACEOF
6585if ac_fn_c_try_compile "$LINENO"; then :
6586  echo conftest.$ac_objext > conftest.lst
6587      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6588      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6589  (eval $lt_ar_try) 2>&5
6590  ac_status=$?
6591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592  test $ac_status = 0; }
6593      if test 0 -eq "$ac_status"; then
6594	# Ensure the archiver fails upon bogus file names.
6595	rm -f conftest.$ac_objext libconftest.a
6596	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6597  (eval $lt_ar_try) 2>&5
6598  ac_status=$?
6599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600  test $ac_status = 0; }
6601	if test 0 -ne "$ac_status"; then
6602          lt_cv_ar_at_file=@
6603        fi
6604      fi
6605      rm -f conftest.* libconftest.a
6606
6607fi
6608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609
6610fi
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6612$as_echo "$lt_cv_ar_at_file" >&6; }
6613
6614if test no = "$lt_cv_ar_at_file"; then
6615  archiver_list_spec=
6616else
6617  archiver_list_spec=$lt_cv_ar_at_file
6618fi
6619
6620
6621
6622
6623
6624
6625
6626if test -n "$ac_tool_prefix"; then
6627  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6628set dummy ${ac_tool_prefix}strip; ac_word=$2
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630$as_echo_n "checking for $ac_word... " >&6; }
6631if ${ac_cv_prog_STRIP+:} false; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634  if test -n "$STRIP"; then
6635  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640  IFS=$as_save_IFS
6641  test -z "$as_dir" && as_dir=.
6642    for ac_exec_ext in '' $ac_executable_extensions; do
6643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646    break 2
6647  fi
6648done
6649  done
6650IFS=$as_save_IFS
6651
6652fi
6653fi
6654STRIP=$ac_cv_prog_STRIP
6655if test -n "$STRIP"; then
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6657$as_echo "$STRIP" >&6; }
6658else
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660$as_echo "no" >&6; }
6661fi
6662
6663
6664fi
6665if test -z "$ac_cv_prog_STRIP"; then
6666  ac_ct_STRIP=$STRIP
6667  # Extract the first word of "strip", so it can be a program name with args.
6668set dummy strip; ac_word=$2
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670$as_echo_n "checking for $ac_word... " >&6; }
6671if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6672  $as_echo_n "(cached) " >&6
6673else
6674  if test -n "$ac_ct_STRIP"; then
6675  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680  IFS=$as_save_IFS
6681  test -z "$as_dir" && as_dir=.
6682    for ac_exec_ext in '' $ac_executable_extensions; do
6683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684    ac_cv_prog_ac_ct_STRIP="strip"
6685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686    break 2
6687  fi
6688done
6689  done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6695if test -n "$ac_ct_STRIP"; then
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6697$as_echo "$ac_ct_STRIP" >&6; }
6698else
6699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700$as_echo "no" >&6; }
6701fi
6702
6703  if test "x$ac_ct_STRIP" = x; then
6704    STRIP=":"
6705  else
6706    case $cross_compiling:$ac_tool_warned in
6707yes:)
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710ac_tool_warned=yes ;;
6711esac
6712    STRIP=$ac_ct_STRIP
6713  fi
6714else
6715  STRIP="$ac_cv_prog_STRIP"
6716fi
6717
6718test -z "$STRIP" && STRIP=:
6719
6720
6721
6722
6723
6724
6725if test -n "$ac_tool_prefix"; then
6726  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6727set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729$as_echo_n "checking for $ac_word... " >&6; }
6730if ${ac_cv_prog_RANLIB+:} false; then :
6731  $as_echo_n "(cached) " >&6
6732else
6733  if test -n "$RANLIB"; then
6734  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739  IFS=$as_save_IFS
6740  test -z "$as_dir" && as_dir=.
6741    for ac_exec_ext in '' $ac_executable_extensions; do
6742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745    break 2
6746  fi
6747done
6748  done
6749IFS=$as_save_IFS
6750
6751fi
6752fi
6753RANLIB=$ac_cv_prog_RANLIB
6754if test -n "$RANLIB"; then
6755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6756$as_echo "$RANLIB" >&6; }
6757else
6758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759$as_echo "no" >&6; }
6760fi
6761
6762
6763fi
6764if test -z "$ac_cv_prog_RANLIB"; then
6765  ac_ct_RANLIB=$RANLIB
6766  # Extract the first word of "ranlib", so it can be a program name with args.
6767set dummy ranlib; ac_word=$2
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769$as_echo_n "checking for $ac_word... " >&6; }
6770if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6771  $as_echo_n "(cached) " >&6
6772else
6773  if test -n "$ac_ct_RANLIB"; then
6774  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779  IFS=$as_save_IFS
6780  test -z "$as_dir" && as_dir=.
6781    for ac_exec_ext in '' $ac_executable_extensions; do
6782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783    ac_cv_prog_ac_ct_RANLIB="ranlib"
6784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785    break 2
6786  fi
6787done
6788  done
6789IFS=$as_save_IFS
6790
6791fi
6792fi
6793ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6794if test -n "$ac_ct_RANLIB"; then
6795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6796$as_echo "$ac_ct_RANLIB" >&6; }
6797else
6798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799$as_echo "no" >&6; }
6800fi
6801
6802  if test "x$ac_ct_RANLIB" = x; then
6803    RANLIB=":"
6804  else
6805    case $cross_compiling:$ac_tool_warned in
6806yes:)
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809ac_tool_warned=yes ;;
6810esac
6811    RANLIB=$ac_ct_RANLIB
6812  fi
6813else
6814  RANLIB="$ac_cv_prog_RANLIB"
6815fi
6816
6817test -z "$RANLIB" && RANLIB=:
6818
6819
6820
6821
6822
6823
6824# Determine commands to create old-style static archives.
6825old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6826old_postinstall_cmds='chmod 644 $oldlib'
6827old_postuninstall_cmds=
6828
6829if test -n "$RANLIB"; then
6830  case $host_os in
6831  bitrig* | openbsd*)
6832    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6833    ;;
6834  *)
6835    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6836    ;;
6837  esac
6838  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6839fi
6840
6841case $host_os in
6842  darwin*)
6843    lock_old_archive_extraction=yes ;;
6844  *)
6845    lock_old_archive_extraction=no ;;
6846esac
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886# If no C compiler was specified, use CC.
6887LTCC=${LTCC-"$CC"}
6888
6889# If no C compiler flags were specified, use CFLAGS.
6890LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6891
6892# Allow CC to be a program name with arguments.
6893compiler=$CC
6894
6895
6896# Check for command to grab the raw symbol name followed by C symbol from nm.
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6898$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6899if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902
6903# These are sane defaults that work on at least a few old systems.
6904# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6905
6906# Character class describing NM global symbol codes.
6907symcode='[BCDEGRST]'
6908
6909# Regexp to match symbols that can be accessed directly from C.
6910sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6911
6912# Define system-specific variables.
6913case $host_os in
6914aix*)
6915  symcode='[BCDT]'
6916  ;;
6917cygwin* | mingw* | pw32* | cegcc*)
6918  symcode='[ABCDGISTW]'
6919  ;;
6920hpux*)
6921  if test ia64 = "$host_cpu"; then
6922    symcode='[ABCDEGRST]'
6923  fi
6924  ;;
6925irix* | nonstopux*)
6926  symcode='[BCDEGRST]'
6927  ;;
6928osf*)
6929  symcode='[BCDEGQRST]'
6930  ;;
6931solaris*)
6932  symcode='[BDRT]'
6933  ;;
6934sco3.2v5*)
6935  symcode='[DT]'
6936  ;;
6937sysv4.2uw2*)
6938  symcode='[DT]'
6939  ;;
6940sysv5* | sco5v6* | unixware* | OpenUNIX*)
6941  symcode='[ABDT]'
6942  ;;
6943sysv4)
6944  symcode='[DFNSTU]'
6945  ;;
6946esac
6947
6948# If we're using GNU nm, then use its standard symbol codes.
6949case `$NM -V 2>&1` in
6950*GNU* | *'with BFD'*)
6951  symcode='[ABCDGIRSTW]' ;;
6952esac
6953
6954if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6955  # Gets list of data symbols to import.
6956  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6957  # Adjust the below global symbol transforms to fixup imported variables.
6958  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6959  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6960  lt_c_name_lib_hook="\
6961  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6962  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6963else
6964  # Disable hooks by default.
6965  lt_cv_sys_global_symbol_to_import=
6966  lt_cdecl_hook=
6967  lt_c_name_hook=
6968  lt_c_name_lib_hook=
6969fi
6970
6971# Transform an extracted symbol line into a proper C declaration.
6972# Some systems (esp. on ia64) link data and code symbols differently,
6973# so use this general approach.
6974lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6975$lt_cdecl_hook\
6976" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6977" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6978
6979# Transform an extracted symbol line into symbol name and symbol address
6980lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6981$lt_c_name_hook\
6982" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6983" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6984
6985# Transform an extracted symbol line into symbol name with lib prefix and
6986# symbol address.
6987lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6988$lt_c_name_lib_hook\
6989" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6990" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6991" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6992
6993# Handle CRLF in mingw tool chain
6994opt_cr=
6995case $build_os in
6996mingw*)
6997  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6998  ;;
6999esac
7000
7001# Try without a prefix underscore, then with it.
7002for ac_symprfx in "" "_"; do
7003
7004  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7005  symxfrm="\\1 $ac_symprfx\\2 \\2"
7006
7007  # Write the raw and C identifiers.
7008  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7009    # Fake it for dumpbin and say T for any non-static function,
7010    # D for any global variable and I for any imported variable.
7011    # Also find C++ and __fastcall symbols from MSVC++,
7012    # which start with @ or ?.
7013    lt_cv_sys_global_symbol_pipe="$AWK '"\
7014"     {last_section=section; section=\$ 3};"\
7015"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7016"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7017"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7018"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7019"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7020"     \$ 0!~/External *\|/{next};"\
7021"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7022"     {if(hide[section]) next};"\
7023"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7024"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7025"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7026"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7027"     ' prfx=^$ac_symprfx"
7028  else
7029    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7030  fi
7031  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7032
7033  # Check to see that the pipe works correctly.
7034  pipe_works=no
7035
7036  rm -f conftest*
7037  cat > conftest.$ac_ext <<_LT_EOF
7038#ifdef __cplusplus
7039extern "C" {
7040#endif
7041char nm_test_var;
7042void nm_test_func(void);
7043void nm_test_func(void){}
7044#ifdef __cplusplus
7045}
7046#endif
7047int main(){nm_test_var='a';nm_test_func();return(0);}
7048_LT_EOF
7049
7050  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051  (eval $ac_compile) 2>&5
7052  ac_status=$?
7053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054  test $ac_status = 0; }; then
7055    # Now try to grab the symbols.
7056    nlist=conftest.nm
7057    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7058  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7059  ac_status=$?
7060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061  test $ac_status = 0; } && test -s "$nlist"; then
7062      # Try sorting and uniquifying the output.
7063      if sort "$nlist" | uniq > "$nlist"T; then
7064	mv -f "$nlist"T "$nlist"
7065      else
7066	rm -f "$nlist"T
7067      fi
7068
7069      # Make sure that we snagged all the symbols we need.
7070      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7071	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7072	  cat <<_LT_EOF > conftest.$ac_ext
7073/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7074#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7075/* DATA imports from DLLs on WIN32 can't be const, because runtime
7076   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7077# define LT_DLSYM_CONST
7078#elif defined __osf__
7079/* This system does not cope well with relocations in const data.  */
7080# define LT_DLSYM_CONST
7081#else
7082# define LT_DLSYM_CONST const
7083#endif
7084
7085#ifdef __cplusplus
7086extern "C" {
7087#endif
7088
7089_LT_EOF
7090	  # Now generate the symbol file.
7091	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7092
7093	  cat <<_LT_EOF >> conftest.$ac_ext
7094
7095/* The mapping between symbol names and symbols.  */
7096LT_DLSYM_CONST struct {
7097  const char *name;
7098  void       *address;
7099}
7100lt__PROGRAM__LTX_preloaded_symbols[] =
7101{
7102  { "@PROGRAM@", (void *) 0 },
7103_LT_EOF
7104	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7105	  cat <<\_LT_EOF >> conftest.$ac_ext
7106  {0, (void *) 0}
7107};
7108
7109/* This works around a problem in FreeBSD linker */
7110#ifdef FREEBSD_WORKAROUND
7111static const void *lt_preloaded_setup() {
7112  return lt__PROGRAM__LTX_preloaded_symbols;
7113}
7114#endif
7115
7116#ifdef __cplusplus
7117}
7118#endif
7119_LT_EOF
7120	  # Now try linking the two files.
7121	  mv conftest.$ac_objext conftstm.$ac_objext
7122	  lt_globsym_save_LIBS=$LIBS
7123	  lt_globsym_save_CFLAGS=$CFLAGS
7124	  LIBS=conftstm.$ac_objext
7125	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7126	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7127  (eval $ac_link) 2>&5
7128  ac_status=$?
7129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7130  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7131	    pipe_works=yes
7132	  fi
7133	  LIBS=$lt_globsym_save_LIBS
7134	  CFLAGS=$lt_globsym_save_CFLAGS
7135	else
7136	  echo "cannot find nm_test_func in $nlist" >&5
7137	fi
7138      else
7139	echo "cannot find nm_test_var in $nlist" >&5
7140      fi
7141    else
7142      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7143    fi
7144  else
7145    echo "$progname: failed program was:" >&5
7146    cat conftest.$ac_ext >&5
7147  fi
7148  rm -rf conftest* conftst*
7149
7150  # Do not use the global_symbol_pipe unless it works.
7151  if test yes = "$pipe_works"; then
7152    break
7153  else
7154    lt_cv_sys_global_symbol_pipe=
7155  fi
7156done
7157
7158fi
7159
7160if test -z "$lt_cv_sys_global_symbol_pipe"; then
7161  lt_cv_sys_global_symbol_to_cdecl=
7162fi
7163if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7165$as_echo "failed" >&6; }
7166else
7167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7168$as_echo "ok" >&6; }
7169fi
7170
7171# Response file support.
7172if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7173  nm_file_list_spec='@'
7174elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7175  nm_file_list_spec='@'
7176fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7215$as_echo_n "checking for sysroot... " >&6; }
7216
7217# Check whether --with-sysroot was given.
7218if test "${with_sysroot+set}" = set; then :
7219  withval=$with_sysroot;
7220else
7221  with_sysroot=no
7222fi
7223
7224
7225lt_sysroot=
7226case $with_sysroot in #(
7227 yes)
7228   if test yes = "$GCC"; then
7229     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7230   fi
7231   ;; #(
7232 /*)
7233   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7234   ;; #(
7235 no|'')
7236   ;; #(
7237 *)
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7239$as_echo "$with_sysroot" >&6; }
7240   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7241   ;;
7242esac
7243
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7245$as_echo "${lt_sysroot:-no}" >&6; }
7246
7247
7248
7249
7250
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7252$as_echo_n "checking for a working dd... " >&6; }
7253if ${ac_cv_path_lt_DD+:} false; then :
7254  $as_echo_n "(cached) " >&6
7255else
7256  printf 0123456789abcdef0123456789abcdef >conftest.i
7257cat conftest.i conftest.i >conftest2.i
7258: ${lt_DD:=$DD}
7259if test -z "$lt_DD"; then
7260  ac_path_lt_DD_found=false
7261  # Loop through the user's path and test for each of PROGNAME-LIST
7262  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265  IFS=$as_save_IFS
7266  test -z "$as_dir" && as_dir=.
7267    for ac_prog in dd; do
7268    for ac_exec_ext in '' $ac_executable_extensions; do
7269      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7270      as_fn_executable_p "$ac_path_lt_DD" || continue
7271if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7272  cmp -s conftest.i conftest.out \
7273  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7274fi
7275      $ac_path_lt_DD_found && break 3
7276    done
7277  done
7278  done
7279IFS=$as_save_IFS
7280  if test -z "$ac_cv_path_lt_DD"; then
7281    :
7282  fi
7283else
7284  ac_cv_path_lt_DD=$lt_DD
7285fi
7286
7287rm -f conftest.i conftest2.i conftest.out
7288fi
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7290$as_echo "$ac_cv_path_lt_DD" >&6; }
7291
7292
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7294$as_echo_n "checking how to truncate binary pipes... " >&6; }
7295if ${lt_cv_truncate_bin+:} false; then :
7296  $as_echo_n "(cached) " >&6
7297else
7298  printf 0123456789abcdef0123456789abcdef >conftest.i
7299cat conftest.i conftest.i >conftest2.i
7300lt_cv_truncate_bin=
7301if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7302  cmp -s conftest.i conftest.out \
7303  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7304fi
7305rm -f conftest.i conftest2.i conftest.out
7306test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7307fi
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7309$as_echo "$lt_cv_truncate_bin" >&6; }
7310
7311
7312
7313
7314
7315
7316
7317# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7318func_cc_basename ()
7319{
7320    for cc_temp in $*""; do
7321      case $cc_temp in
7322        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7323        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7324        \-*) ;;
7325        *) break;;
7326      esac
7327    done
7328    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7329}
7330
7331# Check whether --enable-libtool-lock was given.
7332if test "${enable_libtool_lock+set}" = set; then :
7333  enableval=$enable_libtool_lock;
7334fi
7335
7336test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7337
7338# Some flags need to be propagated to the compiler or linker for good
7339# libtool support.
7340case $host in
7341ia64-*-hpux*)
7342  # Find out what ABI is being produced by ac_compile, and set mode
7343  # options accordingly.
7344  echo 'int i;' > conftest.$ac_ext
7345  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7346  (eval $ac_compile) 2>&5
7347  ac_status=$?
7348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349  test $ac_status = 0; }; then
7350    case `/usr/bin/file conftest.$ac_objext` in
7351      *ELF-32*)
7352	HPUX_IA64_MODE=32
7353	;;
7354      *ELF-64*)
7355	HPUX_IA64_MODE=64
7356	;;
7357    esac
7358  fi
7359  rm -rf conftest*
7360  ;;
7361*-*-irix6*)
7362  # Find out what ABI is being produced by ac_compile, and set linker
7363  # options accordingly.
7364  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7365  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7366  (eval $ac_compile) 2>&5
7367  ac_status=$?
7368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369  test $ac_status = 0; }; then
7370    if test yes = "$lt_cv_prog_gnu_ld"; then
7371      case `/usr/bin/file conftest.$ac_objext` in
7372	*32-bit*)
7373	  LD="${LD-ld} -melf32bsmip"
7374	  ;;
7375	*N32*)
7376	  LD="${LD-ld} -melf32bmipn32"
7377	  ;;
7378	*64-bit*)
7379	  LD="${LD-ld} -melf64bmip"
7380	;;
7381      esac
7382    else
7383      case `/usr/bin/file conftest.$ac_objext` in
7384	*32-bit*)
7385	  LD="${LD-ld} -32"
7386	  ;;
7387	*N32*)
7388	  LD="${LD-ld} -n32"
7389	  ;;
7390	*64-bit*)
7391	  LD="${LD-ld} -64"
7392	  ;;
7393      esac
7394    fi
7395  fi
7396  rm -rf conftest*
7397  ;;
7398
7399mips64*-*linux*)
7400  # Find out what ABI is being produced by ac_compile, and set linker
7401  # options accordingly.
7402  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7403  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404  (eval $ac_compile) 2>&5
7405  ac_status=$?
7406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407  test $ac_status = 0; }; then
7408    emul=elf
7409    case `/usr/bin/file conftest.$ac_objext` in
7410      *32-bit*)
7411	emul="${emul}32"
7412	;;
7413      *64-bit*)
7414	emul="${emul}64"
7415	;;
7416    esac
7417    case `/usr/bin/file conftest.$ac_objext` in
7418      *MSB*)
7419	emul="${emul}btsmip"
7420	;;
7421      *LSB*)
7422	emul="${emul}ltsmip"
7423	;;
7424    esac
7425    case `/usr/bin/file conftest.$ac_objext` in
7426      *N32*)
7427	emul="${emul}n32"
7428	;;
7429    esac
7430    LD="${LD-ld} -m $emul"
7431  fi
7432  rm -rf conftest*
7433  ;;
7434
7435x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7436s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7437  # Find out what ABI is being produced by ac_compile, and set linker
7438  # options accordingly.  Note that the listed cases only cover the
7439  # situations where additional linker options are needed (such as when
7440  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7441  # vice versa); the common cases where no linker options are needed do
7442  # not appear in the list.
7443  echo 'int i;' > conftest.$ac_ext
7444  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445  (eval $ac_compile) 2>&5
7446  ac_status=$?
7447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448  test $ac_status = 0; }; then
7449    case `/usr/bin/file conftest.o` in
7450      *32-bit*)
7451	case $host in
7452	  x86_64-*kfreebsd*-gnu)
7453	    LD="${LD-ld} -m elf_i386_fbsd"
7454	    ;;
7455	  x86_64-*linux*)
7456	    case `/usr/bin/file conftest.o` in
7457	      *x86-64*)
7458		LD="${LD-ld} -m elf32_x86_64"
7459		;;
7460	      *)
7461		LD="${LD-ld} -m elf_i386"
7462		;;
7463	    esac
7464	    ;;
7465	  powerpc64le-*linux*)
7466	    LD="${LD-ld} -m elf32lppclinux"
7467	    ;;
7468	  powerpc64-*linux*)
7469	    LD="${LD-ld} -m elf32ppclinux"
7470	    ;;
7471	  s390x-*linux*)
7472	    LD="${LD-ld} -m elf_s390"
7473	    ;;
7474	  sparc64-*linux*)
7475	    LD="${LD-ld} -m elf32_sparc"
7476	    ;;
7477	esac
7478	;;
7479      *64-bit*)
7480	case $host in
7481	  x86_64-*kfreebsd*-gnu)
7482	    LD="${LD-ld} -m elf_x86_64_fbsd"
7483	    ;;
7484	  x86_64-*linux*)
7485	    LD="${LD-ld} -m elf_x86_64"
7486	    ;;
7487	  powerpcle-*linux*)
7488	    LD="${LD-ld} -m elf64lppc"
7489	    ;;
7490	  powerpc-*linux*)
7491	    LD="${LD-ld} -m elf64ppc"
7492	    ;;
7493	  s390*-*linux*|s390*-*tpf*)
7494	    LD="${LD-ld} -m elf64_s390"
7495	    ;;
7496	  sparc*-*linux*)
7497	    LD="${LD-ld} -m elf64_sparc"
7498	    ;;
7499	esac
7500	;;
7501    esac
7502  fi
7503  rm -rf conftest*
7504  ;;
7505
7506*-*-sco3.2v5*)
7507  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7508  SAVE_CFLAGS=$CFLAGS
7509  CFLAGS="$CFLAGS -belf"
7510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7511$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7512if ${lt_cv_cc_needs_belf+:} false; then :
7513  $as_echo_n "(cached) " >&6
7514else
7515  ac_ext=c
7516ac_cpp='$CPP $CPPFLAGS'
7517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519ac_compiler_gnu=$ac_cv_c_compiler_gnu
7520
7521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522/* end confdefs.h.  */
7523
7524int
7525main ()
7526{
7527
7528  ;
7529  return 0;
7530}
7531_ACEOF
7532if ac_fn_c_try_link "$LINENO"; then :
7533  lt_cv_cc_needs_belf=yes
7534else
7535  lt_cv_cc_needs_belf=no
7536fi
7537rm -f core conftest.err conftest.$ac_objext \
7538    conftest$ac_exeext conftest.$ac_ext
7539     ac_ext=c
7540ac_cpp='$CPP $CPPFLAGS'
7541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544
7545fi
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7547$as_echo "$lt_cv_cc_needs_belf" >&6; }
7548  if test yes != "$lt_cv_cc_needs_belf"; then
7549    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7550    CFLAGS=$SAVE_CFLAGS
7551  fi
7552  ;;
7553*-*solaris*)
7554  # Find out what ABI is being produced by ac_compile, and set linker
7555  # options accordingly.
7556  echo 'int i;' > conftest.$ac_ext
7557  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7558  (eval $ac_compile) 2>&5
7559  ac_status=$?
7560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7561  test $ac_status = 0; }; then
7562    case `/usr/bin/file conftest.o` in
7563    *64-bit*)
7564      case $lt_cv_prog_gnu_ld in
7565      yes*)
7566        case $host in
7567        i?86-*-solaris*|x86_64-*-solaris*)
7568          LD="${LD-ld} -m elf_x86_64"
7569          ;;
7570        sparc*-*-solaris*)
7571          LD="${LD-ld} -m elf64_sparc"
7572          ;;
7573        esac
7574        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7575        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7576          LD=${LD-ld}_sol2
7577        fi
7578        ;;
7579      *)
7580	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7581	  LD="${LD-ld} -64"
7582	fi
7583	;;
7584      esac
7585      ;;
7586    esac
7587  fi
7588  rm -rf conftest*
7589  ;;
7590esac
7591
7592need_locks=$enable_libtool_lock
7593
7594if test -n "$ac_tool_prefix"; then
7595  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7596set dummy ${ac_tool_prefix}mt; ac_word=$2
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598$as_echo_n "checking for $ac_word... " >&6; }
7599if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7600  $as_echo_n "(cached) " >&6
7601else
7602  if test -n "$MANIFEST_TOOL"; then
7603  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7604else
7605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606for as_dir in $PATH
7607do
7608  IFS=$as_save_IFS
7609  test -z "$as_dir" && as_dir=.
7610    for ac_exec_ext in '' $ac_executable_extensions; do
7611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614    break 2
7615  fi
7616done
7617  done
7618IFS=$as_save_IFS
7619
7620fi
7621fi
7622MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7623if test -n "$MANIFEST_TOOL"; then
7624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7625$as_echo "$MANIFEST_TOOL" >&6; }
7626else
7627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628$as_echo "no" >&6; }
7629fi
7630
7631
7632fi
7633if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7634  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7635  # Extract the first word of "mt", so it can be a program name with args.
7636set dummy mt; ac_word=$2
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638$as_echo_n "checking for $ac_word... " >&6; }
7639if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7640  $as_echo_n "(cached) " >&6
7641else
7642  if test -n "$ac_ct_MANIFEST_TOOL"; then
7643  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7644else
7645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648  IFS=$as_save_IFS
7649  test -z "$as_dir" && as_dir=.
7650    for ac_exec_ext in '' $ac_executable_extensions; do
7651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654    break 2
7655  fi
7656done
7657  done
7658IFS=$as_save_IFS
7659
7660fi
7661fi
7662ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7663if test -n "$ac_ct_MANIFEST_TOOL"; then
7664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7665$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7666else
7667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668$as_echo "no" >&6; }
7669fi
7670
7671  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7672    MANIFEST_TOOL=":"
7673  else
7674    case $cross_compiling:$ac_tool_warned in
7675yes:)
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678ac_tool_warned=yes ;;
7679esac
7680    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7681  fi
7682else
7683  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7684fi
7685
7686test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7688$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7689if ${lt_cv_path_mainfest_tool+:} false; then :
7690  $as_echo_n "(cached) " >&6
7691else
7692  lt_cv_path_mainfest_tool=no
7693  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7694  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7695  cat conftest.err >&5
7696  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7697    lt_cv_path_mainfest_tool=yes
7698  fi
7699  rm -f conftest*
7700fi
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7702$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7703if test yes != "$lt_cv_path_mainfest_tool"; then
7704  MANIFEST_TOOL=:
7705fi
7706
7707
7708
7709
7710
7711
7712  case $host_os in
7713    rhapsody* | darwin*)
7714    if test -n "$ac_tool_prefix"; then
7715  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7716set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718$as_echo_n "checking for $ac_word... " >&6; }
7719if ${ac_cv_prog_DSYMUTIL+:} false; then :
7720  $as_echo_n "(cached) " >&6
7721else
7722  if test -n "$DSYMUTIL"; then
7723  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7724else
7725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726for as_dir in $PATH
7727do
7728  IFS=$as_save_IFS
7729  test -z "$as_dir" && as_dir=.
7730    for ac_exec_ext in '' $ac_executable_extensions; do
7731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734    break 2
7735  fi
7736done
7737  done
7738IFS=$as_save_IFS
7739
7740fi
7741fi
7742DSYMUTIL=$ac_cv_prog_DSYMUTIL
7743if test -n "$DSYMUTIL"; then
7744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7745$as_echo "$DSYMUTIL" >&6; }
7746else
7747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748$as_echo "no" >&6; }
7749fi
7750
7751
7752fi
7753if test -z "$ac_cv_prog_DSYMUTIL"; then
7754  ac_ct_DSYMUTIL=$DSYMUTIL
7755  # Extract the first word of "dsymutil", so it can be a program name with args.
7756set dummy dsymutil; ac_word=$2
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758$as_echo_n "checking for $ac_word... " >&6; }
7759if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7760  $as_echo_n "(cached) " >&6
7761else
7762  if test -n "$ac_ct_DSYMUTIL"; then
7763  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7764else
7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768  IFS=$as_save_IFS
7769  test -z "$as_dir" && as_dir=.
7770    for ac_exec_ext in '' $ac_executable_extensions; do
7771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774    break 2
7775  fi
7776done
7777  done
7778IFS=$as_save_IFS
7779
7780fi
7781fi
7782ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7783if test -n "$ac_ct_DSYMUTIL"; then
7784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7785$as_echo "$ac_ct_DSYMUTIL" >&6; }
7786else
7787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788$as_echo "no" >&6; }
7789fi
7790
7791  if test "x$ac_ct_DSYMUTIL" = x; then
7792    DSYMUTIL=":"
7793  else
7794    case $cross_compiling:$ac_tool_warned in
7795yes:)
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798ac_tool_warned=yes ;;
7799esac
7800    DSYMUTIL=$ac_ct_DSYMUTIL
7801  fi
7802else
7803  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7804fi
7805
7806    if test -n "$ac_tool_prefix"; then
7807  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7808set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810$as_echo_n "checking for $ac_word... " >&6; }
7811if ${ac_cv_prog_NMEDIT+:} false; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814  if test -n "$NMEDIT"; then
7815  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7816else
7817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818for as_dir in $PATH
7819do
7820  IFS=$as_save_IFS
7821  test -z "$as_dir" && as_dir=.
7822    for ac_exec_ext in '' $ac_executable_extensions; do
7823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7824    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826    break 2
7827  fi
7828done
7829  done
7830IFS=$as_save_IFS
7831
7832fi
7833fi
7834NMEDIT=$ac_cv_prog_NMEDIT
7835if test -n "$NMEDIT"; then
7836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7837$as_echo "$NMEDIT" >&6; }
7838else
7839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840$as_echo "no" >&6; }
7841fi
7842
7843
7844fi
7845if test -z "$ac_cv_prog_NMEDIT"; then
7846  ac_ct_NMEDIT=$NMEDIT
7847  # Extract the first word of "nmedit", so it can be a program name with args.
7848set dummy nmedit; ac_word=$2
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850$as_echo_n "checking for $ac_word... " >&6; }
7851if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7852  $as_echo_n "(cached) " >&6
7853else
7854  if test -n "$ac_ct_NMEDIT"; then
7855  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860  IFS=$as_save_IFS
7861  test -z "$as_dir" && as_dir=.
7862    for ac_exec_ext in '' $ac_executable_extensions; do
7863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866    break 2
7867  fi
7868done
7869  done
7870IFS=$as_save_IFS
7871
7872fi
7873fi
7874ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7875if test -n "$ac_ct_NMEDIT"; then
7876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7877$as_echo "$ac_ct_NMEDIT" >&6; }
7878else
7879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
7881fi
7882
7883  if test "x$ac_ct_NMEDIT" = x; then
7884    NMEDIT=":"
7885  else
7886    case $cross_compiling:$ac_tool_warned in
7887yes:)
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890ac_tool_warned=yes ;;
7891esac
7892    NMEDIT=$ac_ct_NMEDIT
7893  fi
7894else
7895  NMEDIT="$ac_cv_prog_NMEDIT"
7896fi
7897
7898    if test -n "$ac_tool_prefix"; then
7899  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7900set dummy ${ac_tool_prefix}lipo; ac_word=$2
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902$as_echo_n "checking for $ac_word... " >&6; }
7903if ${ac_cv_prog_LIPO+:} false; then :
7904  $as_echo_n "(cached) " >&6
7905else
7906  if test -n "$LIPO"; then
7907  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7908else
7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912  IFS=$as_save_IFS
7913  test -z "$as_dir" && as_dir=.
7914    for ac_exec_ext in '' $ac_executable_extensions; do
7915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918    break 2
7919  fi
7920done
7921  done
7922IFS=$as_save_IFS
7923
7924fi
7925fi
7926LIPO=$ac_cv_prog_LIPO
7927if test -n "$LIPO"; then
7928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7929$as_echo "$LIPO" >&6; }
7930else
7931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
7933fi
7934
7935
7936fi
7937if test -z "$ac_cv_prog_LIPO"; then
7938  ac_ct_LIPO=$LIPO
7939  # Extract the first word of "lipo", so it can be a program name with args.
7940set dummy lipo; ac_word=$2
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942$as_echo_n "checking for $ac_word... " >&6; }
7943if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  if test -n "$ac_ct_LIPO"; then
7947  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7948else
7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952  IFS=$as_save_IFS
7953  test -z "$as_dir" && as_dir=.
7954    for ac_exec_ext in '' $ac_executable_extensions; do
7955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956    ac_cv_prog_ac_ct_LIPO="lipo"
7957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958    break 2
7959  fi
7960done
7961  done
7962IFS=$as_save_IFS
7963
7964fi
7965fi
7966ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7967if test -n "$ac_ct_LIPO"; then
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7969$as_echo "$ac_ct_LIPO" >&6; }
7970else
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972$as_echo "no" >&6; }
7973fi
7974
7975  if test "x$ac_ct_LIPO" = x; then
7976    LIPO=":"
7977  else
7978    case $cross_compiling:$ac_tool_warned in
7979yes:)
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982ac_tool_warned=yes ;;
7983esac
7984    LIPO=$ac_ct_LIPO
7985  fi
7986else
7987  LIPO="$ac_cv_prog_LIPO"
7988fi
7989
7990    if test -n "$ac_tool_prefix"; then
7991  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7992set dummy ${ac_tool_prefix}otool; ac_word=$2
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994$as_echo_n "checking for $ac_word... " >&6; }
7995if ${ac_cv_prog_OTOOL+:} false; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  if test -n "$OTOOL"; then
7999  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8000else
8001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002for as_dir in $PATH
8003do
8004  IFS=$as_save_IFS
8005  test -z "$as_dir" && as_dir=.
8006    for ac_exec_ext in '' $ac_executable_extensions; do
8007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8008    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010    break 2
8011  fi
8012done
8013  done
8014IFS=$as_save_IFS
8015
8016fi
8017fi
8018OTOOL=$ac_cv_prog_OTOOL
8019if test -n "$OTOOL"; then
8020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8021$as_echo "$OTOOL" >&6; }
8022else
8023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024$as_echo "no" >&6; }
8025fi
8026
8027
8028fi
8029if test -z "$ac_cv_prog_OTOOL"; then
8030  ac_ct_OTOOL=$OTOOL
8031  # Extract the first word of "otool", so it can be a program name with args.
8032set dummy otool; ac_word=$2
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034$as_echo_n "checking for $ac_word... " >&6; }
8035if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8036  $as_echo_n "(cached) " >&6
8037else
8038  if test -n "$ac_ct_OTOOL"; then
8039  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8040else
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044  IFS=$as_save_IFS
8045  test -z "$as_dir" && as_dir=.
8046    for ac_exec_ext in '' $ac_executable_extensions; do
8047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048    ac_cv_prog_ac_ct_OTOOL="otool"
8049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050    break 2
8051  fi
8052done
8053  done
8054IFS=$as_save_IFS
8055
8056fi
8057fi
8058ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8059if test -n "$ac_ct_OTOOL"; then
8060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8061$as_echo "$ac_ct_OTOOL" >&6; }
8062else
8063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064$as_echo "no" >&6; }
8065fi
8066
8067  if test "x$ac_ct_OTOOL" = x; then
8068    OTOOL=":"
8069  else
8070    case $cross_compiling:$ac_tool_warned in
8071yes:)
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074ac_tool_warned=yes ;;
8075esac
8076    OTOOL=$ac_ct_OTOOL
8077  fi
8078else
8079  OTOOL="$ac_cv_prog_OTOOL"
8080fi
8081
8082    if test -n "$ac_tool_prefix"; then
8083  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8084set dummy ${ac_tool_prefix}otool64; ac_word=$2
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086$as_echo_n "checking for $ac_word... " >&6; }
8087if ${ac_cv_prog_OTOOL64+:} false; then :
8088  $as_echo_n "(cached) " >&6
8089else
8090  if test -n "$OTOOL64"; then
8091  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8092else
8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096  IFS=$as_save_IFS
8097  test -z "$as_dir" && as_dir=.
8098    for ac_exec_ext in '' $ac_executable_extensions; do
8099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102    break 2
8103  fi
8104done
8105  done
8106IFS=$as_save_IFS
8107
8108fi
8109fi
8110OTOOL64=$ac_cv_prog_OTOOL64
8111if test -n "$OTOOL64"; then
8112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8113$as_echo "$OTOOL64" >&6; }
8114else
8115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116$as_echo "no" >&6; }
8117fi
8118
8119
8120fi
8121if test -z "$ac_cv_prog_OTOOL64"; then
8122  ac_ct_OTOOL64=$OTOOL64
8123  # Extract the first word of "otool64", so it can be a program name with args.
8124set dummy otool64; ac_word=$2
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126$as_echo_n "checking for $ac_word... " >&6; }
8127if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8128  $as_echo_n "(cached) " >&6
8129else
8130  if test -n "$ac_ct_OTOOL64"; then
8131  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8132else
8133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134for as_dir in $PATH
8135do
8136  IFS=$as_save_IFS
8137  test -z "$as_dir" && as_dir=.
8138    for ac_exec_ext in '' $ac_executable_extensions; do
8139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140    ac_cv_prog_ac_ct_OTOOL64="otool64"
8141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142    break 2
8143  fi
8144done
8145  done
8146IFS=$as_save_IFS
8147
8148fi
8149fi
8150ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8151if test -n "$ac_ct_OTOOL64"; then
8152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8153$as_echo "$ac_ct_OTOOL64" >&6; }
8154else
8155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156$as_echo "no" >&6; }
8157fi
8158
8159  if test "x$ac_ct_OTOOL64" = x; then
8160    OTOOL64=":"
8161  else
8162    case $cross_compiling:$ac_tool_warned in
8163yes:)
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8166ac_tool_warned=yes ;;
8167esac
8168    OTOOL64=$ac_ct_OTOOL64
8169  fi
8170else
8171  OTOOL64="$ac_cv_prog_OTOOL64"
8172fi
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8201$as_echo_n "checking for -single_module linker flag... " >&6; }
8202if ${lt_cv_apple_cc_single_mod+:} false; then :
8203  $as_echo_n "(cached) " >&6
8204else
8205  lt_cv_apple_cc_single_mod=no
8206      if test -z "$LT_MULTI_MODULE"; then
8207	# By default we will add the -single_module flag. You can override
8208	# by either setting the environment variable LT_MULTI_MODULE
8209	# non-empty at configure time, or by adding -multi_module to the
8210	# link flags.
8211	rm -rf libconftest.dylib*
8212	echo "int foo(void){return 1;}" > conftest.c
8213	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8214-dynamiclib -Wl,-single_module conftest.c" >&5
8215	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8216	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8217        _lt_result=$?
8218	# If there is a non-empty error log, and "single_module"
8219	# appears in it, assume the flag caused a linker warning
8220        if test -s conftest.err && $GREP single_module conftest.err; then
8221	  cat conftest.err >&5
8222	# Otherwise, if the output was created with a 0 exit code from
8223	# the compiler, it worked.
8224	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8225	  lt_cv_apple_cc_single_mod=yes
8226	else
8227	  cat conftest.err >&5
8228	fi
8229	rm -rf libconftest.dylib*
8230	rm -f conftest.*
8231      fi
8232fi
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8234$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8235
8236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8237$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8238if ${lt_cv_ld_exported_symbols_list+:} false; then :
8239  $as_echo_n "(cached) " >&6
8240else
8241  lt_cv_ld_exported_symbols_list=no
8242      save_LDFLAGS=$LDFLAGS
8243      echo "_main" > conftest.sym
8244      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8245      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h.  */
8247
8248int
8249main ()
8250{
8251
8252  ;
8253  return 0;
8254}
8255_ACEOF
8256if ac_fn_c_try_link "$LINENO"; then :
8257  lt_cv_ld_exported_symbols_list=yes
8258else
8259  lt_cv_ld_exported_symbols_list=no
8260fi
8261rm -f core conftest.err conftest.$ac_objext \
8262    conftest$ac_exeext conftest.$ac_ext
8263	LDFLAGS=$save_LDFLAGS
8264
8265fi
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8267$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8268
8269    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8270$as_echo_n "checking for -force_load linker flag... " >&6; }
8271if ${lt_cv_ld_force_load+:} false; then :
8272  $as_echo_n "(cached) " >&6
8273else
8274  lt_cv_ld_force_load=no
8275      cat > conftest.c << _LT_EOF
8276int forced_loaded() { return 2;}
8277_LT_EOF
8278      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8279      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8280      echo "$AR cru libconftest.a conftest.o" >&5
8281      $AR cru libconftest.a conftest.o 2>&5
8282      echo "$RANLIB libconftest.a" >&5
8283      $RANLIB libconftest.a 2>&5
8284      cat > conftest.c << _LT_EOF
8285int main() { return 0;}
8286_LT_EOF
8287      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8288      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8289      _lt_result=$?
8290      if test -s conftest.err && $GREP force_load conftest.err; then
8291	cat conftest.err >&5
8292      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8293	lt_cv_ld_force_load=yes
8294      else
8295	cat conftest.err >&5
8296      fi
8297        rm -f conftest.err libconftest.a conftest conftest.c
8298        rm -rf conftest.dSYM
8299
8300fi
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8302$as_echo "$lt_cv_ld_force_load" >&6; }
8303    case $host_os in
8304    rhapsody* | darwin1.[012])
8305      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8306    darwin1.*)
8307      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8308    darwin*) # darwin 5.x on
8309      # if running on 10.5 or later, the deployment target defaults
8310      # to the OS version, if on x86, and 10.4, the deployment
8311      # target defaults to 10.4. Don't you love it?
8312      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8313	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8314	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8315	10.[012][,.]*)
8316	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8317	10.*)
8318	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8319      esac
8320    ;;
8321  esac
8322    if test yes = "$lt_cv_apple_cc_single_mod"; then
8323      _lt_dar_single_mod='$single_module'
8324    fi
8325    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8326      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8327    else
8328      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8329    fi
8330    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8331      _lt_dsymutil='~$DSYMUTIL $lib || :'
8332    else
8333      _lt_dsymutil=
8334    fi
8335    ;;
8336  esac
8337
8338# func_munge_path_list VARIABLE PATH
8339# -----------------------------------
8340# VARIABLE is name of variable containing _space_ separated list of
8341# directories to be munged by the contents of PATH, which is string
8342# having a format:
8343# "DIR[:DIR]:"
8344#       string "DIR[ DIR]" will be prepended to VARIABLE
8345# ":DIR[:DIR]"
8346#       string "DIR[ DIR]" will be appended to VARIABLE
8347# "DIRP[:DIRP]::[DIRA:]DIRA"
8348#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8349#       "DIRA[ DIRA]" will be appended to VARIABLE
8350# "DIR[:DIR]"
8351#       VARIABLE will be replaced by "DIR[ DIR]"
8352func_munge_path_list ()
8353{
8354    case x$2 in
8355    x)
8356        ;;
8357    *:)
8358        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8359        ;;
8360    x:*)
8361        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8362        ;;
8363    *::*)
8364        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8365        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8366        ;;
8367    *)
8368        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8369        ;;
8370    esac
8371}
8372
8373ac_ext=c
8374ac_cpp='$CPP $CPPFLAGS'
8375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8377ac_compiler_gnu=$ac_cv_c_compiler_gnu
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8379$as_echo_n "checking how to run the C preprocessor... " >&6; }
8380# On Suns, sometimes $CPP names a directory.
8381if test -n "$CPP" && test -d "$CPP"; then
8382  CPP=
8383fi
8384if test -z "$CPP"; then
8385  if ${ac_cv_prog_CPP+:} false; then :
8386  $as_echo_n "(cached) " >&6
8387else
8388      # Double quotes because CPP needs to be expanded
8389    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8390    do
8391      ac_preproc_ok=false
8392for ac_c_preproc_warn_flag in '' yes
8393do
8394  # Use a header file that comes with gcc, so configuring glibc
8395  # with a fresh cross-compiler works.
8396  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8397  # <limits.h> exists even on freestanding compilers.
8398  # On the NeXT, cc -E runs the code through the compiler's parser,
8399  # not just through cpp. "Syntax error" is here to catch this case.
8400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h.  */
8402#ifdef __STDC__
8403# include <limits.h>
8404#else
8405# include <assert.h>
8406#endif
8407		     Syntax error
8408_ACEOF
8409if ac_fn_c_try_cpp "$LINENO"; then :
8410
8411else
8412  # Broken: fails on valid input.
8413continue
8414fi
8415rm -f conftest.err conftest.i conftest.$ac_ext
8416
8417  # OK, works on sane cases.  Now check whether nonexistent headers
8418  # can be detected and how.
8419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h.  */
8421#include <ac_nonexistent.h>
8422_ACEOF
8423if ac_fn_c_try_cpp "$LINENO"; then :
8424  # Broken: success on invalid input.
8425continue
8426else
8427  # Passes both tests.
8428ac_preproc_ok=:
8429break
8430fi
8431rm -f conftest.err conftest.i conftest.$ac_ext
8432
8433done
8434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8435rm -f conftest.i conftest.err conftest.$ac_ext
8436if $ac_preproc_ok; then :
8437  break
8438fi
8439
8440    done
8441    ac_cv_prog_CPP=$CPP
8442
8443fi
8444  CPP=$ac_cv_prog_CPP
8445else
8446  ac_cv_prog_CPP=$CPP
8447fi
8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8449$as_echo "$CPP" >&6; }
8450ac_preproc_ok=false
8451for ac_c_preproc_warn_flag in '' yes
8452do
8453  # Use a header file that comes with gcc, so configuring glibc
8454  # with a fresh cross-compiler works.
8455  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456  # <limits.h> exists even on freestanding compilers.
8457  # On the NeXT, cc -E runs the code through the compiler's parser,
8458  # not just through cpp. "Syntax error" is here to catch this case.
8459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460/* end confdefs.h.  */
8461#ifdef __STDC__
8462# include <limits.h>
8463#else
8464# include <assert.h>
8465#endif
8466		     Syntax error
8467_ACEOF
8468if ac_fn_c_try_cpp "$LINENO"; then :
8469
8470else
8471  # Broken: fails on valid input.
8472continue
8473fi
8474rm -f conftest.err conftest.i conftest.$ac_ext
8475
8476  # OK, works on sane cases.  Now check whether nonexistent headers
8477  # can be detected and how.
8478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h.  */
8480#include <ac_nonexistent.h>
8481_ACEOF
8482if ac_fn_c_try_cpp "$LINENO"; then :
8483  # Broken: success on invalid input.
8484continue
8485else
8486  # Passes both tests.
8487ac_preproc_ok=:
8488break
8489fi
8490rm -f conftest.err conftest.i conftest.$ac_ext
8491
8492done
8493# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8494rm -f conftest.i conftest.err conftest.$ac_ext
8495if $ac_preproc_ok; then :
8496
8497else
8498  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8500as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8501See \`config.log' for more details" "$LINENO" 5; }
8502fi
8503
8504ac_ext=c
8505ac_cpp='$CPP $CPPFLAGS'
8506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8508ac_compiler_gnu=$ac_cv_c_compiler_gnu
8509
8510
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8512$as_echo_n "checking for ANSI C header files... " >&6; }
8513if ${ac_cv_header_stdc+:} false; then :
8514  $as_echo_n "(cached) " >&6
8515else
8516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517/* end confdefs.h.  */
8518#include <stdlib.h>
8519#include <stdarg.h>
8520#include <string.h>
8521#include <float.h>
8522
8523int
8524main ()
8525{
8526
8527  ;
8528  return 0;
8529}
8530_ACEOF
8531if ac_fn_c_try_compile "$LINENO"; then :
8532  ac_cv_header_stdc=yes
8533else
8534  ac_cv_header_stdc=no
8535fi
8536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537
8538if test $ac_cv_header_stdc = yes; then
8539  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541/* end confdefs.h.  */
8542#include <string.h>
8543
8544_ACEOF
8545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8546  $EGREP "memchr" >/dev/null 2>&1; then :
8547
8548else
8549  ac_cv_header_stdc=no
8550fi
8551rm -f conftest*
8552
8553fi
8554
8555if test $ac_cv_header_stdc = yes; then
8556  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558/* end confdefs.h.  */
8559#include <stdlib.h>
8560
8561_ACEOF
8562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8563  $EGREP "free" >/dev/null 2>&1; then :
8564
8565else
8566  ac_cv_header_stdc=no
8567fi
8568rm -f conftest*
8569
8570fi
8571
8572if test $ac_cv_header_stdc = yes; then
8573  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8574  if test "$cross_compiling" = yes; then :
8575  :
8576else
8577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578/* end confdefs.h.  */
8579#include <ctype.h>
8580#include <stdlib.h>
8581#if ((' ' & 0x0FF) == 0x020)
8582# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8583# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8584#else
8585# define ISLOWER(c) \
8586		   (('a' <= (c) && (c) <= 'i') \
8587		     || ('j' <= (c) && (c) <= 'r') \
8588		     || ('s' <= (c) && (c) <= 'z'))
8589# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8590#endif
8591
8592#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8593int
8594main ()
8595{
8596  int i;
8597  for (i = 0; i < 256; i++)
8598    if (XOR (islower (i), ISLOWER (i))
8599	|| toupper (i) != TOUPPER (i))
8600      return 2;
8601  return 0;
8602}
8603_ACEOF
8604if ac_fn_c_try_run "$LINENO"; then :
8605
8606else
8607  ac_cv_header_stdc=no
8608fi
8609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8610  conftest.$ac_objext conftest.beam conftest.$ac_ext
8611fi
8612
8613fi
8614fi
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8616$as_echo "$ac_cv_header_stdc" >&6; }
8617if test $ac_cv_header_stdc = yes; then
8618
8619$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8620
8621fi
8622
8623# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8624for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8625		  inttypes.h stdint.h unistd.h
8626do :
8627  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8628ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8629"
8630if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8631  cat >>confdefs.h <<_ACEOF
8632#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8633_ACEOF
8634
8635fi
8636
8637done
8638
8639
8640for ac_header in dlfcn.h
8641do :
8642  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8643"
8644if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8645  cat >>confdefs.h <<_ACEOF
8646#define HAVE_DLFCN_H 1
8647_ACEOF
8648
8649fi
8650
8651done
8652
8653
8654
8655
8656
8657# Set options
8658
8659
8660
8661        enable_dlopen=no
8662
8663
8664  enable_win32_dll=no
8665
8666
8667            # Check whether --enable-shared was given.
8668if test "${enable_shared+set}" = set; then :
8669  enableval=$enable_shared; p=${PACKAGE-default}
8670    case $enableval in
8671    yes) enable_shared=yes ;;
8672    no) enable_shared=no ;;
8673    *)
8674      enable_shared=no
8675      # Look at the argument we got.  We use all the common list separators.
8676      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8677      for pkg in $enableval; do
8678	IFS=$lt_save_ifs
8679	if test "X$pkg" = "X$p"; then
8680	  enable_shared=yes
8681	fi
8682      done
8683      IFS=$lt_save_ifs
8684      ;;
8685    esac
8686else
8687  enable_shared=yes
8688fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698  # Check whether --enable-static was given.
8699if test "${enable_static+set}" = set; then :
8700  enableval=$enable_static; p=${PACKAGE-default}
8701    case $enableval in
8702    yes) enable_static=yes ;;
8703    no) enable_static=no ;;
8704    *)
8705     enable_static=no
8706      # Look at the argument we got.  We use all the common list separators.
8707      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8708      for pkg in $enableval; do
8709	IFS=$lt_save_ifs
8710	if test "X$pkg" = "X$p"; then
8711	  enable_static=yes
8712	fi
8713      done
8714      IFS=$lt_save_ifs
8715      ;;
8716    esac
8717else
8718  enable_static=yes
8719fi
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730# Check whether --with-pic was given.
8731if test "${with_pic+set}" = set; then :
8732  withval=$with_pic; lt_p=${PACKAGE-default}
8733    case $withval in
8734    yes|no) pic_mode=$withval ;;
8735    *)
8736      pic_mode=default
8737      # Look at the argument we got.  We use all the common list separators.
8738      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8739      for lt_pkg in $withval; do
8740	IFS=$lt_save_ifs
8741	if test "X$lt_pkg" = "X$lt_p"; then
8742	  pic_mode=yes
8743	fi
8744      done
8745      IFS=$lt_save_ifs
8746      ;;
8747    esac
8748else
8749  pic_mode=default
8750fi
8751
8752
8753
8754
8755
8756
8757
8758
8759  # Check whether --enable-fast-install was given.
8760if test "${enable_fast_install+set}" = set; then :
8761  enableval=$enable_fast_install; p=${PACKAGE-default}
8762    case $enableval in
8763    yes) enable_fast_install=yes ;;
8764    no) enable_fast_install=no ;;
8765    *)
8766      enable_fast_install=no
8767      # Look at the argument we got.  We use all the common list separators.
8768      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8769      for pkg in $enableval; do
8770	IFS=$lt_save_ifs
8771	if test "X$pkg" = "X$p"; then
8772	  enable_fast_install=yes
8773	fi
8774      done
8775      IFS=$lt_save_ifs
8776      ;;
8777    esac
8778else
8779  enable_fast_install=yes
8780fi
8781
8782
8783
8784
8785
8786
8787
8788
8789  shared_archive_member_spec=
8790case $host,$enable_shared in
8791power*-*-aix[5-9]*,yes)
8792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8793$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8794
8795# Check whether --with-aix-soname was given.
8796if test "${with_aix_soname+set}" = set; then :
8797  withval=$with_aix_soname; case $withval in
8798    aix|svr4|both)
8799      ;;
8800    *)
8801      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8802      ;;
8803    esac
8804    lt_cv_with_aix_soname=$with_aix_soname
8805else
8806  if ${lt_cv_with_aix_soname+:} false; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  lt_cv_with_aix_soname=aix
8810fi
8811
8812    with_aix_soname=$lt_cv_with_aix_soname
8813fi
8814
8815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8816$as_echo "$with_aix_soname" >&6; }
8817  if test aix != "$with_aix_soname"; then
8818    # For the AIX way of multilib, we name the shared archive member
8819    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8820    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8821    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8822    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8823    if test 64 = "${OBJECT_MODE-32}"; then
8824      shared_archive_member_spec=shr_64
8825    else
8826      shared_archive_member_spec=shr
8827    fi
8828  fi
8829  ;;
8830*)
8831  with_aix_soname=aix
8832  ;;
8833esac
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844# This can be used to rebuild libtool when needed
8845LIBTOOL_DEPS=$ltmain
8846
8847# Always use our own libtool.
8848LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879test -z "$LN_S" && LN_S="ln -s"
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894if test -n "${ZSH_VERSION+set}"; then
8895   setopt NO_GLOB_SUBST
8896fi
8897
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8899$as_echo_n "checking for objdir... " >&6; }
8900if ${lt_cv_objdir+:} false; then :
8901  $as_echo_n "(cached) " >&6
8902else
8903  rm -f .libs 2>/dev/null
8904mkdir .libs 2>/dev/null
8905if test -d .libs; then
8906  lt_cv_objdir=.libs
8907else
8908  # MS-DOS does not allow filenames that begin with a dot.
8909  lt_cv_objdir=_libs
8910fi
8911rmdir .libs 2>/dev/null
8912fi
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8914$as_echo "$lt_cv_objdir" >&6; }
8915objdir=$lt_cv_objdir
8916
8917
8918
8919
8920
8921cat >>confdefs.h <<_ACEOF
8922#define LT_OBJDIR "$lt_cv_objdir/"
8923_ACEOF
8924
8925
8926
8927
8928case $host_os in
8929aix3*)
8930  # AIX sometimes has problems with the GCC collect2 program.  For some
8931  # reason, if we set the COLLECT_NAMES environment variable, the problems
8932  # vanish in a puff of smoke.
8933  if test set != "${COLLECT_NAMES+set}"; then
8934    COLLECT_NAMES=
8935    export COLLECT_NAMES
8936  fi
8937  ;;
8938esac
8939
8940# Global variables:
8941ofile=libtool
8942can_build_shared=yes
8943
8944# All known linkers require a '.a' archive for static linking (except MSVC,
8945# which needs '.lib').
8946libext=a
8947
8948with_gnu_ld=$lt_cv_prog_gnu_ld
8949
8950old_CC=$CC
8951old_CFLAGS=$CFLAGS
8952
8953# Set sane defaults for various variables
8954test -z "$CC" && CC=cc
8955test -z "$LTCC" && LTCC=$CC
8956test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8957test -z "$LD" && LD=ld
8958test -z "$ac_objext" && ac_objext=o
8959
8960func_cc_basename $compiler
8961cc_basename=$func_cc_basename_result
8962
8963
8964# Only perform the check for file, if the check method requires it
8965test -z "$MAGIC_CMD" && MAGIC_CMD=file
8966case $deplibs_check_method in
8967file_magic*)
8968  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8969    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8970$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8971if ${lt_cv_path_MAGIC_CMD+:} false; then :
8972  $as_echo_n "(cached) " >&6
8973else
8974  case $MAGIC_CMD in
8975[\\/*] |  ?:[\\/]*)
8976  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8977  ;;
8978*)
8979  lt_save_MAGIC_CMD=$MAGIC_CMD
8980  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8981  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8982  for ac_dir in $ac_dummy; do
8983    IFS=$lt_save_ifs
8984    test -z "$ac_dir" && ac_dir=.
8985    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8986      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8987      if test -n "$file_magic_test_file"; then
8988	case $deplibs_check_method in
8989	"file_magic "*)
8990	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8991	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8992	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8993	    $EGREP "$file_magic_regex" > /dev/null; then
8994	    :
8995	  else
8996	    cat <<_LT_EOF 1>&2
8997
8998*** Warning: the command libtool uses to detect shared libraries,
8999*** $file_magic_cmd, produces output that libtool cannot recognize.
9000*** The result is that libtool may fail to recognize shared libraries
9001*** as such.  This will affect the creation of libtool libraries that
9002*** depend on shared libraries, but programs linked with such libtool
9003*** libraries will work regardless of this problem.  Nevertheless, you
9004*** may want to report the problem to your system manager and/or to
9005*** bug-libtool@gnu.org
9006
9007_LT_EOF
9008	  fi ;;
9009	esac
9010      fi
9011      break
9012    fi
9013  done
9014  IFS=$lt_save_ifs
9015  MAGIC_CMD=$lt_save_MAGIC_CMD
9016  ;;
9017esac
9018fi
9019
9020MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9021if test -n "$MAGIC_CMD"; then
9022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9023$as_echo "$MAGIC_CMD" >&6; }
9024else
9025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026$as_echo "no" >&6; }
9027fi
9028
9029
9030
9031
9032
9033if test -z "$lt_cv_path_MAGIC_CMD"; then
9034  if test -n "$ac_tool_prefix"; then
9035    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9036$as_echo_n "checking for file... " >&6; }
9037if ${lt_cv_path_MAGIC_CMD+:} false; then :
9038  $as_echo_n "(cached) " >&6
9039else
9040  case $MAGIC_CMD in
9041[\\/*] |  ?:[\\/]*)
9042  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9043  ;;
9044*)
9045  lt_save_MAGIC_CMD=$MAGIC_CMD
9046  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9047  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9048  for ac_dir in $ac_dummy; do
9049    IFS=$lt_save_ifs
9050    test -z "$ac_dir" && ac_dir=.
9051    if test -f "$ac_dir/file"; then
9052      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9053      if test -n "$file_magic_test_file"; then
9054	case $deplibs_check_method in
9055	"file_magic "*)
9056	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9057	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9058	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9059	    $EGREP "$file_magic_regex" > /dev/null; then
9060	    :
9061	  else
9062	    cat <<_LT_EOF 1>&2
9063
9064*** Warning: the command libtool uses to detect shared libraries,
9065*** $file_magic_cmd, produces output that libtool cannot recognize.
9066*** The result is that libtool may fail to recognize shared libraries
9067*** as such.  This will affect the creation of libtool libraries that
9068*** depend on shared libraries, but programs linked with such libtool
9069*** libraries will work regardless of this problem.  Nevertheless, you
9070*** may want to report the problem to your system manager and/or to
9071*** bug-libtool@gnu.org
9072
9073_LT_EOF
9074	  fi ;;
9075	esac
9076      fi
9077      break
9078    fi
9079  done
9080  IFS=$lt_save_ifs
9081  MAGIC_CMD=$lt_save_MAGIC_CMD
9082  ;;
9083esac
9084fi
9085
9086MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9087if test -n "$MAGIC_CMD"; then
9088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9089$as_echo "$MAGIC_CMD" >&6; }
9090else
9091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092$as_echo "no" >&6; }
9093fi
9094
9095
9096  else
9097    MAGIC_CMD=:
9098  fi
9099fi
9100
9101  fi
9102  ;;
9103esac
9104
9105# Use C for the default configuration in the libtool script
9106
9107lt_save_CC=$CC
9108ac_ext=c
9109ac_cpp='$CPP $CPPFLAGS'
9110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9112ac_compiler_gnu=$ac_cv_c_compiler_gnu
9113
9114
9115# Source file extension for C test sources.
9116ac_ext=c
9117
9118# Object file extension for compiled C test sources.
9119objext=o
9120objext=$objext
9121
9122# Code to be used in simple compile tests
9123lt_simple_compile_test_code="int some_variable = 0;"
9124
9125# Code to be used in simple link tests
9126lt_simple_link_test_code='int main(){return(0);}'
9127
9128
9129
9130
9131
9132
9133
9134# If no C compiler was specified, use CC.
9135LTCC=${LTCC-"$CC"}
9136
9137# If no C compiler flags were specified, use CFLAGS.
9138LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9139
9140# Allow CC to be a program name with arguments.
9141compiler=$CC
9142
9143# Save the default compiler, since it gets overwritten when the other
9144# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9145compiler_DEFAULT=$CC
9146
9147# save warnings/boilerplate of simple test code
9148ac_outfile=conftest.$ac_objext
9149echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9150eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9151_lt_compiler_boilerplate=`cat conftest.err`
9152$RM conftest*
9153
9154ac_outfile=conftest.$ac_objext
9155echo "$lt_simple_link_test_code" >conftest.$ac_ext
9156eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9157_lt_linker_boilerplate=`cat conftest.err`
9158$RM -r conftest*
9159
9160
9161if test -n "$compiler"; then
9162
9163lt_prog_compiler_no_builtin_flag=
9164
9165if test yes = "$GCC"; then
9166  case $cc_basename in
9167  nvcc*)
9168    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9169  *)
9170    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9171  esac
9172
9173  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9174$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9175if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9176  $as_echo_n "(cached) " >&6
9177else
9178  lt_cv_prog_compiler_rtti_exceptions=no
9179   ac_outfile=conftest.$ac_objext
9180   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9181   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9182   # Insert the option either (1) after the last *FLAGS variable, or
9183   # (2) before a word containing "conftest.", or (3) at the end.
9184   # Note that $ac_compile itself does not contain backslashes and begins
9185   # with a dollar sign (not a hyphen), so the echo should work correctly.
9186   # The option is referenced via a variable to avoid confusing sed.
9187   lt_compile=`echo "$ac_compile" | $SED \
9188   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9189   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9190   -e 's:$: $lt_compiler_flag:'`
9191   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9192   (eval "$lt_compile" 2>conftest.err)
9193   ac_status=$?
9194   cat conftest.err >&5
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   if (exit $ac_status) && test -s "$ac_outfile"; then
9197     # The compiler can only warn and ignore the option if not recognized
9198     # So say no if there are warnings other than the usual output.
9199     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9200     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9202       lt_cv_prog_compiler_rtti_exceptions=yes
9203     fi
9204   fi
9205   $RM conftest*
9206
9207fi
9208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9209$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9210
9211if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9212    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9213else
9214    :
9215fi
9216
9217fi
9218
9219
9220
9221
9222
9223
9224  lt_prog_compiler_wl=
9225lt_prog_compiler_pic=
9226lt_prog_compiler_static=
9227
9228
9229  if test yes = "$GCC"; then
9230    lt_prog_compiler_wl='-Wl,'
9231    lt_prog_compiler_static='-static'
9232
9233    case $host_os in
9234      aix*)
9235      # All AIX code is PIC.
9236      if test ia64 = "$host_cpu"; then
9237	# AIX 5 now supports IA64 processor
9238	lt_prog_compiler_static='-Bstatic'
9239      fi
9240      lt_prog_compiler_pic='-fPIC'
9241      ;;
9242
9243    amigaos*)
9244      case $host_cpu in
9245      powerpc)
9246            # see comment about AmigaOS4 .so support
9247            lt_prog_compiler_pic='-fPIC'
9248        ;;
9249      m68k)
9250            # FIXME: we need at least 68020 code to build shared libraries, but
9251            # adding the '-m68020' flag to GCC prevents building anything better,
9252            # like '-m68040'.
9253            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9254        ;;
9255      esac
9256      ;;
9257
9258    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9259      # PIC is the default for these OSes.
9260      ;;
9261
9262    mingw* | cygwin* | pw32* | os2* | cegcc*)
9263      # This hack is so that the source file can tell whether it is being
9264      # built for inclusion in a dll (and should export symbols for example).
9265      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9266      # (--disable-auto-import) libraries
9267      lt_prog_compiler_pic='-DDLL_EXPORT'
9268      case $host_os in
9269      os2*)
9270	lt_prog_compiler_static='$wl-static'
9271	;;
9272      esac
9273      ;;
9274
9275    darwin* | rhapsody*)
9276      # PIC is the default on this platform
9277      # Common symbols not allowed in MH_DYLIB files
9278      lt_prog_compiler_pic='-fno-common'
9279      ;;
9280
9281    haiku*)
9282      # PIC is the default for Haiku.
9283      # The "-static" flag exists, but is broken.
9284      lt_prog_compiler_static=
9285      ;;
9286
9287    hpux*)
9288      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9289      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9290      # sets the default TLS model and affects inlining.
9291      case $host_cpu in
9292      hppa*64*)
9293	# +Z the default
9294	;;
9295      *)
9296	lt_prog_compiler_pic='-fPIC'
9297	;;
9298      esac
9299      ;;
9300
9301    interix[3-9]*)
9302      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9303      # Instead, we relocate shared libraries at runtime.
9304      ;;
9305
9306    msdosdjgpp*)
9307      # Just because we use GCC doesn't mean we suddenly get shared libraries
9308      # on systems that don't support them.
9309      lt_prog_compiler_can_build_shared=no
9310      enable_shared=no
9311      ;;
9312
9313    *nto* | *qnx*)
9314      # QNX uses GNU C++, but need to define -shared option too, otherwise
9315      # it will coredump.
9316      lt_prog_compiler_pic='-fPIC -shared'
9317      ;;
9318
9319    sysv4*MP*)
9320      if test -d /usr/nec; then
9321	lt_prog_compiler_pic=-Kconform_pic
9322      fi
9323      ;;
9324
9325    *)
9326      lt_prog_compiler_pic='-fPIC'
9327      ;;
9328    esac
9329
9330    case $cc_basename in
9331    nvcc*) # Cuda Compiler Driver 2.2
9332      lt_prog_compiler_wl='-Xlinker '
9333      if test -n "$lt_prog_compiler_pic"; then
9334        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9335      fi
9336      ;;
9337    esac
9338  else
9339    # PORTME Check for flag to pass linker flags through the system compiler.
9340    case $host_os in
9341    aix*)
9342      lt_prog_compiler_wl='-Wl,'
9343      if test ia64 = "$host_cpu"; then
9344	# AIX 5 now supports IA64 processor
9345	lt_prog_compiler_static='-Bstatic'
9346      else
9347	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9348      fi
9349      ;;
9350
9351    darwin* | rhapsody*)
9352      # PIC is the default on this platform
9353      # Common symbols not allowed in MH_DYLIB files
9354      lt_prog_compiler_pic='-fno-common'
9355      case $cc_basename in
9356      nagfor*)
9357        # NAG Fortran compiler
9358        lt_prog_compiler_wl='-Wl,-Wl,,'
9359        lt_prog_compiler_pic='-PIC'
9360        lt_prog_compiler_static='-Bstatic'
9361        ;;
9362      esac
9363      ;;
9364
9365    mingw* | cygwin* | pw32* | os2* | cegcc*)
9366      # This hack is so that the source file can tell whether it is being
9367      # built for inclusion in a dll (and should export symbols for example).
9368      lt_prog_compiler_pic='-DDLL_EXPORT'
9369      case $host_os in
9370      os2*)
9371	lt_prog_compiler_static='$wl-static'
9372	;;
9373      esac
9374      ;;
9375
9376    hpux9* | hpux10* | hpux11*)
9377      lt_prog_compiler_wl='-Wl,'
9378      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9379      # not for PA HP-UX.
9380      case $host_cpu in
9381      hppa*64*|ia64*)
9382	# +Z the default
9383	;;
9384      *)
9385	lt_prog_compiler_pic='+Z'
9386	;;
9387      esac
9388      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9389      lt_prog_compiler_static='$wl-a ${wl}archive'
9390      ;;
9391
9392    irix5* | irix6* | nonstopux*)
9393      lt_prog_compiler_wl='-Wl,'
9394      # PIC (with -KPIC) is the default.
9395      lt_prog_compiler_static='-non_shared'
9396      ;;
9397
9398    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9399      case $cc_basename in
9400      # old Intel for x86_64, which still supported -KPIC.
9401      ecc*)
9402	lt_prog_compiler_wl='-Wl,'
9403	lt_prog_compiler_pic='-KPIC'
9404	lt_prog_compiler_static='-static'
9405        ;;
9406      # icc used to be incompatible with GCC.
9407      # ICC 10 doesn't accept -KPIC any more.
9408      icc* | ifort*)
9409	lt_prog_compiler_wl='-Wl,'
9410	lt_prog_compiler_pic='-fPIC'
9411	lt_prog_compiler_static='-static'
9412        ;;
9413      # Lahey Fortran 8.1.
9414      lf95*)
9415	lt_prog_compiler_wl='-Wl,'
9416	lt_prog_compiler_pic='--shared'
9417	lt_prog_compiler_static='--static'
9418	;;
9419      nagfor*)
9420	# NAG Fortran compiler
9421	lt_prog_compiler_wl='-Wl,-Wl,,'
9422	lt_prog_compiler_pic='-PIC'
9423	lt_prog_compiler_static='-Bstatic'
9424	;;
9425      tcc*)
9426	# Fabrice Bellard et al's Tiny C Compiler
9427	lt_prog_compiler_wl='-Wl,'
9428	lt_prog_compiler_pic='-fPIC'
9429	lt_prog_compiler_static='-static'
9430	;;
9431      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9432        # Portland Group compilers (*not* the Pentium gcc compiler,
9433	# which looks to be a dead project)
9434	lt_prog_compiler_wl='-Wl,'
9435	lt_prog_compiler_pic='-fpic'
9436	lt_prog_compiler_static='-Bstatic'
9437        ;;
9438      ccc*)
9439        lt_prog_compiler_wl='-Wl,'
9440        # All Alpha code is PIC.
9441        lt_prog_compiler_static='-non_shared'
9442        ;;
9443      xl* | bgxl* | bgf* | mpixl*)
9444	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9445	lt_prog_compiler_wl='-Wl,'
9446	lt_prog_compiler_pic='-qpic'
9447	lt_prog_compiler_static='-qstaticlink'
9448	;;
9449      *)
9450	case `$CC -V 2>&1 | sed 5q` in
9451	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9452	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9453	  lt_prog_compiler_pic='-KPIC'
9454	  lt_prog_compiler_static='-Bstatic'
9455	  lt_prog_compiler_wl=''
9456	  ;;
9457	*Sun\ F* | *Sun*Fortran*)
9458	  lt_prog_compiler_pic='-KPIC'
9459	  lt_prog_compiler_static='-Bstatic'
9460	  lt_prog_compiler_wl='-Qoption ld '
9461	  ;;
9462	*Sun\ C*)
9463	  # Sun C 5.9
9464	  lt_prog_compiler_pic='-KPIC'
9465	  lt_prog_compiler_static='-Bstatic'
9466	  lt_prog_compiler_wl='-Wl,'
9467	  ;;
9468        *Intel*\ [CF]*Compiler*)
9469	  lt_prog_compiler_wl='-Wl,'
9470	  lt_prog_compiler_pic='-fPIC'
9471	  lt_prog_compiler_static='-static'
9472	  ;;
9473	*Portland\ Group*)
9474	  lt_prog_compiler_wl='-Wl,'
9475	  lt_prog_compiler_pic='-fpic'
9476	  lt_prog_compiler_static='-Bstatic'
9477	  ;;
9478	esac
9479	;;
9480      esac
9481      ;;
9482
9483    newsos6)
9484      lt_prog_compiler_pic='-KPIC'
9485      lt_prog_compiler_static='-Bstatic'
9486      ;;
9487
9488    *nto* | *qnx*)
9489      # QNX uses GNU C++, but need to define -shared option too, otherwise
9490      # it will coredump.
9491      lt_prog_compiler_pic='-fPIC -shared'
9492      ;;
9493
9494    osf3* | osf4* | osf5*)
9495      lt_prog_compiler_wl='-Wl,'
9496      # All OSF/1 code is PIC.
9497      lt_prog_compiler_static='-non_shared'
9498      ;;
9499
9500    rdos*)
9501      lt_prog_compiler_static='-non_shared'
9502      ;;
9503
9504    solaris*)
9505      lt_prog_compiler_pic='-KPIC'
9506      lt_prog_compiler_static='-Bstatic'
9507      case $cc_basename in
9508      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9509	lt_prog_compiler_wl='-Qoption ld ';;
9510      *)
9511	lt_prog_compiler_wl='-Wl,';;
9512      esac
9513      ;;
9514
9515    sunos4*)
9516      lt_prog_compiler_wl='-Qoption ld '
9517      lt_prog_compiler_pic='-PIC'
9518      lt_prog_compiler_static='-Bstatic'
9519      ;;
9520
9521    sysv4 | sysv4.2uw2* | sysv4.3*)
9522      lt_prog_compiler_wl='-Wl,'
9523      lt_prog_compiler_pic='-KPIC'
9524      lt_prog_compiler_static='-Bstatic'
9525      ;;
9526
9527    sysv4*MP*)
9528      if test -d /usr/nec; then
9529	lt_prog_compiler_pic='-Kconform_pic'
9530	lt_prog_compiler_static='-Bstatic'
9531      fi
9532      ;;
9533
9534    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9535      lt_prog_compiler_wl='-Wl,'
9536      lt_prog_compiler_pic='-KPIC'
9537      lt_prog_compiler_static='-Bstatic'
9538      ;;
9539
9540    unicos*)
9541      lt_prog_compiler_wl='-Wl,'
9542      lt_prog_compiler_can_build_shared=no
9543      ;;
9544
9545    uts4*)
9546      lt_prog_compiler_pic='-pic'
9547      lt_prog_compiler_static='-Bstatic'
9548      ;;
9549
9550    *)
9551      lt_prog_compiler_can_build_shared=no
9552      ;;
9553    esac
9554  fi
9555
9556case $host_os in
9557  # For platforms that do not support PIC, -DPIC is meaningless:
9558  *djgpp*)
9559    lt_prog_compiler_pic=
9560    ;;
9561  *)
9562    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9563    ;;
9564esac
9565
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9567$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9568if ${lt_cv_prog_compiler_pic+:} false; then :
9569  $as_echo_n "(cached) " >&6
9570else
9571  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9572fi
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9574$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9575lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9576
9577#
9578# Check to make sure the PIC flag actually works.
9579#
9580if test -n "$lt_prog_compiler_pic"; then
9581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9582$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9583if ${lt_cv_prog_compiler_pic_works+:} false; then :
9584  $as_echo_n "(cached) " >&6
9585else
9586  lt_cv_prog_compiler_pic_works=no
9587   ac_outfile=conftest.$ac_objext
9588   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9589   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9590   # Insert the option either (1) after the last *FLAGS variable, or
9591   # (2) before a word containing "conftest.", or (3) at the end.
9592   # Note that $ac_compile itself does not contain backslashes and begins
9593   # with a dollar sign (not a hyphen), so the echo should work correctly.
9594   # The option is referenced via a variable to avoid confusing sed.
9595   lt_compile=`echo "$ac_compile" | $SED \
9596   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9597   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9598   -e 's:$: $lt_compiler_flag:'`
9599   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9600   (eval "$lt_compile" 2>conftest.err)
9601   ac_status=$?
9602   cat conftest.err >&5
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   if (exit $ac_status) && test -s "$ac_outfile"; then
9605     # The compiler can only warn and ignore the option if not recognized
9606     # So say no if there are warnings other than the usual output.
9607     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9608     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9609     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9610       lt_cv_prog_compiler_pic_works=yes
9611     fi
9612   fi
9613   $RM conftest*
9614
9615fi
9616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9617$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9618
9619if test yes = "$lt_cv_prog_compiler_pic_works"; then
9620    case $lt_prog_compiler_pic in
9621     "" | " "*) ;;
9622     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9623     esac
9624else
9625    lt_prog_compiler_pic=
9626     lt_prog_compiler_can_build_shared=no
9627fi
9628
9629fi
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641#
9642# Check to make sure the static flag actually works.
9643#
9644wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9646$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9647if ${lt_cv_prog_compiler_static_works+:} false; then :
9648  $as_echo_n "(cached) " >&6
9649else
9650  lt_cv_prog_compiler_static_works=no
9651   save_LDFLAGS=$LDFLAGS
9652   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9653   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9654   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9655     # The linker can only warn and ignore the option if not recognized
9656     # So say no if there are warnings
9657     if test -s conftest.err; then
9658       # Append any errors to the config.log.
9659       cat conftest.err 1>&5
9660       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9661       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9662       if diff conftest.exp conftest.er2 >/dev/null; then
9663         lt_cv_prog_compiler_static_works=yes
9664       fi
9665     else
9666       lt_cv_prog_compiler_static_works=yes
9667     fi
9668   fi
9669   $RM -r conftest*
9670   LDFLAGS=$save_LDFLAGS
9671
9672fi
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9674$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9675
9676if test yes = "$lt_cv_prog_compiler_static_works"; then
9677    :
9678else
9679    lt_prog_compiler_static=
9680fi
9681
9682
9683
9684
9685
9686
9687
9688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9689$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9690if ${lt_cv_prog_compiler_c_o+:} false; then :
9691  $as_echo_n "(cached) " >&6
9692else
9693  lt_cv_prog_compiler_c_o=no
9694   $RM -r conftest 2>/dev/null
9695   mkdir conftest
9696   cd conftest
9697   mkdir out
9698   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699
9700   lt_compiler_flag="-o out/conftest2.$ac_objext"
9701   # Insert the option either (1) after the last *FLAGS variable, or
9702   # (2) before a word containing "conftest.", or (3) at the end.
9703   # Note that $ac_compile itself does not contain backslashes and begins
9704   # with a dollar sign (not a hyphen), so the echo should work correctly.
9705   lt_compile=`echo "$ac_compile" | $SED \
9706   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9707   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9708   -e 's:$: $lt_compiler_flag:'`
9709   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9710   (eval "$lt_compile" 2>out/conftest.err)
9711   ac_status=$?
9712   cat out/conftest.err >&5
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9715   then
9716     # The compiler can only warn and ignore the option if not recognized
9717     # So say no if there are warnings
9718     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9719     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9720     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9721       lt_cv_prog_compiler_c_o=yes
9722     fi
9723   fi
9724   chmod u+w . 2>&5
9725   $RM conftest*
9726   # SGI C++ compiler will create directory out/ii_files/ for
9727   # template instantiation
9728   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9729   $RM out/* && rmdir out
9730   cd ..
9731   $RM -r conftest
9732   $RM conftest*
9733
9734fi
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9736$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9737
9738
9739
9740
9741
9742
9743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9744$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9745if ${lt_cv_prog_compiler_c_o+:} false; then :
9746  $as_echo_n "(cached) " >&6
9747else
9748  lt_cv_prog_compiler_c_o=no
9749   $RM -r conftest 2>/dev/null
9750   mkdir conftest
9751   cd conftest
9752   mkdir out
9753   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9754
9755   lt_compiler_flag="-o out/conftest2.$ac_objext"
9756   # Insert the option either (1) after the last *FLAGS variable, or
9757   # (2) before a word containing "conftest.", or (3) at the end.
9758   # Note that $ac_compile itself does not contain backslashes and begins
9759   # with a dollar sign (not a hyphen), so the echo should work correctly.
9760   lt_compile=`echo "$ac_compile" | $SED \
9761   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763   -e 's:$: $lt_compiler_flag:'`
9764   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9765   (eval "$lt_compile" 2>out/conftest.err)
9766   ac_status=$?
9767   cat out/conftest.err >&5
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9770   then
9771     # The compiler can only warn and ignore the option if not recognized
9772     # So say no if there are warnings
9773     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9774     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9775     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9776       lt_cv_prog_compiler_c_o=yes
9777     fi
9778   fi
9779   chmod u+w . 2>&5
9780   $RM conftest*
9781   # SGI C++ compiler will create directory out/ii_files/ for
9782   # template instantiation
9783   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9784   $RM out/* && rmdir out
9785   cd ..
9786   $RM -r conftest
9787   $RM conftest*
9788
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9791$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9792
9793
9794
9795
9796hard_links=nottested
9797if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9798  # do not overwrite the value of need_locks provided by the user
9799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9800$as_echo_n "checking if we can lock with hard links... " >&6; }
9801  hard_links=yes
9802  $RM conftest*
9803  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9804  touch conftest.a
9805  ln conftest.a conftest.b 2>&5 || hard_links=no
9806  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9808$as_echo "$hard_links" >&6; }
9809  if test no = "$hard_links"; then
9810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9811$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9812    need_locks=warn
9813  fi
9814else
9815  need_locks=no
9816fi
9817
9818
9819
9820
9821
9822
9823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9824$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9825
9826  runpath_var=
9827  allow_undefined_flag=
9828  always_export_symbols=no
9829  archive_cmds=
9830  archive_expsym_cmds=
9831  compiler_needs_object=no
9832  enable_shared_with_static_runtimes=no
9833  export_dynamic_flag_spec=
9834  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9835  hardcode_automatic=no
9836  hardcode_direct=no
9837  hardcode_direct_absolute=no
9838  hardcode_libdir_flag_spec=
9839  hardcode_libdir_separator=
9840  hardcode_minus_L=no
9841  hardcode_shlibpath_var=unsupported
9842  inherit_rpath=no
9843  link_all_deplibs=unknown
9844  module_cmds=
9845  module_expsym_cmds=
9846  old_archive_from_new_cmds=
9847  old_archive_from_expsyms_cmds=
9848  thread_safe_flag_spec=
9849  whole_archive_flag_spec=
9850  # include_expsyms should be a list of space-separated symbols to be *always*
9851  # included in the symbol list
9852  include_expsyms=
9853  # exclude_expsyms can be an extended regexp of symbols to exclude
9854  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9855  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9856  # as well as any symbol that contains 'd'.
9857  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9858  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9859  # platforms (ab)use it in PIC code, but their linkers get confused if
9860  # the symbol is explicitly referenced.  Since portable code cannot
9861  # rely on this symbol name, it's probably fine to never include it in
9862  # preloaded symbol tables.
9863  # Exclude shared library initialization/finalization symbols.
9864  extract_expsyms_cmds=
9865
9866  case $host_os in
9867  cygwin* | mingw* | pw32* | cegcc*)
9868    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9869    # When not using gcc, we currently assume that we are using
9870    # Microsoft Visual C++.
9871    if test yes != "$GCC"; then
9872      with_gnu_ld=no
9873    fi
9874    ;;
9875  interix*)
9876    # we just hope/assume this is gcc and not c89 (= MSVC++)
9877    with_gnu_ld=yes
9878    ;;
9879  openbsd* | bitrig*)
9880    with_gnu_ld=no
9881    ;;
9882  linux* | k*bsd*-gnu | gnu*)
9883    link_all_deplibs=no
9884    ;;
9885  esac
9886
9887  ld_shlibs=yes
9888
9889  # On some targets, GNU ld is compatible enough with the native linker
9890  # that we're better off using the native interface for both.
9891  lt_use_gnu_ld_interface=no
9892  if test yes = "$with_gnu_ld"; then
9893    case $host_os in
9894      aix*)
9895	# The AIX port of GNU ld has always aspired to compatibility
9896	# with the native linker.  However, as the warning in the GNU ld
9897	# block says, versions before 2.19.5* couldn't really create working
9898	# shared libraries, regardless of the interface used.
9899	case `$LD -v 2>&1` in
9900	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9901	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9902	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9903	  *)
9904	    lt_use_gnu_ld_interface=yes
9905	    ;;
9906	esac
9907	;;
9908      *)
9909	lt_use_gnu_ld_interface=yes
9910	;;
9911    esac
9912  fi
9913
9914  if test yes = "$lt_use_gnu_ld_interface"; then
9915    # If archive_cmds runs LD, not CC, wlarc should be empty
9916    wlarc='$wl'
9917
9918    # Set some defaults for GNU ld with shared library support. These
9919    # are reset later if shared libraries are not supported. Putting them
9920    # here allows them to be overridden if necessary.
9921    runpath_var=LD_RUN_PATH
9922    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9923    export_dynamic_flag_spec='$wl--export-dynamic'
9924    # ancient GNU ld didn't support --whole-archive et. al.
9925    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9926      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9927    else
9928      whole_archive_flag_spec=
9929    fi
9930    supports_anon_versioning=no
9931    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9932      *GNU\ gold*) supports_anon_versioning=yes ;;
9933      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9934      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9935      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9936      *\ 2.11.*) ;; # other 2.11 versions
9937      *) supports_anon_versioning=yes ;;
9938    esac
9939
9940    # See if GNU ld supports shared libraries.
9941    case $host_os in
9942    aix[3-9]*)
9943      # On AIX/PPC, the GNU linker is very broken
9944      if test ia64 != "$host_cpu"; then
9945	ld_shlibs=no
9946	cat <<_LT_EOF 1>&2
9947
9948*** Warning: the GNU linker, at least up to release 2.19, is reported
9949*** to be unable to reliably create shared libraries on AIX.
9950*** Therefore, libtool is disabling shared libraries support.  If you
9951*** really care for shared libraries, you may want to install binutils
9952*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9953*** You will then need to restart the configuration process.
9954
9955_LT_EOF
9956      fi
9957      ;;
9958
9959    amigaos*)
9960      case $host_cpu in
9961      powerpc)
9962            # see comment about AmigaOS4 .so support
9963            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9964            archive_expsym_cmds=''
9965        ;;
9966      m68k)
9967            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)'
9968            hardcode_libdir_flag_spec='-L$libdir'
9969            hardcode_minus_L=yes
9970        ;;
9971      esac
9972      ;;
9973
9974    beos*)
9975      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9976	allow_undefined_flag=unsupported
9977	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9978	# support --undefined.  This deserves some investigation.  FIXME
9979	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9980      else
9981	ld_shlibs=no
9982      fi
9983      ;;
9984
9985    cygwin* | mingw* | pw32* | cegcc*)
9986      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9987      # as there is no search path for DLLs.
9988      hardcode_libdir_flag_spec='-L$libdir'
9989      export_dynamic_flag_spec='$wl--export-all-symbols'
9990      allow_undefined_flag=unsupported
9991      always_export_symbols=no
9992      enable_shared_with_static_runtimes=yes
9993      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9994      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9995
9996      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9997        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9998	# If the export-symbols file already is a .def file, use it as
9999	# is; otherwise, prepend EXPORTS...
10000	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10001          cp $export_symbols $output_objdir/$soname.def;
10002        else
10003          echo EXPORTS > $output_objdir/$soname.def;
10004          cat $export_symbols >> $output_objdir/$soname.def;
10005        fi~
10006        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10007      else
10008	ld_shlibs=no
10009      fi
10010      ;;
10011
10012    haiku*)
10013      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10014      link_all_deplibs=yes
10015      ;;
10016
10017    os2*)
10018      hardcode_libdir_flag_spec='-L$libdir'
10019      hardcode_minus_L=yes
10020      allow_undefined_flag=unsupported
10021      shrext_cmds=.dll
10022      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10023	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10024	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10025	$ECHO EXPORTS >> $output_objdir/$libname.def~
10026	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10027	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10028	emximp -o $lib $output_objdir/$libname.def'
10029      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10030	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10031	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10032	$ECHO EXPORTS >> $output_objdir/$libname.def~
10033	prefix_cmds="$SED"~
10034	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10035	  prefix_cmds="$prefix_cmds -e 1d";
10036	fi~
10037	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10038	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10039	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10040	emximp -o $lib $output_objdir/$libname.def'
10041      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10042      enable_shared_with_static_runtimes=yes
10043      ;;
10044
10045    interix[3-9]*)
10046      hardcode_direct=no
10047      hardcode_shlibpath_var=no
10048      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10049      export_dynamic_flag_spec='$wl-E'
10050      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10051      # Instead, shared libraries are loaded at an image base (0x10000000 by
10052      # default) and relocated if they conflict, which is a slow very memory
10053      # consuming and fragmenting process.  To avoid this, we pick a random,
10054      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10055      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10056      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10057      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'
10058      ;;
10059
10060    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10061      tmp_diet=no
10062      if test linux-dietlibc = "$host_os"; then
10063	case $cc_basename in
10064	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10065	esac
10066      fi
10067      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10068	 && test no = "$tmp_diet"
10069      then
10070	tmp_addflag=' $pic_flag'
10071	tmp_sharedflag='-shared'
10072	case $cc_basename,$host_cpu in
10073        pgcc*)				# Portland Group C compiler
10074	  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'
10075	  tmp_addflag=' $pic_flag'
10076	  ;;
10077	pgf77* | pgf90* | pgf95* | pgfortran*)
10078					# Portland Group f77 and f90 compilers
10079	  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'
10080	  tmp_addflag=' $pic_flag -Mnomain' ;;
10081	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10082	  tmp_addflag=' -i_dynamic' ;;
10083	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10084	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10085	ifc* | ifort*)			# Intel Fortran compiler
10086	  tmp_addflag=' -nofor_main' ;;
10087	lf95*)				# Lahey Fortran 8.1
10088	  whole_archive_flag_spec=
10089	  tmp_sharedflag='--shared' ;;
10090        nagfor*)                        # NAGFOR 5.3
10091          tmp_sharedflag='-Wl,-shared' ;;
10092	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10093	  tmp_sharedflag='-qmkshrobj'
10094	  tmp_addflag= ;;
10095	nvcc*)	# Cuda Compiler Driver 2.2
10096	  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'
10097	  compiler_needs_object=yes
10098	  ;;
10099	esac
10100	case `$CC -V 2>&1 | sed 5q` in
10101	*Sun\ C*)			# Sun C 5.9
10102	  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'
10103	  compiler_needs_object=yes
10104	  tmp_sharedflag='-G' ;;
10105	*Sun\ F*)			# Sun Fortran 8.3
10106	  tmp_sharedflag='-G' ;;
10107	esac
10108	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10109
10110        if test yes = "$supports_anon_versioning"; then
10111          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10112            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10113            echo "local: *; };" >> $output_objdir/$libname.ver~
10114            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10115        fi
10116
10117	case $cc_basename in
10118	tcc*)
10119	  export_dynamic_flag_spec='-rdynamic'
10120	  ;;
10121	xlf* | bgf* | bgxlf* | mpixlf*)
10122	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10123	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10124	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10125	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10126	  if test yes = "$supports_anon_versioning"; then
10127	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10128              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10129              echo "local: *; };" >> $output_objdir/$libname.ver~
10130              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10131	  fi
10132	  ;;
10133	esac
10134      else
10135        ld_shlibs=no
10136      fi
10137      ;;
10138
10139    netbsd* | netbsdelf*-gnu)
10140      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10141	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10142	wlarc=
10143      else
10144	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10145	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10146      fi
10147      ;;
10148
10149    solaris*)
10150      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10151	ld_shlibs=no
10152	cat <<_LT_EOF 1>&2
10153
10154*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10155*** create shared libraries on Solaris systems.  Therefore, libtool
10156*** is disabling shared libraries support.  We urge you to upgrade GNU
10157*** binutils to release 2.9.1 or newer.  Another option is to modify
10158*** your PATH or compiler configuration so that the native linker is
10159*** used, and then restart.
10160
10161_LT_EOF
10162      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10163	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10164	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10165      else
10166	ld_shlibs=no
10167      fi
10168      ;;
10169
10170    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10171      case `$LD -v 2>&1` in
10172        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10173	ld_shlibs=no
10174	cat <<_LT_EOF 1>&2
10175
10176*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10177*** reliably create shared libraries on SCO systems.  Therefore, libtool
10178*** is disabling shared libraries support.  We urge you to upgrade GNU
10179*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10180*** your PATH or compiler configuration so that the native linker is
10181*** used, and then restart.
10182
10183_LT_EOF
10184	;;
10185	*)
10186	  # For security reasons, it is highly recommended that you always
10187	  # use absolute paths for naming shared libraries, and exclude the
10188	  # DT_RUNPATH tag from executables and libraries.  But doing so
10189	  # requires that you compile everything twice, which is a pain.
10190	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10191	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10192	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10193	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10194	  else
10195	    ld_shlibs=no
10196	  fi
10197	;;
10198      esac
10199      ;;
10200
10201    sunos4*)
10202      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10203      wlarc=
10204      hardcode_direct=yes
10205      hardcode_shlibpath_var=no
10206      ;;
10207
10208    *)
10209      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10210	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10211	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10212      else
10213	ld_shlibs=no
10214      fi
10215      ;;
10216    esac
10217
10218    if test no = "$ld_shlibs"; then
10219      runpath_var=
10220      hardcode_libdir_flag_spec=
10221      export_dynamic_flag_spec=
10222      whole_archive_flag_spec=
10223    fi
10224  else
10225    # PORTME fill in a description of your system's linker (not GNU ld)
10226    case $host_os in
10227    aix3*)
10228      allow_undefined_flag=unsupported
10229      always_export_symbols=yes
10230      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'
10231      # Note: this linker hardcodes the directories in LIBPATH if there
10232      # are no directories specified by -L.
10233      hardcode_minus_L=yes
10234      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10235	# Neither direct hardcoding nor static linking is supported with a
10236	# broken collect2.
10237	hardcode_direct=unsupported
10238      fi
10239      ;;
10240
10241    aix[4-9]*)
10242      if test ia64 = "$host_cpu"; then
10243	# On IA64, the linker does run time linking by default, so we don't
10244	# have to do anything special.
10245	aix_use_runtimelinking=no
10246	exp_sym_flag='-Bexport'
10247	no_entry_flag=
10248      else
10249	# If we're using GNU nm, then we don't want the "-C" option.
10250	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10251	# Without the "-l" option, or with the "-B" option, AIX nm treats
10252	# weak defined symbols like other global defined symbols, whereas
10253	# GNU nm marks them as "W".
10254	# While the 'weak' keyword is ignored in the Export File, we need
10255	# it in the Import File for the 'aix-soname' feature, so we have
10256	# to replace the "-B" option with "-P" for AIX nm.
10257	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10258	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10259	else
10260	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10261	fi
10262	aix_use_runtimelinking=no
10263
10264	# Test if we are trying to use run time linking or normal
10265	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10266	# have runtime linking enabled, and use it for executables.
10267	# For shared libraries, we enable/disable runtime linking
10268	# depending on the kind of the shared library created -
10269	# when "with_aix_soname,aix_use_runtimelinking" is:
10270	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10271	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10272	#            lib.a           static archive
10273	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10274	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10275	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10276	#            lib.a(lib.so.V) shared, rtl:no
10277	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10278	#            lib.a           static archive
10279	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10280	  for ld_flag in $LDFLAGS; do
10281	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10282	    aix_use_runtimelinking=yes
10283	    break
10284	  fi
10285	  done
10286	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10287	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10288	    # so we don't have lib.a shared libs to link our executables.
10289	    # We have to force runtime linking in this case.
10290	    aix_use_runtimelinking=yes
10291	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10292	  fi
10293	  ;;
10294	esac
10295
10296	exp_sym_flag='-bexport'
10297	no_entry_flag='-bnoentry'
10298      fi
10299
10300      # When large executables or shared objects are built, AIX ld can
10301      # have problems creating the table of contents.  If linking a library
10302      # or program results in "error TOC overflow" add -mminimal-toc to
10303      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10304      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10305
10306      archive_cmds=''
10307      hardcode_direct=yes
10308      hardcode_direct_absolute=yes
10309      hardcode_libdir_separator=':'
10310      link_all_deplibs=yes
10311      file_list_spec='$wl-f,'
10312      case $with_aix_soname,$aix_use_runtimelinking in
10313      aix,*) ;; # traditional, no import file
10314      svr4,* | *,yes) # use import file
10315	# The Import File defines what to hardcode.
10316	hardcode_direct=no
10317	hardcode_direct_absolute=no
10318	;;
10319      esac
10320
10321      if test yes = "$GCC"; then
10322	case $host_os in aix4.[012]|aix4.[012].*)
10323	# We only want to do this on AIX 4.2 and lower, the check
10324	# below for broken collect2 doesn't work under 4.3+
10325	  collect2name=`$CC -print-prog-name=collect2`
10326	  if test -f "$collect2name" &&
10327	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10328	  then
10329	  # We have reworked collect2
10330	  :
10331	  else
10332	  # We have old collect2
10333	  hardcode_direct=unsupported
10334	  # It fails to find uninstalled libraries when the uninstalled
10335	  # path is not listed in the libpath.  Setting hardcode_minus_L
10336	  # to unsupported forces relinking
10337	  hardcode_minus_L=yes
10338	  hardcode_libdir_flag_spec='-L$libdir'
10339	  hardcode_libdir_separator=
10340	  fi
10341	  ;;
10342	esac
10343	shared_flag='-shared'
10344	if test yes = "$aix_use_runtimelinking"; then
10345	  shared_flag="$shared_flag "'$wl-G'
10346	fi
10347	# Need to ensure runtime linking is disabled for the traditional
10348	# shared library, or the linker may eventually find shared libraries
10349	# /with/ Import File - we do not want to mix them.
10350	shared_flag_aix='-shared'
10351	shared_flag_svr4='-shared $wl-G'
10352      else
10353	# not using gcc
10354	if test ia64 = "$host_cpu"; then
10355	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10356	# chokes on -Wl,-G. The following line is correct:
10357	  shared_flag='-G'
10358	else
10359	  if test yes = "$aix_use_runtimelinking"; then
10360	    shared_flag='$wl-G'
10361	  else
10362	    shared_flag='$wl-bM:SRE'
10363	  fi
10364	  shared_flag_aix='$wl-bM:SRE'
10365	  shared_flag_svr4='$wl-G'
10366	fi
10367      fi
10368
10369      export_dynamic_flag_spec='$wl-bexpall'
10370      # It seems that -bexpall does not export symbols beginning with
10371      # underscore (_), so it is better to generate a list of symbols to export.
10372      always_export_symbols=yes
10373      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10374	# Warning - without using the other runtime loading flags (-brtl),
10375	# -berok will link without error, but may produce a broken library.
10376	allow_undefined_flag='-berok'
10377        # Determine the default libpath from the value encoded in an
10378        # empty executable.
10379        if test set = "${lt_cv_aix_libpath+set}"; then
10380  aix_libpath=$lt_cv_aix_libpath
10381else
10382  if ${lt_cv_aix_libpath_+:} false; then :
10383  $as_echo_n "(cached) " >&6
10384else
10385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386/* end confdefs.h.  */
10387
10388int
10389main ()
10390{
10391
10392  ;
10393  return 0;
10394}
10395_ACEOF
10396if ac_fn_c_try_link "$LINENO"; then :
10397
10398  lt_aix_libpath_sed='
10399      /Import File Strings/,/^$/ {
10400	  /^0/ {
10401	      s/^0  *\([^ ]*\) *$/\1/
10402	      p
10403	  }
10404      }'
10405  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10406  # Check for a 64-bit object if we didn't find anything.
10407  if test -z "$lt_cv_aix_libpath_"; then
10408    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10409  fi
10410fi
10411rm -f core conftest.err conftest.$ac_objext \
10412    conftest$ac_exeext conftest.$ac_ext
10413  if test -z "$lt_cv_aix_libpath_"; then
10414    lt_cv_aix_libpath_=/usr/lib:/lib
10415  fi
10416
10417fi
10418
10419  aix_libpath=$lt_cv_aix_libpath_
10420fi
10421
10422        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10423        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10424      else
10425	if test ia64 = "$host_cpu"; then
10426	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10427	  allow_undefined_flag="-z nodefs"
10428	  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"
10429	else
10430	 # Determine the default libpath from the value encoded in an
10431	 # empty executable.
10432	 if test set = "${lt_cv_aix_libpath+set}"; then
10433  aix_libpath=$lt_cv_aix_libpath
10434else
10435  if ${lt_cv_aix_libpath_+:} false; then :
10436  $as_echo_n "(cached) " >&6
10437else
10438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439/* end confdefs.h.  */
10440
10441int
10442main ()
10443{
10444
10445  ;
10446  return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_link "$LINENO"; then :
10450
10451  lt_aix_libpath_sed='
10452      /Import File Strings/,/^$/ {
10453	  /^0/ {
10454	      s/^0  *\([^ ]*\) *$/\1/
10455	      p
10456	  }
10457      }'
10458  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10459  # Check for a 64-bit object if we didn't find anything.
10460  if test -z "$lt_cv_aix_libpath_"; then
10461    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10462  fi
10463fi
10464rm -f core conftest.err conftest.$ac_objext \
10465    conftest$ac_exeext conftest.$ac_ext
10466  if test -z "$lt_cv_aix_libpath_"; then
10467    lt_cv_aix_libpath_=/usr/lib:/lib
10468  fi
10469
10470fi
10471
10472  aix_libpath=$lt_cv_aix_libpath_
10473fi
10474
10475	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10476	  # Warning - without using the other run time loading flags,
10477	  # -berok will link without error, but may produce a broken library.
10478	  no_undefined_flag=' $wl-bernotok'
10479	  allow_undefined_flag=' $wl-berok'
10480	  if test yes = "$with_gnu_ld"; then
10481	    # We only use this code for GNU lds that support --whole-archive.
10482	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10483	  else
10484	    # Exported symbols can be pulled into shared objects from archives
10485	    whole_archive_flag_spec='$convenience'
10486	  fi
10487	  archive_cmds_need_lc=yes
10488	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10489	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10490	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10491	  if test svr4 != "$with_aix_soname"; then
10492	    # This is similar to how AIX traditionally builds its shared libraries.
10493	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10494	  fi
10495	  if test aix != "$with_aix_soname"; then
10496	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10497	  else
10498	    # used by -dlpreopen to get the symbols
10499	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10500	  fi
10501	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10502	fi
10503      fi
10504      ;;
10505
10506    amigaos*)
10507      case $host_cpu in
10508      powerpc)
10509            # see comment about AmigaOS4 .so support
10510            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10511            archive_expsym_cmds=''
10512        ;;
10513      m68k)
10514            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)'
10515            hardcode_libdir_flag_spec='-L$libdir'
10516            hardcode_minus_L=yes
10517        ;;
10518      esac
10519      ;;
10520
10521    bsdi[45]*)
10522      export_dynamic_flag_spec=-rdynamic
10523      ;;
10524
10525    cygwin* | mingw* | pw32* | cegcc*)
10526      # When not using gcc, we currently assume that we are using
10527      # Microsoft Visual C++.
10528      # hardcode_libdir_flag_spec is actually meaningless, as there is
10529      # no search path for DLLs.
10530      case $cc_basename in
10531      cl*)
10532	# Native MSVC
10533	hardcode_libdir_flag_spec=' '
10534	allow_undefined_flag=unsupported
10535	always_export_symbols=yes
10536	file_list_spec='@'
10537	# Tell ltmain to make .lib files, not .a files.
10538	libext=lib
10539	# Tell ltmain to make .dll files, not .so files.
10540	shrext_cmds=.dll
10541	# FIXME: Setting linknames here is a bad hack.
10542	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10543	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10544            cp "$export_symbols" "$output_objdir/$soname.def";
10545            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10546          else
10547            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10548          fi~
10549          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10550          linknames='
10551	# The linker will not automatically build a static lib if we build a DLL.
10552	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10553	enable_shared_with_static_runtimes=yes
10554	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10555	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10556	# Don't use ranlib
10557	old_postinstall_cmds='chmod 644 $oldlib'
10558	postlink_cmds='lt_outputfile="@OUTPUT@"~
10559          lt_tool_outputfile="@TOOL_OUTPUT@"~
10560          case $lt_outputfile in
10561            *.exe|*.EXE) ;;
10562            *)
10563              lt_outputfile=$lt_outputfile.exe
10564              lt_tool_outputfile=$lt_tool_outputfile.exe
10565              ;;
10566          esac~
10567          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10568            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10569            $RM "$lt_outputfile.manifest";
10570          fi'
10571	;;
10572      *)
10573	# Assume MSVC wrapper
10574	hardcode_libdir_flag_spec=' '
10575	allow_undefined_flag=unsupported
10576	# Tell ltmain to make .lib files, not .a files.
10577	libext=lib
10578	# Tell ltmain to make .dll files, not .so files.
10579	shrext_cmds=.dll
10580	# FIXME: Setting linknames here is a bad hack.
10581	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10582	# The linker will automatically build a .lib file if we build a DLL.
10583	old_archive_from_new_cmds='true'
10584	# FIXME: Should let the user specify the lib program.
10585	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10586	enable_shared_with_static_runtimes=yes
10587	;;
10588      esac
10589      ;;
10590
10591    darwin* | rhapsody*)
10592
10593
10594  archive_cmds_need_lc=no
10595  hardcode_direct=no
10596  hardcode_automatic=yes
10597  hardcode_shlibpath_var=unsupported
10598  if test yes = "$lt_cv_ld_force_load"; then
10599    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\"`'
10600
10601  else
10602    whole_archive_flag_spec=''
10603  fi
10604  link_all_deplibs=yes
10605  allow_undefined_flag=$_lt_dar_allow_undefined
10606  case $cc_basename in
10607     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10608     *) _lt_dar_can_shared=$GCC ;;
10609  esac
10610  if test yes = "$_lt_dar_can_shared"; then
10611    output_verbose_link_cmd=func_echo_all
10612    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10613    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10614    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"
10615    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"
10616
10617  else
10618  ld_shlibs=no
10619  fi
10620
10621      ;;
10622
10623    dgux*)
10624      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625      hardcode_libdir_flag_spec='-L$libdir'
10626      hardcode_shlibpath_var=no
10627      ;;
10628
10629    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10630    # support.  Future versions do this automatically, but an explicit c++rt0.o
10631    # does not break anything, and helps significantly (at the cost of a little
10632    # extra space).
10633    freebsd2.2*)
10634      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10635      hardcode_libdir_flag_spec='-R$libdir'
10636      hardcode_direct=yes
10637      hardcode_shlibpath_var=no
10638      ;;
10639
10640    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10641    freebsd2.*)
10642      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10643      hardcode_direct=yes
10644      hardcode_minus_L=yes
10645      hardcode_shlibpath_var=no
10646      ;;
10647
10648    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10649    freebsd* | dragonfly*)
10650      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10651      hardcode_libdir_flag_spec='-R$libdir'
10652      hardcode_direct=yes
10653      hardcode_shlibpath_var=no
10654      ;;
10655
10656    hpux9*)
10657      if test yes = "$GCC"; then
10658	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10659      else
10660	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10661      fi
10662      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10663      hardcode_libdir_separator=:
10664      hardcode_direct=yes
10665
10666      # hardcode_minus_L: Not really in the search PATH,
10667      # but as the default location of the library.
10668      hardcode_minus_L=yes
10669      export_dynamic_flag_spec='$wl-E'
10670      ;;
10671
10672    hpux10*)
10673      if test yes,no = "$GCC,$with_gnu_ld"; then
10674	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10675      else
10676	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10677      fi
10678      if test no = "$with_gnu_ld"; then
10679	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10680	hardcode_libdir_separator=:
10681	hardcode_direct=yes
10682	hardcode_direct_absolute=yes
10683	export_dynamic_flag_spec='$wl-E'
10684	# hardcode_minus_L: Not really in the search PATH,
10685	# but as the default location of the library.
10686	hardcode_minus_L=yes
10687      fi
10688      ;;
10689
10690    hpux11*)
10691      if test yes,no = "$GCC,$with_gnu_ld"; then
10692	case $host_cpu in
10693	hppa*64*)
10694	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10695	  ;;
10696	ia64*)
10697	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10698	  ;;
10699	*)
10700	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10701	  ;;
10702	esac
10703      else
10704	case $host_cpu in
10705	hppa*64*)
10706	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10707	  ;;
10708	ia64*)
10709	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10710	  ;;
10711	*)
10712
10713	  # Older versions of the 11.00 compiler do not understand -b yet
10714	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10715	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10716$as_echo_n "checking if $CC understands -b... " >&6; }
10717if ${lt_cv_prog_compiler__b+:} false; then :
10718  $as_echo_n "(cached) " >&6
10719else
10720  lt_cv_prog_compiler__b=no
10721   save_LDFLAGS=$LDFLAGS
10722   LDFLAGS="$LDFLAGS -b"
10723   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10724   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10725     # The linker can only warn and ignore the option if not recognized
10726     # So say no if there are warnings
10727     if test -s conftest.err; then
10728       # Append any errors to the config.log.
10729       cat conftest.err 1>&5
10730       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10731       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10732       if diff conftest.exp conftest.er2 >/dev/null; then
10733         lt_cv_prog_compiler__b=yes
10734       fi
10735     else
10736       lt_cv_prog_compiler__b=yes
10737     fi
10738   fi
10739   $RM -r conftest*
10740   LDFLAGS=$save_LDFLAGS
10741
10742fi
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10744$as_echo "$lt_cv_prog_compiler__b" >&6; }
10745
10746if test yes = "$lt_cv_prog_compiler__b"; then
10747    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10748else
10749    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10750fi
10751
10752	  ;;
10753	esac
10754      fi
10755      if test no = "$with_gnu_ld"; then
10756	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10757	hardcode_libdir_separator=:
10758
10759	case $host_cpu in
10760	hppa*64*|ia64*)
10761	  hardcode_direct=no
10762	  hardcode_shlibpath_var=no
10763	  ;;
10764	*)
10765	  hardcode_direct=yes
10766	  hardcode_direct_absolute=yes
10767	  export_dynamic_flag_spec='$wl-E'
10768
10769	  # hardcode_minus_L: Not really in the search PATH,
10770	  # but as the default location of the library.
10771	  hardcode_minus_L=yes
10772	  ;;
10773	esac
10774      fi
10775      ;;
10776
10777    irix5* | irix6* | nonstopux*)
10778      if test yes = "$GCC"; then
10779	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10780	# Try to use the -exported_symbol ld option, if it does not
10781	# work, assume that -exports_file does not work either and
10782	# implicitly export all symbols.
10783	# This should be the same for all languages, so no per-tag cache variable.
10784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10785$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10786if ${lt_cv_irix_exported_symbol+:} false; then :
10787  $as_echo_n "(cached) " >&6
10788else
10789  save_LDFLAGS=$LDFLAGS
10790	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10791	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792/* end confdefs.h.  */
10793int foo (void) { return 0; }
10794_ACEOF
10795if ac_fn_c_try_link "$LINENO"; then :
10796  lt_cv_irix_exported_symbol=yes
10797else
10798  lt_cv_irix_exported_symbol=no
10799fi
10800rm -f core conftest.err conftest.$ac_objext \
10801    conftest$ac_exeext conftest.$ac_ext
10802           LDFLAGS=$save_LDFLAGS
10803fi
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10805$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10806	if test yes = "$lt_cv_irix_exported_symbol"; then
10807          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10808	fi
10809	link_all_deplibs=no
10810      else
10811	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'
10812	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'
10813      fi
10814      archive_cmds_need_lc='no'
10815      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10816      hardcode_libdir_separator=:
10817      inherit_rpath=yes
10818      link_all_deplibs=yes
10819      ;;
10820
10821    linux*)
10822      case $cc_basename in
10823      tcc*)
10824	# Fabrice Bellard et al's Tiny C Compiler
10825	ld_shlibs=yes
10826	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10827	;;
10828      esac
10829      ;;
10830
10831    netbsd* | netbsdelf*-gnu)
10832      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10833	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10834      else
10835	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10836      fi
10837      hardcode_libdir_flag_spec='-R$libdir'
10838      hardcode_direct=yes
10839      hardcode_shlibpath_var=no
10840      ;;
10841
10842    newsos6)
10843      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844      hardcode_direct=yes
10845      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10846      hardcode_libdir_separator=:
10847      hardcode_shlibpath_var=no
10848      ;;
10849
10850    *nto* | *qnx*)
10851      ;;
10852
10853    openbsd* | bitrig*)
10854      if test -f /usr/libexec/ld.so; then
10855	hardcode_direct=yes
10856	hardcode_shlibpath_var=no
10857	hardcode_direct_absolute=yes
10858	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10859	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10860	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10861	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10862	  export_dynamic_flag_spec='$wl-E'
10863	else
10864	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10865	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10866	fi
10867      else
10868	ld_shlibs=no
10869      fi
10870      ;;
10871
10872    os2*)
10873      hardcode_libdir_flag_spec='-L$libdir'
10874      hardcode_minus_L=yes
10875      allow_undefined_flag=unsupported
10876      shrext_cmds=.dll
10877      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10878	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10879	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10880	$ECHO EXPORTS >> $output_objdir/$libname.def~
10881	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10882	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10883	emximp -o $lib $output_objdir/$libname.def'
10884      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10885	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10886	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10887	$ECHO EXPORTS >> $output_objdir/$libname.def~
10888	prefix_cmds="$SED"~
10889	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10890	  prefix_cmds="$prefix_cmds -e 1d";
10891	fi~
10892	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10893	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10894	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10895	emximp -o $lib $output_objdir/$libname.def'
10896      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10897      enable_shared_with_static_runtimes=yes
10898      ;;
10899
10900    osf3*)
10901      if test yes = "$GCC"; then
10902	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10903	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'
10904      else
10905	allow_undefined_flag=' -expect_unresolved \*'
10906	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'
10907      fi
10908      archive_cmds_need_lc='no'
10909      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10910      hardcode_libdir_separator=:
10911      ;;
10912
10913    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10914      if test yes = "$GCC"; then
10915	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10916	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10917	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10918      else
10919	allow_undefined_flag=' -expect_unresolved \*'
10920	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'
10921	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~
10922          $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'
10923
10924	# Both c and cxx compiler support -rpath directly
10925	hardcode_libdir_flag_spec='-rpath $libdir'
10926      fi
10927      archive_cmds_need_lc='no'
10928      hardcode_libdir_separator=:
10929      ;;
10930
10931    solaris*)
10932      no_undefined_flag=' -z defs'
10933      if test yes = "$GCC"; then
10934	wlarc='$wl'
10935	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10936	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10937          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10938      else
10939	case `$CC -V 2>&1` in
10940	*"Compilers 5.0"*)
10941	  wlarc=''
10942	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10943	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10944            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10945	  ;;
10946	*)
10947	  wlarc='$wl'
10948	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10949	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10950            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10951	  ;;
10952	esac
10953      fi
10954      hardcode_libdir_flag_spec='-R$libdir'
10955      hardcode_shlibpath_var=no
10956      case $host_os in
10957      solaris2.[0-5] | solaris2.[0-5].*) ;;
10958      *)
10959	# The compiler driver will combine and reorder linker options,
10960	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10961	# but is careful enough not to reorder.
10962	# Supported since Solaris 2.6 (maybe 2.5.1?)
10963	if test yes = "$GCC"; then
10964	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10965	else
10966	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10967	fi
10968	;;
10969      esac
10970      link_all_deplibs=yes
10971      ;;
10972
10973    sunos4*)
10974      if test sequent = "$host_vendor"; then
10975	# Use $CC to link under sequent, because it throws in some extra .o
10976	# files that make .init and .fini sections work.
10977	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10978      else
10979	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10980      fi
10981      hardcode_libdir_flag_spec='-L$libdir'
10982      hardcode_direct=yes
10983      hardcode_minus_L=yes
10984      hardcode_shlibpath_var=no
10985      ;;
10986
10987    sysv4)
10988      case $host_vendor in
10989	sni)
10990	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991	  hardcode_direct=yes # is this really true???
10992	;;
10993	siemens)
10994	  ## LD is ld it makes a PLAMLIB
10995	  ## CC just makes a GrossModule.
10996	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10997	  reload_cmds='$CC -r -o $output$reload_objs'
10998	  hardcode_direct=no
10999        ;;
11000	motorola)
11001	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11002	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11003	;;
11004      esac
11005      runpath_var='LD_RUN_PATH'
11006      hardcode_shlibpath_var=no
11007      ;;
11008
11009    sysv4.3*)
11010      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11011      hardcode_shlibpath_var=no
11012      export_dynamic_flag_spec='-Bexport'
11013      ;;
11014
11015    sysv4*MP*)
11016      if test -d /usr/nec; then
11017	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11018	hardcode_shlibpath_var=no
11019	runpath_var=LD_RUN_PATH
11020	hardcode_runpath_var=yes
11021	ld_shlibs=yes
11022      fi
11023      ;;
11024
11025    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11026      no_undefined_flag='$wl-z,text'
11027      archive_cmds_need_lc=no
11028      hardcode_shlibpath_var=no
11029      runpath_var='LD_RUN_PATH'
11030
11031      if test yes = "$GCC"; then
11032	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034      else
11035	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037      fi
11038      ;;
11039
11040    sysv5* | sco3.2v5* | sco5v6*)
11041      # Note: We CANNOT use -z defs as we might desire, because we do not
11042      # link with -lc, and that would cause any symbols used from libc to
11043      # always be unresolved, which means just about no library would
11044      # ever link correctly.  If we're not using GNU ld we use -z text
11045      # though, which does catch some bad symbols but isn't as heavy-handed
11046      # as -z defs.
11047      no_undefined_flag='$wl-z,text'
11048      allow_undefined_flag='$wl-z,nodefs'
11049      archive_cmds_need_lc=no
11050      hardcode_shlibpath_var=no
11051      hardcode_libdir_flag_spec='$wl-R,$libdir'
11052      hardcode_libdir_separator=':'
11053      link_all_deplibs=yes
11054      export_dynamic_flag_spec='$wl-Bexport'
11055      runpath_var='LD_RUN_PATH'
11056
11057      if test yes = "$GCC"; then
11058	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060      else
11061	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11062	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11063      fi
11064      ;;
11065
11066    uts4*)
11067      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11068      hardcode_libdir_flag_spec='-L$libdir'
11069      hardcode_shlibpath_var=no
11070      ;;
11071
11072    *)
11073      ld_shlibs=no
11074      ;;
11075    esac
11076
11077    if test sni = "$host_vendor"; then
11078      case $host in
11079      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11080	export_dynamic_flag_spec='$wl-Blargedynsym'
11081	;;
11082      esac
11083    fi
11084  fi
11085
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11087$as_echo "$ld_shlibs" >&6; }
11088test no = "$ld_shlibs" && can_build_shared=no
11089
11090with_gnu_ld=$with_gnu_ld
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106#
11107# Do we need to explicitly link libc?
11108#
11109case "x$archive_cmds_need_lc" in
11110x|xyes)
11111  # Assume -lc should be added
11112  archive_cmds_need_lc=yes
11113
11114  if test yes,yes = "$GCC,$enable_shared"; then
11115    case $archive_cmds in
11116    *'~'*)
11117      # FIXME: we may have to deal with multi-command sequences.
11118      ;;
11119    '$CC '*)
11120      # Test whether the compiler implicitly links with -lc since on some
11121      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11122      # to ld, don't add -lc before -lgcc.
11123      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11124$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11125if ${lt_cv_archive_cmds_need_lc+:} false; then :
11126  $as_echo_n "(cached) " >&6
11127else
11128  $RM conftest*
11129	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11130
11131	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11132  (eval $ac_compile) 2>&5
11133  ac_status=$?
11134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11135  test $ac_status = 0; } 2>conftest.err; then
11136	  soname=conftest
11137	  lib=conftest
11138	  libobjs=conftest.$ac_objext
11139	  deplibs=
11140	  wl=$lt_prog_compiler_wl
11141	  pic_flag=$lt_prog_compiler_pic
11142	  compiler_flags=-v
11143	  linker_flags=-v
11144	  verstring=
11145	  output_objdir=.
11146	  libname=conftest
11147	  lt_save_allow_undefined_flag=$allow_undefined_flag
11148	  allow_undefined_flag=
11149	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11150  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11151  ac_status=$?
11152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153  test $ac_status = 0; }
11154	  then
11155	    lt_cv_archive_cmds_need_lc=no
11156	  else
11157	    lt_cv_archive_cmds_need_lc=yes
11158	  fi
11159	  allow_undefined_flag=$lt_save_allow_undefined_flag
11160	else
11161	  cat conftest.err 1>&5
11162	fi
11163	$RM conftest*
11164
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11167$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11168      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11169      ;;
11170    esac
11171  fi
11172  ;;
11173esac
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11327$as_echo_n "checking dynamic linker characteristics... " >&6; }
11328
11329if test yes = "$GCC"; then
11330  case $host_os in
11331    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11332    *) lt_awk_arg='/^libraries:/' ;;
11333  esac
11334  case $host_os in
11335    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11336    *) lt_sed_strip_eq='s|=/|/|g' ;;
11337  esac
11338  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11339  case $lt_search_path_spec in
11340  *\;*)
11341    # if the path contains ";" then we assume it to be the separator
11342    # otherwise default to the standard path separator (i.e. ":") - it is
11343    # assumed that no part of a normal pathname contains ";" but that should
11344    # okay in the real world where ";" in dirpaths is itself problematic.
11345    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11346    ;;
11347  *)
11348    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11349    ;;
11350  esac
11351  # Ok, now we have the path, separated by spaces, we can step through it
11352  # and add multilib dir if necessary...
11353  lt_tmp_lt_search_path_spec=
11354  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11355  # ...but if some path component already ends with the multilib dir we assume
11356  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11357  case "$lt_multi_os_dir; $lt_search_path_spec " in
11358  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11359    lt_multi_os_dir=
11360    ;;
11361  esac
11362  for lt_sys_path in $lt_search_path_spec; do
11363    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11364      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11365    elif test -n "$lt_multi_os_dir"; then
11366      test -d "$lt_sys_path" && \
11367	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11368    fi
11369  done
11370  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11371BEGIN {RS = " "; FS = "/|\n";} {
11372  lt_foo = "";
11373  lt_count = 0;
11374  for (lt_i = NF; lt_i > 0; lt_i--) {
11375    if ($lt_i != "" && $lt_i != ".") {
11376      if ($lt_i == "..") {
11377        lt_count++;
11378      } else {
11379        if (lt_count == 0) {
11380          lt_foo = "/" $lt_i lt_foo;
11381        } else {
11382          lt_count--;
11383        }
11384      }
11385    }
11386  }
11387  if (lt_foo != "") { lt_freq[lt_foo]++; }
11388  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11389}'`
11390  # AWK program above erroneously prepends '/' to C:/dos/paths
11391  # for these hosts.
11392  case $host_os in
11393    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11394      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11395  esac
11396  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11397else
11398  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11399fi
11400library_names_spec=
11401libname_spec='lib$name'
11402soname_spec=
11403shrext_cmds=.so
11404postinstall_cmds=
11405postuninstall_cmds=
11406finish_cmds=
11407finish_eval=
11408shlibpath_var=
11409shlibpath_overrides_runpath=unknown
11410version_type=none
11411dynamic_linker="$host_os ld.so"
11412sys_lib_dlsearch_path_spec="/lib /usr/lib"
11413need_lib_prefix=unknown
11414hardcode_into_libs=no
11415
11416# when you set need_version to no, make sure it does not cause -set_version
11417# flags to be left without arguments
11418need_version=unknown
11419
11420
11421
11422case $host_os in
11423aix3*)
11424  version_type=linux # correct to gnu/linux during the next big refactor
11425  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11426  shlibpath_var=LIBPATH
11427
11428  # AIX 3 has no versioning support, so we append a major version to the name.
11429  soname_spec='$libname$release$shared_ext$major'
11430  ;;
11431
11432aix[4-9]*)
11433  version_type=linux # correct to gnu/linux during the next big refactor
11434  need_lib_prefix=no
11435  need_version=no
11436  hardcode_into_libs=yes
11437  if test ia64 = "$host_cpu"; then
11438    # AIX 5 supports IA64
11439    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11440    shlibpath_var=LD_LIBRARY_PATH
11441  else
11442    # With GCC up to 2.95.x, collect2 would create an import file
11443    # for dependence libraries.  The import file would start with
11444    # the line '#! .'.  This would cause the generated library to
11445    # depend on '.', always an invalid library.  This was fixed in
11446    # development snapshots of GCC prior to 3.0.
11447    case $host_os in
11448      aix4 | aix4.[01] | aix4.[01].*)
11449      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11450	   echo ' yes '
11451	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11452	:
11453      else
11454	can_build_shared=no
11455      fi
11456      ;;
11457    esac
11458    # Using Import Files as archive members, it is possible to support
11459    # filename-based versioning of shared library archives on AIX. While
11460    # this would work for both with and without runtime linking, it will
11461    # prevent static linking of such archives. So we do filename-based
11462    # shared library versioning with .so extension only, which is used
11463    # when both runtime linking and shared linking is enabled.
11464    # Unfortunately, runtime linking may impact performance, so we do
11465    # not want this to be the default eventually. Also, we use the
11466    # versioned .so libs for executables only if there is the -brtl
11467    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11468    # To allow for filename-based versioning support, we need to create
11469    # libNAME.so.V as an archive file, containing:
11470    # *) an Import File, referring to the versioned filename of the
11471    #    archive as well as the shared archive member, telling the
11472    #    bitwidth (32 or 64) of that shared object, and providing the
11473    #    list of exported symbols of that shared object, eventually
11474    #    decorated with the 'weak' keyword
11475    # *) the shared object with the F_LOADONLY flag set, to really avoid
11476    #    it being seen by the linker.
11477    # At run time we better use the real file rather than another symlink,
11478    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11479
11480    case $with_aix_soname,$aix_use_runtimelinking in
11481    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11482    # soname into executable. Probably we can add versioning support to
11483    # collect2, so additional links can be useful in future.
11484    aix,yes) # traditional libtool
11485      dynamic_linker='AIX unversionable lib.so'
11486      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11487      # instead of lib<name>.a to let people know that these are not
11488      # typical AIX shared libraries.
11489      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11490      ;;
11491    aix,no) # traditional AIX only
11492      dynamic_linker='AIX lib.a(lib.so.V)'
11493      # We preserve .a as extension for shared libraries through AIX4.2
11494      # and later when we are not doing run time linking.
11495      library_names_spec='$libname$release.a $libname.a'
11496      soname_spec='$libname$release$shared_ext$major'
11497      ;;
11498    svr4,*) # full svr4 only
11499      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11500      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11501      # We do not specify a path in Import Files, so LIBPATH fires.
11502      shlibpath_overrides_runpath=yes
11503      ;;
11504    *,yes) # both, prefer svr4
11505      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11506      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11507      # unpreferred sharedlib libNAME.a needs extra handling
11508      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11509      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11510      # We do not specify a path in Import Files, so LIBPATH fires.
11511      shlibpath_overrides_runpath=yes
11512      ;;
11513    *,no) # both, prefer aix
11514      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11515      library_names_spec='$libname$release.a $libname.a'
11516      soname_spec='$libname$release$shared_ext$major'
11517      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11518      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11519      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11520      ;;
11521    esac
11522    shlibpath_var=LIBPATH
11523  fi
11524  ;;
11525
11526amigaos*)
11527  case $host_cpu in
11528  powerpc)
11529    # Since July 2007 AmigaOS4 officially supports .so libraries.
11530    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11531    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11532    ;;
11533  m68k)
11534    library_names_spec='$libname.ixlibrary $libname.a'
11535    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11536    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11537    ;;
11538  esac
11539  ;;
11540
11541beos*)
11542  library_names_spec='$libname$shared_ext'
11543  dynamic_linker="$host_os ld.so"
11544  shlibpath_var=LIBRARY_PATH
11545  ;;
11546
11547bsdi[45]*)
11548  version_type=linux # correct to gnu/linux during the next big refactor
11549  need_version=no
11550  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11551  soname_spec='$libname$release$shared_ext$major'
11552  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11553  shlibpath_var=LD_LIBRARY_PATH
11554  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11555  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11556  # the default ld.so.conf also contains /usr/contrib/lib and
11557  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11558  # libtool to hard-code these into programs
11559  ;;
11560
11561cygwin* | mingw* | pw32* | cegcc*)
11562  version_type=windows
11563  shrext_cmds=.dll
11564  need_version=no
11565  need_lib_prefix=no
11566
11567  case $GCC,$cc_basename in
11568  yes,*)
11569    # gcc
11570    library_names_spec='$libname.dll.a'
11571    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11572    postinstall_cmds='base_file=`basename \$file`~
11573      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11574      dldir=$destdir/`dirname \$dlpath`~
11575      test -d \$dldir || mkdir -p \$dldir~
11576      $install_prog $dir/$dlname \$dldir/$dlname~
11577      chmod a+x \$dldir/$dlname~
11578      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11579        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11580      fi'
11581    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11582      dlpath=$dir/\$dldll~
11583       $RM \$dlpath'
11584    shlibpath_overrides_runpath=yes
11585
11586    case $host_os in
11587    cygwin*)
11588      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11589      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11590
11591      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11592      ;;
11593    mingw* | cegcc*)
11594      # MinGW DLLs use traditional 'lib' prefix
11595      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11596      ;;
11597    pw32*)
11598      # pw32 DLLs use 'pw' prefix rather than 'lib'
11599      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11600      ;;
11601    esac
11602    dynamic_linker='Win32 ld.exe'
11603    ;;
11604
11605  *,cl*)
11606    # Native MSVC
11607    libname_spec='$name'
11608    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11609    library_names_spec='$libname.dll.lib'
11610
11611    case $build_os in
11612    mingw*)
11613      sys_lib_search_path_spec=
11614      lt_save_ifs=$IFS
11615      IFS=';'
11616      for lt_path in $LIB
11617      do
11618        IFS=$lt_save_ifs
11619        # Let DOS variable expansion print the short 8.3 style file name.
11620        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11621        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11622      done
11623      IFS=$lt_save_ifs
11624      # Convert to MSYS style.
11625      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11626      ;;
11627    cygwin*)
11628      # Convert to unix form, then to dos form, then back to unix form
11629      # but this time dos style (no spaces!) so that the unix form looks
11630      # like /cygdrive/c/PROGRA~1:/cygdr...
11631      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11632      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11633      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11634      ;;
11635    *)
11636      sys_lib_search_path_spec=$LIB
11637      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11638        # It is most probably a Windows format PATH.
11639        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11640      else
11641        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11642      fi
11643      # FIXME: find the short name or the path components, as spaces are
11644      # common. (e.g. "Program Files" -> "PROGRA~1")
11645      ;;
11646    esac
11647
11648    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11649    postinstall_cmds='base_file=`basename \$file`~
11650      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11651      dldir=$destdir/`dirname \$dlpath`~
11652      test -d \$dldir || mkdir -p \$dldir~
11653      $install_prog $dir/$dlname \$dldir/$dlname'
11654    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11655      dlpath=$dir/\$dldll~
11656       $RM \$dlpath'
11657    shlibpath_overrides_runpath=yes
11658    dynamic_linker='Win32 link.exe'
11659    ;;
11660
11661  *)
11662    # Assume MSVC wrapper
11663    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11664    dynamic_linker='Win32 ld.exe'
11665    ;;
11666  esac
11667  # FIXME: first we should search . and the directory the executable is in
11668  shlibpath_var=PATH
11669  ;;
11670
11671darwin* | rhapsody*)
11672  dynamic_linker="$host_os dyld"
11673  version_type=darwin
11674  need_lib_prefix=no
11675  need_version=no
11676  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11677  soname_spec='$libname$release$major$shared_ext'
11678  shlibpath_overrides_runpath=yes
11679  shlibpath_var=DYLD_LIBRARY_PATH
11680  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11681
11682  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11683  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11684  ;;
11685
11686dgux*)
11687  version_type=linux # correct to gnu/linux during the next big refactor
11688  need_lib_prefix=no
11689  need_version=no
11690  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11691  soname_spec='$libname$release$shared_ext$major'
11692  shlibpath_var=LD_LIBRARY_PATH
11693  ;;
11694
11695freebsd* | dragonfly*)
11696  # DragonFly does not have aout.  When/if they implement a new
11697  # versioning mechanism, adjust this.
11698  if test -x /usr/bin/objformat; then
11699    objformat=`/usr/bin/objformat`
11700  else
11701    case $host_os in
11702    freebsd[23].*) objformat=aout ;;
11703    *) objformat=elf ;;
11704    esac
11705  fi
11706  version_type=freebsd-$objformat
11707  case $version_type in
11708    freebsd-elf*)
11709      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11710      soname_spec='$libname$release$shared_ext$major'
11711      need_version=no
11712      need_lib_prefix=no
11713      ;;
11714    freebsd-*)
11715      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11716      need_version=yes
11717      ;;
11718  esac
11719  shlibpath_var=LD_LIBRARY_PATH
11720  case $host_os in
11721  freebsd2.*)
11722    shlibpath_overrides_runpath=yes
11723    ;;
11724  freebsd3.[01]* | freebsdelf3.[01]*)
11725    shlibpath_overrides_runpath=yes
11726    hardcode_into_libs=yes
11727    ;;
11728  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11729  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11730    shlibpath_overrides_runpath=no
11731    hardcode_into_libs=yes
11732    ;;
11733  *) # from 4.6 on, and DragonFly
11734    shlibpath_overrides_runpath=yes
11735    hardcode_into_libs=yes
11736    ;;
11737  esac
11738  ;;
11739
11740haiku*)
11741  version_type=linux # correct to gnu/linux during the next big refactor
11742  need_lib_prefix=no
11743  need_version=no
11744  dynamic_linker="$host_os runtime_loader"
11745  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11746  soname_spec='$libname$release$shared_ext$major'
11747  shlibpath_var=LIBRARY_PATH
11748  shlibpath_overrides_runpath=no
11749  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11750  hardcode_into_libs=yes
11751  ;;
11752
11753hpux9* | hpux10* | hpux11*)
11754  # Give a soname corresponding to the major version so that dld.sl refuses to
11755  # link against other versions.
11756  version_type=sunos
11757  need_lib_prefix=no
11758  need_version=no
11759  case $host_cpu in
11760  ia64*)
11761    shrext_cmds='.so'
11762    hardcode_into_libs=yes
11763    dynamic_linker="$host_os dld.so"
11764    shlibpath_var=LD_LIBRARY_PATH
11765    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11766    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767    soname_spec='$libname$release$shared_ext$major'
11768    if test 32 = "$HPUX_IA64_MODE"; then
11769      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11770      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11771    else
11772      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11773      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11774    fi
11775    ;;
11776  hppa*64*)
11777    shrext_cmds='.sl'
11778    hardcode_into_libs=yes
11779    dynamic_linker="$host_os dld.sl"
11780    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11781    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11782    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783    soname_spec='$libname$release$shared_ext$major'
11784    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11785    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11786    ;;
11787  *)
11788    shrext_cmds='.sl'
11789    dynamic_linker="$host_os dld.sl"
11790    shlibpath_var=SHLIB_PATH
11791    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11792    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11793    soname_spec='$libname$release$shared_ext$major'
11794    ;;
11795  esac
11796  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11797  postinstall_cmds='chmod 555 $lib'
11798  # or fails outright, so override atomically:
11799  install_override_mode=555
11800  ;;
11801
11802interix[3-9]*)
11803  version_type=linux # correct to gnu/linux during the next big refactor
11804  need_lib_prefix=no
11805  need_version=no
11806  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11807  soname_spec='$libname$release$shared_ext$major'
11808  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11809  shlibpath_var=LD_LIBRARY_PATH
11810  shlibpath_overrides_runpath=no
11811  hardcode_into_libs=yes
11812  ;;
11813
11814irix5* | irix6* | nonstopux*)
11815  case $host_os in
11816    nonstopux*) version_type=nonstopux ;;
11817    *)
11818	if test yes = "$lt_cv_prog_gnu_ld"; then
11819		version_type=linux # correct to gnu/linux during the next big refactor
11820	else
11821		version_type=irix
11822	fi ;;
11823  esac
11824  need_lib_prefix=no
11825  need_version=no
11826  soname_spec='$libname$release$shared_ext$major'
11827  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11828  case $host_os in
11829  irix5* | nonstopux*)
11830    libsuff= shlibsuff=
11831    ;;
11832  *)
11833    case $LD in # libtool.m4 will add one of these switches to LD
11834    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11835      libsuff= shlibsuff= libmagic=32-bit;;
11836    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11837      libsuff=32 shlibsuff=N32 libmagic=N32;;
11838    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11839      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11840    *) libsuff= shlibsuff= libmagic=never-match;;
11841    esac
11842    ;;
11843  esac
11844  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11845  shlibpath_overrides_runpath=no
11846  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11847  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11848  hardcode_into_libs=yes
11849  ;;
11850
11851# No shared lib support for Linux oldld, aout, or coff.
11852linux*oldld* | linux*aout* | linux*coff*)
11853  dynamic_linker=no
11854  ;;
11855
11856linux*android*)
11857  version_type=none # Android doesn't support versioned libraries.
11858  need_lib_prefix=no
11859  need_version=no
11860  library_names_spec='$libname$release$shared_ext'
11861  soname_spec='$libname$release$shared_ext'
11862  finish_cmds=
11863  shlibpath_var=LD_LIBRARY_PATH
11864  shlibpath_overrides_runpath=yes
11865
11866  # This implies no fast_install, which is unacceptable.
11867  # Some rework will be needed to allow for fast_install
11868  # before this can be enabled.
11869  hardcode_into_libs=yes
11870
11871  dynamic_linker='Android linker'
11872  # Don't embed -rpath directories since the linker doesn't support them.
11873  hardcode_libdir_flag_spec='-L$libdir'
11874  ;;
11875
11876# This must be glibc/ELF.
11877linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11878  version_type=linux # correct to gnu/linux during the next big refactor
11879  need_lib_prefix=no
11880  need_version=no
11881  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11882  soname_spec='$libname$release$shared_ext$major'
11883  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11884  shlibpath_var=LD_LIBRARY_PATH
11885  shlibpath_overrides_runpath=no
11886
11887  # Some binutils ld are patched to set DT_RUNPATH
11888  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11889  $as_echo_n "(cached) " >&6
11890else
11891  lt_cv_shlibpath_overrides_runpath=no
11892    save_LDFLAGS=$LDFLAGS
11893    save_libdir=$libdir
11894    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11895	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897/* end confdefs.h.  */
11898
11899int
11900main ()
11901{
11902
11903  ;
11904  return 0;
11905}
11906_ACEOF
11907if ac_fn_c_try_link "$LINENO"; then :
11908  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11909  lt_cv_shlibpath_overrides_runpath=yes
11910fi
11911fi
11912rm -f core conftest.err conftest.$ac_objext \
11913    conftest$ac_exeext conftest.$ac_ext
11914    LDFLAGS=$save_LDFLAGS
11915    libdir=$save_libdir
11916
11917fi
11918
11919  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11920
11921  # This implies no fast_install, which is unacceptable.
11922  # Some rework will be needed to allow for fast_install
11923  # before this can be enabled.
11924  hardcode_into_libs=yes
11925
11926  # Ideally, we could use ldconfig to report *all* directores which are
11927  # searched for libraries, however this is still not possible.  Aside from not
11928  # being certain /sbin/ldconfig is available, command
11929  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11930  # even though it is searched at run-time.  Try to do the best guess by
11931  # appending ld.so.conf contents (and includes) to the search path.
11932  if test -f /etc/ld.so.conf; then
11933    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' ' '`
11934    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11935  fi
11936
11937  # We used to test for /lib/ld.so.1 and disable shared libraries on
11938  # powerpc, because MkLinux only supported shared libraries with the
11939  # GNU dynamic linker.  Since this was broken with cross compilers,
11940  # most powerpc-linux boxes support dynamic linking these days and
11941  # people can always --disable-shared, the test was removed, and we
11942  # assume the GNU/Linux dynamic linker is in use.
11943  dynamic_linker='GNU/Linux ld.so'
11944  ;;
11945
11946netbsdelf*-gnu)
11947  version_type=linux
11948  need_lib_prefix=no
11949  need_version=no
11950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11951  soname_spec='${libname}${release}${shared_ext}$major'
11952  shlibpath_var=LD_LIBRARY_PATH
11953  shlibpath_overrides_runpath=no
11954  hardcode_into_libs=yes
11955  dynamic_linker='NetBSD ld.elf_so'
11956  ;;
11957
11958netbsd*)
11959  version_type=sunos
11960  need_lib_prefix=no
11961  need_version=no
11962  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11963    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11964    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11965    dynamic_linker='NetBSD (a.out) ld.so'
11966  else
11967    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11968    soname_spec='$libname$release$shared_ext$major'
11969    dynamic_linker='NetBSD ld.elf_so'
11970  fi
11971  shlibpath_var=LD_LIBRARY_PATH
11972  shlibpath_overrides_runpath=yes
11973  hardcode_into_libs=yes
11974  ;;
11975
11976newsos6)
11977  version_type=linux # correct to gnu/linux during the next big refactor
11978  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11979  shlibpath_var=LD_LIBRARY_PATH
11980  shlibpath_overrides_runpath=yes
11981  ;;
11982
11983*nto* | *qnx*)
11984  version_type=qnx
11985  need_lib_prefix=no
11986  need_version=no
11987  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11988  soname_spec='$libname$release$shared_ext$major'
11989  shlibpath_var=LD_LIBRARY_PATH
11990  shlibpath_overrides_runpath=no
11991  hardcode_into_libs=yes
11992  dynamic_linker='ldqnx.so'
11993  ;;
11994
11995openbsd* | bitrig*)
11996  version_type=sunos
11997  sys_lib_dlsearch_path_spec=/usr/lib
11998  need_lib_prefix=no
11999  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12000    need_version=no
12001  else
12002    need_version=yes
12003  fi
12004  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12005  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12006  shlibpath_var=LD_LIBRARY_PATH
12007  shlibpath_overrides_runpath=yes
12008  ;;
12009
12010os2*)
12011  libname_spec='$name'
12012  version_type=windows
12013  shrext_cmds=.dll
12014  need_version=no
12015  need_lib_prefix=no
12016  # OS/2 can only load a DLL with a base name of 8 characters or less.
12017  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12018    v=$($ECHO $release$versuffix | tr -d .-);
12019    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12020    $ECHO $n$v`$shared_ext'
12021  library_names_spec='${libname}_dll.$libext'
12022  dynamic_linker='OS/2 ld.exe'
12023  shlibpath_var=BEGINLIBPATH
12024  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12025  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12026  postinstall_cmds='base_file=`basename \$file`~
12027    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12028    dldir=$destdir/`dirname \$dlpath`~
12029    test -d \$dldir || mkdir -p \$dldir~
12030    $install_prog $dir/$dlname \$dldir/$dlname~
12031    chmod a+x \$dldir/$dlname~
12032    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12033      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12034    fi'
12035  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12036    dlpath=$dir/\$dldll~
12037    $RM \$dlpath'
12038  ;;
12039
12040osf3* | osf4* | osf5*)
12041  version_type=osf
12042  need_lib_prefix=no
12043  need_version=no
12044  soname_spec='$libname$release$shared_ext$major'
12045  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046  shlibpath_var=LD_LIBRARY_PATH
12047  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12048  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12049  ;;
12050
12051rdos*)
12052  dynamic_linker=no
12053  ;;
12054
12055solaris*)
12056  version_type=linux # correct to gnu/linux during the next big refactor
12057  need_lib_prefix=no
12058  need_version=no
12059  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12060  soname_spec='$libname$release$shared_ext$major'
12061  shlibpath_var=LD_LIBRARY_PATH
12062  shlibpath_overrides_runpath=yes
12063  hardcode_into_libs=yes
12064  # ldd complains unless libraries are executable
12065  postinstall_cmds='chmod +x $lib'
12066  ;;
12067
12068sunos4*)
12069  version_type=sunos
12070  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12071  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12072  shlibpath_var=LD_LIBRARY_PATH
12073  shlibpath_overrides_runpath=yes
12074  if test yes = "$with_gnu_ld"; then
12075    need_lib_prefix=no
12076  fi
12077  need_version=yes
12078  ;;
12079
12080sysv4 | sysv4.3*)
12081  version_type=linux # correct to gnu/linux during the next big refactor
12082  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12083  soname_spec='$libname$release$shared_ext$major'
12084  shlibpath_var=LD_LIBRARY_PATH
12085  case $host_vendor in
12086    sni)
12087      shlibpath_overrides_runpath=no
12088      need_lib_prefix=no
12089      runpath_var=LD_RUN_PATH
12090      ;;
12091    siemens)
12092      need_lib_prefix=no
12093      ;;
12094    motorola)
12095      need_lib_prefix=no
12096      need_version=no
12097      shlibpath_overrides_runpath=no
12098      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12099      ;;
12100  esac
12101  ;;
12102
12103sysv4*MP*)
12104  if test -d /usr/nec; then
12105    version_type=linux # correct to gnu/linux during the next big refactor
12106    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12107    soname_spec='$libname$shared_ext.$major'
12108    shlibpath_var=LD_LIBRARY_PATH
12109  fi
12110  ;;
12111
12112sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12113  version_type=sco
12114  need_lib_prefix=no
12115  need_version=no
12116  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12117  soname_spec='$libname$release$shared_ext$major'
12118  shlibpath_var=LD_LIBRARY_PATH
12119  shlibpath_overrides_runpath=yes
12120  hardcode_into_libs=yes
12121  if test yes = "$with_gnu_ld"; then
12122    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12123  else
12124    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12125    case $host_os in
12126      sco3.2v5*)
12127        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12128	;;
12129    esac
12130  fi
12131  sys_lib_dlsearch_path_spec='/usr/lib'
12132  ;;
12133
12134tpf*)
12135  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12136  version_type=linux # correct to gnu/linux during the next big refactor
12137  need_lib_prefix=no
12138  need_version=no
12139  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12140  shlibpath_var=LD_LIBRARY_PATH
12141  shlibpath_overrides_runpath=no
12142  hardcode_into_libs=yes
12143  ;;
12144
12145uts4*)
12146  version_type=linux # correct to gnu/linux during the next big refactor
12147  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12148  soname_spec='$libname$release$shared_ext$major'
12149  shlibpath_var=LD_LIBRARY_PATH
12150  ;;
12151
12152*)
12153  dynamic_linker=no
12154  ;;
12155esac
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12157$as_echo "$dynamic_linker" >&6; }
12158test no = "$dynamic_linker" && can_build_shared=no
12159
12160variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12161if test yes = "$GCC"; then
12162  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12163fi
12164
12165if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12166  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12167fi
12168
12169if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12170  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12171fi
12172
12173# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12174configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12175
12176# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12177func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12178
12179# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12180configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12279$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12280hardcode_action=
12281if test -n "$hardcode_libdir_flag_spec" ||
12282   test -n "$runpath_var" ||
12283   test yes = "$hardcode_automatic"; then
12284
12285  # We can hardcode non-existent directories.
12286  if test no != "$hardcode_direct" &&
12287     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12288     # have to relink, otherwise we might link with an installed library
12289     # when we should be linking with a yet-to-be-installed one
12290     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12291     test no != "$hardcode_minus_L"; then
12292    # Linking always hardcodes the temporary library directory.
12293    hardcode_action=relink
12294  else
12295    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12296    hardcode_action=immediate
12297  fi
12298else
12299  # We cannot hardcode anything, or else we can only hardcode existing
12300  # directories.
12301  hardcode_action=unsupported
12302fi
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12304$as_echo "$hardcode_action" >&6; }
12305
12306if test relink = "$hardcode_action" ||
12307   test yes = "$inherit_rpath"; then
12308  # Fast installation is not supported
12309  enable_fast_install=no
12310elif test yes = "$shlibpath_overrides_runpath" ||
12311     test no = "$enable_shared"; then
12312  # Fast installation is not necessary
12313  enable_fast_install=needless
12314fi
12315
12316
12317
12318
12319
12320
12321  if test yes != "$enable_dlopen"; then
12322  enable_dlopen=unknown
12323  enable_dlopen_self=unknown
12324  enable_dlopen_self_static=unknown
12325else
12326  lt_cv_dlopen=no
12327  lt_cv_dlopen_libs=
12328
12329  case $host_os in
12330  beos*)
12331    lt_cv_dlopen=load_add_on
12332    lt_cv_dlopen_libs=
12333    lt_cv_dlopen_self=yes
12334    ;;
12335
12336  mingw* | pw32* | cegcc*)
12337    lt_cv_dlopen=LoadLibrary
12338    lt_cv_dlopen_libs=
12339    ;;
12340
12341  cygwin*)
12342    lt_cv_dlopen=dlopen
12343    lt_cv_dlopen_libs=
12344    ;;
12345
12346  darwin*)
12347    # if libdl is installed we need to link against it
12348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12349$as_echo_n "checking for dlopen in -ldl... " >&6; }
12350if ${ac_cv_lib_dl_dlopen+:} false; then :
12351  $as_echo_n "(cached) " >&6
12352else
12353  ac_check_lib_save_LIBS=$LIBS
12354LIBS="-ldl  $LIBS"
12355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356/* end confdefs.h.  */
12357
12358/* Override any GCC internal prototype to avoid an error.
12359   Use char because int might match the return type of a GCC
12360   builtin and then its argument prototype would still apply.  */
12361#ifdef __cplusplus
12362extern "C"
12363#endif
12364char dlopen ();
12365int
12366main ()
12367{
12368return dlopen ();
12369  ;
12370  return 0;
12371}
12372_ACEOF
12373if ac_fn_c_try_link "$LINENO"; then :
12374  ac_cv_lib_dl_dlopen=yes
12375else
12376  ac_cv_lib_dl_dlopen=no
12377fi
12378rm -f core conftest.err conftest.$ac_objext \
12379    conftest$ac_exeext conftest.$ac_ext
12380LIBS=$ac_check_lib_save_LIBS
12381fi
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12383$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12384if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12385  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12386else
12387
12388    lt_cv_dlopen=dyld
12389    lt_cv_dlopen_libs=
12390    lt_cv_dlopen_self=yes
12391
12392fi
12393
12394    ;;
12395
12396  tpf*)
12397    # Don't try to run any link tests for TPF.  We know it's impossible
12398    # because TPF is a cross-compiler, and we know how we open DSOs.
12399    lt_cv_dlopen=dlopen
12400    lt_cv_dlopen_libs=
12401    lt_cv_dlopen_self=no
12402    ;;
12403
12404  *)
12405    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12406if test "x$ac_cv_func_shl_load" = xyes; then :
12407  lt_cv_dlopen=shl_load
12408else
12409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12410$as_echo_n "checking for shl_load in -ldld... " >&6; }
12411if ${ac_cv_lib_dld_shl_load+:} false; then :
12412  $as_echo_n "(cached) " >&6
12413else
12414  ac_check_lib_save_LIBS=$LIBS
12415LIBS="-ldld  $LIBS"
12416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417/* end confdefs.h.  */
12418
12419/* Override any GCC internal prototype to avoid an error.
12420   Use char because int might match the return type of a GCC
12421   builtin and then its argument prototype would still apply.  */
12422#ifdef __cplusplus
12423extern "C"
12424#endif
12425char shl_load ();
12426int
12427main ()
12428{
12429return shl_load ();
12430  ;
12431  return 0;
12432}
12433_ACEOF
12434if ac_fn_c_try_link "$LINENO"; then :
12435  ac_cv_lib_dld_shl_load=yes
12436else
12437  ac_cv_lib_dld_shl_load=no
12438fi
12439rm -f core conftest.err conftest.$ac_objext \
12440    conftest$ac_exeext conftest.$ac_ext
12441LIBS=$ac_check_lib_save_LIBS
12442fi
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12444$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12445if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12446  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12447else
12448  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12449if test "x$ac_cv_func_dlopen" = xyes; then :
12450  lt_cv_dlopen=dlopen
12451else
12452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12453$as_echo_n "checking for dlopen in -ldl... " >&6; }
12454if ${ac_cv_lib_dl_dlopen+:} false; then :
12455  $as_echo_n "(cached) " >&6
12456else
12457  ac_check_lib_save_LIBS=$LIBS
12458LIBS="-ldl  $LIBS"
12459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460/* end confdefs.h.  */
12461
12462/* Override any GCC internal prototype to avoid an error.
12463   Use char because int might match the return type of a GCC
12464   builtin and then its argument prototype would still apply.  */
12465#ifdef __cplusplus
12466extern "C"
12467#endif
12468char dlopen ();
12469int
12470main ()
12471{
12472return dlopen ();
12473  ;
12474  return 0;
12475}
12476_ACEOF
12477if ac_fn_c_try_link "$LINENO"; then :
12478  ac_cv_lib_dl_dlopen=yes
12479else
12480  ac_cv_lib_dl_dlopen=no
12481fi
12482rm -f core conftest.err conftest.$ac_objext \
12483    conftest$ac_exeext conftest.$ac_ext
12484LIBS=$ac_check_lib_save_LIBS
12485fi
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12487$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12488if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12489  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12490else
12491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12492$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12493if ${ac_cv_lib_svld_dlopen+:} false; then :
12494  $as_echo_n "(cached) " >&6
12495else
12496  ac_check_lib_save_LIBS=$LIBS
12497LIBS="-lsvld  $LIBS"
12498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499/* end confdefs.h.  */
12500
12501/* Override any GCC internal prototype to avoid an error.
12502   Use char because int might match the return type of a GCC
12503   builtin and then its argument prototype would still apply.  */
12504#ifdef __cplusplus
12505extern "C"
12506#endif
12507char dlopen ();
12508int
12509main ()
12510{
12511return dlopen ();
12512  ;
12513  return 0;
12514}
12515_ACEOF
12516if ac_fn_c_try_link "$LINENO"; then :
12517  ac_cv_lib_svld_dlopen=yes
12518else
12519  ac_cv_lib_svld_dlopen=no
12520fi
12521rm -f core conftest.err conftest.$ac_objext \
12522    conftest$ac_exeext conftest.$ac_ext
12523LIBS=$ac_check_lib_save_LIBS
12524fi
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12526$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12527if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12528  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12529else
12530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12531$as_echo_n "checking for dld_link in -ldld... " >&6; }
12532if ${ac_cv_lib_dld_dld_link+:} false; then :
12533  $as_echo_n "(cached) " >&6
12534else
12535  ac_check_lib_save_LIBS=$LIBS
12536LIBS="-ldld  $LIBS"
12537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538/* end confdefs.h.  */
12539
12540/* Override any GCC internal prototype to avoid an error.
12541   Use char because int might match the return type of a GCC
12542   builtin and then its argument prototype would still apply.  */
12543#ifdef __cplusplus
12544extern "C"
12545#endif
12546char dld_link ();
12547int
12548main ()
12549{
12550return dld_link ();
12551  ;
12552  return 0;
12553}
12554_ACEOF
12555if ac_fn_c_try_link "$LINENO"; then :
12556  ac_cv_lib_dld_dld_link=yes
12557else
12558  ac_cv_lib_dld_dld_link=no
12559fi
12560rm -f core conftest.err conftest.$ac_objext \
12561    conftest$ac_exeext conftest.$ac_ext
12562LIBS=$ac_check_lib_save_LIBS
12563fi
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12565$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12566if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12567  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12568fi
12569
12570
12571fi
12572
12573
12574fi
12575
12576
12577fi
12578
12579
12580fi
12581
12582
12583fi
12584
12585    ;;
12586  esac
12587
12588  if test no = "$lt_cv_dlopen"; then
12589    enable_dlopen=no
12590  else
12591    enable_dlopen=yes
12592  fi
12593
12594  case $lt_cv_dlopen in
12595  dlopen)
12596    save_CPPFLAGS=$CPPFLAGS
12597    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12598
12599    save_LDFLAGS=$LDFLAGS
12600    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12601
12602    save_LIBS=$LIBS
12603    LIBS="$lt_cv_dlopen_libs $LIBS"
12604
12605    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12606$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12607if ${lt_cv_dlopen_self+:} false; then :
12608  $as_echo_n "(cached) " >&6
12609else
12610  	  if test yes = "$cross_compiling"; then :
12611  lt_cv_dlopen_self=cross
12612else
12613  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12614  lt_status=$lt_dlunknown
12615  cat > conftest.$ac_ext <<_LT_EOF
12616#line $LINENO "configure"
12617#include "confdefs.h"
12618
12619#if HAVE_DLFCN_H
12620#include <dlfcn.h>
12621#endif
12622
12623#include <stdio.h>
12624
12625#ifdef RTLD_GLOBAL
12626#  define LT_DLGLOBAL		RTLD_GLOBAL
12627#else
12628#  ifdef DL_GLOBAL
12629#    define LT_DLGLOBAL		DL_GLOBAL
12630#  else
12631#    define LT_DLGLOBAL		0
12632#  endif
12633#endif
12634
12635/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12636   find out it does not work in some platform. */
12637#ifndef LT_DLLAZY_OR_NOW
12638#  ifdef RTLD_LAZY
12639#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12640#  else
12641#    ifdef DL_LAZY
12642#      define LT_DLLAZY_OR_NOW		DL_LAZY
12643#    else
12644#      ifdef RTLD_NOW
12645#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12646#      else
12647#        ifdef DL_NOW
12648#          define LT_DLLAZY_OR_NOW	DL_NOW
12649#        else
12650#          define LT_DLLAZY_OR_NOW	0
12651#        endif
12652#      endif
12653#    endif
12654#  endif
12655#endif
12656
12657/* When -fvisibility=hidden is used, assume the code has been annotated
12658   correspondingly for the symbols needed.  */
12659#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12660int fnord () __attribute__((visibility("default")));
12661#endif
12662
12663int fnord () { return 42; }
12664int main ()
12665{
12666  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12667  int status = $lt_dlunknown;
12668
12669  if (self)
12670    {
12671      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12672      else
12673        {
12674	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12675          else puts (dlerror ());
12676	}
12677      /* dlclose (self); */
12678    }
12679  else
12680    puts (dlerror ());
12681
12682  return status;
12683}
12684_LT_EOF
12685  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12686  (eval $ac_link) 2>&5
12687  ac_status=$?
12688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12690    (./conftest; exit; ) >&5 2>/dev/null
12691    lt_status=$?
12692    case x$lt_status in
12693      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12694      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12695      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12696    esac
12697  else :
12698    # compilation failed
12699    lt_cv_dlopen_self=no
12700  fi
12701fi
12702rm -fr conftest*
12703
12704
12705fi
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12707$as_echo "$lt_cv_dlopen_self" >&6; }
12708
12709    if test yes = "$lt_cv_dlopen_self"; then
12710      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12711      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12712$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12713if ${lt_cv_dlopen_self_static+:} false; then :
12714  $as_echo_n "(cached) " >&6
12715else
12716  	  if test yes = "$cross_compiling"; then :
12717  lt_cv_dlopen_self_static=cross
12718else
12719  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12720  lt_status=$lt_dlunknown
12721  cat > conftest.$ac_ext <<_LT_EOF
12722#line $LINENO "configure"
12723#include "confdefs.h"
12724
12725#if HAVE_DLFCN_H
12726#include <dlfcn.h>
12727#endif
12728
12729#include <stdio.h>
12730
12731#ifdef RTLD_GLOBAL
12732#  define LT_DLGLOBAL		RTLD_GLOBAL
12733#else
12734#  ifdef DL_GLOBAL
12735#    define LT_DLGLOBAL		DL_GLOBAL
12736#  else
12737#    define LT_DLGLOBAL		0
12738#  endif
12739#endif
12740
12741/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12742   find out it does not work in some platform. */
12743#ifndef LT_DLLAZY_OR_NOW
12744#  ifdef RTLD_LAZY
12745#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12746#  else
12747#    ifdef DL_LAZY
12748#      define LT_DLLAZY_OR_NOW		DL_LAZY
12749#    else
12750#      ifdef RTLD_NOW
12751#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12752#      else
12753#        ifdef DL_NOW
12754#          define LT_DLLAZY_OR_NOW	DL_NOW
12755#        else
12756#          define LT_DLLAZY_OR_NOW	0
12757#        endif
12758#      endif
12759#    endif
12760#  endif
12761#endif
12762
12763/* When -fvisibility=hidden is used, assume the code has been annotated
12764   correspondingly for the symbols needed.  */
12765#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12766int fnord () __attribute__((visibility("default")));
12767#endif
12768
12769int fnord () { return 42; }
12770int main ()
12771{
12772  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12773  int status = $lt_dlunknown;
12774
12775  if (self)
12776    {
12777      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12778      else
12779        {
12780	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12781          else puts (dlerror ());
12782	}
12783      /* dlclose (self); */
12784    }
12785  else
12786    puts (dlerror ());
12787
12788  return status;
12789}
12790_LT_EOF
12791  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12792  (eval $ac_link) 2>&5
12793  ac_status=$?
12794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12795  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12796    (./conftest; exit; ) >&5 2>/dev/null
12797    lt_status=$?
12798    case x$lt_status in
12799      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12800      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12801      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12802    esac
12803  else :
12804    # compilation failed
12805    lt_cv_dlopen_self_static=no
12806  fi
12807fi
12808rm -fr conftest*
12809
12810
12811fi
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12813$as_echo "$lt_cv_dlopen_self_static" >&6; }
12814    fi
12815
12816    CPPFLAGS=$save_CPPFLAGS
12817    LDFLAGS=$save_LDFLAGS
12818    LIBS=$save_LIBS
12819    ;;
12820  esac
12821
12822  case $lt_cv_dlopen_self in
12823  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12824  *) enable_dlopen_self=unknown ;;
12825  esac
12826
12827  case $lt_cv_dlopen_self_static in
12828  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12829  *) enable_dlopen_self_static=unknown ;;
12830  esac
12831fi
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849striplib=
12850old_striplib=
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12852$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12853if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12854  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12855  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12857$as_echo "yes" >&6; }
12858else
12859# FIXME - insert some real tests, host_os isn't really good enough
12860  case $host_os in
12861  darwin*)
12862    if test -n "$STRIP"; then
12863      striplib="$STRIP -x"
12864      old_striplib="$STRIP -S"
12865      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12866$as_echo "yes" >&6; }
12867    else
12868      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869$as_echo "no" >&6; }
12870    fi
12871    ;;
12872  *)
12873    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874$as_echo "no" >&6; }
12875    ;;
12876  esac
12877fi
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890  # Report what library types will actually be built
12891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12892$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12894$as_echo "$can_build_shared" >&6; }
12895
12896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12897$as_echo_n "checking whether to build shared libraries... " >&6; }
12898  test no = "$can_build_shared" && enable_shared=no
12899
12900  # On AIX, shared libraries and static libraries use the same namespace, and
12901  # are all built from PIC.
12902  case $host_os in
12903  aix3*)
12904    test yes = "$enable_shared" && enable_static=no
12905    if test -n "$RANLIB"; then
12906      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12907      postinstall_cmds='$RANLIB $lib'
12908    fi
12909    ;;
12910
12911  aix[4-9]*)
12912    if test ia64 != "$host_cpu"; then
12913      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12914      yes,aix,yes) ;;			# shared object as lib.so file only
12915      yes,svr4,*) ;;			# shared object as lib.so archive member only
12916      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12917      esac
12918    fi
12919    ;;
12920  esac
12921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12922$as_echo "$enable_shared" >&6; }
12923
12924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12925$as_echo_n "checking whether to build static libraries... " >&6; }
12926  # Make sure either enable_shared or enable_static is yes.
12927  test yes = "$enable_shared" || enable_static=yes
12928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12929$as_echo "$enable_static" >&6; }
12930
12931
12932
12933
12934fi
12935ac_ext=c
12936ac_cpp='$CPP $CPPFLAGS'
12937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939ac_compiler_gnu=$ac_cv_c_compiler_gnu
12940
12941CC=$lt_save_CC
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957        ac_config_commands="$ac_config_commands libtool"
12958
12959
12960
12961
12962# Only expand once:
12963
12964
12965
12966
12967# Check for library functions that SQLite can optionally use.
12968for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12969do :
12970  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12971ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12972if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12973  cat >>confdefs.h <<_ACEOF
12974#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12975_ACEOF
12976
12977fi
12978done
12979
12980ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12981if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12982  ac_have_decl=1
12983else
12984  ac_have_decl=0
12985fi
12986
12987cat >>confdefs.h <<_ACEOF
12988#define HAVE_DECL_STRERROR_R $ac_have_decl
12989_ACEOF
12990
12991for ac_func in strerror_r
12992do :
12993  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12994if test "x$ac_cv_func_strerror_r" = xyes; then :
12995  cat >>confdefs.h <<_ACEOF
12996#define HAVE_STRERROR_R 1
12997_ACEOF
12998
12999fi
13000done
13001
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13003$as_echo_n "checking whether strerror_r returns char *... " >&6; }
13004if ${ac_cv_func_strerror_r_char_p+:} false; then :
13005  $as_echo_n "(cached) " >&6
13006else
13007
13008    ac_cv_func_strerror_r_char_p=no
13009    if test $ac_cv_have_decl_strerror_r = yes; then
13010      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011/* end confdefs.h.  */
13012$ac_includes_default
13013int
13014main ()
13015{
13016
13017	  char buf[100];
13018	  char x = *strerror_r (0, buf, sizeof buf);
13019	  char *p = strerror_r (0, buf, sizeof buf);
13020	  return !p || x;
13021
13022  ;
13023  return 0;
13024}
13025_ACEOF
13026if ac_fn_c_try_compile "$LINENO"; then :
13027  ac_cv_func_strerror_r_char_p=yes
13028fi
13029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030    else
13031      # strerror_r is not declared.  Choose between
13032      # systems that have relatively inaccessible declarations for the
13033      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13034      # former has a strerror_r that returns char*, while the latter
13035      # has a strerror_r that returns `int'.
13036      # This test should segfault on the DEC system.
13037      if test "$cross_compiling" = yes; then :
13038  :
13039else
13040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041/* end confdefs.h.  */
13042$ac_includes_default
13043	extern char *strerror_r ();
13044int
13045main ()
13046{
13047char buf[100];
13048	  char x = *strerror_r (0, buf, sizeof buf);
13049	  return ! isalpha (x);
13050  ;
13051  return 0;
13052}
13053_ACEOF
13054if ac_fn_c_try_run "$LINENO"; then :
13055  ac_cv_func_strerror_r_char_p=yes
13056fi
13057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13058  conftest.$ac_objext conftest.beam conftest.$ac_ext
13059fi
13060
13061    fi
13062
13063fi
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13065$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13066if test $ac_cv_func_strerror_r_char_p = yes; then
13067
13068$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13069
13070fi
13071
13072
13073ac_config_files="$ac_config_files Makefile sqlite3.pc"
13074
13075BUILD_CFLAGS=
13076
13077
13078#-------------------------------------------------------------------------
13079# Two options to enable readline compatible libraries:
13080#
13081#   --enable-editline
13082#   --enable-readline
13083#
13084# Both are enabled by default. If, after command line processing both are
13085# still enabled, the script searches for editline first and automatically
13086# disables readline if it is found. So, to use readline explicitly, the
13087# user must pass "--disable-editline". To disable command line editing
13088# support altogether, "--disable-editline --disable-readline".
13089#
13090# When searching for either library, check for headers before libraries
13091# as some distros supply packages that contain libraries but not header
13092# files, which come as a separate development package.
13093#
13094# Check whether --enable-editline was given.
13095if test "${enable_editline+set}" = set; then :
13096  enableval=$enable_editline;
13097fi
13098
13099# Check whether --enable-readline was given.
13100if test "${enable_readline+set}" = set; then :
13101  enableval=$enable_readline;
13102fi
13103
13104
13105if  test x"$enable_editline" != xno ; then :
13106
13107  for ac_header in editline/readline.h
13108do :
13109  ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13110if test "x$ac_cv_header_editline_readline_h" = xyes; then :
13111  cat >>confdefs.h <<_ACEOF
13112#define HAVE_EDITLINE_READLINE_H 1
13113_ACEOF
13114
13115    sLIBS=$LIBS
13116    LIBS=""
13117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13118$as_echo_n "checking for library containing readline... " >&6; }
13119if ${ac_cv_search_readline+:} false; then :
13120  $as_echo_n "(cached) " >&6
13121else
13122  ac_func_search_save_LIBS=$LIBS
13123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124/* end confdefs.h.  */
13125
13126/* Override any GCC internal prototype to avoid an error.
13127   Use char because int might match the return type of a GCC
13128   builtin and then its argument prototype would still apply.  */
13129#ifdef __cplusplus
13130extern "C"
13131#endif
13132char readline ();
13133int
13134main ()
13135{
13136return readline ();
13137  ;
13138  return 0;
13139}
13140_ACEOF
13141for ac_lib in '' edit; do
13142  if test -z "$ac_lib"; then
13143    ac_res="none required"
13144  else
13145    ac_res=-l$ac_lib
13146    LIBS="-l$ac_lib -ltinfo $ac_func_search_save_LIBS"
13147  fi
13148  if ac_fn_c_try_link "$LINENO"; then :
13149  ac_cv_search_readline=$ac_res
13150fi
13151rm -f core conftest.err conftest.$ac_objext \
13152    conftest$ac_exeext
13153  if ${ac_cv_search_readline+:} false; then :
13154  break
13155fi
13156done
13157if ${ac_cv_search_readline+:} false; then :
13158
13159else
13160  ac_cv_search_readline=no
13161fi
13162rm conftest.$ac_ext
13163LIBS=$ac_func_search_save_LIBS
13164fi
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13166$as_echo "$ac_cv_search_readline" >&6; }
13167ac_res=$ac_cv_search_readline
13168if test "$ac_res" != no; then :
13169  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13170
13171
13172$as_echo "#define HAVE_EDITLINE 1" >>confdefs.h
13173
13174      READLINE_LIBS="$LIBS -ltinfo"
13175      enable_readline=no
13176
13177fi
13178
13179    { ac_cv_search_readline=; unset ac_cv_search_readline;}
13180    LIBS=$sLIBS
13181
13182fi
13183
13184done
13185
13186
13187fi
13188
13189if  test x"$enable_readline" != xno ; then :
13190
13191  for ac_header in readline/readline.h
13192do :
13193  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13194if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13195  cat >>confdefs.h <<_ACEOF
13196#define HAVE_READLINE_READLINE_H 1
13197_ACEOF
13198
13199    sLIBS=$LIBS
13200    LIBS=""
13201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13202$as_echo_n "checking for library containing tgetent... " >&6; }
13203if ${ac_cv_search_tgetent+:} false; then :
13204  $as_echo_n "(cached) " >&6
13205else
13206  ac_func_search_save_LIBS=$LIBS
13207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208/* end confdefs.h.  */
13209
13210/* Override any GCC internal prototype to avoid an error.
13211   Use char because int might match the return type of a GCC
13212   builtin and then its argument prototype would still apply.  */
13213#ifdef __cplusplus
13214extern "C"
13215#endif
13216char tgetent ();
13217int
13218main ()
13219{
13220return tgetent ();
13221  ;
13222  return 0;
13223}
13224_ACEOF
13225for ac_lib in '' termcap curses ncurses ncursesw; do
13226  if test -z "$ac_lib"; then
13227    ac_res="none required"
13228  else
13229    ac_res=-l$ac_lib
13230    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13231  fi
13232  if ac_fn_c_try_link "$LINENO"; then :
13233  ac_cv_search_tgetent=$ac_res
13234fi
13235rm -f core conftest.err conftest.$ac_objext \
13236    conftest$ac_exeext
13237  if ${ac_cv_search_tgetent+:} false; then :
13238  break
13239fi
13240done
13241if ${ac_cv_search_tgetent+:} false; then :
13242
13243else
13244  ac_cv_search_tgetent=no
13245fi
13246rm conftest.$ac_ext
13247LIBS=$ac_func_search_save_LIBS
13248fi
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13250$as_echo "$ac_cv_search_tgetent" >&6; }
13251ac_res=$ac_cv_search_tgetent
13252if test "$ac_res" != no; then :
13253  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13254
13255fi
13256
13257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13258$as_echo_n "checking for library containing readline... " >&6; }
13259if ${ac_cv_search_readline+:} false; then :
13260  $as_echo_n "(cached) " >&6
13261else
13262  ac_func_search_save_LIBS=$LIBS
13263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264/* end confdefs.h.  */
13265
13266/* Override any GCC internal prototype to avoid an error.
13267   Use char because int might match the return type of a GCC
13268   builtin and then its argument prototype would still apply.  */
13269#ifdef __cplusplus
13270extern "C"
13271#endif
13272char readline ();
13273int
13274main ()
13275{
13276return readline ();
13277  ;
13278  return 0;
13279}
13280_ACEOF
13281for ac_lib in '' readline edit; do
13282  if test -z "$ac_lib"; then
13283    ac_res="none required"
13284  else
13285    ac_res=-l$ac_lib
13286    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13287  fi
13288  if ac_fn_c_try_link "$LINENO"; then :
13289  ac_cv_search_readline=$ac_res
13290fi
13291rm -f core conftest.err conftest.$ac_objext \
13292    conftest$ac_exeext
13293  if ${ac_cv_search_readline+:} false; then :
13294  break
13295fi
13296done
13297if ${ac_cv_search_readline+:} false; then :
13298
13299else
13300  ac_cv_search_readline=no
13301fi
13302rm conftest.$ac_ext
13303LIBS=$ac_func_search_save_LIBS
13304fi
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13306$as_echo "$ac_cv_search_readline" >&6; }
13307ac_res=$ac_cv_search_readline
13308if test "$ac_res" != no; then :
13309  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13310
13311
13312$as_echo "#define HAVE_READLINE 1" >>confdefs.h
13313
13314      READLINE_LIBS=$LIBS
13315
13316fi
13317
13318    LIBS=$sLIBS
13319
13320fi
13321
13322done
13323
13324
13325fi
13326
13327
13328#-----------------------------------------------------------------------
13329
13330#-----------------------------------------------------------------------
13331#   --enable-threadsafe
13332#
13333# Check whether --enable-threadsafe was given.
13334if test "${enable_threadsafe+set}" = set; then :
13335  enableval=$enable_threadsafe;
13336else
13337  enable_threadsafe=yes
13338fi
13339
13340if test x"$enable_threadsafe" == "xno"; then
13341  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_THREADSAFE=0"
13342else
13343  BUILD_CFLAGS="$BUILD_CFLAGS -D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
13344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13345$as_echo_n "checking for library containing pthread_create... " >&6; }
13346if ${ac_cv_search_pthread_create+:} false; then :
13347  $as_echo_n "(cached) " >&6
13348else
13349  ac_func_search_save_LIBS=$LIBS
13350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351/* end confdefs.h.  */
13352
13353/* Override any GCC internal prototype to avoid an error.
13354   Use char because int might match the return type of a GCC
13355   builtin and then its argument prototype would still apply.  */
13356#ifdef __cplusplus
13357extern "C"
13358#endif
13359char pthread_create ();
13360int
13361main ()
13362{
13363return pthread_create ();
13364  ;
13365  return 0;
13366}
13367_ACEOF
13368for ac_lib in '' pthread; do
13369  if test -z "$ac_lib"; then
13370    ac_res="none required"
13371  else
13372    ac_res=-l$ac_lib
13373    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13374  fi
13375  if ac_fn_c_try_link "$LINENO"; then :
13376  ac_cv_search_pthread_create=$ac_res
13377fi
13378rm -f core conftest.err conftest.$ac_objext \
13379    conftest$ac_exeext
13380  if ${ac_cv_search_pthread_create+:} false; then :
13381  break
13382fi
13383done
13384if ${ac_cv_search_pthread_create+:} false; then :
13385
13386else
13387  ac_cv_search_pthread_create=no
13388fi
13389rm conftest.$ac_ext
13390LIBS=$ac_func_search_save_LIBS
13391fi
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13393$as_echo "$ac_cv_search_pthread_create" >&6; }
13394ac_res=$ac_cv_search_pthread_create
13395if test "$ac_res" != no; then :
13396  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13397
13398fi
13399
13400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
13401$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
13402if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13403  $as_echo_n "(cached) " >&6
13404else
13405  ac_func_search_save_LIBS=$LIBS
13406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407/* end confdefs.h.  */
13408
13409/* Override any GCC internal prototype to avoid an error.
13410   Use char because int might match the return type of a GCC
13411   builtin and then its argument prototype would still apply.  */
13412#ifdef __cplusplus
13413extern "C"
13414#endif
13415char pthread_mutexattr_init ();
13416int
13417main ()
13418{
13419return pthread_mutexattr_init ();
13420  ;
13421  return 0;
13422}
13423_ACEOF
13424for ac_lib in '' pthread; do
13425  if test -z "$ac_lib"; then
13426    ac_res="none required"
13427  else
13428    ac_res=-l$ac_lib
13429    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13430  fi
13431  if ac_fn_c_try_link "$LINENO"; then :
13432  ac_cv_search_pthread_mutexattr_init=$ac_res
13433fi
13434rm -f core conftest.err conftest.$ac_objext \
13435    conftest$ac_exeext
13436  if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13437  break
13438fi
13439done
13440if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13441
13442else
13443  ac_cv_search_pthread_mutexattr_init=no
13444fi
13445rm conftest.$ac_ext
13446LIBS=$ac_func_search_save_LIBS
13447fi
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
13449$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
13450ac_res=$ac_cv_search_pthread_mutexattr_init
13451if test "$ac_res" != no; then :
13452  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13453
13454fi
13455
13456fi
13457#-----------------------------------------------------------------------
13458
13459#-----------------------------------------------------------------------
13460#   --enable-dynamic-extensions
13461#
13462# Check whether --enable-dynamic-extensions was given.
13463if test "${enable_dynamic_extensions+set}" = set; then :
13464  enableval=$enable_dynamic_extensions;
13465else
13466  enable_dynamic_extensions=yes
13467fi
13468
13469if test x"$enable_dynamic_extensions" != "xno"; then
13470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13471$as_echo_n "checking for library containing dlopen... " >&6; }
13472if ${ac_cv_search_dlopen+:} false; then :
13473  $as_echo_n "(cached) " >&6
13474else
13475  ac_func_search_save_LIBS=$LIBS
13476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477/* end confdefs.h.  */
13478
13479/* Override any GCC internal prototype to avoid an error.
13480   Use char because int might match the return type of a GCC
13481   builtin and then its argument prototype would still apply.  */
13482#ifdef __cplusplus
13483extern "C"
13484#endif
13485char dlopen ();
13486int
13487main ()
13488{
13489return dlopen ();
13490  ;
13491  return 0;
13492}
13493_ACEOF
13494for ac_lib in '' dl; do
13495  if test -z "$ac_lib"; then
13496    ac_res="none required"
13497  else
13498    ac_res=-l$ac_lib
13499    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13500  fi
13501  if ac_fn_c_try_link "$LINENO"; then :
13502  ac_cv_search_dlopen=$ac_res
13503fi
13504rm -f core conftest.err conftest.$ac_objext \
13505    conftest$ac_exeext
13506  if ${ac_cv_search_dlopen+:} false; then :
13507  break
13508fi
13509done
13510if ${ac_cv_search_dlopen+:} false; then :
13511
13512else
13513  ac_cv_search_dlopen=no
13514fi
13515rm conftest.$ac_ext
13516LIBS=$ac_func_search_save_LIBS
13517fi
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13519$as_echo "$ac_cv_search_dlopen" >&6; }
13520ac_res=$ac_cv_search_dlopen
13521if test "$ac_res" != no; then :
13522  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13523
13524fi
13525
13526else
13527  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_OMIT_LOAD_EXTENSION=1"
13528fi
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
13530$as_echo_n "checking for whether to support dynamic extensions... " >&6; }
13531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
13532$as_echo "$enable_dynamic_extensions" >&6; }
13533#-----------------------------------------------------------------------
13534
13535#-----------------------------------------------------------------------
13536#   --enable-math
13537#
13538# Check whether --enable-math was given.
13539if test "${enable_math+set}" = set; then :
13540  enableval=$enable_math;
13541else
13542  enable_math=yes
13543fi
13544
13545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SQL math functions" >&5
13546$as_echo_n "checking SQL math functions... " >&6; }
13547if test x"$enable_math" = "xyes"; then
13548  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_MATH_FUNCTIONS"
13549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13550$as_echo "enabled" >&6; }
13551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
13552$as_echo_n "checking for library containing ceil... " >&6; }
13553if ${ac_cv_search_ceil+:} false; then :
13554  $as_echo_n "(cached) " >&6
13555else
13556  ac_func_search_save_LIBS=$LIBS
13557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558/* end confdefs.h.  */
13559
13560/* Override any GCC internal prototype to avoid an error.
13561   Use char because int might match the return type of a GCC
13562   builtin and then its argument prototype would still apply.  */
13563#ifdef __cplusplus
13564extern "C"
13565#endif
13566char ceil ();
13567int
13568main ()
13569{
13570return ceil ();
13571  ;
13572  return 0;
13573}
13574_ACEOF
13575for ac_lib in '' m; do
13576  if test -z "$ac_lib"; then
13577    ac_res="none required"
13578  else
13579    ac_res=-l$ac_lib
13580    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13581  fi
13582  if ac_fn_c_try_link "$LINENO"; then :
13583  ac_cv_search_ceil=$ac_res
13584fi
13585rm -f core conftest.err conftest.$ac_objext \
13586    conftest$ac_exeext
13587  if ${ac_cv_search_ceil+:} false; then :
13588  break
13589fi
13590done
13591if ${ac_cv_search_ceil+:} false; then :
13592
13593else
13594  ac_cv_search_ceil=no
13595fi
13596rm conftest.$ac_ext
13597LIBS=$ac_func_search_save_LIBS
13598fi
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
13600$as_echo "$ac_cv_search_ceil" >&6; }
13601ac_res=$ac_cv_search_ceil
13602if test "$ac_res" != no; then :
13603  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13604
13605fi
13606
13607else
13608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13609$as_echo "disabled" >&6; }
13610fi
13611#-----------------------------------------------------------------------
13612
13613#-----------------------------------------------------------------------
13614#   --enable-fts4
13615#
13616# Check whether --enable-fts4 was given.
13617if test "${enable_fts4+set}" = set; then :
13618  enableval=$enable_fts4;
13619else
13620  enable_fts4=yes
13621fi
13622
13623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FTS4 extension" >&5
13624$as_echo_n "checking FTS4 extension... " >&6; }
13625if test x"$enable_fts4" = "xyes"; then
13626  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS4"
13627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13628$as_echo "enabled" >&6; }
13629else
13630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13631$as_echo "disabled" >&6; }
13632fi
13633#-----------------------------------------------------------------------
13634
13635#-----------------------------------------------------------------------
13636#   --enable-fts3
13637#
13638# Check whether --enable-fts3 was given.
13639if test "${enable_fts3+set}" = set; then :
13640  enableval=$enable_fts3;
13641fi
13642
13643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FTS3 extension" >&5
13644$as_echo_n "checking FTS3 extension... " >&6; }
13645if test x"$enable_fts3" = "xyes" -a x"$enable_fts4" = "xno"; then
13646  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS3"
13647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13648$as_echo "enabled" >&6; }
13649else
13650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13651$as_echo "disabled" >&6; }
13652fi
13653#-----------------------------------------------------------------------
13654
13655#-----------------------------------------------------------------------
13656#   --enable-fts5
13657#
13658# Check whether --enable-fts5 was given.
13659if test "${enable_fts5+set}" = set; then :
13660  enableval=$enable_fts5;
13661else
13662  enable_fts5=yes
13663fi
13664
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FTS5 extension" >&5
13666$as_echo_n "checking FTS5 extension... " >&6; }
13667if test x"$enable_fts5" = "xyes"; then
13668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13669$as_echo "enabled" >&6; }
13670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13671$as_echo_n "checking for library containing log... " >&6; }
13672if ${ac_cv_search_log+:} false; then :
13673  $as_echo_n "(cached) " >&6
13674else
13675  ac_func_search_save_LIBS=$LIBS
13676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677/* end confdefs.h.  */
13678
13679/* Override any GCC internal prototype to avoid an error.
13680   Use char because int might match the return type of a GCC
13681   builtin and then its argument prototype would still apply.  */
13682#ifdef __cplusplus
13683extern "C"
13684#endif
13685char log ();
13686int
13687main ()
13688{
13689return log ();
13690  ;
13691  return 0;
13692}
13693_ACEOF
13694for ac_lib in '' m; do
13695  if test -z "$ac_lib"; then
13696    ac_res="none required"
13697  else
13698    ac_res=-l$ac_lib
13699    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13700  fi
13701  if ac_fn_c_try_link "$LINENO"; then :
13702  ac_cv_search_log=$ac_res
13703fi
13704rm -f core conftest.err conftest.$ac_objext \
13705    conftest$ac_exeext
13706  if ${ac_cv_search_log+:} false; then :
13707  break
13708fi
13709done
13710if ${ac_cv_search_log+:} false; then :
13711
13712else
13713  ac_cv_search_log=no
13714fi
13715rm conftest.$ac_ext
13716LIBS=$ac_func_search_save_LIBS
13717fi
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13719$as_echo "$ac_cv_search_log" >&6; }
13720ac_res=$ac_cv_search_log
13721if test "$ac_res" != no; then :
13722  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13723
13724fi
13725
13726  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS5"
13727else
13728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13729$as_echo "disabled" >&6; }
13730fi
13731#-----------------------------------------------------------------------
13732
13733#-----------------------------------------------------------------------
13734#   --enable-json1
13735#
13736# Check whether --enable-json1 was given.
13737if test "${enable_json1+set}" = set; then :
13738  enableval=$enable_json1;
13739else
13740  enable_json1=yes
13741fi
13742
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking JSON functions" >&5
13744$as_echo_n "checking JSON functions... " >&6; }
13745if test x"$enable_json1" = "xyes"; then
13746  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_JSON1"
13747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13748$as_echo "enabled" >&6; }
13749else
13750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13751$as_echo "disabled" >&6; }
13752fi
13753#-----------------------------------------------------------------------
13754
13755#-----------------------------------------------------------------------
13756#   --enable-rtree
13757#
13758# Check whether --enable-rtree was given.
13759if test "${enable_rtree+set}" = set; then :
13760  enableval=$enable_rtree;
13761else
13762  enable_rtree=yes
13763fi
13764
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RTREE extension" >&5
13766$as_echo_n "checking RTREE extension... " >&6; }
13767if test x"$enable_rtree" = "xyes"; then
13768  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY"
13769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13770$as_echo "enabled" >&6; }
13771else
13772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13773$as_echo "disabled" >&6; }
13774fi
13775#-----------------------------------------------------------------------
13776
13777#-----------------------------------------------------------------------
13778#   --enable-session
13779#
13780# Check whether --enable-session was given.
13781if test "${enable_session+set}" = set; then :
13782  enableval=$enable_session;
13783fi
13784
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Session extension" >&5
13786$as_echo_n "checking Session extension... " >&6; }
13787if test x"$enable_session" = "xyes"; then
13788  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK"
13789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13790$as_echo "enabled" >&6; }
13791else
13792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13793$as_echo "disabled" >&6; }
13794fi
13795#-----------------------------------------------------------------------
13796
13797#-----------------------------------------------------------------------
13798#   --enable-debug
13799#
13800# Check whether --enable-debug was given.
13801if test "${enable_debug+set}" = set; then :
13802  enableval=$enable_debug;
13803fi
13804
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Build type" >&5
13806$as_echo_n "checking Build type... " >&6; }
13807if test x"$enable_debug" = "xyes"; then
13808  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_DEBUG -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE"
13809  CFLAGS="-g -O0"
13810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
13811$as_echo "debug" >&6; }
13812else
13813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
13814$as_echo "release" >&6; }
13815fi
13816#-----------------------------------------------------------------------
13817
13818#-----------------------------------------------------------------------
13819#   --enable-static-shell
13820#
13821# Check whether --enable-static-shell was given.
13822if test "${enable_static_shell+set}" = set; then :
13823  enableval=$enable_static_shell;
13824else
13825  enable_static_shell=yes
13826fi
13827
13828if test x"$enable_static_shell" = "xyes"; then
13829  EXTRA_SHELL_OBJ=sqlite3-sqlite3.$OBJEXT
13830else
13831  EXTRA_SHELL_OBJ=libsqlite3.la
13832fi
13833
13834#-----------------------------------------------------------------------
13835
13836for ac_func in posix_fallocate
13837do :
13838  ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
13839if test "x$ac_cv_func_posix_fallocate" = xyes; then :
13840  cat >>confdefs.h <<_ACEOF
13841#define HAVE_POSIX_FALLOCATE 1
13842_ACEOF
13843
13844fi
13845done
13846
13847for ac_header in zlib.h
13848do :
13849  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13850if test "x$ac_cv_header_zlib_h" = xyes; then :
13851  cat >>confdefs.h <<_ACEOF
13852#define HAVE_ZLIB_H 1
13853_ACEOF
13854
13855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
13856$as_echo_n "checking for library containing deflate... " >&6; }
13857if ${ac_cv_search_deflate+:} false; then :
13858  $as_echo_n "(cached) " >&6
13859else
13860  ac_func_search_save_LIBS=$LIBS
13861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862/* end confdefs.h.  */
13863
13864/* Override any GCC internal prototype to avoid an error.
13865   Use char because int might match the return type of a GCC
13866   builtin and then its argument prototype would still apply.  */
13867#ifdef __cplusplus
13868extern "C"
13869#endif
13870char deflate ();
13871int
13872main ()
13873{
13874return deflate ();
13875  ;
13876  return 0;
13877}
13878_ACEOF
13879for ac_lib in '' z; do
13880  if test -z "$ac_lib"; then
13881    ac_res="none required"
13882  else
13883    ac_res=-l$ac_lib
13884    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13885  fi
13886  if ac_fn_c_try_link "$LINENO"; then :
13887  ac_cv_search_deflate=$ac_res
13888fi
13889rm -f core conftest.err conftest.$ac_objext \
13890    conftest$ac_exeext
13891  if ${ac_cv_search_deflate+:} false; then :
13892  break
13893fi
13894done
13895if ${ac_cv_search_deflate+:} false; then :
13896
13897else
13898  ac_cv_search_deflate=no
13899fi
13900rm conftest.$ac_ext
13901LIBS=$ac_func_search_save_LIBS
13902fi
13903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
13904$as_echo "$ac_cv_search_deflate" >&6; }
13905ac_res=$ac_cv_search_deflate
13906if test "$ac_res" != no; then :
13907  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13908  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_HAVE_ZLIB"
13909fi
13910
13911
13912fi
13913
13914done
13915
13916
13917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing system" >&5
13918$as_echo_n "checking for library containing system... " >&6; }
13919if ${ac_cv_search_system+:} false; then :
13920  $as_echo_n "(cached) " >&6
13921else
13922  ac_func_search_save_LIBS=$LIBS
13923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924/* end confdefs.h.  */
13925
13926/* Override any GCC internal prototype to avoid an error.
13927   Use char because int might match the return type of a GCC
13928   builtin and then its argument prototype would still apply.  */
13929#ifdef __cplusplus
13930extern "C"
13931#endif
13932char system ();
13933int
13934main ()
13935{
13936return system ();
13937  ;
13938  return 0;
13939}
13940_ACEOF
13941for ac_lib in '' ; do
13942  if test -z "$ac_lib"; then
13943    ac_res="none required"
13944  else
13945    ac_res=-l$ac_lib
13946    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13947  fi
13948  if ac_fn_c_try_link "$LINENO"; then :
13949  ac_cv_search_system=$ac_res
13950fi
13951rm -f core conftest.err conftest.$ac_objext \
13952    conftest$ac_exeext
13953  if ${ac_cv_search_system+:} false; then :
13954  break
13955fi
13956done
13957if ${ac_cv_search_system+:} false; then :
13958
13959else
13960  ac_cv_search_system=no
13961fi
13962rm conftest.$ac_ext
13963LIBS=$ac_func_search_save_LIBS
13964fi
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_system" >&5
13966$as_echo "$ac_cv_search_system" >&6; }
13967ac_res=$ac_cv_search_system
13968if test "$ac_res" != no; then :
13969  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13970
13971else
13972  SHELL_CFLAGS="-DSQLITE_NOHAVE_SYSTEM"
13973fi
13974
13975
13976
13977#-----------------------------------------------------------------------
13978# UPDATE: Maybe it's better if users just set CFLAGS before invoking
13979# configure. This option doesn't really add much...
13980#
13981#   --enable-tempstore
13982#
13983# AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
13984#   [--enable-tempstore],
13985#   [in-memory temporary tables (never, no, yes, always) [default=no]])],
13986#   [], [enable_tempstore=no])
13987# AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
13988# case "$enable_tempstore" in
13989#   never )  TEMP_STORE=0 ;;
13990#   no )     TEMP_STORE=1 ;;
13991#   always ) TEMP_STORE=3 ;;
13992#   yes )    TEMP_STORE=3 ;;
13993#   * )
13994#     TEMP_STORE=1
13995#     enable_tempstore=yes
13996#   ;;
13997# esac
13998# AC_MSG_RESULT($enable_tempstore)
13999# AC_SUBST(TEMP_STORE)
14000#-----------------------------------------------------------------------
14001
14002cat >confcache <<\_ACEOF
14003# This file is a shell script that caches the results of configure
14004# tests run on this system so they can be shared between configure
14005# scripts and configure runs, see configure's option --config-cache.
14006# It is not useful on other systems.  If it contains results you don't
14007# want to keep, you may remove or edit it.
14008#
14009# config.status only pays attention to the cache file if you give it
14010# the --recheck option to rerun configure.
14011#
14012# `ac_cv_env_foo' variables (set or unset) will be overridden when
14013# loading this file, other *unset* `ac_cv_foo' will be assigned the
14014# following values.
14015
14016_ACEOF
14017
14018# The following way of writing the cache mishandles newlines in values,
14019# but we know of no workaround that is simple, portable, and efficient.
14020# So, we kill variables containing newlines.
14021# Ultrix sh set writes to stderr and can't be redirected directly,
14022# and sets the high bit in the cache file unless we assign to the vars.
14023(
14024  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14025    eval ac_val=\$$ac_var
14026    case $ac_val in #(
14027    *${as_nl}*)
14028      case $ac_var in #(
14029      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14030$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14031      esac
14032      case $ac_var in #(
14033      _ | IFS | as_nl) ;; #(
14034      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14035      *) { eval $ac_var=; unset $ac_var;} ;;
14036      esac ;;
14037    esac
14038  done
14039
14040  (set) 2>&1 |
14041    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14042    *${as_nl}ac_space=\ *)
14043      # `set' does not quote correctly, so add quotes: double-quote
14044      # substitution turns \\\\ into \\, and sed turns \\ into \.
14045      sed -n \
14046	"s/'/'\\\\''/g;
14047	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14048      ;; #(
14049    *)
14050      # `set' quotes correctly as required by POSIX, so do not add quotes.
14051      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14052      ;;
14053    esac |
14054    sort
14055) |
14056  sed '
14057     /^ac_cv_env_/b end
14058     t clear
14059     :clear
14060     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14061     t end
14062     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14063     :end' >>confcache
14064if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14065  if test -w "$cache_file"; then
14066    if test "x$cache_file" != "x/dev/null"; then
14067      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14068$as_echo "$as_me: updating cache $cache_file" >&6;}
14069      if test ! -f "$cache_file" || test -h "$cache_file"; then
14070	cat confcache >"$cache_file"
14071      else
14072        case $cache_file in #(
14073        */* | ?:*)
14074	  mv -f confcache "$cache_file"$$ &&
14075	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14076        *)
14077	  mv -f confcache "$cache_file" ;;
14078	esac
14079      fi
14080    fi
14081  else
14082    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14083$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14084  fi
14085fi
14086rm -f confcache
14087
14088test "x$prefix" = xNONE && prefix=$ac_default_prefix
14089# Let make expand exec_prefix.
14090test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14091
14092# Transform confdefs.h into DEFS.
14093# Protect against shell expansion while executing Makefile rules.
14094# Protect against Makefile macro expansion.
14095#
14096# If the first sed substitution is executed (which looks for macros that
14097# take arguments), then branch to the quote section.  Otherwise,
14098# look for a macro that doesn't take arguments.
14099ac_script='
14100:mline
14101/\\$/{
14102 N
14103 s,\\\n,,
14104 b mline
14105}
14106t clear
14107:clear
14108s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
14109t quote
14110s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
14111t quote
14112b any
14113:quote
14114s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14115s/\[/\\&/g
14116s/\]/\\&/g
14117s/\$/$$/g
14118H
14119:any
14120${
14121	g
14122	s/^\n//
14123	s/\n/ /g
14124	p
14125}
14126'
14127DEFS=`sed -n "$ac_script" confdefs.h`
14128
14129
14130ac_libobjs=
14131ac_ltlibobjs=
14132U=
14133for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14134  # 1. Remove the extension, and $U if already installed.
14135  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14136  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14137  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14138  #    will be set to the directory where LIBOBJS objects are built.
14139  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14140  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14141done
14142LIBOBJS=$ac_libobjs
14143
14144LTLIBOBJS=$ac_ltlibobjs
14145
14146
14147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14148$as_echo_n "checking that generated files are newer than configure... " >&6; }
14149   if test -n "$am_sleep_pid"; then
14150     # Hide warnings about reused PIDs.
14151     wait $am_sleep_pid 2>/dev/null
14152   fi
14153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14154$as_echo "done" >&6; }
14155 if test -n "$EXEEXT"; then
14156  am__EXEEXT_TRUE=
14157  am__EXEEXT_FALSE='#'
14158else
14159  am__EXEEXT_TRUE='#'
14160  am__EXEEXT_FALSE=
14161fi
14162
14163if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14164  as_fn_error $? "conditional \"AMDEP\" was never defined.
14165Usually this means the macro was only invoked conditionally." "$LINENO" 5
14166fi
14167if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14168  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14169Usually this means the macro was only invoked conditionally." "$LINENO" 5
14170fi
14171if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14172  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14173Usually this means the macro was only invoked conditionally." "$LINENO" 5
14174fi
14175
14176: "${CONFIG_STATUS=./config.status}"
14177ac_write_fail=0
14178ac_clean_files_save=$ac_clean_files
14179ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14180{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14181$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14182as_write_fail=0
14183cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14184#! $SHELL
14185# Generated by $as_me.
14186# Run this file to recreate the current configuration.
14187# Compiler output produced by configure, useful for debugging
14188# configure, is in config.log if it exists.
14189
14190debug=false
14191ac_cs_recheck=false
14192ac_cs_silent=false
14193
14194SHELL=\${CONFIG_SHELL-$SHELL}
14195export SHELL
14196_ASEOF
14197cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14198## -------------------- ##
14199## M4sh Initialization. ##
14200## -------------------- ##
14201
14202# Be more Bourne compatible
14203DUALCASE=1; export DUALCASE # for MKS sh
14204if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14205  emulate sh
14206  NULLCMD=:
14207  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14208  # is contrary to our usage.  Disable this feature.
14209  alias -g '${1+"$@"}'='"$@"'
14210  setopt NO_GLOB_SUBST
14211else
14212  case `(set -o) 2>/dev/null` in #(
14213  *posix*) :
14214    set -o posix ;; #(
14215  *) :
14216     ;;
14217esac
14218fi
14219
14220
14221as_nl='
14222'
14223export as_nl
14224# Printing a long string crashes Solaris 7 /usr/bin/printf.
14225as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14226as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14227as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14228# Prefer a ksh shell builtin over an external printf program on Solaris,
14229# but without wasting forks for bash or zsh.
14230if test -z "$BASH_VERSION$ZSH_VERSION" \
14231    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14232  as_echo='print -r --'
14233  as_echo_n='print -rn --'
14234elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14235  as_echo='printf %s\n'
14236  as_echo_n='printf %s'
14237else
14238  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14239    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14240    as_echo_n='/usr/ucb/echo -n'
14241  else
14242    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14243    as_echo_n_body='eval
14244      arg=$1;
14245      case $arg in #(
14246      *"$as_nl"*)
14247	expr "X$arg" : "X\\(.*\\)$as_nl";
14248	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14249      esac;
14250      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14251    '
14252    export as_echo_n_body
14253    as_echo_n='sh -c $as_echo_n_body as_echo'
14254  fi
14255  export as_echo_body
14256  as_echo='sh -c $as_echo_body as_echo'
14257fi
14258
14259# The user is always right.
14260if test "${PATH_SEPARATOR+set}" != set; then
14261  PATH_SEPARATOR=:
14262  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14263    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14264      PATH_SEPARATOR=';'
14265  }
14266fi
14267
14268
14269# IFS
14270# We need space, tab and new line, in precisely that order.  Quoting is
14271# there to prevent editors from complaining about space-tab.
14272# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14273# splitting by setting IFS to empty value.)
14274IFS=" ""	$as_nl"
14275
14276# Find who we are.  Look in the path if we contain no directory separator.
14277as_myself=
14278case $0 in #((
14279  *[\\/]* ) as_myself=$0 ;;
14280  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281for as_dir in $PATH
14282do
14283  IFS=$as_save_IFS
14284  test -z "$as_dir" && as_dir=.
14285    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14286  done
14287IFS=$as_save_IFS
14288
14289     ;;
14290esac
14291# We did not find ourselves, most probably we were run as `sh COMMAND'
14292# in which case we are not to be found in the path.
14293if test "x$as_myself" = x; then
14294  as_myself=$0
14295fi
14296if test ! -f "$as_myself"; then
14297  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14298  exit 1
14299fi
14300
14301# Unset variables that we do not need and which cause bugs (e.g. in
14302# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14303# suppresses any "Segmentation fault" message there.  '((' could
14304# trigger a bug in pdksh 5.2.14.
14305for as_var in BASH_ENV ENV MAIL MAILPATH
14306do eval test x\${$as_var+set} = xset \
14307  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14308done
14309PS1='$ '
14310PS2='> '
14311PS4='+ '
14312
14313# NLS nuisances.
14314LC_ALL=C
14315export LC_ALL
14316LANGUAGE=C
14317export LANGUAGE
14318
14319# CDPATH.
14320(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14321
14322
14323# as_fn_error STATUS ERROR [LINENO LOG_FD]
14324# ----------------------------------------
14325# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14326# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14327# script with STATUS, using 1 if that was 0.
14328as_fn_error ()
14329{
14330  as_status=$1; test $as_status -eq 0 && as_status=1
14331  if test "$4"; then
14332    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14333    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14334  fi
14335  $as_echo "$as_me: error: $2" >&2
14336  as_fn_exit $as_status
14337} # as_fn_error
14338
14339
14340# as_fn_set_status STATUS
14341# -----------------------
14342# Set $? to STATUS, without forking.
14343as_fn_set_status ()
14344{
14345  return $1
14346} # as_fn_set_status
14347
14348# as_fn_exit STATUS
14349# -----------------
14350# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14351as_fn_exit ()
14352{
14353  set +e
14354  as_fn_set_status $1
14355  exit $1
14356} # as_fn_exit
14357
14358# as_fn_unset VAR
14359# ---------------
14360# Portably unset VAR.
14361as_fn_unset ()
14362{
14363  { eval $1=; unset $1;}
14364}
14365as_unset=as_fn_unset
14366# as_fn_append VAR VALUE
14367# ----------------------
14368# Append the text in VALUE to the end of the definition contained in VAR. Take
14369# advantage of any shell optimizations that allow amortized linear growth over
14370# repeated appends, instead of the typical quadratic growth present in naive
14371# implementations.
14372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14373  eval 'as_fn_append ()
14374  {
14375    eval $1+=\$2
14376  }'
14377else
14378  as_fn_append ()
14379  {
14380    eval $1=\$$1\$2
14381  }
14382fi # as_fn_append
14383
14384# as_fn_arith ARG...
14385# ------------------
14386# Perform arithmetic evaluation on the ARGs, and store the result in the
14387# global $as_val. Take advantage of shells that can avoid forks. The arguments
14388# must be portable across $(()) and expr.
14389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14390  eval 'as_fn_arith ()
14391  {
14392    as_val=$(( $* ))
14393  }'
14394else
14395  as_fn_arith ()
14396  {
14397    as_val=`expr "$@" || test $? -eq 1`
14398  }
14399fi # as_fn_arith
14400
14401
14402if expr a : '\(a\)' >/dev/null 2>&1 &&
14403   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14404  as_expr=expr
14405else
14406  as_expr=false
14407fi
14408
14409if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14410  as_basename=basename
14411else
14412  as_basename=false
14413fi
14414
14415if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14416  as_dirname=dirname
14417else
14418  as_dirname=false
14419fi
14420
14421as_me=`$as_basename -- "$0" ||
14422$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14423	 X"$0" : 'X\(//\)$' \| \
14424	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14425$as_echo X/"$0" |
14426    sed '/^.*\/\([^/][^/]*\)\/*$/{
14427	    s//\1/
14428	    q
14429	  }
14430	  /^X\/\(\/\/\)$/{
14431	    s//\1/
14432	    q
14433	  }
14434	  /^X\/\(\/\).*/{
14435	    s//\1/
14436	    q
14437	  }
14438	  s/.*/./; q'`
14439
14440# Avoid depending upon Character Ranges.
14441as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14442as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14443as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14444as_cr_digits='0123456789'
14445as_cr_alnum=$as_cr_Letters$as_cr_digits
14446
14447ECHO_C= ECHO_N= ECHO_T=
14448case `echo -n x` in #(((((
14449-n*)
14450  case `echo 'xy\c'` in
14451  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14452  xy)  ECHO_C='\c';;
14453  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14454       ECHO_T='	';;
14455  esac;;
14456*)
14457  ECHO_N='-n';;
14458esac
14459
14460rm -f conf$$ conf$$.exe conf$$.file
14461if test -d conf$$.dir; then
14462  rm -f conf$$.dir/conf$$.file
14463else
14464  rm -f conf$$.dir
14465  mkdir conf$$.dir 2>/dev/null
14466fi
14467if (echo >conf$$.file) 2>/dev/null; then
14468  if ln -s conf$$.file conf$$ 2>/dev/null; then
14469    as_ln_s='ln -s'
14470    # ... but there are two gotchas:
14471    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14472    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14473    # In both cases, we have to default to `cp -pR'.
14474    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14475      as_ln_s='cp -pR'
14476  elif ln conf$$.file conf$$ 2>/dev/null; then
14477    as_ln_s=ln
14478  else
14479    as_ln_s='cp -pR'
14480  fi
14481else
14482  as_ln_s='cp -pR'
14483fi
14484rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14485rmdir conf$$.dir 2>/dev/null
14486
14487
14488# as_fn_mkdir_p
14489# -------------
14490# Create "$as_dir" as a directory, including parents if necessary.
14491as_fn_mkdir_p ()
14492{
14493
14494  case $as_dir in #(
14495  -*) as_dir=./$as_dir;;
14496  esac
14497  test -d "$as_dir" || eval $as_mkdir_p || {
14498    as_dirs=
14499    while :; do
14500      case $as_dir in #(
14501      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14502      *) as_qdir=$as_dir;;
14503      esac
14504      as_dirs="'$as_qdir' $as_dirs"
14505      as_dir=`$as_dirname -- "$as_dir" ||
14506$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14507	 X"$as_dir" : 'X\(//\)[^/]' \| \
14508	 X"$as_dir" : 'X\(//\)$' \| \
14509	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14510$as_echo X"$as_dir" |
14511    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14512	    s//\1/
14513	    q
14514	  }
14515	  /^X\(\/\/\)[^/].*/{
14516	    s//\1/
14517	    q
14518	  }
14519	  /^X\(\/\/\)$/{
14520	    s//\1/
14521	    q
14522	  }
14523	  /^X\(\/\).*/{
14524	    s//\1/
14525	    q
14526	  }
14527	  s/.*/./; q'`
14528      test -d "$as_dir" && break
14529    done
14530    test -z "$as_dirs" || eval "mkdir $as_dirs"
14531  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14532
14533
14534} # as_fn_mkdir_p
14535if mkdir -p . 2>/dev/null; then
14536  as_mkdir_p='mkdir -p "$as_dir"'
14537else
14538  test -d ./-p && rmdir ./-p
14539  as_mkdir_p=false
14540fi
14541
14542
14543# as_fn_executable_p FILE
14544# -----------------------
14545# Test if FILE is an executable regular file.
14546as_fn_executable_p ()
14547{
14548  test -f "$1" && test -x "$1"
14549} # as_fn_executable_p
14550as_test_x='test -x'
14551as_executable_p=as_fn_executable_p
14552
14553# Sed expression to map a string onto a valid CPP name.
14554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14555
14556# Sed expression to map a string onto a valid variable name.
14557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14558
14559
14560exec 6>&1
14561## ----------------------------------- ##
14562## Main body of $CONFIG_STATUS script. ##
14563## ----------------------------------- ##
14564_ASEOF
14565test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14566
14567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14568# Save the log message, to keep $0 and so on meaningful, and to
14569# report actual input values of CONFIG_FILES etc. instead of their
14570# values after options handling.
14571ac_log="
14572This file was extended by sqlite $as_me 3.35.5, which was
14573generated by GNU Autoconf 2.69.  Invocation command line was
14574
14575  CONFIG_FILES    = $CONFIG_FILES
14576  CONFIG_HEADERS  = $CONFIG_HEADERS
14577  CONFIG_LINKS    = $CONFIG_LINKS
14578  CONFIG_COMMANDS = $CONFIG_COMMANDS
14579  $ $0 $@
14580
14581on `(hostname || uname -n) 2>/dev/null | sed 1q`
14582"
14583
14584_ACEOF
14585
14586case $ac_config_files in *"
14587"*) set x $ac_config_files; shift; ac_config_files=$*;;
14588esac
14589
14590
14591
14592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14593# Files that config.status was made for.
14594config_files="$ac_config_files"
14595config_commands="$ac_config_commands"
14596
14597_ACEOF
14598
14599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14600ac_cs_usage="\
14601\`$as_me' instantiates files and other configuration actions
14602from templates according to the current configuration.  Unless the files
14603and actions are specified as TAGs, all are instantiated by default.
14604
14605Usage: $0 [OPTION]... [TAG]...
14606
14607  -h, --help       print this help, then exit
14608  -V, --version    print version number and configuration settings, then exit
14609      --config     print configuration, then exit
14610  -q, --quiet, --silent
14611                   do not print progress messages
14612  -d, --debug      don't remove temporary files
14613      --recheck    update $as_me by reconfiguring in the same conditions
14614      --file=FILE[:TEMPLATE]
14615                   instantiate the configuration file FILE
14616
14617Configuration files:
14618$config_files
14619
14620Configuration commands:
14621$config_commands
14622
14623Report bugs to <http://www.sqlite.org>."
14624
14625_ACEOF
14626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14627ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14628ac_cs_version="\\
14629sqlite config.status 3.35.5
14630configured by $0, generated by GNU Autoconf 2.69,
14631  with options \\"\$ac_cs_config\\"
14632
14633Copyright (C) 2012 Free Software Foundation, Inc.
14634This config.status script is free software; the Free Software Foundation
14635gives unlimited permission to copy, distribute and modify it."
14636
14637ac_pwd='$ac_pwd'
14638srcdir='$srcdir'
14639INSTALL='$INSTALL'
14640MKDIR_P='$MKDIR_P'
14641AWK='$AWK'
14642test -n "\$AWK" || AWK=awk
14643_ACEOF
14644
14645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14646# The default lists apply if the user does not specify any file.
14647ac_need_defaults=:
14648while test $# != 0
14649do
14650  case $1 in
14651  --*=?*)
14652    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14653    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14654    ac_shift=:
14655    ;;
14656  --*=)
14657    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14658    ac_optarg=
14659    ac_shift=:
14660    ;;
14661  *)
14662    ac_option=$1
14663    ac_optarg=$2
14664    ac_shift=shift
14665    ;;
14666  esac
14667
14668  case $ac_option in
14669  # Handling of the options.
14670  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14671    ac_cs_recheck=: ;;
14672  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14673    $as_echo "$ac_cs_version"; exit ;;
14674  --config | --confi | --conf | --con | --co | --c )
14675    $as_echo "$ac_cs_config"; exit ;;
14676  --debug | --debu | --deb | --de | --d | -d )
14677    debug=: ;;
14678  --file | --fil | --fi | --f )
14679    $ac_shift
14680    case $ac_optarg in
14681    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14682    '') as_fn_error $? "missing file argument" ;;
14683    esac
14684    as_fn_append CONFIG_FILES " '$ac_optarg'"
14685    ac_need_defaults=false;;
14686  --he | --h |  --help | --hel | -h )
14687    $as_echo "$ac_cs_usage"; exit ;;
14688  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14689  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14690    ac_cs_silent=: ;;
14691
14692  # This is an error.
14693  -*) as_fn_error $? "unrecognized option: \`$1'
14694Try \`$0 --help' for more information." ;;
14695
14696  *) as_fn_append ac_config_targets " $1"
14697     ac_need_defaults=false ;;
14698
14699  esac
14700  shift
14701done
14702
14703ac_configure_extra_args=
14704
14705if $ac_cs_silent; then
14706  exec 6>/dev/null
14707  ac_configure_extra_args="$ac_configure_extra_args --silent"
14708fi
14709
14710_ACEOF
14711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14712if \$ac_cs_recheck; then
14713  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14714  shift
14715  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14716  CONFIG_SHELL='$SHELL'
14717  export CONFIG_SHELL
14718  exec "\$@"
14719fi
14720
14721_ACEOF
14722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14723exec 5>>config.log
14724{
14725  echo
14726  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14727## Running $as_me. ##
14728_ASBOX
14729  $as_echo "$ac_log"
14730} >&5
14731
14732_ACEOF
14733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14734#
14735# INIT-COMMANDS
14736#
14737AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14738
14739
14740# The HP-UX ksh and POSIX shell print the target directory to stdout
14741# if CDPATH is set.
14742(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14743
14744sed_quote_subst='$sed_quote_subst'
14745double_quote_subst='$double_quote_subst'
14746delay_variable_subst='$delay_variable_subst'
14747macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14748macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14749enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14750enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14751pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14752enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14753shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14754SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14755ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14756PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14757host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14758host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14759host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14760build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14761build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14762build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14763SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14764Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14765GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14766EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14767FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14768LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14769NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14770LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14771max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14772ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14773exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14774lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14775lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14776lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14777lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14778lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14779reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14780reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14781OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14782deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14783file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14784file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14785want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14786DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14787sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14788AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14789AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14790archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14791STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14792RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14793old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14794old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14795old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14796lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14797CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14798CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14799compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14800GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14801lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14802lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14803lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14804lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14805lt_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"`'
14806lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14807nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14808lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14809lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14810objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14811MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14812lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14813lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14814lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14815lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14816lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14817need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14818MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14819DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14820NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14821LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14822OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14823OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14824libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14825shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14826extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14827archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14828enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14829export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14830whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14831compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14832old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14833old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14834archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14835archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14836module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14837module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14838with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14839allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14840no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14841hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14842hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14843hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14844hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14845hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14846hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14847hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14848inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14849link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14850always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14851export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14852exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14853include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14854prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14855postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14856file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14857variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14858need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14859need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14860version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14861runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14862shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14863shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14864libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14865library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14866soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14867install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14868postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14869postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14870finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14871finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14872hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14873sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14874configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14875configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14876hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14877enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14878enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14879enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14880old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14881striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14882
14883LTCC='$LTCC'
14884LTCFLAGS='$LTCFLAGS'
14885compiler='$compiler_DEFAULT'
14886
14887# A function that is used when there is no print builtin or printf.
14888func_fallback_echo ()
14889{
14890  eval 'cat <<_LTECHO_EOF
14891\$1
14892_LTECHO_EOF'
14893}
14894
14895# Quote evaled strings.
14896for var in SHELL \
14897ECHO \
14898PATH_SEPARATOR \
14899SED \
14900GREP \
14901EGREP \
14902FGREP \
14903LD \
14904NM \
14905LN_S \
14906lt_SP2NL \
14907lt_NL2SP \
14908reload_flag \
14909OBJDUMP \
14910deplibs_check_method \
14911file_magic_cmd \
14912file_magic_glob \
14913want_nocaseglob \
14914DLLTOOL \
14915sharedlib_from_linklib_cmd \
14916AR \
14917AR_FLAGS \
14918archiver_list_spec \
14919STRIP \
14920RANLIB \
14921CC \
14922CFLAGS \
14923compiler \
14924lt_cv_sys_global_symbol_pipe \
14925lt_cv_sys_global_symbol_to_cdecl \
14926lt_cv_sys_global_symbol_to_import \
14927lt_cv_sys_global_symbol_to_c_name_address \
14928lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14929lt_cv_nm_interface \
14930nm_file_list_spec \
14931lt_cv_truncate_bin \
14932lt_prog_compiler_no_builtin_flag \
14933lt_prog_compiler_pic \
14934lt_prog_compiler_wl \
14935lt_prog_compiler_static \
14936lt_cv_prog_compiler_c_o \
14937need_locks \
14938MANIFEST_TOOL \
14939DSYMUTIL \
14940NMEDIT \
14941LIPO \
14942OTOOL \
14943OTOOL64 \
14944shrext_cmds \
14945export_dynamic_flag_spec \
14946whole_archive_flag_spec \
14947compiler_needs_object \
14948with_gnu_ld \
14949allow_undefined_flag \
14950no_undefined_flag \
14951hardcode_libdir_flag_spec \
14952hardcode_libdir_separator \
14953exclude_expsyms \
14954include_expsyms \
14955file_list_spec \
14956variables_saved_for_relink \
14957libname_spec \
14958library_names_spec \
14959soname_spec \
14960install_override_mode \
14961finish_eval \
14962old_striplib \
14963striplib; do
14964    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14965    *[\\\\\\\`\\"\\\$]*)
14966      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14967      ;;
14968    *)
14969      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14970      ;;
14971    esac
14972done
14973
14974# Double-quote double-evaled strings.
14975for var in reload_cmds \
14976old_postinstall_cmds \
14977old_postuninstall_cmds \
14978old_archive_cmds \
14979extract_expsyms_cmds \
14980old_archive_from_new_cmds \
14981old_archive_from_expsyms_cmds \
14982archive_cmds \
14983archive_expsym_cmds \
14984module_cmds \
14985module_expsym_cmds \
14986export_symbols_cmds \
14987prelink_cmds \
14988postlink_cmds \
14989postinstall_cmds \
14990postuninstall_cmds \
14991finish_cmds \
14992sys_lib_search_path_spec \
14993configure_time_dlsearch_path \
14994configure_time_lt_sys_library_path; do
14995    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14996    *[\\\\\\\`\\"\\\$]*)
14997      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14998      ;;
14999    *)
15000      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15001      ;;
15002    esac
15003done
15004
15005ac_aux_dir='$ac_aux_dir'
15006
15007# See if we are running on zsh, and set the options that allow our
15008# commands through without removal of \ escapes INIT.
15009if test -n "\${ZSH_VERSION+set}"; then
15010   setopt NO_GLOB_SUBST
15011fi
15012
15013
15014    PACKAGE='$PACKAGE'
15015    VERSION='$VERSION'
15016    RM='$RM'
15017    ofile='$ofile'
15018
15019
15020
15021
15022_ACEOF
15023
15024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15025
15026# Handling of arguments.
15027for ac_config_target in $ac_config_targets
15028do
15029  case $ac_config_target in
15030    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15031    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15032    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15033    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
15034
15035  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15036  esac
15037done
15038
15039
15040# If the user did not use the arguments to specify the items to instantiate,
15041# then the envvar interface is used.  Set only those that are not.
15042# We use the long form for the default assignment because of an extremely
15043# bizarre bug on SunOS 4.1.3.
15044if $ac_need_defaults; then
15045  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15046  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15047fi
15048
15049# Have a temporary directory for convenience.  Make it in the build tree
15050# simply because there is no reason against having it here, and in addition,
15051# creating and moving files from /tmp can sometimes cause problems.
15052# Hook for its removal unless debugging.
15053# Note that there is a small window in which the directory will not be cleaned:
15054# after its creation but before its name has been assigned to `$tmp'.
15055$debug ||
15056{
15057  tmp= ac_tmp=
15058  trap 'exit_status=$?
15059  : "${ac_tmp:=$tmp}"
15060  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15061' 0
15062  trap 'as_fn_exit 1' 1 2 13 15
15063}
15064# Create a (secure) tmp directory for tmp files.
15065
15066{
15067  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15068  test -d "$tmp"
15069}  ||
15070{
15071  tmp=./conf$$-$RANDOM
15072  (umask 077 && mkdir "$tmp")
15073} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15074ac_tmp=$tmp
15075
15076# Set up the scripts for CONFIG_FILES section.
15077# No need to generate them if there are no CONFIG_FILES.
15078# This happens for instance with `./config.status config.h'.
15079if test -n "$CONFIG_FILES"; then
15080
15081
15082ac_cr=`echo X | tr X '\015'`
15083# On cygwin, bash can eat \r inside `` if the user requested igncr.
15084# But we know of no other shell where ac_cr would be empty at this
15085# point, so we can use a bashism as a fallback.
15086if test "x$ac_cr" = x; then
15087  eval ac_cr=\$\'\\r\'
15088fi
15089ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15090if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15091  ac_cs_awk_cr='\\r'
15092else
15093  ac_cs_awk_cr=$ac_cr
15094fi
15095
15096echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15097_ACEOF
15098
15099
15100{
15101  echo "cat >conf$$subs.awk <<_ACEOF" &&
15102  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15103  echo "_ACEOF"
15104} >conf$$subs.sh ||
15105  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15106ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15107ac_delim='%!_!# '
15108for ac_last_try in false false false false false :; do
15109  . ./conf$$subs.sh ||
15110    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15111
15112  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15113  if test $ac_delim_n = $ac_delim_num; then
15114    break
15115  elif $ac_last_try; then
15116    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15117  else
15118    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15119  fi
15120done
15121rm -f conf$$subs.sh
15122
15123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15124cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15125_ACEOF
15126sed -n '
15127h
15128s/^/S["/; s/!.*/"]=/
15129p
15130g
15131s/^[^!]*!//
15132:repl
15133t repl
15134s/'"$ac_delim"'$//
15135t delim
15136:nl
15137h
15138s/\(.\{148\}\)..*/\1/
15139t more1
15140s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15141p
15142n
15143b repl
15144:more1
15145s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15146p
15147g
15148s/.\{148\}//
15149t nl
15150:delim
15151h
15152s/\(.\{148\}\)..*/\1/
15153t more2
15154s/["\\]/\\&/g; s/^/"/; s/$/"/
15155p
15156b
15157:more2
15158s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15159p
15160g
15161s/.\{148\}//
15162t delim
15163' <conf$$subs.awk | sed '
15164/^[^""]/{
15165  N
15166  s/\n//
15167}
15168' >>$CONFIG_STATUS || ac_write_fail=1
15169rm -f conf$$subs.awk
15170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171_ACAWK
15172cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15173  for (key in S) S_is_set[key] = 1
15174  FS = ""
15175
15176}
15177{
15178  line = $ 0
15179  nfields = split(line, field, "@")
15180  substed = 0
15181  len = length(field[1])
15182  for (i = 2; i < nfields; i++) {
15183    key = field[i]
15184    keylen = length(key)
15185    if (S_is_set[key]) {
15186      value = S[key]
15187      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15188      len += length(value) + length(field[++i])
15189      substed = 1
15190    } else
15191      len += 1 + keylen
15192  }
15193
15194  print line
15195}
15196
15197_ACAWK
15198_ACEOF
15199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15200if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15201  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15202else
15203  cat
15204fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15205  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15206_ACEOF
15207
15208# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15209# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15210# trailing colons and then remove the whole line if VPATH becomes empty
15211# (actually we leave an empty line to preserve line numbers).
15212if test "x$srcdir" = x.; then
15213  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15214h
15215s///
15216s/^/:/
15217s/[	 ]*$/:/
15218s/:\$(srcdir):/:/g
15219s/:\${srcdir}:/:/g
15220s/:@srcdir@:/:/g
15221s/^:*//
15222s/:*$//
15223x
15224s/\(=[	 ]*\).*/\1/
15225G
15226s/\n//
15227s/^[^=]*=[	 ]*$//
15228}'
15229fi
15230
15231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15232fi # test -n "$CONFIG_FILES"
15233
15234
15235eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
15236shift
15237for ac_tag
15238do
15239  case $ac_tag in
15240  :[FHLC]) ac_mode=$ac_tag; continue;;
15241  esac
15242  case $ac_mode$ac_tag in
15243  :[FHL]*:*);;
15244  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15245  :[FH]-) ac_tag=-:-;;
15246  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15247  esac
15248  ac_save_IFS=$IFS
15249  IFS=:
15250  set x $ac_tag
15251  IFS=$ac_save_IFS
15252  shift
15253  ac_file=$1
15254  shift
15255
15256  case $ac_mode in
15257  :L) ac_source=$1;;
15258  :[FH])
15259    ac_file_inputs=
15260    for ac_f
15261    do
15262      case $ac_f in
15263      -) ac_f="$ac_tmp/stdin";;
15264      *) # Look for the file first in the build tree, then in the source tree
15265	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15266	 # because $ac_f cannot contain `:'.
15267	 test -f "$ac_f" ||
15268	   case $ac_f in
15269	   [\\/$]*) false;;
15270	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15271	   esac ||
15272	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15273      esac
15274      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15275      as_fn_append ac_file_inputs " '$ac_f'"
15276    done
15277
15278    # Let's still pretend it is `configure' which instantiates (i.e., don't
15279    # use $as_me), people would be surprised to read:
15280    #    /* config.h.  Generated by config.status.  */
15281    configure_input='Generated from '`
15282	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15283	`' by configure.'
15284    if test x"$ac_file" != x-; then
15285      configure_input="$ac_file.  $configure_input"
15286      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15287$as_echo "$as_me: creating $ac_file" >&6;}
15288    fi
15289    # Neutralize special characters interpreted by sed in replacement strings.
15290    case $configure_input in #(
15291    *\&* | *\|* | *\\* )
15292       ac_sed_conf_input=`$as_echo "$configure_input" |
15293       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15294    *) ac_sed_conf_input=$configure_input;;
15295    esac
15296
15297    case $ac_tag in
15298    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15299      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15300    esac
15301    ;;
15302  esac
15303
15304  ac_dir=`$as_dirname -- "$ac_file" ||
15305$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15306	 X"$ac_file" : 'X\(//\)[^/]' \| \
15307	 X"$ac_file" : 'X\(//\)$' \| \
15308	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15309$as_echo X"$ac_file" |
15310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15311	    s//\1/
15312	    q
15313	  }
15314	  /^X\(\/\/\)[^/].*/{
15315	    s//\1/
15316	    q
15317	  }
15318	  /^X\(\/\/\)$/{
15319	    s//\1/
15320	    q
15321	  }
15322	  /^X\(\/\).*/{
15323	    s//\1/
15324	    q
15325	  }
15326	  s/.*/./; q'`
15327  as_dir="$ac_dir"; as_fn_mkdir_p
15328  ac_builddir=.
15329
15330case "$ac_dir" in
15331.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15332*)
15333  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15334  # A ".." for each directory in $ac_dir_suffix.
15335  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15336  case $ac_top_builddir_sub in
15337  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15338  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15339  esac ;;
15340esac
15341ac_abs_top_builddir=$ac_pwd
15342ac_abs_builddir=$ac_pwd$ac_dir_suffix
15343# for backward compatibility:
15344ac_top_builddir=$ac_top_build_prefix
15345
15346case $srcdir in
15347  .)  # We are building in place.
15348    ac_srcdir=.
15349    ac_top_srcdir=$ac_top_builddir_sub
15350    ac_abs_top_srcdir=$ac_pwd ;;
15351  [\\/]* | ?:[\\/]* )  # Absolute name.
15352    ac_srcdir=$srcdir$ac_dir_suffix;
15353    ac_top_srcdir=$srcdir
15354    ac_abs_top_srcdir=$srcdir ;;
15355  *) # Relative name.
15356    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15357    ac_top_srcdir=$ac_top_build_prefix$srcdir
15358    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15359esac
15360ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15361
15362
15363  case $ac_mode in
15364  :F)
15365  #
15366  # CONFIG_FILE
15367  #
15368
15369  case $INSTALL in
15370  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15371  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15372  esac
15373  ac_MKDIR_P=$MKDIR_P
15374  case $MKDIR_P in
15375  [\\/$]* | ?:[\\/]* ) ;;
15376  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15377  esac
15378_ACEOF
15379
15380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381# If the template does not know about datarootdir, expand it.
15382# FIXME: This hack should be removed a few years after 2.60.
15383ac_datarootdir_hack=; ac_datarootdir_seen=
15384ac_sed_dataroot='
15385/datarootdir/ {
15386  p
15387  q
15388}
15389/@datadir@/p
15390/@docdir@/p
15391/@infodir@/p
15392/@localedir@/p
15393/@mandir@/p'
15394case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15395*datarootdir*) ac_datarootdir_seen=yes;;
15396*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15397  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15398$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15399_ACEOF
15400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401  ac_datarootdir_hack='
15402  s&@datadir@&$datadir&g
15403  s&@docdir@&$docdir&g
15404  s&@infodir@&$infodir&g
15405  s&@localedir@&$localedir&g
15406  s&@mandir@&$mandir&g
15407  s&\\\${datarootdir}&$datarootdir&g' ;;
15408esac
15409_ACEOF
15410
15411# Neutralize VPATH when `$srcdir' = `.'.
15412# Shell code in configure.ac might set extrasub.
15413# FIXME: do we really want to maintain this feature?
15414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15415ac_sed_extra="$ac_vpsub
15416$extrasub
15417_ACEOF
15418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15419:t
15420/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15421s|@configure_input@|$ac_sed_conf_input|;t t
15422s&@top_builddir@&$ac_top_builddir_sub&;t t
15423s&@top_build_prefix@&$ac_top_build_prefix&;t t
15424s&@srcdir@&$ac_srcdir&;t t
15425s&@abs_srcdir@&$ac_abs_srcdir&;t t
15426s&@top_srcdir@&$ac_top_srcdir&;t t
15427s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15428s&@builddir@&$ac_builddir&;t t
15429s&@abs_builddir@&$ac_abs_builddir&;t t
15430s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15431s&@INSTALL@&$ac_INSTALL&;t t
15432s&@MKDIR_P@&$ac_MKDIR_P&;t t
15433$ac_datarootdir_hack
15434"
15435eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15436  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15437
15438test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15439  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15440  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15441      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15442  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15443which seems to be undefined.  Please make sure it is defined" >&5
15444$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15445which seems to be undefined.  Please make sure it is defined" >&2;}
15446
15447  rm -f "$ac_tmp/stdin"
15448  case $ac_file in
15449  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15450  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15451  esac \
15452  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15453 ;;
15454
15455
15456  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15457$as_echo "$as_me: executing $ac_file commands" >&6;}
15458 ;;
15459  esac
15460
15461
15462  case $ac_file$ac_mode in
15463    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15464  # Older Autoconf quotes --file arguments for eval, but not when files
15465  # are listed without --file.  Let's play safe and only enable the eval
15466  # if we detect the quoting.
15467  case $CONFIG_FILES in
15468  *\'*) eval set x "$CONFIG_FILES" ;;
15469  *)   set x $CONFIG_FILES ;;
15470  esac
15471  shift
15472  for mf
15473  do
15474    # Strip MF so we end up with the name of the file.
15475    mf=`echo "$mf" | sed -e 's/:.*$//'`
15476    # Check whether this is an Automake generated Makefile or not.
15477    # We used to match only the files named 'Makefile.in', but
15478    # some people rename them; so instead we look at the file content.
15479    # Grep'ing the first line is not enough: some people post-process
15480    # each Makefile.in and add a new line on top of each file to say so.
15481    # Grep'ing the whole file is not good either: AIX grep has a line
15482    # limit of 2048, but all sed's we know have understand at least 4000.
15483    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15484      dirpart=`$as_dirname -- "$mf" ||
15485$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15486	 X"$mf" : 'X\(//\)[^/]' \| \
15487	 X"$mf" : 'X\(//\)$' \| \
15488	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15489$as_echo X"$mf" |
15490    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15491	    s//\1/
15492	    q
15493	  }
15494	  /^X\(\/\/\)[^/].*/{
15495	    s//\1/
15496	    q
15497	  }
15498	  /^X\(\/\/\)$/{
15499	    s//\1/
15500	    q
15501	  }
15502	  /^X\(\/\).*/{
15503	    s//\1/
15504	    q
15505	  }
15506	  s/.*/./; q'`
15507    else
15508      continue
15509    fi
15510    # Extract the definition of DEPDIR, am__include, and am__quote
15511    # from the Makefile without running 'make'.
15512    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15513    test -z "$DEPDIR" && continue
15514    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15515    test -z "$am__include" && continue
15516    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15517    # Find all dependency output files, they are included files with
15518    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15519    # simplest approach to changing $(DEPDIR) to its actual value in the
15520    # expansion.
15521    for file in `sed -n "
15522      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15523	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15524      # Make sure the directory exists.
15525      test -f "$dirpart/$file" && continue
15526      fdir=`$as_dirname -- "$file" ||
15527$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15528	 X"$file" : 'X\(//\)[^/]' \| \
15529	 X"$file" : 'X\(//\)$' \| \
15530	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15531$as_echo X"$file" |
15532    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15533	    s//\1/
15534	    q
15535	  }
15536	  /^X\(\/\/\)[^/].*/{
15537	    s//\1/
15538	    q
15539	  }
15540	  /^X\(\/\/\)$/{
15541	    s//\1/
15542	    q
15543	  }
15544	  /^X\(\/\).*/{
15545	    s//\1/
15546	    q
15547	  }
15548	  s/.*/./; q'`
15549      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15550      # echo "creating $dirpart/$file"
15551      echo '# dummy' > "$dirpart/$file"
15552    done
15553  done
15554}
15555 ;;
15556    "libtool":C)
15557
15558    # See if we are running on zsh, and set the options that allow our
15559    # commands through without removal of \ escapes.
15560    if test -n "${ZSH_VERSION+set}"; then
15561      setopt NO_GLOB_SUBST
15562    fi
15563
15564    cfgfile=${ofile}T
15565    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15566    $RM "$cfgfile"
15567
15568    cat <<_LT_EOF >> "$cfgfile"
15569#! $SHELL
15570# Generated automatically by $as_me ($PACKAGE) $VERSION
15571# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15572
15573# Provide generalized library-building support services.
15574# Written by Gordon Matzigkeit, 1996
15575
15576# Copyright (C) 2014 Free Software Foundation, Inc.
15577# This is free software; see the source for copying conditions.  There is NO
15578# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15579
15580# GNU Libtool is free software; you can redistribute it and/or modify
15581# it under the terms of the GNU General Public License as published by
15582# the Free Software Foundation; either version 2 of of the License, or
15583# (at your option) any later version.
15584#
15585# As a special exception to the GNU General Public License, if you
15586# distribute this file as part of a program or library that is built
15587# using GNU Libtool, you may include this file under the  same
15588# distribution terms that you use for the rest of that program.
15589#
15590# GNU Libtool is distributed in the hope that it will be useful, but
15591# WITHOUT ANY WARRANTY; without even the implied warranty of
15592# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15593# GNU General Public License for more details.
15594#
15595# You should have received a copy of the GNU General Public License
15596# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15597
15598
15599# The names of the tagged configurations supported by this script.
15600available_tags=''
15601
15602# Configured defaults for sys_lib_dlsearch_path munging.
15603: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15604
15605# ### BEGIN LIBTOOL CONFIG
15606
15607# Which release of libtool.m4 was used?
15608macro_version=$macro_version
15609macro_revision=$macro_revision
15610
15611# Whether or not to build shared libraries.
15612build_libtool_libs=$enable_shared
15613
15614# Whether or not to build static libraries.
15615build_old_libs=$enable_static
15616
15617# What type of objects to build.
15618pic_mode=$pic_mode
15619
15620# Whether or not to optimize for fast installation.
15621fast_install=$enable_fast_install
15622
15623# Shared archive member basename,for filename based shared library versioning on AIX.
15624shared_archive_member_spec=$shared_archive_member_spec
15625
15626# Shell to use when invoking shell scripts.
15627SHELL=$lt_SHELL
15628
15629# An echo program that protects backslashes.
15630ECHO=$lt_ECHO
15631
15632# The PATH separator for the build system.
15633PATH_SEPARATOR=$lt_PATH_SEPARATOR
15634
15635# The host system.
15636host_alias=$host_alias
15637host=$host
15638host_os=$host_os
15639
15640# The build system.
15641build_alias=$build_alias
15642build=$build
15643build_os=$build_os
15644
15645# A sed program that does not truncate output.
15646SED=$lt_SED
15647
15648# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15649Xsed="\$SED -e 1s/^X//"
15650
15651# A grep program that handles long lines.
15652GREP=$lt_GREP
15653
15654# An ERE matcher.
15655EGREP=$lt_EGREP
15656
15657# A literal string matcher.
15658FGREP=$lt_FGREP
15659
15660# A BSD- or MS-compatible name lister.
15661NM=$lt_NM
15662
15663# Whether we need soft or hard links.
15664LN_S=$lt_LN_S
15665
15666# What is the maximum length of a command?
15667max_cmd_len=$max_cmd_len
15668
15669# Object file suffix (normally "o").
15670objext=$ac_objext
15671
15672# Executable file suffix (normally "").
15673exeext=$exeext
15674
15675# whether the shell understands "unset".
15676lt_unset=$lt_unset
15677
15678# turn spaces into newlines.
15679SP2NL=$lt_lt_SP2NL
15680
15681# turn newlines into spaces.
15682NL2SP=$lt_lt_NL2SP
15683
15684# convert \$build file names to \$host format.
15685to_host_file_cmd=$lt_cv_to_host_file_cmd
15686
15687# convert \$build files to toolchain format.
15688to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15689
15690# An object symbol dumper.
15691OBJDUMP=$lt_OBJDUMP
15692
15693# Method to check whether dependent libraries are shared objects.
15694deplibs_check_method=$lt_deplibs_check_method
15695
15696# Command to use when deplibs_check_method = "file_magic".
15697file_magic_cmd=$lt_file_magic_cmd
15698
15699# How to find potential files when deplibs_check_method = "file_magic".
15700file_magic_glob=$lt_file_magic_glob
15701
15702# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15703want_nocaseglob=$lt_want_nocaseglob
15704
15705# DLL creation program.
15706DLLTOOL=$lt_DLLTOOL
15707
15708# Command to associate shared and link libraries.
15709sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15710
15711# The archiver.
15712AR=$lt_AR
15713
15714# Flags to create an archive.
15715AR_FLAGS=$lt_AR_FLAGS
15716
15717# How to feed a file listing to the archiver.
15718archiver_list_spec=$lt_archiver_list_spec
15719
15720# A symbol stripping program.
15721STRIP=$lt_STRIP
15722
15723# Commands used to install an old-style archive.
15724RANLIB=$lt_RANLIB
15725old_postinstall_cmds=$lt_old_postinstall_cmds
15726old_postuninstall_cmds=$lt_old_postuninstall_cmds
15727
15728# Whether to use a lock for old archive extraction.
15729lock_old_archive_extraction=$lock_old_archive_extraction
15730
15731# A C compiler.
15732LTCC=$lt_CC
15733
15734# LTCC compiler flags.
15735LTCFLAGS=$lt_CFLAGS
15736
15737# Take the output of nm and produce a listing of raw symbols and C names.
15738global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15739
15740# Transform the output of nm in a proper C declaration.
15741global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15742
15743# Transform the output of nm into a list of symbols to manually relocate.
15744global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15745
15746# Transform the output of nm in a C name address pair.
15747global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15748
15749# Transform the output of nm in a C name address pair when lib prefix is needed.
15750global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15751
15752# The name lister interface.
15753nm_interface=$lt_lt_cv_nm_interface
15754
15755# Specify filename containing input files for \$NM.
15756nm_file_list_spec=$lt_nm_file_list_spec
15757
15758# The root where to search for dependent libraries,and where our libraries should be installed.
15759lt_sysroot=$lt_sysroot
15760
15761# Command to truncate a binary pipe.
15762lt_truncate_bin=$lt_lt_cv_truncate_bin
15763
15764# The name of the directory that contains temporary libtool files.
15765objdir=$objdir
15766
15767# Used to examine libraries when file_magic_cmd begins with "file".
15768MAGIC_CMD=$MAGIC_CMD
15769
15770# Must we lock files when doing compilation?
15771need_locks=$lt_need_locks
15772
15773# Manifest tool.
15774MANIFEST_TOOL=$lt_MANIFEST_TOOL
15775
15776# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15777DSYMUTIL=$lt_DSYMUTIL
15778
15779# Tool to change global to local symbols on Mac OS X.
15780NMEDIT=$lt_NMEDIT
15781
15782# Tool to manipulate fat objects and archives on Mac OS X.
15783LIPO=$lt_LIPO
15784
15785# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15786OTOOL=$lt_OTOOL
15787
15788# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15789OTOOL64=$lt_OTOOL64
15790
15791# Old archive suffix (normally "a").
15792libext=$libext
15793
15794# Shared library suffix (normally ".so").
15795shrext_cmds=$lt_shrext_cmds
15796
15797# The commands to extract the exported symbol list from a shared archive.
15798extract_expsyms_cmds=$lt_extract_expsyms_cmds
15799
15800# Variables whose values should be saved in libtool wrapper scripts and
15801# restored at link time.
15802variables_saved_for_relink=$lt_variables_saved_for_relink
15803
15804# Do we need the "lib" prefix for modules?
15805need_lib_prefix=$need_lib_prefix
15806
15807# Do we need a version for libraries?
15808need_version=$need_version
15809
15810# Library versioning type.
15811version_type=$version_type
15812
15813# Shared library runtime path variable.
15814runpath_var=$runpath_var
15815
15816# Shared library path variable.
15817shlibpath_var=$shlibpath_var
15818
15819# Is shlibpath searched before the hard-coded library search path?
15820shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15821
15822# Format of library name prefix.
15823libname_spec=$lt_libname_spec
15824
15825# List of archive names.  First name is the real one, the rest are links.
15826# The last name is the one that the linker finds with -lNAME
15827library_names_spec=$lt_library_names_spec
15828
15829# The coded name of the library, if different from the real name.
15830soname_spec=$lt_soname_spec
15831
15832# Permission mode override for installation of shared libraries.
15833install_override_mode=$lt_install_override_mode
15834
15835# Command to use after installation of a shared archive.
15836postinstall_cmds=$lt_postinstall_cmds
15837
15838# Command to use after uninstallation of a shared archive.
15839postuninstall_cmds=$lt_postuninstall_cmds
15840
15841# Commands used to finish a libtool library installation in a directory.
15842finish_cmds=$lt_finish_cmds
15843
15844# As "finish_cmds", except a single script fragment to be evaled but
15845# not shown.
15846finish_eval=$lt_finish_eval
15847
15848# Whether we should hardcode library paths into libraries.
15849hardcode_into_libs=$hardcode_into_libs
15850
15851# Compile-time system search path for libraries.
15852sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15853
15854# Detected run-time system search path for libraries.
15855sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15856
15857# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15858configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15859
15860# Whether dlopen is supported.
15861dlopen_support=$enable_dlopen
15862
15863# Whether dlopen of programs is supported.
15864dlopen_self=$enable_dlopen_self
15865
15866# Whether dlopen of statically linked programs is supported.
15867dlopen_self_static=$enable_dlopen_self_static
15868
15869# Commands to strip libraries.
15870old_striplib=$lt_old_striplib
15871striplib=$lt_striplib
15872
15873
15874# The linker used to build libraries.
15875LD=$lt_LD
15876
15877# How to create reloadable object files.
15878reload_flag=$lt_reload_flag
15879reload_cmds=$lt_reload_cmds
15880
15881# Commands used to build an old-style archive.
15882old_archive_cmds=$lt_old_archive_cmds
15883
15884# A language specific compiler.
15885CC=$lt_compiler
15886
15887# Is the compiler the GNU compiler?
15888with_gcc=$GCC
15889
15890# Compiler flag to turn off builtin functions.
15891no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15892
15893# Additional compiler flags for building library objects.
15894pic_flag=$lt_lt_prog_compiler_pic
15895
15896# How to pass a linker flag through the compiler.
15897wl=$lt_lt_prog_compiler_wl
15898
15899# Compiler flag to prevent dynamic linking.
15900link_static_flag=$lt_lt_prog_compiler_static
15901
15902# Does compiler simultaneously support -c and -o options?
15903compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15904
15905# Whether or not to add -lc for building shared libraries.
15906build_libtool_need_lc=$archive_cmds_need_lc
15907
15908# Whether or not to disallow shared libs when runtime libs are static.
15909allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15910
15911# Compiler flag to allow reflexive dlopens.
15912export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15913
15914# Compiler flag to generate shared objects directly from archives.
15915whole_archive_flag_spec=$lt_whole_archive_flag_spec
15916
15917# Whether the compiler copes with passing no objects directly.
15918compiler_needs_object=$lt_compiler_needs_object
15919
15920# Create an old-style archive from a shared archive.
15921old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15922
15923# Create a temporary old-style archive to link instead of a shared archive.
15924old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15925
15926# Commands used to build a shared archive.
15927archive_cmds=$lt_archive_cmds
15928archive_expsym_cmds=$lt_archive_expsym_cmds
15929
15930# Commands used to build a loadable module if different from building
15931# a shared archive.
15932module_cmds=$lt_module_cmds
15933module_expsym_cmds=$lt_module_expsym_cmds
15934
15935# Whether we are building with GNU ld or not.
15936with_gnu_ld=$lt_with_gnu_ld
15937
15938# Flag that allows shared libraries with undefined symbols to be built.
15939allow_undefined_flag=$lt_allow_undefined_flag
15940
15941# Flag that enforces no undefined symbols.
15942no_undefined_flag=$lt_no_undefined_flag
15943
15944# Flag to hardcode \$libdir into a binary during linking.
15945# This must work even if \$libdir does not exist
15946hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15947
15948# Whether we need a single "-rpath" flag with a separated argument.
15949hardcode_libdir_separator=$lt_hardcode_libdir_separator
15950
15951# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15952# DIR into the resulting binary.
15953hardcode_direct=$hardcode_direct
15954
15955# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15956# DIR into the resulting binary and the resulting library dependency is
15957# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15958# library is relocated.
15959hardcode_direct_absolute=$hardcode_direct_absolute
15960
15961# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15962# into the resulting binary.
15963hardcode_minus_L=$hardcode_minus_L
15964
15965# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15966# into the resulting binary.
15967hardcode_shlibpath_var=$hardcode_shlibpath_var
15968
15969# Set to "yes" if building a shared library automatically hardcodes DIR
15970# into the library and all subsequent libraries and executables linked
15971# against it.
15972hardcode_automatic=$hardcode_automatic
15973
15974# Set to yes if linker adds runtime paths of dependent libraries
15975# to runtime path list.
15976inherit_rpath=$inherit_rpath
15977
15978# Whether libtool must link a program against all its dependency libraries.
15979link_all_deplibs=$link_all_deplibs
15980
15981# Set to "yes" if exported symbols are required.
15982always_export_symbols=$always_export_symbols
15983
15984# The commands to list exported symbols.
15985export_symbols_cmds=$lt_export_symbols_cmds
15986
15987# Symbols that should not be listed in the preloaded symbols.
15988exclude_expsyms=$lt_exclude_expsyms
15989
15990# Symbols that must always be exported.
15991include_expsyms=$lt_include_expsyms
15992
15993# Commands necessary for linking programs (against libraries) with templates.
15994prelink_cmds=$lt_prelink_cmds
15995
15996# Commands necessary for finishing linking programs.
15997postlink_cmds=$lt_postlink_cmds
15998
15999# Specify filename containing input files.
16000file_list_spec=$lt_file_list_spec
16001
16002# How to hardcode a shared library path into an executable.
16003hardcode_action=$hardcode_action
16004
16005# ### END LIBTOOL CONFIG
16006
16007_LT_EOF
16008
16009    cat <<'_LT_EOF' >> "$cfgfile"
16010
16011# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16012
16013# func_munge_path_list VARIABLE PATH
16014# -----------------------------------
16015# VARIABLE is name of variable containing _space_ separated list of
16016# directories to be munged by the contents of PATH, which is string
16017# having a format:
16018# "DIR[:DIR]:"
16019#       string "DIR[ DIR]" will be prepended to VARIABLE
16020# ":DIR[:DIR]"
16021#       string "DIR[ DIR]" will be appended to VARIABLE
16022# "DIRP[:DIRP]::[DIRA:]DIRA"
16023#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16024#       "DIRA[ DIRA]" will be appended to VARIABLE
16025# "DIR[:DIR]"
16026#       VARIABLE will be replaced by "DIR[ DIR]"
16027func_munge_path_list ()
16028{
16029    case x$2 in
16030    x)
16031        ;;
16032    *:)
16033        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16034        ;;
16035    x:*)
16036        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16037        ;;
16038    *::*)
16039        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16040        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16041        ;;
16042    *)
16043        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16044        ;;
16045    esac
16046}
16047
16048
16049# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16050func_cc_basename ()
16051{
16052    for cc_temp in $*""; do
16053      case $cc_temp in
16054        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16055        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16056        \-*) ;;
16057        *) break;;
16058      esac
16059    done
16060    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16061}
16062
16063
16064# ### END FUNCTIONS SHARED WITH CONFIGURE
16065
16066_LT_EOF
16067
16068  case $host_os in
16069  aix3*)
16070    cat <<\_LT_EOF >> "$cfgfile"
16071# AIX sometimes has problems with the GCC collect2 program.  For some
16072# reason, if we set the COLLECT_NAMES environment variable, the problems
16073# vanish in a puff of smoke.
16074if test set != "${COLLECT_NAMES+set}"; then
16075  COLLECT_NAMES=
16076  export COLLECT_NAMES
16077fi
16078_LT_EOF
16079    ;;
16080  esac
16081
16082
16083ltmain=$ac_aux_dir/ltmain.sh
16084
16085
16086  # We use sed instead of cat because bash on DJGPP gets confused if
16087  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16088  # text mode, it properly converts lines to CR/LF.  This bash problem
16089  # is reportedly fixed, but why not run on old versions too?
16090  sed '$q' "$ltmain" >> "$cfgfile" \
16091     || (rm -f "$cfgfile"; exit 1)
16092
16093   mv -f "$cfgfile" "$ofile" ||
16094    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16095  chmod +x "$ofile"
16096
16097 ;;
16098
16099  esac
16100done # for ac_tag
16101
16102
16103as_fn_exit 0
16104_ACEOF
16105ac_clean_files=$ac_clean_files_save
16106
16107test $ac_write_fail = 0 ||
16108  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16109
16110
16111# configure is writing to config.log, and then calls config.status.
16112# config.status does its own redirection, appending to config.log.
16113# Unfortunately, on DOS this fails, as config.log is still kept open
16114# by configure, so config.status won't be able to write to it; its
16115# output is simply discarded.  So we exec the FD to /dev/null,
16116# effectively closing config.log, so it can be properly (re)opened and
16117# appended to by config.status.  When coming back to configure, we
16118# need to make the FD available again.
16119if test "$no_create" != yes; then
16120  ac_cs_success=:
16121  ac_config_status_args=
16122  test "$silent" = yes &&
16123    ac_config_status_args="$ac_config_status_args --quiet"
16124  exec 5>/dev/null
16125  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16126  exec 5>>config.log
16127  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16128  # would make configure fail if this is the last instruction.
16129  $ac_cs_success || as_fn_exit 1
16130fi
16131if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16132  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16133$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16134fi
16135
16136