xref: /sqlite-3.40.0/configure (revision a4b2f419)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.40.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell [email protected] about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558# Check that we are running under the correct shell.
559SHELL=${CONFIG_SHELL-/bin/sh}
560
561case X$lt_ECHO in
562X*--fallback-echo)
563  # Remove one level of quotation (which was required for Make).
564  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
565  ;;
566esac
567
568ECHO=${lt_ECHO-echo}
569if test "X$1" = X--no-reexec; then
570  # Discard the --no-reexec flag, and continue.
571  shift
572elif test "X$1" = X--fallback-echo; then
573  # Avoid inline document here, it may be left over
574  :
575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576  # Yippee, $ECHO works!
577  :
578else
579  # Restart under the correct shell.
580  exec $SHELL "$0" --no-reexec ${1+"$@"}
581fi
582
583if test "X$1" = X--fallback-echo; then
584  # used as fallback echo
585  shift
586  cat <<_LT_EOF
587$*
588_LT_EOF
589  exit 0
590fi
591
592# The HP-UX ksh and POSIX shell print the target directory to stdout
593# if CDPATH is set.
594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596if test -z "$lt_ECHO"; then
597  if test "X${echo_test_string+set}" != Xset; then
598    # find a string as large as possible, as long as the shell can cope with it
599    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603      then
604        break
605      fi
606    done
607  fi
608
609  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611     test "X$echo_testing_string" = "X$echo_test_string"; then
612    :
613  else
614    # The Solaris, AIX, and Digital Unix default echo programs unquote
615    # backslashes.  This makes it impossible to quote backslashes using
616    #   echo "$something" | sed 's/\\/\\\\/g'
617    #
618    # So, first we look for a working echo in the user's PATH.
619
620    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621    for dir in $PATH /usr/ucb; do
622      IFS="$lt_save_ifs"
623      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626         test "X$echo_testing_string" = "X$echo_test_string"; then
627        ECHO="$dir/echo"
628        break
629      fi
630    done
631    IFS="$lt_save_ifs"
632
633    if test "X$ECHO" = Xecho; then
634      # We didn't find a better echo, so look for alternatives.
635      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637         test "X$echo_testing_string" = "X$echo_test_string"; then
638        # This shell has a builtin print -r that does the trick.
639        ECHO='print -r'
640      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641	   test "X$CONFIG_SHELL" != X/bin/ksh; then
642        # If we have ksh, try running configure again with it.
643        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644        export ORIGINAL_CONFIG_SHELL
645        CONFIG_SHELL=/bin/ksh
646        export CONFIG_SHELL
647        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648      else
649        # Try using printf.
650        ECHO='printf %s\n'
651        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653	   test "X$echo_testing_string" = "X$echo_test_string"; then
654	  # Cool, printf works
655	  :
656        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657	     test "X$echo_testing_string" = 'X\t' &&
658	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659	     test "X$echo_testing_string" = "X$echo_test_string"; then
660	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661	  export CONFIG_SHELL
662	  SHELL="$CONFIG_SHELL"
663	  export SHELL
664	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
665        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666	     test "X$echo_testing_string" = 'X\t' &&
667	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668	     test "X$echo_testing_string" = "X$echo_test_string"; then
669	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
670        else
671	  # maybe with a smaller string...
672	  prev=:
673
674	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676	    then
677	      break
678	    fi
679	    prev="$cmd"
680	  done
681
682	  if test "$prev" != 'sed 50q "$0"'; then
683	    echo_test_string=`eval $prev`
684	    export echo_test_string
685	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686	  else
687	    # Oops.  We lost completely, so just stick with echo.
688	    ECHO=echo
689	  fi
690        fi
691      fi
692    fi
693  fi
694fi
695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
698lt_ECHO=$ECHO
699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701fi
702
703
704
705
706test -n "$DJDIR" || exec 7<&0 </dev/null
707exec 6>&1
708
709# Name of the host.
710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
711# so uname gets run too.
712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714#
715# Initializations.
716#
717ac_default_prefix=/usr/local
718ac_clean_files=
719ac_config_libobj_dir=.
720LIBOBJS=
721cross_compiling=no
722subdirs=
723MFLAGS=
724MAKEFLAGS=
725
726# Identity of this package.
727PACKAGE_NAME='sqlite'
728PACKAGE_TARNAME='sqlite'
729PACKAGE_VERSION='3.40.0'
730PACKAGE_STRING='sqlite 3.40.0'
731PACKAGE_BUGREPORT=''
732PACKAGE_URL=''
733
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748#  include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753#  include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='LTLIBOBJS
771LIBOBJS
772BUILD_CFLAGS
773AMALGAMATION_LINE_MACROS
774USE_GCOV
775OPT_FEATURE_FLAGS
776HAVE_ZLIB
777USE_AMALGAMATION
778TARGET_DEBUG
779TARGET_HAVE_EDITLINE
780TARGET_HAVE_READLINE
781TARGET_READLINE_INC
782TARGET_READLINE_LIBS
783HAVE_TCL
784TCL_SHLIB_SUFFIX
785TCL_STUB_LIB_SPEC
786TCL_STUB_LIB_FLAG
787TCL_STUB_LIB_FILE
788TCL_LIB_SPEC
789TCL_LIB_FLAG
790TCL_LIB_FILE
791TCL_INCLUDE_SPEC
792TCL_SRC_DIR
793TCL_BIN_DIR
794TCL_VERSION
795TARGET_EXEEXT
796SQLITE_OS_WIN
797SQLITE_OS_UNIX
798BUILD_EXEEXT
799TEMP_STORE
800ALLOWRELEASE
801SQLITE_THREADSAFE
802BUILD_CC
803RELEASE
804VERSION
805program_prefix
806TCLLIBDIR
807TCLSH_CMD
808INSTALL_DATA
809INSTALL_SCRIPT
810INSTALL_PROGRAM
811CPP
812OTOOL64
813OTOOL
814LIPO
815NMEDIT
816DSYMUTIL
817lt_ECHO
818RANLIB
819STRIP
820AR
821OBJDUMP
822LN_S
823NM
824ac_ct_DUMPBIN
825DUMPBIN
826LD
827FGREP
828EGREP
829GREP
830SED
831OBJEXT
832EXEEXT
833ac_ct_CC
834CPPFLAGS
835LDFLAGS
836CFLAGS
837CC
838host_os
839host_vendor
840host_cpu
841host
842build_os
843build_vendor
844build_cpu
845build
846LIBTOOL
847target_alias
848host_alias
849build_alias
850LIBS
851ECHO_T
852ECHO_N
853ECHO_C
854DEFS
855mandir
856localedir
857libdir
858psdir
859pdfdir
860dvidir
861htmldir
862infodir
863docdir
864oldincludedir
865includedir
866localstatedir
867sharedstatedir
868sysconfdir
869datadir
870datarootdir
871libexecdir
872sbindir
873bindir
874program_transform_name
875prefix
876exec_prefix
877PACKAGE_URL
878PACKAGE_BUGREPORT
879PACKAGE_STRING
880PACKAGE_VERSION
881PACKAGE_TARNAME
882PACKAGE_NAME
883PATH_SEPARATOR
884SHELL'
885ac_subst_files=''
886ac_user_opts='
887enable_option_checking
888enable_shared
889enable_static
890with_pic
891enable_fast_install
892with_gnu_ld
893enable_libtool_lock
894enable_largefile
895enable_threadsafe
896enable_releasemode
897enable_tempstore
898enable_tcl
899with_tcl
900enable_editline
901enable_readline
902with_readline_lib
903with_readline_inc
904enable_debug
905enable_amalgamation
906enable_load_extension
907enable_math
908enable_json
909enable_all
910enable_memsys5
911enable_memsys3
912enable_fts3
913enable_fts4
914enable_fts5
915enable_update_limit
916enable_geopoly
917enable_rtree
918enable_session
919enable_gcov
920'
921      ac_precious_vars='build_alias
922host_alias
923target_alias
924CC
925CFLAGS
926LDFLAGS
927LIBS
928CPPFLAGS
929CPP
930TCLLIBDIR'
931
932
933# Initialize some variables set by options.
934ac_init_help=
935ac_init_version=false
936ac_unrecognized_opts=
937ac_unrecognized_sep=
938# The variables have the same names as the options, with
939# dashes changed to underlines.
940cache_file=/dev/null
941exec_prefix=NONE
942no_create=
943no_recursion=
944prefix=NONE
945program_prefix=NONE
946program_suffix=NONE
947program_transform_name=s,x,x,
948silent=
949site=
950srcdir=
951verbose=
952x_includes=NONE
953x_libraries=NONE
954
955# Installation directory options.
956# These are left unexpanded so users can "make install exec_prefix=/foo"
957# and all the variables that are supposed to be based on exec_prefix
958# by default will actually change.
959# Use braces instead of parens because sh, perl, etc. also accept them.
960# (The list follows the same order as the GNU Coding Standards.)
961bindir='${exec_prefix}/bin'
962sbindir='${exec_prefix}/sbin'
963libexecdir='${exec_prefix}/libexec'
964datarootdir='${prefix}/share'
965datadir='${datarootdir}'
966sysconfdir='${prefix}/etc'
967sharedstatedir='${prefix}/com'
968localstatedir='${prefix}/var'
969includedir='${prefix}/include'
970oldincludedir='/usr/include'
971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972infodir='${datarootdir}/info'
973htmldir='${docdir}'
974dvidir='${docdir}'
975pdfdir='${docdir}'
976psdir='${docdir}'
977libdir='${exec_prefix}/lib'
978localedir='${datarootdir}/locale'
979mandir='${datarootdir}/man'
980
981ac_prev=
982ac_dashdash=
983for ac_option
984do
985  # If the previous option needs an argument, assign it.
986  if test -n "$ac_prev"; then
987    eval $ac_prev=\$ac_option
988    ac_prev=
989    continue
990  fi
991
992  case $ac_option in
993  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994  *=)   ac_optarg= ;;
995  *)    ac_optarg=yes ;;
996  esac
997
998  # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000  case $ac_dashdash$ac_option in
1001  --)
1002    ac_dashdash=yes ;;
1003
1004  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005    ac_prev=bindir ;;
1006  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007    bindir=$ac_optarg ;;
1008
1009  -build | --build | --buil | --bui | --bu)
1010    ac_prev=build_alias ;;
1011  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012    build_alias=$ac_optarg ;;
1013
1014  -cache-file | --cache-file | --cache-fil | --cache-fi \
1015  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016    ac_prev=cache_file ;;
1017  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019    cache_file=$ac_optarg ;;
1020
1021  --config-cache | -C)
1022    cache_file=config.cache ;;
1023
1024  -datadir | --datadir | --datadi | --datad)
1025    ac_prev=datadir ;;
1026  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027    datadir=$ac_optarg ;;
1028
1029  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030  | --dataroo | --dataro | --datar)
1031    ac_prev=datarootdir ;;
1032  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034    datarootdir=$ac_optarg ;;
1035
1036  -disable-* | --disable-*)
1037    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038    # Reject names that are not valid shell variable names.
1039    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040      as_fn_error $? "invalid feature name: $ac_useropt"
1041    ac_useropt_orig=$ac_useropt
1042    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043    case $ac_user_opts in
1044      *"
1045"enable_$ac_useropt"
1046"*) ;;
1047      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048	 ac_unrecognized_sep=', ';;
1049    esac
1050    eval enable_$ac_useropt=no ;;
1051
1052  -docdir | --docdir | --docdi | --doc | --do)
1053    ac_prev=docdir ;;
1054  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055    docdir=$ac_optarg ;;
1056
1057  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058    ac_prev=dvidir ;;
1059  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060    dvidir=$ac_optarg ;;
1061
1062  -enable-* | --enable-*)
1063    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064    # Reject names that are not valid shell variable names.
1065    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066      as_fn_error $? "invalid feature name: $ac_useropt"
1067    ac_useropt_orig=$ac_useropt
1068    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069    case $ac_user_opts in
1070      *"
1071"enable_$ac_useropt"
1072"*) ;;
1073      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074	 ac_unrecognized_sep=', ';;
1075    esac
1076    eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080  | --exec | --exe | --ex)
1081    ac_prev=exec_prefix ;;
1082  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084  | --exec=* | --exe=* | --ex=*)
1085    exec_prefix=$ac_optarg ;;
1086
1087  -gas | --gas | --ga | --g)
1088    # Obsolete; use --with-gas.
1089    with_gas=yes ;;
1090
1091  -help | --help | --hel | --he | -h)
1092    ac_init_help=long ;;
1093  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094    ac_init_help=recursive ;;
1095  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096    ac_init_help=short ;;
1097
1098  -host | --host | --hos | --ho)
1099    ac_prev=host_alias ;;
1100  -host=* | --host=* | --hos=* | --ho=*)
1101    host_alias=$ac_optarg ;;
1102
1103  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104    ac_prev=htmldir ;;
1105  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106  | --ht=*)
1107    htmldir=$ac_optarg ;;
1108
1109  -includedir | --includedir | --includedi | --included | --include \
1110  | --includ | --inclu | --incl | --inc)
1111    ac_prev=includedir ;;
1112  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113  | --includ=* | --inclu=* | --incl=* | --inc=*)
1114    includedir=$ac_optarg ;;
1115
1116  -infodir | --infodir | --infodi | --infod | --info | --inf)
1117    ac_prev=infodir ;;
1118  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119    infodir=$ac_optarg ;;
1120
1121  -libdir | --libdir | --libdi | --libd)
1122    ac_prev=libdir ;;
1123  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124    libdir=$ac_optarg ;;
1125
1126  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127  | --libexe | --libex | --libe)
1128    ac_prev=libexecdir ;;
1129  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130  | --libexe=* | --libex=* | --libe=*)
1131    libexecdir=$ac_optarg ;;
1132
1133  -localedir | --localedir | --localedi | --localed | --locale)
1134    ac_prev=localedir ;;
1135  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136    localedir=$ac_optarg ;;
1137
1138  -localstatedir | --localstatedir | --localstatedi | --localstated \
1139  | --localstate | --localstat | --localsta | --localst | --locals)
1140    ac_prev=localstatedir ;;
1141  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143    localstatedir=$ac_optarg ;;
1144
1145  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146    ac_prev=mandir ;;
1147  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148    mandir=$ac_optarg ;;
1149
1150  -nfp | --nfp | --nf)
1151    # Obsolete; use --without-fp.
1152    with_fp=no ;;
1153
1154  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155  | --no-cr | --no-c | -n)
1156    no_create=yes ;;
1157
1158  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160    no_recursion=yes ;;
1161
1162  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164  | --oldin | --oldi | --old | --ol | --o)
1165    ac_prev=oldincludedir ;;
1166  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169    oldincludedir=$ac_optarg ;;
1170
1171  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172    ac_prev=prefix ;;
1173  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174    prefix=$ac_optarg ;;
1175
1176  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177  | --program-pre | --program-pr | --program-p)
1178    ac_prev=program_prefix ;;
1179  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181    program_prefix=$ac_optarg ;;
1182
1183  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184  | --program-suf | --program-su | --program-s)
1185    ac_prev=program_suffix ;;
1186  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188    program_suffix=$ac_optarg ;;
1189
1190  -program-transform-name | --program-transform-name \
1191  | --program-transform-nam | --program-transform-na \
1192  | --program-transform-n | --program-transform- \
1193  | --program-transform | --program-transfor \
1194  | --program-transfo | --program-transf \
1195  | --program-trans | --program-tran \
1196  | --progr-tra | --program-tr | --program-t)
1197    ac_prev=program_transform_name ;;
1198  -program-transform-name=* | --program-transform-name=* \
1199  | --program-transform-nam=* | --program-transform-na=* \
1200  | --program-transform-n=* | --program-transform-=* \
1201  | --program-transform=* | --program-transfor=* \
1202  | --program-transfo=* | --program-transf=* \
1203  | --program-trans=* | --program-tran=* \
1204  | --progr-tra=* | --program-tr=* | --program-t=*)
1205    program_transform_name=$ac_optarg ;;
1206
1207  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208    ac_prev=pdfdir ;;
1209  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210    pdfdir=$ac_optarg ;;
1211
1212  -psdir | --psdir | --psdi | --psd | --ps)
1213    ac_prev=psdir ;;
1214  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215    psdir=$ac_optarg ;;
1216
1217  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218  | -silent | --silent | --silen | --sile | --sil)
1219    silent=yes ;;
1220
1221  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222    ac_prev=sbindir ;;
1223  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224  | --sbi=* | --sb=*)
1225    sbindir=$ac_optarg ;;
1226
1227  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229  | --sharedst | --shareds | --shared | --share | --shar \
1230  | --sha | --sh)
1231    ac_prev=sharedstatedir ;;
1232  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235  | --sha=* | --sh=*)
1236    sharedstatedir=$ac_optarg ;;
1237
1238  -site | --site | --sit)
1239    ac_prev=site ;;
1240  -site=* | --site=* | --sit=*)
1241    site=$ac_optarg ;;
1242
1243  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244    ac_prev=srcdir ;;
1245  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246    srcdir=$ac_optarg ;;
1247
1248  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249  | --syscon | --sysco | --sysc | --sys | --sy)
1250    ac_prev=sysconfdir ;;
1251  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253    sysconfdir=$ac_optarg ;;
1254
1255  -target | --target | --targe | --targ | --tar | --ta | --t)
1256    ac_prev=target_alias ;;
1257  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258    target_alias=$ac_optarg ;;
1259
1260  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261    verbose=yes ;;
1262
1263  -version | --version | --versio | --versi | --vers | -V)
1264    ac_init_version=: ;;
1265
1266  -with-* | --with-*)
1267    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270      as_fn_error $? "invalid package name: $ac_useropt"
1271    ac_useropt_orig=$ac_useropt
1272    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273    case $ac_user_opts in
1274      *"
1275"with_$ac_useropt"
1276"*) ;;
1277      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278	 ac_unrecognized_sep=', ';;
1279    esac
1280    eval with_$ac_useropt=\$ac_optarg ;;
1281
1282  -without-* | --without-*)
1283    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286      as_fn_error $? "invalid package name: $ac_useropt"
1287    ac_useropt_orig=$ac_useropt
1288    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289    case $ac_user_opts in
1290      *"
1291"with_$ac_useropt"
1292"*) ;;
1293      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294	 ac_unrecognized_sep=', ';;
1295    esac
1296    eval with_$ac_useropt=no ;;
1297
1298  --x)
1299    # Obsolete; use --with-x.
1300    with_x=yes ;;
1301
1302  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303  | --x-incl | --x-inc | --x-in | --x-i)
1304    ac_prev=x_includes ;;
1305  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307    x_includes=$ac_optarg ;;
1308
1309  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311    ac_prev=x_libraries ;;
1312  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314    x_libraries=$ac_optarg ;;
1315
1316  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1317Try \`$0 --help' for more information"
1318    ;;
1319
1320  *=*)
1321    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322    # Reject names that are not valid shell variable names.
1323    case $ac_envvar in #(
1324      '' | [0-9]* | *[!_$as_cr_alnum]* )
1325      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1326    esac
1327    eval $ac_envvar=\$ac_optarg
1328    export $ac_envvar ;;
1329
1330  *)
1331    # FIXME: should be removed in autoconf 3.0.
1332    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1336    ;;
1337
1338  esac
1339done
1340
1341if test -n "$ac_prev"; then
1342  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343  as_fn_error $? "missing argument to $ac_option"
1344fi
1345
1346if test -n "$ac_unrecognized_opts"; then
1347  case $enable_option_checking in
1348    no) ;;
1349    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1350    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351  esac
1352fi
1353
1354# Check all directory arguments for consistency.
1355for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356		datadir sysconfdir sharedstatedir localstatedir includedir \
1357		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358		libdir localedir mandir
1359do
1360  eval ac_val=\$$ac_var
1361  # Remove trailing slashes.
1362  case $ac_val in
1363    */ )
1364      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365      eval $ac_var=\$ac_val;;
1366  esac
1367  # Be sure to have absolute directory names.
1368  case $ac_val in
1369    [\\/$]* | ?:[\\/]* )  continue;;
1370    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371  esac
1372  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1373done
1374
1375# There might be people who depend on the old broken behavior: `$host'
1376# used to hold the argument of --host etc.
1377# FIXME: To remove some day.
1378build=$build_alias
1379host=$host_alias
1380target=$target_alias
1381
1382# FIXME: To remove some day.
1383if test "x$host_alias" != x; then
1384  if test "x$build_alias" = x; then
1385    cross_compiling=maybe
1386  elif test "x$build_alias" != "x$host_alias"; then
1387    cross_compiling=yes
1388  fi
1389fi
1390
1391ac_tool_prefix=
1392test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
1394test "$silent" = yes && exec 6>/dev/null
1395
1396
1397ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398ac_ls_di=`ls -di .` &&
1399ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400  as_fn_error $? "working directory cannot be determined"
1401test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402  as_fn_error $? "pwd does not report name of working directory"
1403
1404
1405# Find the source files, if location was not specified.
1406if test -z "$srcdir"; then
1407  ac_srcdir_defaulted=yes
1408  # Try the directory containing this script, then the parent directory.
1409  ac_confdir=`$as_dirname -- "$as_myself" ||
1410$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411	 X"$as_myself" : 'X\(//\)[^/]' \| \
1412	 X"$as_myself" : 'X\(//\)$' \| \
1413	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1414$as_echo X"$as_myself" |
1415    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416	    s//\1/
1417	    q
1418	  }
1419	  /^X\(\/\/\)[^/].*/{
1420	    s//\1/
1421	    q
1422	  }
1423	  /^X\(\/\/\)$/{
1424	    s//\1/
1425	    q
1426	  }
1427	  /^X\(\/\).*/{
1428	    s//\1/
1429	    q
1430	  }
1431	  s/.*/./; q'`
1432  srcdir=$ac_confdir
1433  if test ! -r "$srcdir/$ac_unique_file"; then
1434    srcdir=..
1435  fi
1436else
1437  ac_srcdir_defaulted=no
1438fi
1439if test ! -r "$srcdir/$ac_unique_file"; then
1440  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1442fi
1443ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444ac_abs_confdir=`(
1445	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1446	pwd)`
1447# When building in place, set srcdir=.
1448if test "$ac_abs_confdir" = "$ac_pwd"; then
1449  srcdir=.
1450fi
1451# Remove unnecessary trailing slashes from srcdir.
1452# Double slashes in file names in object file debugging info
1453# mess up M-x gdb in Emacs.
1454case $srcdir in
1455*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456esac
1457for ac_var in $ac_precious_vars; do
1458  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459  eval ac_env_${ac_var}_value=\$${ac_var}
1460  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462done
1463
1464#
1465# Report the --help message.
1466#
1467if test "$ac_init_help" = "long"; then
1468  # Omit some internal or obsolete options to make the list less imposing.
1469  # This message is too long to be a string in the A/UX 3.1 sh.
1470  cat <<_ACEOF
1471\`configure' configures sqlite 3.40.0 to adapt to many kinds of systems.
1472
1473Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476VAR=VALUE.  See below for descriptions of some of the useful variables.
1477
1478Defaults for the options are specified in brackets.
1479
1480Configuration:
1481  -h, --help              display this help and exit
1482      --help=short        display options specific to this package
1483      --help=recursive    display the short help of all the included packages
1484  -V, --version           display version information and exit
1485  -q, --quiet, --silent   do not print \`checking ...' messages
1486      --cache-file=FILE   cache test results in FILE [disabled]
1487  -C, --config-cache      alias for \`--cache-file=config.cache'
1488  -n, --no-create         do not create output files
1489      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1490
1491Installation directories:
1492  --prefix=PREFIX         install architecture-independent files in PREFIX
1493                          [$ac_default_prefix]
1494  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1495                          [PREFIX]
1496
1497By default, \`make install' will install all the files in
1498\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1499an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500for instance \`--prefix=\$HOME'.
1501
1502For better control, use the options below.
1503
1504Fine tuning of the installation directories:
1505  --bindir=DIR            user executables [EPREFIX/bin]
1506  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1507  --libexecdir=DIR        program executables [EPREFIX/libexec]
1508  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1509  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1510  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1511  --libdir=DIR            object code libraries [EPREFIX/lib]
1512  --includedir=DIR        C header files [PREFIX/include]
1513  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1514  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1515  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1516  --infodir=DIR           info documentation [DATAROOTDIR/info]
1517  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1518  --mandir=DIR            man documentation [DATAROOTDIR/man]
1519  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1520  --htmldir=DIR           html documentation [DOCDIR]
1521  --dvidir=DIR            dvi documentation [DOCDIR]
1522  --pdfdir=DIR            pdf documentation [DOCDIR]
1523  --psdir=DIR             ps documentation [DOCDIR]
1524_ACEOF
1525
1526  cat <<\_ACEOF
1527
1528System types:
1529  --build=BUILD     configure for building on BUILD [guessed]
1530  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1531_ACEOF
1532fi
1533
1534if test -n "$ac_init_help"; then
1535  case $ac_init_help in
1536     short | recursive ) echo "Configuration of sqlite 3.40.0:";;
1537   esac
1538  cat <<\_ACEOF
1539
1540Optional Features:
1541  --disable-option-checking  ignore unrecognized --enable/--with options
1542  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1543  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1544  --enable-shared[=PKGS]  build shared libraries [default=yes]
1545  --enable-static[=PKGS]  build static libraries [default=yes]
1546  --enable-fast-install[=PKGS]
1547                          optimize for fast installation [default=yes]
1548  --disable-libtool-lock  avoid locking (might break parallel builds)
1549  --disable-largefile     omit support for large files
1550  --disable-threadsafe    Disable mutexing
1551  --enable-releasemode    Support libtool link to release mode
1552  --enable-tempstore      Use an in-ram database for temporary tables
1553                          (never,no,yes,always)
1554  --disable-tcl           do not build TCL extension
1555  --enable-editline       enable BSD editline support
1556  --disable-readline      disable readline support
1557  --enable-debug          enable debugging & verbose explain
1558  --disable-amalgamation  Disable the amalgamation and instead build all files
1559                          separately
1560  --disable-load-extension
1561                          Disable loading of external extensions
1562  --disable-math          Disable math functions
1563  --disable-json          Disable JSON functions
1564  --enable-all            Enable FTS4, FTS5, Geopoly, RTree, Sessions
1565  --enable-memsys5        Enable MEMSYS5
1566  --enable-memsys3        Enable MEMSYS3
1567  --enable-fts3           Enable the FTS3 extension
1568  --enable-fts4           Enable the FTS4 extension
1569  --enable-fts5           Enable the FTS5 extension
1570  --enable-update-limit   Enable the UPDATE/DELETE LIMIT clause
1571  --enable-geopoly        Enable the GEOPOLY extension
1572  --enable-rtree          Enable the RTREE extension
1573  --enable-session        Enable the SESSION extension
1574  --enable-gcov           Enable coverage testing using gcov
1575
1576Optional Packages:
1577  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1578  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1579  --with-pic              try to use only PIC/non-PIC objects [default=use
1580                          both]
1581  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1582  --with-tcl=DIR          directory containing tcl configuration
1583                          (tclConfig.sh)
1584  --with-readline-lib     specify readline library
1585  --with-readline-inc     specify readline include paths
1586
1587Some influential environment variables:
1588  CC          C compiler command
1589  CFLAGS      C compiler flags
1590  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1591              nonstandard directory <lib dir>
1592  LIBS        libraries to pass to the linker, e.g. -l<library>
1593  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1594              you have headers in a nonstandard directory <include dir>
1595  CPP         C preprocessor
1596  TCLLIBDIR   Where to install tcl plugin
1597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601Report bugs to the package provider.
1602_ACEOF
1603ac_status=$?
1604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607  # If there are subdirs, report their specific --help.
1608  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609    test -d "$ac_dir" ||
1610      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611      continue
1612    ac_builddir=.
1613
1614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
1617  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618  # A ".." for each directory in $ac_dir_suffix.
1619  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620  case $ac_top_builddir_sub in
1621  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623  esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
1629
1630case $srcdir in
1631  .)  # We are building in place.
1632    ac_srcdir=.
1633    ac_top_srcdir=$ac_top_builddir_sub
1634    ac_abs_top_srcdir=$ac_pwd ;;
1635  [\\/]* | ?:[\\/]* )  # Absolute name.
1636    ac_srcdir=$srcdir$ac_dir_suffix;
1637    ac_top_srcdir=$srcdir
1638    ac_abs_top_srcdir=$srcdir ;;
1639  *) # Relative name.
1640    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641    ac_top_srcdir=$ac_top_build_prefix$srcdir
1642    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643esac
1644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646    cd "$ac_dir" || { ac_status=$?; continue; }
1647    # Check for guested configure.
1648    if test -f "$ac_srcdir/configure.gnu"; then
1649      echo &&
1650      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651    elif test -f "$ac_srcdir/configure"; then
1652      echo &&
1653      $SHELL "$ac_srcdir/configure" --help=recursive
1654    else
1655      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656    fi || ac_status=$?
1657    cd "$ac_pwd" || { ac_status=$?; break; }
1658  done
1659fi
1660
1661test -n "$ac_init_help" && exit $ac_status
1662if $ac_init_version; then
1663  cat <<\_ACEOF
1664sqlite configure 3.40.0
1665generated by GNU Autoconf 2.69
1666
1667Copyright (C) 2012 Free Software Foundation, Inc.
1668This configure script is free software; the Free Software Foundation
1669gives unlimited permission to copy, distribute and modify it.
1670_ACEOF
1671  exit
1672fi
1673
1674## ------------------------ ##
1675## Autoconf initialization. ##
1676## ------------------------ ##
1677
1678# ac_fn_c_try_compile LINENO
1679# --------------------------
1680# Try to compile conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_compile ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  rm -f conftest.$ac_objext
1685  if { { ac_try="$ac_compile"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_compile") 2>conftest.err
1693  ac_status=$?
1694  if test -s conftest.err; then
1695    grep -v '^ *+' conftest.err >conftest.er1
1696    cat conftest.er1 >&5
1697    mv -f conftest.er1 conftest.err
1698  fi
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && {
1701	 test -z "$ac_c_werror_flag" ||
1702	 test ! -s conftest.err
1703       } && test -s conftest.$ac_objext; then :
1704  ac_retval=0
1705else
1706  $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709	ac_retval=1
1710fi
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_compile
1715
1716# ac_fn_c_try_link LINENO
1717# -----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_link ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  rm -f conftest.$ac_objext conftest$ac_exeext
1723  if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730  (eval "$ac_link") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } && {
1739	 test -z "$ac_c_werror_flag" ||
1740	 test ! -s conftest.err
1741       } && test -s conftest$ac_exeext && {
1742	 test "$cross_compiling" = yes ||
1743	 test -x conftest$ac_exeext
1744       }; then :
1745  ac_retval=0
1746else
1747  $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750	ac_retval=1
1751fi
1752  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754  # interfere with the next link command; also delete a directory that is
1755  # left behind by Apple's compiler.  We do this before executing the actions.
1756  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_link
1761
1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763# -------------------------------------------------------
1764# Tests whether HEADER exists and can be compiled using the include files in
1765# INCLUDES, setting the cache variable VAR accordingly.
1766ac_fn_c_check_header_compile ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if eval \${$3+:} false; then :
1772  $as_echo_n "(cached) " >&6
1773else
1774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h.  */
1776$4
1777#include <$2>
1778_ACEOF
1779if ac_fn_c_try_compile "$LINENO"; then :
1780  eval "$3=yes"
1781else
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785fi
1786eval ac_res=\$$3
1787	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791} # ac_fn_c_check_header_compile
1792
1793# ac_fn_c_try_cpp LINENO
1794# ----------------------
1795# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_c_try_cpp ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  if { { ac_try="$ac_cpp conftest.$ac_ext"
1800case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807  ac_status=$?
1808  if test -s conftest.err; then
1809    grep -v '^ *+' conftest.err >conftest.er1
1810    cat conftest.er1 >&5
1811    mv -f conftest.er1 conftest.err
1812  fi
1813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814  test $ac_status = 0; } > conftest.i && {
1815	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816	 test ! -s conftest.err
1817       }; then :
1818  ac_retval=0
1819else
1820  $as_echo "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
1822
1823    ac_retval=1
1824fi
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826  as_fn_set_status $ac_retval
1827
1828} # ac_fn_c_try_cpp
1829
1830# ac_fn_c_try_run LINENO
1831# ----------------------
1832# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1833# that executables *can* be run.
1834ac_fn_c_try_run ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  if { { ac_try="$ac_link"
1838case "(($ac_try" in
1839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840  *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843$as_echo "$ac_try_echo"; } >&5
1844  (eval "$ac_link") 2>&5
1845  ac_status=$?
1846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1848  { { case "(($ac_try" in
1849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850  *) ac_try_echo=$ac_try;;
1851esac
1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853$as_echo "$ac_try_echo"; } >&5
1854  (eval "$ac_try") 2>&5
1855  ac_status=$?
1856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857  test $ac_status = 0; }; }; then :
1858  ac_retval=0
1859else
1860  $as_echo "$as_me: program exited with status $ac_status" >&5
1861       $as_echo "$as_me: failed program was:" >&5
1862sed 's/^/| /' conftest.$ac_ext >&5
1863
1864       ac_retval=$ac_status
1865fi
1866  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868  as_fn_set_status $ac_retval
1869
1870} # ac_fn_c_try_run
1871
1872# ac_fn_c_check_func LINENO FUNC VAR
1873# ----------------------------------
1874# Tests whether FUNC exists, setting the cache variable VAR accordingly
1875ac_fn_c_check_func ()
1876{
1877  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879$as_echo_n "checking for $2... " >&6; }
1880if eval \${$3+:} false; then :
1881  $as_echo_n "(cached) " >&6
1882else
1883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h.  */
1885/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1887#define $2 innocuous_$2
1888
1889/* System header to define __stub macros and hopefully few prototypes,
1890    which can conflict with char $2 (); below.
1891    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892    <limits.h> exists even on freestanding compilers.  */
1893
1894#ifdef __STDC__
1895# include <limits.h>
1896#else
1897# include <assert.h>
1898#endif
1899
1900#undef $2
1901
1902/* Override any GCC internal prototype to avoid an error.
1903   Use char because int might match the return type of a GCC
1904   builtin and then its argument prototype would still apply.  */
1905#ifdef __cplusplus
1906extern "C"
1907#endif
1908char $2 ();
1909/* The GNU C library defines this for functions which it implements
1910    to always fail with ENOSYS.  Some functions are actually named
1911    something starting with __ and the normal name is an alias.  */
1912#if defined __stub_$2 || defined __stub___$2
1913choke me
1914#endif
1915
1916int
1917main ()
1918{
1919return $2 ();
1920  ;
1921  return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_link "$LINENO"; then :
1925  eval "$3=yes"
1926else
1927  eval "$3=no"
1928fi
1929rm -f core conftest.err conftest.$ac_objext \
1930    conftest$ac_exeext conftest.$ac_ext
1931fi
1932eval ac_res=\$$3
1933	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934$as_echo "$ac_res" >&6; }
1935  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937} # ac_fn_c_check_func
1938
1939# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1940# -------------------------------------------
1941# Tests whether TYPE exists after having included INCLUDES, setting cache
1942# variable VAR accordingly.
1943ac_fn_c_check_type ()
1944{
1945  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947$as_echo_n "checking for $2... " >&6; }
1948if eval \${$3+:} false; then :
1949  $as_echo_n "(cached) " >&6
1950else
1951  eval "$3=no"
1952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953/* end confdefs.h.  */
1954$4
1955int
1956main ()
1957{
1958if (sizeof ($2))
1959	 return 0;
1960  ;
1961  return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_compile "$LINENO"; then :
1965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h.  */
1967$4
1968int
1969main ()
1970{
1971if (sizeof (($2)))
1972	    return 0;
1973  ;
1974  return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978
1979else
1980  eval "$3=yes"
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983fi
1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985fi
1986eval ac_res=\$$3
1987	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988$as_echo "$ac_res" >&6; }
1989  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991} # ac_fn_c_check_type
1992
1993# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1994# -------------------------------------------------------
1995# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1996# the include files in INCLUDES and setting the cache variable VAR
1997# accordingly.
1998ac_fn_c_check_header_mongrel ()
1999{
2000  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001  if eval \${$3+:} false; then :
2002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if eval \${$3+:} false; then :
2005  $as_echo_n "(cached) " >&6
2006fi
2007eval ac_res=\$$3
2008	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009$as_echo "$ac_res" >&6; }
2010else
2011  # Is the header compilable?
2012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2013$as_echo_n "checking $2 usability... " >&6; }
2014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h.  */
2016$4
2017#include <$2>
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020  ac_header_compiler=yes
2021else
2022  ac_header_compiler=no
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2026$as_echo "$ac_header_compiler" >&6; }
2027
2028# Is the header present?
2029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2030$as_echo_n "checking $2 presence... " >&6; }
2031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h.  */
2033#include <$2>
2034_ACEOF
2035if ac_fn_c_try_cpp "$LINENO"; then :
2036  ac_header_preproc=yes
2037else
2038  ac_header_preproc=no
2039fi
2040rm -f conftest.err conftest.i conftest.$ac_ext
2041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2042$as_echo "$ac_header_preproc" >&6; }
2043
2044# So?  What about this header?
2045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2046  yes:no: )
2047    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2048$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2049    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2051    ;;
2052  no:yes:* )
2053    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2054$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2055    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2056$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2057    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2058$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2059    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2060$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2061    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063    ;;
2064esac
2065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066$as_echo_n "checking for $2... " >&6; }
2067if eval \${$3+:} false; then :
2068  $as_echo_n "(cached) " >&6
2069else
2070  eval "$3=\$ac_header_compiler"
2071fi
2072eval ac_res=\$$3
2073	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074$as_echo "$ac_res" >&6; }
2075fi
2076  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078} # ac_fn_c_check_header_mongrel
2079cat >config.log <<_ACEOF
2080This file contains any messages produced by compilers while
2081running configure, to aid debugging if configure makes a mistake.
2082
2083It was created by sqlite $as_me 3.40.0, which was
2084generated by GNU Autoconf 2.69.  Invocation command line was
2085
2086  $ $0 $@
2087
2088_ACEOF
2089exec 5>>config.log
2090{
2091cat <<_ASUNAME
2092## --------- ##
2093## Platform. ##
2094## --------- ##
2095
2096hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2097uname -m = `(uname -m) 2>/dev/null || echo unknown`
2098uname -r = `(uname -r) 2>/dev/null || echo unknown`
2099uname -s = `(uname -s) 2>/dev/null || echo unknown`
2100uname -v = `(uname -v) 2>/dev/null || echo unknown`
2101
2102/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2103/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2104
2105/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2106/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2107/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2108/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2109/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2110/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2111/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2112
2113_ASUNAME
2114
2115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116for as_dir in $PATH
2117do
2118  IFS=$as_save_IFS
2119  test -z "$as_dir" && as_dir=.
2120    $as_echo "PATH: $as_dir"
2121  done
2122IFS=$as_save_IFS
2123
2124} >&5
2125
2126cat >&5 <<_ACEOF
2127
2128
2129## ----------- ##
2130## Core tests. ##
2131## ----------- ##
2132
2133_ACEOF
2134
2135
2136# Keep a trace of the command line.
2137# Strip out --no-create and --no-recursion so they do not pile up.
2138# Strip out --silent because we don't want to record it for future runs.
2139# Also quote any args containing shell meta-characters.
2140# Make two passes to allow for proper duplicate-argument suppression.
2141ac_configure_args=
2142ac_configure_args0=
2143ac_configure_args1=
2144ac_must_keep_next=false
2145for ac_pass in 1 2
2146do
2147  for ac_arg
2148  do
2149    case $ac_arg in
2150    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2151    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2152    | -silent | --silent | --silen | --sile | --sil)
2153      continue ;;
2154    *\'*)
2155      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2156    esac
2157    case $ac_pass in
2158    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2159    2)
2160      as_fn_append ac_configure_args1 " '$ac_arg'"
2161      if test $ac_must_keep_next = true; then
2162	ac_must_keep_next=false # Got value, back to normal.
2163      else
2164	case $ac_arg in
2165	  *=* | --config-cache | -C | -disable-* | --disable-* \
2166	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2167	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2168	  | -with-* | --with-* | -without-* | --without-* | --x)
2169	    case "$ac_configure_args0 " in
2170	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2171	    esac
2172	    ;;
2173	  -* ) ac_must_keep_next=true ;;
2174	esac
2175      fi
2176      as_fn_append ac_configure_args " '$ac_arg'"
2177      ;;
2178    esac
2179  done
2180done
2181{ ac_configure_args0=; unset ac_configure_args0;}
2182{ ac_configure_args1=; unset ac_configure_args1;}
2183
2184# When interrupted or exit'd, cleanup temporary files, and complete
2185# config.log.  We remove comments because anyway the quotes in there
2186# would cause problems or look ugly.
2187# WARNING: Use '\'' to represent an apostrophe within the trap.
2188# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2189trap 'exit_status=$?
2190  # Save into config.log some information that might help in debugging.
2191  {
2192    echo
2193
2194    $as_echo "## ---------------- ##
2195## Cache variables. ##
2196## ---------------- ##"
2197    echo
2198    # The following way of writing the cache mishandles newlines in values,
2199(
2200  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2201    eval ac_val=\$$ac_var
2202    case $ac_val in #(
2203    *${as_nl}*)
2204      case $ac_var in #(
2205      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2206$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2207      esac
2208      case $ac_var in #(
2209      _ | IFS | as_nl) ;; #(
2210      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2211      *) { eval $ac_var=; unset $ac_var;} ;;
2212      esac ;;
2213    esac
2214  done
2215  (set) 2>&1 |
2216    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2217    *${as_nl}ac_space=\ *)
2218      sed -n \
2219	"s/'\''/'\''\\\\'\'''\''/g;
2220	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2221      ;; #(
2222    *)
2223      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2224      ;;
2225    esac |
2226    sort
2227)
2228    echo
2229
2230    $as_echo "## ----------------- ##
2231## Output variables. ##
2232## ----------------- ##"
2233    echo
2234    for ac_var in $ac_subst_vars
2235    do
2236      eval ac_val=\$$ac_var
2237      case $ac_val in
2238      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239      esac
2240      $as_echo "$ac_var='\''$ac_val'\''"
2241    done | sort
2242    echo
2243
2244    if test -n "$ac_subst_files"; then
2245      $as_echo "## ------------------- ##
2246## File substitutions. ##
2247## ------------------- ##"
2248      echo
2249      for ac_var in $ac_subst_files
2250      do
2251	eval ac_val=\$$ac_var
2252	case $ac_val in
2253	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254	esac
2255	$as_echo "$ac_var='\''$ac_val'\''"
2256      done | sort
2257      echo
2258    fi
2259
2260    if test -s confdefs.h; then
2261      $as_echo "## ----------- ##
2262## confdefs.h. ##
2263## ----------- ##"
2264      echo
2265      cat confdefs.h
2266      echo
2267    fi
2268    test "$ac_signal" != 0 &&
2269      $as_echo "$as_me: caught signal $ac_signal"
2270    $as_echo "$as_me: exit $exit_status"
2271  } >&5
2272  rm -f core *.core core.conftest.* &&
2273    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2274    exit $exit_status
2275' 0
2276for ac_signal in 1 2 13 15; do
2277  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2278done
2279ac_signal=0
2280
2281# confdefs.h avoids OS command line length limits that DEFS can exceed.
2282rm -f -r conftest* confdefs.h
2283
2284$as_echo "/* confdefs.h */" > confdefs.h
2285
2286# Predefined preprocessor variables.
2287
2288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_NAME "$PACKAGE_NAME"
2290_ACEOF
2291
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2294_ACEOF
2295
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_VERSION "$PACKAGE_VERSION"
2298_ACEOF
2299
2300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_STRING "$PACKAGE_STRING"
2302_ACEOF
2303
2304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2306_ACEOF
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_URL "$PACKAGE_URL"
2310_ACEOF
2311
2312
2313# Let the site file select an alternate cache file if it wants to.
2314# Prefer an explicitly selected file to automatically selected ones.
2315ac_site_file1=NONE
2316ac_site_file2=NONE
2317if test -n "$CONFIG_SITE"; then
2318  # We do not want a PATH search for config.site.
2319  case $CONFIG_SITE in #((
2320    -*)  ac_site_file1=./$CONFIG_SITE;;
2321    */*) ac_site_file1=$CONFIG_SITE;;
2322    *)   ac_site_file1=./$CONFIG_SITE;;
2323  esac
2324elif test "x$prefix" != xNONE; then
2325  ac_site_file1=$prefix/share/config.site
2326  ac_site_file2=$prefix/etc/config.site
2327else
2328  ac_site_file1=$ac_default_prefix/share/config.site
2329  ac_site_file2=$ac_default_prefix/etc/config.site
2330fi
2331for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2332do
2333  test "x$ac_site_file" = xNONE && continue
2334  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2335    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2336$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2337    sed 's/^/| /' "$ac_site_file" >&5
2338    . "$ac_site_file" \
2339      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341as_fn_error $? "failed to load site script $ac_site_file
2342See \`config.log' for more details" "$LINENO" 5; }
2343  fi
2344done
2345
2346if test -r "$cache_file"; then
2347  # Some versions of bash will fail to source /dev/null (special files
2348  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2349  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2350    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2351$as_echo "$as_me: loading cache $cache_file" >&6;}
2352    case $cache_file in
2353      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2354      *)                      . "./$cache_file";;
2355    esac
2356  fi
2357else
2358  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2359$as_echo "$as_me: creating cache $cache_file" >&6;}
2360  >$cache_file
2361fi
2362
2363# Check that the precious variables saved in the cache have kept the same
2364# value.
2365ac_cache_corrupted=false
2366for ac_var in $ac_precious_vars; do
2367  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2368  eval ac_new_set=\$ac_env_${ac_var}_set
2369  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2370  eval ac_new_val=\$ac_env_${ac_var}_value
2371  case $ac_old_set,$ac_new_set in
2372    set,)
2373      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2374$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2375      ac_cache_corrupted=: ;;
2376    ,set)
2377      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2378$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2379      ac_cache_corrupted=: ;;
2380    ,);;
2381    *)
2382      if test "x$ac_old_val" != "x$ac_new_val"; then
2383	# differences in whitespace do not lead to failure.
2384	ac_old_val_w=`echo x $ac_old_val`
2385	ac_new_val_w=`echo x $ac_new_val`
2386	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2387	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2388$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2389	  ac_cache_corrupted=:
2390	else
2391	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2392$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2393	  eval $ac_var=\$ac_old_val
2394	fi
2395	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2396$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2397	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2398$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2399      fi;;
2400  esac
2401  # Pass precious variables to config.status.
2402  if test "$ac_new_set" = set; then
2403    case $ac_new_val in
2404    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2405    *) ac_arg=$ac_var=$ac_new_val ;;
2406    esac
2407    case " $ac_configure_args " in
2408      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2409      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2410    esac
2411  fi
2412done
2413if $ac_cache_corrupted; then
2414  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2417$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2418  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2419fi
2420## -------------------- ##
2421## Main body of script. ##
2422## -------------------- ##
2423
2424ac_ext=c
2425ac_cpp='$CPP $CPPFLAGS'
2426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429
2430
2431
2432sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2433if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2434as_fn_error $? "configure script is out of date:
2435 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2436 top level VERSION file     = $sqlite_version_sanity_check
2437please regen with autoconf" "$LINENO" 5
2438fi
2439
2440#########
2441# Programs needed
2442#
2443case `pwd` in
2444  *\ * | *\	*)
2445    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2446$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2447esac
2448
2449
2450
2451macro_version='2.2.6'
2452macro_revision='1.3012'
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466ltmain="$ac_aux_dir/ltmain.sh"
2467
2468ac_aux_dir=
2469for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2470  if test -f "$ac_dir/install-sh"; then
2471    ac_aux_dir=$ac_dir
2472    ac_install_sh="$ac_aux_dir/install-sh -c"
2473    break
2474  elif test -f "$ac_dir/install.sh"; then
2475    ac_aux_dir=$ac_dir
2476    ac_install_sh="$ac_aux_dir/install.sh -c"
2477    break
2478  elif test -f "$ac_dir/shtool"; then
2479    ac_aux_dir=$ac_dir
2480    ac_install_sh="$ac_aux_dir/shtool install -c"
2481    break
2482  fi
2483done
2484if test -z "$ac_aux_dir"; then
2485  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2486fi
2487
2488# These three variables are undocumented and unsupported,
2489# and are intended to be withdrawn in a future Autoconf release.
2490# They can cause serious problems if a builder's source tree is in a directory
2491# whose full name contains unusual characters.
2492ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2493ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2494ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2495
2496
2497# Make sure we can run config.sub.
2498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2499  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2500
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2502$as_echo_n "checking build system type... " >&6; }
2503if ${ac_cv_build+:} false; then :
2504  $as_echo_n "(cached) " >&6
2505else
2506  ac_build_alias=$build_alias
2507test "x$ac_build_alias" = x &&
2508  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2509test "x$ac_build_alias" = x &&
2510  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2512  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2513
2514fi
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2516$as_echo "$ac_cv_build" >&6; }
2517case $ac_cv_build in
2518*-*-*) ;;
2519*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2520esac
2521build=$ac_cv_build
2522ac_save_IFS=$IFS; IFS='-'
2523set x $ac_cv_build
2524shift
2525build_cpu=$1
2526build_vendor=$2
2527shift; shift
2528# Remember, the first character of IFS is used to create $*,
2529# except with old shells:
2530build_os=$*
2531IFS=$ac_save_IFS
2532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2533
2534
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2536$as_echo_n "checking host system type... " >&6; }
2537if ${ac_cv_host+:} false; then :
2538  $as_echo_n "(cached) " >&6
2539else
2540  if test "x$host_alias" = x; then
2541  ac_cv_host=$ac_cv_build
2542else
2543  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2544    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2545fi
2546
2547fi
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2549$as_echo "$ac_cv_host" >&6; }
2550case $ac_cv_host in
2551*-*-*) ;;
2552*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2553esac
2554host=$ac_cv_host
2555ac_save_IFS=$IFS; IFS='-'
2556set x $ac_cv_host
2557shift
2558host_cpu=$1
2559host_vendor=$2
2560shift; shift
2561# Remember, the first character of IFS is used to create $*,
2562# except with old shells:
2563host_os=$*
2564IFS=$ac_save_IFS
2565case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2566
2567
2568ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS'
2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573if test -n "$ac_tool_prefix"; then
2574  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2575set dummy ${ac_tool_prefix}gcc; ac_word=$2
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577$as_echo_n "checking for $ac_word... " >&6; }
2578if ${ac_cv_prog_CC+:} false; then :
2579  $as_echo_n "(cached) " >&6
2580else
2581  if test -n "$CC"; then
2582  ac_cv_prog_CC="$CC" # Let the user override the test.
2583else
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587  IFS=$as_save_IFS
2588  test -z "$as_dir" && as_dir=.
2589    for ac_exec_ext in '' $ac_executable_extensions; do
2590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593    break 2
2594  fi
2595done
2596  done
2597IFS=$as_save_IFS
2598
2599fi
2600fi
2601CC=$ac_cv_prog_CC
2602if test -n "$CC"; then
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2604$as_echo "$CC" >&6; }
2605else
2606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607$as_echo "no" >&6; }
2608fi
2609
2610
2611fi
2612if test -z "$ac_cv_prog_CC"; then
2613  ac_ct_CC=$CC
2614  # Extract the first word of "gcc", so it can be a program name with args.
2615set dummy gcc; ac_word=$2
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617$as_echo_n "checking for $ac_word... " >&6; }
2618if ${ac_cv_prog_ac_ct_CC+:} false; then :
2619  $as_echo_n "(cached) " >&6
2620else
2621  if test -n "$ac_ct_CC"; then
2622  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2623else
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627  IFS=$as_save_IFS
2628  test -z "$as_dir" && as_dir=.
2629    for ac_exec_ext in '' $ac_executable_extensions; do
2630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631    ac_cv_prog_ac_ct_CC="gcc"
2632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633    break 2
2634  fi
2635done
2636  done
2637IFS=$as_save_IFS
2638
2639fi
2640fi
2641ac_ct_CC=$ac_cv_prog_ac_ct_CC
2642if test -n "$ac_ct_CC"; then
2643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2644$as_echo "$ac_ct_CC" >&6; }
2645else
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647$as_echo "no" >&6; }
2648fi
2649
2650  if test "x$ac_ct_CC" = x; then
2651    CC=""
2652  else
2653    case $cross_compiling:$ac_tool_warned in
2654yes:)
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2657ac_tool_warned=yes ;;
2658esac
2659    CC=$ac_ct_CC
2660  fi
2661else
2662  CC="$ac_cv_prog_CC"
2663fi
2664
2665if test -z "$CC"; then
2666          if test -n "$ac_tool_prefix"; then
2667    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2668set dummy ${ac_tool_prefix}cc; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if ${ac_cv_prog_CC+:} false; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  if test -n "$CC"; then
2675  ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680  IFS=$as_save_IFS
2681  test -z "$as_dir" && as_dir=.
2682    for ac_exec_ext in '' $ac_executable_extensions; do
2683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684    ac_cv_prog_CC="${ac_tool_prefix}cc"
2685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686    break 2
2687  fi
2688done
2689  done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694CC=$ac_cv_prog_CC
2695if test -n "$CC"; then
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2697$as_echo "$CC" >&6; }
2698else
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703
2704  fi
2705fi
2706if test -z "$CC"; then
2707  # Extract the first word of "cc", so it can be a program name with args.
2708set dummy cc; ac_word=$2
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if ${ac_cv_prog_CC+:} false; then :
2712  $as_echo_n "(cached) " >&6
2713else
2714  if test -n "$CC"; then
2715  ac_cv_prog_CC="$CC" # Let the user override the test.
2716else
2717  ac_prog_rejected=no
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721  IFS=$as_save_IFS
2722  test -z "$as_dir" && as_dir=.
2723    for ac_exec_ext in '' $ac_executable_extensions; do
2724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2726       ac_prog_rejected=yes
2727       continue
2728     fi
2729    ac_cv_prog_CC="cc"
2730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731    break 2
2732  fi
2733done
2734  done
2735IFS=$as_save_IFS
2736
2737if test $ac_prog_rejected = yes; then
2738  # We found a bogon in the path, so make sure we never use it.
2739  set dummy $ac_cv_prog_CC
2740  shift
2741  if test $# != 0; then
2742    # We chose a different compiler from the bogus one.
2743    # However, it has the same basename, so the bogon will be chosen
2744    # first if we set CC to just the basename; use the full file name.
2745    shift
2746    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2747  fi
2748fi
2749fi
2750fi
2751CC=$ac_cv_prog_CC
2752if test -n "$CC"; then
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754$as_echo "$CC" >&6; }
2755else
2756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
2758fi
2759
2760
2761fi
2762if test -z "$CC"; then
2763  if test -n "$ac_tool_prefix"; then
2764  for ac_prog in cl.exe
2765  do
2766    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; }
2770if ${ac_cv_prog_CC+:} false; then :
2771  $as_echo_n "(cached) " >&6
2772else
2773  if test -n "$CC"; then
2774  ac_cv_prog_CC="$CC" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779  IFS=$as_save_IFS
2780  test -z "$as_dir" && as_dir=.
2781    for ac_exec_ext in '' $ac_executable_extensions; do
2782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785    break 2
2786  fi
2787done
2788  done
2789IFS=$as_save_IFS
2790
2791fi
2792fi
2793CC=$ac_cv_prog_CC
2794if test -n "$CC"; then
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796$as_echo "$CC" >&6; }
2797else
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799$as_echo "no" >&6; }
2800fi
2801
2802
2803    test -n "$CC" && break
2804  done
2805fi
2806if test -z "$CC"; then
2807  ac_ct_CC=$CC
2808  for ac_prog in cl.exe
2809do
2810  # Extract the first word of "$ac_prog", so it can be a program name with args.
2811set dummy $ac_prog; ac_word=$2
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if ${ac_cv_prog_ac_ct_CC+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  if test -n "$ac_ct_CC"; then
2818  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  test -z "$as_dir" && as_dir=.
2825    for ac_exec_ext in '' $ac_executable_extensions; do
2826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827    ac_cv_prog_ac_ct_CC="$ac_prog"
2828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829    break 2
2830  fi
2831done
2832  done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838if test -n "$ac_ct_CC"; then
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2840$as_echo "$ac_ct_CC" >&6; }
2841else
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843$as_echo "no" >&6; }
2844fi
2845
2846
2847  test -n "$ac_ct_CC" && break
2848done
2849
2850  if test "x$ac_ct_CC" = x; then
2851    CC=""
2852  else
2853    case $cross_compiling:$ac_tool_warned in
2854yes:)
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857ac_tool_warned=yes ;;
2858esac
2859    CC=$ac_ct_CC
2860  fi
2861fi
2862
2863fi
2864
2865
2866test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868as_fn_error $? "no acceptable C compiler found in \$PATH
2869See \`config.log' for more details" "$LINENO" 5; }
2870
2871# Provide some information about the compiler.
2872$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2873set X $ac_compile
2874ac_compiler=$2
2875for ac_option in --version -v -V -qversion; do
2876  { { ac_try="$ac_compiler $ac_option >&5"
2877case "(($ac_try" in
2878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879  *) ac_try_echo=$ac_try;;
2880esac
2881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882$as_echo "$ac_try_echo"; } >&5
2883  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2884  ac_status=$?
2885  if test -s conftest.err; then
2886    sed '10a\
2887... rest of stderr output deleted ...
2888         10q' conftest.err >conftest.er1
2889    cat conftest.er1 >&5
2890  fi
2891  rm -f conftest.er1 conftest.err
2892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2893  test $ac_status = 0; }
2894done
2895
2896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h.  */
2898
2899int
2900main ()
2901{
2902
2903  ;
2904  return 0;
2905}
2906_ACEOF
2907ac_clean_files_save=$ac_clean_files
2908ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2909# Try to create an executable without -o first, disregard a.out.
2910# It will help us diagnose broken compilers, and finding out an intuition
2911# of exeext.
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2913$as_echo_n "checking whether the C compiler works... " >&6; }
2914ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2915
2916# The possible output files:
2917ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2918
2919ac_rmfiles=
2920for ac_file in $ac_files
2921do
2922  case $ac_file in
2923    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2924    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2925  esac
2926done
2927rm -f $ac_rmfiles
2928
2929if { { ac_try="$ac_link_default"
2930case "(($ac_try" in
2931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932  *) ac_try_echo=$ac_try;;
2933esac
2934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2935$as_echo "$ac_try_echo"; } >&5
2936  (eval "$ac_link_default") 2>&5
2937  ac_status=$?
2938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939  test $ac_status = 0; }; then :
2940  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2941# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2942# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2943# so that the user can short-circuit this test for compilers unknown to
2944# Autoconf.
2945for ac_file in $ac_files ''
2946do
2947  test -f "$ac_file" || continue
2948  case $ac_file in
2949    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2950	;;
2951    [ab].out )
2952	# We found the default executable, but exeext='' is most
2953	# certainly right.
2954	break;;
2955    *.* )
2956	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2957	then :; else
2958	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2959	fi
2960	# We set ac_cv_exeext here because the later test for it is not
2961	# safe: cross compilers may not add the suffix if given an `-o'
2962	# argument, so we may need to know it at that point already.
2963	# Even if this section looks crufty: it has the advantage of
2964	# actually working.
2965	break;;
2966    * )
2967	break;;
2968  esac
2969done
2970test "$ac_cv_exeext" = no && ac_cv_exeext=
2971
2972else
2973  ac_file=''
2974fi
2975if test -z "$ac_file"; then :
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978$as_echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983as_fn_error 77 "C compiler cannot create executables
2984See \`config.log' for more details" "$LINENO" 5; }
2985else
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2987$as_echo "yes" >&6; }
2988fi
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2990$as_echo_n "checking for C compiler default output file name... " >&6; }
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2992$as_echo "$ac_file" >&6; }
2993ac_exeext=$ac_cv_exeext
2994
2995rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2996ac_clean_files=$ac_clean_files_save
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2998$as_echo_n "checking for suffix of executables... " >&6; }
2999if { { ac_try="$ac_link"
3000case "(($ac_try" in
3001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002  *) ac_try_echo=$ac_try;;
3003esac
3004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005$as_echo "$ac_try_echo"; } >&5
3006  (eval "$ac_link") 2>&5
3007  ac_status=$?
3008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009  test $ac_status = 0; }; then :
3010  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3011# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3012# work properly (i.e., refer to `conftest.exe'), while it won't with
3013# `rm'.
3014for ac_file in conftest.exe conftest conftest.*; do
3015  test -f "$ac_file" || continue
3016  case $ac_file in
3017    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3018    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3019	  break;;
3020    * ) break;;
3021  esac
3022done
3023else
3024  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3027See \`config.log' for more details" "$LINENO" 5; }
3028fi
3029rm -f conftest conftest$ac_cv_exeext
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3031$as_echo "$ac_cv_exeext" >&6; }
3032
3033rm -f conftest.$ac_ext
3034EXEEXT=$ac_cv_exeext
3035ac_exeext=$EXEEXT
3036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037/* end confdefs.h.  */
3038#include <stdio.h>
3039int
3040main ()
3041{
3042FILE *f = fopen ("conftest.out", "w");
3043 return ferror (f) || fclose (f) != 0;
3044
3045  ;
3046  return 0;
3047}
3048_ACEOF
3049ac_clean_files="$ac_clean_files conftest.out"
3050# Check that the compiler produces executables we can run.  If not, either
3051# the compiler is broken, or we cross compile.
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3053$as_echo_n "checking whether we are cross compiling... " >&6; }
3054if test "$cross_compiling" != yes; then
3055  { { ac_try="$ac_link"
3056case "(($ac_try" in
3057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058  *) ac_try_echo=$ac_try;;
3059esac
3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061$as_echo "$ac_try_echo"; } >&5
3062  (eval "$ac_link") 2>&5
3063  ac_status=$?
3064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065  test $ac_status = 0; }
3066  if { ac_try='./conftest$ac_cv_exeext'
3067  { { case "(($ac_try" in
3068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069  *) ac_try_echo=$ac_try;;
3070esac
3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072$as_echo "$ac_try_echo"; } >&5
3073  (eval "$ac_try") 2>&5
3074  ac_status=$?
3075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076  test $ac_status = 0; }; }; then
3077    cross_compiling=no
3078  else
3079    if test "$cross_compiling" = maybe; then
3080	cross_compiling=yes
3081    else
3082	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084as_fn_error $? "cannot run C compiled programs.
3085If you meant to cross compile, use \`--host'.
3086See \`config.log' for more details" "$LINENO" 5; }
3087    fi
3088  fi
3089fi
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3091$as_echo "$cross_compiling" >&6; }
3092
3093rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3094ac_clean_files=$ac_clean_files_save
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3096$as_echo_n "checking for suffix of object files... " >&6; }
3097if ${ac_cv_objext+:} false; then :
3098  $as_echo_n "(cached) " >&6
3099else
3100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101/* end confdefs.h.  */
3102
3103int
3104main ()
3105{
3106
3107  ;
3108  return 0;
3109}
3110_ACEOF
3111rm -f conftest.o conftest.obj
3112if { { ac_try="$ac_compile"
3113case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118$as_echo "$ac_try_echo"; } >&5
3119  (eval "$ac_compile") 2>&5
3120  ac_status=$?
3121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122  test $ac_status = 0; }; then :
3123  for ac_file in conftest.o conftest.obj conftest.*; do
3124  test -f "$ac_file" || continue;
3125  case $ac_file in
3126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3127    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3128       break;;
3129  esac
3130done
3131else
3132  $as_echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137as_fn_error $? "cannot compute suffix of object files: cannot compile
3138See \`config.log' for more details" "$LINENO" 5; }
3139fi
3140rm -f conftest.$ac_cv_objext conftest.$ac_ext
3141fi
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3143$as_echo "$ac_cv_objext" >&6; }
3144OBJEXT=$ac_cv_objext
3145ac_objext=$OBJEXT
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3147$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3148if ${ac_cv_c_compiler_gnu+:} false; then :
3149  $as_echo_n "(cached) " >&6
3150else
3151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152/* end confdefs.h.  */
3153
3154int
3155main ()
3156{
3157#ifndef __GNUC__
3158       choke me
3159#endif
3160
3161  ;
3162  return 0;
3163}
3164_ACEOF
3165if ac_fn_c_try_compile "$LINENO"; then :
3166  ac_compiler_gnu=yes
3167else
3168  ac_compiler_gnu=no
3169fi
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171ac_cv_c_compiler_gnu=$ac_compiler_gnu
3172
3173fi
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3175$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3176if test $ac_compiler_gnu = yes; then
3177  GCC=yes
3178else
3179  GCC=
3180fi
3181ac_test_CFLAGS=${CFLAGS+set}
3182ac_save_CFLAGS=$CFLAGS
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3184$as_echo_n "checking whether $CC accepts -g... " >&6; }
3185if ${ac_cv_prog_cc_g+:} false; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  ac_save_c_werror_flag=$ac_c_werror_flag
3189   ac_c_werror_flag=yes
3190   ac_cv_prog_cc_g=no
3191   CFLAGS="-g"
3192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193/* end confdefs.h.  */
3194
3195int
3196main ()
3197{
3198
3199  ;
3200  return 0;
3201}
3202_ACEOF
3203if ac_fn_c_try_compile "$LINENO"; then :
3204  ac_cv_prog_cc_g=yes
3205else
3206  CFLAGS=""
3207      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208/* end confdefs.h.  */
3209
3210int
3211main ()
3212{
3213
3214  ;
3215  return 0;
3216}
3217_ACEOF
3218if ac_fn_c_try_compile "$LINENO"; then :
3219
3220else
3221  ac_c_werror_flag=$ac_save_c_werror_flag
3222	 CFLAGS="-g"
3223	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h.  */
3225
3226int
3227main ()
3228{
3229
3230  ;
3231  return 0;
3232}
3233_ACEOF
3234if ac_fn_c_try_compile "$LINENO"; then :
3235  ac_cv_prog_cc_g=yes
3236fi
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238fi
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242   ac_c_werror_flag=$ac_save_c_werror_flag
3243fi
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3245$as_echo "$ac_cv_prog_cc_g" >&6; }
3246if test "$ac_test_CFLAGS" = set; then
3247  CFLAGS=$ac_save_CFLAGS
3248elif test $ac_cv_prog_cc_g = yes; then
3249  if test "$GCC" = yes; then
3250    CFLAGS="-g -O2"
3251  else
3252    CFLAGS="-g"
3253  fi
3254else
3255  if test "$GCC" = yes; then
3256    CFLAGS="-O2"
3257  else
3258    CFLAGS=
3259  fi
3260fi
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3262$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3263if ${ac_cv_prog_cc_c89+:} false; then :
3264  $as_echo_n "(cached) " >&6
3265else
3266  ac_cv_prog_cc_c89=no
3267ac_save_CC=$CC
3268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269/* end confdefs.h.  */
3270#include <stdarg.h>
3271#include <stdio.h>
3272struct stat;
3273/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3274struct buf { int x; };
3275FILE * (*rcsopen) (struct buf *, struct stat *, int);
3276static char *e (p, i)
3277     char **p;
3278     int i;
3279{
3280  return p[i];
3281}
3282static char *f (char * (*g) (char **, int), char **p, ...)
3283{
3284  char *s;
3285  va_list v;
3286  va_start (v,p);
3287  s = g (p, va_arg (v,int));
3288  va_end (v);
3289  return s;
3290}
3291
3292/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3293   function prototypes and stuff, but not '\xHH' hex character constants.
3294   These don't provoke an error unfortunately, instead are silently treated
3295   as 'x'.  The following induces an error, until -std is added to get
3296   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3297   array size at least.  It's necessary to write '\x00'==0 to get something
3298   that's true only with -std.  */
3299int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3300
3301/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3302   inside strings and character constants.  */
3303#define FOO(x) 'x'
3304int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3305
3306int test (int i, double x);
3307struct s1 {int (*f) (int a);};
3308struct s2 {int (*f) (double a);};
3309int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3310int argc;
3311char **argv;
3312int
3313main ()
3314{
3315return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3316  ;
3317  return 0;
3318}
3319_ACEOF
3320for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3321	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3322do
3323  CC="$ac_save_CC $ac_arg"
3324  if ac_fn_c_try_compile "$LINENO"; then :
3325  ac_cv_prog_cc_c89=$ac_arg
3326fi
3327rm -f core conftest.err conftest.$ac_objext
3328  test "x$ac_cv_prog_cc_c89" != "xno" && break
3329done
3330rm -f conftest.$ac_ext
3331CC=$ac_save_CC
3332
3333fi
3334# AC_CACHE_VAL
3335case "x$ac_cv_prog_cc_c89" in
3336  x)
3337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3338$as_echo "none needed" >&6; } ;;
3339  xno)
3340    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3341$as_echo "unsupported" >&6; } ;;
3342  *)
3343    CC="$CC $ac_cv_prog_cc_c89"
3344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3345$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3346esac
3347if test "x$ac_cv_prog_cc_c89" != xno; then :
3348
3349fi
3350
3351ac_ext=c
3352ac_cpp='$CPP $CPPFLAGS'
3353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3358$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3359if ${ac_cv_path_SED+:} false; then :
3360  $as_echo_n "(cached) " >&6
3361else
3362            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3363     for ac_i in 1 2 3 4 5 6 7; do
3364       ac_script="$ac_script$as_nl$ac_script"
3365     done
3366     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3367     { ac_script=; unset ac_script;}
3368     if test -z "$SED"; then
3369  ac_path_SED_found=false
3370  # Loop through the user's path and test for each of PROGNAME-LIST
3371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374  IFS=$as_save_IFS
3375  test -z "$as_dir" && as_dir=.
3376    for ac_prog in sed gsed; do
3377    for ac_exec_ext in '' $ac_executable_extensions; do
3378      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3379      as_fn_executable_p "$ac_path_SED" || continue
3380# Check for GNU ac_path_SED and select it if it is found.
3381  # Check for GNU $ac_path_SED
3382case `"$ac_path_SED" --version 2>&1` in
3383*GNU*)
3384  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3385*)
3386  ac_count=0
3387  $as_echo_n 0123456789 >"conftest.in"
3388  while :
3389  do
3390    cat "conftest.in" "conftest.in" >"conftest.tmp"
3391    mv "conftest.tmp" "conftest.in"
3392    cp "conftest.in" "conftest.nl"
3393    $as_echo '' >> "conftest.nl"
3394    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3395    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3396    as_fn_arith $ac_count + 1 && ac_count=$as_val
3397    if test $ac_count -gt ${ac_path_SED_max-0}; then
3398      # Best one so far, save it but keep looking for a better one
3399      ac_cv_path_SED="$ac_path_SED"
3400      ac_path_SED_max=$ac_count
3401    fi
3402    # 10*(2^10) chars as input seems more than enough
3403    test $ac_count -gt 10 && break
3404  done
3405  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3406esac
3407
3408      $ac_path_SED_found && break 3
3409    done
3410  done
3411  done
3412IFS=$as_save_IFS
3413  if test -z "$ac_cv_path_SED"; then
3414    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3415  fi
3416else
3417  ac_cv_path_SED=$SED
3418fi
3419
3420fi
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3422$as_echo "$ac_cv_path_SED" >&6; }
3423 SED="$ac_cv_path_SED"
3424  rm -f conftest.sed
3425
3426test -z "$SED" && SED=sed
3427Xsed="$SED -e 1s/^X//"
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3440$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3441if ${ac_cv_path_GREP+:} false; then :
3442  $as_echo_n "(cached) " >&6
3443else
3444  if test -z "$GREP"; then
3445  ac_path_GREP_found=false
3446  # Loop through the user's path and test for each of PROGNAME-LIST
3447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3449do
3450  IFS=$as_save_IFS
3451  test -z "$as_dir" && as_dir=.
3452    for ac_prog in grep ggrep; do
3453    for ac_exec_ext in '' $ac_executable_extensions; do
3454      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3455      as_fn_executable_p "$ac_path_GREP" || continue
3456# Check for GNU ac_path_GREP and select it if it is found.
3457  # Check for GNU $ac_path_GREP
3458case `"$ac_path_GREP" --version 2>&1` in
3459*GNU*)
3460  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3461*)
3462  ac_count=0
3463  $as_echo_n 0123456789 >"conftest.in"
3464  while :
3465  do
3466    cat "conftest.in" "conftest.in" >"conftest.tmp"
3467    mv "conftest.tmp" "conftest.in"
3468    cp "conftest.in" "conftest.nl"
3469    $as_echo 'GREP' >> "conftest.nl"
3470    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3471    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3472    as_fn_arith $ac_count + 1 && ac_count=$as_val
3473    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3474      # Best one so far, save it but keep looking for a better one
3475      ac_cv_path_GREP="$ac_path_GREP"
3476      ac_path_GREP_max=$ac_count
3477    fi
3478    # 10*(2^10) chars as input seems more than enough
3479    test $ac_count -gt 10 && break
3480  done
3481  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3482esac
3483
3484      $ac_path_GREP_found && break 3
3485    done
3486  done
3487  done
3488IFS=$as_save_IFS
3489  if test -z "$ac_cv_path_GREP"; then
3490    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3491  fi
3492else
3493  ac_cv_path_GREP=$GREP
3494fi
3495
3496fi
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3498$as_echo "$ac_cv_path_GREP" >&6; }
3499 GREP="$ac_cv_path_GREP"
3500
3501
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3503$as_echo_n "checking for egrep... " >&6; }
3504if ${ac_cv_path_EGREP+:} false; then :
3505  $as_echo_n "(cached) " >&6
3506else
3507  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3508   then ac_cv_path_EGREP="$GREP -E"
3509   else
3510     if test -z "$EGREP"; then
3511  ac_path_EGREP_found=false
3512  # Loop through the user's path and test for each of PROGNAME-LIST
3513  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3515do
3516  IFS=$as_save_IFS
3517  test -z "$as_dir" && as_dir=.
3518    for ac_prog in egrep; do
3519    for ac_exec_ext in '' $ac_executable_extensions; do
3520      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3521      as_fn_executable_p "$ac_path_EGREP" || continue
3522# Check for GNU ac_path_EGREP and select it if it is found.
3523  # Check for GNU $ac_path_EGREP
3524case `"$ac_path_EGREP" --version 2>&1` in
3525*GNU*)
3526  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3527*)
3528  ac_count=0
3529  $as_echo_n 0123456789 >"conftest.in"
3530  while :
3531  do
3532    cat "conftest.in" "conftest.in" >"conftest.tmp"
3533    mv "conftest.tmp" "conftest.in"
3534    cp "conftest.in" "conftest.nl"
3535    $as_echo 'EGREP' >> "conftest.nl"
3536    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3537    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3538    as_fn_arith $ac_count + 1 && ac_count=$as_val
3539    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3540      # Best one so far, save it but keep looking for a better one
3541      ac_cv_path_EGREP="$ac_path_EGREP"
3542      ac_path_EGREP_max=$ac_count
3543    fi
3544    # 10*(2^10) chars as input seems more than enough
3545    test $ac_count -gt 10 && break
3546  done
3547  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3548esac
3549
3550      $ac_path_EGREP_found && break 3
3551    done
3552  done
3553  done
3554IFS=$as_save_IFS
3555  if test -z "$ac_cv_path_EGREP"; then
3556    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3557  fi
3558else
3559  ac_cv_path_EGREP=$EGREP
3560fi
3561
3562   fi
3563fi
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3565$as_echo "$ac_cv_path_EGREP" >&6; }
3566 EGREP="$ac_cv_path_EGREP"
3567
3568
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3570$as_echo_n "checking for fgrep... " >&6; }
3571if ${ac_cv_path_FGREP+:} false; then :
3572  $as_echo_n "(cached) " >&6
3573else
3574  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3575   then ac_cv_path_FGREP="$GREP -F"
3576   else
3577     if test -z "$FGREP"; then
3578  ac_path_FGREP_found=false
3579  # Loop through the user's path and test for each of PROGNAME-LIST
3580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3582do
3583  IFS=$as_save_IFS
3584  test -z "$as_dir" && as_dir=.
3585    for ac_prog in fgrep; do
3586    for ac_exec_ext in '' $ac_executable_extensions; do
3587      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3588      as_fn_executable_p "$ac_path_FGREP" || continue
3589# Check for GNU ac_path_FGREP and select it if it is found.
3590  # Check for GNU $ac_path_FGREP
3591case `"$ac_path_FGREP" --version 2>&1` in
3592*GNU*)
3593  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3594*)
3595  ac_count=0
3596  $as_echo_n 0123456789 >"conftest.in"
3597  while :
3598  do
3599    cat "conftest.in" "conftest.in" >"conftest.tmp"
3600    mv "conftest.tmp" "conftest.in"
3601    cp "conftest.in" "conftest.nl"
3602    $as_echo 'FGREP' >> "conftest.nl"
3603    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3604    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3605    as_fn_arith $ac_count + 1 && ac_count=$as_val
3606    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3607      # Best one so far, save it but keep looking for a better one
3608      ac_cv_path_FGREP="$ac_path_FGREP"
3609      ac_path_FGREP_max=$ac_count
3610    fi
3611    # 10*(2^10) chars as input seems more than enough
3612    test $ac_count -gt 10 && break
3613  done
3614  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3615esac
3616
3617      $ac_path_FGREP_found && break 3
3618    done
3619  done
3620  done
3621IFS=$as_save_IFS
3622  if test -z "$ac_cv_path_FGREP"; then
3623    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3624  fi
3625else
3626  ac_cv_path_FGREP=$FGREP
3627fi
3628
3629   fi
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3632$as_echo "$ac_cv_path_FGREP" >&6; }
3633 FGREP="$ac_cv_path_FGREP"
3634
3635
3636test -z "$GREP" && GREP=grep
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656# Check whether --with-gnu-ld was given.
3657if test "${with_gnu_ld+set}" = set; then :
3658  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3659else
3660  with_gnu_ld=no
3661fi
3662
3663ac_prog=ld
3664if test "$GCC" = yes; then
3665  # Check if gcc -print-prog-name=ld gives a path.
3666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3667$as_echo_n "checking for ld used by $CC... " >&6; }
3668  case $host in
3669  *-*-mingw*)
3670    # gcc leaves a trailing carriage return which upsets mingw
3671    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3672  *)
3673    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3674  esac
3675  case $ac_prog in
3676    # Accept absolute paths.
3677    [\\/]* | ?:[\\/]*)
3678      re_direlt='/[^/][^/]*/\.\./'
3679      # Canonicalize the pathname of ld
3680      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3681      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3682	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3683      done
3684      test -z "$LD" && LD="$ac_prog"
3685      ;;
3686  "")
3687    # If it fails, then pretend we aren't using GCC.
3688    ac_prog=ld
3689    ;;
3690  *)
3691    # If it is relative, then search for the first ld in PATH.
3692    with_gnu_ld=unknown
3693    ;;
3694  esac
3695elif test "$with_gnu_ld" = yes; then
3696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3697$as_echo_n "checking for GNU ld... " >&6; }
3698else
3699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3700$as_echo_n "checking for non-GNU ld... " >&6; }
3701fi
3702if ${lt_cv_path_LD+:} false; then :
3703  $as_echo_n "(cached) " >&6
3704else
3705  if test -z "$LD"; then
3706  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3707  for ac_dir in $PATH; do
3708    IFS="$lt_save_ifs"
3709    test -z "$ac_dir" && ac_dir=.
3710    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3711      lt_cv_path_LD="$ac_dir/$ac_prog"
3712      # Check to see if the program is GNU ld.  I'd rather use --version,
3713      # but apparently some variants of GNU ld only accept -v.
3714      # Break only if it was the GNU/non-GNU ld that we prefer.
3715      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3716      *GNU* | *'with BFD'*)
3717	test "$with_gnu_ld" != no && break
3718	;;
3719      *)
3720	test "$with_gnu_ld" != yes && break
3721	;;
3722      esac
3723    fi
3724  done
3725  IFS="$lt_save_ifs"
3726else
3727  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3728fi
3729fi
3730
3731LD="$lt_cv_path_LD"
3732if test -n "$LD"; then
3733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3734$as_echo "$LD" >&6; }
3735else
3736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737$as_echo "no" >&6; }
3738fi
3739test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3741$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3742if ${lt_cv_prog_gnu_ld+:} false; then :
3743  $as_echo_n "(cached) " >&6
3744else
3745  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3746case `$LD -v 2>&1 </dev/null` in
3747*GNU* | *'with BFD'*)
3748  lt_cv_prog_gnu_ld=yes
3749  ;;
3750*)
3751  lt_cv_prog_gnu_ld=no
3752  ;;
3753esac
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3756$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3757with_gnu_ld=$lt_cv_prog_gnu_ld
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3768$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3769if ${lt_cv_path_NM+:} false; then :
3770  $as_echo_n "(cached) " >&6
3771else
3772  if test -n "$NM"; then
3773  # Let the user override the test.
3774  lt_cv_path_NM="$NM"
3775else
3776  lt_nm_to_check="${ac_tool_prefix}nm"
3777  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3778    lt_nm_to_check="$lt_nm_to_check nm"
3779  fi
3780  for lt_tmp_nm in $lt_nm_to_check; do
3781    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3782    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3783      IFS="$lt_save_ifs"
3784      test -z "$ac_dir" && ac_dir=.
3785      tmp_nm="$ac_dir/$lt_tmp_nm"
3786      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3787	# Check to see if the nm accepts a BSD-compat flag.
3788	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3789	#   nm: unknown option "B" ignored
3790	# Tru64's nm complains that /dev/null is an invalid object file
3791	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3792	*/dev/null* | *'Invalid file or object type'*)
3793	  lt_cv_path_NM="$tmp_nm -B"
3794	  break
3795	  ;;
3796	*)
3797	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3798	  */dev/null*)
3799	    lt_cv_path_NM="$tmp_nm -p"
3800	    break
3801	    ;;
3802	  *)
3803	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3804	    continue # so that we can try to find one that supports BSD flags
3805	    ;;
3806	  esac
3807	  ;;
3808	esac
3809      fi
3810    done
3811    IFS="$lt_save_ifs"
3812  done
3813  : ${lt_cv_path_NM=no}
3814fi
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3817$as_echo "$lt_cv_path_NM" >&6; }
3818if test "$lt_cv_path_NM" != "no"; then
3819  NM="$lt_cv_path_NM"
3820else
3821  # Didn't find any BSD compatible name lister, look for dumpbin.
3822  if test -n "$ac_tool_prefix"; then
3823  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3824  do
3825    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
3829if ${ac_cv_prog_DUMPBIN+:} false; then :
3830  $as_echo_n "(cached) " >&6
3831else
3832  if test -n "$DUMPBIN"; then
3833  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3834else
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838  IFS=$as_save_IFS
3839  test -z "$as_dir" && as_dir=.
3840    for ac_exec_ext in '' $ac_executable_extensions; do
3841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844    break 2
3845  fi
3846done
3847  done
3848IFS=$as_save_IFS
3849
3850fi
3851fi
3852DUMPBIN=$ac_cv_prog_DUMPBIN
3853if test -n "$DUMPBIN"; then
3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3855$as_echo "$DUMPBIN" >&6; }
3856else
3857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
3859fi
3860
3861
3862    test -n "$DUMPBIN" && break
3863  done
3864fi
3865if test -z "$DUMPBIN"; then
3866  ac_ct_DUMPBIN=$DUMPBIN
3867  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3868do
3869  # Extract the first word of "$ac_prog", so it can be a program name with args.
3870set dummy $ac_prog; ac_word=$2
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872$as_echo_n "checking for $ac_word... " >&6; }
3873if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3874  $as_echo_n "(cached) " >&6
3875else
3876  if test -n "$ac_ct_DUMPBIN"; then
3877  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3878else
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882  IFS=$as_save_IFS
3883  test -z "$as_dir" && as_dir=.
3884    for ac_exec_ext in '' $ac_executable_extensions; do
3885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888    break 2
3889  fi
3890done
3891  done
3892IFS=$as_save_IFS
3893
3894fi
3895fi
3896ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3897if test -n "$ac_ct_DUMPBIN"; then
3898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3899$as_echo "$ac_ct_DUMPBIN" >&6; }
3900else
3901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902$as_echo "no" >&6; }
3903fi
3904
3905
3906  test -n "$ac_ct_DUMPBIN" && break
3907done
3908
3909  if test "x$ac_ct_DUMPBIN" = x; then
3910    DUMPBIN=":"
3911  else
3912    case $cross_compiling:$ac_tool_warned in
3913yes:)
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916ac_tool_warned=yes ;;
3917esac
3918    DUMPBIN=$ac_ct_DUMPBIN
3919  fi
3920fi
3921
3922
3923  if test "$DUMPBIN" != ":"; then
3924    NM="$DUMPBIN"
3925  fi
3926fi
3927test -z "$NM" && NM=nm
3928
3929
3930
3931
3932
3933
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3935$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3936if ${lt_cv_nm_interface+:} false; then :
3937  $as_echo_n "(cached) " >&6
3938else
3939  lt_cv_nm_interface="BSD nm"
3940  echo "int some_variable = 0;" > conftest.$ac_ext
3941  (eval echo "\"\$as_me:3941: $ac_compile\"" >&5)
3942  (eval "$ac_compile" 2>conftest.err)
3943  cat conftest.err >&5
3944  (eval echo "\"\$as_me:3944: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3945  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3946  cat conftest.err >&5
3947  (eval echo "\"\$as_me:3947: output\"" >&5)
3948  cat conftest.out >&5
3949  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3950    lt_cv_nm_interface="MS dumpbin"
3951  fi
3952  rm -f conftest*
3953fi
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3955$as_echo "$lt_cv_nm_interface" >&6; }
3956
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3958$as_echo_n "checking whether ln -s works... " >&6; }
3959LN_S=$as_ln_s
3960if test "$LN_S" = "ln -s"; then
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962$as_echo "yes" >&6; }
3963else
3964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3965$as_echo "no, using $LN_S" >&6; }
3966fi
3967
3968# find the maximum length of command line arguments
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3970$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3971if ${lt_cv_sys_max_cmd_len+:} false; then :
3972  $as_echo_n "(cached) " >&6
3973else
3974    i=0
3975  teststring="ABCD"
3976
3977  case $build_os in
3978  msdosdjgpp*)
3979    # On DJGPP, this test can blow up pretty badly due to problems in libc
3980    # (any single argument exceeding 2000 bytes causes a buffer overrun
3981    # during glob expansion).  Even if it were fixed, the result of this
3982    # check would be larger than it should be.
3983    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3984    ;;
3985
3986  gnu*)
3987    # Under GNU Hurd, this test is not required because there is
3988    # no limit to the length of command line arguments.
3989    # Libtool will interpret -1 as no limit whatsoever
3990    lt_cv_sys_max_cmd_len=-1;
3991    ;;
3992
3993  cygwin* | mingw* | cegcc*)
3994    # On Win9x/ME, this test blows up -- it succeeds, but takes
3995    # about 5 minutes as the teststring grows exponentially.
3996    # Worse, since 9x/ME are not pre-emptively multitasking,
3997    # you end up with a "frozen" computer, even though with patience
3998    # the test eventually succeeds (with a max line length of 256k).
3999    # Instead, let's just punt: use the minimum linelength reported by
4000    # all of the supported platforms: 8192 (on NT/2K/XP).
4001    lt_cv_sys_max_cmd_len=8192;
4002    ;;
4003
4004  amigaos*)
4005    # On AmigaOS with pdksh, this test takes hours, literally.
4006    # So we just punt and use a minimum line length of 8192.
4007    lt_cv_sys_max_cmd_len=8192;
4008    ;;
4009
4010  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4011    # This has been around since 386BSD, at least.  Likely further.
4012    if test -x /sbin/sysctl; then
4013      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4014    elif test -x /usr/sbin/sysctl; then
4015      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4016    else
4017      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4018    fi
4019    # And add a safety zone
4020    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4021    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4022    ;;
4023
4024  interix*)
4025    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4026    lt_cv_sys_max_cmd_len=196608
4027    ;;
4028
4029  osf*)
4030    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4031    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4032    # nice to cause kernel panics so lets avoid the loop below.
4033    # First set a reasonable default.
4034    lt_cv_sys_max_cmd_len=16384
4035    #
4036    if test -x /sbin/sysconfig; then
4037      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4038        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4039      esac
4040    fi
4041    ;;
4042  sco3.2v5*)
4043    lt_cv_sys_max_cmd_len=102400
4044    ;;
4045  sysv5* | sco5v6* | sysv4.2uw2*)
4046    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4047    if test -n "$kargmax"; then
4048      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4049    else
4050      lt_cv_sys_max_cmd_len=32768
4051    fi
4052    ;;
4053  *)
4054    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4055    if test -n "$lt_cv_sys_max_cmd_len"; then
4056      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4057      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4058    else
4059      # Make teststring a little bigger before we do anything with it.
4060      # a 1K string should be a reasonable start.
4061      for i in 1 2 3 4 5 6 7 8 ; do
4062        teststring=$teststring$teststring
4063      done
4064      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4065      # If test is not a shell built-in, we'll probably end up computing a
4066      # maximum length that is only half of the actual maximum length, but
4067      # we can't tell.
4068      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4069	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4070	      test $i != 17 # 1/2 MB should be enough
4071      do
4072        i=`expr $i + 1`
4073        teststring=$teststring$teststring
4074      done
4075      # Only check the string length outside the loop.
4076      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4077      teststring=
4078      # Add a significant safety factor because C++ compilers can tack on
4079      # massive amounts of additional arguments before passing them to the
4080      # linker.  It appears as though 1/2 is a usable value.
4081      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4082    fi
4083    ;;
4084  esac
4085
4086fi
4087
4088if test -n $lt_cv_sys_max_cmd_len ; then
4089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4090$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4091else
4092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4093$as_echo "none" >&6; }
4094fi
4095max_cmd_len=$lt_cv_sys_max_cmd_len
4096
4097
4098
4099
4100
4101
4102: ${CP="cp -f"}
4103: ${MV="mv -f"}
4104: ${RM="rm -f"}
4105
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4107$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4108# Try some XSI features
4109xsi_shell=no
4110( _lt_dummy="a/b/c"
4111  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4112      = c,a/b,, \
4113    && eval 'test $(( 1 + 1 )) -eq 2 \
4114    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4115  && xsi_shell=yes
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4117$as_echo "$xsi_shell" >&6; }
4118
4119
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4121$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4122lt_shell_append=no
4123( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4124    >/dev/null 2>&1 \
4125  && lt_shell_append=yes
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4127$as_echo "$lt_shell_append" >&6; }
4128
4129
4130if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4131  lt_unset=unset
4132else
4133  lt_unset=false
4134fi
4135
4136
4137
4138
4139
4140# test EBCDIC or ASCII
4141case `echo X|tr X '\101'` in
4142 A) # ASCII based system
4143    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4144  lt_SP2NL='tr \040 \012'
4145  lt_NL2SP='tr \015\012 \040\040'
4146  ;;
4147 *) # EBCDIC based system
4148  lt_SP2NL='tr \100 \n'
4149  lt_NL2SP='tr \r\n \100\100'
4150  ;;
4151esac
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4162$as_echo_n "checking for $LD option to reload object files... " >&6; }
4163if ${lt_cv_ld_reload_flag+:} false; then :
4164  $as_echo_n "(cached) " >&6
4165else
4166  lt_cv_ld_reload_flag='-r'
4167fi
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4169$as_echo "$lt_cv_ld_reload_flag" >&6; }
4170reload_flag=$lt_cv_ld_reload_flag
4171case $reload_flag in
4172"" | " "*) ;;
4173*) reload_flag=" $reload_flag" ;;
4174esac
4175reload_cmds='$LD$reload_flag -o $output$reload_objs'
4176case $host_os in
4177  darwin*)
4178    if test "$GCC" = yes; then
4179      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4180    else
4181      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4182    fi
4183    ;;
4184esac
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194if test -n "$ac_tool_prefix"; then
4195  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4196set dummy ${ac_tool_prefix}objdump; ac_word=$2
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198$as_echo_n "checking for $ac_word... " >&6; }
4199if ${ac_cv_prog_OBJDUMP+:} false; then :
4200  $as_echo_n "(cached) " >&6
4201else
4202  if test -n "$OBJDUMP"; then
4203  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4204else
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208  IFS=$as_save_IFS
4209  test -z "$as_dir" && as_dir=.
4210    for ac_exec_ext in '' $ac_executable_extensions; do
4211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214    break 2
4215  fi
4216done
4217  done
4218IFS=$as_save_IFS
4219
4220fi
4221fi
4222OBJDUMP=$ac_cv_prog_OBJDUMP
4223if test -n "$OBJDUMP"; then
4224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4225$as_echo "$OBJDUMP" >&6; }
4226else
4227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228$as_echo "no" >&6; }
4229fi
4230
4231
4232fi
4233if test -z "$ac_cv_prog_OBJDUMP"; then
4234  ac_ct_OBJDUMP=$OBJDUMP
4235  # Extract the first word of "objdump", so it can be a program name with args.
4236set dummy objdump; ac_word=$2
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238$as_echo_n "checking for $ac_word... " >&6; }
4239if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4240  $as_echo_n "(cached) " >&6
4241else
4242  if test -n "$ac_ct_OBJDUMP"; then
4243  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4244else
4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248  IFS=$as_save_IFS
4249  test -z "$as_dir" && as_dir=.
4250    for ac_exec_ext in '' $ac_executable_extensions; do
4251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254    break 2
4255  fi
4256done
4257  done
4258IFS=$as_save_IFS
4259
4260fi
4261fi
4262ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4263if test -n "$ac_ct_OBJDUMP"; then
4264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4265$as_echo "$ac_ct_OBJDUMP" >&6; }
4266else
4267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268$as_echo "no" >&6; }
4269fi
4270
4271  if test "x$ac_ct_OBJDUMP" = x; then
4272    OBJDUMP="false"
4273  else
4274    case $cross_compiling:$ac_tool_warned in
4275yes:)
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4278ac_tool_warned=yes ;;
4279esac
4280    OBJDUMP=$ac_ct_OBJDUMP
4281  fi
4282else
4283  OBJDUMP="$ac_cv_prog_OBJDUMP"
4284fi
4285
4286test -z "$OBJDUMP" && OBJDUMP=objdump
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4297$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4298if ${lt_cv_deplibs_check_method+:} false; then :
4299  $as_echo_n "(cached) " >&6
4300else
4301  lt_cv_file_magic_cmd='$MAGIC_CMD'
4302lt_cv_file_magic_test_file=
4303lt_cv_deplibs_check_method='unknown'
4304# Need to set the preceding variable on all platforms that support
4305# interlibrary dependencies.
4306# 'none' -- dependencies not supported.
4307# `unknown' -- same as none, but documents that we really don't know.
4308# 'pass_all' -- all dependencies passed with no checks.
4309# 'test_compile' -- check by making test program.
4310# 'file_magic [[regex]]' -- check by looking for files in library path
4311# which responds to the $file_magic_cmd with a given extended regex.
4312# If you have `file' or equivalent on your system and you're not sure
4313# whether `pass_all' will *always* work, you probably want this one.
4314
4315case $host_os in
4316aix[4-9]*)
4317  lt_cv_deplibs_check_method=pass_all
4318  ;;
4319
4320beos*)
4321  lt_cv_deplibs_check_method=pass_all
4322  ;;
4323
4324bsdi[45]*)
4325  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4326  lt_cv_file_magic_cmd='/usr/bin/file -L'
4327  lt_cv_file_magic_test_file=/shlib/libc.so
4328  ;;
4329
4330cygwin*)
4331  # func_win32_libid is a shell function defined in ltmain.sh
4332  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4333  lt_cv_file_magic_cmd='func_win32_libid'
4334  ;;
4335
4336mingw* | pw32*)
4337  # Base MSYS/MinGW do not provide the 'file' command needed by
4338  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4339  # unless we find 'file', for example because we are cross-compiling.
4340  if ( file / ) >/dev/null 2>&1; then
4341    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4342    lt_cv_file_magic_cmd='func_win32_libid'
4343  else
4344    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4345    lt_cv_file_magic_cmd='$OBJDUMP -f'
4346  fi
4347  ;;
4348
4349cegcc)
4350  # use the weaker test based on 'objdump'. See mingw*.
4351  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4352  lt_cv_file_magic_cmd='$OBJDUMP -f'
4353  ;;
4354
4355darwin* | rhapsody*)
4356  lt_cv_deplibs_check_method=pass_all
4357  ;;
4358
4359freebsd* | dragonfly*)
4360  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4361    case $host_cpu in
4362    i*86 )
4363      # Not sure whether the presence of OpenBSD here was a mistake.
4364      # Let's accept both of them until this is cleared up.
4365      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4366      lt_cv_file_magic_cmd=/usr/bin/file
4367      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4368      ;;
4369    esac
4370  else
4371    lt_cv_deplibs_check_method=pass_all
4372  fi
4373  ;;
4374
4375gnu*)
4376  lt_cv_deplibs_check_method=pass_all
4377  ;;
4378
4379hpux10.20* | hpux11*)
4380  lt_cv_file_magic_cmd=/usr/bin/file
4381  case $host_cpu in
4382  ia64*)
4383    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4384    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4385    ;;
4386  hppa*64*)
4387    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4388    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4389    ;;
4390  *)
4391    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4392    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4393    ;;
4394  esac
4395  ;;
4396
4397interix[3-9]*)
4398  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4399  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4400  ;;
4401
4402irix5* | irix6* | nonstopux*)
4403  case $LD in
4404  *-32|*"-32 ") libmagic=32-bit;;
4405  *-n32|*"-n32 ") libmagic=N32;;
4406  *-64|*"-64 ") libmagic=64-bit;;
4407  *) libmagic=never-match;;
4408  esac
4409  lt_cv_deplibs_check_method=pass_all
4410  ;;
4411
4412# This must be Linux ELF.
4413linux* | k*bsd*-gnu)
4414  lt_cv_deplibs_check_method=pass_all
4415  ;;
4416
4417netbsd*)
4418  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4419    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4420  else
4421    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4422  fi
4423  ;;
4424
4425newos6*)
4426  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4427  lt_cv_file_magic_cmd=/usr/bin/file
4428  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4429  ;;
4430
4431*nto* | *qnx*)
4432  lt_cv_deplibs_check_method=pass_all
4433  ;;
4434
4435openbsd*)
4436  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4437    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4438  else
4439    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4440  fi
4441  ;;
4442
4443osf3* | osf4* | osf5*)
4444  lt_cv_deplibs_check_method=pass_all
4445  ;;
4446
4447rdos*)
4448  lt_cv_deplibs_check_method=pass_all
4449  ;;
4450
4451solaris*)
4452  lt_cv_deplibs_check_method=pass_all
4453  ;;
4454
4455sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4456  lt_cv_deplibs_check_method=pass_all
4457  ;;
4458
4459sysv4 | sysv4.3*)
4460  case $host_vendor in
4461  motorola)
4462    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]'
4463    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4464    ;;
4465  ncr)
4466    lt_cv_deplibs_check_method=pass_all
4467    ;;
4468  sequent)
4469    lt_cv_file_magic_cmd='/bin/file'
4470    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4471    ;;
4472  sni)
4473    lt_cv_file_magic_cmd='/bin/file'
4474    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4475    lt_cv_file_magic_test_file=/lib/libc.so
4476    ;;
4477  siemens)
4478    lt_cv_deplibs_check_method=pass_all
4479    ;;
4480  pc)
4481    lt_cv_deplibs_check_method=pass_all
4482    ;;
4483  esac
4484  ;;
4485
4486tpf*)
4487  lt_cv_deplibs_check_method=pass_all
4488  ;;
4489esac
4490
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4493$as_echo "$lt_cv_deplibs_check_method" >&6; }
4494file_magic_cmd=$lt_cv_file_magic_cmd
4495deplibs_check_method=$lt_cv_deplibs_check_method
4496test -z "$deplibs_check_method" && deplibs_check_method=unknown
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509if test -n "$ac_tool_prefix"; then
4510  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4511set dummy ${ac_tool_prefix}ar; ac_word=$2
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513$as_echo_n "checking for $ac_word... " >&6; }
4514if ${ac_cv_prog_AR+:} false; then :
4515  $as_echo_n "(cached) " >&6
4516else
4517  if test -n "$AR"; then
4518  ac_cv_prog_AR="$AR" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523  IFS=$as_save_IFS
4524  test -z "$as_dir" && as_dir=.
4525    for ac_exec_ext in '' $ac_executable_extensions; do
4526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527    ac_cv_prog_AR="${ac_tool_prefix}ar"
4528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529    break 2
4530  fi
4531done
4532  done
4533IFS=$as_save_IFS
4534
4535fi
4536fi
4537AR=$ac_cv_prog_AR
4538if test -n "$AR"; then
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4540$as_echo "$AR" >&6; }
4541else
4542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; }
4544fi
4545
4546
4547fi
4548if test -z "$ac_cv_prog_AR"; then
4549  ac_ct_AR=$AR
4550  # Extract the first word of "ar", so it can be a program name with args.
4551set dummy ar; ac_word=$2
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if ${ac_cv_prog_ac_ct_AR+:} false; then :
4555  $as_echo_n "(cached) " >&6
4556else
4557  if test -n "$ac_ct_AR"; then
4558  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563  IFS=$as_save_IFS
4564  test -z "$as_dir" && as_dir=.
4565    for ac_exec_ext in '' $ac_executable_extensions; do
4566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567    ac_cv_prog_ac_ct_AR="ar"
4568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569    break 2
4570  fi
4571done
4572  done
4573IFS=$as_save_IFS
4574
4575fi
4576fi
4577ac_ct_AR=$ac_cv_prog_ac_ct_AR
4578if test -n "$ac_ct_AR"; then
4579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4580$as_echo "$ac_ct_AR" >&6; }
4581else
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584fi
4585
4586  if test "x$ac_ct_AR" = x; then
4587    AR="false"
4588  else
4589    case $cross_compiling:$ac_tool_warned in
4590yes:)
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4593ac_tool_warned=yes ;;
4594esac
4595    AR=$ac_ct_AR
4596  fi
4597else
4598  AR="$ac_cv_prog_AR"
4599fi
4600
4601test -z "$AR" && AR=ar
4602test -z "$AR_FLAGS" && AR_FLAGS=cru
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614if test -n "$ac_tool_prefix"; then
4615  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4616set dummy ${ac_tool_prefix}strip; ac_word=$2
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618$as_echo_n "checking for $ac_word... " >&6; }
4619if ${ac_cv_prog_STRIP+:} false; then :
4620  $as_echo_n "(cached) " >&6
4621else
4622  if test -n "$STRIP"; then
4623  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4624else
4625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
4628  IFS=$as_save_IFS
4629  test -z "$as_dir" && as_dir=.
4630    for ac_exec_ext in '' $ac_executable_extensions; do
4631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634    break 2
4635  fi
4636done
4637  done
4638IFS=$as_save_IFS
4639
4640fi
4641fi
4642STRIP=$ac_cv_prog_STRIP
4643if test -n "$STRIP"; then
4644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4645$as_echo "$STRIP" >&6; }
4646else
4647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648$as_echo "no" >&6; }
4649fi
4650
4651
4652fi
4653if test -z "$ac_cv_prog_STRIP"; then
4654  ac_ct_STRIP=$STRIP
4655  # Extract the first word of "strip", so it can be a program name with args.
4656set dummy strip; ac_word=$2
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658$as_echo_n "checking for $ac_word... " >&6; }
4659if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4660  $as_echo_n "(cached) " >&6
4661else
4662  if test -n "$ac_ct_STRIP"; then
4663  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668  IFS=$as_save_IFS
4669  test -z "$as_dir" && as_dir=.
4670    for ac_exec_ext in '' $ac_executable_extensions; do
4671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672    ac_cv_prog_ac_ct_STRIP="strip"
4673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674    break 2
4675  fi
4676done
4677  done
4678IFS=$as_save_IFS
4679
4680fi
4681fi
4682ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4683if test -n "$ac_ct_STRIP"; then
4684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4685$as_echo "$ac_ct_STRIP" >&6; }
4686else
4687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688$as_echo "no" >&6; }
4689fi
4690
4691  if test "x$ac_ct_STRIP" = x; then
4692    STRIP=":"
4693  else
4694    case $cross_compiling:$ac_tool_warned in
4695yes:)
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698ac_tool_warned=yes ;;
4699esac
4700    STRIP=$ac_ct_STRIP
4701  fi
4702else
4703  STRIP="$ac_cv_prog_STRIP"
4704fi
4705
4706test -z "$STRIP" && STRIP=:
4707
4708
4709
4710
4711
4712
4713if test -n "$ac_tool_prefix"; then
4714  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4715set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717$as_echo_n "checking for $ac_word... " >&6; }
4718if ${ac_cv_prog_RANLIB+:} false; then :
4719  $as_echo_n "(cached) " >&6
4720else
4721  if test -n "$RANLIB"; then
4722  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4723else
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727  IFS=$as_save_IFS
4728  test -z "$as_dir" && as_dir=.
4729    for ac_exec_ext in '' $ac_executable_extensions; do
4730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4731    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733    break 2
4734  fi
4735done
4736  done
4737IFS=$as_save_IFS
4738
4739fi
4740fi
4741RANLIB=$ac_cv_prog_RANLIB
4742if test -n "$RANLIB"; then
4743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4744$as_echo "$RANLIB" >&6; }
4745else
4746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747$as_echo "no" >&6; }
4748fi
4749
4750
4751fi
4752if test -z "$ac_cv_prog_RANLIB"; then
4753  ac_ct_RANLIB=$RANLIB
4754  # Extract the first word of "ranlib", so it can be a program name with args.
4755set dummy ranlib; ac_word=$2
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757$as_echo_n "checking for $ac_word... " >&6; }
4758if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4759  $as_echo_n "(cached) " >&6
4760else
4761  if test -n "$ac_ct_RANLIB"; then
4762  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4763else
4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH
4766do
4767  IFS=$as_save_IFS
4768  test -z "$as_dir" && as_dir=.
4769    for ac_exec_ext in '' $ac_executable_extensions; do
4770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771    ac_cv_prog_ac_ct_RANLIB="ranlib"
4772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773    break 2
4774  fi
4775done
4776  done
4777IFS=$as_save_IFS
4778
4779fi
4780fi
4781ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4782if test -n "$ac_ct_RANLIB"; then
4783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4784$as_echo "$ac_ct_RANLIB" >&6; }
4785else
4786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787$as_echo "no" >&6; }
4788fi
4789
4790  if test "x$ac_ct_RANLIB" = x; then
4791    RANLIB=":"
4792  else
4793    case $cross_compiling:$ac_tool_warned in
4794yes:)
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4797ac_tool_warned=yes ;;
4798esac
4799    RANLIB=$ac_ct_RANLIB
4800  fi
4801else
4802  RANLIB="$ac_cv_prog_RANLIB"
4803fi
4804
4805test -z "$RANLIB" && RANLIB=:
4806
4807
4808
4809
4810
4811
4812# Determine commands to create old-style static archives.
4813old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4814old_postinstall_cmds='chmod 644 $oldlib'
4815old_postuninstall_cmds=
4816
4817if test -n "$RANLIB"; then
4818  case $host_os in
4819  openbsd*)
4820    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4821    ;;
4822  *)
4823    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4824    ;;
4825  esac
4826  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4827fi
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862# If no C compiler was specified, use CC.
4863LTCC=${LTCC-"$CC"}
4864
4865# If no C compiler flags were specified, use CFLAGS.
4866LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4867
4868# Allow CC to be a program name with arguments.
4869compiler=$CC
4870
4871
4872# Check for command to grab the raw symbol name followed by C symbol from nm.
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4874$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4875if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878
4879# These are sane defaults that work on at least a few old systems.
4880# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4881
4882# Character class describing NM global symbol codes.
4883symcode='[BCDEGRST]'
4884
4885# Regexp to match symbols that can be accessed directly from C.
4886sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4887
4888# Define system-specific variables.
4889case $host_os in
4890aix*)
4891  symcode='[BCDT]'
4892  ;;
4893cygwin* | mingw* | pw32* | cegcc*)
4894  symcode='[ABCDGISTW]'
4895  ;;
4896hpux*)
4897  if test "$host_cpu" = ia64; then
4898    symcode='[ABCDEGRST]'
4899  fi
4900  ;;
4901irix* | nonstopux*)
4902  symcode='[BCDEGRST]'
4903  ;;
4904osf*)
4905  symcode='[BCDEGQRST]'
4906  ;;
4907solaris*)
4908  symcode='[BDRT]'
4909  ;;
4910sco3.2v5*)
4911  symcode='[DT]'
4912  ;;
4913sysv4.2uw2*)
4914  symcode='[DT]'
4915  ;;
4916sysv5* | sco5v6* | unixware* | OpenUNIX*)
4917  symcode='[ABDT]'
4918  ;;
4919sysv4)
4920  symcode='[DFNSTU]'
4921  ;;
4922esac
4923
4924# If we're using GNU nm, then use its standard symbol codes.
4925case `$NM -V 2>&1` in
4926*GNU* | *'with BFD'*)
4927  symcode='[ABCDGIRSTW]' ;;
4928esac
4929
4930# Transform an extracted symbol line into a proper C declaration.
4931# Some systems (esp. on ia64) link data and code symbols differently,
4932# so use this general approach.
4933lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4934
4935# Transform an extracted symbol line into symbol name and symbol address
4936lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4937lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4938
4939# Handle CRLF in mingw tool chain
4940opt_cr=
4941case $build_os in
4942mingw*)
4943  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4944  ;;
4945esac
4946
4947# Try without a prefix underscore, then with it.
4948for ac_symprfx in "" "_"; do
4949
4950  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4951  symxfrm="\\1 $ac_symprfx\\2 \\2"
4952
4953  # Write the raw and C identifiers.
4954  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4955    # Fake it for dumpbin and say T for any non-static function
4956    # and D for any global variable.
4957    # Also find C++ and __fastcall symbols from MSVC++,
4958    # which start with @ or ?.
4959    lt_cv_sys_global_symbol_pipe="$AWK '"\
4960"     {last_section=section; section=\$ 3};"\
4961"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4962"     \$ 0!~/External *\|/{next};"\
4963"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4964"     {if(hide[section]) next};"\
4965"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4966"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4967"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4968"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4969"     ' prfx=^$ac_symprfx"
4970  else
4971    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4972  fi
4973
4974  # Check to see that the pipe works correctly.
4975  pipe_works=no
4976
4977  rm -f conftest*
4978  cat > conftest.$ac_ext <<_LT_EOF
4979#ifdef __cplusplus
4980extern "C" {
4981#endif
4982char nm_test_var;
4983void nm_test_func(void);
4984void nm_test_func(void){}
4985#ifdef __cplusplus
4986}
4987#endif
4988int main(){nm_test_var='a';nm_test_func();return(0);}
4989_LT_EOF
4990
4991  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4992  (eval $ac_compile) 2>&5
4993  ac_status=$?
4994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995  test $ac_status = 0; }; then
4996    # Now try to grab the symbols.
4997    nlist=conftest.nm
4998    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4999  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5000  ac_status=$?
5001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5002  test $ac_status = 0; } && test -s "$nlist"; then
5003      # Try sorting and uniquifying the output.
5004      if sort "$nlist" | uniq > "$nlist"T; then
5005	mv -f "$nlist"T "$nlist"
5006      else
5007	rm -f "$nlist"T
5008      fi
5009
5010      # Make sure that we snagged all the symbols we need.
5011      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5012	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5013	  cat <<_LT_EOF > conftest.$ac_ext
5014#ifdef __cplusplus
5015extern "C" {
5016#endif
5017
5018_LT_EOF
5019	  # Now generate the symbol file.
5020	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5021
5022	  cat <<_LT_EOF >> conftest.$ac_ext
5023
5024/* The mapping between symbol names and symbols.  */
5025const struct {
5026  const char *name;
5027  void       *address;
5028}
5029lt__PROGRAM__LTX_preloaded_symbols[] =
5030{
5031  { "@PROGRAM@", (void *) 0 },
5032_LT_EOF
5033	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5034	  cat <<\_LT_EOF >> conftest.$ac_ext
5035  {0, (void *) 0}
5036};
5037
5038/* This works around a problem in FreeBSD linker */
5039#ifdef FREEBSD_WORKAROUND
5040static const void *lt_preloaded_setup() {
5041  return lt__PROGRAM__LTX_preloaded_symbols;
5042}
5043#endif
5044
5045#ifdef __cplusplus
5046}
5047#endif
5048_LT_EOF
5049	  # Now try linking the two files.
5050	  mv conftest.$ac_objext conftstm.$ac_objext
5051	  lt_save_LIBS="$LIBS"
5052	  lt_save_CFLAGS="$CFLAGS"
5053	  LIBS="conftstm.$ac_objext"
5054	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5055	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5056  (eval $ac_link) 2>&5
5057  ac_status=$?
5058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5060	    pipe_works=yes
5061	  fi
5062	  LIBS="$lt_save_LIBS"
5063	  CFLAGS="$lt_save_CFLAGS"
5064	else
5065	  echo "cannot find nm_test_func in $nlist" >&5
5066	fi
5067      else
5068	echo "cannot find nm_test_var in $nlist" >&5
5069      fi
5070    else
5071      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5072    fi
5073  else
5074    echo "$progname: failed program was:" >&5
5075    cat conftest.$ac_ext >&5
5076  fi
5077  rm -rf conftest* conftst*
5078
5079  # Do not use the global_symbol_pipe unless it works.
5080  if test "$pipe_works" = yes; then
5081    break
5082  else
5083    lt_cv_sys_global_symbol_pipe=
5084  fi
5085done
5086
5087fi
5088
5089if test -z "$lt_cv_sys_global_symbol_pipe"; then
5090  lt_cv_sys_global_symbol_to_cdecl=
5091fi
5092if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5094$as_echo "failed" >&6; }
5095else
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5097$as_echo "ok" >&6; }
5098fi
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122# Check whether --enable-libtool-lock was given.
5123if test "${enable_libtool_lock+set}" = set; then :
5124  enableval=$enable_libtool_lock;
5125fi
5126
5127test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5128
5129# Some flags need to be propagated to the compiler or linker for good
5130# libtool support.
5131case $host in
5132ia64-*-hpux*)
5133  # Find out which ABI we are using.
5134  echo 'int i;' > conftest.$ac_ext
5135  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5136  (eval $ac_compile) 2>&5
5137  ac_status=$?
5138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5139  test $ac_status = 0; }; then
5140    case `/usr/bin/file conftest.$ac_objext` in
5141      *ELF-32*)
5142	HPUX_IA64_MODE="32"
5143	;;
5144      *ELF-64*)
5145	HPUX_IA64_MODE="64"
5146	;;
5147    esac
5148  fi
5149  rm -rf conftest*
5150  ;;
5151*-*-irix6*)
5152  # Find out which ABI we are using.
5153  echo '#line 5153 "configure"' > conftest.$ac_ext
5154  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5155  (eval $ac_compile) 2>&5
5156  ac_status=$?
5157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5158  test $ac_status = 0; }; then
5159    if test "$lt_cv_prog_gnu_ld" = yes; then
5160      case `/usr/bin/file conftest.$ac_objext` in
5161	*32-bit*)
5162	  LD="${LD-ld} -melf32bsmip"
5163	  ;;
5164	*N32*)
5165	  LD="${LD-ld} -melf32bmipn32"
5166	  ;;
5167	*64-bit*)
5168	  LD="${LD-ld} -melf64bmip"
5169	;;
5170      esac
5171    else
5172      case `/usr/bin/file conftest.$ac_objext` in
5173	*32-bit*)
5174	  LD="${LD-ld} -32"
5175	  ;;
5176	*N32*)
5177	  LD="${LD-ld} -n32"
5178	  ;;
5179	*64-bit*)
5180	  LD="${LD-ld} -64"
5181	  ;;
5182      esac
5183    fi
5184  fi
5185  rm -rf conftest*
5186  ;;
5187
5188x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5189s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5190  # Find out which ABI we are using.
5191  echo 'int i;' > conftest.$ac_ext
5192  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5193  (eval $ac_compile) 2>&5
5194  ac_status=$?
5195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5196  test $ac_status = 0; }; then
5197    case `/usr/bin/file conftest.o` in
5198      *32-bit*)
5199	case $host in
5200	  x86_64-*kfreebsd*-gnu)
5201	    LD="${LD-ld} -m elf_i386_fbsd"
5202	    ;;
5203	  x86_64-*linux*)
5204	    LD="${LD-ld} -m elf_i386"
5205	    ;;
5206	  ppc64-*linux*|powerpc64-*linux*)
5207	    LD="${LD-ld} -m elf32ppclinux"
5208	    ;;
5209	  s390x-*linux*)
5210	    LD="${LD-ld} -m elf_s390"
5211	    ;;
5212	  sparc64-*linux*)
5213	    LD="${LD-ld} -m elf32_sparc"
5214	    ;;
5215	esac
5216	;;
5217      *64-bit*)
5218	case $host in
5219	  x86_64-*kfreebsd*-gnu)
5220	    LD="${LD-ld} -m elf_x86_64_fbsd"
5221	    ;;
5222	  x86_64-*linux*)
5223	    LD="${LD-ld} -m elf_x86_64"
5224	    ;;
5225	  ppc*-*linux*|powerpc*-*linux*)
5226	    LD="${LD-ld} -m elf64ppc"
5227	    ;;
5228	  s390*-*linux*|s390*-*tpf*)
5229	    LD="${LD-ld} -m elf64_s390"
5230	    ;;
5231	  sparc*-*linux*)
5232	    LD="${LD-ld} -m elf64_sparc"
5233	    ;;
5234	esac
5235	;;
5236    esac
5237  fi
5238  rm -rf conftest*
5239  ;;
5240
5241*-*-sco3.2v5*)
5242  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5243  SAVE_CFLAGS="$CFLAGS"
5244  CFLAGS="$CFLAGS -belf"
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5246$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5247if ${lt_cv_cc_needs_belf+:} false; then :
5248  $as_echo_n "(cached) " >&6
5249else
5250  ac_ext=c
5251ac_cpp='$CPP $CPPFLAGS'
5252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254ac_compiler_gnu=$ac_cv_c_compiler_gnu
5255
5256     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h.  */
5258
5259int
5260main ()
5261{
5262
5263  ;
5264  return 0;
5265}
5266_ACEOF
5267if ac_fn_c_try_link "$LINENO"; then :
5268  lt_cv_cc_needs_belf=yes
5269else
5270  lt_cv_cc_needs_belf=no
5271fi
5272rm -f core conftest.err conftest.$ac_objext \
5273    conftest$ac_exeext conftest.$ac_ext
5274     ac_ext=c
5275ac_cpp='$CPP $CPPFLAGS'
5276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278ac_compiler_gnu=$ac_cv_c_compiler_gnu
5279
5280fi
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5282$as_echo "$lt_cv_cc_needs_belf" >&6; }
5283  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5284    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5285    CFLAGS="$SAVE_CFLAGS"
5286  fi
5287  ;;
5288sparc*-*solaris*)
5289  # Find out which ABI we are using.
5290  echo 'int i;' > conftest.$ac_ext
5291  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5292  (eval $ac_compile) 2>&5
5293  ac_status=$?
5294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5295  test $ac_status = 0; }; then
5296    case `/usr/bin/file conftest.o` in
5297    *64-bit*)
5298      case $lt_cv_prog_gnu_ld in
5299      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5300      *)
5301	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5302	  LD="${LD-ld} -64"
5303	fi
5304	;;
5305      esac
5306      ;;
5307    esac
5308  fi
5309  rm -rf conftest*
5310  ;;
5311esac
5312
5313need_locks="$enable_libtool_lock"
5314
5315
5316  case $host_os in
5317    rhapsody* | darwin*)
5318    if test -n "$ac_tool_prefix"; then
5319  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5320set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322$as_echo_n "checking for $ac_word... " >&6; }
5323if ${ac_cv_prog_DSYMUTIL+:} false; then :
5324  $as_echo_n "(cached) " >&6
5325else
5326  if test -n "$DSYMUTIL"; then
5327  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5328else
5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332  IFS=$as_save_IFS
5333  test -z "$as_dir" && as_dir=.
5334    for ac_exec_ext in '' $ac_executable_extensions; do
5335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338    break 2
5339  fi
5340done
5341  done
5342IFS=$as_save_IFS
5343
5344fi
5345fi
5346DSYMUTIL=$ac_cv_prog_DSYMUTIL
5347if test -n "$DSYMUTIL"; then
5348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5349$as_echo "$DSYMUTIL" >&6; }
5350else
5351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352$as_echo "no" >&6; }
5353fi
5354
5355
5356fi
5357if test -z "$ac_cv_prog_DSYMUTIL"; then
5358  ac_ct_DSYMUTIL=$DSYMUTIL
5359  # Extract the first word of "dsymutil", so it can be a program name with args.
5360set dummy dsymutil; ac_word=$2
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362$as_echo_n "checking for $ac_word... " >&6; }
5363if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5364  $as_echo_n "(cached) " >&6
5365else
5366  if test -n "$ac_ct_DSYMUTIL"; then
5367  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5368else
5369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH
5371do
5372  IFS=$as_save_IFS
5373  test -z "$as_dir" && as_dir=.
5374    for ac_exec_ext in '' $ac_executable_extensions; do
5375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378    break 2
5379  fi
5380done
5381  done
5382IFS=$as_save_IFS
5383
5384fi
5385fi
5386ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5387if test -n "$ac_ct_DSYMUTIL"; then
5388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5389$as_echo "$ac_ct_DSYMUTIL" >&6; }
5390else
5391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392$as_echo "no" >&6; }
5393fi
5394
5395  if test "x$ac_ct_DSYMUTIL" = x; then
5396    DSYMUTIL=":"
5397  else
5398    case $cross_compiling:$ac_tool_warned in
5399yes:)
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5402ac_tool_warned=yes ;;
5403esac
5404    DSYMUTIL=$ac_ct_DSYMUTIL
5405  fi
5406else
5407  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5408fi
5409
5410    if test -n "$ac_tool_prefix"; then
5411  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5412set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414$as_echo_n "checking for $ac_word... " >&6; }
5415if ${ac_cv_prog_NMEDIT+:} false; then :
5416  $as_echo_n "(cached) " >&6
5417else
5418  if test -n "$NMEDIT"; then
5419  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5420else
5421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422for as_dir in $PATH
5423do
5424  IFS=$as_save_IFS
5425  test -z "$as_dir" && as_dir=.
5426    for ac_exec_ext in '' $ac_executable_extensions; do
5427  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430    break 2
5431  fi
5432done
5433  done
5434IFS=$as_save_IFS
5435
5436fi
5437fi
5438NMEDIT=$ac_cv_prog_NMEDIT
5439if test -n "$NMEDIT"; then
5440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5441$as_echo "$NMEDIT" >&6; }
5442else
5443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444$as_echo "no" >&6; }
5445fi
5446
5447
5448fi
5449if test -z "$ac_cv_prog_NMEDIT"; then
5450  ac_ct_NMEDIT=$NMEDIT
5451  # Extract the first word of "nmedit", so it can be a program name with args.
5452set dummy nmedit; ac_word=$2
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
5455if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5456  $as_echo_n "(cached) " >&6
5457else
5458  if test -n "$ac_ct_NMEDIT"; then
5459  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464  IFS=$as_save_IFS
5465  test -z "$as_dir" && as_dir=.
5466    for ac_exec_ext in '' $ac_executable_extensions; do
5467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470    break 2
5471  fi
5472done
5473  done
5474IFS=$as_save_IFS
5475
5476fi
5477fi
5478ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5479if test -n "$ac_ct_NMEDIT"; then
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5481$as_echo "$ac_ct_NMEDIT" >&6; }
5482else
5483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484$as_echo "no" >&6; }
5485fi
5486
5487  if test "x$ac_ct_NMEDIT" = x; then
5488    NMEDIT=":"
5489  else
5490    case $cross_compiling:$ac_tool_warned in
5491yes:)
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494ac_tool_warned=yes ;;
5495esac
5496    NMEDIT=$ac_ct_NMEDIT
5497  fi
5498else
5499  NMEDIT="$ac_cv_prog_NMEDIT"
5500fi
5501
5502    if test -n "$ac_tool_prefix"; then
5503  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5504set dummy ${ac_tool_prefix}lipo; ac_word=$2
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506$as_echo_n "checking for $ac_word... " >&6; }
5507if ${ac_cv_prog_LIPO+:} false; then :
5508  $as_echo_n "(cached) " >&6
5509else
5510  if test -n "$LIPO"; then
5511  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5512else
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516  IFS=$as_save_IFS
5517  test -z "$as_dir" && as_dir=.
5518    for ac_exec_ext in '' $ac_executable_extensions; do
5519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522    break 2
5523  fi
5524done
5525  done
5526IFS=$as_save_IFS
5527
5528fi
5529fi
5530LIPO=$ac_cv_prog_LIPO
5531if test -n "$LIPO"; then
5532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5533$as_echo "$LIPO" >&6; }
5534else
5535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536$as_echo "no" >&6; }
5537fi
5538
5539
5540fi
5541if test -z "$ac_cv_prog_LIPO"; then
5542  ac_ct_LIPO=$LIPO
5543  # Extract the first word of "lipo", so it can be a program name with args.
5544set dummy lipo; ac_word=$2
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546$as_echo_n "checking for $ac_word... " >&6; }
5547if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  if test -n "$ac_ct_LIPO"; then
5551  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5552else
5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH
5555do
5556  IFS=$as_save_IFS
5557  test -z "$as_dir" && as_dir=.
5558    for ac_exec_ext in '' $ac_executable_extensions; do
5559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560    ac_cv_prog_ac_ct_LIPO="lipo"
5561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562    break 2
5563  fi
5564done
5565  done
5566IFS=$as_save_IFS
5567
5568fi
5569fi
5570ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5571if test -n "$ac_ct_LIPO"; then
5572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5573$as_echo "$ac_ct_LIPO" >&6; }
5574else
5575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576$as_echo "no" >&6; }
5577fi
5578
5579  if test "x$ac_ct_LIPO" = x; then
5580    LIPO=":"
5581  else
5582    case $cross_compiling:$ac_tool_warned in
5583yes:)
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586ac_tool_warned=yes ;;
5587esac
5588    LIPO=$ac_ct_LIPO
5589  fi
5590else
5591  LIPO="$ac_cv_prog_LIPO"
5592fi
5593
5594    if test -n "$ac_tool_prefix"; then
5595  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5596set dummy ${ac_tool_prefix}otool; ac_word=$2
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598$as_echo_n "checking for $ac_word... " >&6; }
5599if ${ac_cv_prog_OTOOL+:} false; then :
5600  $as_echo_n "(cached) " >&6
5601else
5602  if test -n "$OTOOL"; then
5603  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5604else
5605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606for as_dir in $PATH
5607do
5608  IFS=$as_save_IFS
5609  test -z "$as_dir" && as_dir=.
5610    for ac_exec_ext in '' $ac_executable_extensions; do
5611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614    break 2
5615  fi
5616done
5617  done
5618IFS=$as_save_IFS
5619
5620fi
5621fi
5622OTOOL=$ac_cv_prog_OTOOL
5623if test -n "$OTOOL"; then
5624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5625$as_echo "$OTOOL" >&6; }
5626else
5627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628$as_echo "no" >&6; }
5629fi
5630
5631
5632fi
5633if test -z "$ac_cv_prog_OTOOL"; then
5634  ac_ct_OTOOL=$OTOOL
5635  # Extract the first word of "otool", so it can be a program name with args.
5636set dummy otool; ac_word=$2
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638$as_echo_n "checking for $ac_word... " >&6; }
5639if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642  if test -n "$ac_ct_OTOOL"; then
5643  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5644else
5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648  IFS=$as_save_IFS
5649  test -z "$as_dir" && as_dir=.
5650    for ac_exec_ext in '' $ac_executable_extensions; do
5651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652    ac_cv_prog_ac_ct_OTOOL="otool"
5653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654    break 2
5655  fi
5656done
5657  done
5658IFS=$as_save_IFS
5659
5660fi
5661fi
5662ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5663if test -n "$ac_ct_OTOOL"; then
5664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5665$as_echo "$ac_ct_OTOOL" >&6; }
5666else
5667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668$as_echo "no" >&6; }
5669fi
5670
5671  if test "x$ac_ct_OTOOL" = x; then
5672    OTOOL=":"
5673  else
5674    case $cross_compiling:$ac_tool_warned in
5675yes:)
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5678ac_tool_warned=yes ;;
5679esac
5680    OTOOL=$ac_ct_OTOOL
5681  fi
5682else
5683  OTOOL="$ac_cv_prog_OTOOL"
5684fi
5685
5686    if test -n "$ac_tool_prefix"; then
5687  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5688set dummy ${ac_tool_prefix}otool64; ac_word=$2
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690$as_echo_n "checking for $ac_word... " >&6; }
5691if ${ac_cv_prog_OTOOL64+:} false; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694  if test -n "$OTOOL64"; then
5695  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5696else
5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700  IFS=$as_save_IFS
5701  test -z "$as_dir" && as_dir=.
5702    for ac_exec_ext in '' $ac_executable_extensions; do
5703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706    break 2
5707  fi
5708done
5709  done
5710IFS=$as_save_IFS
5711
5712fi
5713fi
5714OTOOL64=$ac_cv_prog_OTOOL64
5715if test -n "$OTOOL64"; then
5716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5717$as_echo "$OTOOL64" >&6; }
5718else
5719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720$as_echo "no" >&6; }
5721fi
5722
5723
5724fi
5725if test -z "$ac_cv_prog_OTOOL64"; then
5726  ac_ct_OTOOL64=$OTOOL64
5727  # Extract the first word of "otool64", so it can be a program name with args.
5728set dummy otool64; ac_word=$2
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730$as_echo_n "checking for $ac_word... " >&6; }
5731if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5732  $as_echo_n "(cached) " >&6
5733else
5734  if test -n "$ac_ct_OTOOL64"; then
5735  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740  IFS=$as_save_IFS
5741  test -z "$as_dir" && as_dir=.
5742    for ac_exec_ext in '' $ac_executable_extensions; do
5743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744    ac_cv_prog_ac_ct_OTOOL64="otool64"
5745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746    break 2
5747  fi
5748done
5749  done
5750IFS=$as_save_IFS
5751
5752fi
5753fi
5754ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5755if test -n "$ac_ct_OTOOL64"; then
5756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5757$as_echo "$ac_ct_OTOOL64" >&6; }
5758else
5759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760$as_echo "no" >&6; }
5761fi
5762
5763  if test "x$ac_ct_OTOOL64" = x; then
5764    OTOOL64=":"
5765  else
5766    case $cross_compiling:$ac_tool_warned in
5767yes:)
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770ac_tool_warned=yes ;;
5771esac
5772    OTOOL64=$ac_ct_OTOOL64
5773  fi
5774else
5775  OTOOL64="$ac_cv_prog_OTOOL64"
5776fi
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5805$as_echo_n "checking for -single_module linker flag... " >&6; }
5806if ${lt_cv_apple_cc_single_mod+:} false; then :
5807  $as_echo_n "(cached) " >&6
5808else
5809  lt_cv_apple_cc_single_mod=no
5810      if test -z "${LT_MULTI_MODULE}"; then
5811	# By default we will add the -single_module flag. You can override
5812	# by either setting the environment variable LT_MULTI_MODULE
5813	# non-empty at configure time, or by adding -multi_module to the
5814	# link flags.
5815	rm -rf libconftest.dylib*
5816	echo "int foo(void){return 1;}" > conftest.c
5817	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5818-dynamiclib -Wl,-single_module conftest.c" >&5
5819	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5820	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5821        _lt_result=$?
5822	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5823	  lt_cv_apple_cc_single_mod=yes
5824	else
5825	  cat conftest.err >&5
5826	fi
5827	rm -rf libconftest.dylib*
5828	rm -f conftest.*
5829      fi
5830fi
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5832$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5833    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5834$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5835if ${lt_cv_ld_exported_symbols_list+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  lt_cv_ld_exported_symbols_list=no
5839      save_LDFLAGS=$LDFLAGS
5840      echo "_main" > conftest.sym
5841      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5842      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h.  */
5844
5845int
5846main ()
5847{
5848
5849  ;
5850  return 0;
5851}
5852_ACEOF
5853if ac_fn_c_try_link "$LINENO"; then :
5854  lt_cv_ld_exported_symbols_list=yes
5855else
5856  lt_cv_ld_exported_symbols_list=no
5857fi
5858rm -f core conftest.err conftest.$ac_objext \
5859    conftest$ac_exeext conftest.$ac_ext
5860	LDFLAGS="$save_LDFLAGS"
5861
5862fi
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5864$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5865    case $host_os in
5866    rhapsody* | darwin1.[012])
5867      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5868    darwin1.*)
5869      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5870    darwin*) # darwin 5.x on
5871      # if running on 10.5 or later, the deployment target defaults
5872      # to the OS version, if on x86, and 10.4, the deployment
5873      # target defaults to 10.4. Don't you love it?
5874      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5875	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5876	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5877	10.[012]*)
5878	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5879	10.*)
5880	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5881      esac
5882    ;;
5883  esac
5884    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5885      _lt_dar_single_mod='$single_module'
5886    fi
5887    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5888      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5889    else
5890      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5891    fi
5892    if test "$DSYMUTIL" != ":"; then
5893      _lt_dsymutil='~$DSYMUTIL $lib || :'
5894    else
5895      _lt_dsymutil=
5896    fi
5897    ;;
5898  esac
5899
5900ac_ext=c
5901ac_cpp='$CPP $CPPFLAGS'
5902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5906$as_echo_n "checking how to run the C preprocessor... " >&6; }
5907# On Suns, sometimes $CPP names a directory.
5908if test -n "$CPP" && test -d "$CPP"; then
5909  CPP=
5910fi
5911if test -z "$CPP"; then
5912  if ${ac_cv_prog_CPP+:} false; then :
5913  $as_echo_n "(cached) " >&6
5914else
5915      # Double quotes because CPP needs to be expanded
5916    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5917    do
5918      ac_preproc_ok=false
5919for ac_c_preproc_warn_flag in '' yes
5920do
5921  # Use a header file that comes with gcc, so configuring glibc
5922  # with a fresh cross-compiler works.
5923  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5924  # <limits.h> exists even on freestanding compilers.
5925  # On the NeXT, cc -E runs the code through the compiler's parser,
5926  # not just through cpp. "Syntax error" is here to catch this case.
5927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928/* end confdefs.h.  */
5929#ifdef __STDC__
5930# include <limits.h>
5931#else
5932# include <assert.h>
5933#endif
5934		     Syntax error
5935_ACEOF
5936if ac_fn_c_try_cpp "$LINENO"; then :
5937
5938else
5939  # Broken: fails on valid input.
5940continue
5941fi
5942rm -f conftest.err conftest.i conftest.$ac_ext
5943
5944  # OK, works on sane cases.  Now check whether nonexistent headers
5945  # can be detected and how.
5946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h.  */
5948#include <ac_nonexistent.h>
5949_ACEOF
5950if ac_fn_c_try_cpp "$LINENO"; then :
5951  # Broken: success on invalid input.
5952continue
5953else
5954  # Passes both tests.
5955ac_preproc_ok=:
5956break
5957fi
5958rm -f conftest.err conftest.i conftest.$ac_ext
5959
5960done
5961# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5962rm -f conftest.i conftest.err conftest.$ac_ext
5963if $ac_preproc_ok; then :
5964  break
5965fi
5966
5967    done
5968    ac_cv_prog_CPP=$CPP
5969
5970fi
5971  CPP=$ac_cv_prog_CPP
5972else
5973  ac_cv_prog_CPP=$CPP
5974fi
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5976$as_echo "$CPP" >&6; }
5977ac_preproc_ok=false
5978for ac_c_preproc_warn_flag in '' yes
5979do
5980  # Use a header file that comes with gcc, so configuring glibc
5981  # with a fresh cross-compiler works.
5982  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983  # <limits.h> exists even on freestanding compilers.
5984  # On the NeXT, cc -E runs the code through the compiler's parser,
5985  # not just through cpp. "Syntax error" is here to catch this case.
5986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h.  */
5988#ifdef __STDC__
5989# include <limits.h>
5990#else
5991# include <assert.h>
5992#endif
5993		     Syntax error
5994_ACEOF
5995if ac_fn_c_try_cpp "$LINENO"; then :
5996
5997else
5998  # Broken: fails on valid input.
5999continue
6000fi
6001rm -f conftest.err conftest.i conftest.$ac_ext
6002
6003  # OK, works on sane cases.  Now check whether nonexistent headers
6004  # can be detected and how.
6005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006/* end confdefs.h.  */
6007#include <ac_nonexistent.h>
6008_ACEOF
6009if ac_fn_c_try_cpp "$LINENO"; then :
6010  # Broken: success on invalid input.
6011continue
6012else
6013  # Passes both tests.
6014ac_preproc_ok=:
6015break
6016fi
6017rm -f conftest.err conftest.i conftest.$ac_ext
6018
6019done
6020# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6021rm -f conftest.i conftest.err conftest.$ac_ext
6022if $ac_preproc_ok; then :
6023
6024else
6025  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6027as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6028See \`config.log' for more details" "$LINENO" 5; }
6029fi
6030
6031ac_ext=c
6032ac_cpp='$CPP $CPPFLAGS'
6033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6035ac_compiler_gnu=$ac_cv_c_compiler_gnu
6036
6037
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6039$as_echo_n "checking for ANSI C header files... " >&6; }
6040if ${ac_cv_header_stdc+:} false; then :
6041  $as_echo_n "(cached) " >&6
6042else
6043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044/* end confdefs.h.  */
6045#include <stdlib.h>
6046#include <stdarg.h>
6047#include <string.h>
6048#include <float.h>
6049
6050int
6051main ()
6052{
6053
6054  ;
6055  return 0;
6056}
6057_ACEOF
6058if ac_fn_c_try_compile "$LINENO"; then :
6059  ac_cv_header_stdc=yes
6060else
6061  ac_cv_header_stdc=no
6062fi
6063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064
6065if test $ac_cv_header_stdc = yes; then
6066  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068/* end confdefs.h.  */
6069#include <string.h>
6070
6071_ACEOF
6072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6073  $EGREP "memchr" >/dev/null 2>&1; then :
6074
6075else
6076  ac_cv_header_stdc=no
6077fi
6078rm -f conftest*
6079
6080fi
6081
6082if test $ac_cv_header_stdc = yes; then
6083  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085/* end confdefs.h.  */
6086#include <stdlib.h>
6087
6088_ACEOF
6089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6090  $EGREP "free" >/dev/null 2>&1; then :
6091
6092else
6093  ac_cv_header_stdc=no
6094fi
6095rm -f conftest*
6096
6097fi
6098
6099if test $ac_cv_header_stdc = yes; then
6100  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6101  if test "$cross_compiling" = yes; then :
6102  :
6103else
6104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105/* end confdefs.h.  */
6106#include <ctype.h>
6107#include <stdlib.h>
6108#if ((' ' & 0x0FF) == 0x020)
6109# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6110# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6111#else
6112# define ISLOWER(c) \
6113		   (('a' <= (c) && (c) <= 'i') \
6114		     || ('j' <= (c) && (c) <= 'r') \
6115		     || ('s' <= (c) && (c) <= 'z'))
6116# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6117#endif
6118
6119#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6120int
6121main ()
6122{
6123  int i;
6124  for (i = 0; i < 256; i++)
6125    if (XOR (islower (i), ISLOWER (i))
6126	|| toupper (i) != TOUPPER (i))
6127      return 2;
6128  return 0;
6129}
6130_ACEOF
6131if ac_fn_c_try_run "$LINENO"; then :
6132
6133else
6134  ac_cv_header_stdc=no
6135fi
6136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6137  conftest.$ac_objext conftest.beam conftest.$ac_ext
6138fi
6139
6140fi
6141fi
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6143$as_echo "$ac_cv_header_stdc" >&6; }
6144if test $ac_cv_header_stdc = yes; then
6145
6146$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6147
6148fi
6149
6150# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6151for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6152		  inttypes.h stdint.h unistd.h
6153do :
6154  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6156"
6157if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6158  cat >>confdefs.h <<_ACEOF
6159#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6160_ACEOF
6161
6162fi
6163
6164done
6165
6166
6167for ac_header in dlfcn.h
6168do :
6169  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6170"
6171if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6172  cat >>confdefs.h <<_ACEOF
6173#define HAVE_DLFCN_H 1
6174_ACEOF
6175
6176fi
6177
6178done
6179
6180
6181
6182# Set options
6183
6184
6185
6186        enable_dlopen=no
6187
6188
6189  enable_win32_dll=no
6190
6191
6192            # Check whether --enable-shared was given.
6193if test "${enable_shared+set}" = set; then :
6194  enableval=$enable_shared; p=${PACKAGE-default}
6195    case $enableval in
6196    yes) enable_shared=yes ;;
6197    no) enable_shared=no ;;
6198    *)
6199      enable_shared=no
6200      # Look at the argument we got.  We use all the common list separators.
6201      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6202      for pkg in $enableval; do
6203	IFS="$lt_save_ifs"
6204	if test "X$pkg" = "X$p"; then
6205	  enable_shared=yes
6206	fi
6207      done
6208      IFS="$lt_save_ifs"
6209      ;;
6210    esac
6211else
6212  enable_shared=yes
6213fi
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223  # Check whether --enable-static was given.
6224if test "${enable_static+set}" = set; then :
6225  enableval=$enable_static; p=${PACKAGE-default}
6226    case $enableval in
6227    yes) enable_static=yes ;;
6228    no) enable_static=no ;;
6229    *)
6230     enable_static=no
6231      # Look at the argument we got.  We use all the common list separators.
6232      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6233      for pkg in $enableval; do
6234	IFS="$lt_save_ifs"
6235	if test "X$pkg" = "X$p"; then
6236	  enable_static=yes
6237	fi
6238      done
6239      IFS="$lt_save_ifs"
6240      ;;
6241    esac
6242else
6243  enable_static=yes
6244fi
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255# Check whether --with-pic was given.
6256if test "${with_pic+set}" = set; then :
6257  withval=$with_pic; pic_mode="$withval"
6258else
6259  pic_mode=default
6260fi
6261
6262
6263test -z "$pic_mode" && pic_mode=default
6264
6265
6266
6267
6268
6269
6270
6271  # Check whether --enable-fast-install was given.
6272if test "${enable_fast_install+set}" = set; then :
6273  enableval=$enable_fast_install; p=${PACKAGE-default}
6274    case $enableval in
6275    yes) enable_fast_install=yes ;;
6276    no) enable_fast_install=no ;;
6277    *)
6278      enable_fast_install=no
6279      # Look at the argument we got.  We use all the common list separators.
6280      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6281      for pkg in $enableval; do
6282	IFS="$lt_save_ifs"
6283	if test "X$pkg" = "X$p"; then
6284	  enable_fast_install=yes
6285	fi
6286      done
6287      IFS="$lt_save_ifs"
6288      ;;
6289    esac
6290else
6291  enable_fast_install=yes
6292fi
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304# This can be used to rebuild libtool when needed
6305LIBTOOL_DEPS="$ltmain"
6306
6307# Always use our own libtool.
6308LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334test -z "$LN_S" && LN_S="ln -s"
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349if test -n "${ZSH_VERSION+set}" ; then
6350   setopt NO_GLOB_SUBST
6351fi
6352
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6354$as_echo_n "checking for objdir... " >&6; }
6355if ${lt_cv_objdir+:} false; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  rm -f .libs 2>/dev/null
6359mkdir .libs 2>/dev/null
6360if test -d .libs; then
6361  lt_cv_objdir=.libs
6362else
6363  # MS-DOS does not allow filenames that begin with a dot.
6364  lt_cv_objdir=_libs
6365fi
6366rmdir .libs 2>/dev/null
6367fi
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6369$as_echo "$lt_cv_objdir" >&6; }
6370objdir=$lt_cv_objdir
6371
6372
6373
6374
6375
6376cat >>confdefs.h <<_ACEOF
6377#define LT_OBJDIR "$lt_cv_objdir/"
6378_ACEOF
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396case $host_os in
6397aix3*)
6398  # AIX sometimes has problems with the GCC collect2 program.  For some
6399  # reason, if we set the COLLECT_NAMES environment variable, the problems
6400  # vanish in a puff of smoke.
6401  if test "X${COLLECT_NAMES+set}" != Xset; then
6402    COLLECT_NAMES=
6403    export COLLECT_NAMES
6404  fi
6405  ;;
6406esac
6407
6408# Sed substitution that helps us do robust quoting.  It backslashifies
6409# metacharacters that are still active within double-quoted strings.
6410sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6411
6412# Same as above, but do not quote variable references.
6413double_quote_subst='s/\(["`\\]\)/\\\1/g'
6414
6415# Sed substitution to delay expansion of an escaped shell variable in a
6416# double_quote_subst'ed string.
6417delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6418
6419# Sed substitution to delay expansion of an escaped single quote.
6420delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6421
6422# Sed substitution to avoid accidental globbing in evaled expressions
6423no_glob_subst='s/\*/\\\*/g'
6424
6425# Global variables:
6426ofile=libtool
6427can_build_shared=yes
6428
6429# All known linkers require a `.a' archive for static linking (except MSVC,
6430# which needs '.lib').
6431libext=a
6432
6433with_gnu_ld="$lt_cv_prog_gnu_ld"
6434
6435old_CC="$CC"
6436old_CFLAGS="$CFLAGS"
6437
6438# Set sane defaults for various variables
6439test -z "$CC" && CC=cc
6440test -z "$LTCC" && LTCC=$CC
6441test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6442test -z "$LD" && LD=ld
6443test -z "$ac_objext" && ac_objext=o
6444
6445for cc_temp in $compiler""; do
6446  case $cc_temp in
6447    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6448    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6449    \-*) ;;
6450    *) break;;
6451  esac
6452done
6453cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6454
6455
6456# Only perform the check for file, if the check method requires it
6457test -z "$MAGIC_CMD" && MAGIC_CMD=file
6458case $deplibs_check_method in
6459file_magic*)
6460  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6462$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6463if ${lt_cv_path_MAGIC_CMD+:} false; then :
6464  $as_echo_n "(cached) " >&6
6465else
6466  case $MAGIC_CMD in
6467[\\/*] |  ?:[\\/]*)
6468  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6469  ;;
6470*)
6471  lt_save_MAGIC_CMD="$MAGIC_CMD"
6472  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6473  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6474  for ac_dir in $ac_dummy; do
6475    IFS="$lt_save_ifs"
6476    test -z "$ac_dir" && ac_dir=.
6477    if test -f $ac_dir/${ac_tool_prefix}file; then
6478      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6479      if test -n "$file_magic_test_file"; then
6480	case $deplibs_check_method in
6481	"file_magic "*)
6482	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6483	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6484	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6485	    $EGREP "$file_magic_regex" > /dev/null; then
6486	    :
6487	  else
6488	    cat <<_LT_EOF 1>&2
6489
6490*** Warning: the command libtool uses to detect shared libraries,
6491*** $file_magic_cmd, produces output that libtool cannot recognize.
6492*** The result is that libtool may fail to recognize shared libraries
6493*** as such.  This will affect the creation of libtool libraries that
6494*** depend on shared libraries, but programs linked with such libtool
6495*** libraries will work regardless of this problem.  Nevertheless, you
6496*** may want to report the problem to your system manager and/or to
6497*** [email protected]
6498
6499_LT_EOF
6500	  fi ;;
6501	esac
6502      fi
6503      break
6504    fi
6505  done
6506  IFS="$lt_save_ifs"
6507  MAGIC_CMD="$lt_save_MAGIC_CMD"
6508  ;;
6509esac
6510fi
6511
6512MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6513if test -n "$MAGIC_CMD"; then
6514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6515$as_echo "$MAGIC_CMD" >&6; }
6516else
6517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518$as_echo "no" >&6; }
6519fi
6520
6521
6522
6523
6524
6525if test -z "$lt_cv_path_MAGIC_CMD"; then
6526  if test -n "$ac_tool_prefix"; then
6527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6528$as_echo_n "checking for file... " >&6; }
6529if ${lt_cv_path_MAGIC_CMD+:} false; then :
6530  $as_echo_n "(cached) " >&6
6531else
6532  case $MAGIC_CMD in
6533[\\/*] |  ?:[\\/]*)
6534  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6535  ;;
6536*)
6537  lt_save_MAGIC_CMD="$MAGIC_CMD"
6538  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6539  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6540  for ac_dir in $ac_dummy; do
6541    IFS="$lt_save_ifs"
6542    test -z "$ac_dir" && ac_dir=.
6543    if test -f $ac_dir/file; then
6544      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6545      if test -n "$file_magic_test_file"; then
6546	case $deplibs_check_method in
6547	"file_magic "*)
6548	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6549	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6550	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6551	    $EGREP "$file_magic_regex" > /dev/null; then
6552	    :
6553	  else
6554	    cat <<_LT_EOF 1>&2
6555
6556*** Warning: the command libtool uses to detect shared libraries,
6557*** $file_magic_cmd, produces output that libtool cannot recognize.
6558*** The result is that libtool may fail to recognize shared libraries
6559*** as such.  This will affect the creation of libtool libraries that
6560*** depend on shared libraries, but programs linked with such libtool
6561*** libraries will work regardless of this problem.  Nevertheless, you
6562*** may want to report the problem to your system manager and/or to
6563*** [email protected]
6564
6565_LT_EOF
6566	  fi ;;
6567	esac
6568      fi
6569      break
6570    fi
6571  done
6572  IFS="$lt_save_ifs"
6573  MAGIC_CMD="$lt_save_MAGIC_CMD"
6574  ;;
6575esac
6576fi
6577
6578MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6579if test -n "$MAGIC_CMD"; then
6580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6581$as_echo "$MAGIC_CMD" >&6; }
6582else
6583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584$as_echo "no" >&6; }
6585fi
6586
6587
6588  else
6589    MAGIC_CMD=:
6590  fi
6591fi
6592
6593  fi
6594  ;;
6595esac
6596
6597# Use C for the default configuration in the libtool script
6598
6599lt_save_CC="$CC"
6600ac_ext=c
6601ac_cpp='$CPP $CPPFLAGS'
6602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
6606
6607# Source file extension for C test sources.
6608ac_ext=c
6609
6610# Object file extension for compiled C test sources.
6611objext=o
6612objext=$objext
6613
6614# Code to be used in simple compile tests
6615lt_simple_compile_test_code="int some_variable = 0;"
6616
6617# Code to be used in simple link tests
6618lt_simple_link_test_code='int main(){return(0);}'
6619
6620
6621
6622
6623
6624
6625
6626# If no C compiler was specified, use CC.
6627LTCC=${LTCC-"$CC"}
6628
6629# If no C compiler flags were specified, use CFLAGS.
6630LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6631
6632# Allow CC to be a program name with arguments.
6633compiler=$CC
6634
6635# Save the default compiler, since it gets overwritten when the other
6636# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6637compiler_DEFAULT=$CC
6638
6639# save warnings/boilerplate of simple test code
6640ac_outfile=conftest.$ac_objext
6641echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6642eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6643_lt_compiler_boilerplate=`cat conftest.err`
6644$RM conftest*
6645
6646ac_outfile=conftest.$ac_objext
6647echo "$lt_simple_link_test_code" >conftest.$ac_ext
6648eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6649_lt_linker_boilerplate=`cat conftest.err`
6650$RM -r conftest*
6651
6652
6653if test -n "$compiler"; then
6654
6655lt_prog_compiler_no_builtin_flag=
6656
6657if test "$GCC" = yes; then
6658  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6659
6660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6661$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6662if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6663  $as_echo_n "(cached) " >&6
6664else
6665  lt_cv_prog_compiler_rtti_exceptions=no
6666   ac_outfile=conftest.$ac_objext
6667   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6668   lt_compiler_flag="-fno-rtti -fno-exceptions"
6669   # Insert the option either (1) after the last *FLAGS variable, or
6670   # (2) before a word containing "conftest.", or (3) at the end.
6671   # Note that $ac_compile itself does not contain backslashes and begins
6672   # with a dollar sign (not a hyphen), so the echo should work correctly.
6673   # The option is referenced via a variable to avoid confusing sed.
6674   lt_compile=`echo "$ac_compile" | $SED \
6675   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6676   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6677   -e 's:$: $lt_compiler_flag:'`
6678   (eval echo "\"\$as_me:6678: $lt_compile\"" >&5)
6679   (eval "$lt_compile" 2>conftest.err)
6680   ac_status=$?
6681   cat conftest.err >&5
6682   echo "$as_me:6682: \$? = $ac_status" >&5
6683   if (exit $ac_status) && test -s "$ac_outfile"; then
6684     # The compiler can only warn and ignore the option if not recognized
6685     # So say no if there are warnings other than the usual output.
6686     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6687     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6688     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6689       lt_cv_prog_compiler_rtti_exceptions=yes
6690     fi
6691   fi
6692   $RM conftest*
6693
6694fi
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6696$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6697
6698if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6699    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6700else
6701    :
6702fi
6703
6704fi
6705
6706
6707
6708
6709
6710
6711  lt_prog_compiler_wl=
6712lt_prog_compiler_pic=
6713lt_prog_compiler_static=
6714
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6716$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6717
6718  if test "$GCC" = yes; then
6719    lt_prog_compiler_wl='-Wl,'
6720    lt_prog_compiler_static='-static'
6721
6722    case $host_os in
6723      aix*)
6724      # All AIX code is PIC.
6725      if test "$host_cpu" = ia64; then
6726	# AIX 5 now supports IA64 processor
6727	lt_prog_compiler_static='-Bstatic'
6728      fi
6729      ;;
6730
6731    amigaos*)
6732      case $host_cpu in
6733      powerpc)
6734            # see comment about AmigaOS4 .so support
6735            lt_prog_compiler_pic='-fPIC'
6736        ;;
6737      m68k)
6738            # FIXME: we need at least 68020 code to build shared libraries, but
6739            # adding the `-m68020' flag to GCC prevents building anything better,
6740            # like `-m68040'.
6741            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6742        ;;
6743      esac
6744      ;;
6745
6746    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6747      # PIC is the default for these OSes.
6748      ;;
6749
6750    mingw* | cygwin* | pw32* | os2* | cegcc*)
6751      # This hack is so that the source file can tell whether it is being
6752      # built for inclusion in a dll (and should export symbols for example).
6753      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6754      # (--disable-auto-import) libraries
6755      lt_prog_compiler_pic='-DDLL_EXPORT'
6756      ;;
6757
6758    darwin* | rhapsody*)
6759      # PIC is the default on this platform
6760      # Common symbols not allowed in MH_DYLIB files
6761      lt_prog_compiler_pic='-fno-common'
6762      ;;
6763
6764    hpux*)
6765      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6766      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6767      # sets the default TLS model and affects inlining.
6768      case $host_cpu in
6769      hppa*64*)
6770	# +Z the default
6771	;;
6772      *)
6773	lt_prog_compiler_pic='-fPIC'
6774	;;
6775      esac
6776      ;;
6777
6778    interix[3-9]*)
6779      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6780      # Instead, we relocate shared libraries at runtime.
6781      ;;
6782
6783    msdosdjgpp*)
6784      # Just because we use GCC doesn't mean we suddenly get shared libraries
6785      # on systems that don't support them.
6786      lt_prog_compiler_can_build_shared=no
6787      enable_shared=no
6788      ;;
6789
6790    *nto* | *qnx*)
6791      # QNX uses GNU C++, but need to define -shared option too, otherwise
6792      # it will coredump.
6793      lt_prog_compiler_pic='-fPIC -shared'
6794      ;;
6795
6796    sysv4*MP*)
6797      if test -d /usr/nec; then
6798	lt_prog_compiler_pic=-Kconform_pic
6799      fi
6800      ;;
6801
6802    *)
6803      lt_prog_compiler_pic='-fPIC'
6804      ;;
6805    esac
6806  else
6807    # PORTME Check for flag to pass linker flags through the system compiler.
6808    case $host_os in
6809    aix*)
6810      lt_prog_compiler_wl='-Wl,'
6811      if test "$host_cpu" = ia64; then
6812	# AIX 5 now supports IA64 processor
6813	lt_prog_compiler_static='-Bstatic'
6814      else
6815	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6816      fi
6817      ;;
6818
6819    mingw* | cygwin* | pw32* | os2* | cegcc*)
6820      # This hack is so that the source file can tell whether it is being
6821      # built for inclusion in a dll (and should export symbols for example).
6822      lt_prog_compiler_pic='-DDLL_EXPORT'
6823      ;;
6824
6825    hpux9* | hpux10* | hpux11*)
6826      lt_prog_compiler_wl='-Wl,'
6827      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6828      # not for PA HP-UX.
6829      case $host_cpu in
6830      hppa*64*|ia64*)
6831	# +Z the default
6832	;;
6833      *)
6834	lt_prog_compiler_pic='+Z'
6835	;;
6836      esac
6837      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6838      lt_prog_compiler_static='${wl}-a ${wl}archive'
6839      ;;
6840
6841    irix5* | irix6* | nonstopux*)
6842      lt_prog_compiler_wl='-Wl,'
6843      # PIC (with -KPIC) is the default.
6844      lt_prog_compiler_static='-non_shared'
6845      ;;
6846
6847    linux* | k*bsd*-gnu)
6848      case $cc_basename in
6849      # old Intel for x86_64 which still supported -KPIC.
6850      ecc*)
6851	lt_prog_compiler_wl='-Wl,'
6852	lt_prog_compiler_pic='-KPIC'
6853	lt_prog_compiler_static='-static'
6854        ;;
6855      # icc used to be incompatible with GCC.
6856      # ICC 10 doesn't accept -KPIC any more.
6857      icc* | ifort*)
6858	lt_prog_compiler_wl='-Wl,'
6859	lt_prog_compiler_pic='-fPIC'
6860	lt_prog_compiler_static='-static'
6861        ;;
6862      # Lahey Fortran 8.1.
6863      lf95*)
6864	lt_prog_compiler_wl='-Wl,'
6865	lt_prog_compiler_pic='--shared'
6866	lt_prog_compiler_static='--static'
6867	;;
6868      pgcc* | pgf77* | pgf90* | pgf95*)
6869        # Portland Group compilers (*not* the Pentium gcc compiler,
6870	# which looks to be a dead project)
6871	lt_prog_compiler_wl='-Wl,'
6872	lt_prog_compiler_pic='-fpic'
6873	lt_prog_compiler_static='-Bstatic'
6874        ;;
6875      ccc*)
6876        lt_prog_compiler_wl='-Wl,'
6877        # All Alpha code is PIC.
6878        lt_prog_compiler_static='-non_shared'
6879        ;;
6880      xl*)
6881	# IBM XL C 8.0/Fortran 10.1 on PPC
6882	lt_prog_compiler_wl='-Wl,'
6883	lt_prog_compiler_pic='-qpic'
6884	lt_prog_compiler_static='-qstaticlink'
6885	;;
6886      *)
6887	case `$CC -V 2>&1 | sed 5q` in
6888	*Sun\ C*)
6889	  # Sun C 5.9
6890	  lt_prog_compiler_pic='-KPIC'
6891	  lt_prog_compiler_static='-Bstatic'
6892	  lt_prog_compiler_wl='-Wl,'
6893	  ;;
6894	*Sun\ F*)
6895	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
6896	  lt_prog_compiler_pic='-KPIC'
6897	  lt_prog_compiler_static='-Bstatic'
6898	  lt_prog_compiler_wl=''
6899	  ;;
6900	esac
6901	;;
6902      esac
6903      ;;
6904
6905    newsos6)
6906      lt_prog_compiler_pic='-KPIC'
6907      lt_prog_compiler_static='-Bstatic'
6908      ;;
6909
6910    *nto* | *qnx*)
6911      # QNX uses GNU C++, but need to define -shared option too, otherwise
6912      # it will coredump.
6913      lt_prog_compiler_pic='-fPIC -shared'
6914      ;;
6915
6916    osf3* | osf4* | osf5*)
6917      lt_prog_compiler_wl='-Wl,'
6918      # All OSF/1 code is PIC.
6919      lt_prog_compiler_static='-non_shared'
6920      ;;
6921
6922    rdos*)
6923      lt_prog_compiler_static='-non_shared'
6924      ;;
6925
6926    solaris*)
6927      lt_prog_compiler_pic='-KPIC'
6928      lt_prog_compiler_static='-Bstatic'
6929      case $cc_basename in
6930      f77* | f90* | f95*)
6931	lt_prog_compiler_wl='-Qoption ld ';;
6932      *)
6933	lt_prog_compiler_wl='-Wl,';;
6934      esac
6935      ;;
6936
6937    sunos4*)
6938      lt_prog_compiler_wl='-Qoption ld '
6939      lt_prog_compiler_pic='-PIC'
6940      lt_prog_compiler_static='-Bstatic'
6941      ;;
6942
6943    sysv4 | sysv4.2uw2* | sysv4.3*)
6944      lt_prog_compiler_wl='-Wl,'
6945      lt_prog_compiler_pic='-KPIC'
6946      lt_prog_compiler_static='-Bstatic'
6947      ;;
6948
6949    sysv4*MP*)
6950      if test -d /usr/nec ;then
6951	lt_prog_compiler_pic='-Kconform_pic'
6952	lt_prog_compiler_static='-Bstatic'
6953      fi
6954      ;;
6955
6956    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6957      lt_prog_compiler_wl='-Wl,'
6958      lt_prog_compiler_pic='-KPIC'
6959      lt_prog_compiler_static='-Bstatic'
6960      ;;
6961
6962    unicos*)
6963      lt_prog_compiler_wl='-Wl,'
6964      lt_prog_compiler_can_build_shared=no
6965      ;;
6966
6967    uts4*)
6968      lt_prog_compiler_pic='-pic'
6969      lt_prog_compiler_static='-Bstatic'
6970      ;;
6971
6972    *)
6973      lt_prog_compiler_can_build_shared=no
6974      ;;
6975    esac
6976  fi
6977
6978case $host_os in
6979  # For platforms which do not support PIC, -DPIC is meaningless:
6980  *djgpp*)
6981    lt_prog_compiler_pic=
6982    ;;
6983  *)
6984    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6985    ;;
6986esac
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6988$as_echo "$lt_prog_compiler_pic" >&6; }
6989
6990
6991
6992
6993
6994
6995#
6996# Check to make sure the PIC flag actually works.
6997#
6998if test -n "$lt_prog_compiler_pic"; then
6999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7000$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7001if ${lt_cv_prog_compiler_pic_works+:} false; then :
7002  $as_echo_n "(cached) " >&6
7003else
7004  lt_cv_prog_compiler_pic_works=no
7005   ac_outfile=conftest.$ac_objext
7006   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7007   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7008   # Insert the option either (1) after the last *FLAGS variable, or
7009   # (2) before a word containing "conftest.", or (3) at the end.
7010   # Note that $ac_compile itself does not contain backslashes and begins
7011   # with a dollar sign (not a hyphen), so the echo should work correctly.
7012   # The option is referenced via a variable to avoid confusing sed.
7013   lt_compile=`echo "$ac_compile" | $SED \
7014   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7015   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7016   -e 's:$: $lt_compiler_flag:'`
7017   (eval echo "\"\$as_me:7017: $lt_compile\"" >&5)
7018   (eval "$lt_compile" 2>conftest.err)
7019   ac_status=$?
7020   cat conftest.err >&5
7021   echo "$as_me:7021: \$? = $ac_status" >&5
7022   if (exit $ac_status) && test -s "$ac_outfile"; then
7023     # The compiler can only warn and ignore the option if not recognized
7024     # So say no if there are warnings other than the usual output.
7025     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7026     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7027     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7028       lt_cv_prog_compiler_pic_works=yes
7029     fi
7030   fi
7031   $RM conftest*
7032
7033fi
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7035$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7036
7037if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7038    case $lt_prog_compiler_pic in
7039     "" | " "*) ;;
7040     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7041     esac
7042else
7043    lt_prog_compiler_pic=
7044     lt_prog_compiler_can_build_shared=no
7045fi
7046
7047fi
7048
7049
7050
7051
7052
7053
7054#
7055# Check to make sure the static flag actually works.
7056#
7057wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7059$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7060if ${lt_cv_prog_compiler_static_works+:} false; then :
7061  $as_echo_n "(cached) " >&6
7062else
7063  lt_cv_prog_compiler_static_works=no
7064   save_LDFLAGS="$LDFLAGS"
7065   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7066   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7067   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7068     # The linker can only warn and ignore the option if not recognized
7069     # So say no if there are warnings
7070     if test -s conftest.err; then
7071       # Append any errors to the config.log.
7072       cat conftest.err 1>&5
7073       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7074       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7075       if diff conftest.exp conftest.er2 >/dev/null; then
7076         lt_cv_prog_compiler_static_works=yes
7077       fi
7078     else
7079       lt_cv_prog_compiler_static_works=yes
7080     fi
7081   fi
7082   $RM -r conftest*
7083   LDFLAGS="$save_LDFLAGS"
7084
7085fi
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7087$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7088
7089if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7090    :
7091else
7092    lt_prog_compiler_static=
7093fi
7094
7095
7096
7097
7098
7099
7100
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7102$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7103if ${lt_cv_prog_compiler_c_o+:} false; then :
7104  $as_echo_n "(cached) " >&6
7105else
7106  lt_cv_prog_compiler_c_o=no
7107   $RM -r conftest 2>/dev/null
7108   mkdir conftest
7109   cd conftest
7110   mkdir out
7111   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7112
7113   lt_compiler_flag="-o out/conftest2.$ac_objext"
7114   # Insert the option either (1) after the last *FLAGS variable, or
7115   # (2) before a word containing "conftest.", or (3) at the end.
7116   # Note that $ac_compile itself does not contain backslashes and begins
7117   # with a dollar sign (not a hyphen), so the echo should work correctly.
7118   lt_compile=`echo "$ac_compile" | $SED \
7119   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7120   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7121   -e 's:$: $lt_compiler_flag:'`
7122   (eval echo "\"\$as_me:7122: $lt_compile\"" >&5)
7123   (eval "$lt_compile" 2>out/conftest.err)
7124   ac_status=$?
7125   cat out/conftest.err >&5
7126   echo "$as_me:7126: \$? = $ac_status" >&5
7127   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7128   then
7129     # The compiler can only warn and ignore the option if not recognized
7130     # So say no if there are warnings
7131     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7132     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7133     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7134       lt_cv_prog_compiler_c_o=yes
7135     fi
7136   fi
7137   chmod u+w . 2>&5
7138   $RM conftest*
7139   # SGI C++ compiler will create directory out/ii_files/ for
7140   # template instantiation
7141   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7142   $RM out/* && rmdir out
7143   cd ..
7144   $RM -r conftest
7145   $RM conftest*
7146
7147fi
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7149$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7150
7151
7152
7153
7154
7155
7156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7157$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7158if ${lt_cv_prog_compiler_c_o+:} false; then :
7159  $as_echo_n "(cached) " >&6
7160else
7161  lt_cv_prog_compiler_c_o=no
7162   $RM -r conftest 2>/dev/null
7163   mkdir conftest
7164   cd conftest
7165   mkdir out
7166   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7167
7168   lt_compiler_flag="-o out/conftest2.$ac_objext"
7169   # Insert the option either (1) after the last *FLAGS variable, or
7170   # (2) before a word containing "conftest.", or (3) at the end.
7171   # Note that $ac_compile itself does not contain backslashes and begins
7172   # with a dollar sign (not a hyphen), so the echo should work correctly.
7173   lt_compile=`echo "$ac_compile" | $SED \
7174   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7175   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7176   -e 's:$: $lt_compiler_flag:'`
7177   (eval echo "\"\$as_me:7177: $lt_compile\"" >&5)
7178   (eval "$lt_compile" 2>out/conftest.err)
7179   ac_status=$?
7180   cat out/conftest.err >&5
7181   echo "$as_me:7181: \$? = $ac_status" >&5
7182   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7183   then
7184     # The compiler can only warn and ignore the option if not recognized
7185     # So say no if there are warnings
7186     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7187     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7188     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7189       lt_cv_prog_compiler_c_o=yes
7190     fi
7191   fi
7192   chmod u+w . 2>&5
7193   $RM conftest*
7194   # SGI C++ compiler will create directory out/ii_files/ for
7195   # template instantiation
7196   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7197   $RM out/* && rmdir out
7198   cd ..
7199   $RM -r conftest
7200   $RM conftest*
7201
7202fi
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7204$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7205
7206
7207
7208
7209hard_links="nottested"
7210if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7211  # do not overwrite the value of need_locks provided by the user
7212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7213$as_echo_n "checking if we can lock with hard links... " >&6; }
7214  hard_links=yes
7215  $RM conftest*
7216  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7217  touch conftest.a
7218  ln conftest.a conftest.b 2>&5 || hard_links=no
7219  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7221$as_echo "$hard_links" >&6; }
7222  if test "$hard_links" = no; then
7223    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7224$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7225    need_locks=warn
7226  fi
7227else
7228  need_locks=no
7229fi
7230
7231
7232
7233
7234
7235
7236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7237$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7238
7239  runpath_var=
7240  allow_undefined_flag=
7241  always_export_symbols=no
7242  archive_cmds=
7243  archive_expsym_cmds=
7244  compiler_needs_object=no
7245  enable_shared_with_static_runtimes=no
7246  export_dynamic_flag_spec=
7247  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7248  hardcode_automatic=no
7249  hardcode_direct=no
7250  hardcode_direct_absolute=no
7251  hardcode_libdir_flag_spec=
7252  hardcode_libdir_flag_spec_ld=
7253  hardcode_libdir_separator=
7254  hardcode_minus_L=no
7255  hardcode_shlibpath_var=unsupported
7256  inherit_rpath=no
7257  link_all_deplibs=unknown
7258  module_cmds=
7259  module_expsym_cmds=
7260  old_archive_from_new_cmds=
7261  old_archive_from_expsyms_cmds=
7262  thread_safe_flag_spec=
7263  whole_archive_flag_spec=
7264  # include_expsyms should be a list of space-separated symbols to be *always*
7265  # included in the symbol list
7266  include_expsyms=
7267  # exclude_expsyms can be an extended regexp of symbols to exclude
7268  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7269  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7270  # as well as any symbol that contains `d'.
7271  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7272  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7273  # platforms (ab)use it in PIC code, but their linkers get confused if
7274  # the symbol is explicitly referenced.  Since portable code cannot
7275  # rely on this symbol name, it's probably fine to never include it in
7276  # preloaded symbol tables.
7277  # Exclude shared library initialization/finalization symbols.
7278  extract_expsyms_cmds=
7279
7280  case $host_os in
7281  cygwin* | mingw* | pw32* | cegcc*)
7282    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7283    # When not using gcc, we currently assume that we are using
7284    # Microsoft Visual C++.
7285    if test "$GCC" != yes; then
7286      with_gnu_ld=no
7287    fi
7288    ;;
7289  interix*)
7290    # we just hope/assume this is gcc and not c89 (= MSVC++)
7291    with_gnu_ld=yes
7292    ;;
7293  openbsd*)
7294    with_gnu_ld=no
7295    ;;
7296  esac
7297
7298  ld_shlibs=yes
7299  if test "$with_gnu_ld" = yes; then
7300    # If archive_cmds runs LD, not CC, wlarc should be empty
7301    wlarc='${wl}'
7302
7303    # Set some defaults for GNU ld with shared library support. These
7304    # are reset later if shared libraries are not supported. Putting them
7305    # here allows them to be overridden if necessary.
7306    runpath_var=LD_RUN_PATH
7307    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7308    export_dynamic_flag_spec='${wl}--export-dynamic'
7309    # ancient GNU ld didn't support --whole-archive et. al.
7310    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7311      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7312    else
7313      whole_archive_flag_spec=
7314    fi
7315    supports_anon_versioning=no
7316    case `$LD -v 2>&1` in
7317      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7318      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7319      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7320      *\ 2.11.*) ;; # other 2.11 versions
7321      *) supports_anon_versioning=yes ;;
7322    esac
7323
7324    # See if GNU ld supports shared libraries.
7325    case $host_os in
7326    aix[3-9]*)
7327      # On AIX/PPC, the GNU linker is very broken
7328      if test "$host_cpu" != ia64; then
7329	ld_shlibs=no
7330	cat <<_LT_EOF 1>&2
7331
7332*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7333*** to be unable to reliably create shared libraries on AIX.
7334*** Therefore, libtool is disabling shared libraries support.  If you
7335*** really care for shared libraries, you may want to modify your PATH
7336*** so that a non-GNU linker is found, and then restart.
7337
7338_LT_EOF
7339      fi
7340      ;;
7341
7342    amigaos*)
7343      case $host_cpu in
7344      powerpc)
7345            # see comment about AmigaOS4 .so support
7346            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7347            archive_expsym_cmds=''
7348        ;;
7349      m68k)
7350            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)'
7351            hardcode_libdir_flag_spec='-L$libdir'
7352            hardcode_minus_L=yes
7353        ;;
7354      esac
7355      ;;
7356
7357    beos*)
7358      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7359	allow_undefined_flag=unsupported
7360	# Joseph Beckenbach <[email protected]> says some releases of gcc
7361	# support --undefined.  This deserves some investigation.  FIXME
7362	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7363      else
7364	ld_shlibs=no
7365      fi
7366      ;;
7367
7368    cygwin* | mingw* | pw32* | cegcc*)
7369      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7370      # as there is no search path for DLLs.
7371      hardcode_libdir_flag_spec='-L$libdir'
7372      allow_undefined_flag=unsupported
7373      always_export_symbols=no
7374      enable_shared_with_static_runtimes=yes
7375      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7376
7377      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7378        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7379	# If the export-symbols file already is a .def file (1st line
7380	# is EXPORTS), use it as is; otherwise, prepend...
7381	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7382	  cp $export_symbols $output_objdir/$soname.def;
7383	else
7384	  echo EXPORTS > $output_objdir/$soname.def;
7385	  cat $export_symbols >> $output_objdir/$soname.def;
7386	fi~
7387	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7388      else
7389	ld_shlibs=no
7390      fi
7391      ;;
7392
7393    interix[3-9]*)
7394      hardcode_direct=no
7395      hardcode_shlibpath_var=no
7396      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7397      export_dynamic_flag_spec='${wl}-E'
7398      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7399      # Instead, shared libraries are loaded at an image base (0x10000000 by
7400      # default) and relocated if they conflict, which is a slow very memory
7401      # consuming and fragmenting process.  To avoid this, we pick a random,
7402      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7403      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7404      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7405      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'
7406      ;;
7407
7408    gnu* | linux* | tpf* | k*bsd*-gnu)
7409      tmp_diet=no
7410      if test "$host_os" = linux-dietlibc; then
7411	case $cc_basename in
7412	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7413	esac
7414      fi
7415      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7416	 && test "$tmp_diet" = no
7417      then
7418	tmp_addflag=
7419	tmp_sharedflag='-shared'
7420	case $cc_basename,$host_cpu in
7421        pgcc*)				# Portland Group C compiler
7422	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7423	  tmp_addflag=' $pic_flag'
7424	  ;;
7425	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7426	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7427	  tmp_addflag=' $pic_flag -Mnomain' ;;
7428	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7429	  tmp_addflag=' -i_dynamic' ;;
7430	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7431	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7432	ifc* | ifort*)			# Intel Fortran compiler
7433	  tmp_addflag=' -nofor_main' ;;
7434	lf95*)				# Lahey Fortran 8.1
7435	  whole_archive_flag_spec=
7436	  tmp_sharedflag='--shared' ;;
7437	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7438	  tmp_sharedflag='-qmkshrobj'
7439	  tmp_addflag= ;;
7440	esac
7441	case `$CC -V 2>&1 | sed 5q` in
7442	*Sun\ C*)			# Sun C 5.9
7443	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7444	  compiler_needs_object=yes
7445	  tmp_sharedflag='-G' ;;
7446	*Sun\ F*)			# Sun Fortran 8.3
7447	  tmp_sharedflag='-G' ;;
7448	esac
7449	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7450
7451        if test "x$supports_anon_versioning" = xyes; then
7452          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7453	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7454	    echo "local: *; };" >> $output_objdir/$libname.ver~
7455	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7456        fi
7457
7458	case $cc_basename in
7459	xlf*)
7460	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7461	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7462	  hardcode_libdir_flag_spec=
7463	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7464	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7465	  if test "x$supports_anon_versioning" = xyes; then
7466	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7467	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7468	      echo "local: *; };" >> $output_objdir/$libname.ver~
7469	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7470	  fi
7471	  ;;
7472	esac
7473      else
7474        ld_shlibs=no
7475      fi
7476      ;;
7477
7478    netbsd*)
7479      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7480	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7481	wlarc=
7482      else
7483	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7484	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7485      fi
7486      ;;
7487
7488    solaris*)
7489      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7490	ld_shlibs=no
7491	cat <<_LT_EOF 1>&2
7492
7493*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7494*** create shared libraries on Solaris systems.  Therefore, libtool
7495*** is disabling shared libraries support.  We urge you to upgrade GNU
7496*** binutils to release 2.9.1 or newer.  Another option is to modify
7497*** your PATH or compiler configuration so that the native linker is
7498*** used, and then restart.
7499
7500_LT_EOF
7501      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7502	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7503	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7504      else
7505	ld_shlibs=no
7506      fi
7507      ;;
7508
7509    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7510      case `$LD -v 2>&1` in
7511        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7512	ld_shlibs=no
7513	cat <<_LT_EOF 1>&2
7514
7515*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7516*** reliably create shared libraries on SCO systems.  Therefore, libtool
7517*** is disabling shared libraries support.  We urge you to upgrade GNU
7518*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7519*** your PATH or compiler configuration so that the native linker is
7520*** used, and then restart.
7521
7522_LT_EOF
7523	;;
7524	*)
7525	  # For security reasons, it is highly recommended that you always
7526	  # use absolute paths for naming shared libraries, and exclude the
7527	  # DT_RUNPATH tag from executables and libraries.  But doing so
7528	  # requires that you compile everything twice, which is a pain.
7529	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7530	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7531	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7532	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7533	  else
7534	    ld_shlibs=no
7535	  fi
7536	;;
7537      esac
7538      ;;
7539
7540    sunos4*)
7541      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7542      wlarc=
7543      hardcode_direct=yes
7544      hardcode_shlibpath_var=no
7545      ;;
7546
7547    *)
7548      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7549	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7550	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7551      else
7552	ld_shlibs=no
7553      fi
7554      ;;
7555    esac
7556
7557    if test "$ld_shlibs" = no; then
7558      runpath_var=
7559      hardcode_libdir_flag_spec=
7560      export_dynamic_flag_spec=
7561      whole_archive_flag_spec=
7562    fi
7563  else
7564    # PORTME fill in a description of your system's linker (not GNU ld)
7565    case $host_os in
7566    aix3*)
7567      allow_undefined_flag=unsupported
7568      always_export_symbols=yes
7569      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'
7570      # Note: this linker hardcodes the directories in LIBPATH if there
7571      # are no directories specified by -L.
7572      hardcode_minus_L=yes
7573      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7574	# Neither direct hardcoding nor static linking is supported with a
7575	# broken collect2.
7576	hardcode_direct=unsupported
7577      fi
7578      ;;
7579
7580    aix[4-9]*)
7581      if test "$host_cpu" = ia64; then
7582	# On IA64, the linker does run time linking by default, so we don't
7583	# have to do anything special.
7584	aix_use_runtimelinking=no
7585	exp_sym_flag='-Bexport'
7586	no_entry_flag=""
7587      else
7588	# If we're using GNU nm, then we don't want the "-C" option.
7589	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7590	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7591	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7592	else
7593	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7594	fi
7595	aix_use_runtimelinking=no
7596
7597	# Test if we are trying to use run time linking or normal
7598	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7599	# need to do runtime linking.
7600	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7601	  for ld_flag in $LDFLAGS; do
7602	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7603	    aix_use_runtimelinking=yes
7604	    break
7605	  fi
7606	  done
7607	  ;;
7608	esac
7609
7610	exp_sym_flag='-bexport'
7611	no_entry_flag='-bnoentry'
7612      fi
7613
7614      # When large executables or shared objects are built, AIX ld can
7615      # have problems creating the table of contents.  If linking a library
7616      # or program results in "error TOC overflow" add -mminimal-toc to
7617      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7618      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7619
7620      archive_cmds=''
7621      hardcode_direct=yes
7622      hardcode_direct_absolute=yes
7623      hardcode_libdir_separator=':'
7624      link_all_deplibs=yes
7625      file_list_spec='${wl}-f,'
7626
7627      if test "$GCC" = yes; then
7628	case $host_os in aix4.[012]|aix4.[012].*)
7629	# We only want to do this on AIX 4.2 and lower, the check
7630	# below for broken collect2 doesn't work under 4.3+
7631	  collect2name=`${CC} -print-prog-name=collect2`
7632	  if test -f "$collect2name" &&
7633	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7634	  then
7635	  # We have reworked collect2
7636	  :
7637	  else
7638	  # We have old collect2
7639	  hardcode_direct=unsupported
7640	  # It fails to find uninstalled libraries when the uninstalled
7641	  # path is not listed in the libpath.  Setting hardcode_minus_L
7642	  # to unsupported forces relinking
7643	  hardcode_minus_L=yes
7644	  hardcode_libdir_flag_spec='-L$libdir'
7645	  hardcode_libdir_separator=
7646	  fi
7647	  ;;
7648	esac
7649	shared_flag='-shared'
7650	if test "$aix_use_runtimelinking" = yes; then
7651	  shared_flag="$shared_flag "'${wl}-G'
7652	fi
7653      else
7654	# not using gcc
7655	if test "$host_cpu" = ia64; then
7656	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7657	# chokes on -Wl,-G. The following line is correct:
7658	  shared_flag='-G'
7659	else
7660	  if test "$aix_use_runtimelinking" = yes; then
7661	    shared_flag='${wl}-G'
7662	  else
7663	    shared_flag='${wl}-bM:SRE'
7664	  fi
7665	fi
7666      fi
7667
7668      export_dynamic_flag_spec='${wl}-bexpall'
7669      # It seems that -bexpall does not export symbols beginning with
7670      # underscore (_), so it is better to generate a list of symbols to export.
7671      always_export_symbols=yes
7672      if test "$aix_use_runtimelinking" = yes; then
7673	# Warning - without using the other runtime loading flags (-brtl),
7674	# -berok will link without error, but may produce a broken library.
7675	allow_undefined_flag='-berok'
7676        # Determine the default libpath from the value encoded in an
7677        # empty executable.
7678        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h.  */
7680
7681int
7682main ()
7683{
7684
7685  ;
7686  return 0;
7687}
7688_ACEOF
7689if ac_fn_c_try_link "$LINENO"; then :
7690
7691lt_aix_libpath_sed='
7692    /Import File Strings/,/^$/ {
7693	/^0/ {
7694	    s/^0  *\(.*\)$/\1/
7695	    p
7696	}
7697    }'
7698aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7699# Check for a 64-bit object if we didn't find anything.
7700if test -z "$aix_libpath"; then
7701  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7702fi
7703fi
7704rm -f core conftest.err conftest.$ac_objext \
7705    conftest$ac_exeext conftest.$ac_ext
7706if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7707
7708        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7709        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7710      else
7711	if test "$host_cpu" = ia64; then
7712	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7713	  allow_undefined_flag="-z nodefs"
7714	  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"
7715	else
7716	 # Determine the default libpath from the value encoded in an
7717	 # empty executable.
7718	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h.  */
7720
7721int
7722main ()
7723{
7724
7725  ;
7726  return 0;
7727}
7728_ACEOF
7729if ac_fn_c_try_link "$LINENO"; then :
7730
7731lt_aix_libpath_sed='
7732    /Import File Strings/,/^$/ {
7733	/^0/ {
7734	    s/^0  *\(.*\)$/\1/
7735	    p
7736	}
7737    }'
7738aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7739# Check for a 64-bit object if we didn't find anything.
7740if test -z "$aix_libpath"; then
7741  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7742fi
7743fi
7744rm -f core conftest.err conftest.$ac_objext \
7745    conftest$ac_exeext conftest.$ac_ext
7746if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7747
7748	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7749	  # Warning - without using the other run time loading flags,
7750	  # -berok will link without error, but may produce a broken library.
7751	  no_undefined_flag=' ${wl}-bernotok'
7752	  allow_undefined_flag=' ${wl}-berok'
7753	  # Exported symbols can be pulled into shared objects from archives
7754	  whole_archive_flag_spec='$convenience'
7755	  archive_cmds_need_lc=yes
7756	  # This is similar to how AIX traditionally builds its shared libraries.
7757	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7758	fi
7759      fi
7760      ;;
7761
7762    amigaos*)
7763      case $host_cpu in
7764      powerpc)
7765            # see comment about AmigaOS4 .so support
7766            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7767            archive_expsym_cmds=''
7768        ;;
7769      m68k)
7770            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)'
7771            hardcode_libdir_flag_spec='-L$libdir'
7772            hardcode_minus_L=yes
7773        ;;
7774      esac
7775      ;;
7776
7777    bsdi[45]*)
7778      export_dynamic_flag_spec=-rdynamic
7779      ;;
7780
7781    cygwin* | mingw* | pw32* | cegcc*)
7782      # When not using gcc, we currently assume that we are using
7783      # Microsoft Visual C++.
7784      # hardcode_libdir_flag_spec is actually meaningless, as there is
7785      # no search path for DLLs.
7786      hardcode_libdir_flag_spec=' '
7787      allow_undefined_flag=unsupported
7788      # Tell ltmain to make .lib files, not .a files.
7789      libext=lib
7790      # Tell ltmain to make .dll files, not .so files.
7791      shrext_cmds=".dll"
7792      # FIXME: Setting linknames here is a bad hack.
7793      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7794      # The linker will automatically build a .lib file if we build a DLL.
7795      old_archive_from_new_cmds='true'
7796      # FIXME: Should let the user specify the lib program.
7797      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7798      fix_srcfile_path='`cygpath -w "$srcfile"`'
7799      enable_shared_with_static_runtimes=yes
7800      ;;
7801
7802    darwin* | rhapsody*)
7803
7804
7805  archive_cmds_need_lc=no
7806  hardcode_direct=no
7807  hardcode_automatic=yes
7808  hardcode_shlibpath_var=unsupported
7809  whole_archive_flag_spec=''
7810  link_all_deplibs=yes
7811  allow_undefined_flag="$_lt_dar_allow_undefined"
7812  case $cc_basename in
7813     ifort*) _lt_dar_can_shared=yes ;;
7814     *) _lt_dar_can_shared=$GCC ;;
7815  esac
7816  if test "$_lt_dar_can_shared" = "yes"; then
7817    output_verbose_link_cmd=echo
7818    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7819    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7820    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}"
7821    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}"
7822
7823  else
7824  ld_shlibs=no
7825  fi
7826
7827      ;;
7828
7829    dgux*)
7830      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831      hardcode_libdir_flag_spec='-L$libdir'
7832      hardcode_shlibpath_var=no
7833      ;;
7834
7835    freebsd1*)
7836      ld_shlibs=no
7837      ;;
7838
7839    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7840    # support.  Future versions do this automatically, but an explicit c++rt0.o
7841    # does not break anything, and helps significantly (at the cost of a little
7842    # extra space).
7843    freebsd2.2*)
7844      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7845      hardcode_libdir_flag_spec='-R$libdir'
7846      hardcode_direct=yes
7847      hardcode_shlibpath_var=no
7848      ;;
7849
7850    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7851    freebsd2*)
7852      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7853      hardcode_direct=yes
7854      hardcode_minus_L=yes
7855      hardcode_shlibpath_var=no
7856      ;;
7857
7858    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7859    freebsd* | dragonfly*)
7860      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7861      hardcode_libdir_flag_spec='-R$libdir'
7862      hardcode_direct=yes
7863      hardcode_shlibpath_var=no
7864      ;;
7865
7866    hpux9*)
7867      if test "$GCC" = yes; then
7868	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7869      else
7870	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7871      fi
7872      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7873      hardcode_libdir_separator=:
7874      hardcode_direct=yes
7875
7876      # hardcode_minus_L: Not really in the search PATH,
7877      # but as the default location of the library.
7878      hardcode_minus_L=yes
7879      export_dynamic_flag_spec='${wl}-E'
7880      ;;
7881
7882    hpux10*)
7883      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7884	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7885      else
7886	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7887      fi
7888      if test "$with_gnu_ld" = no; then
7889	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7890	hardcode_libdir_flag_spec_ld='+b $libdir'
7891	hardcode_libdir_separator=:
7892	hardcode_direct=yes
7893	hardcode_direct_absolute=yes
7894	export_dynamic_flag_spec='${wl}-E'
7895	# hardcode_minus_L: Not really in the search PATH,
7896	# but as the default location of the library.
7897	hardcode_minus_L=yes
7898      fi
7899      ;;
7900
7901    hpux11*)
7902      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7903	case $host_cpu in
7904	hppa*64*)
7905	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7906	  ;;
7907	ia64*)
7908	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7909	  ;;
7910	*)
7911	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7912	  ;;
7913	esac
7914      else
7915	case $host_cpu in
7916	hppa*64*)
7917	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7918	  ;;
7919	ia64*)
7920	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7921	  ;;
7922	*)
7923	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7924	  ;;
7925	esac
7926      fi
7927      if test "$with_gnu_ld" = no; then
7928	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7929	hardcode_libdir_separator=:
7930
7931	case $host_cpu in
7932	hppa*64*|ia64*)
7933	  hardcode_direct=no
7934	  hardcode_shlibpath_var=no
7935	  ;;
7936	*)
7937	  hardcode_direct=yes
7938	  hardcode_direct_absolute=yes
7939	  export_dynamic_flag_spec='${wl}-E'
7940
7941	  # hardcode_minus_L: Not really in the search PATH,
7942	  # but as the default location of the library.
7943	  hardcode_minus_L=yes
7944	  ;;
7945	esac
7946      fi
7947      ;;
7948
7949    irix5* | irix6* | nonstopux*)
7950      if test "$GCC" = yes; then
7951	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7952	# Try to use the -exported_symbol ld option, if it does not
7953	# work, assume that -exports_file does not work either and
7954	# implicitly export all symbols.
7955        save_LDFLAGS="$LDFLAGS"
7956        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7957        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958/* end confdefs.h.  */
7959int foo(void) {}
7960_ACEOF
7961if ac_fn_c_try_link "$LINENO"; then :
7962  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7963
7964fi
7965rm -f core conftest.err conftest.$ac_objext \
7966    conftest$ac_exeext conftest.$ac_ext
7967        LDFLAGS="$save_LDFLAGS"
7968      else
7969	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7970	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7971      fi
7972      archive_cmds_need_lc='no'
7973      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7974      hardcode_libdir_separator=:
7975      inherit_rpath=yes
7976      link_all_deplibs=yes
7977      ;;
7978
7979    netbsd*)
7980      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7981	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7982      else
7983	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7984      fi
7985      hardcode_libdir_flag_spec='-R$libdir'
7986      hardcode_direct=yes
7987      hardcode_shlibpath_var=no
7988      ;;
7989
7990    newsos6)
7991      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7992      hardcode_direct=yes
7993      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7994      hardcode_libdir_separator=:
7995      hardcode_shlibpath_var=no
7996      ;;
7997
7998    *nto* | *qnx*)
7999      ;;
8000
8001    openbsd*)
8002      if test -f /usr/libexec/ld.so; then
8003	hardcode_direct=yes
8004	hardcode_shlibpath_var=no
8005	hardcode_direct_absolute=yes
8006	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8007	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8008	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8009	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8010	  export_dynamic_flag_spec='${wl}-E'
8011	else
8012	  case $host_os in
8013	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8014	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8015	     hardcode_libdir_flag_spec='-R$libdir'
8016	     ;;
8017	   *)
8018	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8019	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8020	     ;;
8021	  esac
8022	fi
8023      else
8024	ld_shlibs=no
8025      fi
8026      ;;
8027
8028    os2*)
8029      hardcode_libdir_flag_spec='-L$libdir'
8030      hardcode_minus_L=yes
8031      allow_undefined_flag=unsupported
8032      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8033      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8034      ;;
8035
8036    osf3*)
8037      if test "$GCC" = yes; then
8038	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8039	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8040      else
8041	allow_undefined_flag=' -expect_unresolved \*'
8042	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8043      fi
8044      archive_cmds_need_lc='no'
8045      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8046      hardcode_libdir_separator=:
8047      ;;
8048
8049    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8050      if test "$GCC" = yes; then
8051	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8052	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8053	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8054      else
8055	allow_undefined_flag=' -expect_unresolved \*'
8056	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8057	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~
8058	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8059
8060	# Both c and cxx compiler support -rpath directly
8061	hardcode_libdir_flag_spec='-rpath $libdir'
8062      fi
8063      archive_cmds_need_lc='no'
8064      hardcode_libdir_separator=:
8065      ;;
8066
8067    solaris*)
8068      no_undefined_flag=' -z defs'
8069      if test "$GCC" = yes; then
8070	wlarc='${wl}'
8071	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8072	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8073	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8074      else
8075	case `$CC -V 2>&1` in
8076	*"Compilers 5.0"*)
8077	  wlarc=''
8078	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8079	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8080	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8081	  ;;
8082	*)
8083	  wlarc='${wl}'
8084	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8085	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8086	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8087	  ;;
8088	esac
8089      fi
8090      hardcode_libdir_flag_spec='-R$libdir'
8091      hardcode_shlibpath_var=no
8092      case $host_os in
8093      solaris2.[0-5] | solaris2.[0-5].*) ;;
8094      *)
8095	# The compiler driver will combine and reorder linker options,
8096	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8097	# but is careful enough not to reorder.
8098	# Supported since Solaris 2.6 (maybe 2.5.1?)
8099	if test "$GCC" = yes; then
8100	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8101	else
8102	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8103	fi
8104	;;
8105      esac
8106      link_all_deplibs=yes
8107      ;;
8108
8109    sunos4*)
8110      if test "x$host_vendor" = xsequent; then
8111	# Use $CC to link under sequent, because it throws in some extra .o
8112	# files that make .init and .fini sections work.
8113	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8114      else
8115	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8116      fi
8117      hardcode_libdir_flag_spec='-L$libdir'
8118      hardcode_direct=yes
8119      hardcode_minus_L=yes
8120      hardcode_shlibpath_var=no
8121      ;;
8122
8123    sysv4)
8124      case $host_vendor in
8125	sni)
8126	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8127	  hardcode_direct=yes # is this really true???
8128	;;
8129	siemens)
8130	  ## LD is ld it makes a PLAMLIB
8131	  ## CC just makes a GrossModule.
8132	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8133	  reload_cmds='$CC -r -o $output$reload_objs'
8134	  hardcode_direct=no
8135        ;;
8136	motorola)
8137	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8138	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8139	;;
8140      esac
8141      runpath_var='LD_RUN_PATH'
8142      hardcode_shlibpath_var=no
8143      ;;
8144
8145    sysv4.3*)
8146      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8147      hardcode_shlibpath_var=no
8148      export_dynamic_flag_spec='-Bexport'
8149      ;;
8150
8151    sysv4*MP*)
8152      if test -d /usr/nec; then
8153	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8154	hardcode_shlibpath_var=no
8155	runpath_var=LD_RUN_PATH
8156	hardcode_runpath_var=yes
8157	ld_shlibs=yes
8158      fi
8159      ;;
8160
8161    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8162      no_undefined_flag='${wl}-z,text'
8163      archive_cmds_need_lc=no
8164      hardcode_shlibpath_var=no
8165      runpath_var='LD_RUN_PATH'
8166
8167      if test "$GCC" = yes; then
8168	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8169	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8170      else
8171	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8172	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8173      fi
8174      ;;
8175
8176    sysv5* | sco3.2v5* | sco5v6*)
8177      # Note: We can NOT use -z defs as we might desire, because we do not
8178      # link with -lc, and that would cause any symbols used from libc to
8179      # always be unresolved, which means just about no library would
8180      # ever link correctly.  If we're not using GNU ld we use -z text
8181      # though, which does catch some bad symbols but isn't as heavy-handed
8182      # as -z defs.
8183      no_undefined_flag='${wl}-z,text'
8184      allow_undefined_flag='${wl}-z,nodefs'
8185      archive_cmds_need_lc=no
8186      hardcode_shlibpath_var=no
8187      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8188      hardcode_libdir_separator=':'
8189      link_all_deplibs=yes
8190      export_dynamic_flag_spec='${wl}-Bexport'
8191      runpath_var='LD_RUN_PATH'
8192
8193      if test "$GCC" = yes; then
8194	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8195	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8196      else
8197	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8198	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8199      fi
8200      ;;
8201
8202    uts4*)
8203      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8204      hardcode_libdir_flag_spec='-L$libdir'
8205      hardcode_shlibpath_var=no
8206      ;;
8207
8208    *)
8209      ld_shlibs=no
8210      ;;
8211    esac
8212
8213    if test x$host_vendor = xsni; then
8214      case $host in
8215      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8216	export_dynamic_flag_spec='${wl}-Blargedynsym'
8217	;;
8218      esac
8219    fi
8220  fi
8221
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8223$as_echo "$ld_shlibs" >&6; }
8224test "$ld_shlibs" = no && can_build_shared=no
8225
8226with_gnu_ld=$with_gnu_ld
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242#
8243# Do we need to explicitly link libc?
8244#
8245case "x$archive_cmds_need_lc" in
8246x|xyes)
8247  # Assume -lc should be added
8248  archive_cmds_need_lc=yes
8249
8250  if test "$enable_shared" = yes && test "$GCC" = yes; then
8251    case $archive_cmds in
8252    *'~'*)
8253      # FIXME: we may have to deal with multi-command sequences.
8254      ;;
8255    '$CC '*)
8256      # Test whether the compiler implicitly links with -lc since on some
8257      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8258      # to ld, don't add -lc before -lgcc.
8259      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8260$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8261      $RM conftest*
8262      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8263
8264      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8265  (eval $ac_compile) 2>&5
8266  ac_status=$?
8267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8268  test $ac_status = 0; } 2>conftest.err; then
8269        soname=conftest
8270        lib=conftest
8271        libobjs=conftest.$ac_objext
8272        deplibs=
8273        wl=$lt_prog_compiler_wl
8274	pic_flag=$lt_prog_compiler_pic
8275        compiler_flags=-v
8276        linker_flags=-v
8277        verstring=
8278        output_objdir=.
8279        libname=conftest
8280        lt_save_allow_undefined_flag=$allow_undefined_flag
8281        allow_undefined_flag=
8282        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8283  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8284  ac_status=$?
8285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8286  test $ac_status = 0; }
8287        then
8288	  archive_cmds_need_lc=no
8289        else
8290	  archive_cmds_need_lc=yes
8291        fi
8292        allow_undefined_flag=$lt_save_allow_undefined_flag
8293      else
8294        cat conftest.err 1>&5
8295      fi
8296      $RM conftest*
8297      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8298$as_echo "$archive_cmds_need_lc" >&6; }
8299      ;;
8300    esac
8301  fi
8302  ;;
8303esac
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8462$as_echo_n "checking dynamic linker characteristics... " >&6; }
8463
8464if test "$GCC" = yes; then
8465  case $host_os in
8466    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8467    *) lt_awk_arg="/^libraries:/" ;;
8468  esac
8469  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8470  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8471    # if the path contains ";" then we assume it to be the separator
8472    # otherwise default to the standard path separator (i.e. ":") - it is
8473    # assumed that no part of a normal pathname contains ";" but that should
8474    # okay in the real world where ";" in dirpaths is itself problematic.
8475    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8476  else
8477    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8478  fi
8479  # Ok, now we have the path, separated by spaces, we can step through it
8480  # and add multilib dir if necessary.
8481  lt_tmp_lt_search_path_spec=
8482  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8483  for lt_sys_path in $lt_search_path_spec; do
8484    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8485      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8486    else
8487      test -d "$lt_sys_path" && \
8488	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8489    fi
8490  done
8491  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8492BEGIN {RS=" "; FS="/|\n";} {
8493  lt_foo="";
8494  lt_count=0;
8495  for (lt_i = NF; lt_i > 0; lt_i--) {
8496    if ($lt_i != "" && $lt_i != ".") {
8497      if ($lt_i == "..") {
8498        lt_count++;
8499      } else {
8500        if (lt_count == 0) {
8501          lt_foo="/" $lt_i lt_foo;
8502        } else {
8503          lt_count--;
8504        }
8505      }
8506    }
8507  }
8508  if (lt_foo != "") { lt_freq[lt_foo]++; }
8509  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8510}'`
8511  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8512else
8513  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8514fi
8515library_names_spec=
8516libname_spec='lib$name'
8517soname_spec=
8518shrext_cmds=".so"
8519postinstall_cmds=
8520postuninstall_cmds=
8521finish_cmds=
8522finish_eval=
8523shlibpath_var=
8524shlibpath_overrides_runpath=unknown
8525version_type=none
8526dynamic_linker="$host_os ld.so"
8527sys_lib_dlsearch_path_spec="/lib /usr/lib"
8528need_lib_prefix=unknown
8529hardcode_into_libs=no
8530
8531# when you set need_version to no, make sure it does not cause -set_version
8532# flags to be left without arguments
8533need_version=unknown
8534
8535case $host_os in
8536aix3*)
8537  version_type=linux
8538  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8539  shlibpath_var=LIBPATH
8540
8541  # AIX 3 has no versioning support, so we append a major version to the name.
8542  soname_spec='${libname}${release}${shared_ext}$major'
8543  ;;
8544
8545aix[4-9]*)
8546  version_type=linux
8547  need_lib_prefix=no
8548  need_version=no
8549  hardcode_into_libs=yes
8550  if test "$host_cpu" = ia64; then
8551    # AIX 5 supports IA64
8552    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8553    shlibpath_var=LD_LIBRARY_PATH
8554  else
8555    # With GCC up to 2.95.x, collect2 would create an import file
8556    # for dependence libraries.  The import file would start with
8557    # the line `#! .'.  This would cause the generated library to
8558    # depend on `.', always an invalid library.  This was fixed in
8559    # development snapshots of GCC prior to 3.0.
8560    case $host_os in
8561      aix4 | aix4.[01] | aix4.[01].*)
8562      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8563	   echo ' yes '
8564	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8565	:
8566      else
8567	can_build_shared=no
8568      fi
8569      ;;
8570    esac
8571    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8572    # soname into executable. Probably we can add versioning support to
8573    # collect2, so additional links can be useful in future.
8574    if test "$aix_use_runtimelinking" = yes; then
8575      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8576      # instead of lib<name>.a to let people know that these are not
8577      # typical AIX shared libraries.
8578      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8579    else
8580      # We preserve .a as extension for shared libraries through AIX4.2
8581      # and later when we are not doing run time linking.
8582      library_names_spec='${libname}${release}.a $libname.a'
8583      soname_spec='${libname}${release}${shared_ext}$major'
8584    fi
8585    shlibpath_var=LIBPATH
8586  fi
8587  ;;
8588
8589amigaos*)
8590  case $host_cpu in
8591  powerpc)
8592    # Since July 2007 AmigaOS4 officially supports .so libraries.
8593    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8594    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595    ;;
8596  m68k)
8597    library_names_spec='$libname.ixlibrary $libname.a'
8598    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8599    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8600    ;;
8601  esac
8602  ;;
8603
8604beos*)
8605  library_names_spec='${libname}${shared_ext}'
8606  dynamic_linker="$host_os ld.so"
8607  shlibpath_var=LIBRARY_PATH
8608  ;;
8609
8610bsdi[45]*)
8611  version_type=linux
8612  need_version=no
8613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614  soname_spec='${libname}${release}${shared_ext}$major'
8615  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8616  shlibpath_var=LD_LIBRARY_PATH
8617  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8618  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8619  # the default ld.so.conf also contains /usr/contrib/lib and
8620  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8621  # libtool to hard-code these into programs
8622  ;;
8623
8624cygwin* | mingw* | pw32* | cegcc*)
8625  version_type=windows
8626  shrext_cmds=".dll"
8627  need_version=no
8628  need_lib_prefix=no
8629
8630  case $GCC,$host_os in
8631  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8632    library_names_spec='$libname.dll.a'
8633    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8634    postinstall_cmds='base_file=`basename \${file}`~
8635      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8636      dldir=$destdir/`dirname \$dlpath`~
8637      test -d \$dldir || mkdir -p \$dldir~
8638      $install_prog $dir/$dlname \$dldir/$dlname~
8639      chmod a+x \$dldir/$dlname~
8640      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8641        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8642      fi'
8643    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8644      dlpath=$dir/\$dldll~
8645       $RM \$dlpath'
8646    shlibpath_overrides_runpath=yes
8647
8648    case $host_os in
8649    cygwin*)
8650      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8651      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8652      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8653      ;;
8654    mingw* | cegcc*)
8655      # MinGW DLLs use traditional 'lib' prefix
8656      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8657      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8658      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8659        # It is most probably a Windows format PATH printed by
8660        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8661        # path with ; separators, and with drive letters. We can handle the
8662        # drive letters (cygwin fileutils understands them), so leave them,
8663        # especially as we might pass files found there to a mingw objdump,
8664        # which wouldn't understand a cygwinified path. Ahh.
8665        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8666      else
8667        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8668      fi
8669      ;;
8670    pw32*)
8671      # pw32 DLLs use 'pw' prefix rather than 'lib'
8672      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8673      ;;
8674    esac
8675    ;;
8676
8677  *)
8678    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8679    ;;
8680  esac
8681  dynamic_linker='Win32 ld.exe'
8682  # FIXME: first we should search . and the directory the executable is in
8683  shlibpath_var=PATH
8684  ;;
8685
8686darwin* | rhapsody*)
8687  dynamic_linker="$host_os dyld"
8688  version_type=darwin
8689  need_lib_prefix=no
8690  need_version=no
8691  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8692  soname_spec='${libname}${release}${major}$shared_ext'
8693  shlibpath_overrides_runpath=yes
8694  shlibpath_var=DYLD_LIBRARY_PATH
8695  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8696
8697  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8698  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8699  ;;
8700
8701dgux*)
8702  version_type=linux
8703  need_lib_prefix=no
8704  need_version=no
8705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8706  soname_spec='${libname}${release}${shared_ext}$major'
8707  shlibpath_var=LD_LIBRARY_PATH
8708  ;;
8709
8710freebsd1*)
8711  dynamic_linker=no
8712  ;;
8713
8714freebsd* | dragonfly*)
8715  # DragonFly does not have aout.  When/if they implement a new
8716  # versioning mechanism, adjust this.
8717  if test -x /usr/bin/objformat; then
8718    objformat=`/usr/bin/objformat`
8719  else
8720    case $host_os in
8721    freebsd[123]*) objformat=aout ;;
8722    *) objformat=elf ;;
8723    esac
8724  fi
8725  # Handle Gentoo/FreeBSD as it was Linux
8726  case $host_vendor in
8727    gentoo)
8728      version_type=linux ;;
8729    *)
8730      version_type=freebsd-$objformat ;;
8731  esac
8732
8733  case $version_type in
8734    freebsd-elf*)
8735      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8736      need_version=no
8737      need_lib_prefix=no
8738      ;;
8739    freebsd-*)
8740      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8741      need_version=yes
8742      ;;
8743    linux)
8744      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8745      soname_spec='${libname}${release}${shared_ext}$major'
8746      need_lib_prefix=no
8747      need_version=no
8748      ;;
8749  esac
8750  shlibpath_var=LD_LIBRARY_PATH
8751  case $host_os in
8752  freebsd2*)
8753    shlibpath_overrides_runpath=yes
8754    ;;
8755  freebsd3.[01]* | freebsdelf3.[01]*)
8756    shlibpath_overrides_runpath=yes
8757    hardcode_into_libs=yes
8758    ;;
8759  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8760  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8761    shlibpath_overrides_runpath=no
8762    hardcode_into_libs=yes
8763    ;;
8764  *) # from 4.6 on, and DragonFly
8765    shlibpath_overrides_runpath=yes
8766    hardcode_into_libs=yes
8767    ;;
8768  esac
8769  ;;
8770
8771gnu*)
8772  version_type=linux
8773  need_lib_prefix=no
8774  need_version=no
8775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8776  soname_spec='${libname}${release}${shared_ext}$major'
8777  shlibpath_var=LD_LIBRARY_PATH
8778  hardcode_into_libs=yes
8779  ;;
8780
8781hpux9* | hpux10* | hpux11*)
8782  # Give a soname corresponding to the major version so that dld.sl refuses to
8783  # link against other versions.
8784  version_type=sunos
8785  need_lib_prefix=no
8786  need_version=no
8787  case $host_cpu in
8788  ia64*)
8789    shrext_cmds='.so'
8790    hardcode_into_libs=yes
8791    dynamic_linker="$host_os dld.so"
8792    shlibpath_var=LD_LIBRARY_PATH
8793    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8794    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8795    soname_spec='${libname}${release}${shared_ext}$major'
8796    if test "X$HPUX_IA64_MODE" = X32; then
8797      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8798    else
8799      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8800    fi
8801    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8802    ;;
8803  hppa*64*)
8804    shrext_cmds='.sl'
8805    hardcode_into_libs=yes
8806    dynamic_linker="$host_os dld.sl"
8807    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8808    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8809    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810    soname_spec='${libname}${release}${shared_ext}$major'
8811    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8812    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8813    ;;
8814  *)
8815    shrext_cmds='.sl'
8816    dynamic_linker="$host_os dld.sl"
8817    shlibpath_var=SHLIB_PATH
8818    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8819    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820    soname_spec='${libname}${release}${shared_ext}$major'
8821    ;;
8822  esac
8823  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8824  postinstall_cmds='chmod 555 $lib'
8825  ;;
8826
8827interix[3-9]*)
8828  version_type=linux
8829  need_lib_prefix=no
8830  need_version=no
8831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8832  soname_spec='${libname}${release}${shared_ext}$major'
8833  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8834  shlibpath_var=LD_LIBRARY_PATH
8835  shlibpath_overrides_runpath=no
8836  hardcode_into_libs=yes
8837  ;;
8838
8839irix5* | irix6* | nonstopux*)
8840  case $host_os in
8841    nonstopux*) version_type=nonstopux ;;
8842    *)
8843	if test "$lt_cv_prog_gnu_ld" = yes; then
8844		version_type=linux
8845	else
8846		version_type=irix
8847	fi ;;
8848  esac
8849  need_lib_prefix=no
8850  need_version=no
8851  soname_spec='${libname}${release}${shared_ext}$major'
8852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8853  case $host_os in
8854  irix5* | nonstopux*)
8855    libsuff= shlibsuff=
8856    ;;
8857  *)
8858    case $LD in # libtool.m4 will add one of these switches to LD
8859    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8860      libsuff= shlibsuff= libmagic=32-bit;;
8861    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8862      libsuff=32 shlibsuff=N32 libmagic=N32;;
8863    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8864      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8865    *) libsuff= shlibsuff= libmagic=never-match;;
8866    esac
8867    ;;
8868  esac
8869  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8870  shlibpath_overrides_runpath=no
8871  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8872  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8873  hardcode_into_libs=yes
8874  ;;
8875
8876# No shared lib support for Linux oldld, aout, or coff.
8877linux*oldld* | linux*aout* | linux*coff*)
8878  dynamic_linker=no
8879  ;;
8880
8881# This must be Linux ELF.
8882linux* | k*bsd*-gnu)
8883  version_type=linux
8884  need_lib_prefix=no
8885  need_version=no
8886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887  soname_spec='${libname}${release}${shared_ext}$major'
8888  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8889  shlibpath_var=LD_LIBRARY_PATH
8890  shlibpath_overrides_runpath=no
8891  # Some binutils ld are patched to set DT_RUNPATH
8892  save_LDFLAGS=$LDFLAGS
8893  save_libdir=$libdir
8894  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8895       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897/* end confdefs.h.  */
8898
8899int
8900main ()
8901{
8902
8903  ;
8904  return 0;
8905}
8906_ACEOF
8907if ac_fn_c_try_link "$LINENO"; then :
8908  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8909  shlibpath_overrides_runpath=yes
8910fi
8911fi
8912rm -f core conftest.err conftest.$ac_objext \
8913    conftest$ac_exeext conftest.$ac_ext
8914  LDFLAGS=$save_LDFLAGS
8915  libdir=$save_libdir
8916
8917  # This implies no fast_install, which is unacceptable.
8918  # Some rework will be needed to allow for fast_install
8919  # before this can be enabled.
8920  hardcode_into_libs=yes
8921
8922  # Append ld.so.conf contents to the search path
8923  if test -f /etc/ld.so.conf; then
8924    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;/^$/d' | tr '\n' ' '`
8925    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8926  fi
8927
8928  # We used to test for /lib/ld.so.1 and disable shared libraries on
8929  # powerpc, because MkLinux only supported shared libraries with the
8930  # GNU dynamic linker.  Since this was broken with cross compilers,
8931  # most powerpc-linux boxes support dynamic linking these days and
8932  # people can always --disable-shared, the test was removed, and we
8933  # assume the GNU/Linux dynamic linker is in use.
8934  dynamic_linker='GNU/Linux ld.so'
8935  ;;
8936
8937netbsd*)
8938  version_type=sunos
8939  need_lib_prefix=no
8940  need_version=no
8941  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8942    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8943    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8944    dynamic_linker='NetBSD (a.out) ld.so'
8945  else
8946    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8947    soname_spec='${libname}${release}${shared_ext}$major'
8948    dynamic_linker='NetBSD ld.elf_so'
8949  fi
8950  shlibpath_var=LD_LIBRARY_PATH
8951  shlibpath_overrides_runpath=yes
8952  hardcode_into_libs=yes
8953  ;;
8954
8955newsos6)
8956  version_type=linux
8957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958  shlibpath_var=LD_LIBRARY_PATH
8959  shlibpath_overrides_runpath=yes
8960  ;;
8961
8962*nto* | *qnx*)
8963  version_type=qnx
8964  need_lib_prefix=no
8965  need_version=no
8966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967  soname_spec='${libname}${release}${shared_ext}$major'
8968  shlibpath_var=LD_LIBRARY_PATH
8969  shlibpath_overrides_runpath=no
8970  hardcode_into_libs=yes
8971  dynamic_linker='ldqnx.so'
8972  ;;
8973
8974openbsd*)
8975  version_type=sunos
8976  sys_lib_dlsearch_path_spec="/usr/lib"
8977  need_lib_prefix=no
8978  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8979  case $host_os in
8980    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
8981    *)				need_version=no  ;;
8982  esac
8983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8984  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8985  shlibpath_var=LD_LIBRARY_PATH
8986  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8987    case $host_os in
8988      openbsd2.[89] | openbsd2.[89].*)
8989	shlibpath_overrides_runpath=no
8990	;;
8991      *)
8992	shlibpath_overrides_runpath=yes
8993	;;
8994      esac
8995  else
8996    shlibpath_overrides_runpath=yes
8997  fi
8998  ;;
8999
9000os2*)
9001  libname_spec='$name'
9002  shrext_cmds=".dll"
9003  need_lib_prefix=no
9004  library_names_spec='$libname${shared_ext} $libname.a'
9005  dynamic_linker='OS/2 ld.exe'
9006  shlibpath_var=LIBPATH
9007  ;;
9008
9009osf3* | osf4* | osf5*)
9010  version_type=osf
9011  need_lib_prefix=no
9012  need_version=no
9013  soname_spec='${libname}${release}${shared_ext}$major'
9014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015  shlibpath_var=LD_LIBRARY_PATH
9016  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9017  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9018  ;;
9019
9020rdos*)
9021  dynamic_linker=no
9022  ;;
9023
9024solaris*)
9025  version_type=linux
9026  need_lib_prefix=no
9027  need_version=no
9028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029  soname_spec='${libname}${release}${shared_ext}$major'
9030  shlibpath_var=LD_LIBRARY_PATH
9031  shlibpath_overrides_runpath=yes
9032  hardcode_into_libs=yes
9033  # ldd complains unless libraries are executable
9034  postinstall_cmds='chmod +x $lib'
9035  ;;
9036
9037sunos4*)
9038  version_type=sunos
9039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9040  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9041  shlibpath_var=LD_LIBRARY_PATH
9042  shlibpath_overrides_runpath=yes
9043  if test "$with_gnu_ld" = yes; then
9044    need_lib_prefix=no
9045  fi
9046  need_version=yes
9047  ;;
9048
9049sysv4 | sysv4.3*)
9050  version_type=linux
9051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052  soname_spec='${libname}${release}${shared_ext}$major'
9053  shlibpath_var=LD_LIBRARY_PATH
9054  case $host_vendor in
9055    sni)
9056      shlibpath_overrides_runpath=no
9057      need_lib_prefix=no
9058      runpath_var=LD_RUN_PATH
9059      ;;
9060    siemens)
9061      need_lib_prefix=no
9062      ;;
9063    motorola)
9064      need_lib_prefix=no
9065      need_version=no
9066      shlibpath_overrides_runpath=no
9067      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9068      ;;
9069  esac
9070  ;;
9071
9072sysv4*MP*)
9073  if test -d /usr/nec ;then
9074    version_type=linux
9075    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9076    soname_spec='$libname${shared_ext}.$major'
9077    shlibpath_var=LD_LIBRARY_PATH
9078  fi
9079  ;;
9080
9081sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9082  version_type=freebsd-elf
9083  need_lib_prefix=no
9084  need_version=no
9085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9086  soname_spec='${libname}${release}${shared_ext}$major'
9087  shlibpath_var=LD_LIBRARY_PATH
9088  shlibpath_overrides_runpath=yes
9089  hardcode_into_libs=yes
9090  if test "$with_gnu_ld" = yes; then
9091    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9092  else
9093    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9094    case $host_os in
9095      sco3.2v5*)
9096        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9097	;;
9098    esac
9099  fi
9100  sys_lib_dlsearch_path_spec='/usr/lib'
9101  ;;
9102
9103tpf*)
9104  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9105  version_type=linux
9106  need_lib_prefix=no
9107  need_version=no
9108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109  shlibpath_var=LD_LIBRARY_PATH
9110  shlibpath_overrides_runpath=no
9111  hardcode_into_libs=yes
9112  ;;
9113
9114uts4*)
9115  version_type=linux
9116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117  soname_spec='${libname}${release}${shared_ext}$major'
9118  shlibpath_var=LD_LIBRARY_PATH
9119  ;;
9120
9121*)
9122  dynamic_linker=no
9123  ;;
9124esac
9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9126$as_echo "$dynamic_linker" >&6; }
9127test "$dynamic_linker" = no && can_build_shared=no
9128
9129variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9130if test "$GCC" = yes; then
9131  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9132fi
9133
9134if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9135  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9136fi
9137if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9138  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9139fi
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9228$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9229hardcode_action=
9230if test -n "$hardcode_libdir_flag_spec" ||
9231   test -n "$runpath_var" ||
9232   test "X$hardcode_automatic" = "Xyes" ; then
9233
9234  # We can hardcode non-existent directories.
9235  if test "$hardcode_direct" != no &&
9236     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9237     # have to relink, otherwise we might link with an installed library
9238     # when we should be linking with a yet-to-be-installed one
9239     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9240     test "$hardcode_minus_L" != no; then
9241    # Linking always hardcodes the temporary library directory.
9242    hardcode_action=relink
9243  else
9244    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9245    hardcode_action=immediate
9246  fi
9247else
9248  # We cannot hardcode anything, or else we can only hardcode existing
9249  # directories.
9250  hardcode_action=unsupported
9251fi
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9253$as_echo "$hardcode_action" >&6; }
9254
9255if test "$hardcode_action" = relink ||
9256   test "$inherit_rpath" = yes; then
9257  # Fast installation is not supported
9258  enable_fast_install=no
9259elif test "$shlibpath_overrides_runpath" = yes ||
9260     test "$enable_shared" = no; then
9261  # Fast installation is not necessary
9262  enable_fast_install=needless
9263fi
9264
9265
9266
9267
9268
9269
9270  if test "x$enable_dlopen" != xyes; then
9271  enable_dlopen=unknown
9272  enable_dlopen_self=unknown
9273  enable_dlopen_self_static=unknown
9274else
9275  lt_cv_dlopen=no
9276  lt_cv_dlopen_libs=
9277
9278  case $host_os in
9279  beos*)
9280    lt_cv_dlopen="load_add_on"
9281    lt_cv_dlopen_libs=
9282    lt_cv_dlopen_self=yes
9283    ;;
9284
9285  mingw* | pw32* | cegcc*)
9286    lt_cv_dlopen="LoadLibrary"
9287    lt_cv_dlopen_libs=
9288    ;;
9289
9290  cygwin*)
9291    lt_cv_dlopen="dlopen"
9292    lt_cv_dlopen_libs=
9293    ;;
9294
9295  darwin*)
9296  # if libdl is installed we need to link against it
9297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9298$as_echo_n "checking for dlopen in -ldl... " >&6; }
9299if ${ac_cv_lib_dl_dlopen+:} false; then :
9300  $as_echo_n "(cached) " >&6
9301else
9302  ac_check_lib_save_LIBS=$LIBS
9303LIBS="-ldl  $LIBS"
9304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h.  */
9306
9307/* Override any GCC internal prototype to avoid an error.
9308   Use char because int might match the return type of a GCC
9309   builtin and then its argument prototype would still apply.  */
9310#ifdef __cplusplus
9311extern "C"
9312#endif
9313char dlopen ();
9314int
9315main ()
9316{
9317return dlopen ();
9318  ;
9319  return 0;
9320}
9321_ACEOF
9322if ac_fn_c_try_link "$LINENO"; then :
9323  ac_cv_lib_dl_dlopen=yes
9324else
9325  ac_cv_lib_dl_dlopen=no
9326fi
9327rm -f core conftest.err conftest.$ac_objext \
9328    conftest$ac_exeext conftest.$ac_ext
9329LIBS=$ac_check_lib_save_LIBS
9330fi
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9332$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9333if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9334  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9335else
9336
9337    lt_cv_dlopen="dyld"
9338    lt_cv_dlopen_libs=
9339    lt_cv_dlopen_self=yes
9340
9341fi
9342
9343    ;;
9344
9345  *)
9346    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9347if test "x$ac_cv_func_shl_load" = xyes; then :
9348  lt_cv_dlopen="shl_load"
9349else
9350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9351$as_echo_n "checking for shl_load in -ldld... " >&6; }
9352if ${ac_cv_lib_dld_shl_load+:} false; then :
9353  $as_echo_n "(cached) " >&6
9354else
9355  ac_check_lib_save_LIBS=$LIBS
9356LIBS="-ldld  $LIBS"
9357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358/* end confdefs.h.  */
9359
9360/* Override any GCC internal prototype to avoid an error.
9361   Use char because int might match the return type of a GCC
9362   builtin and then its argument prototype would still apply.  */
9363#ifdef __cplusplus
9364extern "C"
9365#endif
9366char shl_load ();
9367int
9368main ()
9369{
9370return shl_load ();
9371  ;
9372  return 0;
9373}
9374_ACEOF
9375if ac_fn_c_try_link "$LINENO"; then :
9376  ac_cv_lib_dld_shl_load=yes
9377else
9378  ac_cv_lib_dld_shl_load=no
9379fi
9380rm -f core conftest.err conftest.$ac_objext \
9381    conftest$ac_exeext conftest.$ac_ext
9382LIBS=$ac_check_lib_save_LIBS
9383fi
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9385$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9386if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9387  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9388else
9389  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9390if test "x$ac_cv_func_dlopen" = xyes; then :
9391  lt_cv_dlopen="dlopen"
9392else
9393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9394$as_echo_n "checking for dlopen in -ldl... " >&6; }
9395if ${ac_cv_lib_dl_dlopen+:} false; then :
9396  $as_echo_n "(cached) " >&6
9397else
9398  ac_check_lib_save_LIBS=$LIBS
9399LIBS="-ldl  $LIBS"
9400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401/* end confdefs.h.  */
9402
9403/* Override any GCC internal prototype to avoid an error.
9404   Use char because int might match the return type of a GCC
9405   builtin and then its argument prototype would still apply.  */
9406#ifdef __cplusplus
9407extern "C"
9408#endif
9409char dlopen ();
9410int
9411main ()
9412{
9413return dlopen ();
9414  ;
9415  return 0;
9416}
9417_ACEOF
9418if ac_fn_c_try_link "$LINENO"; then :
9419  ac_cv_lib_dl_dlopen=yes
9420else
9421  ac_cv_lib_dl_dlopen=no
9422fi
9423rm -f core conftest.err conftest.$ac_objext \
9424    conftest$ac_exeext conftest.$ac_ext
9425LIBS=$ac_check_lib_save_LIBS
9426fi
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9428$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9429if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9430  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9431else
9432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9433$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9434if ${ac_cv_lib_svld_dlopen+:} false; then :
9435  $as_echo_n "(cached) " >&6
9436else
9437  ac_check_lib_save_LIBS=$LIBS
9438LIBS="-lsvld  $LIBS"
9439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h.  */
9441
9442/* Override any GCC internal prototype to avoid an error.
9443   Use char because int might match the return type of a GCC
9444   builtin and then its argument prototype would still apply.  */
9445#ifdef __cplusplus
9446extern "C"
9447#endif
9448char dlopen ();
9449int
9450main ()
9451{
9452return dlopen ();
9453  ;
9454  return 0;
9455}
9456_ACEOF
9457if ac_fn_c_try_link "$LINENO"; then :
9458  ac_cv_lib_svld_dlopen=yes
9459else
9460  ac_cv_lib_svld_dlopen=no
9461fi
9462rm -f core conftest.err conftest.$ac_objext \
9463    conftest$ac_exeext conftest.$ac_ext
9464LIBS=$ac_check_lib_save_LIBS
9465fi
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9467$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9468if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9469  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9470else
9471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9472$as_echo_n "checking for dld_link in -ldld... " >&6; }
9473if ${ac_cv_lib_dld_dld_link+:} false; then :
9474  $as_echo_n "(cached) " >&6
9475else
9476  ac_check_lib_save_LIBS=$LIBS
9477LIBS="-ldld  $LIBS"
9478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h.  */
9480
9481/* Override any GCC internal prototype to avoid an error.
9482   Use char because int might match the return type of a GCC
9483   builtin and then its argument prototype would still apply.  */
9484#ifdef __cplusplus
9485extern "C"
9486#endif
9487char dld_link ();
9488int
9489main ()
9490{
9491return dld_link ();
9492  ;
9493  return 0;
9494}
9495_ACEOF
9496if ac_fn_c_try_link "$LINENO"; then :
9497  ac_cv_lib_dld_dld_link=yes
9498else
9499  ac_cv_lib_dld_dld_link=no
9500fi
9501rm -f core conftest.err conftest.$ac_objext \
9502    conftest$ac_exeext conftest.$ac_ext
9503LIBS=$ac_check_lib_save_LIBS
9504fi
9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9506$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9507if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9508  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9509fi
9510
9511
9512fi
9513
9514
9515fi
9516
9517
9518fi
9519
9520
9521fi
9522
9523
9524fi
9525
9526    ;;
9527  esac
9528
9529  if test "x$lt_cv_dlopen" != xno; then
9530    enable_dlopen=yes
9531  else
9532    enable_dlopen=no
9533  fi
9534
9535  case $lt_cv_dlopen in
9536  dlopen)
9537    save_CPPFLAGS="$CPPFLAGS"
9538    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9539
9540    save_LDFLAGS="$LDFLAGS"
9541    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9542
9543    save_LIBS="$LIBS"
9544    LIBS="$lt_cv_dlopen_libs $LIBS"
9545
9546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9547$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9548if ${lt_cv_dlopen_self+:} false; then :
9549  $as_echo_n "(cached) " >&6
9550else
9551  	  if test "$cross_compiling" = yes; then :
9552  lt_cv_dlopen_self=cross
9553else
9554  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9555  lt_status=$lt_dlunknown
9556  cat > conftest.$ac_ext <<_LT_EOF
9557#line 9557 "configure"
9558#include "confdefs.h"
9559
9560#if HAVE_DLFCN_H
9561#include <dlfcn.h>
9562#endif
9563
9564#include <stdio.h>
9565
9566#ifdef RTLD_GLOBAL
9567#  define LT_DLGLOBAL		RTLD_GLOBAL
9568#else
9569#  ifdef DL_GLOBAL
9570#    define LT_DLGLOBAL		DL_GLOBAL
9571#  else
9572#    define LT_DLGLOBAL		0
9573#  endif
9574#endif
9575
9576/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9577   find out it does not work in some platform. */
9578#ifndef LT_DLLAZY_OR_NOW
9579#  ifdef RTLD_LAZY
9580#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9581#  else
9582#    ifdef DL_LAZY
9583#      define LT_DLLAZY_OR_NOW		DL_LAZY
9584#    else
9585#      ifdef RTLD_NOW
9586#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9587#      else
9588#        ifdef DL_NOW
9589#          define LT_DLLAZY_OR_NOW	DL_NOW
9590#        else
9591#          define LT_DLLAZY_OR_NOW	0
9592#        endif
9593#      endif
9594#    endif
9595#  endif
9596#endif
9597
9598void fnord() { int i=42;}
9599int main ()
9600{
9601  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9602  int status = $lt_dlunknown;
9603
9604  if (self)
9605    {
9606      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9607      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9608      /* dlclose (self); */
9609    }
9610  else
9611    puts (dlerror ());
9612
9613  return status;
9614}
9615_LT_EOF
9616  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9617  (eval $ac_link) 2>&5
9618  ac_status=$?
9619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9620  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9621    (./conftest; exit; ) >&5 2>/dev/null
9622    lt_status=$?
9623    case x$lt_status in
9624      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9625      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9626      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9627    esac
9628  else :
9629    # compilation failed
9630    lt_cv_dlopen_self=no
9631  fi
9632fi
9633rm -fr conftest*
9634
9635
9636fi
9637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9638$as_echo "$lt_cv_dlopen_self" >&6; }
9639
9640    if test "x$lt_cv_dlopen_self" = xyes; then
9641      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9642      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9643$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9644if ${lt_cv_dlopen_self_static+:} false; then :
9645  $as_echo_n "(cached) " >&6
9646else
9647  	  if test "$cross_compiling" = yes; then :
9648  lt_cv_dlopen_self_static=cross
9649else
9650  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9651  lt_status=$lt_dlunknown
9652  cat > conftest.$ac_ext <<_LT_EOF
9653#line 9653 "configure"
9654#include "confdefs.h"
9655
9656#if HAVE_DLFCN_H
9657#include <dlfcn.h>
9658#endif
9659
9660#include <stdio.h>
9661
9662#ifdef RTLD_GLOBAL
9663#  define LT_DLGLOBAL		RTLD_GLOBAL
9664#else
9665#  ifdef DL_GLOBAL
9666#    define LT_DLGLOBAL		DL_GLOBAL
9667#  else
9668#    define LT_DLGLOBAL		0
9669#  endif
9670#endif
9671
9672/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9673   find out it does not work in some platform. */
9674#ifndef LT_DLLAZY_OR_NOW
9675#  ifdef RTLD_LAZY
9676#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9677#  else
9678#    ifdef DL_LAZY
9679#      define LT_DLLAZY_OR_NOW		DL_LAZY
9680#    else
9681#      ifdef RTLD_NOW
9682#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9683#      else
9684#        ifdef DL_NOW
9685#          define LT_DLLAZY_OR_NOW	DL_NOW
9686#        else
9687#          define LT_DLLAZY_OR_NOW	0
9688#        endif
9689#      endif
9690#    endif
9691#  endif
9692#endif
9693
9694void fnord() { int i=42;}
9695int main ()
9696{
9697  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9698  int status = $lt_dlunknown;
9699
9700  if (self)
9701    {
9702      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9703      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9704      /* dlclose (self); */
9705    }
9706  else
9707    puts (dlerror ());
9708
9709  return status;
9710}
9711_LT_EOF
9712  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9713  (eval $ac_link) 2>&5
9714  ac_status=$?
9715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9716  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9717    (./conftest; exit; ) >&5 2>/dev/null
9718    lt_status=$?
9719    case x$lt_status in
9720      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9721      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9722      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9723    esac
9724  else :
9725    # compilation failed
9726    lt_cv_dlopen_self_static=no
9727  fi
9728fi
9729rm -fr conftest*
9730
9731
9732fi
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9734$as_echo "$lt_cv_dlopen_self_static" >&6; }
9735    fi
9736
9737    CPPFLAGS="$save_CPPFLAGS"
9738    LDFLAGS="$save_LDFLAGS"
9739    LIBS="$save_LIBS"
9740    ;;
9741  esac
9742
9743  case $lt_cv_dlopen_self in
9744  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9745  *) enable_dlopen_self=unknown ;;
9746  esac
9747
9748  case $lt_cv_dlopen_self_static in
9749  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9750  *) enable_dlopen_self_static=unknown ;;
9751  esac
9752fi
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770striplib=
9771old_striplib=
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9773$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9774if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9775  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9776  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9778$as_echo "yes" >&6; }
9779else
9780# FIXME - insert some real tests, host_os isn't really good enough
9781  case $host_os in
9782  darwin*)
9783    if test -n "$STRIP" ; then
9784      striplib="$STRIP -x"
9785      old_striplib="$STRIP -S"
9786      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9787$as_echo "yes" >&6; }
9788    else
9789      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790$as_echo "no" >&6; }
9791    fi
9792    ;;
9793  *)
9794    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795$as_echo "no" >&6; }
9796    ;;
9797  esac
9798fi
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811  # Report which library types will actually be built
9812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9813$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9815$as_echo "$can_build_shared" >&6; }
9816
9817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9818$as_echo_n "checking whether to build shared libraries... " >&6; }
9819  test "$can_build_shared" = "no" && enable_shared=no
9820
9821  # On AIX, shared libraries and static libraries use the same namespace, and
9822  # are all built from PIC.
9823  case $host_os in
9824  aix3*)
9825    test "$enable_shared" = yes && enable_static=no
9826    if test -n "$RANLIB"; then
9827      archive_cmds="$archive_cmds~\$RANLIB \$lib"
9828      postinstall_cmds='$RANLIB $lib'
9829    fi
9830    ;;
9831
9832  aix[4-9]*)
9833    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9834      test "$enable_shared" = yes && enable_static=no
9835    fi
9836    ;;
9837  esac
9838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9839$as_echo "$enable_shared" >&6; }
9840
9841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9842$as_echo_n "checking whether to build static libraries... " >&6; }
9843  # Make sure either enable_shared or enable_static is yes.
9844  test "$enable_shared" = yes || enable_static=yes
9845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9846$as_echo "$enable_static" >&6; }
9847
9848
9849
9850
9851fi
9852ac_ext=c
9853ac_cpp='$CPP $CPPFLAGS'
9854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9856ac_compiler_gnu=$ac_cv_c_compiler_gnu
9857
9858CC="$lt_save_CC"
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872        ac_config_commands="$ac_config_commands libtool"
9873
9874
9875
9876
9877# Only expand once:
9878
9879
9880# Find a good install program.  We prefer a C program (faster),
9881# so one script is as good as another.  But avoid the broken or
9882# incompatible versions:
9883# SysV /etc/install, /usr/sbin/install
9884# SunOS /usr/etc/install
9885# IRIX /sbin/install
9886# AIX /bin/install
9887# AmigaOS /C/install, which installs bootblocks on floppy discs
9888# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9889# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9890# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9891# OS/2's system install, which has a completely different semantic
9892# ./install, which can be erroneously created by make from ./install.sh.
9893# Reject install programs that cannot install multiple files.
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9895$as_echo_n "checking for a BSD-compatible install... " >&6; }
9896if test -z "$INSTALL"; then
9897if ${ac_cv_path_install+:} false; then :
9898  $as_echo_n "(cached) " >&6
9899else
9900  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901for as_dir in $PATH
9902do
9903  IFS=$as_save_IFS
9904  test -z "$as_dir" && as_dir=.
9905    # Account for people who put trailing slashes in PATH elements.
9906case $as_dir/ in #((
9907  ./ | .// | /[cC]/* | \
9908  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9909  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9910  /usr/ucb/* ) ;;
9911  *)
9912    # OSF1 and SCO ODT 3.0 have their own names for install.
9913    # Don't use installbsd from OSF since it installs stuff as root
9914    # by default.
9915    for ac_prog in ginstall scoinst install; do
9916      for ac_exec_ext in '' $ac_executable_extensions; do
9917	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9918	  if test $ac_prog = install &&
9919	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9920	    # AIX install.  It has an incompatible calling convention.
9921	    :
9922	  elif test $ac_prog = install &&
9923	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9924	    # program-specific install script used by HP pwplus--don't use.
9925	    :
9926	  else
9927	    rm -rf conftest.one conftest.two conftest.dir
9928	    echo one > conftest.one
9929	    echo two > conftest.two
9930	    mkdir conftest.dir
9931	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9932	      test -s conftest.one && test -s conftest.two &&
9933	      test -s conftest.dir/conftest.one &&
9934	      test -s conftest.dir/conftest.two
9935	    then
9936	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9937	      break 3
9938	    fi
9939	  fi
9940	fi
9941      done
9942    done
9943    ;;
9944esac
9945
9946  done
9947IFS=$as_save_IFS
9948
9949rm -rf conftest.one conftest.two conftest.dir
9950
9951fi
9952  if test "${ac_cv_path_install+set}" = set; then
9953    INSTALL=$ac_cv_path_install
9954  else
9955    # As a last resort, use the slow shell script.  Don't cache a
9956    # value for INSTALL within a source directory, because that will
9957    # break other packages using the cache if that directory is
9958    # removed, or if the value is a relative name.
9959    INSTALL=$ac_install_sh
9960  fi
9961fi
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9963$as_echo "$INSTALL" >&6; }
9964
9965# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9966# It thinks the first close brace ends the variable substitution.
9967test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9968
9969test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9970
9971test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9972
9973
9974#########
9975# Enable large file support (if special flags are necessary)
9976#
9977# Check whether --enable-largefile was given.
9978if test "${enable_largefile+set}" = set; then :
9979  enableval=$enable_largefile;
9980fi
9981
9982if test "$enable_largefile" != no; then
9983
9984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9985$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9986if ${ac_cv_sys_largefile_CC+:} false; then :
9987  $as_echo_n "(cached) " >&6
9988else
9989  ac_cv_sys_largefile_CC=no
9990     if test "$GCC" != yes; then
9991       ac_save_CC=$CC
9992       while :; do
9993	 # IRIX 6.2 and later do not support large files by default,
9994	 # so use the C compiler's -n32 option if that helps.
9995	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996/* end confdefs.h.  */
9997#include <sys/types.h>
9998 /* Check that off_t can represent 2**63 - 1 correctly.
9999    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10000    since some C++ compilers masquerading as C compilers
10001    incorrectly reject 9223372036854775807.  */
10002#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10003  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10004		       && LARGE_OFF_T % 2147483647 == 1)
10005		      ? 1 : -1];
10006int
10007main ()
10008{
10009
10010  ;
10011  return 0;
10012}
10013_ACEOF
10014	 if ac_fn_c_try_compile "$LINENO"; then :
10015  break
10016fi
10017rm -f core conftest.err conftest.$ac_objext
10018	 CC="$CC -n32"
10019	 if ac_fn_c_try_compile "$LINENO"; then :
10020  ac_cv_sys_largefile_CC=' -n32'; break
10021fi
10022rm -f core conftest.err conftest.$ac_objext
10023	 break
10024       done
10025       CC=$ac_save_CC
10026       rm -f conftest.$ac_ext
10027    fi
10028fi
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10030$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10031  if test "$ac_cv_sys_largefile_CC" != no; then
10032    CC=$CC$ac_cv_sys_largefile_CC
10033  fi
10034
10035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10036$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10037if ${ac_cv_sys_file_offset_bits+:} false; then :
10038  $as_echo_n "(cached) " >&6
10039else
10040  while :; do
10041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042/* end confdefs.h.  */
10043#include <sys/types.h>
10044 /* Check that off_t can represent 2**63 - 1 correctly.
10045    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10046    since some C++ compilers masquerading as C compilers
10047    incorrectly reject 9223372036854775807.  */
10048#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10049  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10050		       && LARGE_OFF_T % 2147483647 == 1)
10051		      ? 1 : -1];
10052int
10053main ()
10054{
10055
10056  ;
10057  return 0;
10058}
10059_ACEOF
10060if ac_fn_c_try_compile "$LINENO"; then :
10061  ac_cv_sys_file_offset_bits=no; break
10062fi
10063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h.  */
10066#define _FILE_OFFSET_BITS 64
10067#include <sys/types.h>
10068 /* Check that off_t can represent 2**63 - 1 correctly.
10069    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10070    since some C++ compilers masquerading as C compilers
10071    incorrectly reject 9223372036854775807.  */
10072#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10073  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10074		       && LARGE_OFF_T % 2147483647 == 1)
10075		      ? 1 : -1];
10076int
10077main ()
10078{
10079
10080  ;
10081  return 0;
10082}
10083_ACEOF
10084if ac_fn_c_try_compile "$LINENO"; then :
10085  ac_cv_sys_file_offset_bits=64; break
10086fi
10087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088  ac_cv_sys_file_offset_bits=unknown
10089  break
10090done
10091fi
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10093$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10094case $ac_cv_sys_file_offset_bits in #(
10095  no | unknown) ;;
10096  *)
10097cat >>confdefs.h <<_ACEOF
10098#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10099_ACEOF
10100;;
10101esac
10102rm -rf conftest*
10103  if test $ac_cv_sys_file_offset_bits = unknown; then
10104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10105$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10106if ${ac_cv_sys_large_files+:} false; then :
10107  $as_echo_n "(cached) " >&6
10108else
10109  while :; do
10110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111/* end confdefs.h.  */
10112#include <sys/types.h>
10113 /* Check that off_t can represent 2**63 - 1 correctly.
10114    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10115    since some C++ compilers masquerading as C compilers
10116    incorrectly reject 9223372036854775807.  */
10117#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10118  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10119		       && LARGE_OFF_T % 2147483647 == 1)
10120		      ? 1 : -1];
10121int
10122main ()
10123{
10124
10125  ;
10126  return 0;
10127}
10128_ACEOF
10129if ac_fn_c_try_compile "$LINENO"; then :
10130  ac_cv_sys_large_files=no; break
10131fi
10132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134/* end confdefs.h.  */
10135#define _LARGE_FILES 1
10136#include <sys/types.h>
10137 /* Check that off_t can represent 2**63 - 1 correctly.
10138    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10139    since some C++ compilers masquerading as C compilers
10140    incorrectly reject 9223372036854775807.  */
10141#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10142  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10143		       && LARGE_OFF_T % 2147483647 == 1)
10144		      ? 1 : -1];
10145int
10146main ()
10147{
10148
10149  ;
10150  return 0;
10151}
10152_ACEOF
10153if ac_fn_c_try_compile "$LINENO"; then :
10154  ac_cv_sys_large_files=1; break
10155fi
10156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157  ac_cv_sys_large_files=unknown
10158  break
10159done
10160fi
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10162$as_echo "$ac_cv_sys_large_files" >&6; }
10163case $ac_cv_sys_large_files in #(
10164  no | unknown) ;;
10165  *)
10166cat >>confdefs.h <<_ACEOF
10167#define _LARGE_FILES $ac_cv_sys_large_files
10168_ACEOF
10169;;
10170esac
10171rm -rf conftest*
10172  fi
10173
10174
10175fi
10176
10177
10178#########
10179# Check for needed/wanted data types
10180ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10181if test "x$ac_cv_type_int8_t" = xyes; then :
10182
10183cat >>confdefs.h <<_ACEOF
10184#define HAVE_INT8_T 1
10185_ACEOF
10186
10187
10188fi
10189ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10190if test "x$ac_cv_type_int16_t" = xyes; then :
10191
10192cat >>confdefs.h <<_ACEOF
10193#define HAVE_INT16_T 1
10194_ACEOF
10195
10196
10197fi
10198ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10199if test "x$ac_cv_type_int32_t" = xyes; then :
10200
10201cat >>confdefs.h <<_ACEOF
10202#define HAVE_INT32_T 1
10203_ACEOF
10204
10205
10206fi
10207ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10208if test "x$ac_cv_type_int64_t" = xyes; then :
10209
10210cat >>confdefs.h <<_ACEOF
10211#define HAVE_INT64_T 1
10212_ACEOF
10213
10214
10215fi
10216ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10217if test "x$ac_cv_type_intptr_t" = xyes; then :
10218
10219cat >>confdefs.h <<_ACEOF
10220#define HAVE_INTPTR_T 1
10221_ACEOF
10222
10223
10224fi
10225ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10226if test "x$ac_cv_type_uint8_t" = xyes; then :
10227
10228cat >>confdefs.h <<_ACEOF
10229#define HAVE_UINT8_T 1
10230_ACEOF
10231
10232
10233fi
10234ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10235if test "x$ac_cv_type_uint16_t" = xyes; then :
10236
10237cat >>confdefs.h <<_ACEOF
10238#define HAVE_UINT16_T 1
10239_ACEOF
10240
10241
10242fi
10243ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10244if test "x$ac_cv_type_uint32_t" = xyes; then :
10245
10246cat >>confdefs.h <<_ACEOF
10247#define HAVE_UINT32_T 1
10248_ACEOF
10249
10250
10251fi
10252ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10253if test "x$ac_cv_type_uint64_t" = xyes; then :
10254
10255cat >>confdefs.h <<_ACEOF
10256#define HAVE_UINT64_T 1
10257_ACEOF
10258
10259
10260fi
10261ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10262if test "x$ac_cv_type_uintptr_t" = xyes; then :
10263
10264cat >>confdefs.h <<_ACEOF
10265#define HAVE_UINTPTR_T 1
10266_ACEOF
10267
10268
10269fi
10270
10271
10272#########
10273# Check for needed/wanted headers
10274for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10275do :
10276  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10277ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10278if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10279  cat >>confdefs.h <<_ACEOF
10280#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281_ACEOF
10282
10283fi
10284
10285done
10286
10287
10288#########
10289# Figure out whether or not we have these functions
10290#
10291for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
10292do :
10293  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10294ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10295if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10296  cat >>confdefs.h <<_ACEOF
10297#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10298_ACEOF
10299
10300fi
10301done
10302
10303
10304#########
10305# By default, we use the amalgamation (this may be changed below...)
10306#
10307USE_AMALGAMATION=1
10308
10309#########
10310# See whether we can run specific tclsh versions known to work well;
10311# if not, then we fall back to plain tclsh.
10312# TODO: try other versions before falling back?
10313#
10314for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
10315do
10316  # Extract the first word of "$ac_prog", so it can be a program name with args.
10317set dummy $ac_prog; ac_word=$2
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319$as_echo_n "checking for $ac_word... " >&6; }
10320if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10321  $as_echo_n "(cached) " >&6
10322else
10323  if test -n "$TCLSH_CMD"; then
10324  ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10325else
10326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327for as_dir in $PATH
10328do
10329  IFS=$as_save_IFS
10330  test -z "$as_dir" && as_dir=.
10331    for ac_exec_ext in '' $ac_executable_extensions; do
10332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10333    ac_cv_prog_TCLSH_CMD="$ac_prog"
10334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335    break 2
10336  fi
10337done
10338  done
10339IFS=$as_save_IFS
10340
10341fi
10342fi
10343TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10344if test -n "$TCLSH_CMD"; then
10345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10346$as_echo "$TCLSH_CMD" >&6; }
10347else
10348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349$as_echo "no" >&6; }
10350fi
10351
10352
10353  test -n "$TCLSH_CMD" && break
10354done
10355test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10356
10357if test "$TCLSH_CMD" = "none"; then
10358  # If we can't find a local tclsh, then building the amalgamation will fail.
10359  # We act as though --disable-amalgamation has been used.
10360  echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10361  USE_AMALGAMATION=0
10362  TCLSH_CMD="tclsh"
10363fi
10364
10365
10366
10367if test "x${TCLLIBDIR+set}" != "xset" ; then
10368  TCLLIBDIR='$(libdir)'
10369  for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10370    if test -d $i ; then
10371      TCLLIBDIR=$i
10372      break
10373    fi
10374  done
10375  TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10376fi
10377
10378
10379#########
10380# Set up an appropriate program prefix
10381#
10382if test "$program_prefix" = "NONE"; then
10383  program_prefix=""
10384fi
10385
10386
10387VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10389$as_echo "$as_me: Version set to $VERSION" >&6;}
10390
10391RELEASE=`cat $srcdir/VERSION`
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10393$as_echo "$as_me: Release set to $RELEASE" >&6;}
10394
10395
10396#########
10397# Locate a compiler for the build machine.  This compiler should
10398# generate command-line programs that run on the build machine.
10399#
10400if test x"$cross_compiling" = xno; then
10401	BUILD_CC=$CC
10402	BUILD_CFLAGS=$CFLAGS
10403else
10404	if test "${BUILD_CC+set}" != set; then
10405		for ac_prog in gcc cc cl
10406do
10407  # Extract the first word of "$ac_prog", so it can be a program name with args.
10408set dummy $ac_prog; ac_word=$2
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410$as_echo_n "checking for $ac_word... " >&6; }
10411if ${ac_cv_prog_BUILD_CC+:} false; then :
10412  $as_echo_n "(cached) " >&6
10413else
10414  if test -n "$BUILD_CC"; then
10415  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10416else
10417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418for as_dir in $PATH
10419do
10420  IFS=$as_save_IFS
10421  test -z "$as_dir" && as_dir=.
10422    for ac_exec_ext in '' $ac_executable_extensions; do
10423  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10424    ac_cv_prog_BUILD_CC="$ac_prog"
10425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10426    break 2
10427  fi
10428done
10429  done
10430IFS=$as_save_IFS
10431
10432fi
10433fi
10434BUILD_CC=$ac_cv_prog_BUILD_CC
10435if test -n "$BUILD_CC"; then
10436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10437$as_echo "$BUILD_CC" >&6; }
10438else
10439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440$as_echo "no" >&6; }
10441fi
10442
10443
10444  test -n "$BUILD_CC" && break
10445done
10446
10447	fi
10448	if test "${BUILD_CFLAGS+set}" != set; then
10449		BUILD_CFLAGS="-g"
10450	fi
10451fi
10452
10453
10454##########
10455# Do we want to support multithreaded use of sqlite
10456#
10457# Check whether --enable-threadsafe was given.
10458if test "${enable_threadsafe+set}" = set; then :
10459  enableval=$enable_threadsafe;
10460fi
10461
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10463$as_echo_n "checking whether to support threadsafe operation... " >&6; }
10464if test "$enable_threadsafe" = "no"; then
10465  SQLITE_THREADSAFE=0
10466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467$as_echo "no" >&6; }
10468else
10469  SQLITE_THREADSAFE=1
10470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10471$as_echo "yes" >&6; }
10472fi
10473
10474
10475if test "$SQLITE_THREADSAFE" = "1"; then
10476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10477$as_echo_n "checking for library containing pthread_create... " >&6; }
10478if ${ac_cv_search_pthread_create+:} false; then :
10479  $as_echo_n "(cached) " >&6
10480else
10481  ac_func_search_save_LIBS=$LIBS
10482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483/* end confdefs.h.  */
10484
10485/* Override any GCC internal prototype to avoid an error.
10486   Use char because int might match the return type of a GCC
10487   builtin and then its argument prototype would still apply.  */
10488#ifdef __cplusplus
10489extern "C"
10490#endif
10491char pthread_create ();
10492int
10493main ()
10494{
10495return pthread_create ();
10496  ;
10497  return 0;
10498}
10499_ACEOF
10500for ac_lib in '' pthread; do
10501  if test -z "$ac_lib"; then
10502    ac_res="none required"
10503  else
10504    ac_res=-l$ac_lib
10505    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10506  fi
10507  if ac_fn_c_try_link "$LINENO"; then :
10508  ac_cv_search_pthread_create=$ac_res
10509fi
10510rm -f core conftest.err conftest.$ac_objext \
10511    conftest$ac_exeext
10512  if ${ac_cv_search_pthread_create+:} false; then :
10513  break
10514fi
10515done
10516if ${ac_cv_search_pthread_create+:} false; then :
10517
10518else
10519  ac_cv_search_pthread_create=no
10520fi
10521rm conftest.$ac_ext
10522LIBS=$ac_func_search_save_LIBS
10523fi
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10525$as_echo "$ac_cv_search_pthread_create" >&6; }
10526ac_res=$ac_cv_search_pthread_create
10527if test "$ac_res" != no; then :
10528  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10529
10530fi
10531
10532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10533$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10534if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10535  $as_echo_n "(cached) " >&6
10536else
10537  ac_func_search_save_LIBS=$LIBS
10538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539/* end confdefs.h.  */
10540
10541/* Override any GCC internal prototype to avoid an error.
10542   Use char because int might match the return type of a GCC
10543   builtin and then its argument prototype would still apply.  */
10544#ifdef __cplusplus
10545extern "C"
10546#endif
10547char pthread_mutexattr_init ();
10548int
10549main ()
10550{
10551return pthread_mutexattr_init ();
10552  ;
10553  return 0;
10554}
10555_ACEOF
10556for ac_lib in '' pthread; do
10557  if test -z "$ac_lib"; then
10558    ac_res="none required"
10559  else
10560    ac_res=-l$ac_lib
10561    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10562  fi
10563  if ac_fn_c_try_link "$LINENO"; then :
10564  ac_cv_search_pthread_mutexattr_init=$ac_res
10565fi
10566rm -f core conftest.err conftest.$ac_objext \
10567    conftest$ac_exeext
10568  if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10569  break
10570fi
10571done
10572if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10573
10574else
10575  ac_cv_search_pthread_mutexattr_init=no
10576fi
10577rm conftest.$ac_ext
10578LIBS=$ac_func_search_save_LIBS
10579fi
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10581$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10582ac_res=$ac_cv_search_pthread_mutexattr_init
10583if test "$ac_res" != no; then :
10584  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10585
10586fi
10587
10588fi
10589
10590##########
10591# Do we want to support release
10592#
10593# Check whether --enable-releasemode was given.
10594if test "${enable_releasemode+set}" = set; then :
10595  enableval=$enable_releasemode;
10596else
10597  enable_releasemode=no
10598fi
10599
10600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10601$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10602if test "$enable_releasemode" = "no"; then
10603  ALLOWRELEASE=""
10604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605$as_echo "no" >&6; }
10606else
10607  ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10609$as_echo "yes" >&6; }
10610fi
10611
10612
10613##########
10614# Do we want temporary databases in memory
10615#
10616# Check whether --enable-tempstore was given.
10617if test "${enable_tempstore+set}" = set; then :
10618  enableval=$enable_tempstore;
10619else
10620  enable_tempstore=no
10621fi
10622
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10624$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10625case "$enable_tempstore" in
10626  never )
10627    TEMP_STORE=0
10628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10629$as_echo "never" >&6; }
10630  ;;
10631  no )
10632    TEMP_STORE=1
10633    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634$as_echo "no" >&6; }
10635  ;;
10636  yes )
10637     TEMP_STORE=2
10638    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10639$as_echo "yes" >&6; }
10640  ;;
10641  always )
10642     TEMP_STORE=3
10643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10644$as_echo "always" >&6; }
10645  ;;
10646  * )
10647    TEMP_STORE=1
10648    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649$as_echo "no" >&6; }
10650  ;;
10651esac
10652
10653
10654
10655###########
10656# Lots of things are different if we are compiling for Windows using
10657# the CYGWIN environment.  So check for that special case and handle
10658# things accordingly.
10659#
10660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10661$as_echo_n "checking if executables have the .exe suffix... " >&6; }
10662if test "$config_BUILD_EXEEXT" = ".exe"; then
10663  CYGWIN=yes
10664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665$as_echo "yes" >&6; }
10666else
10667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10668$as_echo "unknown" >&6; }
10669fi
10670if test "$CYGWIN" != "yes"; then
10671
10672case $host_os in
10673  *cygwin* ) CYGWIN=yes;;
10674	 * ) CYGWIN=no;;
10675esac
10676
10677fi
10678if test "$CYGWIN" = "yes"; then
10679  BUILD_EXEEXT=.exe
10680else
10681  BUILD_EXEEXT=$EXEEXT
10682fi
10683if test x"$cross_compiling" = xno; then
10684  TARGET_EXEEXT=$BUILD_EXEEXT
10685else
10686  TARGET_EXEEXT=$config_TARGET_EXEEXT
10687fi
10688if test "$TARGET_EXEEXT" = ".exe"; then
10689  SQLITE_OS_UNIX=0
10690  SQLITE_OS_WIN=1
10691  CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10692else
10693  SQLITE_OS_UNIX=1
10694  SQLITE_OS_WIN=0
10695  CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10696fi
10697
10698
10699
10700
10701
10702
10703##########
10704# Figure out all the parameters needed to compile against Tcl.
10705#
10706# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10707# macros in the in the tcl.m4 file of the standard TCL distribution.
10708# Those macros could not be used directly since we have to make some
10709# minor changes to accomodate systems that do not have TCL installed.
10710#
10711# Check whether --enable-tcl was given.
10712if test "${enable_tcl+set}" = set; then :
10713  enableval=$enable_tcl; use_tcl=$enableval
10714else
10715  use_tcl=yes
10716fi
10717
10718if test "${use_tcl}" = "yes" ; then
10719
10720# Check whether --with-tcl was given.
10721if test "${with_tcl+set}" = set; then :
10722  withval=$with_tcl; with_tclconfig=${withval}
10723fi
10724
10725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10726$as_echo_n "checking for Tcl configuration... " >&6; }
10727  if ${ac_cv_c_tclconfig+:} false; then :
10728  $as_echo_n "(cached) " >&6
10729else
10730
10731    # First check to see if --with-tcl was specified.
10732    if test x"${with_tclconfig}" != x ; then
10733      if test -f "${with_tclconfig}/tclConfig.sh" ; then
10734        ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10735      else
10736        as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10737      fi
10738    fi
10739
10740    # Start autosearch by asking tclsh
10741    if test x"${ac_cv_c_tclconfig}" = x ; then
10742      if test x"$cross_compiling" = xno; then
10743        for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10744        do
10745          if test -f "$i/tclConfig.sh" ; then
10746            ac_cv_c_tclconfig="$i"
10747            break
10748          fi
10749        done
10750      fi
10751    fi
10752
10753    # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10754    # So try again after applying corrections.
10755    if test x"${ac_cv_c_tclconfig}" = x ; then
10756      if test x"$cross_compiling" = xno; then
10757        for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10758        do
10759          if test -f "$i/tclConfig.sh" ; then
10760            ac_cv_c_tclconfig="$i"
10761            break
10762          fi
10763        done
10764      fi
10765    fi
10766
10767    # Recent versions of Xcode on Macs hid the tclConfig.sh file
10768    # in a strange place.
10769    if test x"${ac_cv_c_tclconfig}" = x ; then
10770      if test x"$cross_compiling" = xno; then
10771        for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10772        do
10773          if test -f "$i/tclConfig.sh" ; then
10774            ac_cv_c_tclconfig="$i"
10775            break
10776          fi
10777        done
10778      fi
10779    fi
10780
10781    # then check for a private Tcl installation
10782    if test x"${ac_cv_c_tclconfig}" = x ; then
10783      for i in \
10784            ../tcl \
10785            `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10786            `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10787            `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10788            ../../tcl \
10789            `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10790            `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10791            `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10792            ../../../tcl \
10793            `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10794            `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10795            `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10796      do
10797        if test -f "$i/unix/tclConfig.sh" ; then
10798          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10799          break
10800        fi
10801      done
10802    fi
10803
10804    # check in a few common install locations
10805    if test x"${ac_cv_c_tclconfig}" = x ; then
10806      for i in \
10807            `ls -d ${libdir} 2>/dev/null` \
10808            `ls -d /usr/local/lib 2>/dev/null` \
10809            `ls -d /usr/contrib/lib 2>/dev/null` \
10810            `ls -d /usr/lib 2>/dev/null`
10811      do
10812        if test -f "$i/tclConfig.sh" ; then
10813           ac_cv_c_tclconfig=`(cd $i; pwd)`
10814           break
10815        fi
10816      done
10817    fi
10818
10819    # check in a few other private locations
10820    if test x"${ac_cv_c_tclconfig}" = x ; then
10821      for i in \
10822         ${srcdir}/../tcl \
10823         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10824         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10825         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10826      do
10827        if test -f "$i/unix/tclConfig.sh" ; then
10828          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10829          break
10830        fi
10831      done
10832    fi
10833
10834fi
10835
10836
10837  if test x"${ac_cv_c_tclconfig}" = x ; then
10838    use_tcl=no
10839    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10840$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10842$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10843    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10844$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10845  else
10846    TCL_BIN_DIR=${ac_cv_c_tclconfig}
10847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10848$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10849
10850    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10851$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10852    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10853      { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10854$as_echo "loading" >&6; }
10855      . $TCL_BIN_DIR/tclConfig.sh
10856    else
10857      { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10858$as_echo "file not found" >&6; }
10859    fi
10860
10861    #
10862    # If the TCL_BIN_DIR is the build directory (not the install directory),
10863    # then set the common variable name to the value of the build variables.
10864    # For example, the variable TCL_LIB_SPEC will be set to the value
10865    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10866    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10867    # installed and uninstalled version of Tcl.
10868    #
10869
10870    if test -f $TCL_BIN_DIR/Makefile ; then
10871      TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10872      TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10873      TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10874    fi
10875
10876    #
10877    # eval is required to do the TCL_DBGX substitution
10878    #
10879
10880    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10881    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10882    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10883
10884    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10885    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10886    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901  fi
10902fi
10903if test "${use_tcl}" = "no" ; then
10904  HAVE_TCL=""
10905else
10906  HAVE_TCL=1
10907fi
10908
10909
10910##########
10911# Figure out what C libraries are required to compile programs
10912# that use "readline()" library.
10913#
10914TARGET_READLINE_LIBS=""
10915TARGET_READLINE_INC=""
10916TARGET_HAVE_READLINE=0
10917TARGET_HAVE_EDITLINE=0
10918# Check whether --enable-editline was given.
10919if test "${enable_editline+set}" = set; then :
10920  enableval=$enable_editline; with_editline=$enableval
10921else
10922  with_editline=auto
10923fi
10924
10925# Check whether --enable-readline was given.
10926if test "${enable_readline+set}" = set; then :
10927  enableval=$enable_readline; with_readline=$enableval
10928else
10929  with_readline=auto
10930fi
10931
10932
10933if test x"$with_editline" != xno; then
10934        sLIBS=$LIBS
10935        LIBS=""
10936	TARGET_HAVE_EDITLINE=1
10937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10938$as_echo_n "checking for library containing readline... " >&6; }
10939if ${ac_cv_search_readline+:} false; then :
10940  $as_echo_n "(cached) " >&6
10941else
10942  ac_func_search_save_LIBS=$LIBS
10943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944/* end confdefs.h.  */
10945
10946/* Override any GCC internal prototype to avoid an error.
10947   Use char because int might match the return type of a GCC
10948   builtin and then its argument prototype would still apply.  */
10949#ifdef __cplusplus
10950extern "C"
10951#endif
10952char readline ();
10953int
10954main ()
10955{
10956return readline ();
10957  ;
10958  return 0;
10959}
10960_ACEOF
10961for ac_lib in '' edit; do
10962  if test -z "$ac_lib"; then
10963    ac_res="none required"
10964  else
10965    ac_res=-l$ac_lib
10966    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10967  fi
10968  if ac_fn_c_try_link "$LINENO"; then :
10969  ac_cv_search_readline=$ac_res
10970fi
10971rm -f core conftest.err conftest.$ac_objext \
10972    conftest$ac_exeext
10973  if ${ac_cv_search_readline+:} false; then :
10974  break
10975fi
10976done
10977if ${ac_cv_search_readline+:} false; then :
10978
10979else
10980  ac_cv_search_readline=no
10981fi
10982rm conftest.$ac_ext
10983LIBS=$ac_func_search_save_LIBS
10984fi
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10986$as_echo "$ac_cv_search_readline" >&6; }
10987ac_res=$ac_cv_search_readline
10988if test "$ac_res" != no; then :
10989  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10990  with_readline=no
10991else
10992  TARGET_HAVE_EDITLINE=0
10993fi
10994
10995        TARGET_READLINE_LIBS=$LIBS
10996        LIBS=$sLIBS
10997fi
10998if test x"$with_readline" != xno; then
10999	found="yes"
11000
11001
11002# Check whether --with-readline-lib was given.
11003if test "${with_readline_lib+set}" = set; then :
11004  withval=$with_readline_lib; with_readline_lib=$withval
11005else
11006  with_readline_lib="auto"
11007fi
11008
11009	if test "x$with_readline_lib" = xauto; then
11010		save_LIBS="$LIBS"
11011		LIBS=""
11012		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
11013$as_echo_n "checking for library containing tgetent... " >&6; }
11014if ${ac_cv_search_tgetent+:} false; then :
11015  $as_echo_n "(cached) " >&6
11016else
11017  ac_func_search_save_LIBS=$LIBS
11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019/* end confdefs.h.  */
11020
11021/* Override any GCC internal prototype to avoid an error.
11022   Use char because int might match the return type of a GCC
11023   builtin and then its argument prototype would still apply.  */
11024#ifdef __cplusplus
11025extern "C"
11026#endif
11027char tgetent ();
11028int
11029main ()
11030{
11031return tgetent ();
11032  ;
11033  return 0;
11034}
11035_ACEOF
11036for ac_lib in '' readline ncurses curses termcap; do
11037  if test -z "$ac_lib"; then
11038    ac_res="none required"
11039  else
11040    ac_res=-l$ac_lib
11041    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11042  fi
11043  if ac_fn_c_try_link "$LINENO"; then :
11044  ac_cv_search_tgetent=$ac_res
11045fi
11046rm -f core conftest.err conftest.$ac_objext \
11047    conftest$ac_exeext
11048  if ${ac_cv_search_tgetent+:} false; then :
11049  break
11050fi
11051done
11052if ${ac_cv_search_tgetent+:} false; then :
11053
11054else
11055  ac_cv_search_tgetent=no
11056fi
11057rm conftest.$ac_ext
11058LIBS=$ac_func_search_save_LIBS
11059fi
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11061$as_echo "$ac_cv_search_tgetent" >&6; }
11062ac_res=$ac_cv_search_tgetent
11063if test "$ac_res" != no; then :
11064  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11065  term_LIBS="$LIBS"
11066else
11067  term_LIBS=""
11068fi
11069
11070		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11071$as_echo_n "checking for readline in -lreadline... " >&6; }
11072if ${ac_cv_lib_readline_readline+:} false; then :
11073  $as_echo_n "(cached) " >&6
11074else
11075  ac_check_lib_save_LIBS=$LIBS
11076LIBS="-lreadline  $LIBS"
11077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078/* end confdefs.h.  */
11079
11080/* Override any GCC internal prototype to avoid an error.
11081   Use char because int might match the return type of a GCC
11082   builtin and then its argument prototype would still apply.  */
11083#ifdef __cplusplus
11084extern "C"
11085#endif
11086char readline ();
11087int
11088main ()
11089{
11090return readline ();
11091  ;
11092  return 0;
11093}
11094_ACEOF
11095if ac_fn_c_try_link "$LINENO"; then :
11096  ac_cv_lib_readline_readline=yes
11097else
11098  ac_cv_lib_readline_readline=no
11099fi
11100rm -f core conftest.err conftest.$ac_objext \
11101    conftest$ac_exeext conftest.$ac_ext
11102LIBS=$ac_check_lib_save_LIBS
11103fi
11104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11105$as_echo "$ac_cv_lib_readline_readline" >&6; }
11106if test "x$ac_cv_lib_readline_readline" = xyes; then :
11107  TARGET_READLINE_LIBS="-lreadline"
11108else
11109  found="no"
11110fi
11111
11112		TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11113		LIBS="$save_LIBS"
11114	else
11115		TARGET_READLINE_LIBS="$with_readline_lib"
11116	fi
11117
11118
11119# Check whether --with-readline-inc was given.
11120if test "${with_readline_inc+set}" = set; then :
11121  withval=$with_readline_inc; with_readline_inc=$withval
11122else
11123  with_readline_inc="auto"
11124fi
11125
11126	if test "x$with_readline_inc" = xauto; then
11127		ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11128if test "x$ac_cv_header_readline_h" = xyes; then :
11129  found="yes"
11130else
11131
11132			found="no"
11133			if test "$cross_compiling" != yes; then
11134				for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11135					for subdir in include include/readline; do
11136						as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11138$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11139if eval \${$as_ac_File+:} false; then :
11140  $as_echo_n "(cached) " >&6
11141else
11142  test "$cross_compiling" = yes &&
11143  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11144if test -r "$dir/$subdir/readline.h"; then
11145  eval "$as_ac_File=yes"
11146else
11147  eval "$as_ac_File=no"
11148fi
11149fi
11150eval ac_res=\$$as_ac_File
11151	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11152$as_echo "$ac_res" >&6; }
11153if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11154  found=yes
11155fi
11156
11157						if test "$found" = "yes"; then
11158							TARGET_READLINE_INC="-I$dir/$subdir"
11159							break
11160						fi
11161					done
11162					test "$found" = "yes" && break
11163				done
11164			fi
11165
11166fi
11167
11168
11169	else
11170		TARGET_READLINE_INC="$with_readline_inc"
11171	fi
11172
11173	if test x"$found" = xno; then
11174		TARGET_READLINE_LIBS=""
11175		TARGET_READLINE_INC=""
11176		TARGET_HAVE_READLINE=0
11177	else
11178		TARGET_HAVE_READLINE=1
11179	fi
11180fi
11181
11182
11183
11184
11185
11186
11187##########
11188# Figure out what C libraries are required to compile programs
11189# that use "fdatasync()" function.
11190#
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11192$as_echo_n "checking for library containing fdatasync... " >&6; }
11193if ${ac_cv_search_fdatasync+:} false; then :
11194  $as_echo_n "(cached) " >&6
11195else
11196  ac_func_search_save_LIBS=$LIBS
11197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198/* end confdefs.h.  */
11199
11200/* Override any GCC internal prototype to avoid an error.
11201   Use char because int might match the return type of a GCC
11202   builtin and then its argument prototype would still apply.  */
11203#ifdef __cplusplus
11204extern "C"
11205#endif
11206char fdatasync ();
11207int
11208main ()
11209{
11210return fdatasync ();
11211  ;
11212  return 0;
11213}
11214_ACEOF
11215for ac_lib in '' rt; do
11216  if test -z "$ac_lib"; then
11217    ac_res="none required"
11218  else
11219    ac_res=-l$ac_lib
11220    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11221  fi
11222  if ac_fn_c_try_link "$LINENO"; then :
11223  ac_cv_search_fdatasync=$ac_res
11224fi
11225rm -f core conftest.err conftest.$ac_objext \
11226    conftest$ac_exeext
11227  if ${ac_cv_search_fdatasync+:} false; then :
11228  break
11229fi
11230done
11231if ${ac_cv_search_fdatasync+:} false; then :
11232
11233else
11234  ac_cv_search_fdatasync=no
11235fi
11236rm conftest.$ac_ext
11237LIBS=$ac_func_search_save_LIBS
11238fi
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11240$as_echo "$ac_cv_search_fdatasync" >&6; }
11241ac_res=$ac_cv_search_fdatasync
11242if test "$ac_res" != no; then :
11243  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11244
11245fi
11246
11247
11248#########
11249# check for debug enabled
11250# Check whether --enable-debug was given.
11251if test "${enable_debug+set}" = set; then :
11252  enableval=$enable_debug;
11253fi
11254
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5
11256$as_echo_n "checking build type... " >&6; }
11257if test "${enable_debug}" = "yes" ; then
11258  TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
11259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
11260$as_echo "debug" >&6; }
11261else
11262  TARGET_DEBUG="-DNDEBUG"
11263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
11264$as_echo "release" >&6; }
11265fi
11266
11267
11268#########
11269# See whether we should use the amalgamation to build
11270# Check whether --enable-amalgamation was given.
11271if test "${enable_amalgamation+set}" = set; then :
11272  enableval=$enable_amalgamation;
11273fi
11274
11275if test "${enable_amalgamation}" = "no" ; then
11276  USE_AMALGAMATION=0
11277fi
11278
11279
11280#########
11281# Look for zlib.  Only needed by extensions and by the sqlite3.exe shell
11282for ac_header in zlib.h
11283do :
11284  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11285if test "x$ac_cv_header_zlib_h" = xyes; then :
11286  cat >>confdefs.h <<_ACEOF
11287#define HAVE_ZLIB_H 1
11288_ACEOF
11289
11290fi
11291
11292done
11293
11294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11295$as_echo_n "checking for library containing deflate... " >&6; }
11296if ${ac_cv_search_deflate+:} false; then :
11297  $as_echo_n "(cached) " >&6
11298else
11299  ac_func_search_save_LIBS=$LIBS
11300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301/* end confdefs.h.  */
11302
11303/* Override any GCC internal prototype to avoid an error.
11304   Use char because int might match the return type of a GCC
11305   builtin and then its argument prototype would still apply.  */
11306#ifdef __cplusplus
11307extern "C"
11308#endif
11309char deflate ();
11310int
11311main ()
11312{
11313return deflate ();
11314  ;
11315  return 0;
11316}
11317_ACEOF
11318for ac_lib in '' z; do
11319  if test -z "$ac_lib"; then
11320    ac_res="none required"
11321  else
11322    ac_res=-l$ac_lib
11323    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11324  fi
11325  if ac_fn_c_try_link "$LINENO"; then :
11326  ac_cv_search_deflate=$ac_res
11327fi
11328rm -f core conftest.err conftest.$ac_objext \
11329    conftest$ac_exeext
11330  if ${ac_cv_search_deflate+:} false; then :
11331  break
11332fi
11333done
11334if ${ac_cv_search_deflate+:} false; then :
11335
11336else
11337  ac_cv_search_deflate=no
11338fi
11339rm conftest.$ac_ext
11340LIBS=$ac_func_search_save_LIBS
11341fi
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11343$as_echo "$ac_cv_search_deflate" >&6; }
11344ac_res=$ac_cv_search_deflate
11345if test "$ac_res" != no; then :
11346  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11347  HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11348else
11349  HAVE_ZLIB=""
11350fi
11351
11352
11353
11354#########
11355# See whether we should allow loadable extensions
11356# Check whether --enable-load-extension was given.
11357if test "${enable_load_extension+set}" = set; then :
11358  enableval=$enable_load_extension;
11359else
11360  enable_load_extension=yes
11361fi
11362
11363if test "${enable_load_extension}" = "yes" ; then
11364  OPT_FEATURE_FLAGS=""
11365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11366$as_echo_n "checking for library containing dlopen... " >&6; }
11367if ${ac_cv_search_dlopen+:} false; then :
11368  $as_echo_n "(cached) " >&6
11369else
11370  ac_func_search_save_LIBS=$LIBS
11371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372/* end confdefs.h.  */
11373
11374/* Override any GCC internal prototype to avoid an error.
11375   Use char because int might match the return type of a GCC
11376   builtin and then its argument prototype would still apply.  */
11377#ifdef __cplusplus
11378extern "C"
11379#endif
11380char dlopen ();
11381int
11382main ()
11383{
11384return dlopen ();
11385  ;
11386  return 0;
11387}
11388_ACEOF
11389for ac_lib in '' dl; do
11390  if test -z "$ac_lib"; then
11391    ac_res="none required"
11392  else
11393    ac_res=-l$ac_lib
11394    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11395  fi
11396  if ac_fn_c_try_link "$LINENO"; then :
11397  ac_cv_search_dlopen=$ac_res
11398fi
11399rm -f core conftest.err conftest.$ac_objext \
11400    conftest$ac_exeext
11401  if ${ac_cv_search_dlopen+:} false; then :
11402  break
11403fi
11404done
11405if ${ac_cv_search_dlopen+:} false; then :
11406
11407else
11408  ac_cv_search_dlopen=no
11409fi
11410rm conftest.$ac_ext
11411LIBS=$ac_func_search_save_LIBS
11412fi
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11414$as_echo "$ac_cv_search_dlopen" >&6; }
11415ac_res=$ac_cv_search_dlopen
11416if test "$ac_res" != no; then :
11417  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11418
11419fi
11420
11421else
11422  OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11423fi
11424
11425##########
11426# Do we want to support math functions
11427#
11428# Check whether --enable-math was given.
11429if test "${enable_math+set}" = set; then :
11430  enableval=$enable_math;
11431fi
11432
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
11434$as_echo_n "checking whether to support math functions... " >&6; }
11435if test "$enable_math" = "no"; then
11436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437$as_echo "no" >&6; }
11438else
11439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11440$as_echo "yes" >&6; }
11441  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
11442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
11443$as_echo_n "checking for library containing ceil... " >&6; }
11444if ${ac_cv_search_ceil+:} false; then :
11445  $as_echo_n "(cached) " >&6
11446else
11447  ac_func_search_save_LIBS=$LIBS
11448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449/* end confdefs.h.  */
11450
11451/* Override any GCC internal prototype to avoid an error.
11452   Use char because int might match the return type of a GCC
11453   builtin and then its argument prototype would still apply.  */
11454#ifdef __cplusplus
11455extern "C"
11456#endif
11457char ceil ();
11458int
11459main ()
11460{
11461return ceil ();
11462  ;
11463  return 0;
11464}
11465_ACEOF
11466for ac_lib in '' m; do
11467  if test -z "$ac_lib"; then
11468    ac_res="none required"
11469  else
11470    ac_res=-l$ac_lib
11471    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11472  fi
11473  if ac_fn_c_try_link "$LINENO"; then :
11474  ac_cv_search_ceil=$ac_res
11475fi
11476rm -f core conftest.err conftest.$ac_objext \
11477    conftest$ac_exeext
11478  if ${ac_cv_search_ceil+:} false; then :
11479  break
11480fi
11481done
11482if ${ac_cv_search_ceil+:} false; then :
11483
11484else
11485  ac_cv_search_ceil=no
11486fi
11487rm conftest.$ac_ext
11488LIBS=$ac_func_search_save_LIBS
11489fi
11490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
11491$as_echo "$ac_cv_search_ceil" >&6; }
11492ac_res=$ac_cv_search_ceil
11493if test "$ac_res" != no; then :
11494  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11495
11496fi
11497
11498fi
11499
11500##########
11501# Do we want to support JSON functions
11502#
11503# Check whether --enable-json was given.
11504if test "${enable_json+set}" = set; then :
11505  enableval=$enable_json;
11506fi
11507
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON functions" >&5
11509$as_echo_n "checking whether to support JSON functions... " >&6; }
11510if test "$enable_json" = "no"; then
11511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512$as_echo "no" >&6; }
11513  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_OMIT_JSON"
11514else
11515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11516$as_echo "yes" >&6; }
11517fi
11518
11519########
11520# The --enable-all argument is short-hand to enable
11521# multiple extensions.
11522# Check whether --enable-all was given.
11523if test "${enable_all+set}" = set; then :
11524  enableval=$enable_all;
11525fi
11526
11527
11528##########
11529# Do we want to support memsys3 and/or memsys5
11530#
11531# Check whether --enable-memsys5 was given.
11532if test "${enable_memsys5+set}" = set; then :
11533  enableval=$enable_memsys5;
11534fi
11535
11536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11537$as_echo_n "checking whether to support MEMSYS5... " >&6; }
11538if test "${enable_memsys5}" = "yes"; then
11539  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
11540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541$as_echo "yes" >&6; }
11542else
11543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544$as_echo "no" >&6; }
11545fi
11546# Check whether --enable-memsys3 was given.
11547if test "${enable_memsys3+set}" = set; then :
11548  enableval=$enable_memsys3;
11549fi
11550
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11552$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11553if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
11554  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
11555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556$as_echo "yes" >&6; }
11557else
11558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559$as_echo "no" >&6; }
11560fi
11561
11562#########
11563# See whether we should enable Full Text Search extensions
11564# Check whether --enable-fts3 was given.
11565if test "${enable_fts3+set}" = set; then :
11566  enableval=$enable_fts3;
11567fi
11568
11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
11570$as_echo_n "checking whether to support FTS3... " >&6; }
11571if test "${enable_fts3}" = "yes" ; then
11572  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
11573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11574$as_echo "yes" >&6; }
11575else
11576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577$as_echo "no" >&6; }
11578fi
11579# Check whether --enable-fts4 was given.
11580if test "${enable_fts4+set}" = set; then :
11581  enableval=$enable_fts4;
11582fi
11583
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
11585$as_echo_n "checking whether to support FTS4... " >&6; }
11586if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
11587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11588$as_echo "yes" >&6; }
11589  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
11590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11591$as_echo_n "checking for library containing log... " >&6; }
11592if ${ac_cv_search_log+:} false; then :
11593  $as_echo_n "(cached) " >&6
11594else
11595  ac_func_search_save_LIBS=$LIBS
11596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h.  */
11598
11599/* Override any GCC internal prototype to avoid an error.
11600   Use char because int might match the return type of a GCC
11601   builtin and then its argument prototype would still apply.  */
11602#ifdef __cplusplus
11603extern "C"
11604#endif
11605char log ();
11606int
11607main ()
11608{
11609return log ();
11610  ;
11611  return 0;
11612}
11613_ACEOF
11614for ac_lib in '' m; do
11615  if test -z "$ac_lib"; then
11616    ac_res="none required"
11617  else
11618    ac_res=-l$ac_lib
11619    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11620  fi
11621  if ac_fn_c_try_link "$LINENO"; then :
11622  ac_cv_search_log=$ac_res
11623fi
11624rm -f core conftest.err conftest.$ac_objext \
11625    conftest$ac_exeext
11626  if ${ac_cv_search_log+:} false; then :
11627  break
11628fi
11629done
11630if ${ac_cv_search_log+:} false; then :
11631
11632else
11633  ac_cv_search_log=no
11634fi
11635rm conftest.$ac_ext
11636LIBS=$ac_func_search_save_LIBS
11637fi
11638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11639$as_echo "$ac_cv_search_log" >&6; }
11640ac_res=$ac_cv_search_log
11641if test "$ac_res" != no; then :
11642  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11643
11644fi
11645
11646else
11647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
11649fi
11650# Check whether --enable-fts5 was given.
11651if test "${enable_fts5+set}" = set; then :
11652  enableval=$enable_fts5;
11653fi
11654
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
11656$as_echo_n "checking whether to support FTS5... " >&6; }
11657if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
11658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11659$as_echo "yes" >&6; }
11660  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
11661  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11662$as_echo_n "checking for library containing log... " >&6; }
11663if ${ac_cv_search_log+:} false; then :
11664  $as_echo_n "(cached) " >&6
11665else
11666  ac_func_search_save_LIBS=$LIBS
11667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668/* end confdefs.h.  */
11669
11670/* Override any GCC internal prototype to avoid an error.
11671   Use char because int might match the return type of a GCC
11672   builtin and then its argument prototype would still apply.  */
11673#ifdef __cplusplus
11674extern "C"
11675#endif
11676char log ();
11677int
11678main ()
11679{
11680return log ();
11681  ;
11682  return 0;
11683}
11684_ACEOF
11685for ac_lib in '' m; do
11686  if test -z "$ac_lib"; then
11687    ac_res="none required"
11688  else
11689    ac_res=-l$ac_lib
11690    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11691  fi
11692  if ac_fn_c_try_link "$LINENO"; then :
11693  ac_cv_search_log=$ac_res
11694fi
11695rm -f core conftest.err conftest.$ac_objext \
11696    conftest$ac_exeext
11697  if ${ac_cv_search_log+:} false; then :
11698  break
11699fi
11700done
11701if ${ac_cv_search_log+:} false; then :
11702
11703else
11704  ac_cv_search_log=no
11705fi
11706rm conftest.$ac_ext
11707LIBS=$ac_func_search_save_LIBS
11708fi
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11710$as_echo "$ac_cv_search_log" >&6; }
11711ac_res=$ac_cv_search_log
11712if test "$ac_res" != no; then :
11713  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11714
11715fi
11716
11717else
11718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719$as_echo "no" >&6; }
11720fi
11721
11722#########
11723# See whether we should enable the LIMIT clause on UPDATE and DELETE
11724# statements.
11725# Check whether --enable-update-limit was given.
11726if test "${enable_update_limit+set}" = set; then :
11727  enableval=$enable_update_limit;
11728fi
11729
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
11731$as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
11732if test "${enable_update_limit}" = "yes" ; then
11733  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735$as_echo "yes" >&6; }
11736else
11737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738$as_echo "no" >&6; }
11739fi
11740
11741#########
11742# See whether we should enable GEOPOLY
11743# Check whether --enable-geopoly was given.
11744if test "${enable_geopoly+set}" = set; then :
11745  enableval=$enable_geopoly; enable_geopoly=yes
11746else
11747  enable_geopoly=no
11748fi
11749
11750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
11751$as_echo_n "checking whether to support GEOPOLY... " >&6; }
11752if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
11753  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11754  enable_rtree=yes
11755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756$as_echo "yes" >&6; }
11757else
11758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
11760fi
11761
11762#########
11763# See whether we should enable RTREE
11764# Check whether --enable-rtree was given.
11765if test "${enable_rtree+set}" = set; then :
11766  enableval=$enable_rtree;
11767fi
11768
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
11770$as_echo_n "checking whether to support RTREE... " >&6; }
11771if test "${enable_rtree}" = "yes" ; then
11772  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
11773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11774$as_echo "yes" >&6; }
11775else
11776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777$as_echo "no" >&6; }
11778fi
11779
11780#########
11781# See whether we should enable the SESSION extension
11782# Check whether --enable-session was given.
11783if test "${enable_session+set}" = set; then :
11784  enableval=$enable_session;
11785fi
11786
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
11788$as_echo_n "checking whether to support SESSION... " >&6; }
11789if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
11790  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11791  OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
11792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11793$as_echo "yes" >&6; }
11794else
11795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796$as_echo "no" >&6; }
11797fi
11798
11799#########
11800# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
11801for option in $CFLAGS $CPPFLAGS
11802do
11803  case $option in
11804    -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11805    -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11806  esac
11807done
11808
11809
11810
11811# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11812ac_temp_CFLAGS=""
11813for option in $CFLAGS
11814do
11815  case $option in
11816    -DSQLITE_OMIT*) ;;
11817    -DSQLITE_ENABLE*) ;;
11818    *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11819  esac
11820done
11821CFLAGS=$ac_temp_CFLAGS
11822
11823
11824# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11825ac_temp_CPPFLAGS=""
11826for option in $CPPFLAGS
11827do
11828  case $option in
11829    -DSQLITE_OMIT*) ;;
11830    -DSQLITE_ENABLE*) ;;
11831    *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11832  esac
11833done
11834CPPFLAGS=$ac_temp_CPPFLAGS
11835
11836
11837# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11838ac_temp_BUILD_CFLAGS=""
11839for option in $BUILD_CFLAGS
11840do
11841  case $option in
11842    -DSQLITE_OMIT*) ;;
11843    -DSQLITE_ENABLE*) ;;
11844    *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11845  esac
11846done
11847BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11848
11849
11850#########
11851# See whether we should use GCOV
11852# Check whether --enable-gcov was given.
11853if test "${enable_gcov+set}" = set; then :
11854  enableval=$enable_gcov;
11855fi
11856
11857if test "${use_gcov}" = "yes" ; then
11858  USE_GCOV=1
11859else
11860  USE_GCOV=0
11861fi
11862
11863
11864#########
11865# Enable/disabled amalagamation line macros
11866########
11867AMALGAMATION_LINE_MACROS=--linemacros=0
11868if test "${amalgamation_line_macros}" = "yes" ; then
11869  AMALGAMATION_LINE_MACROS=--linemacros=1
11870fi
11871if test "${amalgamation_line_macros}" = "no" ; then
11872  AMALGAMATION_LINE_MACROS=--linemacros=0
11873fi
11874
11875
11876#########
11877# Output the config header
11878ac_config_headers="$ac_config_headers sqlite_cfg.h"
11879
11880
11881#########
11882# Generate the output files.
11883#
11884
11885ac_config_files="$ac_config_files Makefile sqlite3.pc"
11886
11887cat >confcache <<\_ACEOF
11888# This file is a shell script that caches the results of configure
11889# tests run on this system so they can be shared between configure
11890# scripts and configure runs, see configure's option --config-cache.
11891# It is not useful on other systems.  If it contains results you don't
11892# want to keep, you may remove or edit it.
11893#
11894# config.status only pays attention to the cache file if you give it
11895# the --recheck option to rerun configure.
11896#
11897# `ac_cv_env_foo' variables (set or unset) will be overridden when
11898# loading this file, other *unset* `ac_cv_foo' will be assigned the
11899# following values.
11900
11901_ACEOF
11902
11903# The following way of writing the cache mishandles newlines in values,
11904# but we know of no workaround that is simple, portable, and efficient.
11905# So, we kill variables containing newlines.
11906# Ultrix sh set writes to stderr and can't be redirected directly,
11907# and sets the high bit in the cache file unless we assign to the vars.
11908(
11909  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11910    eval ac_val=\$$ac_var
11911    case $ac_val in #(
11912    *${as_nl}*)
11913      case $ac_var in #(
11914      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11915$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11916      esac
11917      case $ac_var in #(
11918      _ | IFS | as_nl) ;; #(
11919      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11920      *) { eval $ac_var=; unset $ac_var;} ;;
11921      esac ;;
11922    esac
11923  done
11924
11925  (set) 2>&1 |
11926    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11927    *${as_nl}ac_space=\ *)
11928      # `set' does not quote correctly, so add quotes: double-quote
11929      # substitution turns \\\\ into \\, and sed turns \\ into \.
11930      sed -n \
11931	"s/'/'\\\\''/g;
11932	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11933      ;; #(
11934    *)
11935      # `set' quotes correctly as required by POSIX, so do not add quotes.
11936      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11937      ;;
11938    esac |
11939    sort
11940) |
11941  sed '
11942     /^ac_cv_env_/b end
11943     t clear
11944     :clear
11945     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11946     t end
11947     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11948     :end' >>confcache
11949if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11950  if test -w "$cache_file"; then
11951    if test "x$cache_file" != "x/dev/null"; then
11952      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11953$as_echo "$as_me: updating cache $cache_file" >&6;}
11954      if test ! -f "$cache_file" || test -h "$cache_file"; then
11955	cat confcache >"$cache_file"
11956      else
11957        case $cache_file in #(
11958        */* | ?:*)
11959	  mv -f confcache "$cache_file"$$ &&
11960	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11961        *)
11962	  mv -f confcache "$cache_file" ;;
11963	esac
11964      fi
11965    fi
11966  else
11967    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11968$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11969  fi
11970fi
11971rm -f confcache
11972
11973test "x$prefix" = xNONE && prefix=$ac_default_prefix
11974# Let make expand exec_prefix.
11975test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11976
11977DEFS=-DHAVE_CONFIG_H
11978
11979ac_libobjs=
11980ac_ltlibobjs=
11981U=
11982for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11983  # 1. Remove the extension, and $U if already installed.
11984  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11985  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11986  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11987  #    will be set to the directory where LIBOBJS objects are built.
11988  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11989  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11990done
11991LIBOBJS=$ac_libobjs
11992
11993LTLIBOBJS=$ac_ltlibobjs
11994
11995
11996
11997: "${CONFIG_STATUS=./config.status}"
11998ac_write_fail=0
11999ac_clean_files_save=$ac_clean_files
12000ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12001{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12002$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12003as_write_fail=0
12004cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12005#! $SHELL
12006# Generated by $as_me.
12007# Run this file to recreate the current configuration.
12008# Compiler output produced by configure, useful for debugging
12009# configure, is in config.log if it exists.
12010
12011debug=false
12012ac_cs_recheck=false
12013ac_cs_silent=false
12014
12015SHELL=\${CONFIG_SHELL-$SHELL}
12016export SHELL
12017_ASEOF
12018cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12019## -------------------- ##
12020## M4sh Initialization. ##
12021## -------------------- ##
12022
12023# Be more Bourne compatible
12024DUALCASE=1; export DUALCASE # for MKS sh
12025if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12026  emulate sh
12027  NULLCMD=:
12028  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12029  # is contrary to our usage.  Disable this feature.
12030  alias -g '${1+"$@"}'='"$@"'
12031  setopt NO_GLOB_SUBST
12032else
12033  case `(set -o) 2>/dev/null` in #(
12034  *posix*) :
12035    set -o posix ;; #(
12036  *) :
12037     ;;
12038esac
12039fi
12040
12041
12042as_nl='
12043'
12044export as_nl
12045# Printing a long string crashes Solaris 7 /usr/bin/printf.
12046as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12047as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12048as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12049# Prefer a ksh shell builtin over an external printf program on Solaris,
12050# but without wasting forks for bash or zsh.
12051if test -z "$BASH_VERSION$ZSH_VERSION" \
12052    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12053  as_echo='print -r --'
12054  as_echo_n='print -rn --'
12055elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12056  as_echo='printf %s\n'
12057  as_echo_n='printf %s'
12058else
12059  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12060    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12061    as_echo_n='/usr/ucb/echo -n'
12062  else
12063    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12064    as_echo_n_body='eval
12065      arg=$1;
12066      case $arg in #(
12067      *"$as_nl"*)
12068	expr "X$arg" : "X\\(.*\\)$as_nl";
12069	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12070      esac;
12071      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12072    '
12073    export as_echo_n_body
12074    as_echo_n='sh -c $as_echo_n_body as_echo'
12075  fi
12076  export as_echo_body
12077  as_echo='sh -c $as_echo_body as_echo'
12078fi
12079
12080# The user is always right.
12081if test "${PATH_SEPARATOR+set}" != set; then
12082  PATH_SEPARATOR=:
12083  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12084    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12085      PATH_SEPARATOR=';'
12086  }
12087fi
12088
12089
12090# IFS
12091# We need space, tab and new line, in precisely that order.  Quoting is
12092# there to prevent editors from complaining about space-tab.
12093# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12094# splitting by setting IFS to empty value.)
12095IFS=" ""	$as_nl"
12096
12097# Find who we are.  Look in the path if we contain no directory separator.
12098as_myself=
12099case $0 in #((
12100  *[\\/]* ) as_myself=$0 ;;
12101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102for as_dir in $PATH
12103do
12104  IFS=$as_save_IFS
12105  test -z "$as_dir" && as_dir=.
12106    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12107  done
12108IFS=$as_save_IFS
12109
12110     ;;
12111esac
12112# We did not find ourselves, most probably we were run as `sh COMMAND'
12113# in which case we are not to be found in the path.
12114if test "x$as_myself" = x; then
12115  as_myself=$0
12116fi
12117if test ! -f "$as_myself"; then
12118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12119  exit 1
12120fi
12121
12122# Unset variables that we do not need and which cause bugs (e.g. in
12123# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12124# suppresses any "Segmentation fault" message there.  '((' could
12125# trigger a bug in pdksh 5.2.14.
12126for as_var in BASH_ENV ENV MAIL MAILPATH
12127do eval test x\${$as_var+set} = xset \
12128  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12129done
12130PS1='$ '
12131PS2='> '
12132PS4='+ '
12133
12134# NLS nuisances.
12135LC_ALL=C
12136export LC_ALL
12137LANGUAGE=C
12138export LANGUAGE
12139
12140# CDPATH.
12141(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12142
12143
12144# as_fn_error STATUS ERROR [LINENO LOG_FD]
12145# ----------------------------------------
12146# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12147# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12148# script with STATUS, using 1 if that was 0.
12149as_fn_error ()
12150{
12151  as_status=$1; test $as_status -eq 0 && as_status=1
12152  if test "$4"; then
12153    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12154    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12155  fi
12156  $as_echo "$as_me: error: $2" >&2
12157  as_fn_exit $as_status
12158} # as_fn_error
12159
12160
12161# as_fn_set_status STATUS
12162# -----------------------
12163# Set $? to STATUS, without forking.
12164as_fn_set_status ()
12165{
12166  return $1
12167} # as_fn_set_status
12168
12169# as_fn_exit STATUS
12170# -----------------
12171# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12172as_fn_exit ()
12173{
12174  set +e
12175  as_fn_set_status $1
12176  exit $1
12177} # as_fn_exit
12178
12179# as_fn_unset VAR
12180# ---------------
12181# Portably unset VAR.
12182as_fn_unset ()
12183{
12184  { eval $1=; unset $1;}
12185}
12186as_unset=as_fn_unset
12187# as_fn_append VAR VALUE
12188# ----------------------
12189# Append the text in VALUE to the end of the definition contained in VAR. Take
12190# advantage of any shell optimizations that allow amortized linear growth over
12191# repeated appends, instead of the typical quadratic growth present in naive
12192# implementations.
12193if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12194  eval 'as_fn_append ()
12195  {
12196    eval $1+=\$2
12197  }'
12198else
12199  as_fn_append ()
12200  {
12201    eval $1=\$$1\$2
12202  }
12203fi # as_fn_append
12204
12205# as_fn_arith ARG...
12206# ------------------
12207# Perform arithmetic evaluation on the ARGs, and store the result in the
12208# global $as_val. Take advantage of shells that can avoid forks. The arguments
12209# must be portable across $(()) and expr.
12210if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12211  eval 'as_fn_arith ()
12212  {
12213    as_val=$(( $* ))
12214  }'
12215else
12216  as_fn_arith ()
12217  {
12218    as_val=`expr "$@" || test $? -eq 1`
12219  }
12220fi # as_fn_arith
12221
12222
12223if expr a : '\(a\)' >/dev/null 2>&1 &&
12224   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12225  as_expr=expr
12226else
12227  as_expr=false
12228fi
12229
12230if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12231  as_basename=basename
12232else
12233  as_basename=false
12234fi
12235
12236if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12237  as_dirname=dirname
12238else
12239  as_dirname=false
12240fi
12241
12242as_me=`$as_basename -- "$0" ||
12243$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12244	 X"$0" : 'X\(//\)$' \| \
12245	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12246$as_echo X/"$0" |
12247    sed '/^.*\/\([^/][^/]*\)\/*$/{
12248	    s//\1/
12249	    q
12250	  }
12251	  /^X\/\(\/\/\)$/{
12252	    s//\1/
12253	    q
12254	  }
12255	  /^X\/\(\/\).*/{
12256	    s//\1/
12257	    q
12258	  }
12259	  s/.*/./; q'`
12260
12261# Avoid depending upon Character Ranges.
12262as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12263as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12264as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12265as_cr_digits='0123456789'
12266as_cr_alnum=$as_cr_Letters$as_cr_digits
12267
12268ECHO_C= ECHO_N= ECHO_T=
12269case `echo -n x` in #(((((
12270-n*)
12271  case `echo 'xy\c'` in
12272  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12273  xy)  ECHO_C='\c';;
12274  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12275       ECHO_T='	';;
12276  esac;;
12277*)
12278  ECHO_N='-n';;
12279esac
12280
12281rm -f conf$$ conf$$.exe conf$$.file
12282if test -d conf$$.dir; then
12283  rm -f conf$$.dir/conf$$.file
12284else
12285  rm -f conf$$.dir
12286  mkdir conf$$.dir 2>/dev/null
12287fi
12288if (echo >conf$$.file) 2>/dev/null; then
12289  if ln -s conf$$.file conf$$ 2>/dev/null; then
12290    as_ln_s='ln -s'
12291    # ... but there are two gotchas:
12292    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12293    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12294    # In both cases, we have to default to `cp -pR'.
12295    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12296      as_ln_s='cp -pR'
12297  elif ln conf$$.file conf$$ 2>/dev/null; then
12298    as_ln_s=ln
12299  else
12300    as_ln_s='cp -pR'
12301  fi
12302else
12303  as_ln_s='cp -pR'
12304fi
12305rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12306rmdir conf$$.dir 2>/dev/null
12307
12308
12309# as_fn_mkdir_p
12310# -------------
12311# Create "$as_dir" as a directory, including parents if necessary.
12312as_fn_mkdir_p ()
12313{
12314
12315  case $as_dir in #(
12316  -*) as_dir=./$as_dir;;
12317  esac
12318  test -d "$as_dir" || eval $as_mkdir_p || {
12319    as_dirs=
12320    while :; do
12321      case $as_dir in #(
12322      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12323      *) as_qdir=$as_dir;;
12324      esac
12325      as_dirs="'$as_qdir' $as_dirs"
12326      as_dir=`$as_dirname -- "$as_dir" ||
12327$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12328	 X"$as_dir" : 'X\(//\)[^/]' \| \
12329	 X"$as_dir" : 'X\(//\)$' \| \
12330	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12331$as_echo X"$as_dir" |
12332    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12333	    s//\1/
12334	    q
12335	  }
12336	  /^X\(\/\/\)[^/].*/{
12337	    s//\1/
12338	    q
12339	  }
12340	  /^X\(\/\/\)$/{
12341	    s//\1/
12342	    q
12343	  }
12344	  /^X\(\/\).*/{
12345	    s//\1/
12346	    q
12347	  }
12348	  s/.*/./; q'`
12349      test -d "$as_dir" && break
12350    done
12351    test -z "$as_dirs" || eval "mkdir $as_dirs"
12352  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12353
12354
12355} # as_fn_mkdir_p
12356if mkdir -p . 2>/dev/null; then
12357  as_mkdir_p='mkdir -p "$as_dir"'
12358else
12359  test -d ./-p && rmdir ./-p
12360  as_mkdir_p=false
12361fi
12362
12363
12364# as_fn_executable_p FILE
12365# -----------------------
12366# Test if FILE is an executable regular file.
12367as_fn_executable_p ()
12368{
12369  test -f "$1" && test -x "$1"
12370} # as_fn_executable_p
12371as_test_x='test -x'
12372as_executable_p=as_fn_executable_p
12373
12374# Sed expression to map a string onto a valid CPP name.
12375as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12376
12377# Sed expression to map a string onto a valid variable name.
12378as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12379
12380
12381exec 6>&1
12382## ----------------------------------- ##
12383## Main body of $CONFIG_STATUS script. ##
12384## ----------------------------------- ##
12385_ASEOF
12386test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12387
12388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12389# Save the log message, to keep $0 and so on meaningful, and to
12390# report actual input values of CONFIG_FILES etc. instead of their
12391# values after options handling.
12392ac_log="
12393This file was extended by sqlite $as_me 3.40.0, which was
12394generated by GNU Autoconf 2.69.  Invocation command line was
12395
12396  CONFIG_FILES    = $CONFIG_FILES
12397  CONFIG_HEADERS  = $CONFIG_HEADERS
12398  CONFIG_LINKS    = $CONFIG_LINKS
12399  CONFIG_COMMANDS = $CONFIG_COMMANDS
12400  $ $0 $@
12401
12402on `(hostname || uname -n) 2>/dev/null | sed 1q`
12403"
12404
12405_ACEOF
12406
12407case $ac_config_files in *"
12408"*) set x $ac_config_files; shift; ac_config_files=$*;;
12409esac
12410
12411case $ac_config_headers in *"
12412"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12413esac
12414
12415
12416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12417# Files that config.status was made for.
12418config_files="$ac_config_files"
12419config_headers="$ac_config_headers"
12420config_commands="$ac_config_commands"
12421
12422_ACEOF
12423
12424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12425ac_cs_usage="\
12426\`$as_me' instantiates files and other configuration actions
12427from templates according to the current configuration.  Unless the files
12428and actions are specified as TAGs, all are instantiated by default.
12429
12430Usage: $0 [OPTION]... [TAG]...
12431
12432  -h, --help       print this help, then exit
12433  -V, --version    print version number and configuration settings, then exit
12434      --config     print configuration, then exit
12435  -q, --quiet, --silent
12436                   do not print progress messages
12437  -d, --debug      don't remove temporary files
12438      --recheck    update $as_me by reconfiguring in the same conditions
12439      --file=FILE[:TEMPLATE]
12440                   instantiate the configuration file FILE
12441      --header=FILE[:TEMPLATE]
12442                   instantiate the configuration header FILE
12443
12444Configuration files:
12445$config_files
12446
12447Configuration headers:
12448$config_headers
12449
12450Configuration commands:
12451$config_commands
12452
12453Report bugs to the package provider."
12454
12455_ACEOF
12456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12457ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12458ac_cs_version="\\
12459sqlite config.status 3.40.0
12460configured by $0, generated by GNU Autoconf 2.69,
12461  with options \\"\$ac_cs_config\\"
12462
12463Copyright (C) 2012 Free Software Foundation, Inc.
12464This config.status script is free software; the Free Software Foundation
12465gives unlimited permission to copy, distribute and modify it."
12466
12467ac_pwd='$ac_pwd'
12468srcdir='$srcdir'
12469INSTALL='$INSTALL'
12470test -n "\$AWK" || AWK=awk
12471_ACEOF
12472
12473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12474# The default lists apply if the user does not specify any file.
12475ac_need_defaults=:
12476while test $# != 0
12477do
12478  case $1 in
12479  --*=?*)
12480    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12481    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12482    ac_shift=:
12483    ;;
12484  --*=)
12485    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12486    ac_optarg=
12487    ac_shift=:
12488    ;;
12489  *)
12490    ac_option=$1
12491    ac_optarg=$2
12492    ac_shift=shift
12493    ;;
12494  esac
12495
12496  case $ac_option in
12497  # Handling of the options.
12498  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12499    ac_cs_recheck=: ;;
12500  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12501    $as_echo "$ac_cs_version"; exit ;;
12502  --config | --confi | --conf | --con | --co | --c )
12503    $as_echo "$ac_cs_config"; exit ;;
12504  --debug | --debu | --deb | --de | --d | -d )
12505    debug=: ;;
12506  --file | --fil | --fi | --f )
12507    $ac_shift
12508    case $ac_optarg in
12509    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12510    '') as_fn_error $? "missing file argument" ;;
12511    esac
12512    as_fn_append CONFIG_FILES " '$ac_optarg'"
12513    ac_need_defaults=false;;
12514  --header | --heade | --head | --hea )
12515    $ac_shift
12516    case $ac_optarg in
12517    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12518    esac
12519    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12520    ac_need_defaults=false;;
12521  --he | --h)
12522    # Conflict between --help and --header
12523    as_fn_error $? "ambiguous option: \`$1'
12524Try \`$0 --help' for more information.";;
12525  --help | --hel | -h )
12526    $as_echo "$ac_cs_usage"; exit ;;
12527  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12528  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12529    ac_cs_silent=: ;;
12530
12531  # This is an error.
12532  -*) as_fn_error $? "unrecognized option: \`$1'
12533Try \`$0 --help' for more information." ;;
12534
12535  *) as_fn_append ac_config_targets " $1"
12536     ac_need_defaults=false ;;
12537
12538  esac
12539  shift
12540done
12541
12542ac_configure_extra_args=
12543
12544if $ac_cs_silent; then
12545  exec 6>/dev/null
12546  ac_configure_extra_args="$ac_configure_extra_args --silent"
12547fi
12548
12549_ACEOF
12550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12551if \$ac_cs_recheck; then
12552  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12553  shift
12554  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12555  CONFIG_SHELL='$SHELL'
12556  export CONFIG_SHELL
12557  exec "\$@"
12558fi
12559
12560_ACEOF
12561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12562exec 5>>config.log
12563{
12564  echo
12565  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12566## Running $as_me. ##
12567_ASBOX
12568  $as_echo "$ac_log"
12569} >&5
12570
12571_ACEOF
12572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12573#
12574# INIT-COMMANDS
12575#
12576
12577
12578# The HP-UX ksh and POSIX shell print the target directory to stdout
12579# if CDPATH is set.
12580(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12581
12582sed_quote_subst='$sed_quote_subst'
12583double_quote_subst='$double_quote_subst'
12584delay_variable_subst='$delay_variable_subst'
12585macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12586macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12587enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12588enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12589pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12590enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12591host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12592host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12593host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12594build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12595build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12596build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12597SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12598Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12599GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12600EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12601FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12602LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12603NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12604LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12605max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12606ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12607exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12608lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12609lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12610lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12611reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12612reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12613OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12614deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12615file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12616AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12617AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12618STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12619RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12620old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12621old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12622old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12623CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12624CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12625compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12626GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12627lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12628lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12629lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12630lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12631objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12632SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12633ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12634MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12635lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12636lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12637lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12638lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12639lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12640need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12641DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12642NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12643LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12644OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12645OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12646libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12647shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12648extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12649archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12650enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12651export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12652whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12653compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12654old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12655old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12656archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12657archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12658module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12659module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12660with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12661allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12662no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12663hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12664hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12665hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12666hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12667hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12668hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12669hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12670hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12671inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12672link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12673fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12674always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12675export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12676exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12677include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12678prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12679file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12680variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12681need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12682need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12683version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12684runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12685shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12686shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12687libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12688library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12689soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12690postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12691postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12692finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12693finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12694hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12695sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12696sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12697hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12698enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12699enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12700enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12701old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12702striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12703
12704LTCC='$LTCC'
12705LTCFLAGS='$LTCFLAGS'
12706compiler='$compiler_DEFAULT'
12707
12708# Quote evaled strings.
12709for var in SED \
12710GREP \
12711EGREP \
12712FGREP \
12713LD \
12714NM \
12715LN_S \
12716lt_SP2NL \
12717lt_NL2SP \
12718reload_flag \
12719OBJDUMP \
12720deplibs_check_method \
12721file_magic_cmd \
12722AR \
12723AR_FLAGS \
12724STRIP \
12725RANLIB \
12726CC \
12727CFLAGS \
12728compiler \
12729lt_cv_sys_global_symbol_pipe \
12730lt_cv_sys_global_symbol_to_cdecl \
12731lt_cv_sys_global_symbol_to_c_name_address \
12732lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12733SHELL \
12734ECHO \
12735lt_prog_compiler_no_builtin_flag \
12736lt_prog_compiler_wl \
12737lt_prog_compiler_pic \
12738lt_prog_compiler_static \
12739lt_cv_prog_compiler_c_o \
12740need_locks \
12741DSYMUTIL \
12742NMEDIT \
12743LIPO \
12744OTOOL \
12745OTOOL64 \
12746shrext_cmds \
12747export_dynamic_flag_spec \
12748whole_archive_flag_spec \
12749compiler_needs_object \
12750with_gnu_ld \
12751allow_undefined_flag \
12752no_undefined_flag \
12753hardcode_libdir_flag_spec \
12754hardcode_libdir_flag_spec_ld \
12755hardcode_libdir_separator \
12756fix_srcfile_path \
12757exclude_expsyms \
12758include_expsyms \
12759file_list_spec \
12760variables_saved_for_relink \
12761libname_spec \
12762library_names_spec \
12763soname_spec \
12764finish_eval \
12765old_striplib \
12766striplib; do
12767    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12768    *[\\\\\\\`\\"\\\$]*)
12769      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12770      ;;
12771    *)
12772      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12773      ;;
12774    esac
12775done
12776
12777# Double-quote double-evaled strings.
12778for var in reload_cmds \
12779old_postinstall_cmds \
12780old_postuninstall_cmds \
12781old_archive_cmds \
12782extract_expsyms_cmds \
12783old_archive_from_new_cmds \
12784old_archive_from_expsyms_cmds \
12785archive_cmds \
12786archive_expsym_cmds \
12787module_cmds \
12788module_expsym_cmds \
12789export_symbols_cmds \
12790prelink_cmds \
12791postinstall_cmds \
12792postuninstall_cmds \
12793finish_cmds \
12794sys_lib_search_path_spec \
12795sys_lib_dlsearch_path_spec; do
12796    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12797    *[\\\\\\\`\\"\\\$]*)
12798      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12799      ;;
12800    *)
12801      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12802      ;;
12803    esac
12804done
12805
12806# Fix-up fallback echo if it was mangled by the above quoting rules.
12807case \$lt_ECHO in
12808*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12809  ;;
12810esac
12811
12812ac_aux_dir='$ac_aux_dir'
12813xsi_shell='$xsi_shell'
12814lt_shell_append='$lt_shell_append'
12815
12816# See if we are running on zsh, and set the options which allow our
12817# commands through without removal of \ escapes INIT.
12818if test -n "\${ZSH_VERSION+set}" ; then
12819   setopt NO_GLOB_SUBST
12820fi
12821
12822
12823    PACKAGE='$PACKAGE'
12824    VERSION='$VERSION'
12825    TIMESTAMP='$TIMESTAMP'
12826    RM='$RM'
12827    ofile='$ofile'
12828
12829
12830
12831
12832_ACEOF
12833
12834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12835
12836# Handling of arguments.
12837for ac_config_target in $ac_config_targets
12838do
12839  case $ac_config_target in
12840    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12841    "sqlite_cfg.h") CONFIG_HEADERS="$CONFIG_HEADERS sqlite_cfg.h" ;;
12842    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12843    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12844
12845  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12846  esac
12847done
12848
12849
12850# If the user did not use the arguments to specify the items to instantiate,
12851# then the envvar interface is used.  Set only those that are not.
12852# We use the long form for the default assignment because of an extremely
12853# bizarre bug on SunOS 4.1.3.
12854if $ac_need_defaults; then
12855  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12856  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12857  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12858fi
12859
12860# Have a temporary directory for convenience.  Make it in the build tree
12861# simply because there is no reason against having it here, and in addition,
12862# creating and moving files from /tmp can sometimes cause problems.
12863# Hook for its removal unless debugging.
12864# Note that there is a small window in which the directory will not be cleaned:
12865# after its creation but before its name has been assigned to `$tmp'.
12866$debug ||
12867{
12868  tmp= ac_tmp=
12869  trap 'exit_status=$?
12870  : "${ac_tmp:=$tmp}"
12871  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12872' 0
12873  trap 'as_fn_exit 1' 1 2 13 15
12874}
12875# Create a (secure) tmp directory for tmp files.
12876
12877{
12878  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12879  test -d "$tmp"
12880}  ||
12881{
12882  tmp=./conf$$-$RANDOM
12883  (umask 077 && mkdir "$tmp")
12884} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12885ac_tmp=$tmp
12886
12887# Set up the scripts for CONFIG_FILES section.
12888# No need to generate them if there are no CONFIG_FILES.
12889# This happens for instance with `./config.status config.h'.
12890if test -n "$CONFIG_FILES"; then
12891
12892
12893ac_cr=`echo X | tr X '\015'`
12894# On cygwin, bash can eat \r inside `` if the user requested igncr.
12895# But we know of no other shell where ac_cr would be empty at this
12896# point, so we can use a bashism as a fallback.
12897if test "x$ac_cr" = x; then
12898  eval ac_cr=\$\'\\r\'
12899fi
12900ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12901if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12902  ac_cs_awk_cr='\\r'
12903else
12904  ac_cs_awk_cr=$ac_cr
12905fi
12906
12907echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12908_ACEOF
12909
12910
12911{
12912  echo "cat >conf$$subs.awk <<_ACEOF" &&
12913  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12914  echo "_ACEOF"
12915} >conf$$subs.sh ||
12916  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12917ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12918ac_delim='%!_!# '
12919for ac_last_try in false false false false false :; do
12920  . ./conf$$subs.sh ||
12921    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12922
12923  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12924  if test $ac_delim_n = $ac_delim_num; then
12925    break
12926  elif $ac_last_try; then
12927    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12928  else
12929    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12930  fi
12931done
12932rm -f conf$$subs.sh
12933
12934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12935cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12936_ACEOF
12937sed -n '
12938h
12939s/^/S["/; s/!.*/"]=/
12940p
12941g
12942s/^[^!]*!//
12943:repl
12944t repl
12945s/'"$ac_delim"'$//
12946t delim
12947:nl
12948h
12949s/\(.\{148\}\)..*/\1/
12950t more1
12951s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12952p
12953n
12954b repl
12955:more1
12956s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12957p
12958g
12959s/.\{148\}//
12960t nl
12961:delim
12962h
12963s/\(.\{148\}\)..*/\1/
12964t more2
12965s/["\\]/\\&/g; s/^/"/; s/$/"/
12966p
12967b
12968:more2
12969s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12970p
12971g
12972s/.\{148\}//
12973t delim
12974' <conf$$subs.awk | sed '
12975/^[^""]/{
12976  N
12977  s/\n//
12978}
12979' >>$CONFIG_STATUS || ac_write_fail=1
12980rm -f conf$$subs.awk
12981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12982_ACAWK
12983cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12984  for (key in S) S_is_set[key] = 1
12985  FS = ""
12986
12987}
12988{
12989  line = $ 0
12990  nfields = split(line, field, "@")
12991  substed = 0
12992  len = length(field[1])
12993  for (i = 2; i < nfields; i++) {
12994    key = field[i]
12995    keylen = length(key)
12996    if (S_is_set[key]) {
12997      value = S[key]
12998      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12999      len += length(value) + length(field[++i])
13000      substed = 1
13001    } else
13002      len += 1 + keylen
13003  }
13004
13005  print line
13006}
13007
13008_ACAWK
13009_ACEOF
13010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13011if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13012  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13013else
13014  cat
13015fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13016  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13017_ACEOF
13018
13019# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13020# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13021# trailing colons and then remove the whole line if VPATH becomes empty
13022# (actually we leave an empty line to preserve line numbers).
13023if test "x$srcdir" = x.; then
13024  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13025h
13026s///
13027s/^/:/
13028s/[	 ]*$/:/
13029s/:\$(srcdir):/:/g
13030s/:\${srcdir}:/:/g
13031s/:@srcdir@:/:/g
13032s/^:*//
13033s/:*$//
13034x
13035s/\(=[	 ]*\).*/\1/
13036G
13037s/\n//
13038s/^[^=]*=[	 ]*$//
13039}'
13040fi
13041
13042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13043fi # test -n "$CONFIG_FILES"
13044
13045# Set up the scripts for CONFIG_HEADERS section.
13046# No need to generate them if there are no CONFIG_HEADERS.
13047# This happens for instance with `./config.status Makefile'.
13048if test -n "$CONFIG_HEADERS"; then
13049cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13050BEGIN {
13051_ACEOF
13052
13053# Transform confdefs.h into an awk script `defines.awk', embedded as
13054# here-document in config.status, that substitutes the proper values into
13055# config.h.in to produce config.h.
13056
13057# Create a delimiter string that does not exist in confdefs.h, to ease
13058# handling of long lines.
13059ac_delim='%!_!# '
13060for ac_last_try in false false :; do
13061  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13062  if test -z "$ac_tt"; then
13063    break
13064  elif $ac_last_try; then
13065    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13066  else
13067    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13068  fi
13069done
13070
13071# For the awk script, D is an array of macro values keyed by name,
13072# likewise P contains macro parameters if any.  Preserve backslash
13073# newline sequences.
13074
13075ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13076sed -n '
13077s/.\{148\}/&'"$ac_delim"'/g
13078t rset
13079:rset
13080s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13081t def
13082d
13083:def
13084s/\\$//
13085t bsnl
13086s/["\\]/\\&/g
13087s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13088D["\1"]=" \3"/p
13089s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13090d
13091:bsnl
13092s/["\\]/\\&/g
13093s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13094D["\1"]=" \3\\\\\\n"\\/p
13095t cont
13096s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13097t cont
13098d
13099:cont
13100n
13101s/.\{148\}/&'"$ac_delim"'/g
13102t clear
13103:clear
13104s/\\$//
13105t bsnlc
13106s/["\\]/\\&/g; s/^/"/; s/$/"/p
13107d
13108:bsnlc
13109s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13110b cont
13111' <confdefs.h | sed '
13112s/'"$ac_delim"'/"\\\
13113"/g' >>$CONFIG_STATUS || ac_write_fail=1
13114
13115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13116  for (key in D) D_is_set[key] = 1
13117  FS = ""
13118}
13119/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13120  line = \$ 0
13121  split(line, arg, " ")
13122  if (arg[1] == "#") {
13123    defundef = arg[2]
13124    mac1 = arg[3]
13125  } else {
13126    defundef = substr(arg[1], 2)
13127    mac1 = arg[2]
13128  }
13129  split(mac1, mac2, "(") #)
13130  macro = mac2[1]
13131  prefix = substr(line, 1, index(line, defundef) - 1)
13132  if (D_is_set[macro]) {
13133    # Preserve the white space surrounding the "#".
13134    print prefix "define", macro P[macro] D[macro]
13135    next
13136  } else {
13137    # Replace #undef with comments.  This is necessary, for example,
13138    # in the case of _POSIX_SOURCE, which is predefined and required
13139    # on some systems where configure will not decide to define it.
13140    if (defundef == "undef") {
13141      print "/*", prefix defundef, macro, "*/"
13142      next
13143    }
13144  }
13145}
13146{ print }
13147_ACAWK
13148_ACEOF
13149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13150  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13151fi # test -n "$CONFIG_HEADERS"
13152
13153
13154eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13155shift
13156for ac_tag
13157do
13158  case $ac_tag in
13159  :[FHLC]) ac_mode=$ac_tag; continue;;
13160  esac
13161  case $ac_mode$ac_tag in
13162  :[FHL]*:*);;
13163  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13164  :[FH]-) ac_tag=-:-;;
13165  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13166  esac
13167  ac_save_IFS=$IFS
13168  IFS=:
13169  set x $ac_tag
13170  IFS=$ac_save_IFS
13171  shift
13172  ac_file=$1
13173  shift
13174
13175  case $ac_mode in
13176  :L) ac_source=$1;;
13177  :[FH])
13178    ac_file_inputs=
13179    for ac_f
13180    do
13181      case $ac_f in
13182      -) ac_f="$ac_tmp/stdin";;
13183      *) # Look for the file first in the build tree, then in the source tree
13184	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13185	 # because $ac_f cannot contain `:'.
13186	 test -f "$ac_f" ||
13187	   case $ac_f in
13188	   [\\/$]*) false;;
13189	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13190	   esac ||
13191	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13192      esac
13193      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13194      as_fn_append ac_file_inputs " '$ac_f'"
13195    done
13196
13197    # Let's still pretend it is `configure' which instantiates (i.e., don't
13198    # use $as_me), people would be surprised to read:
13199    #    /* config.h.  Generated by config.status.  */
13200    configure_input='Generated from '`
13201	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13202	`' by configure.'
13203    if test x"$ac_file" != x-; then
13204      configure_input="$ac_file.  $configure_input"
13205      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13206$as_echo "$as_me: creating $ac_file" >&6;}
13207    fi
13208    # Neutralize special characters interpreted by sed in replacement strings.
13209    case $configure_input in #(
13210    *\&* | *\|* | *\\* )
13211       ac_sed_conf_input=`$as_echo "$configure_input" |
13212       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13213    *) ac_sed_conf_input=$configure_input;;
13214    esac
13215
13216    case $ac_tag in
13217    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13218      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13219    esac
13220    ;;
13221  esac
13222
13223  ac_dir=`$as_dirname -- "$ac_file" ||
13224$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13225	 X"$ac_file" : 'X\(//\)[^/]' \| \
13226	 X"$ac_file" : 'X\(//\)$' \| \
13227	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13228$as_echo X"$ac_file" |
13229    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13230	    s//\1/
13231	    q
13232	  }
13233	  /^X\(\/\/\)[^/].*/{
13234	    s//\1/
13235	    q
13236	  }
13237	  /^X\(\/\/\)$/{
13238	    s//\1/
13239	    q
13240	  }
13241	  /^X\(\/\).*/{
13242	    s//\1/
13243	    q
13244	  }
13245	  s/.*/./; q'`
13246  as_dir="$ac_dir"; as_fn_mkdir_p
13247  ac_builddir=.
13248
13249case "$ac_dir" in
13250.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13251*)
13252  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13253  # A ".." for each directory in $ac_dir_suffix.
13254  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13255  case $ac_top_builddir_sub in
13256  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13257  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13258  esac ;;
13259esac
13260ac_abs_top_builddir=$ac_pwd
13261ac_abs_builddir=$ac_pwd$ac_dir_suffix
13262# for backward compatibility:
13263ac_top_builddir=$ac_top_build_prefix
13264
13265case $srcdir in
13266  .)  # We are building in place.
13267    ac_srcdir=.
13268    ac_top_srcdir=$ac_top_builddir_sub
13269    ac_abs_top_srcdir=$ac_pwd ;;
13270  [\\/]* | ?:[\\/]* )  # Absolute name.
13271    ac_srcdir=$srcdir$ac_dir_suffix;
13272    ac_top_srcdir=$srcdir
13273    ac_abs_top_srcdir=$srcdir ;;
13274  *) # Relative name.
13275    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13276    ac_top_srcdir=$ac_top_build_prefix$srcdir
13277    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13278esac
13279ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13280
13281
13282  case $ac_mode in
13283  :F)
13284  #
13285  # CONFIG_FILE
13286  #
13287
13288  case $INSTALL in
13289  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13290  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13291  esac
13292_ACEOF
13293
13294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13295# If the template does not know about datarootdir, expand it.
13296# FIXME: This hack should be removed a few years after 2.60.
13297ac_datarootdir_hack=; ac_datarootdir_seen=
13298ac_sed_dataroot='
13299/datarootdir/ {
13300  p
13301  q
13302}
13303/@datadir@/p
13304/@docdir@/p
13305/@infodir@/p
13306/@localedir@/p
13307/@mandir@/p'
13308case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13309*datarootdir*) ac_datarootdir_seen=yes;;
13310*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13311  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13312$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13313_ACEOF
13314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13315  ac_datarootdir_hack='
13316  s&@datadir@&$datadir&g
13317  s&@docdir@&$docdir&g
13318  s&@infodir@&$infodir&g
13319  s&@localedir@&$localedir&g
13320  s&@mandir@&$mandir&g
13321  s&\\\${datarootdir}&$datarootdir&g' ;;
13322esac
13323_ACEOF
13324
13325# Neutralize VPATH when `$srcdir' = `.'.
13326# Shell code in configure.ac might set extrasub.
13327# FIXME: do we really want to maintain this feature?
13328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13329ac_sed_extra="$ac_vpsub
13330$extrasub
13331_ACEOF
13332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13333:t
13334/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13335s|@configure_input@|$ac_sed_conf_input|;t t
13336s&@top_builddir@&$ac_top_builddir_sub&;t t
13337s&@top_build_prefix@&$ac_top_build_prefix&;t t
13338s&@srcdir@&$ac_srcdir&;t t
13339s&@abs_srcdir@&$ac_abs_srcdir&;t t
13340s&@top_srcdir@&$ac_top_srcdir&;t t
13341s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13342s&@builddir@&$ac_builddir&;t t
13343s&@abs_builddir@&$ac_abs_builddir&;t t
13344s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13345s&@INSTALL@&$ac_INSTALL&;t t
13346$ac_datarootdir_hack
13347"
13348eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13349  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13350
13351test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13352  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13353  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13354      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13355  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13356which seems to be undefined.  Please make sure it is defined" >&5
13357$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13358which seems to be undefined.  Please make sure it is defined" >&2;}
13359
13360  rm -f "$ac_tmp/stdin"
13361  case $ac_file in
13362  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13363  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13364  esac \
13365  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13366 ;;
13367  :H)
13368  #
13369  # CONFIG_HEADER
13370  #
13371  if test x"$ac_file" != x-; then
13372    {
13373      $as_echo "/* $configure_input  */" \
13374      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13375    } >"$ac_tmp/config.h" \
13376      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13377    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13378      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13379$as_echo "$as_me: $ac_file is unchanged" >&6;}
13380    else
13381      rm -f "$ac_file"
13382      mv "$ac_tmp/config.h" "$ac_file" \
13383	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13384    fi
13385  else
13386    $as_echo "/* $configure_input  */" \
13387      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13388      || as_fn_error $? "could not create -" "$LINENO" 5
13389  fi
13390 ;;
13391
13392  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13393$as_echo "$as_me: executing $ac_file commands" >&6;}
13394 ;;
13395  esac
13396
13397
13398  case $ac_file$ac_mode in
13399    "libtool":C)
13400
13401    # See if we are running on zsh, and set the options which allow our
13402    # commands through without removal of \ escapes.
13403    if test -n "${ZSH_VERSION+set}" ; then
13404      setopt NO_GLOB_SUBST
13405    fi
13406
13407    cfgfile="${ofile}T"
13408    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13409    $RM "$cfgfile"
13410
13411    cat <<_LT_EOF >> "$cfgfile"
13412#! $SHELL
13413
13414# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13415# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13416# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13417# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13418#
13419#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13420#                 2006, 2007, 2008 Free Software Foundation, Inc.
13421#   Written by Gordon Matzigkeit, 1996
13422#
13423#   This file is part of GNU Libtool.
13424#
13425# GNU Libtool is free software; you can redistribute it and/or
13426# modify it under the terms of the GNU General Public License as
13427# published by the Free Software Foundation; either version 2 of
13428# the License, or (at your option) any later version.
13429#
13430# As a special exception to the GNU General Public License,
13431# if you distribute this file as part of a program or library that
13432# is built using GNU Libtool, you may include this file under the
13433# same distribution terms that you use for the rest of that program.
13434#
13435# GNU Libtool is distributed in the hope that it will be useful,
13436# but WITHOUT ANY WARRANTY; without even the implied warranty of
13437# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13438# GNU General Public License for more details.
13439#
13440# You should have received a copy of the GNU General Public License
13441# along with GNU Libtool; see the file COPYING.  If not, a copy
13442# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13443# obtained by writing to the Free Software Foundation, Inc.,
13444# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13445
13446
13447# The names of the tagged configurations supported by this script.
13448available_tags=""
13449
13450# ### BEGIN LIBTOOL CONFIG
13451
13452# Which release of libtool.m4 was used?
13453macro_version=$macro_version
13454macro_revision=$macro_revision
13455
13456# Whether or not to build shared libraries.
13457build_libtool_libs=$enable_shared
13458
13459# Whether or not to build static libraries.
13460build_old_libs=$enable_static
13461
13462# What type of objects to build.
13463pic_mode=$pic_mode
13464
13465# Whether or not to optimize for fast installation.
13466fast_install=$enable_fast_install
13467
13468# The host system.
13469host_alias=$host_alias
13470host=$host
13471host_os=$host_os
13472
13473# The build system.
13474build_alias=$build_alias
13475build=$build
13476build_os=$build_os
13477
13478# A sed program that does not truncate output.
13479SED=$lt_SED
13480
13481# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13482Xsed="\$SED -e 1s/^X//"
13483
13484# A grep program that handles long lines.
13485GREP=$lt_GREP
13486
13487# An ERE matcher.
13488EGREP=$lt_EGREP
13489
13490# A literal string matcher.
13491FGREP=$lt_FGREP
13492
13493# A BSD- or MS-compatible name lister.
13494NM=$lt_NM
13495
13496# Whether we need soft or hard links.
13497LN_S=$lt_LN_S
13498
13499# What is the maximum length of a command?
13500max_cmd_len=$max_cmd_len
13501
13502# Object file suffix (normally "o").
13503objext=$ac_objext
13504
13505# Executable file suffix (normally "").
13506exeext=$exeext
13507
13508# whether the shell understands "unset".
13509lt_unset=$lt_unset
13510
13511# turn spaces into newlines.
13512SP2NL=$lt_lt_SP2NL
13513
13514# turn newlines into spaces.
13515NL2SP=$lt_lt_NL2SP
13516
13517# How to create reloadable object files.
13518reload_flag=$lt_reload_flag
13519reload_cmds=$lt_reload_cmds
13520
13521# An object symbol dumper.
13522OBJDUMP=$lt_OBJDUMP
13523
13524# Method to check whether dependent libraries are shared objects.
13525deplibs_check_method=$lt_deplibs_check_method
13526
13527# Command to use when deplibs_check_method == "file_magic".
13528file_magic_cmd=$lt_file_magic_cmd
13529
13530# The archiver.
13531AR=$lt_AR
13532AR_FLAGS=$lt_AR_FLAGS
13533
13534# A symbol stripping program.
13535STRIP=$lt_STRIP
13536
13537# Commands used to install an old-style archive.
13538RANLIB=$lt_RANLIB
13539old_postinstall_cmds=$lt_old_postinstall_cmds
13540old_postuninstall_cmds=$lt_old_postuninstall_cmds
13541
13542# A C compiler.
13543LTCC=$lt_CC
13544
13545# LTCC compiler flags.
13546LTCFLAGS=$lt_CFLAGS
13547
13548# Take the output of nm and produce a listing of raw symbols and C names.
13549global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13550
13551# Transform the output of nm in a proper C declaration.
13552global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13553
13554# Transform the output of nm in a C name address pair.
13555global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13556
13557# Transform the output of nm in a C name address pair when lib prefix is needed.
13558global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13559
13560# The name of the directory that contains temporary libtool files.
13561objdir=$objdir
13562
13563# Shell to use when invoking shell scripts.
13564SHELL=$lt_SHELL
13565
13566# An echo program that does not interpret backslashes.
13567ECHO=$lt_ECHO
13568
13569# Used to examine libraries when file_magic_cmd begins with "file".
13570MAGIC_CMD=$MAGIC_CMD
13571
13572# Must we lock files when doing compilation?
13573need_locks=$lt_need_locks
13574
13575# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13576DSYMUTIL=$lt_DSYMUTIL
13577
13578# Tool to change global to local symbols on Mac OS X.
13579NMEDIT=$lt_NMEDIT
13580
13581# Tool to manipulate fat objects and archives on Mac OS X.
13582LIPO=$lt_LIPO
13583
13584# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13585OTOOL=$lt_OTOOL
13586
13587# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13588OTOOL64=$lt_OTOOL64
13589
13590# Old archive suffix (normally "a").
13591libext=$libext
13592
13593# Shared library suffix (normally ".so").
13594shrext_cmds=$lt_shrext_cmds
13595
13596# The commands to extract the exported symbol list from a shared archive.
13597extract_expsyms_cmds=$lt_extract_expsyms_cmds
13598
13599# Variables whose values should be saved in libtool wrapper scripts and
13600# restored at link time.
13601variables_saved_for_relink=$lt_variables_saved_for_relink
13602
13603# Do we need the "lib" prefix for modules?
13604need_lib_prefix=$need_lib_prefix
13605
13606# Do we need a version for libraries?
13607need_version=$need_version
13608
13609# Library versioning type.
13610version_type=$version_type
13611
13612# Shared library runtime path variable.
13613runpath_var=$runpath_var
13614
13615# Shared library path variable.
13616shlibpath_var=$shlibpath_var
13617
13618# Is shlibpath searched before the hard-coded library search path?
13619shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13620
13621# Format of library name prefix.
13622libname_spec=$lt_libname_spec
13623
13624# List of archive names.  First name is the real one, the rest are links.
13625# The last name is the one that the linker finds with -lNAME
13626library_names_spec=$lt_library_names_spec
13627
13628# The coded name of the library, if different from the real name.
13629soname_spec=$lt_soname_spec
13630
13631# Command to use after installation of a shared archive.
13632postinstall_cmds=$lt_postinstall_cmds
13633
13634# Command to use after uninstallation of a shared archive.
13635postuninstall_cmds=$lt_postuninstall_cmds
13636
13637# Commands used to finish a libtool library installation in a directory.
13638finish_cmds=$lt_finish_cmds
13639
13640# As "finish_cmds", except a single script fragment to be evaled but
13641# not shown.
13642finish_eval=$lt_finish_eval
13643
13644# Whether we should hardcode library paths into libraries.
13645hardcode_into_libs=$hardcode_into_libs
13646
13647# Compile-time system search path for libraries.
13648sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13649
13650# Run-time system search path for libraries.
13651sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13652
13653# Whether dlopen is supported.
13654dlopen_support=$enable_dlopen
13655
13656# Whether dlopen of programs is supported.
13657dlopen_self=$enable_dlopen_self
13658
13659# Whether dlopen of statically linked programs is supported.
13660dlopen_self_static=$enable_dlopen_self_static
13661
13662# Commands to strip libraries.
13663old_striplib=$lt_old_striplib
13664striplib=$lt_striplib
13665
13666
13667# The linker used to build libraries.
13668LD=$lt_LD
13669
13670# Commands used to build an old-style archive.
13671old_archive_cmds=$lt_old_archive_cmds
13672
13673# A language specific compiler.
13674CC=$lt_compiler
13675
13676# Is the compiler the GNU compiler?
13677with_gcc=$GCC
13678
13679# Compiler flag to turn off builtin functions.
13680no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13681
13682# How to pass a linker flag through the compiler.
13683wl=$lt_lt_prog_compiler_wl
13684
13685# Additional compiler flags for building library objects.
13686pic_flag=$lt_lt_prog_compiler_pic
13687
13688# Compiler flag to prevent dynamic linking.
13689link_static_flag=$lt_lt_prog_compiler_static
13690
13691# Does compiler simultaneously support -c and -o options?
13692compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13693
13694# Whether or not to add -lc for building shared libraries.
13695build_libtool_need_lc=$archive_cmds_need_lc
13696
13697# Whether or not to disallow shared libs when runtime libs are static.
13698allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13699
13700# Compiler flag to allow reflexive dlopens.
13701export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13702
13703# Compiler flag to generate shared objects directly from archives.
13704whole_archive_flag_spec=$lt_whole_archive_flag_spec
13705
13706# Whether the compiler copes with passing no objects directly.
13707compiler_needs_object=$lt_compiler_needs_object
13708
13709# Create an old-style archive from a shared archive.
13710old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13711
13712# Create a temporary old-style archive to link instead of a shared archive.
13713old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13714
13715# Commands used to build a shared archive.
13716archive_cmds=$lt_archive_cmds
13717archive_expsym_cmds=$lt_archive_expsym_cmds
13718
13719# Commands used to build a loadable module if different from building
13720# a shared archive.
13721module_cmds=$lt_module_cmds
13722module_expsym_cmds=$lt_module_expsym_cmds
13723
13724# Whether we are building with GNU ld or not.
13725with_gnu_ld=$lt_with_gnu_ld
13726
13727# Flag that allows shared libraries with undefined symbols to be built.
13728allow_undefined_flag=$lt_allow_undefined_flag
13729
13730# Flag that enforces no undefined symbols.
13731no_undefined_flag=$lt_no_undefined_flag
13732
13733# Flag to hardcode \$libdir into a binary during linking.
13734# This must work even if \$libdir does not exist
13735hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13736
13737# If ld is used when linking, flag to hardcode \$libdir into a binary
13738# during linking.  This must work even if \$libdir does not exist.
13739hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13740
13741# Whether we need a single "-rpath" flag with a separated argument.
13742hardcode_libdir_separator=$lt_hardcode_libdir_separator
13743
13744# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13745# DIR into the resulting binary.
13746hardcode_direct=$hardcode_direct
13747
13748# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13749# DIR into the resulting binary and the resulting library dependency is
13750# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13751# library is relocated.
13752hardcode_direct_absolute=$hardcode_direct_absolute
13753
13754# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13755# into the resulting binary.
13756hardcode_minus_L=$hardcode_minus_L
13757
13758# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13759# into the resulting binary.
13760hardcode_shlibpath_var=$hardcode_shlibpath_var
13761
13762# Set to "yes" if building a shared library automatically hardcodes DIR
13763# into the library and all subsequent libraries and executables linked
13764# against it.
13765hardcode_automatic=$hardcode_automatic
13766
13767# Set to yes if linker adds runtime paths of dependent libraries
13768# to runtime path list.
13769inherit_rpath=$inherit_rpath
13770
13771# Whether libtool must link a program against all its dependency libraries.
13772link_all_deplibs=$link_all_deplibs
13773
13774# Fix the shell variable \$srcfile for the compiler.
13775fix_srcfile_path=$lt_fix_srcfile_path
13776
13777# Set to "yes" if exported symbols are required.
13778always_export_symbols=$always_export_symbols
13779
13780# The commands to list exported symbols.
13781export_symbols_cmds=$lt_export_symbols_cmds
13782
13783# Symbols that should not be listed in the preloaded symbols.
13784exclude_expsyms=$lt_exclude_expsyms
13785
13786# Symbols that must always be exported.
13787include_expsyms=$lt_include_expsyms
13788
13789# Commands necessary for linking programs (against libraries) with templates.
13790prelink_cmds=$lt_prelink_cmds
13791
13792# Specify filename containing input files.
13793file_list_spec=$lt_file_list_spec
13794
13795# How to hardcode a shared library path into an executable.
13796hardcode_action=$hardcode_action
13797
13798# ### END LIBTOOL CONFIG
13799
13800_LT_EOF
13801
13802  case $host_os in
13803  aix3*)
13804    cat <<\_LT_EOF >> "$cfgfile"
13805# AIX sometimes has problems with the GCC collect2 program.  For some
13806# reason, if we set the COLLECT_NAMES environment variable, the problems
13807# vanish in a puff of smoke.
13808if test "X${COLLECT_NAMES+set}" != Xset; then
13809  COLLECT_NAMES=
13810  export COLLECT_NAMES
13811fi
13812_LT_EOF
13813    ;;
13814  esac
13815
13816
13817ltmain="$ac_aux_dir/ltmain.sh"
13818
13819
13820  # We use sed instead of cat because bash on DJGPP gets confused if
13821  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13822  # text mode, it properly converts lines to CR/LF.  This bash problem
13823  # is reportedly fixed, but why not run on old versions too?
13824  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13825    || (rm -f "$cfgfile"; exit 1)
13826
13827  case $xsi_shell in
13828  yes)
13829    cat << \_LT_EOF >> "$cfgfile"
13830
13831# func_dirname file append nondir_replacement
13832# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13833# otherwise set result to NONDIR_REPLACEMENT.
13834func_dirname ()
13835{
13836  case ${1} in
13837    */*) func_dirname_result="${1%/*}${2}" ;;
13838    *  ) func_dirname_result="${3}" ;;
13839  esac
13840}
13841
13842# func_basename file
13843func_basename ()
13844{
13845  func_basename_result="${1##*/}"
13846}
13847
13848# func_dirname_and_basename file append nondir_replacement
13849# perform func_basename and func_dirname in a single function
13850# call:
13851#   dirname:  Compute the dirname of FILE.  If nonempty,
13852#             add APPEND to the result, otherwise set result
13853#             to NONDIR_REPLACEMENT.
13854#             value returned in "$func_dirname_result"
13855#   basename: Compute filename of FILE.
13856#             value retuned in "$func_basename_result"
13857# Implementation must be kept synchronized with func_dirname
13858# and func_basename. For efficiency, we do not delegate to
13859# those functions but instead duplicate the functionality here.
13860func_dirname_and_basename ()
13861{
13862  case ${1} in
13863    */*) func_dirname_result="${1%/*}${2}" ;;
13864    *  ) func_dirname_result="${3}" ;;
13865  esac
13866  func_basename_result="${1##*/}"
13867}
13868
13869# func_stripname prefix suffix name
13870# strip PREFIX and SUFFIX off of NAME.
13871# PREFIX and SUFFIX must not contain globbing or regex special
13872# characters, hashes, percent signs, but SUFFIX may contain a leading
13873# dot (in which case that matches only a dot).
13874func_stripname ()
13875{
13876  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13877  # positional parameters, so assign one to ordinary parameter first.
13878  func_stripname_result=${3}
13879  func_stripname_result=${func_stripname_result#"${1}"}
13880  func_stripname_result=${func_stripname_result%"${2}"}
13881}
13882
13883# func_opt_split
13884func_opt_split ()
13885{
13886  func_opt_split_opt=${1%%=*}
13887  func_opt_split_arg=${1#*=}
13888}
13889
13890# func_lo2o object
13891func_lo2o ()
13892{
13893  case ${1} in
13894    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13895    *)    func_lo2o_result=${1} ;;
13896  esac
13897}
13898
13899# func_xform libobj-or-source
13900func_xform ()
13901{
13902  func_xform_result=${1%.*}.lo
13903}
13904
13905# func_arith arithmetic-term...
13906func_arith ()
13907{
13908  func_arith_result=$(( $* ))
13909}
13910
13911# func_len string
13912# STRING may not start with a hyphen.
13913func_len ()
13914{
13915  func_len_result=${#1}
13916}
13917
13918_LT_EOF
13919    ;;
13920  *) # Bourne compatible functions.
13921    cat << \_LT_EOF >> "$cfgfile"
13922
13923# func_dirname file append nondir_replacement
13924# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13925# otherwise set result to NONDIR_REPLACEMENT.
13926func_dirname ()
13927{
13928  # Extract subdirectory from the argument.
13929  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13930  if test "X$func_dirname_result" = "X${1}"; then
13931    func_dirname_result="${3}"
13932  else
13933    func_dirname_result="$func_dirname_result${2}"
13934  fi
13935}
13936
13937# func_basename file
13938func_basename ()
13939{
13940  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13941}
13942
13943
13944# func_stripname prefix suffix name
13945# strip PREFIX and SUFFIX off of NAME.
13946# PREFIX and SUFFIX must not contain globbing or regex special
13947# characters, hashes, percent signs, but SUFFIX may contain a leading
13948# dot (in which case that matches only a dot).
13949# func_strip_suffix prefix name
13950func_stripname ()
13951{
13952  case ${2} in
13953    .*) func_stripname_result=`$ECHO "X${3}" \
13954           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13955    *)  func_stripname_result=`$ECHO "X${3}" \
13956           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13957  esac
13958}
13959
13960# sed scripts:
13961my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13962my_sed_long_arg='1s/^-[^=]*=//'
13963
13964# func_opt_split
13965func_opt_split ()
13966{
13967  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13968  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13969}
13970
13971# func_lo2o object
13972func_lo2o ()
13973{
13974  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13975}
13976
13977# func_xform libobj-or-source
13978func_xform ()
13979{
13980  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13981}
13982
13983# func_arith arithmetic-term...
13984func_arith ()
13985{
13986  func_arith_result=`expr "$@"`
13987}
13988
13989# func_len string
13990# STRING may not start with a hyphen.
13991func_len ()
13992{
13993  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13994}
13995
13996_LT_EOF
13997esac
13998
13999case $lt_shell_append in
14000  yes)
14001    cat << \_LT_EOF >> "$cfgfile"
14002
14003# func_append var value
14004# Append VALUE to the end of shell variable VAR.
14005func_append ()
14006{
14007  eval "$1+=\$2"
14008}
14009_LT_EOF
14010    ;;
14011  *)
14012    cat << \_LT_EOF >> "$cfgfile"
14013
14014# func_append var value
14015# Append VALUE to the end of shell variable VAR.
14016func_append ()
14017{
14018  eval "$1=\$$1\$2"
14019}
14020
14021_LT_EOF
14022    ;;
14023  esac
14024
14025
14026  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14027    || (rm -f "$cfgfile"; exit 1)
14028
14029  mv -f "$cfgfile" "$ofile" ||
14030    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14031  chmod +x "$ofile"
14032
14033 ;;
14034
14035  esac
14036done # for ac_tag
14037
14038
14039as_fn_exit 0
14040_ACEOF
14041ac_clean_files=$ac_clean_files_save
14042
14043test $ac_write_fail = 0 ||
14044  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14045
14046
14047# configure is writing to config.log, and then calls config.status.
14048# config.status does its own redirection, appending to config.log.
14049# Unfortunately, on DOS this fails, as config.log is still kept open
14050# by configure, so config.status won't be able to write to it; its
14051# output is simply discarded.  So we exec the FD to /dev/null,
14052# effectively closing config.log, so it can be properly (re)opened and
14053# appended to by config.status.  When coming back to configure, we
14054# need to make the FD available again.
14055if test "$no_create" != yes; then
14056  ac_cs_success=:
14057  ac_config_status_args=
14058  test "$silent" = yes &&
14059    ac_config_status_args="$ac_config_status_args --quiet"
14060  exec 5>/dev/null
14061  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14062  exec 5>>config.log
14063  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14064  # would make configure fail if this is the last instruction.
14065  $ac_cs_success || as_fn_exit 1
14066fi
14067if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14068  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14069$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14070fi
14071
14072