xref: /sqlite-3.40.0/configure (revision c56fac74)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.9.1.
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.9.1'
730PACKAGE_STRING='sqlite 3.9.1'
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
773USE_GCOV
774OPT_FEATURE_FLAGS
775USE_AMALGAMATION
776TARGET_DEBUG
777TARGET_HAVE_READLINE
778TARGET_READLINE_INC
779TARGET_READLINE_LIBS
780HAVE_TCL
781TCL_SHLIB_SUFFIX
782TCL_STUB_LIB_SPEC
783TCL_STUB_LIB_FLAG
784TCL_STUB_LIB_FILE
785TCL_LIB_SPEC
786TCL_LIB_FLAG
787TCL_LIB_FILE
788TCL_INCLUDE_SPEC
789TCL_SRC_DIR
790TCL_BIN_DIR
791TCL_VERSION
792TARGET_EXEEXT
793SQLITE_OS_WIN
794SQLITE_OS_UNIX
795BUILD_EXEEXT
796TEMP_STORE
797ALLOWRELEASE
798SQLITE_THREADSAFE
799BUILD_CC
800VERSION_NUMBER
801RELEASE
802VERSION
803program_prefix
804TCLLIBDIR
805TCLSH_CMD
806INSTALL_DATA
807INSTALL_SCRIPT
808INSTALL_PROGRAM
809CPP
810OTOOL64
811OTOOL
812LIPO
813NMEDIT
814DSYMUTIL
815lt_ECHO
816RANLIB
817STRIP
818AR
819OBJDUMP
820LN_S
821NM
822ac_ct_DUMPBIN
823DUMPBIN
824LD
825FGREP
826EGREP
827GREP
828SED
829OBJEXT
830EXEEXT
831ac_ct_CC
832CPPFLAGS
833LDFLAGS
834CFLAGS
835CC
836host_os
837host_vendor
838host_cpu
839host
840build_os
841build_vendor
842build_cpu
843build
844LIBTOOL
845target_alias
846host_alias
847build_alias
848LIBS
849ECHO_T
850ECHO_N
851ECHO_C
852DEFS
853mandir
854localedir
855libdir
856psdir
857pdfdir
858dvidir
859htmldir
860infodir
861docdir
862oldincludedir
863includedir
864localstatedir
865sharedstatedir
866sysconfdir
867datadir
868datarootdir
869libexecdir
870sbindir
871bindir
872program_transform_name
873prefix
874exec_prefix
875PACKAGE_URL
876PACKAGE_BUGREPORT
877PACKAGE_STRING
878PACKAGE_VERSION
879PACKAGE_TARNAME
880PACKAGE_NAME
881PATH_SEPARATOR
882SHELL'
883ac_subst_files=''
884ac_user_opts='
885enable_option_checking
886enable_shared
887enable_static
888with_pic
889enable_fast_install
890with_gnu_ld
891enable_libtool_lock
892enable_largefile
893enable_threadsafe
894enable_releasemode
895enable_tempstore
896enable_tcl
897with_tcl
898enable_readline
899with_readline_lib
900with_readline_inc
901enable_debug
902enable_amalgamation
903enable_load_extension
904enable_fts3
905enable_fts4
906enable_fts5
907enable_json1
908enable_rtree
909enable_gcov
910'
911      ac_precious_vars='build_alias
912host_alias
913target_alias
914CC
915CFLAGS
916LDFLAGS
917LIBS
918CPPFLAGS
919CPP
920TCLLIBDIR'
921
922
923# Initialize some variables set by options.
924ac_init_help=
925ac_init_version=false
926ac_unrecognized_opts=
927ac_unrecognized_sep=
928# The variables have the same names as the options, with
929# dashes changed to underlines.
930cache_file=/dev/null
931exec_prefix=NONE
932no_create=
933no_recursion=
934prefix=NONE
935program_prefix=NONE
936program_suffix=NONE
937program_transform_name=s,x,x,
938silent=
939site=
940srcdir=
941verbose=
942x_includes=NONE
943x_libraries=NONE
944
945# Installation directory options.
946# These are left unexpanded so users can "make install exec_prefix=/foo"
947# and all the variables that are supposed to be based on exec_prefix
948# by default will actually change.
949# Use braces instead of parens because sh, perl, etc. also accept them.
950# (The list follows the same order as the GNU Coding Standards.)
951bindir='${exec_prefix}/bin'
952sbindir='${exec_prefix}/sbin'
953libexecdir='${exec_prefix}/libexec'
954datarootdir='${prefix}/share'
955datadir='${datarootdir}'
956sysconfdir='${prefix}/etc'
957sharedstatedir='${prefix}/com'
958localstatedir='${prefix}/var'
959includedir='${prefix}/include'
960oldincludedir='/usr/include'
961docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962infodir='${datarootdir}/info'
963htmldir='${docdir}'
964dvidir='${docdir}'
965pdfdir='${docdir}'
966psdir='${docdir}'
967libdir='${exec_prefix}/lib'
968localedir='${datarootdir}/locale'
969mandir='${datarootdir}/man'
970
971ac_prev=
972ac_dashdash=
973for ac_option
974do
975  # If the previous option needs an argument, assign it.
976  if test -n "$ac_prev"; then
977    eval $ac_prev=\$ac_option
978    ac_prev=
979    continue
980  fi
981
982  case $ac_option in
983  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984  *=)   ac_optarg= ;;
985  *)    ac_optarg=yes ;;
986  esac
987
988  # Accept the important Cygnus configure options, so we can diagnose typos.
989
990  case $ac_dashdash$ac_option in
991  --)
992    ac_dashdash=yes ;;
993
994  -bindir | --bindir | --bindi | --bind | --bin | --bi)
995    ac_prev=bindir ;;
996  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997    bindir=$ac_optarg ;;
998
999  -build | --build | --buil | --bui | --bu)
1000    ac_prev=build_alias ;;
1001  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002    build_alias=$ac_optarg ;;
1003
1004  -cache-file | --cache-file | --cache-fil | --cache-fi \
1005  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006    ac_prev=cache_file ;;
1007  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009    cache_file=$ac_optarg ;;
1010
1011  --config-cache | -C)
1012    cache_file=config.cache ;;
1013
1014  -datadir | --datadir | --datadi | --datad)
1015    ac_prev=datadir ;;
1016  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017    datadir=$ac_optarg ;;
1018
1019  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020  | --dataroo | --dataro | --datar)
1021    ac_prev=datarootdir ;;
1022  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024    datarootdir=$ac_optarg ;;
1025
1026  -disable-* | --disable-*)
1027    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028    # Reject names that are not valid shell variable names.
1029    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030      as_fn_error $? "invalid feature name: $ac_useropt"
1031    ac_useropt_orig=$ac_useropt
1032    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033    case $ac_user_opts in
1034      *"
1035"enable_$ac_useropt"
1036"*) ;;
1037      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038	 ac_unrecognized_sep=', ';;
1039    esac
1040    eval enable_$ac_useropt=no ;;
1041
1042  -docdir | --docdir | --docdi | --doc | --do)
1043    ac_prev=docdir ;;
1044  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045    docdir=$ac_optarg ;;
1046
1047  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048    ac_prev=dvidir ;;
1049  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050    dvidir=$ac_optarg ;;
1051
1052  -enable-* | --enable-*)
1053    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054    # Reject names that are not valid shell variable names.
1055    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056      as_fn_error $? "invalid feature name: $ac_useropt"
1057    ac_useropt_orig=$ac_useropt
1058    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059    case $ac_user_opts in
1060      *"
1061"enable_$ac_useropt"
1062"*) ;;
1063      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064	 ac_unrecognized_sep=', ';;
1065    esac
1066    eval enable_$ac_useropt=\$ac_optarg ;;
1067
1068  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070  | --exec | --exe | --ex)
1071    ac_prev=exec_prefix ;;
1072  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074  | --exec=* | --exe=* | --ex=*)
1075    exec_prefix=$ac_optarg ;;
1076
1077  -gas | --gas | --ga | --g)
1078    # Obsolete; use --with-gas.
1079    with_gas=yes ;;
1080
1081  -help | --help | --hel | --he | -h)
1082    ac_init_help=long ;;
1083  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084    ac_init_help=recursive ;;
1085  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086    ac_init_help=short ;;
1087
1088  -host | --host | --hos | --ho)
1089    ac_prev=host_alias ;;
1090  -host=* | --host=* | --hos=* | --ho=*)
1091    host_alias=$ac_optarg ;;
1092
1093  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094    ac_prev=htmldir ;;
1095  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096  | --ht=*)
1097    htmldir=$ac_optarg ;;
1098
1099  -includedir | --includedir | --includedi | --included | --include \
1100  | --includ | --inclu | --incl | --inc)
1101    ac_prev=includedir ;;
1102  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103  | --includ=* | --inclu=* | --incl=* | --inc=*)
1104    includedir=$ac_optarg ;;
1105
1106  -infodir | --infodir | --infodi | --infod | --info | --inf)
1107    ac_prev=infodir ;;
1108  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109    infodir=$ac_optarg ;;
1110
1111  -libdir | --libdir | --libdi | --libd)
1112    ac_prev=libdir ;;
1113  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114    libdir=$ac_optarg ;;
1115
1116  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117  | --libexe | --libex | --libe)
1118    ac_prev=libexecdir ;;
1119  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120  | --libexe=* | --libex=* | --libe=*)
1121    libexecdir=$ac_optarg ;;
1122
1123  -localedir | --localedir | --localedi | --localed | --locale)
1124    ac_prev=localedir ;;
1125  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126    localedir=$ac_optarg ;;
1127
1128  -localstatedir | --localstatedir | --localstatedi | --localstated \
1129  | --localstate | --localstat | --localsta | --localst | --locals)
1130    ac_prev=localstatedir ;;
1131  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133    localstatedir=$ac_optarg ;;
1134
1135  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136    ac_prev=mandir ;;
1137  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138    mandir=$ac_optarg ;;
1139
1140  -nfp | --nfp | --nf)
1141    # Obsolete; use --without-fp.
1142    with_fp=no ;;
1143
1144  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145  | --no-cr | --no-c | -n)
1146    no_create=yes ;;
1147
1148  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150    no_recursion=yes ;;
1151
1152  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154  | --oldin | --oldi | --old | --ol | --o)
1155    ac_prev=oldincludedir ;;
1156  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159    oldincludedir=$ac_optarg ;;
1160
1161  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162    ac_prev=prefix ;;
1163  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164    prefix=$ac_optarg ;;
1165
1166  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167  | --program-pre | --program-pr | --program-p)
1168    ac_prev=program_prefix ;;
1169  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171    program_prefix=$ac_optarg ;;
1172
1173  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174  | --program-suf | --program-su | --program-s)
1175    ac_prev=program_suffix ;;
1176  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178    program_suffix=$ac_optarg ;;
1179
1180  -program-transform-name | --program-transform-name \
1181  | --program-transform-nam | --program-transform-na \
1182  | --program-transform-n | --program-transform- \
1183  | --program-transform | --program-transfor \
1184  | --program-transfo | --program-transf \
1185  | --program-trans | --program-tran \
1186  | --progr-tra | --program-tr | --program-t)
1187    ac_prev=program_transform_name ;;
1188  -program-transform-name=* | --program-transform-name=* \
1189  | --program-transform-nam=* | --program-transform-na=* \
1190  | --program-transform-n=* | --program-transform-=* \
1191  | --program-transform=* | --program-transfor=* \
1192  | --program-transfo=* | --program-transf=* \
1193  | --program-trans=* | --program-tran=* \
1194  | --progr-tra=* | --program-tr=* | --program-t=*)
1195    program_transform_name=$ac_optarg ;;
1196
1197  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198    ac_prev=pdfdir ;;
1199  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200    pdfdir=$ac_optarg ;;
1201
1202  -psdir | --psdir | --psdi | --psd | --ps)
1203    ac_prev=psdir ;;
1204  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205    psdir=$ac_optarg ;;
1206
1207  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208  | -silent | --silent | --silen | --sile | --sil)
1209    silent=yes ;;
1210
1211  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212    ac_prev=sbindir ;;
1213  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214  | --sbi=* | --sb=*)
1215    sbindir=$ac_optarg ;;
1216
1217  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1218  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1219  | --sharedst | --shareds | --shared | --share | --shar \
1220  | --sha | --sh)
1221    ac_prev=sharedstatedir ;;
1222  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1223  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1224  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225  | --sha=* | --sh=*)
1226    sharedstatedir=$ac_optarg ;;
1227
1228  -site | --site | --sit)
1229    ac_prev=site ;;
1230  -site=* | --site=* | --sit=*)
1231    site=$ac_optarg ;;
1232
1233  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234    ac_prev=srcdir ;;
1235  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1236    srcdir=$ac_optarg ;;
1237
1238  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1239  | --syscon | --sysco | --sysc | --sys | --sy)
1240    ac_prev=sysconfdir ;;
1241  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1242  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1243    sysconfdir=$ac_optarg ;;
1244
1245  -target | --target | --targe | --targ | --tar | --ta | --t)
1246    ac_prev=target_alias ;;
1247  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1248    target_alias=$ac_optarg ;;
1249
1250  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251    verbose=yes ;;
1252
1253  -version | --version | --versio | --versi | --vers | -V)
1254    ac_init_version=: ;;
1255
1256  -with-* | --with-*)
1257    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1258    # Reject names that are not valid shell variable names.
1259    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260      as_fn_error $? "invalid package name: $ac_useropt"
1261    ac_useropt_orig=$ac_useropt
1262    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263    case $ac_user_opts in
1264      *"
1265"with_$ac_useropt"
1266"*) ;;
1267      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1268	 ac_unrecognized_sep=', ';;
1269    esac
1270    eval with_$ac_useropt=\$ac_optarg ;;
1271
1272  -without-* | --without-*)
1273    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274    # Reject names that are not valid shell variable names.
1275    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276      as_fn_error $? "invalid package name: $ac_useropt"
1277    ac_useropt_orig=$ac_useropt
1278    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279    case $ac_user_opts in
1280      *"
1281"with_$ac_useropt"
1282"*) ;;
1283      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1284	 ac_unrecognized_sep=', ';;
1285    esac
1286    eval with_$ac_useropt=no ;;
1287
1288  --x)
1289    # Obsolete; use --with-x.
1290    with_x=yes ;;
1291
1292  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293  | --x-incl | --x-inc | --x-in | --x-i)
1294    ac_prev=x_includes ;;
1295  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297    x_includes=$ac_optarg ;;
1298
1299  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301    ac_prev=x_libraries ;;
1302  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304    x_libraries=$ac_optarg ;;
1305
1306  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1307Try \`$0 --help' for more information"
1308    ;;
1309
1310  *=*)
1311    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312    # Reject names that are not valid shell variable names.
1313    case $ac_envvar in #(
1314      '' | [0-9]* | *[!_$as_cr_alnum]* )
1315      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1316    esac
1317    eval $ac_envvar=\$ac_optarg
1318    export $ac_envvar ;;
1319
1320  *)
1321    # FIXME: should be removed in autoconf 3.0.
1322    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1326    ;;
1327
1328  esac
1329done
1330
1331if test -n "$ac_prev"; then
1332  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333  as_fn_error $? "missing argument to $ac_option"
1334fi
1335
1336if test -n "$ac_unrecognized_opts"; then
1337  case $enable_option_checking in
1338    no) ;;
1339    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1340    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341  esac
1342fi
1343
1344# Check all directory arguments for consistency.
1345for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346		datadir sysconfdir sharedstatedir localstatedir includedir \
1347		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348		libdir localedir mandir
1349do
1350  eval ac_val=\$$ac_var
1351  # Remove trailing slashes.
1352  case $ac_val in
1353    */ )
1354      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1355      eval $ac_var=\$ac_val;;
1356  esac
1357  # Be sure to have absolute directory names.
1358  case $ac_val in
1359    [\\/$]* | ?:[\\/]* )  continue;;
1360    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361  esac
1362  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1363done
1364
1365# There might be people who depend on the old broken behavior: `$host'
1366# used to hold the argument of --host etc.
1367# FIXME: To remove some day.
1368build=$build_alias
1369host=$host_alias
1370target=$target_alias
1371
1372# FIXME: To remove some day.
1373if test "x$host_alias" != x; then
1374  if test "x$build_alias" = x; then
1375    cross_compiling=maybe
1376  elif test "x$build_alias" != "x$host_alias"; then
1377    cross_compiling=yes
1378  fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
1387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390  as_fn_error $? "working directory cannot be determined"
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392  as_fn_error $? "pwd does not report name of working directory"
1393
1394
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397  ac_srcdir_defaulted=yes
1398  # Try the directory containing this script, then the parent directory.
1399  ac_confdir=`$as_dirname -- "$as_myself" ||
1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401	 X"$as_myself" : 'X\(//\)[^/]' \| \
1402	 X"$as_myself" : 'X\(//\)$' \| \
1403	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404$as_echo X"$as_myself" |
1405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)[^/].*/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\/\)$/{
1414	    s//\1/
1415	    q
1416	  }
1417	  /^X\(\/\).*/{
1418	    s//\1/
1419	    q
1420	  }
1421	  s/.*/./; q'`
1422  srcdir=$ac_confdir
1423  if test ! -r "$srcdir/$ac_unique_file"; then
1424    srcdir=..
1425  fi
1426else
1427  ac_srcdir_defaulted=no
1428fi
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1432fi
1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
1435	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1436	pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439  srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449  eval ac_env_${ac_var}_value=\$${ac_var}
1450  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
1453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458  # Omit some internal or obsolete options to make the list less imposing.
1459  # This message is too long to be a string in the A/UX 3.1 sh.
1460  cat <<_ACEOF
1461\`configure' configures sqlite 3.9.1 to adapt to many kinds of systems.
1462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471  -h, --help              display this help and exit
1472      --help=short        display options specific to this package
1473      --help=recursive    display the short help of all the included packages
1474  -V, --version           display version information and exit
1475  -q, --quiet, --silent   do not print \`checking ...' messages
1476      --cache-file=FILE   cache test results in FILE [disabled]
1477  -C, --config-cache      alias for \`--cache-file=config.cache'
1478  -n, --no-create         do not create output files
1479      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
1481Installation directories:
1482  --prefix=PREFIX         install architecture-independent files in PREFIX
1483                          [$ac_default_prefix]
1484  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485                          [PREFIX]
1486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495  --bindir=DIR            user executables [EPREFIX/bin]
1496  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1497  --libexecdir=DIR        program executables [EPREFIX/libexec]
1498  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1499  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1500  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1501  --libdir=DIR            object code libraries [EPREFIX/lib]
1502  --includedir=DIR        C header files [PREFIX/include]
1503  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1504  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1505  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1506  --infodir=DIR           info documentation [DATAROOTDIR/info]
1507  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1508  --mandir=DIR            man documentation [DATAROOTDIR/man]
1509  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1510  --htmldir=DIR           html documentation [DOCDIR]
1511  --dvidir=DIR            dvi documentation [DOCDIR]
1512  --pdfdir=DIR            pdf documentation [DOCDIR]
1513  --psdir=DIR             ps documentation [DOCDIR]
1514_ACEOF
1515
1516  cat <<\_ACEOF
1517
1518System types:
1519  --build=BUILD     configure for building on BUILD [guessed]
1520  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525  case $ac_init_help in
1526     short | recursive ) echo "Configuration of sqlite 3.9.1:";;
1527   esac
1528  cat <<\_ACEOF
1529
1530Optional Features:
1531  --disable-option-checking  ignore unrecognized --enable/--with options
1532  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534  --enable-shared[=PKGS]  build shared libraries [default=yes]
1535  --enable-static[=PKGS]  build static libraries [default=yes]
1536  --enable-fast-install[=PKGS]
1537                          optimize for fast installation [default=yes]
1538  --disable-libtool-lock  avoid locking (might break parallel builds)
1539  --disable-largefile     omit support for large files
1540  --disable-threadsafe    Disable mutexing
1541  --enable-releasemode    Support libtool link to release mode
1542  --enable-tempstore      Use an in-ram database for temporary tables
1543                          (never,no,yes,always)
1544  --disable-tcl           do not build TCL extension
1545  --disable-readline      disable readline support [default=detect]
1546  --enable-debug          enable debugging & verbose explain
1547  --disable-amalgamation  Disable the amalgamation and instead build all files
1548                          separately
1549  --disable-load-extension
1550                          Disable loading of external extensions
1551  --enable-fts3           Enable the FTS3 extension
1552  --enable-fts4           Enable the FTS4 extension
1553  --enable-fts5           Enable the FTS5 extension
1554  --enable-json1          Enable the JSON1 extension
1555  --enable-rtree          Enable the RTREE extension
1556  --enable-gcov           Enable coverage testing using gcov
1557
1558Optional Packages:
1559  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1560  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1561  --with-pic              try to use only PIC/non-PIC objects [default=use
1562                          both]
1563  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1564  --with-tcl=DIR          directory containing tcl configuration
1565                          (tclConfig.sh)
1566  --with-readline-lib     specify readline library
1567  --with-readline-inc     specify readline include paths
1568
1569Some influential environment variables:
1570  CC          C compiler command
1571  CFLAGS      C compiler flags
1572  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1573              nonstandard directory <lib dir>
1574  LIBS        libraries to pass to the linker, e.g. -l<library>
1575  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1576              you have headers in a nonstandard directory <include dir>
1577  CPP         C preprocessor
1578  TCLLIBDIR   Where to install tcl plugin
1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
1583Report bugs to the package provider.
1584_ACEOF
1585ac_status=$?
1586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589  # If there are subdirs, report their specific --help.
1590  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591    test -d "$ac_dir" ||
1592      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593      continue
1594    ac_builddir=.
1595
1596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
1599  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600  # A ".." for each directory in $ac_dir_suffix.
1601  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602  case $ac_top_builddir_sub in
1603  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605  esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
1611
1612case $srcdir in
1613  .)  # We are building in place.
1614    ac_srcdir=.
1615    ac_top_srcdir=$ac_top_builddir_sub
1616    ac_abs_top_srcdir=$ac_pwd ;;
1617  [\\/]* | ?:[\\/]* )  # Absolute name.
1618    ac_srcdir=$srcdir$ac_dir_suffix;
1619    ac_top_srcdir=$srcdir
1620    ac_abs_top_srcdir=$srcdir ;;
1621  *) # Relative name.
1622    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623    ac_top_srcdir=$ac_top_build_prefix$srcdir
1624    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625esac
1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628    cd "$ac_dir" || { ac_status=$?; continue; }
1629    # Check for guested configure.
1630    if test -f "$ac_srcdir/configure.gnu"; then
1631      echo &&
1632      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633    elif test -f "$ac_srcdir/configure"; then
1634      echo &&
1635      $SHELL "$ac_srcdir/configure" --help=recursive
1636    else
1637      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638    fi || ac_status=$?
1639    cd "$ac_pwd" || { ac_status=$?; break; }
1640  done
1641fi
1642
1643test -n "$ac_init_help" && exit $ac_status
1644if $ac_init_version; then
1645  cat <<\_ACEOF
1646sqlite configure 3.9.1
1647generated by GNU Autoconf 2.69
1648
1649Copyright (C) 2012 Free Software Foundation, Inc.
1650This configure script is free software; the Free Software Foundation
1651gives unlimited permission to copy, distribute and modify it.
1652_ACEOF
1653  exit
1654fi
1655
1656## ------------------------ ##
1657## Autoconf initialization. ##
1658## ------------------------ ##
1659
1660# ac_fn_c_try_compile LINENO
1661# --------------------------
1662# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_compile ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  rm -f conftest.$ac_objext
1667  if { { ac_try="$ac_compile"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_compile") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && {
1683	 test -z "$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       } && test -s conftest.$ac_objext; then :
1686  ac_retval=0
1687else
1688  $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691	ac_retval=1
1692fi
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_compile
1697
1698# ac_fn_c_try_link LINENO
1699# -----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_link ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  rm -f conftest.$ac_objext conftest$ac_exeext
1705  if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_link") 2>conftest.err
1713  ac_status=$?
1714  if test -s conftest.err; then
1715    grep -v '^ *+' conftest.err >conftest.er1
1716    cat conftest.er1 >&5
1717    mv -f conftest.er1 conftest.err
1718  fi
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; } && {
1721	 test -z "$ac_c_werror_flag" ||
1722	 test ! -s conftest.err
1723       } && test -s conftest$ac_exeext && {
1724	 test "$cross_compiling" = yes ||
1725	 test -x conftest$ac_exeext
1726       }; then :
1727  ac_retval=0
1728else
1729  $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732	ac_retval=1
1733fi
1734  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736  # interfere with the next link command; also delete a directory that is
1737  # left behind by Apple's compiler.  We do this before executing the actions.
1738  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_link
1743
1744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745# -------------------------------------------------------
1746# Tests whether HEADER exists and can be compiled using the include files in
1747# INCLUDES, setting the cache variable VAR accordingly.
1748ac_fn_c_check_header_compile ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
1753if eval \${$3+:} false; then :
1754  $as_echo_n "(cached) " >&6
1755else
1756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h.  */
1758$4
1759#include <$2>
1760_ACEOF
1761if ac_fn_c_try_compile "$LINENO"; then :
1762  eval "$3=yes"
1763else
1764  eval "$3=no"
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767fi
1768eval ac_res=\$$3
1769	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773} # ac_fn_c_check_header_compile
1774
1775# ac_fn_c_try_cpp LINENO
1776# ----------------------
1777# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_cpp ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  if { { ac_try="$ac_cpp conftest.$ac_ext"
1782case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1789  ac_status=$?
1790  if test -s conftest.err; then
1791    grep -v '^ *+' conftest.err >conftest.er1
1792    cat conftest.er1 >&5
1793    mv -f conftest.er1 conftest.err
1794  fi
1795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796  test $ac_status = 0; } > conftest.i && {
1797	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1798	 test ! -s conftest.err
1799       }; then :
1800  ac_retval=0
1801else
1802  $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805    ac_retval=1
1806fi
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808  as_fn_set_status $ac_retval
1809
1810} # ac_fn_c_try_cpp
1811
1812# ac_fn_c_try_run LINENO
1813# ----------------------
1814# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815# that executables *can* be run.
1816ac_fn_c_try_run ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  if { { ac_try="$ac_link"
1820case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826  (eval "$ac_link") 2>&5
1827  ac_status=$?
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830  { { case "(($ac_try" in
1831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832  *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836  (eval "$ac_try") 2>&5
1837  ac_status=$?
1838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839  test $ac_status = 0; }; }; then :
1840  ac_retval=0
1841else
1842  $as_echo "$as_me: program exited with status $ac_status" >&5
1843       $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846       ac_retval=$ac_status
1847fi
1848  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850  as_fn_set_status $ac_retval
1851
1852} # ac_fn_c_try_run
1853
1854# ac_fn_c_check_func LINENO FUNC VAR
1855# ----------------------------------
1856# Tests whether FUNC exists, setting the cache variable VAR accordingly
1857ac_fn_c_check_func ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval \${$3+:} false; then :
1863  $as_echo_n "(cached) " >&6
1864else
1865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1869#define $2 innocuous_$2
1870
1871/* System header to define __stub macros and hopefully few prototypes,
1872    which can conflict with char $2 (); below.
1873    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874    <limits.h> exists even on freestanding compilers.  */
1875
1876#ifdef __STDC__
1877# include <limits.h>
1878#else
1879# include <assert.h>
1880#endif
1881
1882#undef $2
1883
1884/* Override any GCC internal prototype to avoid an error.
1885   Use char because int might match the return type of a GCC
1886   builtin and then its argument prototype would still apply.  */
1887#ifdef __cplusplus
1888extern "C"
1889#endif
1890char $2 ();
1891/* The GNU C library defines this for functions which it implements
1892    to always fail with ENOSYS.  Some functions are actually named
1893    something starting with __ and the normal name is an alias.  */
1894#if defined __stub_$2 || defined __stub___$2
1895choke me
1896#endif
1897
1898int
1899main ()
1900{
1901return $2 ();
1902  ;
1903  return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_link "$LINENO"; then :
1907  eval "$3=yes"
1908else
1909  eval "$3=no"
1910fi
1911rm -f core conftest.err conftest.$ac_objext \
1912    conftest$ac_exeext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
1917  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919} # ac_fn_c_check_func
1920
1921# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1922# -------------------------------------------
1923# Tests whether TYPE exists after having included INCLUDES, setting cache
1924# variable VAR accordingly.
1925ac_fn_c_check_type ()
1926{
1927  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
1930if eval \${$3+:} false; then :
1931  $as_echo_n "(cached) " >&6
1932else
1933  eval "$3=no"
1934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936$4
1937int
1938main ()
1939{
1940if (sizeof ($2))
1941	 return 0;
1942  ;
1943  return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h.  */
1949$4
1950int
1951main ()
1952{
1953if (sizeof (($2)))
1954	    return 0;
1955  ;
1956  return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960
1961else
1962  eval "$3=yes"
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968eval ac_res=\$$3
1969	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972
1973} # ac_fn_c_check_type
1974
1975# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1976# -------------------------------------------------------
1977# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1978# the include files in INCLUDES and setting the cache variable VAR
1979# accordingly.
1980ac_fn_c_check_header_mongrel ()
1981{
1982  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983  if eval \${$3+:} false; then :
1984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985$as_echo_n "checking for $2... " >&6; }
1986if eval \${$3+:} false; then :
1987  $as_echo_n "(cached) " >&6
1988fi
1989eval ac_res=\$$3
1990	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991$as_echo "$ac_res" >&6; }
1992else
1993  # Is the header compilable?
1994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1995$as_echo_n "checking $2 usability... " >&6; }
1996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h.  */
1998$4
1999#include <$2>
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002  ac_header_compiler=yes
2003else
2004  ac_header_compiler=no
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2008$as_echo "$ac_header_compiler" >&6; }
2009
2010# Is the header present?
2011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2012$as_echo_n "checking $2 presence... " >&6; }
2013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h.  */
2015#include <$2>
2016_ACEOF
2017if ac_fn_c_try_cpp "$LINENO"; then :
2018  ac_header_preproc=yes
2019else
2020  ac_header_preproc=no
2021fi
2022rm -f conftest.err conftest.i conftest.$ac_ext
2023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2024$as_echo "$ac_header_preproc" >&6; }
2025
2026# So?  What about this header?
2027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2028  yes:no: )
2029    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2030$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2031    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033    ;;
2034  no:yes:* )
2035    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2036$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2037    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2038$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2039    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2040$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2041    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2042$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2043    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2045    ;;
2046esac
2047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048$as_echo_n "checking for $2... " >&6; }
2049if eval \${$3+:} false; then :
2050  $as_echo_n "(cached) " >&6
2051else
2052  eval "$3=\$ac_header_compiler"
2053fi
2054eval ac_res=\$$3
2055	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056$as_echo "$ac_res" >&6; }
2057fi
2058  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060} # ac_fn_c_check_header_mongrel
2061cat >config.log <<_ACEOF
2062This file contains any messages produced by compilers while
2063running configure, to aid debugging if configure makes a mistake.
2064
2065It was created by sqlite $as_me 3.9.1, which was
2066generated by GNU Autoconf 2.69.  Invocation command line was
2067
2068  $ $0 $@
2069
2070_ACEOF
2071exec 5>>config.log
2072{
2073cat <<_ASUNAME
2074## --------- ##
2075## Platform. ##
2076## --------- ##
2077
2078hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2079uname -m = `(uname -m) 2>/dev/null || echo unknown`
2080uname -r = `(uname -r) 2>/dev/null || echo unknown`
2081uname -s = `(uname -s) 2>/dev/null || echo unknown`
2082uname -v = `(uname -v) 2>/dev/null || echo unknown`
2083
2084/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2085/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2086
2087/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2088/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2089/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2090/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2091/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2092/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2093/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2094
2095_ASUNAME
2096
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100  IFS=$as_save_IFS
2101  test -z "$as_dir" && as_dir=.
2102    $as_echo "PATH: $as_dir"
2103  done
2104IFS=$as_save_IFS
2105
2106} >&5
2107
2108cat >&5 <<_ACEOF
2109
2110
2111## ----------- ##
2112## Core tests. ##
2113## ----------- ##
2114
2115_ACEOF
2116
2117
2118# Keep a trace of the command line.
2119# Strip out --no-create and --no-recursion so they do not pile up.
2120# Strip out --silent because we don't want to record it for future runs.
2121# Also quote any args containing shell meta-characters.
2122# Make two passes to allow for proper duplicate-argument suppression.
2123ac_configure_args=
2124ac_configure_args0=
2125ac_configure_args1=
2126ac_must_keep_next=false
2127for ac_pass in 1 2
2128do
2129  for ac_arg
2130  do
2131    case $ac_arg in
2132    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2133    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2134    | -silent | --silent | --silen | --sile | --sil)
2135      continue ;;
2136    *\'*)
2137      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138    esac
2139    case $ac_pass in
2140    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2141    2)
2142      as_fn_append ac_configure_args1 " '$ac_arg'"
2143      if test $ac_must_keep_next = true; then
2144	ac_must_keep_next=false # Got value, back to normal.
2145      else
2146	case $ac_arg in
2147	  *=* | --config-cache | -C | -disable-* | --disable-* \
2148	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2149	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2150	  | -with-* | --with-* | -without-* | --without-* | --x)
2151	    case "$ac_configure_args0 " in
2152	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153	    esac
2154	    ;;
2155	  -* ) ac_must_keep_next=true ;;
2156	esac
2157      fi
2158      as_fn_append ac_configure_args " '$ac_arg'"
2159      ;;
2160    esac
2161  done
2162done
2163{ ac_configure_args0=; unset ac_configure_args0;}
2164{ ac_configure_args1=; unset ac_configure_args1;}
2165
2166# When interrupted or exit'd, cleanup temporary files, and complete
2167# config.log.  We remove comments because anyway the quotes in there
2168# would cause problems or look ugly.
2169# WARNING: Use '\'' to represent an apostrophe within the trap.
2170# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2171trap 'exit_status=$?
2172  # Save into config.log some information that might help in debugging.
2173  {
2174    echo
2175
2176    $as_echo "## ---------------- ##
2177## Cache variables. ##
2178## ---------------- ##"
2179    echo
2180    # The following way of writing the cache mishandles newlines in values,
2181(
2182  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2183    eval ac_val=\$$ac_var
2184    case $ac_val in #(
2185    *${as_nl}*)
2186      case $ac_var in #(
2187      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2188$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189      esac
2190      case $ac_var in #(
2191      _ | IFS | as_nl) ;; #(
2192      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2193      *) { eval $ac_var=; unset $ac_var;} ;;
2194      esac ;;
2195    esac
2196  done
2197  (set) 2>&1 |
2198    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2199    *${as_nl}ac_space=\ *)
2200      sed -n \
2201	"s/'\''/'\''\\\\'\'''\''/g;
2202	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203      ;; #(
2204    *)
2205      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2206      ;;
2207    esac |
2208    sort
2209)
2210    echo
2211
2212    $as_echo "## ----------------- ##
2213## Output variables. ##
2214## ----------------- ##"
2215    echo
2216    for ac_var in $ac_subst_vars
2217    do
2218      eval ac_val=\$$ac_var
2219      case $ac_val in
2220      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221      esac
2222      $as_echo "$ac_var='\''$ac_val'\''"
2223    done | sort
2224    echo
2225
2226    if test -n "$ac_subst_files"; then
2227      $as_echo "## ------------------- ##
2228## File substitutions. ##
2229## ------------------- ##"
2230      echo
2231      for ac_var in $ac_subst_files
2232      do
2233	eval ac_val=\$$ac_var
2234	case $ac_val in
2235	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236	esac
2237	$as_echo "$ac_var='\''$ac_val'\''"
2238      done | sort
2239      echo
2240    fi
2241
2242    if test -s confdefs.h; then
2243      $as_echo "## ----------- ##
2244## confdefs.h. ##
2245## ----------- ##"
2246      echo
2247      cat confdefs.h
2248      echo
2249    fi
2250    test "$ac_signal" != 0 &&
2251      $as_echo "$as_me: caught signal $ac_signal"
2252    $as_echo "$as_me: exit $exit_status"
2253  } >&5
2254  rm -f core *.core core.conftest.* &&
2255    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2256    exit $exit_status
2257' 0
2258for ac_signal in 1 2 13 15; do
2259  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2260done
2261ac_signal=0
2262
2263# confdefs.h avoids OS command line length limits that DEFS can exceed.
2264rm -f -r conftest* confdefs.h
2265
2266$as_echo "/* confdefs.h */" > confdefs.h
2267
2268# Predefined preprocessor variables.
2269
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE_NAME "$PACKAGE_NAME"
2272_ACEOF
2273
2274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2276_ACEOF
2277
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_VERSION "$PACKAGE_VERSION"
2280_ACEOF
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_STRING "$PACKAGE_STRING"
2284_ACEOF
2285
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2288_ACEOF
2289
2290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_URL "$PACKAGE_URL"
2292_ACEOF
2293
2294
2295# Let the site file select an alternate cache file if it wants to.
2296# Prefer an explicitly selected file to automatically selected ones.
2297ac_site_file1=NONE
2298ac_site_file2=NONE
2299if test -n "$CONFIG_SITE"; then
2300  # We do not want a PATH search for config.site.
2301  case $CONFIG_SITE in #((
2302    -*)  ac_site_file1=./$CONFIG_SITE;;
2303    */*) ac_site_file1=$CONFIG_SITE;;
2304    *)   ac_site_file1=./$CONFIG_SITE;;
2305  esac
2306elif test "x$prefix" != xNONE; then
2307  ac_site_file1=$prefix/share/config.site
2308  ac_site_file2=$prefix/etc/config.site
2309else
2310  ac_site_file1=$ac_default_prefix/share/config.site
2311  ac_site_file2=$ac_default_prefix/etc/config.site
2312fi
2313for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2314do
2315  test "x$ac_site_file" = xNONE && continue
2316  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2317    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2318$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2319    sed 's/^/| /' "$ac_site_file" >&5
2320    . "$ac_site_file" \
2321      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323as_fn_error $? "failed to load site script $ac_site_file
2324See \`config.log' for more details" "$LINENO" 5; }
2325  fi
2326done
2327
2328if test -r "$cache_file"; then
2329  # Some versions of bash will fail to source /dev/null (special files
2330  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2331  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2332    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2333$as_echo "$as_me: loading cache $cache_file" >&6;}
2334    case $cache_file in
2335      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2336      *)                      . "./$cache_file";;
2337    esac
2338  fi
2339else
2340  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2341$as_echo "$as_me: creating cache $cache_file" >&6;}
2342  >$cache_file
2343fi
2344
2345# Check that the precious variables saved in the cache have kept the same
2346# value.
2347ac_cache_corrupted=false
2348for ac_var in $ac_precious_vars; do
2349  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2350  eval ac_new_set=\$ac_env_${ac_var}_set
2351  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2352  eval ac_new_val=\$ac_env_${ac_var}_value
2353  case $ac_old_set,$ac_new_set in
2354    set,)
2355      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2356$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2357      ac_cache_corrupted=: ;;
2358    ,set)
2359      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2360$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2361      ac_cache_corrupted=: ;;
2362    ,);;
2363    *)
2364      if test "x$ac_old_val" != "x$ac_new_val"; then
2365	# differences in whitespace do not lead to failure.
2366	ac_old_val_w=`echo x $ac_old_val`
2367	ac_new_val_w=`echo x $ac_new_val`
2368	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2369	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2370$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2371	  ac_cache_corrupted=:
2372	else
2373	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2374$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2375	  eval $ac_var=\$ac_old_val
2376	fi
2377	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2378$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2379	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2380$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2381      fi;;
2382  esac
2383  # Pass precious variables to config.status.
2384  if test "$ac_new_set" = set; then
2385    case $ac_new_val in
2386    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2387    *) ac_arg=$ac_var=$ac_new_val ;;
2388    esac
2389    case " $ac_configure_args " in
2390      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2391      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2392    esac
2393  fi
2394done
2395if $ac_cache_corrupted; then
2396  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2399$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2400  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2401fi
2402## -------------------- ##
2403## Main body of script. ##
2404## -------------------- ##
2405
2406ac_ext=c
2407ac_cpp='$CPP $CPPFLAGS'
2408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411
2412
2413
2414sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2415if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2416as_fn_error $? "configure script is out of date:
2417 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2418 top level VERSION file     = $sqlite_version_sanity_check
2419please regen with autoconf" "$LINENO" 5
2420fi
2421
2422#########
2423# Programs needed
2424#
2425case `pwd` in
2426  *\ * | *\	*)
2427    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2428$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2429esac
2430
2431
2432
2433macro_version='2.2.6'
2434macro_revision='1.3012'
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448ltmain="$ac_aux_dir/ltmain.sh"
2449
2450ac_aux_dir=
2451for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2452  if test -f "$ac_dir/install-sh"; then
2453    ac_aux_dir=$ac_dir
2454    ac_install_sh="$ac_aux_dir/install-sh -c"
2455    break
2456  elif test -f "$ac_dir/install.sh"; then
2457    ac_aux_dir=$ac_dir
2458    ac_install_sh="$ac_aux_dir/install.sh -c"
2459    break
2460  elif test -f "$ac_dir/shtool"; then
2461    ac_aux_dir=$ac_dir
2462    ac_install_sh="$ac_aux_dir/shtool install -c"
2463    break
2464  fi
2465done
2466if test -z "$ac_aux_dir"; then
2467  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2468fi
2469
2470# These three variables are undocumented and unsupported,
2471# and are intended to be withdrawn in a future Autoconf release.
2472# They can cause serious problems if a builder's source tree is in a directory
2473# whose full name contains unusual characters.
2474ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2475ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2476ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2477
2478
2479# Make sure we can run config.sub.
2480$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2481  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2482
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2484$as_echo_n "checking build system type... " >&6; }
2485if ${ac_cv_build+:} false; then :
2486  $as_echo_n "(cached) " >&6
2487else
2488  ac_build_alias=$build_alias
2489test "x$ac_build_alias" = x &&
2490  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2491test "x$ac_build_alias" = x &&
2492  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2493ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2494  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2495
2496fi
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2498$as_echo "$ac_cv_build" >&6; }
2499case $ac_cv_build in
2500*-*-*) ;;
2501*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2502esac
2503build=$ac_cv_build
2504ac_save_IFS=$IFS; IFS='-'
2505set x $ac_cv_build
2506shift
2507build_cpu=$1
2508build_vendor=$2
2509shift; shift
2510# Remember, the first character of IFS is used to create $*,
2511# except with old shells:
2512build_os=$*
2513IFS=$ac_save_IFS
2514case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2515
2516
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2518$as_echo_n "checking host system type... " >&6; }
2519if ${ac_cv_host+:} false; then :
2520  $as_echo_n "(cached) " >&6
2521else
2522  if test "x$host_alias" = x; then
2523  ac_cv_host=$ac_cv_build
2524else
2525  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2526    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2527fi
2528
2529fi
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2531$as_echo "$ac_cv_host" >&6; }
2532case $ac_cv_host in
2533*-*-*) ;;
2534*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2535esac
2536host=$ac_cv_host
2537ac_save_IFS=$IFS; IFS='-'
2538set x $ac_cv_host
2539shift
2540host_cpu=$1
2541host_vendor=$2
2542shift; shift
2543# Remember, the first character of IFS is used to create $*,
2544# except with old shells:
2545host_os=$*
2546IFS=$ac_save_IFS
2547case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2548
2549
2550ac_ext=c
2551ac_cpp='$CPP $CPPFLAGS'
2552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555if test -n "$ac_tool_prefix"; then
2556  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2557set dummy ${ac_tool_prefix}gcc; ac_word=$2
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
2560if ${ac_cv_prog_CC+:} false; then :
2561  $as_echo_n "(cached) " >&6
2562else
2563  if test -n "$CC"; then
2564  ac_cv_prog_CC="$CC" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569  IFS=$as_save_IFS
2570  test -z "$as_dir" && as_dir=.
2571    for ac_exec_ext in '' $ac_executable_extensions; do
2572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2573    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575    break 2
2576  fi
2577done
2578  done
2579IFS=$as_save_IFS
2580
2581fi
2582fi
2583CC=$ac_cv_prog_CC
2584if test -n "$CC"; then
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2586$as_echo "$CC" >&6; }
2587else
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589$as_echo "no" >&6; }
2590fi
2591
2592
2593fi
2594if test -z "$ac_cv_prog_CC"; then
2595  ac_ct_CC=$CC
2596  # Extract the first word of "gcc", so it can be a program name with args.
2597set dummy gcc; ac_word=$2
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599$as_echo_n "checking for $ac_word... " >&6; }
2600if ${ac_cv_prog_ac_ct_CC+:} false; then :
2601  $as_echo_n "(cached) " >&6
2602else
2603  if test -n "$ac_ct_CC"; then
2604  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2605else
2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609  IFS=$as_save_IFS
2610  test -z "$as_dir" && as_dir=.
2611    for ac_exec_ext in '' $ac_executable_extensions; do
2612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613    ac_cv_prog_ac_ct_CC="gcc"
2614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615    break 2
2616  fi
2617done
2618  done
2619IFS=$as_save_IFS
2620
2621fi
2622fi
2623ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624if test -n "$ac_ct_CC"; then
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2626$as_echo "$ac_ct_CC" >&6; }
2627else
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629$as_echo "no" >&6; }
2630fi
2631
2632  if test "x$ac_ct_CC" = x; then
2633    CC=""
2634  else
2635    case $cross_compiling:$ac_tool_warned in
2636yes:)
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2639ac_tool_warned=yes ;;
2640esac
2641    CC=$ac_ct_CC
2642  fi
2643else
2644  CC="$ac_cv_prog_CC"
2645fi
2646
2647if test -z "$CC"; then
2648          if test -n "$ac_tool_prefix"; then
2649    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2650set dummy ${ac_tool_prefix}cc; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if ${ac_cv_prog_CC+:} false; then :
2654  $as_echo_n "(cached) " >&6
2655else
2656  if test -n "$CC"; then
2657  ac_cv_prog_CC="$CC" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664    for ac_exec_ext in '' $ac_executable_extensions; do
2665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666    ac_cv_prog_CC="${ac_tool_prefix}cc"
2667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668    break 2
2669  fi
2670done
2671  done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676CC=$ac_cv_prog_CC
2677if test -n "$CC"; then
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2679$as_echo "$CC" >&6; }
2680else
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686  fi
2687fi
2688if test -z "$CC"; then
2689  # Extract the first word of "cc", so it can be a program name with args.
2690set dummy cc; ac_word=$2
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692$as_echo_n "checking for $ac_word... " >&6; }
2693if ${ac_cv_prog_CC+:} false; then :
2694  $as_echo_n "(cached) " >&6
2695else
2696  if test -n "$CC"; then
2697  ac_cv_prog_CC="$CC" # Let the user override the test.
2698else
2699  ac_prog_rejected=no
2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH
2702do
2703  IFS=$as_save_IFS
2704  test -z "$as_dir" && as_dir=.
2705    for ac_exec_ext in '' $ac_executable_extensions; do
2706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2708       ac_prog_rejected=yes
2709       continue
2710     fi
2711    ac_cv_prog_CC="cc"
2712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713    break 2
2714  fi
2715done
2716  done
2717IFS=$as_save_IFS
2718
2719if test $ac_prog_rejected = yes; then
2720  # We found a bogon in the path, so make sure we never use it.
2721  set dummy $ac_cv_prog_CC
2722  shift
2723  if test $# != 0; then
2724    # We chose a different compiler from the bogus one.
2725    # However, it has the same basename, so the bogon will be chosen
2726    # first if we set CC to just the basename; use the full file name.
2727    shift
2728    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2729  fi
2730fi
2731fi
2732fi
2733CC=$ac_cv_prog_CC
2734if test -n "$CC"; then
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2736$as_echo "$CC" >&6; }
2737else
2738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739$as_echo "no" >&6; }
2740fi
2741
2742
2743fi
2744if test -z "$CC"; then
2745  if test -n "$ac_tool_prefix"; then
2746  for ac_prog in cl.exe
2747  do
2748    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
2752if ${ac_cv_prog_CC+:} false; then :
2753  $as_echo_n "(cached) " >&6
2754else
2755  if test -n "$CC"; then
2756  ac_cv_prog_CC="$CC" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761  IFS=$as_save_IFS
2762  test -z "$as_dir" && as_dir=.
2763    for ac_exec_ext in '' $ac_executable_extensions; do
2764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767    break 2
2768  fi
2769done
2770  done
2771IFS=$as_save_IFS
2772
2773fi
2774fi
2775CC=$ac_cv_prog_CC
2776if test -n "$CC"; then
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778$as_echo "$CC" >&6; }
2779else
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
2782fi
2783
2784
2785    test -n "$CC" && break
2786  done
2787fi
2788if test -z "$CC"; then
2789  ac_ct_CC=$CC
2790  for ac_prog in cl.exe
2791do
2792  # Extract the first word of "$ac_prog", so it can be a program name with args.
2793set dummy $ac_prog; ac_word=$2
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795$as_echo_n "checking for $ac_word... " >&6; }
2796if ${ac_cv_prog_ac_ct_CC+:} false; then :
2797  $as_echo_n "(cached) " >&6
2798else
2799  if test -n "$ac_ct_CC"; then
2800  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801else
2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805  IFS=$as_save_IFS
2806  test -z "$as_dir" && as_dir=.
2807    for ac_exec_ext in '' $ac_executable_extensions; do
2808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809    ac_cv_prog_ac_ct_CC="$ac_prog"
2810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811    break 2
2812  fi
2813done
2814  done
2815IFS=$as_save_IFS
2816
2817fi
2818fi
2819ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820if test -n "$ac_ct_CC"; then
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2822$as_echo "$ac_ct_CC" >&6; }
2823else
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
2826fi
2827
2828
2829  test -n "$ac_ct_CC" && break
2830done
2831
2832  if test "x$ac_ct_CC" = x; then
2833    CC=""
2834  else
2835    case $cross_compiling:$ac_tool_warned in
2836yes:)
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2839ac_tool_warned=yes ;;
2840esac
2841    CC=$ac_ct_CC
2842  fi
2843fi
2844
2845fi
2846
2847
2848test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2850as_fn_error $? "no acceptable C compiler found in \$PATH
2851See \`config.log' for more details" "$LINENO" 5; }
2852
2853# Provide some information about the compiler.
2854$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2855set X $ac_compile
2856ac_compiler=$2
2857for ac_option in --version -v -V -qversion; do
2858  { { ac_try="$ac_compiler $ac_option >&5"
2859case "(($ac_try" in
2860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861  *) ac_try_echo=$ac_try;;
2862esac
2863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864$as_echo "$ac_try_echo"; } >&5
2865  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2866  ac_status=$?
2867  if test -s conftest.err; then
2868    sed '10a\
2869... rest of stderr output deleted ...
2870         10q' conftest.err >conftest.er1
2871    cat conftest.er1 >&5
2872  fi
2873  rm -f conftest.er1 conftest.err
2874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875  test $ac_status = 0; }
2876done
2877
2878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879/* end confdefs.h.  */
2880
2881int
2882main ()
2883{
2884
2885  ;
2886  return 0;
2887}
2888_ACEOF
2889ac_clean_files_save=$ac_clean_files
2890ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2891# Try to create an executable without -o first, disregard a.out.
2892# It will help us diagnose broken compilers, and finding out an intuition
2893# of exeext.
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2895$as_echo_n "checking whether the C compiler works... " >&6; }
2896ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2897
2898# The possible output files:
2899ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2900
2901ac_rmfiles=
2902for ac_file in $ac_files
2903do
2904  case $ac_file in
2905    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2906    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2907  esac
2908done
2909rm -f $ac_rmfiles
2910
2911if { { ac_try="$ac_link_default"
2912case "(($ac_try" in
2913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914  *) ac_try_echo=$ac_try;;
2915esac
2916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2917$as_echo "$ac_try_echo"; } >&5
2918  (eval "$ac_link_default") 2>&5
2919  ac_status=$?
2920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921  test $ac_status = 0; }; then :
2922  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2923# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2924# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2925# so that the user can short-circuit this test for compilers unknown to
2926# Autoconf.
2927for ac_file in $ac_files ''
2928do
2929  test -f "$ac_file" || continue
2930  case $ac_file in
2931    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2932	;;
2933    [ab].out )
2934	# We found the default executable, but exeext='' is most
2935	# certainly right.
2936	break;;
2937    *.* )
2938	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2939	then :; else
2940	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941	fi
2942	# We set ac_cv_exeext here because the later test for it is not
2943	# safe: cross compilers may not add the suffix if given an `-o'
2944	# argument, so we may need to know it at that point already.
2945	# Even if this section looks crufty: it has the advantage of
2946	# actually working.
2947	break;;
2948    * )
2949	break;;
2950  esac
2951done
2952test "$ac_cv_exeext" = no && ac_cv_exeext=
2953
2954else
2955  ac_file=''
2956fi
2957if test -z "$ac_file"; then :
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959$as_echo "no" >&6; }
2960$as_echo "$as_me: failed program was:" >&5
2961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965as_fn_error 77 "C compiler cannot create executables
2966See \`config.log' for more details" "$LINENO" 5; }
2967else
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969$as_echo "yes" >&6; }
2970fi
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2972$as_echo_n "checking for C compiler default output file name... " >&6; }
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2974$as_echo "$ac_file" >&6; }
2975ac_exeext=$ac_cv_exeext
2976
2977rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2978ac_clean_files=$ac_clean_files_save
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2980$as_echo_n "checking for suffix of executables... " >&6; }
2981if { { ac_try="$ac_link"
2982case "(($ac_try" in
2983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984  *) ac_try_echo=$ac_try;;
2985esac
2986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2987$as_echo "$ac_try_echo"; } >&5
2988  (eval "$ac_link") 2>&5
2989  ac_status=$?
2990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991  test $ac_status = 0; }; then :
2992  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2993# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2994# work properly (i.e., refer to `conftest.exe'), while it won't with
2995# `rm'.
2996for ac_file in conftest.exe conftest conftest.*; do
2997  test -f "$ac_file" || continue
2998  case $ac_file in
2999    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3000    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001	  break;;
3002    * ) break;;
3003  esac
3004done
3005else
3006  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3009See \`config.log' for more details" "$LINENO" 5; }
3010fi
3011rm -f conftest conftest$ac_cv_exeext
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3013$as_echo "$ac_cv_exeext" >&6; }
3014
3015rm -f conftest.$ac_ext
3016EXEEXT=$ac_cv_exeext
3017ac_exeext=$EXEEXT
3018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h.  */
3020#include <stdio.h>
3021int
3022main ()
3023{
3024FILE *f = fopen ("conftest.out", "w");
3025 return ferror (f) || fclose (f) != 0;
3026
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031ac_clean_files="$ac_clean_files conftest.out"
3032# Check that the compiler produces executables we can run.  If not, either
3033# the compiler is broken, or we cross compile.
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3035$as_echo_n "checking whether we are cross compiling... " >&6; }
3036if test "$cross_compiling" != yes; then
3037  { { ac_try="$ac_link"
3038case "(($ac_try" in
3039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040  *) ac_try_echo=$ac_try;;
3041esac
3042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043$as_echo "$ac_try_echo"; } >&5
3044  (eval "$ac_link") 2>&5
3045  ac_status=$?
3046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047  test $ac_status = 0; }
3048  if { ac_try='./conftest$ac_cv_exeext'
3049  { { case "(($ac_try" in
3050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051  *) ac_try_echo=$ac_try;;
3052esac
3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054$as_echo "$ac_try_echo"; } >&5
3055  (eval "$ac_try") 2>&5
3056  ac_status=$?
3057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058  test $ac_status = 0; }; }; then
3059    cross_compiling=no
3060  else
3061    if test "$cross_compiling" = maybe; then
3062	cross_compiling=yes
3063    else
3064	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066as_fn_error $? "cannot run C compiled programs.
3067If you meant to cross compile, use \`--host'.
3068See \`config.log' for more details" "$LINENO" 5; }
3069    fi
3070  fi
3071fi
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3073$as_echo "$cross_compiling" >&6; }
3074
3075rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3076ac_clean_files=$ac_clean_files_save
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3078$as_echo_n "checking for suffix of object files... " >&6; }
3079if ${ac_cv_objext+:} false; then :
3080  $as_echo_n "(cached) " >&6
3081else
3082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083/* end confdefs.h.  */
3084
3085int
3086main ()
3087{
3088
3089  ;
3090  return 0;
3091}
3092_ACEOF
3093rm -f conftest.o conftest.obj
3094if { { ac_try="$ac_compile"
3095case "(($ac_try" in
3096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097  *) ac_try_echo=$ac_try;;
3098esac
3099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100$as_echo "$ac_try_echo"; } >&5
3101  (eval "$ac_compile") 2>&5
3102  ac_status=$?
3103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104  test $ac_status = 0; }; then :
3105  for ac_file in conftest.o conftest.obj conftest.*; do
3106  test -f "$ac_file" || continue;
3107  case $ac_file in
3108    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3109    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3110       break;;
3111  esac
3112done
3113else
3114  $as_echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3119as_fn_error $? "cannot compute suffix of object files: cannot compile
3120See \`config.log' for more details" "$LINENO" 5; }
3121fi
3122rm -f conftest.$ac_cv_objext conftest.$ac_ext
3123fi
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3125$as_echo "$ac_cv_objext" >&6; }
3126OBJEXT=$ac_cv_objext
3127ac_objext=$OBJEXT
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3129$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3130if ${ac_cv_c_compiler_gnu+:} false; then :
3131  $as_echo_n "(cached) " >&6
3132else
3133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h.  */
3135
3136int
3137main ()
3138{
3139#ifndef __GNUC__
3140       choke me
3141#endif
3142
3143  ;
3144  return 0;
3145}
3146_ACEOF
3147if ac_fn_c_try_compile "$LINENO"; then :
3148  ac_compiler_gnu=yes
3149else
3150  ac_compiler_gnu=no
3151fi
3152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153ac_cv_c_compiler_gnu=$ac_compiler_gnu
3154
3155fi
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3157$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3158if test $ac_compiler_gnu = yes; then
3159  GCC=yes
3160else
3161  GCC=
3162fi
3163ac_test_CFLAGS=${CFLAGS+set}
3164ac_save_CFLAGS=$CFLAGS
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3166$as_echo_n "checking whether $CC accepts -g... " >&6; }
3167if ${ac_cv_prog_cc_g+:} false; then :
3168  $as_echo_n "(cached) " >&6
3169else
3170  ac_save_c_werror_flag=$ac_c_werror_flag
3171   ac_c_werror_flag=yes
3172   ac_cv_prog_cc_g=no
3173   CFLAGS="-g"
3174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175/* end confdefs.h.  */
3176
3177int
3178main ()
3179{
3180
3181  ;
3182  return 0;
3183}
3184_ACEOF
3185if ac_fn_c_try_compile "$LINENO"; then :
3186  ac_cv_prog_cc_g=yes
3187else
3188  CFLAGS=""
3189      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190/* end confdefs.h.  */
3191
3192int
3193main ()
3194{
3195
3196  ;
3197  return 0;
3198}
3199_ACEOF
3200if ac_fn_c_try_compile "$LINENO"; then :
3201
3202else
3203  ac_c_werror_flag=$ac_save_c_werror_flag
3204	 CFLAGS="-g"
3205	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206/* end confdefs.h.  */
3207
3208int
3209main ()
3210{
3211
3212  ;
3213  return 0;
3214}
3215_ACEOF
3216if ac_fn_c_try_compile "$LINENO"; then :
3217  ac_cv_prog_cc_g=yes
3218fi
3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220fi
3221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222fi
3223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224   ac_c_werror_flag=$ac_save_c_werror_flag
3225fi
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3227$as_echo "$ac_cv_prog_cc_g" >&6; }
3228if test "$ac_test_CFLAGS" = set; then
3229  CFLAGS=$ac_save_CFLAGS
3230elif test $ac_cv_prog_cc_g = yes; then
3231  if test "$GCC" = yes; then
3232    CFLAGS="-g -O2"
3233  else
3234    CFLAGS="-g"
3235  fi
3236else
3237  if test "$GCC" = yes; then
3238    CFLAGS="-O2"
3239  else
3240    CFLAGS=
3241  fi
3242fi
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3244$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3245if ${ac_cv_prog_cc_c89+:} false; then :
3246  $as_echo_n "(cached) " >&6
3247else
3248  ac_cv_prog_cc_c89=no
3249ac_save_CC=$CC
3250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251/* end confdefs.h.  */
3252#include <stdarg.h>
3253#include <stdio.h>
3254struct stat;
3255/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3256struct buf { int x; };
3257FILE * (*rcsopen) (struct buf *, struct stat *, int);
3258static char *e (p, i)
3259     char **p;
3260     int i;
3261{
3262  return p[i];
3263}
3264static char *f (char * (*g) (char **, int), char **p, ...)
3265{
3266  char *s;
3267  va_list v;
3268  va_start (v,p);
3269  s = g (p, va_arg (v,int));
3270  va_end (v);
3271  return s;
3272}
3273
3274/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3275   function prototypes and stuff, but not '\xHH' hex character constants.
3276   These don't provoke an error unfortunately, instead are silently treated
3277   as 'x'.  The following induces an error, until -std is added to get
3278   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3279   array size at least.  It's necessary to write '\x00'==0 to get something
3280   that's true only with -std.  */
3281int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3282
3283/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3284   inside strings and character constants.  */
3285#define FOO(x) 'x'
3286int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3287
3288int test (int i, double x);
3289struct s1 {int (*f) (int a);};
3290struct s2 {int (*f) (double a);};
3291int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3292int argc;
3293char **argv;
3294int
3295main ()
3296{
3297return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3298  ;
3299  return 0;
3300}
3301_ACEOF
3302for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3303	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3304do
3305  CC="$ac_save_CC $ac_arg"
3306  if ac_fn_c_try_compile "$LINENO"; then :
3307  ac_cv_prog_cc_c89=$ac_arg
3308fi
3309rm -f core conftest.err conftest.$ac_objext
3310  test "x$ac_cv_prog_cc_c89" != "xno" && break
3311done
3312rm -f conftest.$ac_ext
3313CC=$ac_save_CC
3314
3315fi
3316# AC_CACHE_VAL
3317case "x$ac_cv_prog_cc_c89" in
3318  x)
3319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3320$as_echo "none needed" >&6; } ;;
3321  xno)
3322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3323$as_echo "unsupported" >&6; } ;;
3324  *)
3325    CC="$CC $ac_cv_prog_cc_c89"
3326    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3327$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3328esac
3329if test "x$ac_cv_prog_cc_c89" != xno; then :
3330
3331fi
3332
3333ac_ext=c
3334ac_cpp='$CPP $CPPFLAGS'
3335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3340$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3341if ${ac_cv_path_SED+:} false; then :
3342  $as_echo_n "(cached) " >&6
3343else
3344            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3345     for ac_i in 1 2 3 4 5 6 7; do
3346       ac_script="$ac_script$as_nl$ac_script"
3347     done
3348     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3349     { ac_script=; unset ac_script;}
3350     if test -z "$SED"; then
3351  ac_path_SED_found=false
3352  # Loop through the user's path and test for each of PROGNAME-LIST
3353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354for as_dir in $PATH
3355do
3356  IFS=$as_save_IFS
3357  test -z "$as_dir" && as_dir=.
3358    for ac_prog in sed gsed; do
3359    for ac_exec_ext in '' $ac_executable_extensions; do
3360      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3361      as_fn_executable_p "$ac_path_SED" || continue
3362# Check for GNU ac_path_SED and select it if it is found.
3363  # Check for GNU $ac_path_SED
3364case `"$ac_path_SED" --version 2>&1` in
3365*GNU*)
3366  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3367*)
3368  ac_count=0
3369  $as_echo_n 0123456789 >"conftest.in"
3370  while :
3371  do
3372    cat "conftest.in" "conftest.in" >"conftest.tmp"
3373    mv "conftest.tmp" "conftest.in"
3374    cp "conftest.in" "conftest.nl"
3375    $as_echo '' >> "conftest.nl"
3376    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3377    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3378    as_fn_arith $ac_count + 1 && ac_count=$as_val
3379    if test $ac_count -gt ${ac_path_SED_max-0}; then
3380      # Best one so far, save it but keep looking for a better one
3381      ac_cv_path_SED="$ac_path_SED"
3382      ac_path_SED_max=$ac_count
3383    fi
3384    # 10*(2^10) chars as input seems more than enough
3385    test $ac_count -gt 10 && break
3386  done
3387  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3388esac
3389
3390      $ac_path_SED_found && break 3
3391    done
3392  done
3393  done
3394IFS=$as_save_IFS
3395  if test -z "$ac_cv_path_SED"; then
3396    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3397  fi
3398else
3399  ac_cv_path_SED=$SED
3400fi
3401
3402fi
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3404$as_echo "$ac_cv_path_SED" >&6; }
3405 SED="$ac_cv_path_SED"
3406  rm -f conftest.sed
3407
3408test -z "$SED" && SED=sed
3409Xsed="$SED -e 1s/^X//"
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3422$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3423if ${ac_cv_path_GREP+:} false; then :
3424  $as_echo_n "(cached) " >&6
3425else
3426  if test -z "$GREP"; then
3427  ac_path_GREP_found=false
3428  # Loop through the user's path and test for each of PROGNAME-LIST
3429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3431do
3432  IFS=$as_save_IFS
3433  test -z "$as_dir" && as_dir=.
3434    for ac_prog in grep ggrep; do
3435    for ac_exec_ext in '' $ac_executable_extensions; do
3436      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3437      as_fn_executable_p "$ac_path_GREP" || continue
3438# Check for GNU ac_path_GREP and select it if it is found.
3439  # Check for GNU $ac_path_GREP
3440case `"$ac_path_GREP" --version 2>&1` in
3441*GNU*)
3442  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3443*)
3444  ac_count=0
3445  $as_echo_n 0123456789 >"conftest.in"
3446  while :
3447  do
3448    cat "conftest.in" "conftest.in" >"conftest.tmp"
3449    mv "conftest.tmp" "conftest.in"
3450    cp "conftest.in" "conftest.nl"
3451    $as_echo 'GREP' >> "conftest.nl"
3452    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3453    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3454    as_fn_arith $ac_count + 1 && ac_count=$as_val
3455    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3456      # Best one so far, save it but keep looking for a better one
3457      ac_cv_path_GREP="$ac_path_GREP"
3458      ac_path_GREP_max=$ac_count
3459    fi
3460    # 10*(2^10) chars as input seems more than enough
3461    test $ac_count -gt 10 && break
3462  done
3463  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3464esac
3465
3466      $ac_path_GREP_found && break 3
3467    done
3468  done
3469  done
3470IFS=$as_save_IFS
3471  if test -z "$ac_cv_path_GREP"; then
3472    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3473  fi
3474else
3475  ac_cv_path_GREP=$GREP
3476fi
3477
3478fi
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3480$as_echo "$ac_cv_path_GREP" >&6; }
3481 GREP="$ac_cv_path_GREP"
3482
3483
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3485$as_echo_n "checking for egrep... " >&6; }
3486if ${ac_cv_path_EGREP+:} false; then :
3487  $as_echo_n "(cached) " >&6
3488else
3489  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3490   then ac_cv_path_EGREP="$GREP -E"
3491   else
3492     if test -z "$EGREP"; then
3493  ac_path_EGREP_found=false
3494  # Loop through the user's path and test for each of PROGNAME-LIST
3495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3497do
3498  IFS=$as_save_IFS
3499  test -z "$as_dir" && as_dir=.
3500    for ac_prog in egrep; do
3501    for ac_exec_ext in '' $ac_executable_extensions; do
3502      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3503      as_fn_executable_p "$ac_path_EGREP" || continue
3504# Check for GNU ac_path_EGREP and select it if it is found.
3505  # Check for GNU $ac_path_EGREP
3506case `"$ac_path_EGREP" --version 2>&1` in
3507*GNU*)
3508  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3509*)
3510  ac_count=0
3511  $as_echo_n 0123456789 >"conftest.in"
3512  while :
3513  do
3514    cat "conftest.in" "conftest.in" >"conftest.tmp"
3515    mv "conftest.tmp" "conftest.in"
3516    cp "conftest.in" "conftest.nl"
3517    $as_echo 'EGREP' >> "conftest.nl"
3518    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3519    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3520    as_fn_arith $ac_count + 1 && ac_count=$as_val
3521    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3522      # Best one so far, save it but keep looking for a better one
3523      ac_cv_path_EGREP="$ac_path_EGREP"
3524      ac_path_EGREP_max=$ac_count
3525    fi
3526    # 10*(2^10) chars as input seems more than enough
3527    test $ac_count -gt 10 && break
3528  done
3529  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3530esac
3531
3532      $ac_path_EGREP_found && break 3
3533    done
3534  done
3535  done
3536IFS=$as_save_IFS
3537  if test -z "$ac_cv_path_EGREP"; then
3538    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3539  fi
3540else
3541  ac_cv_path_EGREP=$EGREP
3542fi
3543
3544   fi
3545fi
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3547$as_echo "$ac_cv_path_EGREP" >&6; }
3548 EGREP="$ac_cv_path_EGREP"
3549
3550
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3552$as_echo_n "checking for fgrep... " >&6; }
3553if ${ac_cv_path_FGREP+:} false; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3557   then ac_cv_path_FGREP="$GREP -F"
3558   else
3559     if test -z "$FGREP"; then
3560  ac_path_FGREP_found=false
3561  # Loop through the user's path and test for each of PROGNAME-LIST
3562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3564do
3565  IFS=$as_save_IFS
3566  test -z "$as_dir" && as_dir=.
3567    for ac_prog in fgrep; do
3568    for ac_exec_ext in '' $ac_executable_extensions; do
3569      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3570      as_fn_executable_p "$ac_path_FGREP" || continue
3571# Check for GNU ac_path_FGREP and select it if it is found.
3572  # Check for GNU $ac_path_FGREP
3573case `"$ac_path_FGREP" --version 2>&1` in
3574*GNU*)
3575  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3576*)
3577  ac_count=0
3578  $as_echo_n 0123456789 >"conftest.in"
3579  while :
3580  do
3581    cat "conftest.in" "conftest.in" >"conftest.tmp"
3582    mv "conftest.tmp" "conftest.in"
3583    cp "conftest.in" "conftest.nl"
3584    $as_echo 'FGREP' >> "conftest.nl"
3585    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3586    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3587    as_fn_arith $ac_count + 1 && ac_count=$as_val
3588    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3589      # Best one so far, save it but keep looking for a better one
3590      ac_cv_path_FGREP="$ac_path_FGREP"
3591      ac_path_FGREP_max=$ac_count
3592    fi
3593    # 10*(2^10) chars as input seems more than enough
3594    test $ac_count -gt 10 && break
3595  done
3596  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3597esac
3598
3599      $ac_path_FGREP_found && break 3
3600    done
3601  done
3602  done
3603IFS=$as_save_IFS
3604  if test -z "$ac_cv_path_FGREP"; then
3605    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3606  fi
3607else
3608  ac_cv_path_FGREP=$FGREP
3609fi
3610
3611   fi
3612fi
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3614$as_echo "$ac_cv_path_FGREP" >&6; }
3615 FGREP="$ac_cv_path_FGREP"
3616
3617
3618test -z "$GREP" && GREP=grep
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638# Check whether --with-gnu-ld was given.
3639if test "${with_gnu_ld+set}" = set; then :
3640  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3641else
3642  with_gnu_ld=no
3643fi
3644
3645ac_prog=ld
3646if test "$GCC" = yes; then
3647  # Check if gcc -print-prog-name=ld gives a path.
3648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3649$as_echo_n "checking for ld used by $CC... " >&6; }
3650  case $host in
3651  *-*-mingw*)
3652    # gcc leaves a trailing carriage return which upsets mingw
3653    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3654  *)
3655    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3656  esac
3657  case $ac_prog in
3658    # Accept absolute paths.
3659    [\\/]* | ?:[\\/]*)
3660      re_direlt='/[^/][^/]*/\.\./'
3661      # Canonicalize the pathname of ld
3662      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3663      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3664	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3665      done
3666      test -z "$LD" && LD="$ac_prog"
3667      ;;
3668  "")
3669    # If it fails, then pretend we aren't using GCC.
3670    ac_prog=ld
3671    ;;
3672  *)
3673    # If it is relative, then search for the first ld in PATH.
3674    with_gnu_ld=unknown
3675    ;;
3676  esac
3677elif test "$with_gnu_ld" = yes; then
3678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3679$as_echo_n "checking for GNU ld... " >&6; }
3680else
3681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3682$as_echo_n "checking for non-GNU ld... " >&6; }
3683fi
3684if ${lt_cv_path_LD+:} false; then :
3685  $as_echo_n "(cached) " >&6
3686else
3687  if test -z "$LD"; then
3688  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3689  for ac_dir in $PATH; do
3690    IFS="$lt_save_ifs"
3691    test -z "$ac_dir" && ac_dir=.
3692    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3693      lt_cv_path_LD="$ac_dir/$ac_prog"
3694      # Check to see if the program is GNU ld.  I'd rather use --version,
3695      # but apparently some variants of GNU ld only accept -v.
3696      # Break only if it was the GNU/non-GNU ld that we prefer.
3697      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3698      *GNU* | *'with BFD'*)
3699	test "$with_gnu_ld" != no && break
3700	;;
3701      *)
3702	test "$with_gnu_ld" != yes && break
3703	;;
3704      esac
3705    fi
3706  done
3707  IFS="$lt_save_ifs"
3708else
3709  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3710fi
3711fi
3712
3713LD="$lt_cv_path_LD"
3714if test -n "$LD"; then
3715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3716$as_echo "$LD" >&6; }
3717else
3718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719$as_echo "no" >&6; }
3720fi
3721test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3723$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3724if ${lt_cv_prog_gnu_ld+:} false; then :
3725  $as_echo_n "(cached) " >&6
3726else
3727  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3728case `$LD -v 2>&1 </dev/null` in
3729*GNU* | *'with BFD'*)
3730  lt_cv_prog_gnu_ld=yes
3731  ;;
3732*)
3733  lt_cv_prog_gnu_ld=no
3734  ;;
3735esac
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3738$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3739with_gnu_ld=$lt_cv_prog_gnu_ld
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3750$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3751if ${lt_cv_path_NM+:} false; then :
3752  $as_echo_n "(cached) " >&6
3753else
3754  if test -n "$NM"; then
3755  # Let the user override the test.
3756  lt_cv_path_NM="$NM"
3757else
3758  lt_nm_to_check="${ac_tool_prefix}nm"
3759  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3760    lt_nm_to_check="$lt_nm_to_check nm"
3761  fi
3762  for lt_tmp_nm in $lt_nm_to_check; do
3763    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3764    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3765      IFS="$lt_save_ifs"
3766      test -z "$ac_dir" && ac_dir=.
3767      tmp_nm="$ac_dir/$lt_tmp_nm"
3768      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3769	# Check to see if the nm accepts a BSD-compat flag.
3770	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3771	#   nm: unknown option "B" ignored
3772	# Tru64's nm complains that /dev/null is an invalid object file
3773	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3774	*/dev/null* | *'Invalid file or object type'*)
3775	  lt_cv_path_NM="$tmp_nm -B"
3776	  break
3777	  ;;
3778	*)
3779	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3780	  */dev/null*)
3781	    lt_cv_path_NM="$tmp_nm -p"
3782	    break
3783	    ;;
3784	  *)
3785	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3786	    continue # so that we can try to find one that supports BSD flags
3787	    ;;
3788	  esac
3789	  ;;
3790	esac
3791      fi
3792    done
3793    IFS="$lt_save_ifs"
3794  done
3795  : ${lt_cv_path_NM=no}
3796fi
3797fi
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3799$as_echo "$lt_cv_path_NM" >&6; }
3800if test "$lt_cv_path_NM" != "no"; then
3801  NM="$lt_cv_path_NM"
3802else
3803  # Didn't find any BSD compatible name lister, look for dumpbin.
3804  if test -n "$ac_tool_prefix"; then
3805  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3806  do
3807    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810$as_echo_n "checking for $ac_word... " >&6; }
3811if ${ac_cv_prog_DUMPBIN+:} false; then :
3812  $as_echo_n "(cached) " >&6
3813else
3814  if test -n "$DUMPBIN"; then
3815  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3816else
3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818for as_dir in $PATH
3819do
3820  IFS=$as_save_IFS
3821  test -z "$as_dir" && as_dir=.
3822    for ac_exec_ext in '' $ac_executable_extensions; do
3823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826    break 2
3827  fi
3828done
3829  done
3830IFS=$as_save_IFS
3831
3832fi
3833fi
3834DUMPBIN=$ac_cv_prog_DUMPBIN
3835if test -n "$DUMPBIN"; then
3836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3837$as_echo "$DUMPBIN" >&6; }
3838else
3839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840$as_echo "no" >&6; }
3841fi
3842
3843
3844    test -n "$DUMPBIN" && break
3845  done
3846fi
3847if test -z "$DUMPBIN"; then
3848  ac_ct_DUMPBIN=$DUMPBIN
3849  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3850do
3851  # Extract the first word of "$ac_prog", so it can be a program name with args.
3852set dummy $ac_prog; ac_word=$2
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854$as_echo_n "checking for $ac_word... " >&6; }
3855if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3856  $as_echo_n "(cached) " >&6
3857else
3858  if test -n "$ac_ct_DUMPBIN"; then
3859  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864  IFS=$as_save_IFS
3865  test -z "$as_dir" && as_dir=.
3866    for ac_exec_ext in '' $ac_executable_extensions; do
3867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870    break 2
3871  fi
3872done
3873  done
3874IFS=$as_save_IFS
3875
3876fi
3877fi
3878ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3879if test -n "$ac_ct_DUMPBIN"; then
3880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3881$as_echo "$ac_ct_DUMPBIN" >&6; }
3882else
3883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
3885fi
3886
3887
3888  test -n "$ac_ct_DUMPBIN" && break
3889done
3890
3891  if test "x$ac_ct_DUMPBIN" = x; then
3892    DUMPBIN=":"
3893  else
3894    case $cross_compiling:$ac_tool_warned in
3895yes:)
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3898ac_tool_warned=yes ;;
3899esac
3900    DUMPBIN=$ac_ct_DUMPBIN
3901  fi
3902fi
3903
3904
3905  if test "$DUMPBIN" != ":"; then
3906    NM="$DUMPBIN"
3907  fi
3908fi
3909test -z "$NM" && NM=nm
3910
3911
3912
3913
3914
3915
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3917$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3918if ${lt_cv_nm_interface+:} false; then :
3919  $as_echo_n "(cached) " >&6
3920else
3921  lt_cv_nm_interface="BSD nm"
3922  echo "int some_variable = 0;" > conftest.$ac_ext
3923  (eval echo "\"\$as_me:3923: $ac_compile\"" >&5)
3924  (eval "$ac_compile" 2>conftest.err)
3925  cat conftest.err >&5
3926  (eval echo "\"\$as_me:3926: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3927  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3928  cat conftest.err >&5
3929  (eval echo "\"\$as_me:3929: output\"" >&5)
3930  cat conftest.out >&5
3931  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3932    lt_cv_nm_interface="MS dumpbin"
3933  fi
3934  rm -f conftest*
3935fi
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3937$as_echo "$lt_cv_nm_interface" >&6; }
3938
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3940$as_echo_n "checking whether ln -s works... " >&6; }
3941LN_S=$as_ln_s
3942if test "$LN_S" = "ln -s"; then
3943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3944$as_echo "yes" >&6; }
3945else
3946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3947$as_echo "no, using $LN_S" >&6; }
3948fi
3949
3950# find the maximum length of command line arguments
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3952$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3953if ${lt_cv_sys_max_cmd_len+:} false; then :
3954  $as_echo_n "(cached) " >&6
3955else
3956    i=0
3957  teststring="ABCD"
3958
3959  case $build_os in
3960  msdosdjgpp*)
3961    # On DJGPP, this test can blow up pretty badly due to problems in libc
3962    # (any single argument exceeding 2000 bytes causes a buffer overrun
3963    # during glob expansion).  Even if it were fixed, the result of this
3964    # check would be larger than it should be.
3965    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3966    ;;
3967
3968  gnu*)
3969    # Under GNU Hurd, this test is not required because there is
3970    # no limit to the length of command line arguments.
3971    # Libtool will interpret -1 as no limit whatsoever
3972    lt_cv_sys_max_cmd_len=-1;
3973    ;;
3974
3975  cygwin* | mingw* | cegcc*)
3976    # On Win9x/ME, this test blows up -- it succeeds, but takes
3977    # about 5 minutes as the teststring grows exponentially.
3978    # Worse, since 9x/ME are not pre-emptively multitasking,
3979    # you end up with a "frozen" computer, even though with patience
3980    # the test eventually succeeds (with a max line length of 256k).
3981    # Instead, let's just punt: use the minimum linelength reported by
3982    # all of the supported platforms: 8192 (on NT/2K/XP).
3983    lt_cv_sys_max_cmd_len=8192;
3984    ;;
3985
3986  amigaos*)
3987    # On AmigaOS with pdksh, this test takes hours, literally.
3988    # So we just punt and use a minimum line length of 8192.
3989    lt_cv_sys_max_cmd_len=8192;
3990    ;;
3991
3992  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3993    # This has been around since 386BSD, at least.  Likely further.
3994    if test -x /sbin/sysctl; then
3995      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3996    elif test -x /usr/sbin/sysctl; then
3997      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3998    else
3999      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4000    fi
4001    # And add a safety zone
4002    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4003    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4004    ;;
4005
4006  interix*)
4007    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4008    lt_cv_sys_max_cmd_len=196608
4009    ;;
4010
4011  osf*)
4012    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4013    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4014    # nice to cause kernel panics so lets avoid the loop below.
4015    # First set a reasonable default.
4016    lt_cv_sys_max_cmd_len=16384
4017    #
4018    if test -x /sbin/sysconfig; then
4019      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4020        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4021      esac
4022    fi
4023    ;;
4024  sco3.2v5*)
4025    lt_cv_sys_max_cmd_len=102400
4026    ;;
4027  sysv5* | sco5v6* | sysv4.2uw2*)
4028    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4029    if test -n "$kargmax"; then
4030      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4031    else
4032      lt_cv_sys_max_cmd_len=32768
4033    fi
4034    ;;
4035  *)
4036    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4037    if test -n "$lt_cv_sys_max_cmd_len"; then
4038      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4039      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4040    else
4041      # Make teststring a little bigger before we do anything with it.
4042      # a 1K string should be a reasonable start.
4043      for i in 1 2 3 4 5 6 7 8 ; do
4044        teststring=$teststring$teststring
4045      done
4046      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4047      # If test is not a shell built-in, we'll probably end up computing a
4048      # maximum length that is only half of the actual maximum length, but
4049      # we can't tell.
4050      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4051	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4052	      test $i != 17 # 1/2 MB should be enough
4053      do
4054        i=`expr $i + 1`
4055        teststring=$teststring$teststring
4056      done
4057      # Only check the string length outside the loop.
4058      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4059      teststring=
4060      # Add a significant safety factor because C++ compilers can tack on
4061      # massive amounts of additional arguments before passing them to the
4062      # linker.  It appears as though 1/2 is a usable value.
4063      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4064    fi
4065    ;;
4066  esac
4067
4068fi
4069
4070if test -n $lt_cv_sys_max_cmd_len ; then
4071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4072$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4073else
4074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4075$as_echo "none" >&6; }
4076fi
4077max_cmd_len=$lt_cv_sys_max_cmd_len
4078
4079
4080
4081
4082
4083
4084: ${CP="cp -f"}
4085: ${MV="mv -f"}
4086: ${RM="rm -f"}
4087
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4089$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4090# Try some XSI features
4091xsi_shell=no
4092( _lt_dummy="a/b/c"
4093  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4094      = c,a/b,, \
4095    && eval 'test $(( 1 + 1 )) -eq 2 \
4096    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4097  && xsi_shell=yes
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4099$as_echo "$xsi_shell" >&6; }
4100
4101
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4103$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4104lt_shell_append=no
4105( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4106    >/dev/null 2>&1 \
4107  && lt_shell_append=yes
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4109$as_echo "$lt_shell_append" >&6; }
4110
4111
4112if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4113  lt_unset=unset
4114else
4115  lt_unset=false
4116fi
4117
4118
4119
4120
4121
4122# test EBCDIC or ASCII
4123case `echo X|tr X '\101'` in
4124 A) # ASCII based system
4125    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4126  lt_SP2NL='tr \040 \012'
4127  lt_NL2SP='tr \015\012 \040\040'
4128  ;;
4129 *) # EBCDIC based system
4130  lt_SP2NL='tr \100 \n'
4131  lt_NL2SP='tr \r\n \100\100'
4132  ;;
4133esac
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4144$as_echo_n "checking for $LD option to reload object files... " >&6; }
4145if ${lt_cv_ld_reload_flag+:} false; then :
4146  $as_echo_n "(cached) " >&6
4147else
4148  lt_cv_ld_reload_flag='-r'
4149fi
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4151$as_echo "$lt_cv_ld_reload_flag" >&6; }
4152reload_flag=$lt_cv_ld_reload_flag
4153case $reload_flag in
4154"" | " "*) ;;
4155*) reload_flag=" $reload_flag" ;;
4156esac
4157reload_cmds='$LD$reload_flag -o $output$reload_objs'
4158case $host_os in
4159  darwin*)
4160    if test "$GCC" = yes; then
4161      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4162    else
4163      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4164    fi
4165    ;;
4166esac
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176if test -n "$ac_tool_prefix"; then
4177  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4178set dummy ${ac_tool_prefix}objdump; ac_word=$2
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180$as_echo_n "checking for $ac_word... " >&6; }
4181if ${ac_cv_prog_OBJDUMP+:} false; then :
4182  $as_echo_n "(cached) " >&6
4183else
4184  if test -n "$OBJDUMP"; then
4185  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4186else
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190  IFS=$as_save_IFS
4191  test -z "$as_dir" && as_dir=.
4192    for ac_exec_ext in '' $ac_executable_extensions; do
4193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196    break 2
4197  fi
4198done
4199  done
4200IFS=$as_save_IFS
4201
4202fi
4203fi
4204OBJDUMP=$ac_cv_prog_OBJDUMP
4205if test -n "$OBJDUMP"; then
4206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4207$as_echo "$OBJDUMP" >&6; }
4208else
4209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210$as_echo "no" >&6; }
4211fi
4212
4213
4214fi
4215if test -z "$ac_cv_prog_OBJDUMP"; then
4216  ac_ct_OBJDUMP=$OBJDUMP
4217  # Extract the first word of "objdump", so it can be a program name with args.
4218set dummy objdump; ac_word=$2
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220$as_echo_n "checking for $ac_word... " >&6; }
4221if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4222  $as_echo_n "(cached) " >&6
4223else
4224  if test -n "$ac_ct_OBJDUMP"; then
4225  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4226else
4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH
4229do
4230  IFS=$as_save_IFS
4231  test -z "$as_dir" && as_dir=.
4232    for ac_exec_ext in '' $ac_executable_extensions; do
4233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4234    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236    break 2
4237  fi
4238done
4239  done
4240IFS=$as_save_IFS
4241
4242fi
4243fi
4244ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4245if test -n "$ac_ct_OBJDUMP"; then
4246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4247$as_echo "$ac_ct_OBJDUMP" >&6; }
4248else
4249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250$as_echo "no" >&6; }
4251fi
4252
4253  if test "x$ac_ct_OBJDUMP" = x; then
4254    OBJDUMP="false"
4255  else
4256    case $cross_compiling:$ac_tool_warned in
4257yes:)
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4260ac_tool_warned=yes ;;
4261esac
4262    OBJDUMP=$ac_ct_OBJDUMP
4263  fi
4264else
4265  OBJDUMP="$ac_cv_prog_OBJDUMP"
4266fi
4267
4268test -z "$OBJDUMP" && OBJDUMP=objdump
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4279$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4280if ${lt_cv_deplibs_check_method+:} false; then :
4281  $as_echo_n "(cached) " >&6
4282else
4283  lt_cv_file_magic_cmd='$MAGIC_CMD'
4284lt_cv_file_magic_test_file=
4285lt_cv_deplibs_check_method='unknown'
4286# Need to set the preceding variable on all platforms that support
4287# interlibrary dependencies.
4288# 'none' -- dependencies not supported.
4289# `unknown' -- same as none, but documents that we really don't know.
4290# 'pass_all' -- all dependencies passed with no checks.
4291# 'test_compile' -- check by making test program.
4292# 'file_magic [[regex]]' -- check by looking for files in library path
4293# which responds to the $file_magic_cmd with a given extended regex.
4294# If you have `file' or equivalent on your system and you're not sure
4295# whether `pass_all' will *always* work, you probably want this one.
4296
4297case $host_os in
4298aix[4-9]*)
4299  lt_cv_deplibs_check_method=pass_all
4300  ;;
4301
4302beos*)
4303  lt_cv_deplibs_check_method=pass_all
4304  ;;
4305
4306bsdi[45]*)
4307  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4308  lt_cv_file_magic_cmd='/usr/bin/file -L'
4309  lt_cv_file_magic_test_file=/shlib/libc.so
4310  ;;
4311
4312cygwin*)
4313  # func_win32_libid is a shell function defined in ltmain.sh
4314  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4315  lt_cv_file_magic_cmd='func_win32_libid'
4316  ;;
4317
4318mingw* | pw32*)
4319  # Base MSYS/MinGW do not provide the 'file' command needed by
4320  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4321  # unless we find 'file', for example because we are cross-compiling.
4322  if ( file / ) >/dev/null 2>&1; then
4323    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4324    lt_cv_file_magic_cmd='func_win32_libid'
4325  else
4326    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4327    lt_cv_file_magic_cmd='$OBJDUMP -f'
4328  fi
4329  ;;
4330
4331cegcc)
4332  # use the weaker test based on 'objdump'. See mingw*.
4333  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4334  lt_cv_file_magic_cmd='$OBJDUMP -f'
4335  ;;
4336
4337darwin* | rhapsody*)
4338  lt_cv_deplibs_check_method=pass_all
4339  ;;
4340
4341freebsd* | dragonfly*)
4342  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4343    case $host_cpu in
4344    i*86 )
4345      # Not sure whether the presence of OpenBSD here was a mistake.
4346      # Let's accept both of them until this is cleared up.
4347      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4348      lt_cv_file_magic_cmd=/usr/bin/file
4349      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4350      ;;
4351    esac
4352  else
4353    lt_cv_deplibs_check_method=pass_all
4354  fi
4355  ;;
4356
4357gnu*)
4358  lt_cv_deplibs_check_method=pass_all
4359  ;;
4360
4361hpux10.20* | hpux11*)
4362  lt_cv_file_magic_cmd=/usr/bin/file
4363  case $host_cpu in
4364  ia64*)
4365    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4366    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4367    ;;
4368  hppa*64*)
4369    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]'
4370    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4371    ;;
4372  *)
4373    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4374    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4375    ;;
4376  esac
4377  ;;
4378
4379interix[3-9]*)
4380  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4381  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4382  ;;
4383
4384irix5* | irix6* | nonstopux*)
4385  case $LD in
4386  *-32|*"-32 ") libmagic=32-bit;;
4387  *-n32|*"-n32 ") libmagic=N32;;
4388  *-64|*"-64 ") libmagic=64-bit;;
4389  *) libmagic=never-match;;
4390  esac
4391  lt_cv_deplibs_check_method=pass_all
4392  ;;
4393
4394# This must be Linux ELF.
4395linux* | k*bsd*-gnu)
4396  lt_cv_deplibs_check_method=pass_all
4397  ;;
4398
4399netbsd*)
4400  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4401    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4402  else
4403    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4404  fi
4405  ;;
4406
4407newos6*)
4408  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4409  lt_cv_file_magic_cmd=/usr/bin/file
4410  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4411  ;;
4412
4413*nto* | *qnx*)
4414  lt_cv_deplibs_check_method=pass_all
4415  ;;
4416
4417openbsd*)
4418  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4419    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4420  else
4421    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4422  fi
4423  ;;
4424
4425osf3* | osf4* | osf5*)
4426  lt_cv_deplibs_check_method=pass_all
4427  ;;
4428
4429rdos*)
4430  lt_cv_deplibs_check_method=pass_all
4431  ;;
4432
4433solaris*)
4434  lt_cv_deplibs_check_method=pass_all
4435  ;;
4436
4437sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4438  lt_cv_deplibs_check_method=pass_all
4439  ;;
4440
4441sysv4 | sysv4.3*)
4442  case $host_vendor in
4443  motorola)
4444    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]'
4445    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4446    ;;
4447  ncr)
4448    lt_cv_deplibs_check_method=pass_all
4449    ;;
4450  sequent)
4451    lt_cv_file_magic_cmd='/bin/file'
4452    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4453    ;;
4454  sni)
4455    lt_cv_file_magic_cmd='/bin/file'
4456    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4457    lt_cv_file_magic_test_file=/lib/libc.so
4458    ;;
4459  siemens)
4460    lt_cv_deplibs_check_method=pass_all
4461    ;;
4462  pc)
4463    lt_cv_deplibs_check_method=pass_all
4464    ;;
4465  esac
4466  ;;
4467
4468tpf*)
4469  lt_cv_deplibs_check_method=pass_all
4470  ;;
4471esac
4472
4473fi
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4475$as_echo "$lt_cv_deplibs_check_method" >&6; }
4476file_magic_cmd=$lt_cv_file_magic_cmd
4477deplibs_check_method=$lt_cv_deplibs_check_method
4478test -z "$deplibs_check_method" && deplibs_check_method=unknown
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491if test -n "$ac_tool_prefix"; then
4492  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4493set dummy ${ac_tool_prefix}ar; ac_word=$2
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495$as_echo_n "checking for $ac_word... " >&6; }
4496if ${ac_cv_prog_AR+:} false; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  if test -n "$AR"; then
4500  ac_cv_prog_AR="$AR" # Let the user override the test.
4501else
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505  IFS=$as_save_IFS
4506  test -z "$as_dir" && as_dir=.
4507    for ac_exec_ext in '' $ac_executable_extensions; do
4508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509    ac_cv_prog_AR="${ac_tool_prefix}ar"
4510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511    break 2
4512  fi
4513done
4514  done
4515IFS=$as_save_IFS
4516
4517fi
4518fi
4519AR=$ac_cv_prog_AR
4520if test -n "$AR"; then
4521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4522$as_echo "$AR" >&6; }
4523else
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525$as_echo "no" >&6; }
4526fi
4527
4528
4529fi
4530if test -z "$ac_cv_prog_AR"; then
4531  ac_ct_AR=$AR
4532  # Extract the first word of "ar", so it can be a program name with args.
4533set dummy ar; ac_word=$2
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535$as_echo_n "checking for $ac_word... " >&6; }
4536if ${ac_cv_prog_ac_ct_AR+:} false; then :
4537  $as_echo_n "(cached) " >&6
4538else
4539  if test -n "$ac_ct_AR"; then
4540  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4541else
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545  IFS=$as_save_IFS
4546  test -z "$as_dir" && as_dir=.
4547    for ac_exec_ext in '' $ac_executable_extensions; do
4548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549    ac_cv_prog_ac_ct_AR="ar"
4550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551    break 2
4552  fi
4553done
4554  done
4555IFS=$as_save_IFS
4556
4557fi
4558fi
4559ac_ct_AR=$ac_cv_prog_ac_ct_AR
4560if test -n "$ac_ct_AR"; then
4561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4562$as_echo "$ac_ct_AR" >&6; }
4563else
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565$as_echo "no" >&6; }
4566fi
4567
4568  if test "x$ac_ct_AR" = x; then
4569    AR="false"
4570  else
4571    case $cross_compiling:$ac_tool_warned in
4572yes:)
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4575ac_tool_warned=yes ;;
4576esac
4577    AR=$ac_ct_AR
4578  fi
4579else
4580  AR="$ac_cv_prog_AR"
4581fi
4582
4583test -z "$AR" && AR=ar
4584test -z "$AR_FLAGS" && AR_FLAGS=cru
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596if test -n "$ac_tool_prefix"; then
4597  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4598set dummy ${ac_tool_prefix}strip; ac_word=$2
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600$as_echo_n "checking for $ac_word... " >&6; }
4601if ${ac_cv_prog_STRIP+:} false; then :
4602  $as_echo_n "(cached) " >&6
4603else
4604  if test -n "$STRIP"; then
4605  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610  IFS=$as_save_IFS
4611  test -z "$as_dir" && as_dir=.
4612    for ac_exec_ext in '' $ac_executable_extensions; do
4613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616    break 2
4617  fi
4618done
4619  done
4620IFS=$as_save_IFS
4621
4622fi
4623fi
4624STRIP=$ac_cv_prog_STRIP
4625if test -n "$STRIP"; then
4626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4627$as_echo "$STRIP" >&6; }
4628else
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630$as_echo "no" >&6; }
4631fi
4632
4633
4634fi
4635if test -z "$ac_cv_prog_STRIP"; then
4636  ac_ct_STRIP=$STRIP
4637  # Extract the first word of "strip", so it can be a program name with args.
4638set dummy strip; ac_word=$2
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640$as_echo_n "checking for $ac_word... " >&6; }
4641if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4642  $as_echo_n "(cached) " >&6
4643else
4644  if test -n "$ac_ct_STRIP"; then
4645  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650  IFS=$as_save_IFS
4651  test -z "$as_dir" && as_dir=.
4652    for ac_exec_ext in '' $ac_executable_extensions; do
4653  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654    ac_cv_prog_ac_ct_STRIP="strip"
4655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656    break 2
4657  fi
4658done
4659  done
4660IFS=$as_save_IFS
4661
4662fi
4663fi
4664ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4665if test -n "$ac_ct_STRIP"; then
4666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4667$as_echo "$ac_ct_STRIP" >&6; }
4668else
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
4671fi
4672
4673  if test "x$ac_ct_STRIP" = x; then
4674    STRIP=":"
4675  else
4676    case $cross_compiling:$ac_tool_warned in
4677yes:)
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680ac_tool_warned=yes ;;
4681esac
4682    STRIP=$ac_ct_STRIP
4683  fi
4684else
4685  STRIP="$ac_cv_prog_STRIP"
4686fi
4687
4688test -z "$STRIP" && STRIP=:
4689
4690
4691
4692
4693
4694
4695if test -n "$ac_tool_prefix"; then
4696  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4697set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if ${ac_cv_prog_RANLIB+:} false; then :
4701  $as_echo_n "(cached) " >&6
4702else
4703  if test -n "$RANLIB"; then
4704  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4705else
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709  IFS=$as_save_IFS
4710  test -z "$as_dir" && as_dir=.
4711    for ac_exec_ext in '' $ac_executable_extensions; do
4712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715    break 2
4716  fi
4717done
4718  done
4719IFS=$as_save_IFS
4720
4721fi
4722fi
4723RANLIB=$ac_cv_prog_RANLIB
4724if test -n "$RANLIB"; then
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4726$as_echo "$RANLIB" >&6; }
4727else
4728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729$as_echo "no" >&6; }
4730fi
4731
4732
4733fi
4734if test -z "$ac_cv_prog_RANLIB"; then
4735  ac_ct_RANLIB=$RANLIB
4736  # Extract the first word of "ranlib", so it can be a program name with args.
4737set dummy ranlib; ac_word=$2
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739$as_echo_n "checking for $ac_word... " >&6; }
4740if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4741  $as_echo_n "(cached) " >&6
4742else
4743  if test -n "$ac_ct_RANLIB"; then
4744  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4745else
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749  IFS=$as_save_IFS
4750  test -z "$as_dir" && as_dir=.
4751    for ac_exec_ext in '' $ac_executable_extensions; do
4752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753    ac_cv_prog_ac_ct_RANLIB="ranlib"
4754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755    break 2
4756  fi
4757done
4758  done
4759IFS=$as_save_IFS
4760
4761fi
4762fi
4763ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4764if test -n "$ac_ct_RANLIB"; then
4765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4766$as_echo "$ac_ct_RANLIB" >&6; }
4767else
4768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769$as_echo "no" >&6; }
4770fi
4771
4772  if test "x$ac_ct_RANLIB" = x; then
4773    RANLIB=":"
4774  else
4775    case $cross_compiling:$ac_tool_warned in
4776yes:)
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4779ac_tool_warned=yes ;;
4780esac
4781    RANLIB=$ac_ct_RANLIB
4782  fi
4783else
4784  RANLIB="$ac_cv_prog_RANLIB"
4785fi
4786
4787test -z "$RANLIB" && RANLIB=:
4788
4789
4790
4791
4792
4793
4794# Determine commands to create old-style static archives.
4795old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4796old_postinstall_cmds='chmod 644 $oldlib'
4797old_postuninstall_cmds=
4798
4799if test -n "$RANLIB"; then
4800  case $host_os in
4801  openbsd*)
4802    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4803    ;;
4804  *)
4805    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4806    ;;
4807  esac
4808  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4809fi
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844# If no C compiler was specified, use CC.
4845LTCC=${LTCC-"$CC"}
4846
4847# If no C compiler flags were specified, use CFLAGS.
4848LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4849
4850# Allow CC to be a program name with arguments.
4851compiler=$CC
4852
4853
4854# Check for command to grab the raw symbol name followed by C symbol from nm.
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4856$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4857if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4858  $as_echo_n "(cached) " >&6
4859else
4860
4861# These are sane defaults that work on at least a few old systems.
4862# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4863
4864# Character class describing NM global symbol codes.
4865symcode='[BCDEGRST]'
4866
4867# Regexp to match symbols that can be accessed directly from C.
4868sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4869
4870# Define system-specific variables.
4871case $host_os in
4872aix*)
4873  symcode='[BCDT]'
4874  ;;
4875cygwin* | mingw* | pw32* | cegcc*)
4876  symcode='[ABCDGISTW]'
4877  ;;
4878hpux*)
4879  if test "$host_cpu" = ia64; then
4880    symcode='[ABCDEGRST]'
4881  fi
4882  ;;
4883irix* | nonstopux*)
4884  symcode='[BCDEGRST]'
4885  ;;
4886osf*)
4887  symcode='[BCDEGQRST]'
4888  ;;
4889solaris*)
4890  symcode='[BDRT]'
4891  ;;
4892sco3.2v5*)
4893  symcode='[DT]'
4894  ;;
4895sysv4.2uw2*)
4896  symcode='[DT]'
4897  ;;
4898sysv5* | sco5v6* | unixware* | OpenUNIX*)
4899  symcode='[ABDT]'
4900  ;;
4901sysv4)
4902  symcode='[DFNSTU]'
4903  ;;
4904esac
4905
4906# If we're using GNU nm, then use its standard symbol codes.
4907case `$NM -V 2>&1` in
4908*GNU* | *'with BFD'*)
4909  symcode='[ABCDGIRSTW]' ;;
4910esac
4911
4912# Transform an extracted symbol line into a proper C declaration.
4913# Some systems (esp. on ia64) link data and code symbols differently,
4914# so use this general approach.
4915lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4916
4917# Transform an extracted symbol line into symbol name and symbol address
4918lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4919lt_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'"
4920
4921# Handle CRLF in mingw tool chain
4922opt_cr=
4923case $build_os in
4924mingw*)
4925  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4926  ;;
4927esac
4928
4929# Try without a prefix underscore, then with it.
4930for ac_symprfx in "" "_"; do
4931
4932  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4933  symxfrm="\\1 $ac_symprfx\\2 \\2"
4934
4935  # Write the raw and C identifiers.
4936  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4937    # Fake it for dumpbin and say T for any non-static function
4938    # and D for any global variable.
4939    # Also find C++ and __fastcall symbols from MSVC++,
4940    # which start with @ or ?.
4941    lt_cv_sys_global_symbol_pipe="$AWK '"\
4942"     {last_section=section; section=\$ 3};"\
4943"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4944"     \$ 0!~/External *\|/{next};"\
4945"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4946"     {if(hide[section]) next};"\
4947"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4948"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4949"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4950"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4951"     ' prfx=^$ac_symprfx"
4952  else
4953    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4954  fi
4955
4956  # Check to see that the pipe works correctly.
4957  pipe_works=no
4958
4959  rm -f conftest*
4960  cat > conftest.$ac_ext <<_LT_EOF
4961#ifdef __cplusplus
4962extern "C" {
4963#endif
4964char nm_test_var;
4965void nm_test_func(void);
4966void nm_test_func(void){}
4967#ifdef __cplusplus
4968}
4969#endif
4970int main(){nm_test_var='a';nm_test_func();return(0);}
4971_LT_EOF
4972
4973  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4974  (eval $ac_compile) 2>&5
4975  ac_status=$?
4976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4977  test $ac_status = 0; }; then
4978    # Now try to grab the symbols.
4979    nlist=conftest.nm
4980    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4981  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4982  ac_status=$?
4983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984  test $ac_status = 0; } && test -s "$nlist"; then
4985      # Try sorting and uniquifying the output.
4986      if sort "$nlist" | uniq > "$nlist"T; then
4987	mv -f "$nlist"T "$nlist"
4988      else
4989	rm -f "$nlist"T
4990      fi
4991
4992      # Make sure that we snagged all the symbols we need.
4993      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4994	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4995	  cat <<_LT_EOF > conftest.$ac_ext
4996#ifdef __cplusplus
4997extern "C" {
4998#endif
4999
5000_LT_EOF
5001	  # Now generate the symbol file.
5002	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5003
5004	  cat <<_LT_EOF >> conftest.$ac_ext
5005
5006/* The mapping between symbol names and symbols.  */
5007const struct {
5008  const char *name;
5009  void       *address;
5010}
5011lt__PROGRAM__LTX_preloaded_symbols[] =
5012{
5013  { "@PROGRAM@", (void *) 0 },
5014_LT_EOF
5015	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5016	  cat <<\_LT_EOF >> conftest.$ac_ext
5017  {0, (void *) 0}
5018};
5019
5020/* This works around a problem in FreeBSD linker */
5021#ifdef FREEBSD_WORKAROUND
5022static const void *lt_preloaded_setup() {
5023  return lt__PROGRAM__LTX_preloaded_symbols;
5024}
5025#endif
5026
5027#ifdef __cplusplus
5028}
5029#endif
5030_LT_EOF
5031	  # Now try linking the two files.
5032	  mv conftest.$ac_objext conftstm.$ac_objext
5033	  lt_save_LIBS="$LIBS"
5034	  lt_save_CFLAGS="$CFLAGS"
5035	  LIBS="conftstm.$ac_objext"
5036	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5037	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5038  (eval $ac_link) 2>&5
5039  ac_status=$?
5040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5041  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5042	    pipe_works=yes
5043	  fi
5044	  LIBS="$lt_save_LIBS"
5045	  CFLAGS="$lt_save_CFLAGS"
5046	else
5047	  echo "cannot find nm_test_func in $nlist" >&5
5048	fi
5049      else
5050	echo "cannot find nm_test_var in $nlist" >&5
5051      fi
5052    else
5053      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5054    fi
5055  else
5056    echo "$progname: failed program was:" >&5
5057    cat conftest.$ac_ext >&5
5058  fi
5059  rm -rf conftest* conftst*
5060
5061  # Do not use the global_symbol_pipe unless it works.
5062  if test "$pipe_works" = yes; then
5063    break
5064  else
5065    lt_cv_sys_global_symbol_pipe=
5066  fi
5067done
5068
5069fi
5070
5071if test -z "$lt_cv_sys_global_symbol_pipe"; then
5072  lt_cv_sys_global_symbol_to_cdecl=
5073fi
5074if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5076$as_echo "failed" >&6; }
5077else
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5079$as_echo "ok" >&6; }
5080fi
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104# Check whether --enable-libtool-lock was given.
5105if test "${enable_libtool_lock+set}" = set; then :
5106  enableval=$enable_libtool_lock;
5107fi
5108
5109test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5110
5111# Some flags need to be propagated to the compiler or linker for good
5112# libtool support.
5113case $host in
5114ia64-*-hpux*)
5115  # Find out which ABI we are using.
5116  echo 'int i;' > conftest.$ac_ext
5117  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5118  (eval $ac_compile) 2>&5
5119  ac_status=$?
5120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121  test $ac_status = 0; }; then
5122    case `/usr/bin/file conftest.$ac_objext` in
5123      *ELF-32*)
5124	HPUX_IA64_MODE="32"
5125	;;
5126      *ELF-64*)
5127	HPUX_IA64_MODE="64"
5128	;;
5129    esac
5130  fi
5131  rm -rf conftest*
5132  ;;
5133*-*-irix6*)
5134  # Find out which ABI we are using.
5135  echo '#line 5135 "configure"' > conftest.$ac_ext
5136  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5137  (eval $ac_compile) 2>&5
5138  ac_status=$?
5139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5140  test $ac_status = 0; }; then
5141    if test "$lt_cv_prog_gnu_ld" = yes; then
5142      case `/usr/bin/file conftest.$ac_objext` in
5143	*32-bit*)
5144	  LD="${LD-ld} -melf32bsmip"
5145	  ;;
5146	*N32*)
5147	  LD="${LD-ld} -melf32bmipn32"
5148	  ;;
5149	*64-bit*)
5150	  LD="${LD-ld} -melf64bmip"
5151	;;
5152      esac
5153    else
5154      case `/usr/bin/file conftest.$ac_objext` in
5155	*32-bit*)
5156	  LD="${LD-ld} -32"
5157	  ;;
5158	*N32*)
5159	  LD="${LD-ld} -n32"
5160	  ;;
5161	*64-bit*)
5162	  LD="${LD-ld} -64"
5163	  ;;
5164      esac
5165    fi
5166  fi
5167  rm -rf conftest*
5168  ;;
5169
5170x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5171s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5172  # Find out which ABI we are using.
5173  echo 'int i;' > conftest.$ac_ext
5174  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5175  (eval $ac_compile) 2>&5
5176  ac_status=$?
5177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5178  test $ac_status = 0; }; then
5179    case `/usr/bin/file conftest.o` in
5180      *32-bit*)
5181	case $host in
5182	  x86_64-*kfreebsd*-gnu)
5183	    LD="${LD-ld} -m elf_i386_fbsd"
5184	    ;;
5185	  x86_64-*linux*)
5186	    LD="${LD-ld} -m elf_i386"
5187	    ;;
5188	  ppc64-*linux*|powerpc64-*linux*)
5189	    LD="${LD-ld} -m elf32ppclinux"
5190	    ;;
5191	  s390x-*linux*)
5192	    LD="${LD-ld} -m elf_s390"
5193	    ;;
5194	  sparc64-*linux*)
5195	    LD="${LD-ld} -m elf32_sparc"
5196	    ;;
5197	esac
5198	;;
5199      *64-bit*)
5200	case $host in
5201	  x86_64-*kfreebsd*-gnu)
5202	    LD="${LD-ld} -m elf_x86_64_fbsd"
5203	    ;;
5204	  x86_64-*linux*)
5205	    LD="${LD-ld} -m elf_x86_64"
5206	    ;;
5207	  ppc*-*linux*|powerpc*-*linux*)
5208	    LD="${LD-ld} -m elf64ppc"
5209	    ;;
5210	  s390*-*linux*|s390*-*tpf*)
5211	    LD="${LD-ld} -m elf64_s390"
5212	    ;;
5213	  sparc*-*linux*)
5214	    LD="${LD-ld} -m elf64_sparc"
5215	    ;;
5216	esac
5217	;;
5218    esac
5219  fi
5220  rm -rf conftest*
5221  ;;
5222
5223*-*-sco3.2v5*)
5224  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5225  SAVE_CFLAGS="$CFLAGS"
5226  CFLAGS="$CFLAGS -belf"
5227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5228$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5229if ${lt_cv_cc_needs_belf+:} false; then :
5230  $as_echo_n "(cached) " >&6
5231else
5232  ac_ext=c
5233ac_cpp='$CPP $CPPFLAGS'
5234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236ac_compiler_gnu=$ac_cv_c_compiler_gnu
5237
5238     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239/* end confdefs.h.  */
5240
5241int
5242main ()
5243{
5244
5245  ;
5246  return 0;
5247}
5248_ACEOF
5249if ac_fn_c_try_link "$LINENO"; then :
5250  lt_cv_cc_needs_belf=yes
5251else
5252  lt_cv_cc_needs_belf=no
5253fi
5254rm -f core conftest.err conftest.$ac_objext \
5255    conftest$ac_exeext conftest.$ac_ext
5256     ac_ext=c
5257ac_cpp='$CPP $CPPFLAGS'
5258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
5262fi
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5264$as_echo "$lt_cv_cc_needs_belf" >&6; }
5265  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5266    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5267    CFLAGS="$SAVE_CFLAGS"
5268  fi
5269  ;;
5270sparc*-*solaris*)
5271  # Find out which ABI we are using.
5272  echo 'int i;' > conftest.$ac_ext
5273  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5274  (eval $ac_compile) 2>&5
5275  ac_status=$?
5276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5277  test $ac_status = 0; }; then
5278    case `/usr/bin/file conftest.o` in
5279    *64-bit*)
5280      case $lt_cv_prog_gnu_ld in
5281      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5282      *)
5283	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5284	  LD="${LD-ld} -64"
5285	fi
5286	;;
5287      esac
5288      ;;
5289    esac
5290  fi
5291  rm -rf conftest*
5292  ;;
5293esac
5294
5295need_locks="$enable_libtool_lock"
5296
5297
5298  case $host_os in
5299    rhapsody* | darwin*)
5300    if test -n "$ac_tool_prefix"; then
5301  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5302set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304$as_echo_n "checking for $ac_word... " >&6; }
5305if ${ac_cv_prog_DSYMUTIL+:} false; then :
5306  $as_echo_n "(cached) " >&6
5307else
5308  if test -n "$DSYMUTIL"; then
5309  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5310else
5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314  IFS=$as_save_IFS
5315  test -z "$as_dir" && as_dir=.
5316    for ac_exec_ext in '' $ac_executable_extensions; do
5317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320    break 2
5321  fi
5322done
5323  done
5324IFS=$as_save_IFS
5325
5326fi
5327fi
5328DSYMUTIL=$ac_cv_prog_DSYMUTIL
5329if test -n "$DSYMUTIL"; then
5330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5331$as_echo "$DSYMUTIL" >&6; }
5332else
5333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334$as_echo "no" >&6; }
5335fi
5336
5337
5338fi
5339if test -z "$ac_cv_prog_DSYMUTIL"; then
5340  ac_ct_DSYMUTIL=$DSYMUTIL
5341  # Extract the first word of "dsymutil", so it can be a program name with args.
5342set dummy dsymutil; ac_word=$2
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344$as_echo_n "checking for $ac_word... " >&6; }
5345if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  if test -n "$ac_ct_DSYMUTIL"; then
5349  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5350else
5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354  IFS=$as_save_IFS
5355  test -z "$as_dir" && as_dir=.
5356    for ac_exec_ext in '' $ac_executable_extensions; do
5357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360    break 2
5361  fi
5362done
5363  done
5364IFS=$as_save_IFS
5365
5366fi
5367fi
5368ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5369if test -n "$ac_ct_DSYMUTIL"; then
5370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5371$as_echo "$ac_ct_DSYMUTIL" >&6; }
5372else
5373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374$as_echo "no" >&6; }
5375fi
5376
5377  if test "x$ac_ct_DSYMUTIL" = x; then
5378    DSYMUTIL=":"
5379  else
5380    case $cross_compiling:$ac_tool_warned in
5381yes:)
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5384ac_tool_warned=yes ;;
5385esac
5386    DSYMUTIL=$ac_ct_DSYMUTIL
5387  fi
5388else
5389  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5390fi
5391
5392    if test -n "$ac_tool_prefix"; then
5393  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5394set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396$as_echo_n "checking for $ac_word... " >&6; }
5397if ${ac_cv_prog_NMEDIT+:} false; then :
5398  $as_echo_n "(cached) " >&6
5399else
5400  if test -n "$NMEDIT"; then
5401  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5402else
5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406  IFS=$as_save_IFS
5407  test -z "$as_dir" && as_dir=.
5408    for ac_exec_ext in '' $ac_executable_extensions; do
5409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412    break 2
5413  fi
5414done
5415  done
5416IFS=$as_save_IFS
5417
5418fi
5419fi
5420NMEDIT=$ac_cv_prog_NMEDIT
5421if test -n "$NMEDIT"; then
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5423$as_echo "$NMEDIT" >&6; }
5424else
5425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426$as_echo "no" >&6; }
5427fi
5428
5429
5430fi
5431if test -z "$ac_cv_prog_NMEDIT"; then
5432  ac_ct_NMEDIT=$NMEDIT
5433  # Extract the first word of "nmedit", so it can be a program name with args.
5434set dummy nmedit; ac_word=$2
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436$as_echo_n "checking for $ac_word... " >&6; }
5437if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440  if test -n "$ac_ct_NMEDIT"; then
5441  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5442else
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446  IFS=$as_save_IFS
5447  test -z "$as_dir" && as_dir=.
5448    for ac_exec_ext in '' $ac_executable_extensions; do
5449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452    break 2
5453  fi
5454done
5455  done
5456IFS=$as_save_IFS
5457
5458fi
5459fi
5460ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5461if test -n "$ac_ct_NMEDIT"; then
5462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5463$as_echo "$ac_ct_NMEDIT" >&6; }
5464else
5465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466$as_echo "no" >&6; }
5467fi
5468
5469  if test "x$ac_ct_NMEDIT" = x; then
5470    NMEDIT=":"
5471  else
5472    case $cross_compiling:$ac_tool_warned in
5473yes:)
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5476ac_tool_warned=yes ;;
5477esac
5478    NMEDIT=$ac_ct_NMEDIT
5479  fi
5480else
5481  NMEDIT="$ac_cv_prog_NMEDIT"
5482fi
5483
5484    if test -n "$ac_tool_prefix"; then
5485  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5486set dummy ${ac_tool_prefix}lipo; ac_word=$2
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488$as_echo_n "checking for $ac_word... " >&6; }
5489if ${ac_cv_prog_LIPO+:} false; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492  if test -n "$LIPO"; then
5493  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5494else
5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498  IFS=$as_save_IFS
5499  test -z "$as_dir" && as_dir=.
5500    for ac_exec_ext in '' $ac_executable_extensions; do
5501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504    break 2
5505  fi
5506done
5507  done
5508IFS=$as_save_IFS
5509
5510fi
5511fi
5512LIPO=$ac_cv_prog_LIPO
5513if test -n "$LIPO"; then
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5515$as_echo "$LIPO" >&6; }
5516else
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518$as_echo "no" >&6; }
5519fi
5520
5521
5522fi
5523if test -z "$ac_cv_prog_LIPO"; then
5524  ac_ct_LIPO=$LIPO
5525  # Extract the first word of "lipo", so it can be a program name with args.
5526set dummy lipo; ac_word=$2
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528$as_echo_n "checking for $ac_word... " >&6; }
5529if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532  if test -n "$ac_ct_LIPO"; then
5533  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5534else
5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538  IFS=$as_save_IFS
5539  test -z "$as_dir" && as_dir=.
5540    for ac_exec_ext in '' $ac_executable_extensions; do
5541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542    ac_cv_prog_ac_ct_LIPO="lipo"
5543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544    break 2
5545  fi
5546done
5547  done
5548IFS=$as_save_IFS
5549
5550fi
5551fi
5552ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5553if test -n "$ac_ct_LIPO"; then
5554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5555$as_echo "$ac_ct_LIPO" >&6; }
5556else
5557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558$as_echo "no" >&6; }
5559fi
5560
5561  if test "x$ac_ct_LIPO" = x; then
5562    LIPO=":"
5563  else
5564    case $cross_compiling:$ac_tool_warned in
5565yes:)
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5568ac_tool_warned=yes ;;
5569esac
5570    LIPO=$ac_ct_LIPO
5571  fi
5572else
5573  LIPO="$ac_cv_prog_LIPO"
5574fi
5575
5576    if test -n "$ac_tool_prefix"; then
5577  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5578set dummy ${ac_tool_prefix}otool; ac_word=$2
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580$as_echo_n "checking for $ac_word... " >&6; }
5581if ${ac_cv_prog_OTOOL+:} false; then :
5582  $as_echo_n "(cached) " >&6
5583else
5584  if test -n "$OTOOL"; then
5585  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5586else
5587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590  IFS=$as_save_IFS
5591  test -z "$as_dir" && as_dir=.
5592    for ac_exec_ext in '' $ac_executable_extensions; do
5593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596    break 2
5597  fi
5598done
5599  done
5600IFS=$as_save_IFS
5601
5602fi
5603fi
5604OTOOL=$ac_cv_prog_OTOOL
5605if test -n "$OTOOL"; then
5606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5607$as_echo "$OTOOL" >&6; }
5608else
5609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610$as_echo "no" >&6; }
5611fi
5612
5613
5614fi
5615if test -z "$ac_cv_prog_OTOOL"; then
5616  ac_ct_OTOOL=$OTOOL
5617  # Extract the first word of "otool", so it can be a program name with args.
5618set dummy otool; ac_word=$2
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620$as_echo_n "checking for $ac_word... " >&6; }
5621if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  if test -n "$ac_ct_OTOOL"; then
5625  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630  IFS=$as_save_IFS
5631  test -z "$as_dir" && as_dir=.
5632    for ac_exec_ext in '' $ac_executable_extensions; do
5633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634    ac_cv_prog_ac_ct_OTOOL="otool"
5635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636    break 2
5637  fi
5638done
5639  done
5640IFS=$as_save_IFS
5641
5642fi
5643fi
5644ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5645if test -n "$ac_ct_OTOOL"; then
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5647$as_echo "$ac_ct_OTOOL" >&6; }
5648else
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650$as_echo "no" >&6; }
5651fi
5652
5653  if test "x$ac_ct_OTOOL" = x; then
5654    OTOOL=":"
5655  else
5656    case $cross_compiling:$ac_tool_warned in
5657yes:)
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660ac_tool_warned=yes ;;
5661esac
5662    OTOOL=$ac_ct_OTOOL
5663  fi
5664else
5665  OTOOL="$ac_cv_prog_OTOOL"
5666fi
5667
5668    if test -n "$ac_tool_prefix"; then
5669  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5670set dummy ${ac_tool_prefix}otool64; ac_word=$2
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672$as_echo_n "checking for $ac_word... " >&6; }
5673if ${ac_cv_prog_OTOOL64+:} false; then :
5674  $as_echo_n "(cached) " >&6
5675else
5676  if test -n "$OTOOL64"; then
5677  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682  IFS=$as_save_IFS
5683  test -z "$as_dir" && as_dir=.
5684    for ac_exec_ext in '' $ac_executable_extensions; do
5685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688    break 2
5689  fi
5690done
5691  done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696OTOOL64=$ac_cv_prog_OTOOL64
5697if test -n "$OTOOL64"; then
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5699$as_echo "$OTOOL64" >&6; }
5700else
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703fi
5704
5705
5706fi
5707if test -z "$ac_cv_prog_OTOOL64"; then
5708  ac_ct_OTOOL64=$OTOOL64
5709  # Extract the first word of "otool64", so it can be a program name with args.
5710set dummy otool64; ac_word=$2
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712$as_echo_n "checking for $ac_word... " >&6; }
5713if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5714  $as_echo_n "(cached) " >&6
5715else
5716  if test -n "$ac_ct_OTOOL64"; then
5717  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722  IFS=$as_save_IFS
5723  test -z "$as_dir" && as_dir=.
5724    for ac_exec_ext in '' $ac_executable_extensions; do
5725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726    ac_cv_prog_ac_ct_OTOOL64="otool64"
5727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728    break 2
5729  fi
5730done
5731  done
5732IFS=$as_save_IFS
5733
5734fi
5735fi
5736ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5737if test -n "$ac_ct_OTOOL64"; then
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5739$as_echo "$ac_ct_OTOOL64" >&6; }
5740else
5741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743fi
5744
5745  if test "x$ac_ct_OTOOL64" = x; then
5746    OTOOL64=":"
5747  else
5748    case $cross_compiling:$ac_tool_warned in
5749yes:)
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5752ac_tool_warned=yes ;;
5753esac
5754    OTOOL64=$ac_ct_OTOOL64
5755  fi
5756else
5757  OTOOL64="$ac_cv_prog_OTOOL64"
5758fi
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5787$as_echo_n "checking for -single_module linker flag... " >&6; }
5788if ${lt_cv_apple_cc_single_mod+:} false; then :
5789  $as_echo_n "(cached) " >&6
5790else
5791  lt_cv_apple_cc_single_mod=no
5792      if test -z "${LT_MULTI_MODULE}"; then
5793	# By default we will add the -single_module flag. You can override
5794	# by either setting the environment variable LT_MULTI_MODULE
5795	# non-empty at configure time, or by adding -multi_module to the
5796	# link flags.
5797	rm -rf libconftest.dylib*
5798	echo "int foo(void){return 1;}" > conftest.c
5799	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5800-dynamiclib -Wl,-single_module conftest.c" >&5
5801	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5802	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5803        _lt_result=$?
5804	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5805	  lt_cv_apple_cc_single_mod=yes
5806	else
5807	  cat conftest.err >&5
5808	fi
5809	rm -rf libconftest.dylib*
5810	rm -f conftest.*
5811      fi
5812fi
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5814$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5815    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5816$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5817if ${lt_cv_ld_exported_symbols_list+:} false; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820  lt_cv_ld_exported_symbols_list=no
5821      save_LDFLAGS=$LDFLAGS
5822      echo "_main" > conftest.sym
5823      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5824      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825/* end confdefs.h.  */
5826
5827int
5828main ()
5829{
5830
5831  ;
5832  return 0;
5833}
5834_ACEOF
5835if ac_fn_c_try_link "$LINENO"; then :
5836  lt_cv_ld_exported_symbols_list=yes
5837else
5838  lt_cv_ld_exported_symbols_list=no
5839fi
5840rm -f core conftest.err conftest.$ac_objext \
5841    conftest$ac_exeext conftest.$ac_ext
5842	LDFLAGS="$save_LDFLAGS"
5843
5844fi
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5846$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5847    case $host_os in
5848    rhapsody* | darwin1.[012])
5849      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5850    darwin1.*)
5851      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5852    darwin*) # darwin 5.x on
5853      # if running on 10.5 or later, the deployment target defaults
5854      # to the OS version, if on x86, and 10.4, the deployment
5855      # target defaults to 10.4. Don't you love it?
5856      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5857	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5858	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5859	10.[012]*)
5860	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5861	10.*)
5862	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5863      esac
5864    ;;
5865  esac
5866    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5867      _lt_dar_single_mod='$single_module'
5868    fi
5869    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5870      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5871    else
5872      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5873    fi
5874    if test "$DSYMUTIL" != ":"; then
5875      _lt_dsymutil='~$DSYMUTIL $lib || :'
5876    else
5877      _lt_dsymutil=
5878    fi
5879    ;;
5880  esac
5881
5882ac_ext=c
5883ac_cpp='$CPP $CPPFLAGS'
5884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5886ac_compiler_gnu=$ac_cv_c_compiler_gnu
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5888$as_echo_n "checking how to run the C preprocessor... " >&6; }
5889# On Suns, sometimes $CPP names a directory.
5890if test -n "$CPP" && test -d "$CPP"; then
5891  CPP=
5892fi
5893if test -z "$CPP"; then
5894  if ${ac_cv_prog_CPP+:} false; then :
5895  $as_echo_n "(cached) " >&6
5896else
5897      # Double quotes because CPP needs to be expanded
5898    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5899    do
5900      ac_preproc_ok=false
5901for ac_c_preproc_warn_flag in '' yes
5902do
5903  # Use a header file that comes with gcc, so configuring glibc
5904  # with a fresh cross-compiler works.
5905  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5906  # <limits.h> exists even on freestanding compilers.
5907  # On the NeXT, cc -E runs the code through the compiler's parser,
5908  # not just through cpp. "Syntax error" is here to catch this case.
5909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910/* end confdefs.h.  */
5911#ifdef __STDC__
5912# include <limits.h>
5913#else
5914# include <assert.h>
5915#endif
5916		     Syntax error
5917_ACEOF
5918if ac_fn_c_try_cpp "$LINENO"; then :
5919
5920else
5921  # Broken: fails on valid input.
5922continue
5923fi
5924rm -f conftest.err conftest.i conftest.$ac_ext
5925
5926  # OK, works on sane cases.  Now check whether nonexistent headers
5927  # can be detected and how.
5928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929/* end confdefs.h.  */
5930#include <ac_nonexistent.h>
5931_ACEOF
5932if ac_fn_c_try_cpp "$LINENO"; then :
5933  # Broken: success on invalid input.
5934continue
5935else
5936  # Passes both tests.
5937ac_preproc_ok=:
5938break
5939fi
5940rm -f conftest.err conftest.i conftest.$ac_ext
5941
5942done
5943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5944rm -f conftest.i conftest.err conftest.$ac_ext
5945if $ac_preproc_ok; then :
5946  break
5947fi
5948
5949    done
5950    ac_cv_prog_CPP=$CPP
5951
5952fi
5953  CPP=$ac_cv_prog_CPP
5954else
5955  ac_cv_prog_CPP=$CPP
5956fi
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5958$as_echo "$CPP" >&6; }
5959ac_preproc_ok=false
5960for ac_c_preproc_warn_flag in '' yes
5961do
5962  # Use a header file that comes with gcc, so configuring glibc
5963  # with a fresh cross-compiler works.
5964  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5965  # <limits.h> exists even on freestanding compilers.
5966  # On the NeXT, cc -E runs the code through the compiler's parser,
5967  # not just through cpp. "Syntax error" is here to catch this case.
5968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h.  */
5970#ifdef __STDC__
5971# include <limits.h>
5972#else
5973# include <assert.h>
5974#endif
5975		     Syntax error
5976_ACEOF
5977if ac_fn_c_try_cpp "$LINENO"; then :
5978
5979else
5980  # Broken: fails on valid input.
5981continue
5982fi
5983rm -f conftest.err conftest.i conftest.$ac_ext
5984
5985  # OK, works on sane cases.  Now check whether nonexistent headers
5986  # can be detected and how.
5987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h.  */
5989#include <ac_nonexistent.h>
5990_ACEOF
5991if ac_fn_c_try_cpp "$LINENO"; then :
5992  # Broken: success on invalid input.
5993continue
5994else
5995  # Passes both tests.
5996ac_preproc_ok=:
5997break
5998fi
5999rm -f conftest.err conftest.i conftest.$ac_ext
6000
6001done
6002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6003rm -f conftest.i conftest.err conftest.$ac_ext
6004if $ac_preproc_ok; then :
6005
6006else
6007  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6009as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6010See \`config.log' for more details" "$LINENO" 5; }
6011fi
6012
6013ac_ext=c
6014ac_cpp='$CPP $CPPFLAGS'
6015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018
6019
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6021$as_echo_n "checking for ANSI C header files... " >&6; }
6022if ${ac_cv_header_stdc+:} false; then :
6023  $as_echo_n "(cached) " >&6
6024else
6025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026/* end confdefs.h.  */
6027#include <stdlib.h>
6028#include <stdarg.h>
6029#include <string.h>
6030#include <float.h>
6031
6032int
6033main ()
6034{
6035
6036  ;
6037  return 0;
6038}
6039_ACEOF
6040if ac_fn_c_try_compile "$LINENO"; then :
6041  ac_cv_header_stdc=yes
6042else
6043  ac_cv_header_stdc=no
6044fi
6045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046
6047if test $ac_cv_header_stdc = yes; then
6048  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051#include <string.h>
6052
6053_ACEOF
6054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055  $EGREP "memchr" >/dev/null 2>&1; then :
6056
6057else
6058  ac_cv_header_stdc=no
6059fi
6060rm -f conftest*
6061
6062fi
6063
6064if test $ac_cv_header_stdc = yes; then
6065  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067/* end confdefs.h.  */
6068#include <stdlib.h>
6069
6070_ACEOF
6071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072  $EGREP "free" >/dev/null 2>&1; then :
6073
6074else
6075  ac_cv_header_stdc=no
6076fi
6077rm -f conftest*
6078
6079fi
6080
6081if test $ac_cv_header_stdc = yes; then
6082  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6083  if test "$cross_compiling" = yes; then :
6084  :
6085else
6086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087/* end confdefs.h.  */
6088#include <ctype.h>
6089#include <stdlib.h>
6090#if ((' ' & 0x0FF) == 0x020)
6091# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6092# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6093#else
6094# define ISLOWER(c) \
6095		   (('a' <= (c) && (c) <= 'i') \
6096		     || ('j' <= (c) && (c) <= 'r') \
6097		     || ('s' <= (c) && (c) <= 'z'))
6098# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6099#endif
6100
6101#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6102int
6103main ()
6104{
6105  int i;
6106  for (i = 0; i < 256; i++)
6107    if (XOR (islower (i), ISLOWER (i))
6108	|| toupper (i) != TOUPPER (i))
6109      return 2;
6110  return 0;
6111}
6112_ACEOF
6113if ac_fn_c_try_run "$LINENO"; then :
6114
6115else
6116  ac_cv_header_stdc=no
6117fi
6118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6119  conftest.$ac_objext conftest.beam conftest.$ac_ext
6120fi
6121
6122fi
6123fi
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6125$as_echo "$ac_cv_header_stdc" >&6; }
6126if test $ac_cv_header_stdc = yes; then
6127
6128$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6129
6130fi
6131
6132# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6133for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6134		  inttypes.h stdint.h unistd.h
6135do :
6136  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6137ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6138"
6139if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6140  cat >>confdefs.h <<_ACEOF
6141#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6142_ACEOF
6143
6144fi
6145
6146done
6147
6148
6149for ac_header in dlfcn.h
6150do :
6151  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6152"
6153if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6154  cat >>confdefs.h <<_ACEOF
6155#define HAVE_DLFCN_H 1
6156_ACEOF
6157
6158fi
6159
6160done
6161
6162
6163
6164# Set options
6165
6166
6167
6168        enable_dlopen=no
6169
6170
6171  enable_win32_dll=no
6172
6173
6174            # Check whether --enable-shared was given.
6175if test "${enable_shared+set}" = set; then :
6176  enableval=$enable_shared; p=${PACKAGE-default}
6177    case $enableval in
6178    yes) enable_shared=yes ;;
6179    no) enable_shared=no ;;
6180    *)
6181      enable_shared=no
6182      # Look at the argument we got.  We use all the common list separators.
6183      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6184      for pkg in $enableval; do
6185	IFS="$lt_save_ifs"
6186	if test "X$pkg" = "X$p"; then
6187	  enable_shared=yes
6188	fi
6189      done
6190      IFS="$lt_save_ifs"
6191      ;;
6192    esac
6193else
6194  enable_shared=yes
6195fi
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205  # Check whether --enable-static was given.
6206if test "${enable_static+set}" = set; then :
6207  enableval=$enable_static; p=${PACKAGE-default}
6208    case $enableval in
6209    yes) enable_static=yes ;;
6210    no) enable_static=no ;;
6211    *)
6212     enable_static=no
6213      # Look at the argument we got.  We use all the common list separators.
6214      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6215      for pkg in $enableval; do
6216	IFS="$lt_save_ifs"
6217	if test "X$pkg" = "X$p"; then
6218	  enable_static=yes
6219	fi
6220      done
6221      IFS="$lt_save_ifs"
6222      ;;
6223    esac
6224else
6225  enable_static=yes
6226fi
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237# Check whether --with-pic was given.
6238if test "${with_pic+set}" = set; then :
6239  withval=$with_pic; pic_mode="$withval"
6240else
6241  pic_mode=default
6242fi
6243
6244
6245test -z "$pic_mode" && pic_mode=default
6246
6247
6248
6249
6250
6251
6252
6253  # Check whether --enable-fast-install was given.
6254if test "${enable_fast_install+set}" = set; then :
6255  enableval=$enable_fast_install; p=${PACKAGE-default}
6256    case $enableval in
6257    yes) enable_fast_install=yes ;;
6258    no) enable_fast_install=no ;;
6259    *)
6260      enable_fast_install=no
6261      # Look at the argument we got.  We use all the common list separators.
6262      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6263      for pkg in $enableval; do
6264	IFS="$lt_save_ifs"
6265	if test "X$pkg" = "X$p"; then
6266	  enable_fast_install=yes
6267	fi
6268      done
6269      IFS="$lt_save_ifs"
6270      ;;
6271    esac
6272else
6273  enable_fast_install=yes
6274fi
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286# This can be used to rebuild libtool when needed
6287LIBTOOL_DEPS="$ltmain"
6288
6289# Always use our own libtool.
6290LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316test -z "$LN_S" && LN_S="ln -s"
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331if test -n "${ZSH_VERSION+set}" ; then
6332   setopt NO_GLOB_SUBST
6333fi
6334
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6336$as_echo_n "checking for objdir... " >&6; }
6337if ${lt_cv_objdir+:} false; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340  rm -f .libs 2>/dev/null
6341mkdir .libs 2>/dev/null
6342if test -d .libs; then
6343  lt_cv_objdir=.libs
6344else
6345  # MS-DOS does not allow filenames that begin with a dot.
6346  lt_cv_objdir=_libs
6347fi
6348rmdir .libs 2>/dev/null
6349fi
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6351$as_echo "$lt_cv_objdir" >&6; }
6352objdir=$lt_cv_objdir
6353
6354
6355
6356
6357
6358cat >>confdefs.h <<_ACEOF
6359#define LT_OBJDIR "$lt_cv_objdir/"
6360_ACEOF
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378case $host_os in
6379aix3*)
6380  # AIX sometimes has problems with the GCC collect2 program.  For some
6381  # reason, if we set the COLLECT_NAMES environment variable, the problems
6382  # vanish in a puff of smoke.
6383  if test "X${COLLECT_NAMES+set}" != Xset; then
6384    COLLECT_NAMES=
6385    export COLLECT_NAMES
6386  fi
6387  ;;
6388esac
6389
6390# Sed substitution that helps us do robust quoting.  It backslashifies
6391# metacharacters that are still active within double-quoted strings.
6392sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6393
6394# Same as above, but do not quote variable references.
6395double_quote_subst='s/\(["`\\]\)/\\\1/g'
6396
6397# Sed substitution to delay expansion of an escaped shell variable in a
6398# double_quote_subst'ed string.
6399delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6400
6401# Sed substitution to delay expansion of an escaped single quote.
6402delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6403
6404# Sed substitution to avoid accidental globbing in evaled expressions
6405no_glob_subst='s/\*/\\\*/g'
6406
6407# Global variables:
6408ofile=libtool
6409can_build_shared=yes
6410
6411# All known linkers require a `.a' archive for static linking (except MSVC,
6412# which needs '.lib').
6413libext=a
6414
6415with_gnu_ld="$lt_cv_prog_gnu_ld"
6416
6417old_CC="$CC"
6418old_CFLAGS="$CFLAGS"
6419
6420# Set sane defaults for various variables
6421test -z "$CC" && CC=cc
6422test -z "$LTCC" && LTCC=$CC
6423test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6424test -z "$LD" && LD=ld
6425test -z "$ac_objext" && ac_objext=o
6426
6427for cc_temp in $compiler""; do
6428  case $cc_temp in
6429    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6430    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6431    \-*) ;;
6432    *) break;;
6433  esac
6434done
6435cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6436
6437
6438# Only perform the check for file, if the check method requires it
6439test -z "$MAGIC_CMD" && MAGIC_CMD=file
6440case $deplibs_check_method in
6441file_magic*)
6442  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6444$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6445if ${lt_cv_path_MAGIC_CMD+:} false; then :
6446  $as_echo_n "(cached) " >&6
6447else
6448  case $MAGIC_CMD in
6449[\\/*] |  ?:[\\/]*)
6450  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6451  ;;
6452*)
6453  lt_save_MAGIC_CMD="$MAGIC_CMD"
6454  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6455  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6456  for ac_dir in $ac_dummy; do
6457    IFS="$lt_save_ifs"
6458    test -z "$ac_dir" && ac_dir=.
6459    if test -f $ac_dir/${ac_tool_prefix}file; then
6460      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6461      if test -n "$file_magic_test_file"; then
6462	case $deplibs_check_method in
6463	"file_magic "*)
6464	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6465	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6466	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6467	    $EGREP "$file_magic_regex" > /dev/null; then
6468	    :
6469	  else
6470	    cat <<_LT_EOF 1>&2
6471
6472*** Warning: the command libtool uses to detect shared libraries,
6473*** $file_magic_cmd, produces output that libtool cannot recognize.
6474*** The result is that libtool may fail to recognize shared libraries
6475*** as such.  This will affect the creation of libtool libraries that
6476*** depend on shared libraries, but programs linked with such libtool
6477*** libraries will work regardless of this problem.  Nevertheless, you
6478*** may want to report the problem to your system manager and/or to
6479*** [email protected]
6480
6481_LT_EOF
6482	  fi ;;
6483	esac
6484      fi
6485      break
6486    fi
6487  done
6488  IFS="$lt_save_ifs"
6489  MAGIC_CMD="$lt_save_MAGIC_CMD"
6490  ;;
6491esac
6492fi
6493
6494MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6495if test -n "$MAGIC_CMD"; then
6496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6497$as_echo "$MAGIC_CMD" >&6; }
6498else
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501fi
6502
6503
6504
6505
6506
6507if test -z "$lt_cv_path_MAGIC_CMD"; then
6508  if test -n "$ac_tool_prefix"; then
6509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6510$as_echo_n "checking for file... " >&6; }
6511if ${lt_cv_path_MAGIC_CMD+:} false; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  case $MAGIC_CMD in
6515[\\/*] |  ?:[\\/]*)
6516  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6517  ;;
6518*)
6519  lt_save_MAGIC_CMD="$MAGIC_CMD"
6520  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6521  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6522  for ac_dir in $ac_dummy; do
6523    IFS="$lt_save_ifs"
6524    test -z "$ac_dir" && ac_dir=.
6525    if test -f $ac_dir/file; then
6526      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6527      if test -n "$file_magic_test_file"; then
6528	case $deplibs_check_method in
6529	"file_magic "*)
6530	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6531	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6532	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6533	    $EGREP "$file_magic_regex" > /dev/null; then
6534	    :
6535	  else
6536	    cat <<_LT_EOF 1>&2
6537
6538*** Warning: the command libtool uses to detect shared libraries,
6539*** $file_magic_cmd, produces output that libtool cannot recognize.
6540*** The result is that libtool may fail to recognize shared libraries
6541*** as such.  This will affect the creation of libtool libraries that
6542*** depend on shared libraries, but programs linked with such libtool
6543*** libraries will work regardless of this problem.  Nevertheless, you
6544*** may want to report the problem to your system manager and/or to
6545*** [email protected]
6546
6547_LT_EOF
6548	  fi ;;
6549	esac
6550      fi
6551      break
6552    fi
6553  done
6554  IFS="$lt_save_ifs"
6555  MAGIC_CMD="$lt_save_MAGIC_CMD"
6556  ;;
6557esac
6558fi
6559
6560MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6561if test -n "$MAGIC_CMD"; then
6562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6563$as_echo "$MAGIC_CMD" >&6; }
6564else
6565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566$as_echo "no" >&6; }
6567fi
6568
6569
6570  else
6571    MAGIC_CMD=:
6572  fi
6573fi
6574
6575  fi
6576  ;;
6577esac
6578
6579# Use C for the default configuration in the libtool script
6580
6581lt_save_CC="$CC"
6582ac_ext=c
6583ac_cpp='$CPP $CPPFLAGS'
6584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586ac_compiler_gnu=$ac_cv_c_compiler_gnu
6587
6588
6589# Source file extension for C test sources.
6590ac_ext=c
6591
6592# Object file extension for compiled C test sources.
6593objext=o
6594objext=$objext
6595
6596# Code to be used in simple compile tests
6597lt_simple_compile_test_code="int some_variable = 0;"
6598
6599# Code to be used in simple link tests
6600lt_simple_link_test_code='int main(){return(0);}'
6601
6602
6603
6604
6605
6606
6607
6608# If no C compiler was specified, use CC.
6609LTCC=${LTCC-"$CC"}
6610
6611# If no C compiler flags were specified, use CFLAGS.
6612LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6613
6614# Allow CC to be a program name with arguments.
6615compiler=$CC
6616
6617# Save the default compiler, since it gets overwritten when the other
6618# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6619compiler_DEFAULT=$CC
6620
6621# save warnings/boilerplate of simple test code
6622ac_outfile=conftest.$ac_objext
6623echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6624eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6625_lt_compiler_boilerplate=`cat conftest.err`
6626$RM conftest*
6627
6628ac_outfile=conftest.$ac_objext
6629echo "$lt_simple_link_test_code" >conftest.$ac_ext
6630eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6631_lt_linker_boilerplate=`cat conftest.err`
6632$RM -r conftest*
6633
6634
6635if test -n "$compiler"; then
6636
6637lt_prog_compiler_no_builtin_flag=
6638
6639if test "$GCC" = yes; then
6640  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6641
6642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6643$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6644if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6645  $as_echo_n "(cached) " >&6
6646else
6647  lt_cv_prog_compiler_rtti_exceptions=no
6648   ac_outfile=conftest.$ac_objext
6649   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6650   lt_compiler_flag="-fno-rtti -fno-exceptions"
6651   # Insert the option either (1) after the last *FLAGS variable, or
6652   # (2) before a word containing "conftest.", or (3) at the end.
6653   # Note that $ac_compile itself does not contain backslashes and begins
6654   # with a dollar sign (not a hyphen), so the echo should work correctly.
6655   # The option is referenced via a variable to avoid confusing sed.
6656   lt_compile=`echo "$ac_compile" | $SED \
6657   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6658   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6659   -e 's:$: $lt_compiler_flag:'`
6660   (eval echo "\"\$as_me:6660: $lt_compile\"" >&5)
6661   (eval "$lt_compile" 2>conftest.err)
6662   ac_status=$?
6663   cat conftest.err >&5
6664   echo "$as_me:6664: \$? = $ac_status" >&5
6665   if (exit $ac_status) && test -s "$ac_outfile"; then
6666     # The compiler can only warn and ignore the option if not recognized
6667     # So say no if there are warnings other than the usual output.
6668     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6669     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6670     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6671       lt_cv_prog_compiler_rtti_exceptions=yes
6672     fi
6673   fi
6674   $RM conftest*
6675
6676fi
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6678$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6679
6680if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6681    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6682else
6683    :
6684fi
6685
6686fi
6687
6688
6689
6690
6691
6692
6693  lt_prog_compiler_wl=
6694lt_prog_compiler_pic=
6695lt_prog_compiler_static=
6696
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6698$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6699
6700  if test "$GCC" = yes; then
6701    lt_prog_compiler_wl='-Wl,'
6702    lt_prog_compiler_static='-static'
6703
6704    case $host_os in
6705      aix*)
6706      # All AIX code is PIC.
6707      if test "$host_cpu" = ia64; then
6708	# AIX 5 now supports IA64 processor
6709	lt_prog_compiler_static='-Bstatic'
6710      fi
6711      ;;
6712
6713    amigaos*)
6714      case $host_cpu in
6715      powerpc)
6716            # see comment about AmigaOS4 .so support
6717            lt_prog_compiler_pic='-fPIC'
6718        ;;
6719      m68k)
6720            # FIXME: we need at least 68020 code to build shared libraries, but
6721            # adding the `-m68020' flag to GCC prevents building anything better,
6722            # like `-m68040'.
6723            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6724        ;;
6725      esac
6726      ;;
6727
6728    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6729      # PIC is the default for these OSes.
6730      ;;
6731
6732    mingw* | cygwin* | pw32* | os2* | cegcc*)
6733      # This hack is so that the source file can tell whether it is being
6734      # built for inclusion in a dll (and should export symbols for example).
6735      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6736      # (--disable-auto-import) libraries
6737      lt_prog_compiler_pic='-DDLL_EXPORT'
6738      ;;
6739
6740    darwin* | rhapsody*)
6741      # PIC is the default on this platform
6742      # Common symbols not allowed in MH_DYLIB files
6743      lt_prog_compiler_pic='-fno-common'
6744      ;;
6745
6746    hpux*)
6747      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6748      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6749      # sets the default TLS model and affects inlining.
6750      case $host_cpu in
6751      hppa*64*)
6752	# +Z the default
6753	;;
6754      *)
6755	lt_prog_compiler_pic='-fPIC'
6756	;;
6757      esac
6758      ;;
6759
6760    interix[3-9]*)
6761      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6762      # Instead, we relocate shared libraries at runtime.
6763      ;;
6764
6765    msdosdjgpp*)
6766      # Just because we use GCC doesn't mean we suddenly get shared libraries
6767      # on systems that don't support them.
6768      lt_prog_compiler_can_build_shared=no
6769      enable_shared=no
6770      ;;
6771
6772    *nto* | *qnx*)
6773      # QNX uses GNU C++, but need to define -shared option too, otherwise
6774      # it will coredump.
6775      lt_prog_compiler_pic='-fPIC -shared'
6776      ;;
6777
6778    sysv4*MP*)
6779      if test -d /usr/nec; then
6780	lt_prog_compiler_pic=-Kconform_pic
6781      fi
6782      ;;
6783
6784    *)
6785      lt_prog_compiler_pic='-fPIC'
6786      ;;
6787    esac
6788  else
6789    # PORTME Check for flag to pass linker flags through the system compiler.
6790    case $host_os in
6791    aix*)
6792      lt_prog_compiler_wl='-Wl,'
6793      if test "$host_cpu" = ia64; then
6794	# AIX 5 now supports IA64 processor
6795	lt_prog_compiler_static='-Bstatic'
6796      else
6797	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6798      fi
6799      ;;
6800
6801    mingw* | cygwin* | pw32* | os2* | cegcc*)
6802      # This hack is so that the source file can tell whether it is being
6803      # built for inclusion in a dll (and should export symbols for example).
6804      lt_prog_compiler_pic='-DDLL_EXPORT'
6805      ;;
6806
6807    hpux9* | hpux10* | hpux11*)
6808      lt_prog_compiler_wl='-Wl,'
6809      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6810      # not for PA HP-UX.
6811      case $host_cpu in
6812      hppa*64*|ia64*)
6813	# +Z the default
6814	;;
6815      *)
6816	lt_prog_compiler_pic='+Z'
6817	;;
6818      esac
6819      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6820      lt_prog_compiler_static='${wl}-a ${wl}archive'
6821      ;;
6822
6823    irix5* | irix6* | nonstopux*)
6824      lt_prog_compiler_wl='-Wl,'
6825      # PIC (with -KPIC) is the default.
6826      lt_prog_compiler_static='-non_shared'
6827      ;;
6828
6829    linux* | k*bsd*-gnu)
6830      case $cc_basename in
6831      # old Intel for x86_64 which still supported -KPIC.
6832      ecc*)
6833	lt_prog_compiler_wl='-Wl,'
6834	lt_prog_compiler_pic='-KPIC'
6835	lt_prog_compiler_static='-static'
6836        ;;
6837      # icc used to be incompatible with GCC.
6838      # ICC 10 doesn't accept -KPIC any more.
6839      icc* | ifort*)
6840	lt_prog_compiler_wl='-Wl,'
6841	lt_prog_compiler_pic='-fPIC'
6842	lt_prog_compiler_static='-static'
6843        ;;
6844      # Lahey Fortran 8.1.
6845      lf95*)
6846	lt_prog_compiler_wl='-Wl,'
6847	lt_prog_compiler_pic='--shared'
6848	lt_prog_compiler_static='--static'
6849	;;
6850      pgcc* | pgf77* | pgf90* | pgf95*)
6851        # Portland Group compilers (*not* the Pentium gcc compiler,
6852	# which looks to be a dead project)
6853	lt_prog_compiler_wl='-Wl,'
6854	lt_prog_compiler_pic='-fpic'
6855	lt_prog_compiler_static='-Bstatic'
6856        ;;
6857      ccc*)
6858        lt_prog_compiler_wl='-Wl,'
6859        # All Alpha code is PIC.
6860        lt_prog_compiler_static='-non_shared'
6861        ;;
6862      xl*)
6863	# IBM XL C 8.0/Fortran 10.1 on PPC
6864	lt_prog_compiler_wl='-Wl,'
6865	lt_prog_compiler_pic='-qpic'
6866	lt_prog_compiler_static='-qstaticlink'
6867	;;
6868      *)
6869	case `$CC -V 2>&1 | sed 5q` in
6870	*Sun\ C*)
6871	  # Sun C 5.9
6872	  lt_prog_compiler_pic='-KPIC'
6873	  lt_prog_compiler_static='-Bstatic'
6874	  lt_prog_compiler_wl='-Wl,'
6875	  ;;
6876	*Sun\ F*)
6877	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
6878	  lt_prog_compiler_pic='-KPIC'
6879	  lt_prog_compiler_static='-Bstatic'
6880	  lt_prog_compiler_wl=''
6881	  ;;
6882	esac
6883	;;
6884      esac
6885      ;;
6886
6887    newsos6)
6888      lt_prog_compiler_pic='-KPIC'
6889      lt_prog_compiler_static='-Bstatic'
6890      ;;
6891
6892    *nto* | *qnx*)
6893      # QNX uses GNU C++, but need to define -shared option too, otherwise
6894      # it will coredump.
6895      lt_prog_compiler_pic='-fPIC -shared'
6896      ;;
6897
6898    osf3* | osf4* | osf5*)
6899      lt_prog_compiler_wl='-Wl,'
6900      # All OSF/1 code is PIC.
6901      lt_prog_compiler_static='-non_shared'
6902      ;;
6903
6904    rdos*)
6905      lt_prog_compiler_static='-non_shared'
6906      ;;
6907
6908    solaris*)
6909      lt_prog_compiler_pic='-KPIC'
6910      lt_prog_compiler_static='-Bstatic'
6911      case $cc_basename in
6912      f77* | f90* | f95*)
6913	lt_prog_compiler_wl='-Qoption ld ';;
6914      *)
6915	lt_prog_compiler_wl='-Wl,';;
6916      esac
6917      ;;
6918
6919    sunos4*)
6920      lt_prog_compiler_wl='-Qoption ld '
6921      lt_prog_compiler_pic='-PIC'
6922      lt_prog_compiler_static='-Bstatic'
6923      ;;
6924
6925    sysv4 | sysv4.2uw2* | sysv4.3*)
6926      lt_prog_compiler_wl='-Wl,'
6927      lt_prog_compiler_pic='-KPIC'
6928      lt_prog_compiler_static='-Bstatic'
6929      ;;
6930
6931    sysv4*MP*)
6932      if test -d /usr/nec ;then
6933	lt_prog_compiler_pic='-Kconform_pic'
6934	lt_prog_compiler_static='-Bstatic'
6935      fi
6936      ;;
6937
6938    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6939      lt_prog_compiler_wl='-Wl,'
6940      lt_prog_compiler_pic='-KPIC'
6941      lt_prog_compiler_static='-Bstatic'
6942      ;;
6943
6944    unicos*)
6945      lt_prog_compiler_wl='-Wl,'
6946      lt_prog_compiler_can_build_shared=no
6947      ;;
6948
6949    uts4*)
6950      lt_prog_compiler_pic='-pic'
6951      lt_prog_compiler_static='-Bstatic'
6952      ;;
6953
6954    *)
6955      lt_prog_compiler_can_build_shared=no
6956      ;;
6957    esac
6958  fi
6959
6960case $host_os in
6961  # For platforms which do not support PIC, -DPIC is meaningless:
6962  *djgpp*)
6963    lt_prog_compiler_pic=
6964    ;;
6965  *)
6966    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6967    ;;
6968esac
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6970$as_echo "$lt_prog_compiler_pic" >&6; }
6971
6972
6973
6974
6975
6976
6977#
6978# Check to make sure the PIC flag actually works.
6979#
6980if test -n "$lt_prog_compiler_pic"; then
6981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6982$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6983if ${lt_cv_prog_compiler_pic_works+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  lt_cv_prog_compiler_pic_works=no
6987   ac_outfile=conftest.$ac_objext
6988   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6989   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6990   # Insert the option either (1) after the last *FLAGS variable, or
6991   # (2) before a word containing "conftest.", or (3) at the end.
6992   # Note that $ac_compile itself does not contain backslashes and begins
6993   # with a dollar sign (not a hyphen), so the echo should work correctly.
6994   # The option is referenced via a variable to avoid confusing sed.
6995   lt_compile=`echo "$ac_compile" | $SED \
6996   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6997   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6998   -e 's:$: $lt_compiler_flag:'`
6999   (eval echo "\"\$as_me:6999: $lt_compile\"" >&5)
7000   (eval "$lt_compile" 2>conftest.err)
7001   ac_status=$?
7002   cat conftest.err >&5
7003   echo "$as_me:7003: \$? = $ac_status" >&5
7004   if (exit $ac_status) && test -s "$ac_outfile"; then
7005     # The compiler can only warn and ignore the option if not recognized
7006     # So say no if there are warnings other than the usual output.
7007     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7008     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7009     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7010       lt_cv_prog_compiler_pic_works=yes
7011     fi
7012   fi
7013   $RM conftest*
7014
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7017$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7018
7019if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7020    case $lt_prog_compiler_pic in
7021     "" | " "*) ;;
7022     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7023     esac
7024else
7025    lt_prog_compiler_pic=
7026     lt_prog_compiler_can_build_shared=no
7027fi
7028
7029fi
7030
7031
7032
7033
7034
7035
7036#
7037# Check to make sure the static flag actually works.
7038#
7039wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7041$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7042if ${lt_cv_prog_compiler_static_works+:} false; then :
7043  $as_echo_n "(cached) " >&6
7044else
7045  lt_cv_prog_compiler_static_works=no
7046   save_LDFLAGS="$LDFLAGS"
7047   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7048   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7049   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7050     # The linker can only warn and ignore the option if not recognized
7051     # So say no if there are warnings
7052     if test -s conftest.err; then
7053       # Append any errors to the config.log.
7054       cat conftest.err 1>&5
7055       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7056       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7057       if diff conftest.exp conftest.er2 >/dev/null; then
7058         lt_cv_prog_compiler_static_works=yes
7059       fi
7060     else
7061       lt_cv_prog_compiler_static_works=yes
7062     fi
7063   fi
7064   $RM -r conftest*
7065   LDFLAGS="$save_LDFLAGS"
7066
7067fi
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7069$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7070
7071if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7072    :
7073else
7074    lt_prog_compiler_static=
7075fi
7076
7077
7078
7079
7080
7081
7082
7083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7084$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7085if ${lt_cv_prog_compiler_c_o+:} false; then :
7086  $as_echo_n "(cached) " >&6
7087else
7088  lt_cv_prog_compiler_c_o=no
7089   $RM -r conftest 2>/dev/null
7090   mkdir conftest
7091   cd conftest
7092   mkdir out
7093   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7094
7095   lt_compiler_flag="-o out/conftest2.$ac_objext"
7096   # Insert the option either (1) after the last *FLAGS variable, or
7097   # (2) before a word containing "conftest.", or (3) at the end.
7098   # Note that $ac_compile itself does not contain backslashes and begins
7099   # with a dollar sign (not a hyphen), so the echo should work correctly.
7100   lt_compile=`echo "$ac_compile" | $SED \
7101   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7102   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7103   -e 's:$: $lt_compiler_flag:'`
7104   (eval echo "\"\$as_me:7104: $lt_compile\"" >&5)
7105   (eval "$lt_compile" 2>out/conftest.err)
7106   ac_status=$?
7107   cat out/conftest.err >&5
7108   echo "$as_me:7108: \$? = $ac_status" >&5
7109   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7110   then
7111     # The compiler can only warn and ignore the option if not recognized
7112     # So say no if there are warnings
7113     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7114     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7115     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7116       lt_cv_prog_compiler_c_o=yes
7117     fi
7118   fi
7119   chmod u+w . 2>&5
7120   $RM conftest*
7121   # SGI C++ compiler will create directory out/ii_files/ for
7122   # template instantiation
7123   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7124   $RM out/* && rmdir out
7125   cd ..
7126   $RM -r conftest
7127   $RM conftest*
7128
7129fi
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7131$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7132
7133
7134
7135
7136
7137
7138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7139$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7140if ${lt_cv_prog_compiler_c_o+:} false; then :
7141  $as_echo_n "(cached) " >&6
7142else
7143  lt_cv_prog_compiler_c_o=no
7144   $RM -r conftest 2>/dev/null
7145   mkdir conftest
7146   cd conftest
7147   mkdir out
7148   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7149
7150   lt_compiler_flag="-o out/conftest2.$ac_objext"
7151   # Insert the option either (1) after the last *FLAGS variable, or
7152   # (2) before a word containing "conftest.", or (3) at the end.
7153   # Note that $ac_compile itself does not contain backslashes and begins
7154   # with a dollar sign (not a hyphen), so the echo should work correctly.
7155   lt_compile=`echo "$ac_compile" | $SED \
7156   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7157   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7158   -e 's:$: $lt_compiler_flag:'`
7159   (eval echo "\"\$as_me:7159: $lt_compile\"" >&5)
7160   (eval "$lt_compile" 2>out/conftest.err)
7161   ac_status=$?
7162   cat out/conftest.err >&5
7163   echo "$as_me:7163: \$? = $ac_status" >&5
7164   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7165   then
7166     # The compiler can only warn and ignore the option if not recognized
7167     # So say no if there are warnings
7168     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7169     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7170     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7171       lt_cv_prog_compiler_c_o=yes
7172     fi
7173   fi
7174   chmod u+w . 2>&5
7175   $RM conftest*
7176   # SGI C++ compiler will create directory out/ii_files/ for
7177   # template instantiation
7178   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7179   $RM out/* && rmdir out
7180   cd ..
7181   $RM -r conftest
7182   $RM conftest*
7183
7184fi
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7186$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7187
7188
7189
7190
7191hard_links="nottested"
7192if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7193  # do not overwrite the value of need_locks provided by the user
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7195$as_echo_n "checking if we can lock with hard links... " >&6; }
7196  hard_links=yes
7197  $RM conftest*
7198  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7199  touch conftest.a
7200  ln conftest.a conftest.b 2>&5 || hard_links=no
7201  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7203$as_echo "$hard_links" >&6; }
7204  if test "$hard_links" = no; then
7205    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7206$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7207    need_locks=warn
7208  fi
7209else
7210  need_locks=no
7211fi
7212
7213
7214
7215
7216
7217
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7219$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7220
7221  runpath_var=
7222  allow_undefined_flag=
7223  always_export_symbols=no
7224  archive_cmds=
7225  archive_expsym_cmds=
7226  compiler_needs_object=no
7227  enable_shared_with_static_runtimes=no
7228  export_dynamic_flag_spec=
7229  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7230  hardcode_automatic=no
7231  hardcode_direct=no
7232  hardcode_direct_absolute=no
7233  hardcode_libdir_flag_spec=
7234  hardcode_libdir_flag_spec_ld=
7235  hardcode_libdir_separator=
7236  hardcode_minus_L=no
7237  hardcode_shlibpath_var=unsupported
7238  inherit_rpath=no
7239  link_all_deplibs=unknown
7240  module_cmds=
7241  module_expsym_cmds=
7242  old_archive_from_new_cmds=
7243  old_archive_from_expsyms_cmds=
7244  thread_safe_flag_spec=
7245  whole_archive_flag_spec=
7246  # include_expsyms should be a list of space-separated symbols to be *always*
7247  # included in the symbol list
7248  include_expsyms=
7249  # exclude_expsyms can be an extended regexp of symbols to exclude
7250  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7251  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7252  # as well as any symbol that contains `d'.
7253  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7254  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7255  # platforms (ab)use it in PIC code, but their linkers get confused if
7256  # the symbol is explicitly referenced.  Since portable code cannot
7257  # rely on this symbol name, it's probably fine to never include it in
7258  # preloaded symbol tables.
7259  # Exclude shared library initialization/finalization symbols.
7260  extract_expsyms_cmds=
7261
7262  case $host_os in
7263  cygwin* | mingw* | pw32* | cegcc*)
7264    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7265    # When not using gcc, we currently assume that we are using
7266    # Microsoft Visual C++.
7267    if test "$GCC" != yes; then
7268      with_gnu_ld=no
7269    fi
7270    ;;
7271  interix*)
7272    # we just hope/assume this is gcc and not c89 (= MSVC++)
7273    with_gnu_ld=yes
7274    ;;
7275  openbsd*)
7276    with_gnu_ld=no
7277    ;;
7278  esac
7279
7280  ld_shlibs=yes
7281  if test "$with_gnu_ld" = yes; then
7282    # If archive_cmds runs LD, not CC, wlarc should be empty
7283    wlarc='${wl}'
7284
7285    # Set some defaults for GNU ld with shared library support. These
7286    # are reset later if shared libraries are not supported. Putting them
7287    # here allows them to be overridden if necessary.
7288    runpath_var=LD_RUN_PATH
7289    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7290    export_dynamic_flag_spec='${wl}--export-dynamic'
7291    # ancient GNU ld didn't support --whole-archive et. al.
7292    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7293      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7294    else
7295      whole_archive_flag_spec=
7296    fi
7297    supports_anon_versioning=no
7298    case `$LD -v 2>&1` in
7299      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7300      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7301      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7302      *\ 2.11.*) ;; # other 2.11 versions
7303      *) supports_anon_versioning=yes ;;
7304    esac
7305
7306    # See if GNU ld supports shared libraries.
7307    case $host_os in
7308    aix[3-9]*)
7309      # On AIX/PPC, the GNU linker is very broken
7310      if test "$host_cpu" != ia64; then
7311	ld_shlibs=no
7312	cat <<_LT_EOF 1>&2
7313
7314*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7315*** to be unable to reliably create shared libraries on AIX.
7316*** Therefore, libtool is disabling shared libraries support.  If you
7317*** really care for shared libraries, you may want to modify your PATH
7318*** so that a non-GNU linker is found, and then restart.
7319
7320_LT_EOF
7321      fi
7322      ;;
7323
7324    amigaos*)
7325      case $host_cpu in
7326      powerpc)
7327            # see comment about AmigaOS4 .so support
7328            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7329            archive_expsym_cmds=''
7330        ;;
7331      m68k)
7332            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)'
7333            hardcode_libdir_flag_spec='-L$libdir'
7334            hardcode_minus_L=yes
7335        ;;
7336      esac
7337      ;;
7338
7339    beos*)
7340      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7341	allow_undefined_flag=unsupported
7342	# Joseph Beckenbach <[email protected]> says some releases of gcc
7343	# support --undefined.  This deserves some investigation.  FIXME
7344	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7345      else
7346	ld_shlibs=no
7347      fi
7348      ;;
7349
7350    cygwin* | mingw* | pw32* | cegcc*)
7351      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7352      # as there is no search path for DLLs.
7353      hardcode_libdir_flag_spec='-L$libdir'
7354      allow_undefined_flag=unsupported
7355      always_export_symbols=no
7356      enable_shared_with_static_runtimes=yes
7357      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7358
7359      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7360        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7361	# If the export-symbols file already is a .def file (1st line
7362	# is EXPORTS), use it as is; otherwise, prepend...
7363	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7364	  cp $export_symbols $output_objdir/$soname.def;
7365	else
7366	  echo EXPORTS > $output_objdir/$soname.def;
7367	  cat $export_symbols >> $output_objdir/$soname.def;
7368	fi~
7369	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7370      else
7371	ld_shlibs=no
7372      fi
7373      ;;
7374
7375    interix[3-9]*)
7376      hardcode_direct=no
7377      hardcode_shlibpath_var=no
7378      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7379      export_dynamic_flag_spec='${wl}-E'
7380      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7381      # Instead, shared libraries are loaded at an image base (0x10000000 by
7382      # default) and relocated if they conflict, which is a slow very memory
7383      # consuming and fragmenting process.  To avoid this, we pick a random,
7384      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7385      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7386      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7387      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'
7388      ;;
7389
7390    gnu* | linux* | tpf* | k*bsd*-gnu)
7391      tmp_diet=no
7392      if test "$host_os" = linux-dietlibc; then
7393	case $cc_basename in
7394	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7395	esac
7396      fi
7397      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7398	 && test "$tmp_diet" = no
7399      then
7400	tmp_addflag=
7401	tmp_sharedflag='-shared'
7402	case $cc_basename,$host_cpu in
7403        pgcc*)				# Portland Group C compiler
7404	  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'
7405	  tmp_addflag=' $pic_flag'
7406	  ;;
7407	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7408	  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'
7409	  tmp_addflag=' $pic_flag -Mnomain' ;;
7410	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7411	  tmp_addflag=' -i_dynamic' ;;
7412	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7413	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7414	ifc* | ifort*)			# Intel Fortran compiler
7415	  tmp_addflag=' -nofor_main' ;;
7416	lf95*)				# Lahey Fortran 8.1
7417	  whole_archive_flag_spec=
7418	  tmp_sharedflag='--shared' ;;
7419	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7420	  tmp_sharedflag='-qmkshrobj'
7421	  tmp_addflag= ;;
7422	esac
7423	case `$CC -V 2>&1 | sed 5q` in
7424	*Sun\ C*)			# Sun C 5.9
7425	  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'
7426	  compiler_needs_object=yes
7427	  tmp_sharedflag='-G' ;;
7428	*Sun\ F*)			# Sun Fortran 8.3
7429	  tmp_sharedflag='-G' ;;
7430	esac
7431	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7432
7433        if test "x$supports_anon_versioning" = xyes; then
7434          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7435	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7436	    echo "local: *; };" >> $output_objdir/$libname.ver~
7437	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7438        fi
7439
7440	case $cc_basename in
7441	xlf*)
7442	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7443	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7444	  hardcode_libdir_flag_spec=
7445	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7446	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7447	  if test "x$supports_anon_versioning" = xyes; then
7448	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7449	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7450	      echo "local: *; };" >> $output_objdir/$libname.ver~
7451	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7452	  fi
7453	  ;;
7454	esac
7455      else
7456        ld_shlibs=no
7457      fi
7458      ;;
7459
7460    netbsd*)
7461      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7462	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7463	wlarc=
7464      else
7465	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7466	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7467      fi
7468      ;;
7469
7470    solaris*)
7471      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7472	ld_shlibs=no
7473	cat <<_LT_EOF 1>&2
7474
7475*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7476*** create shared libraries on Solaris systems.  Therefore, libtool
7477*** is disabling shared libraries support.  We urge you to upgrade GNU
7478*** binutils to release 2.9.1 or newer.  Another option is to modify
7479*** your PATH or compiler configuration so that the native linker is
7480*** used, and then restart.
7481
7482_LT_EOF
7483      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7484	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7485	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7486      else
7487	ld_shlibs=no
7488      fi
7489      ;;
7490
7491    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7492      case `$LD -v 2>&1` in
7493        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7494	ld_shlibs=no
7495	cat <<_LT_EOF 1>&2
7496
7497*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7498*** reliably create shared libraries on SCO systems.  Therefore, libtool
7499*** is disabling shared libraries support.  We urge you to upgrade GNU
7500*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7501*** your PATH or compiler configuration so that the native linker is
7502*** used, and then restart.
7503
7504_LT_EOF
7505	;;
7506	*)
7507	  # For security reasons, it is highly recommended that you always
7508	  # use absolute paths for naming shared libraries, and exclude the
7509	  # DT_RUNPATH tag from executables and libraries.  But doing so
7510	  # requires that you compile everything twice, which is a pain.
7511	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7512	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7513	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7514	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7515	  else
7516	    ld_shlibs=no
7517	  fi
7518	;;
7519      esac
7520      ;;
7521
7522    sunos4*)
7523      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7524      wlarc=
7525      hardcode_direct=yes
7526      hardcode_shlibpath_var=no
7527      ;;
7528
7529    *)
7530      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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    if test "$ld_shlibs" = no; then
7540      runpath_var=
7541      hardcode_libdir_flag_spec=
7542      export_dynamic_flag_spec=
7543      whole_archive_flag_spec=
7544    fi
7545  else
7546    # PORTME fill in a description of your system's linker (not GNU ld)
7547    case $host_os in
7548    aix3*)
7549      allow_undefined_flag=unsupported
7550      always_export_symbols=yes
7551      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'
7552      # Note: this linker hardcodes the directories in LIBPATH if there
7553      # are no directories specified by -L.
7554      hardcode_minus_L=yes
7555      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7556	# Neither direct hardcoding nor static linking is supported with a
7557	# broken collect2.
7558	hardcode_direct=unsupported
7559      fi
7560      ;;
7561
7562    aix[4-9]*)
7563      if test "$host_cpu" = ia64; then
7564	# On IA64, the linker does run time linking by default, so we don't
7565	# have to do anything special.
7566	aix_use_runtimelinking=no
7567	exp_sym_flag='-Bexport'
7568	no_entry_flag=""
7569      else
7570	# If we're using GNU nm, then we don't want the "-C" option.
7571	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7572	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7573	  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'
7574	else
7575	  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'
7576	fi
7577	aix_use_runtimelinking=no
7578
7579	# Test if we are trying to use run time linking or normal
7580	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7581	# need to do runtime linking.
7582	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7583	  for ld_flag in $LDFLAGS; do
7584	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7585	    aix_use_runtimelinking=yes
7586	    break
7587	  fi
7588	  done
7589	  ;;
7590	esac
7591
7592	exp_sym_flag='-bexport'
7593	no_entry_flag='-bnoentry'
7594      fi
7595
7596      # When large executables or shared objects are built, AIX ld can
7597      # have problems creating the table of contents.  If linking a library
7598      # or program results in "error TOC overflow" add -mminimal-toc to
7599      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7600      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7601
7602      archive_cmds=''
7603      hardcode_direct=yes
7604      hardcode_direct_absolute=yes
7605      hardcode_libdir_separator=':'
7606      link_all_deplibs=yes
7607      file_list_spec='${wl}-f,'
7608
7609      if test "$GCC" = yes; then
7610	case $host_os in aix4.[012]|aix4.[012].*)
7611	# We only want to do this on AIX 4.2 and lower, the check
7612	# below for broken collect2 doesn't work under 4.3+
7613	  collect2name=`${CC} -print-prog-name=collect2`
7614	  if test -f "$collect2name" &&
7615	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7616	  then
7617	  # We have reworked collect2
7618	  :
7619	  else
7620	  # We have old collect2
7621	  hardcode_direct=unsupported
7622	  # It fails to find uninstalled libraries when the uninstalled
7623	  # path is not listed in the libpath.  Setting hardcode_minus_L
7624	  # to unsupported forces relinking
7625	  hardcode_minus_L=yes
7626	  hardcode_libdir_flag_spec='-L$libdir'
7627	  hardcode_libdir_separator=
7628	  fi
7629	  ;;
7630	esac
7631	shared_flag='-shared'
7632	if test "$aix_use_runtimelinking" = yes; then
7633	  shared_flag="$shared_flag "'${wl}-G'
7634	fi
7635      else
7636	# not using gcc
7637	if test "$host_cpu" = ia64; then
7638	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7639	# chokes on -Wl,-G. The following line is correct:
7640	  shared_flag='-G'
7641	else
7642	  if test "$aix_use_runtimelinking" = yes; then
7643	    shared_flag='${wl}-G'
7644	  else
7645	    shared_flag='${wl}-bM:SRE'
7646	  fi
7647	fi
7648      fi
7649
7650      export_dynamic_flag_spec='${wl}-bexpall'
7651      # It seems that -bexpall does not export symbols beginning with
7652      # underscore (_), so it is better to generate a list of symbols to export.
7653      always_export_symbols=yes
7654      if test "$aix_use_runtimelinking" = yes; then
7655	# Warning - without using the other runtime loading flags (-brtl),
7656	# -berok will link without error, but may produce a broken library.
7657	allow_undefined_flag='-berok'
7658        # Determine the default libpath from the value encoded in an
7659        # empty executable.
7660        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661/* end confdefs.h.  */
7662
7663int
7664main ()
7665{
7666
7667  ;
7668  return 0;
7669}
7670_ACEOF
7671if ac_fn_c_try_link "$LINENO"; then :
7672
7673lt_aix_libpath_sed='
7674    /Import File Strings/,/^$/ {
7675	/^0/ {
7676	    s/^0  *\(.*\)$/\1/
7677	    p
7678	}
7679    }'
7680aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7681# Check for a 64-bit object if we didn't find anything.
7682if test -z "$aix_libpath"; then
7683  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7684fi
7685fi
7686rm -f core conftest.err conftest.$ac_objext \
7687    conftest$ac_exeext conftest.$ac_ext
7688if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7689
7690        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7691        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"
7692      else
7693	if test "$host_cpu" = ia64; then
7694	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7695	  allow_undefined_flag="-z nodefs"
7696	  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"
7697	else
7698	 # Determine the default libpath from the value encoded in an
7699	 # empty executable.
7700	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701/* end confdefs.h.  */
7702
7703int
7704main ()
7705{
7706
7707  ;
7708  return 0;
7709}
7710_ACEOF
7711if ac_fn_c_try_link "$LINENO"; then :
7712
7713lt_aix_libpath_sed='
7714    /Import File Strings/,/^$/ {
7715	/^0/ {
7716	    s/^0  *\(.*\)$/\1/
7717	    p
7718	}
7719    }'
7720aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7721# Check for a 64-bit object if we didn't find anything.
7722if test -z "$aix_libpath"; then
7723  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7724fi
7725fi
7726rm -f core conftest.err conftest.$ac_objext \
7727    conftest$ac_exeext conftest.$ac_ext
7728if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7729
7730	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7731	  # Warning - without using the other run time loading flags,
7732	  # -berok will link without error, but may produce a broken library.
7733	  no_undefined_flag=' ${wl}-bernotok'
7734	  allow_undefined_flag=' ${wl}-berok'
7735	  # Exported symbols can be pulled into shared objects from archives
7736	  whole_archive_flag_spec='$convenience'
7737	  archive_cmds_need_lc=yes
7738	  # This is similar to how AIX traditionally builds its shared libraries.
7739	  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'
7740	fi
7741      fi
7742      ;;
7743
7744    amigaos*)
7745      case $host_cpu in
7746      powerpc)
7747            # see comment about AmigaOS4 .so support
7748            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7749            archive_expsym_cmds=''
7750        ;;
7751      m68k)
7752            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)'
7753            hardcode_libdir_flag_spec='-L$libdir'
7754            hardcode_minus_L=yes
7755        ;;
7756      esac
7757      ;;
7758
7759    bsdi[45]*)
7760      export_dynamic_flag_spec=-rdynamic
7761      ;;
7762
7763    cygwin* | mingw* | pw32* | cegcc*)
7764      # When not using gcc, we currently assume that we are using
7765      # Microsoft Visual C++.
7766      # hardcode_libdir_flag_spec is actually meaningless, as there is
7767      # no search path for DLLs.
7768      hardcode_libdir_flag_spec=' '
7769      allow_undefined_flag=unsupported
7770      # Tell ltmain to make .lib files, not .a files.
7771      libext=lib
7772      # Tell ltmain to make .dll files, not .so files.
7773      shrext_cmds=".dll"
7774      # FIXME: Setting linknames here is a bad hack.
7775      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7776      # The linker will automatically build a .lib file if we build a DLL.
7777      old_archive_from_new_cmds='true'
7778      # FIXME: Should let the user specify the lib program.
7779      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7780      fix_srcfile_path='`cygpath -w "$srcfile"`'
7781      enable_shared_with_static_runtimes=yes
7782      ;;
7783
7784    darwin* | rhapsody*)
7785
7786
7787  archive_cmds_need_lc=no
7788  hardcode_direct=no
7789  hardcode_automatic=yes
7790  hardcode_shlibpath_var=unsupported
7791  whole_archive_flag_spec=''
7792  link_all_deplibs=yes
7793  allow_undefined_flag="$_lt_dar_allow_undefined"
7794  case $cc_basename in
7795     ifort*) _lt_dar_can_shared=yes ;;
7796     *) _lt_dar_can_shared=$GCC ;;
7797  esac
7798  if test "$_lt_dar_can_shared" = "yes"; then
7799    output_verbose_link_cmd=echo
7800    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7801    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7802    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}"
7803    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}"
7804
7805  else
7806  ld_shlibs=no
7807  fi
7808
7809      ;;
7810
7811    dgux*)
7812      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7813      hardcode_libdir_flag_spec='-L$libdir'
7814      hardcode_shlibpath_var=no
7815      ;;
7816
7817    freebsd1*)
7818      ld_shlibs=no
7819      ;;
7820
7821    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7822    # support.  Future versions do this automatically, but an explicit c++rt0.o
7823    # does not break anything, and helps significantly (at the cost of a little
7824    # extra space).
7825    freebsd2.2*)
7826      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7827      hardcode_libdir_flag_spec='-R$libdir'
7828      hardcode_direct=yes
7829      hardcode_shlibpath_var=no
7830      ;;
7831
7832    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7833    freebsd2*)
7834      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7835      hardcode_direct=yes
7836      hardcode_minus_L=yes
7837      hardcode_shlibpath_var=no
7838      ;;
7839
7840    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7841    freebsd* | dragonfly*)
7842      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7843      hardcode_libdir_flag_spec='-R$libdir'
7844      hardcode_direct=yes
7845      hardcode_shlibpath_var=no
7846      ;;
7847
7848    hpux9*)
7849      if test "$GCC" = yes; then
7850	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'
7851      else
7852	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'
7853      fi
7854      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7855      hardcode_libdir_separator=:
7856      hardcode_direct=yes
7857
7858      # hardcode_minus_L: Not really in the search PATH,
7859      # but as the default location of the library.
7860      hardcode_minus_L=yes
7861      export_dynamic_flag_spec='${wl}-E'
7862      ;;
7863
7864    hpux10*)
7865      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7866	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7867      else
7868	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7869      fi
7870      if test "$with_gnu_ld" = no; then
7871	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7872	hardcode_libdir_flag_spec_ld='+b $libdir'
7873	hardcode_libdir_separator=:
7874	hardcode_direct=yes
7875	hardcode_direct_absolute=yes
7876	export_dynamic_flag_spec='${wl}-E'
7877	# hardcode_minus_L: Not really in the search PATH,
7878	# but as the default location of the library.
7879	hardcode_minus_L=yes
7880      fi
7881      ;;
7882
7883    hpux11*)
7884      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7885	case $host_cpu in
7886	hppa*64*)
7887	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7888	  ;;
7889	ia64*)
7890	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7891	  ;;
7892	*)
7893	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7894	  ;;
7895	esac
7896      else
7897	case $host_cpu in
7898	hppa*64*)
7899	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7900	  ;;
7901	ia64*)
7902	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7903	  ;;
7904	*)
7905	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7906	  ;;
7907	esac
7908      fi
7909      if test "$with_gnu_ld" = no; then
7910	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7911	hardcode_libdir_separator=:
7912
7913	case $host_cpu in
7914	hppa*64*|ia64*)
7915	  hardcode_direct=no
7916	  hardcode_shlibpath_var=no
7917	  ;;
7918	*)
7919	  hardcode_direct=yes
7920	  hardcode_direct_absolute=yes
7921	  export_dynamic_flag_spec='${wl}-E'
7922
7923	  # hardcode_minus_L: Not really in the search PATH,
7924	  # but as the default location of the library.
7925	  hardcode_minus_L=yes
7926	  ;;
7927	esac
7928      fi
7929      ;;
7930
7931    irix5* | irix6* | nonstopux*)
7932      if test "$GCC" = yes; then
7933	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'
7934	# Try to use the -exported_symbol ld option, if it does not
7935	# work, assume that -exports_file does not work either and
7936	# implicitly export all symbols.
7937        save_LDFLAGS="$LDFLAGS"
7938        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7939        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940/* end confdefs.h.  */
7941int foo(void) {}
7942_ACEOF
7943if ac_fn_c_try_link "$LINENO"; then :
7944  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'
7945
7946fi
7947rm -f core conftest.err conftest.$ac_objext \
7948    conftest$ac_exeext conftest.$ac_ext
7949        LDFLAGS="$save_LDFLAGS"
7950      else
7951	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'
7952	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'
7953      fi
7954      archive_cmds_need_lc='no'
7955      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7956      hardcode_libdir_separator=:
7957      inherit_rpath=yes
7958      link_all_deplibs=yes
7959      ;;
7960
7961    netbsd*)
7962      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7963	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7964      else
7965	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7966      fi
7967      hardcode_libdir_flag_spec='-R$libdir'
7968      hardcode_direct=yes
7969      hardcode_shlibpath_var=no
7970      ;;
7971
7972    newsos6)
7973      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7974      hardcode_direct=yes
7975      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7976      hardcode_libdir_separator=:
7977      hardcode_shlibpath_var=no
7978      ;;
7979
7980    *nto* | *qnx*)
7981      ;;
7982
7983    openbsd*)
7984      if test -f /usr/libexec/ld.so; then
7985	hardcode_direct=yes
7986	hardcode_shlibpath_var=no
7987	hardcode_direct_absolute=yes
7988	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7989	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7990	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7991	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7992	  export_dynamic_flag_spec='${wl}-E'
7993	else
7994	  case $host_os in
7995	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7996	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7997	     hardcode_libdir_flag_spec='-R$libdir'
7998	     ;;
7999	   *)
8000	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8001	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8002	     ;;
8003	  esac
8004	fi
8005      else
8006	ld_shlibs=no
8007      fi
8008      ;;
8009
8010    os2*)
8011      hardcode_libdir_flag_spec='-L$libdir'
8012      hardcode_minus_L=yes
8013      allow_undefined_flag=unsupported
8014      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'
8015      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8016      ;;
8017
8018    osf3*)
8019      if test "$GCC" = yes; then
8020	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8021	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'
8022      else
8023	allow_undefined_flag=' -expect_unresolved \*'
8024	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'
8025      fi
8026      archive_cmds_need_lc='no'
8027      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8028      hardcode_libdir_separator=:
8029      ;;
8030
8031    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8032      if test "$GCC" = yes; then
8033	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8034	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'
8035	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8036      else
8037	allow_undefined_flag=' -expect_unresolved \*'
8038	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'
8039	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~
8040	$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'
8041
8042	# Both c and cxx compiler support -rpath directly
8043	hardcode_libdir_flag_spec='-rpath $libdir'
8044      fi
8045      archive_cmds_need_lc='no'
8046      hardcode_libdir_separator=:
8047      ;;
8048
8049    solaris*)
8050      no_undefined_flag=' -z defs'
8051      if test "$GCC" = yes; then
8052	wlarc='${wl}'
8053	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8054	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8055	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8056      else
8057	case `$CC -V 2>&1` in
8058	*"Compilers 5.0"*)
8059	  wlarc=''
8060	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8061	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8062	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8063	  ;;
8064	*)
8065	  wlarc='${wl}'
8066	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8067	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8068	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8069	  ;;
8070	esac
8071      fi
8072      hardcode_libdir_flag_spec='-R$libdir'
8073      hardcode_shlibpath_var=no
8074      case $host_os in
8075      solaris2.[0-5] | solaris2.[0-5].*) ;;
8076      *)
8077	# The compiler driver will combine and reorder linker options,
8078	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8079	# but is careful enough not to reorder.
8080	# Supported since Solaris 2.6 (maybe 2.5.1?)
8081	if test "$GCC" = yes; then
8082	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8083	else
8084	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8085	fi
8086	;;
8087      esac
8088      link_all_deplibs=yes
8089      ;;
8090
8091    sunos4*)
8092      if test "x$host_vendor" = xsequent; then
8093	# Use $CC to link under sequent, because it throws in some extra .o
8094	# files that make .init and .fini sections work.
8095	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8096      else
8097	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8098      fi
8099      hardcode_libdir_flag_spec='-L$libdir'
8100      hardcode_direct=yes
8101      hardcode_minus_L=yes
8102      hardcode_shlibpath_var=no
8103      ;;
8104
8105    sysv4)
8106      case $host_vendor in
8107	sni)
8108	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8109	  hardcode_direct=yes # is this really true???
8110	;;
8111	siemens)
8112	  ## LD is ld it makes a PLAMLIB
8113	  ## CC just makes a GrossModule.
8114	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8115	  reload_cmds='$CC -r -o $output$reload_objs'
8116	  hardcode_direct=no
8117        ;;
8118	motorola)
8119	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8120	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8121	;;
8122      esac
8123      runpath_var='LD_RUN_PATH'
8124      hardcode_shlibpath_var=no
8125      ;;
8126
8127    sysv4.3*)
8128      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8129      hardcode_shlibpath_var=no
8130      export_dynamic_flag_spec='-Bexport'
8131      ;;
8132
8133    sysv4*MP*)
8134      if test -d /usr/nec; then
8135	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8136	hardcode_shlibpath_var=no
8137	runpath_var=LD_RUN_PATH
8138	hardcode_runpath_var=yes
8139	ld_shlibs=yes
8140      fi
8141      ;;
8142
8143    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8144      no_undefined_flag='${wl}-z,text'
8145      archive_cmds_need_lc=no
8146      hardcode_shlibpath_var=no
8147      runpath_var='LD_RUN_PATH'
8148
8149      if test "$GCC" = yes; then
8150	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8151	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8152      else
8153	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8154	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8155      fi
8156      ;;
8157
8158    sysv5* | sco3.2v5* | sco5v6*)
8159      # Note: We can NOT use -z defs as we might desire, because we do not
8160      # link with -lc, and that would cause any symbols used from libc to
8161      # always be unresolved, which means just about no library would
8162      # ever link correctly.  If we're not using GNU ld we use -z text
8163      # though, which does catch some bad symbols but isn't as heavy-handed
8164      # as -z defs.
8165      no_undefined_flag='${wl}-z,text'
8166      allow_undefined_flag='${wl}-z,nodefs'
8167      archive_cmds_need_lc=no
8168      hardcode_shlibpath_var=no
8169      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8170      hardcode_libdir_separator=':'
8171      link_all_deplibs=yes
8172      export_dynamic_flag_spec='${wl}-Bexport'
8173      runpath_var='LD_RUN_PATH'
8174
8175      if test "$GCC" = yes; then
8176	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8177	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8178      else
8179	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8180	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8181      fi
8182      ;;
8183
8184    uts4*)
8185      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8186      hardcode_libdir_flag_spec='-L$libdir'
8187      hardcode_shlibpath_var=no
8188      ;;
8189
8190    *)
8191      ld_shlibs=no
8192      ;;
8193    esac
8194
8195    if test x$host_vendor = xsni; then
8196      case $host in
8197      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8198	export_dynamic_flag_spec='${wl}-Blargedynsym'
8199	;;
8200      esac
8201    fi
8202  fi
8203
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8205$as_echo "$ld_shlibs" >&6; }
8206test "$ld_shlibs" = no && can_build_shared=no
8207
8208with_gnu_ld=$with_gnu_ld
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224#
8225# Do we need to explicitly link libc?
8226#
8227case "x$archive_cmds_need_lc" in
8228x|xyes)
8229  # Assume -lc should be added
8230  archive_cmds_need_lc=yes
8231
8232  if test "$enable_shared" = yes && test "$GCC" = yes; then
8233    case $archive_cmds in
8234    *'~'*)
8235      # FIXME: we may have to deal with multi-command sequences.
8236      ;;
8237    '$CC '*)
8238      # Test whether the compiler implicitly links with -lc since on some
8239      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8240      # to ld, don't add -lc before -lgcc.
8241      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8242$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8243      $RM conftest*
8244      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8245
8246      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8247  (eval $ac_compile) 2>&5
8248  ac_status=$?
8249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8250  test $ac_status = 0; } 2>conftest.err; then
8251        soname=conftest
8252        lib=conftest
8253        libobjs=conftest.$ac_objext
8254        deplibs=
8255        wl=$lt_prog_compiler_wl
8256	pic_flag=$lt_prog_compiler_pic
8257        compiler_flags=-v
8258        linker_flags=-v
8259        verstring=
8260        output_objdir=.
8261        libname=conftest
8262        lt_save_allow_undefined_flag=$allow_undefined_flag
8263        allow_undefined_flag=
8264        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8265  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8266  ac_status=$?
8267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8268  test $ac_status = 0; }
8269        then
8270	  archive_cmds_need_lc=no
8271        else
8272	  archive_cmds_need_lc=yes
8273        fi
8274        allow_undefined_flag=$lt_save_allow_undefined_flag
8275      else
8276        cat conftest.err 1>&5
8277      fi
8278      $RM conftest*
8279      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8280$as_echo "$archive_cmds_need_lc" >&6; }
8281      ;;
8282    esac
8283  fi
8284  ;;
8285esac
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8444$as_echo_n "checking dynamic linker characteristics... " >&6; }
8445
8446if test "$GCC" = yes; then
8447  case $host_os in
8448    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8449    *) lt_awk_arg="/^libraries:/" ;;
8450  esac
8451  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8452  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8453    # if the path contains ";" then we assume it to be the separator
8454    # otherwise default to the standard path separator (i.e. ":") - it is
8455    # assumed that no part of a normal pathname contains ";" but that should
8456    # okay in the real world where ";" in dirpaths is itself problematic.
8457    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8458  else
8459    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8460  fi
8461  # Ok, now we have the path, separated by spaces, we can step through it
8462  # and add multilib dir if necessary.
8463  lt_tmp_lt_search_path_spec=
8464  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8465  for lt_sys_path in $lt_search_path_spec; do
8466    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8467      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8468    else
8469      test -d "$lt_sys_path" && \
8470	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8471    fi
8472  done
8473  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8474BEGIN {RS=" "; FS="/|\n";} {
8475  lt_foo="";
8476  lt_count=0;
8477  for (lt_i = NF; lt_i > 0; lt_i--) {
8478    if ($lt_i != "" && $lt_i != ".") {
8479      if ($lt_i == "..") {
8480        lt_count++;
8481      } else {
8482        if (lt_count == 0) {
8483          lt_foo="/" $lt_i lt_foo;
8484        } else {
8485          lt_count--;
8486        }
8487      }
8488    }
8489  }
8490  if (lt_foo != "") { lt_freq[lt_foo]++; }
8491  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8492}'`
8493  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8494else
8495  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8496fi
8497library_names_spec=
8498libname_spec='lib$name'
8499soname_spec=
8500shrext_cmds=".so"
8501postinstall_cmds=
8502postuninstall_cmds=
8503finish_cmds=
8504finish_eval=
8505shlibpath_var=
8506shlibpath_overrides_runpath=unknown
8507version_type=none
8508dynamic_linker="$host_os ld.so"
8509sys_lib_dlsearch_path_spec="/lib /usr/lib"
8510need_lib_prefix=unknown
8511hardcode_into_libs=no
8512
8513# when you set need_version to no, make sure it does not cause -set_version
8514# flags to be left without arguments
8515need_version=unknown
8516
8517case $host_os in
8518aix3*)
8519  version_type=linux
8520  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8521  shlibpath_var=LIBPATH
8522
8523  # AIX 3 has no versioning support, so we append a major version to the name.
8524  soname_spec='${libname}${release}${shared_ext}$major'
8525  ;;
8526
8527aix[4-9]*)
8528  version_type=linux
8529  need_lib_prefix=no
8530  need_version=no
8531  hardcode_into_libs=yes
8532  if test "$host_cpu" = ia64; then
8533    # AIX 5 supports IA64
8534    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8535    shlibpath_var=LD_LIBRARY_PATH
8536  else
8537    # With GCC up to 2.95.x, collect2 would create an import file
8538    # for dependence libraries.  The import file would start with
8539    # the line `#! .'.  This would cause the generated library to
8540    # depend on `.', always an invalid library.  This was fixed in
8541    # development snapshots of GCC prior to 3.0.
8542    case $host_os in
8543      aix4 | aix4.[01] | aix4.[01].*)
8544      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8545	   echo ' yes '
8546	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8547	:
8548      else
8549	can_build_shared=no
8550      fi
8551      ;;
8552    esac
8553    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8554    # soname into executable. Probably we can add versioning support to
8555    # collect2, so additional links can be useful in future.
8556    if test "$aix_use_runtimelinking" = yes; then
8557      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8558      # instead of lib<name>.a to let people know that these are not
8559      # typical AIX shared libraries.
8560      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561    else
8562      # We preserve .a as extension for shared libraries through AIX4.2
8563      # and later when we are not doing run time linking.
8564      library_names_spec='${libname}${release}.a $libname.a'
8565      soname_spec='${libname}${release}${shared_ext}$major'
8566    fi
8567    shlibpath_var=LIBPATH
8568  fi
8569  ;;
8570
8571amigaos*)
8572  case $host_cpu in
8573  powerpc)
8574    # Since July 2007 AmigaOS4 officially supports .so libraries.
8575    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8576    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8577    ;;
8578  m68k)
8579    library_names_spec='$libname.ixlibrary $libname.a'
8580    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8581    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'
8582    ;;
8583  esac
8584  ;;
8585
8586beos*)
8587  library_names_spec='${libname}${shared_ext}'
8588  dynamic_linker="$host_os ld.so"
8589  shlibpath_var=LIBRARY_PATH
8590  ;;
8591
8592bsdi[45]*)
8593  version_type=linux
8594  need_version=no
8595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8596  soname_spec='${libname}${release}${shared_ext}$major'
8597  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8598  shlibpath_var=LD_LIBRARY_PATH
8599  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8600  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8601  # the default ld.so.conf also contains /usr/contrib/lib and
8602  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8603  # libtool to hard-code these into programs
8604  ;;
8605
8606cygwin* | mingw* | pw32* | cegcc*)
8607  version_type=windows
8608  shrext_cmds=".dll"
8609  need_version=no
8610  need_lib_prefix=no
8611
8612  case $GCC,$host_os in
8613  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8614    library_names_spec='$libname.dll.a'
8615    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8616    postinstall_cmds='base_file=`basename \${file}`~
8617      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8618      dldir=$destdir/`dirname \$dlpath`~
8619      test -d \$dldir || mkdir -p \$dldir~
8620      $install_prog $dir/$dlname \$dldir/$dlname~
8621      chmod a+x \$dldir/$dlname~
8622      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8623        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8624      fi'
8625    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8626      dlpath=$dir/\$dldll~
8627       $RM \$dlpath'
8628    shlibpath_overrides_runpath=yes
8629
8630    case $host_os in
8631    cygwin*)
8632      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8633      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8634      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8635      ;;
8636    mingw* | cegcc*)
8637      # MinGW DLLs use traditional 'lib' prefix
8638      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8639      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8640      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8641        # It is most probably a Windows format PATH printed by
8642        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8643        # path with ; separators, and with drive letters. We can handle the
8644        # drive letters (cygwin fileutils understands them), so leave them,
8645        # especially as we might pass files found there to a mingw objdump,
8646        # which wouldn't understand a cygwinified path. Ahh.
8647        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8648      else
8649        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8650      fi
8651      ;;
8652    pw32*)
8653      # pw32 DLLs use 'pw' prefix rather than 'lib'
8654      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8655      ;;
8656    esac
8657    ;;
8658
8659  *)
8660    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8661    ;;
8662  esac
8663  dynamic_linker='Win32 ld.exe'
8664  # FIXME: first we should search . and the directory the executable is in
8665  shlibpath_var=PATH
8666  ;;
8667
8668darwin* | rhapsody*)
8669  dynamic_linker="$host_os dyld"
8670  version_type=darwin
8671  need_lib_prefix=no
8672  need_version=no
8673  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8674  soname_spec='${libname}${release}${major}$shared_ext'
8675  shlibpath_overrides_runpath=yes
8676  shlibpath_var=DYLD_LIBRARY_PATH
8677  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8678
8679  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8680  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8681  ;;
8682
8683dgux*)
8684  version_type=linux
8685  need_lib_prefix=no
8686  need_version=no
8687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8688  soname_spec='${libname}${release}${shared_ext}$major'
8689  shlibpath_var=LD_LIBRARY_PATH
8690  ;;
8691
8692freebsd1*)
8693  dynamic_linker=no
8694  ;;
8695
8696freebsd* | dragonfly*)
8697  # DragonFly does not have aout.  When/if they implement a new
8698  # versioning mechanism, adjust this.
8699  if test -x /usr/bin/objformat; then
8700    objformat=`/usr/bin/objformat`
8701  else
8702    case $host_os in
8703    freebsd[123]*) objformat=aout ;;
8704    *) objformat=elf ;;
8705    esac
8706  fi
8707  # Handle Gentoo/FreeBSD as it was Linux
8708  case $host_vendor in
8709    gentoo)
8710      version_type=linux ;;
8711    *)
8712      version_type=freebsd-$objformat ;;
8713  esac
8714
8715  case $version_type in
8716    freebsd-elf*)
8717      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8718      need_version=no
8719      need_lib_prefix=no
8720      ;;
8721    freebsd-*)
8722      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8723      need_version=yes
8724      ;;
8725    linux)
8726      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8727      soname_spec='${libname}${release}${shared_ext}$major'
8728      need_lib_prefix=no
8729      need_version=no
8730      ;;
8731  esac
8732  shlibpath_var=LD_LIBRARY_PATH
8733  case $host_os in
8734  freebsd2*)
8735    shlibpath_overrides_runpath=yes
8736    ;;
8737  freebsd3.[01]* | freebsdelf3.[01]*)
8738    shlibpath_overrides_runpath=yes
8739    hardcode_into_libs=yes
8740    ;;
8741  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8742  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8743    shlibpath_overrides_runpath=no
8744    hardcode_into_libs=yes
8745    ;;
8746  *) # from 4.6 on, and DragonFly
8747    shlibpath_overrides_runpath=yes
8748    hardcode_into_libs=yes
8749    ;;
8750  esac
8751  ;;
8752
8753gnu*)
8754  version_type=linux
8755  need_lib_prefix=no
8756  need_version=no
8757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8758  soname_spec='${libname}${release}${shared_ext}$major'
8759  shlibpath_var=LD_LIBRARY_PATH
8760  hardcode_into_libs=yes
8761  ;;
8762
8763hpux9* | hpux10* | hpux11*)
8764  # Give a soname corresponding to the major version so that dld.sl refuses to
8765  # link against other versions.
8766  version_type=sunos
8767  need_lib_prefix=no
8768  need_version=no
8769  case $host_cpu in
8770  ia64*)
8771    shrext_cmds='.so'
8772    hardcode_into_libs=yes
8773    dynamic_linker="$host_os dld.so"
8774    shlibpath_var=LD_LIBRARY_PATH
8775    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8776    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8777    soname_spec='${libname}${release}${shared_ext}$major'
8778    if test "X$HPUX_IA64_MODE" = X32; then
8779      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8780    else
8781      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8782    fi
8783    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8784    ;;
8785  hppa*64*)
8786    shrext_cmds='.sl'
8787    hardcode_into_libs=yes
8788    dynamic_linker="$host_os dld.sl"
8789    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8790    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8791    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8792    soname_spec='${libname}${release}${shared_ext}$major'
8793    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8794    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8795    ;;
8796  *)
8797    shrext_cmds='.sl'
8798    dynamic_linker="$host_os dld.sl"
8799    shlibpath_var=SHLIB_PATH
8800    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8801    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802    soname_spec='${libname}${release}${shared_ext}$major'
8803    ;;
8804  esac
8805  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8806  postinstall_cmds='chmod 555 $lib'
8807  ;;
8808
8809interix[3-9]*)
8810  version_type=linux
8811  need_lib_prefix=no
8812  need_version=no
8813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8814  soname_spec='${libname}${release}${shared_ext}$major'
8815  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8816  shlibpath_var=LD_LIBRARY_PATH
8817  shlibpath_overrides_runpath=no
8818  hardcode_into_libs=yes
8819  ;;
8820
8821irix5* | irix6* | nonstopux*)
8822  case $host_os in
8823    nonstopux*) version_type=nonstopux ;;
8824    *)
8825	if test "$lt_cv_prog_gnu_ld" = yes; then
8826		version_type=linux
8827	else
8828		version_type=irix
8829	fi ;;
8830  esac
8831  need_lib_prefix=no
8832  need_version=no
8833  soname_spec='${libname}${release}${shared_ext}$major'
8834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8835  case $host_os in
8836  irix5* | nonstopux*)
8837    libsuff= shlibsuff=
8838    ;;
8839  *)
8840    case $LD in # libtool.m4 will add one of these switches to LD
8841    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8842      libsuff= shlibsuff= libmagic=32-bit;;
8843    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8844      libsuff=32 shlibsuff=N32 libmagic=N32;;
8845    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8846      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8847    *) libsuff= shlibsuff= libmagic=never-match;;
8848    esac
8849    ;;
8850  esac
8851  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8852  shlibpath_overrides_runpath=no
8853  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8854  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8855  hardcode_into_libs=yes
8856  ;;
8857
8858# No shared lib support for Linux oldld, aout, or coff.
8859linux*oldld* | linux*aout* | linux*coff*)
8860  dynamic_linker=no
8861  ;;
8862
8863# This must be Linux ELF.
8864linux* | k*bsd*-gnu)
8865  version_type=linux
8866  need_lib_prefix=no
8867  need_version=no
8868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869  soname_spec='${libname}${release}${shared_ext}$major'
8870  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8871  shlibpath_var=LD_LIBRARY_PATH
8872  shlibpath_overrides_runpath=no
8873  # Some binutils ld are patched to set DT_RUNPATH
8874  save_LDFLAGS=$LDFLAGS
8875  save_libdir=$libdir
8876  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8877       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879/* end confdefs.h.  */
8880
8881int
8882main ()
8883{
8884
8885  ;
8886  return 0;
8887}
8888_ACEOF
8889if ac_fn_c_try_link "$LINENO"; then :
8890  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8891  shlibpath_overrides_runpath=yes
8892fi
8893fi
8894rm -f core conftest.err conftest.$ac_objext \
8895    conftest$ac_exeext conftest.$ac_ext
8896  LDFLAGS=$save_LDFLAGS
8897  libdir=$save_libdir
8898
8899  # This implies no fast_install, which is unacceptable.
8900  # Some rework will be needed to allow for fast_install
8901  # before this can be enabled.
8902  hardcode_into_libs=yes
8903
8904  # Append ld.so.conf contents to the search path
8905  if test -f /etc/ld.so.conf; then
8906    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' ' '`
8907    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8908  fi
8909
8910  # We used to test for /lib/ld.so.1 and disable shared libraries on
8911  # powerpc, because MkLinux only supported shared libraries with the
8912  # GNU dynamic linker.  Since this was broken with cross compilers,
8913  # most powerpc-linux boxes support dynamic linking these days and
8914  # people can always --disable-shared, the test was removed, and we
8915  # assume the GNU/Linux dynamic linker is in use.
8916  dynamic_linker='GNU/Linux ld.so'
8917  ;;
8918
8919netbsd*)
8920  version_type=sunos
8921  need_lib_prefix=no
8922  need_version=no
8923  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8924    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8925    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8926    dynamic_linker='NetBSD (a.out) ld.so'
8927  else
8928    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8929    soname_spec='${libname}${release}${shared_ext}$major'
8930    dynamic_linker='NetBSD ld.elf_so'
8931  fi
8932  shlibpath_var=LD_LIBRARY_PATH
8933  shlibpath_overrides_runpath=yes
8934  hardcode_into_libs=yes
8935  ;;
8936
8937newsos6)
8938  version_type=linux
8939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940  shlibpath_var=LD_LIBRARY_PATH
8941  shlibpath_overrides_runpath=yes
8942  ;;
8943
8944*nto* | *qnx*)
8945  version_type=qnx
8946  need_lib_prefix=no
8947  need_version=no
8948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949  soname_spec='${libname}${release}${shared_ext}$major'
8950  shlibpath_var=LD_LIBRARY_PATH
8951  shlibpath_overrides_runpath=no
8952  hardcode_into_libs=yes
8953  dynamic_linker='ldqnx.so'
8954  ;;
8955
8956openbsd*)
8957  version_type=sunos
8958  sys_lib_dlsearch_path_spec="/usr/lib"
8959  need_lib_prefix=no
8960  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8961  case $host_os in
8962    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
8963    *)				need_version=no  ;;
8964  esac
8965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8966  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8967  shlibpath_var=LD_LIBRARY_PATH
8968  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8969    case $host_os in
8970      openbsd2.[89] | openbsd2.[89].*)
8971	shlibpath_overrides_runpath=no
8972	;;
8973      *)
8974	shlibpath_overrides_runpath=yes
8975	;;
8976      esac
8977  else
8978    shlibpath_overrides_runpath=yes
8979  fi
8980  ;;
8981
8982os2*)
8983  libname_spec='$name'
8984  shrext_cmds=".dll"
8985  need_lib_prefix=no
8986  library_names_spec='$libname${shared_ext} $libname.a'
8987  dynamic_linker='OS/2 ld.exe'
8988  shlibpath_var=LIBPATH
8989  ;;
8990
8991osf3* | osf4* | osf5*)
8992  version_type=osf
8993  need_lib_prefix=no
8994  need_version=no
8995  soname_spec='${libname}${release}${shared_ext}$major'
8996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997  shlibpath_var=LD_LIBRARY_PATH
8998  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8999  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9000  ;;
9001
9002rdos*)
9003  dynamic_linker=no
9004  ;;
9005
9006solaris*)
9007  version_type=linux
9008  need_lib_prefix=no
9009  need_version=no
9010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011  soname_spec='${libname}${release}${shared_ext}$major'
9012  shlibpath_var=LD_LIBRARY_PATH
9013  shlibpath_overrides_runpath=yes
9014  hardcode_into_libs=yes
9015  # ldd complains unless libraries are executable
9016  postinstall_cmds='chmod +x $lib'
9017  ;;
9018
9019sunos4*)
9020  version_type=sunos
9021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9022  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9023  shlibpath_var=LD_LIBRARY_PATH
9024  shlibpath_overrides_runpath=yes
9025  if test "$with_gnu_ld" = yes; then
9026    need_lib_prefix=no
9027  fi
9028  need_version=yes
9029  ;;
9030
9031sysv4 | sysv4.3*)
9032  version_type=linux
9033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034  soname_spec='${libname}${release}${shared_ext}$major'
9035  shlibpath_var=LD_LIBRARY_PATH
9036  case $host_vendor in
9037    sni)
9038      shlibpath_overrides_runpath=no
9039      need_lib_prefix=no
9040      runpath_var=LD_RUN_PATH
9041      ;;
9042    siemens)
9043      need_lib_prefix=no
9044      ;;
9045    motorola)
9046      need_lib_prefix=no
9047      need_version=no
9048      shlibpath_overrides_runpath=no
9049      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9050      ;;
9051  esac
9052  ;;
9053
9054sysv4*MP*)
9055  if test -d /usr/nec ;then
9056    version_type=linux
9057    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9058    soname_spec='$libname${shared_ext}.$major'
9059    shlibpath_var=LD_LIBRARY_PATH
9060  fi
9061  ;;
9062
9063sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9064  version_type=freebsd-elf
9065  need_lib_prefix=no
9066  need_version=no
9067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9068  soname_spec='${libname}${release}${shared_ext}$major'
9069  shlibpath_var=LD_LIBRARY_PATH
9070  shlibpath_overrides_runpath=yes
9071  hardcode_into_libs=yes
9072  if test "$with_gnu_ld" = yes; then
9073    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9074  else
9075    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9076    case $host_os in
9077      sco3.2v5*)
9078        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9079	;;
9080    esac
9081  fi
9082  sys_lib_dlsearch_path_spec='/usr/lib'
9083  ;;
9084
9085tpf*)
9086  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9087  version_type=linux
9088  need_lib_prefix=no
9089  need_version=no
9090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091  shlibpath_var=LD_LIBRARY_PATH
9092  shlibpath_overrides_runpath=no
9093  hardcode_into_libs=yes
9094  ;;
9095
9096uts4*)
9097  version_type=linux
9098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099  soname_spec='${libname}${release}${shared_ext}$major'
9100  shlibpath_var=LD_LIBRARY_PATH
9101  ;;
9102
9103*)
9104  dynamic_linker=no
9105  ;;
9106esac
9107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9108$as_echo "$dynamic_linker" >&6; }
9109test "$dynamic_linker" = no && can_build_shared=no
9110
9111variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9112if test "$GCC" = yes; then
9113  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9114fi
9115
9116if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9117  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9118fi
9119if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9120  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9121fi
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9210$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9211hardcode_action=
9212if test -n "$hardcode_libdir_flag_spec" ||
9213   test -n "$runpath_var" ||
9214   test "X$hardcode_automatic" = "Xyes" ; then
9215
9216  # We can hardcode non-existent directories.
9217  if test "$hardcode_direct" != no &&
9218     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9219     # have to relink, otherwise we might link with an installed library
9220     # when we should be linking with a yet-to-be-installed one
9221     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9222     test "$hardcode_minus_L" != no; then
9223    # Linking always hardcodes the temporary library directory.
9224    hardcode_action=relink
9225  else
9226    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9227    hardcode_action=immediate
9228  fi
9229else
9230  # We cannot hardcode anything, or else we can only hardcode existing
9231  # directories.
9232  hardcode_action=unsupported
9233fi
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9235$as_echo "$hardcode_action" >&6; }
9236
9237if test "$hardcode_action" = relink ||
9238   test "$inherit_rpath" = yes; then
9239  # Fast installation is not supported
9240  enable_fast_install=no
9241elif test "$shlibpath_overrides_runpath" = yes ||
9242     test "$enable_shared" = no; then
9243  # Fast installation is not necessary
9244  enable_fast_install=needless
9245fi
9246
9247
9248
9249
9250
9251
9252  if test "x$enable_dlopen" != xyes; then
9253  enable_dlopen=unknown
9254  enable_dlopen_self=unknown
9255  enable_dlopen_self_static=unknown
9256else
9257  lt_cv_dlopen=no
9258  lt_cv_dlopen_libs=
9259
9260  case $host_os in
9261  beos*)
9262    lt_cv_dlopen="load_add_on"
9263    lt_cv_dlopen_libs=
9264    lt_cv_dlopen_self=yes
9265    ;;
9266
9267  mingw* | pw32* | cegcc*)
9268    lt_cv_dlopen="LoadLibrary"
9269    lt_cv_dlopen_libs=
9270    ;;
9271
9272  cygwin*)
9273    lt_cv_dlopen="dlopen"
9274    lt_cv_dlopen_libs=
9275    ;;
9276
9277  darwin*)
9278  # if libdl is installed we need to link against it
9279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9280$as_echo_n "checking for dlopen in -ldl... " >&6; }
9281if ${ac_cv_lib_dl_dlopen+:} false; then :
9282  $as_echo_n "(cached) " >&6
9283else
9284  ac_check_lib_save_LIBS=$LIBS
9285LIBS="-ldl  $LIBS"
9286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287/* end confdefs.h.  */
9288
9289/* Override any GCC internal prototype to avoid an error.
9290   Use char because int might match the return type of a GCC
9291   builtin and then its argument prototype would still apply.  */
9292#ifdef __cplusplus
9293extern "C"
9294#endif
9295char dlopen ();
9296int
9297main ()
9298{
9299return dlopen ();
9300  ;
9301  return 0;
9302}
9303_ACEOF
9304if ac_fn_c_try_link "$LINENO"; then :
9305  ac_cv_lib_dl_dlopen=yes
9306else
9307  ac_cv_lib_dl_dlopen=no
9308fi
9309rm -f core conftest.err conftest.$ac_objext \
9310    conftest$ac_exeext conftest.$ac_ext
9311LIBS=$ac_check_lib_save_LIBS
9312fi
9313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9314$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9315if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9316  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9317else
9318
9319    lt_cv_dlopen="dyld"
9320    lt_cv_dlopen_libs=
9321    lt_cv_dlopen_self=yes
9322
9323fi
9324
9325    ;;
9326
9327  *)
9328    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9329if test "x$ac_cv_func_shl_load" = xyes; then :
9330  lt_cv_dlopen="shl_load"
9331else
9332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9333$as_echo_n "checking for shl_load in -ldld... " >&6; }
9334if ${ac_cv_lib_dld_shl_load+:} false; then :
9335  $as_echo_n "(cached) " >&6
9336else
9337  ac_check_lib_save_LIBS=$LIBS
9338LIBS="-ldld  $LIBS"
9339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340/* end confdefs.h.  */
9341
9342/* Override any GCC internal prototype to avoid an error.
9343   Use char because int might match the return type of a GCC
9344   builtin and then its argument prototype would still apply.  */
9345#ifdef __cplusplus
9346extern "C"
9347#endif
9348char shl_load ();
9349int
9350main ()
9351{
9352return shl_load ();
9353  ;
9354  return 0;
9355}
9356_ACEOF
9357if ac_fn_c_try_link "$LINENO"; then :
9358  ac_cv_lib_dld_shl_load=yes
9359else
9360  ac_cv_lib_dld_shl_load=no
9361fi
9362rm -f core conftest.err conftest.$ac_objext \
9363    conftest$ac_exeext conftest.$ac_ext
9364LIBS=$ac_check_lib_save_LIBS
9365fi
9366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9367$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9368if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9369  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9370else
9371  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9372if test "x$ac_cv_func_dlopen" = xyes; then :
9373  lt_cv_dlopen="dlopen"
9374else
9375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9376$as_echo_n "checking for dlopen in -ldl... " >&6; }
9377if ${ac_cv_lib_dl_dlopen+:} false; then :
9378  $as_echo_n "(cached) " >&6
9379else
9380  ac_check_lib_save_LIBS=$LIBS
9381LIBS="-ldl  $LIBS"
9382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383/* end confdefs.h.  */
9384
9385/* Override any GCC internal prototype to avoid an error.
9386   Use char because int might match the return type of a GCC
9387   builtin and then its argument prototype would still apply.  */
9388#ifdef __cplusplus
9389extern "C"
9390#endif
9391char dlopen ();
9392int
9393main ()
9394{
9395return dlopen ();
9396  ;
9397  return 0;
9398}
9399_ACEOF
9400if ac_fn_c_try_link "$LINENO"; then :
9401  ac_cv_lib_dl_dlopen=yes
9402else
9403  ac_cv_lib_dl_dlopen=no
9404fi
9405rm -f core conftest.err conftest.$ac_objext \
9406    conftest$ac_exeext conftest.$ac_ext
9407LIBS=$ac_check_lib_save_LIBS
9408fi
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9410$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9411if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9412  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9413else
9414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9415$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9416if ${ac_cv_lib_svld_dlopen+:} false; then :
9417  $as_echo_n "(cached) " >&6
9418else
9419  ac_check_lib_save_LIBS=$LIBS
9420LIBS="-lsvld  $LIBS"
9421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h.  */
9423
9424/* Override any GCC internal prototype to avoid an error.
9425   Use char because int might match the return type of a GCC
9426   builtin and then its argument prototype would still apply.  */
9427#ifdef __cplusplus
9428extern "C"
9429#endif
9430char dlopen ();
9431int
9432main ()
9433{
9434return dlopen ();
9435  ;
9436  return 0;
9437}
9438_ACEOF
9439if ac_fn_c_try_link "$LINENO"; then :
9440  ac_cv_lib_svld_dlopen=yes
9441else
9442  ac_cv_lib_svld_dlopen=no
9443fi
9444rm -f core conftest.err conftest.$ac_objext \
9445    conftest$ac_exeext conftest.$ac_ext
9446LIBS=$ac_check_lib_save_LIBS
9447fi
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9449$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9450if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9451  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9452else
9453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9454$as_echo_n "checking for dld_link in -ldld... " >&6; }
9455if ${ac_cv_lib_dld_dld_link+:} false; then :
9456  $as_echo_n "(cached) " >&6
9457else
9458  ac_check_lib_save_LIBS=$LIBS
9459LIBS="-ldld  $LIBS"
9460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461/* end confdefs.h.  */
9462
9463/* Override any GCC internal prototype to avoid an error.
9464   Use char because int might match the return type of a GCC
9465   builtin and then its argument prototype would still apply.  */
9466#ifdef __cplusplus
9467extern "C"
9468#endif
9469char dld_link ();
9470int
9471main ()
9472{
9473return dld_link ();
9474  ;
9475  return 0;
9476}
9477_ACEOF
9478if ac_fn_c_try_link "$LINENO"; then :
9479  ac_cv_lib_dld_dld_link=yes
9480else
9481  ac_cv_lib_dld_dld_link=no
9482fi
9483rm -f core conftest.err conftest.$ac_objext \
9484    conftest$ac_exeext conftest.$ac_ext
9485LIBS=$ac_check_lib_save_LIBS
9486fi
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9488$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9489if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9490  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9491fi
9492
9493
9494fi
9495
9496
9497fi
9498
9499
9500fi
9501
9502
9503fi
9504
9505
9506fi
9507
9508    ;;
9509  esac
9510
9511  if test "x$lt_cv_dlopen" != xno; then
9512    enable_dlopen=yes
9513  else
9514    enable_dlopen=no
9515  fi
9516
9517  case $lt_cv_dlopen in
9518  dlopen)
9519    save_CPPFLAGS="$CPPFLAGS"
9520    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9521
9522    save_LDFLAGS="$LDFLAGS"
9523    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9524
9525    save_LIBS="$LIBS"
9526    LIBS="$lt_cv_dlopen_libs $LIBS"
9527
9528    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9529$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9530if ${lt_cv_dlopen_self+:} false; then :
9531  $as_echo_n "(cached) " >&6
9532else
9533  	  if test "$cross_compiling" = yes; then :
9534  lt_cv_dlopen_self=cross
9535else
9536  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9537  lt_status=$lt_dlunknown
9538  cat > conftest.$ac_ext <<_LT_EOF
9539#line 9539 "configure"
9540#include "confdefs.h"
9541
9542#if HAVE_DLFCN_H
9543#include <dlfcn.h>
9544#endif
9545
9546#include <stdio.h>
9547
9548#ifdef RTLD_GLOBAL
9549#  define LT_DLGLOBAL		RTLD_GLOBAL
9550#else
9551#  ifdef DL_GLOBAL
9552#    define LT_DLGLOBAL		DL_GLOBAL
9553#  else
9554#    define LT_DLGLOBAL		0
9555#  endif
9556#endif
9557
9558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9559   find out it does not work in some platform. */
9560#ifndef LT_DLLAZY_OR_NOW
9561#  ifdef RTLD_LAZY
9562#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9563#  else
9564#    ifdef DL_LAZY
9565#      define LT_DLLAZY_OR_NOW		DL_LAZY
9566#    else
9567#      ifdef RTLD_NOW
9568#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9569#      else
9570#        ifdef DL_NOW
9571#          define LT_DLLAZY_OR_NOW	DL_NOW
9572#        else
9573#          define LT_DLLAZY_OR_NOW	0
9574#        endif
9575#      endif
9576#    endif
9577#  endif
9578#endif
9579
9580void fnord() { int i=42;}
9581int main ()
9582{
9583  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9584  int status = $lt_dlunknown;
9585
9586  if (self)
9587    {
9588      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9589      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9590      /* dlclose (self); */
9591    }
9592  else
9593    puts (dlerror ());
9594
9595  return status;
9596}
9597_LT_EOF
9598  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9599  (eval $ac_link) 2>&5
9600  ac_status=$?
9601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9602  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9603    (./conftest; exit; ) >&5 2>/dev/null
9604    lt_status=$?
9605    case x$lt_status in
9606      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9607      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9608      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9609    esac
9610  else :
9611    # compilation failed
9612    lt_cv_dlopen_self=no
9613  fi
9614fi
9615rm -fr conftest*
9616
9617
9618fi
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9620$as_echo "$lt_cv_dlopen_self" >&6; }
9621
9622    if test "x$lt_cv_dlopen_self" = xyes; then
9623      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9624      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9625$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9626if ${lt_cv_dlopen_self_static+:} false; then :
9627  $as_echo_n "(cached) " >&6
9628else
9629  	  if test "$cross_compiling" = yes; then :
9630  lt_cv_dlopen_self_static=cross
9631else
9632  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9633  lt_status=$lt_dlunknown
9634  cat > conftest.$ac_ext <<_LT_EOF
9635#line 9635 "configure"
9636#include "confdefs.h"
9637
9638#if HAVE_DLFCN_H
9639#include <dlfcn.h>
9640#endif
9641
9642#include <stdio.h>
9643
9644#ifdef RTLD_GLOBAL
9645#  define LT_DLGLOBAL		RTLD_GLOBAL
9646#else
9647#  ifdef DL_GLOBAL
9648#    define LT_DLGLOBAL		DL_GLOBAL
9649#  else
9650#    define LT_DLGLOBAL		0
9651#  endif
9652#endif
9653
9654/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9655   find out it does not work in some platform. */
9656#ifndef LT_DLLAZY_OR_NOW
9657#  ifdef RTLD_LAZY
9658#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9659#  else
9660#    ifdef DL_LAZY
9661#      define LT_DLLAZY_OR_NOW		DL_LAZY
9662#    else
9663#      ifdef RTLD_NOW
9664#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9665#      else
9666#        ifdef DL_NOW
9667#          define LT_DLLAZY_OR_NOW	DL_NOW
9668#        else
9669#          define LT_DLLAZY_OR_NOW	0
9670#        endif
9671#      endif
9672#    endif
9673#  endif
9674#endif
9675
9676void fnord() { int i=42;}
9677int main ()
9678{
9679  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9680  int status = $lt_dlunknown;
9681
9682  if (self)
9683    {
9684      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9685      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9686      /* dlclose (self); */
9687    }
9688  else
9689    puts (dlerror ());
9690
9691  return status;
9692}
9693_LT_EOF
9694  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9695  (eval $ac_link) 2>&5
9696  ac_status=$?
9697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9698  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9699    (./conftest; exit; ) >&5 2>/dev/null
9700    lt_status=$?
9701    case x$lt_status in
9702      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9703      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9704      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9705    esac
9706  else :
9707    # compilation failed
9708    lt_cv_dlopen_self_static=no
9709  fi
9710fi
9711rm -fr conftest*
9712
9713
9714fi
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9716$as_echo "$lt_cv_dlopen_self_static" >&6; }
9717    fi
9718
9719    CPPFLAGS="$save_CPPFLAGS"
9720    LDFLAGS="$save_LDFLAGS"
9721    LIBS="$save_LIBS"
9722    ;;
9723  esac
9724
9725  case $lt_cv_dlopen_self in
9726  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9727  *) enable_dlopen_self=unknown ;;
9728  esac
9729
9730  case $lt_cv_dlopen_self_static in
9731  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9732  *) enable_dlopen_self_static=unknown ;;
9733  esac
9734fi
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752striplib=
9753old_striplib=
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9755$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9756if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9757  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9758  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9760$as_echo "yes" >&6; }
9761else
9762# FIXME - insert some real tests, host_os isn't really good enough
9763  case $host_os in
9764  darwin*)
9765    if test -n "$STRIP" ; then
9766      striplib="$STRIP -x"
9767      old_striplib="$STRIP -S"
9768      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9769$as_echo "yes" >&6; }
9770    else
9771      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772$as_echo "no" >&6; }
9773    fi
9774    ;;
9775  *)
9776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9777$as_echo "no" >&6; }
9778    ;;
9779  esac
9780fi
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793  # Report which library types will actually be built
9794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9795$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9797$as_echo "$can_build_shared" >&6; }
9798
9799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9800$as_echo_n "checking whether to build shared libraries... " >&6; }
9801  test "$can_build_shared" = "no" && enable_shared=no
9802
9803  # On AIX, shared libraries and static libraries use the same namespace, and
9804  # are all built from PIC.
9805  case $host_os in
9806  aix3*)
9807    test "$enable_shared" = yes && enable_static=no
9808    if test -n "$RANLIB"; then
9809      archive_cmds="$archive_cmds~\$RANLIB \$lib"
9810      postinstall_cmds='$RANLIB $lib'
9811    fi
9812    ;;
9813
9814  aix[4-9]*)
9815    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9816      test "$enable_shared" = yes && enable_static=no
9817    fi
9818    ;;
9819  esac
9820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9821$as_echo "$enable_shared" >&6; }
9822
9823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9824$as_echo_n "checking whether to build static libraries... " >&6; }
9825  # Make sure either enable_shared or enable_static is yes.
9826  test "$enable_shared" = yes || enable_static=yes
9827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9828$as_echo "$enable_static" >&6; }
9829
9830
9831
9832
9833fi
9834ac_ext=c
9835ac_cpp='$CPP $CPPFLAGS'
9836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9838ac_compiler_gnu=$ac_cv_c_compiler_gnu
9839
9840CC="$lt_save_CC"
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854        ac_config_commands="$ac_config_commands libtool"
9855
9856
9857
9858
9859# Only expand once:
9860
9861
9862# Find a good install program.  We prefer a C program (faster),
9863# so one script is as good as another.  But avoid the broken or
9864# incompatible versions:
9865# SysV /etc/install, /usr/sbin/install
9866# SunOS /usr/etc/install
9867# IRIX /sbin/install
9868# AIX /bin/install
9869# AmigaOS /C/install, which installs bootblocks on floppy discs
9870# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9871# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9872# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9873# OS/2's system install, which has a completely different semantic
9874# ./install, which can be erroneously created by make from ./install.sh.
9875# Reject install programs that cannot install multiple files.
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9877$as_echo_n "checking for a BSD-compatible install... " >&6; }
9878if test -z "$INSTALL"; then
9879if ${ac_cv_path_install+:} false; then :
9880  $as_echo_n "(cached) " >&6
9881else
9882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883for as_dir in $PATH
9884do
9885  IFS=$as_save_IFS
9886  test -z "$as_dir" && as_dir=.
9887    # Account for people who put trailing slashes in PATH elements.
9888case $as_dir/ in #((
9889  ./ | .// | /[cC]/* | \
9890  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9891  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9892  /usr/ucb/* ) ;;
9893  *)
9894    # OSF1 and SCO ODT 3.0 have their own names for install.
9895    # Don't use installbsd from OSF since it installs stuff as root
9896    # by default.
9897    for ac_prog in ginstall scoinst install; do
9898      for ac_exec_ext in '' $ac_executable_extensions; do
9899	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9900	  if test $ac_prog = install &&
9901	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9902	    # AIX install.  It has an incompatible calling convention.
9903	    :
9904	  elif test $ac_prog = install &&
9905	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9906	    # program-specific install script used by HP pwplus--don't use.
9907	    :
9908	  else
9909	    rm -rf conftest.one conftest.two conftest.dir
9910	    echo one > conftest.one
9911	    echo two > conftest.two
9912	    mkdir conftest.dir
9913	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9914	      test -s conftest.one && test -s conftest.two &&
9915	      test -s conftest.dir/conftest.one &&
9916	      test -s conftest.dir/conftest.two
9917	    then
9918	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9919	      break 3
9920	    fi
9921	  fi
9922	fi
9923      done
9924    done
9925    ;;
9926esac
9927
9928  done
9929IFS=$as_save_IFS
9930
9931rm -rf conftest.one conftest.two conftest.dir
9932
9933fi
9934  if test "${ac_cv_path_install+set}" = set; then
9935    INSTALL=$ac_cv_path_install
9936  else
9937    # As a last resort, use the slow shell script.  Don't cache a
9938    # value for INSTALL within a source directory, because that will
9939    # break other packages using the cache if that directory is
9940    # removed, or if the value is a relative name.
9941    INSTALL=$ac_install_sh
9942  fi
9943fi
9944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9945$as_echo "$INSTALL" >&6; }
9946
9947# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9948# It thinks the first close brace ends the variable substitution.
9949test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9950
9951test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9952
9953test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9954
9955
9956#########
9957# Enable large file support (if special flags are necessary)
9958#
9959# Check whether --enable-largefile was given.
9960if test "${enable_largefile+set}" = set; then :
9961  enableval=$enable_largefile;
9962fi
9963
9964if test "$enable_largefile" != no; then
9965
9966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9967$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9968if ${ac_cv_sys_largefile_CC+:} false; then :
9969  $as_echo_n "(cached) " >&6
9970else
9971  ac_cv_sys_largefile_CC=no
9972     if test "$GCC" != yes; then
9973       ac_save_CC=$CC
9974       while :; do
9975	 # IRIX 6.2 and later do not support large files by default,
9976	 # so use the C compiler's -n32 option if that helps.
9977	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h.  */
9979#include <sys/types.h>
9980 /* Check that off_t can represent 2**63 - 1 correctly.
9981    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9982    since some C++ compilers masquerading as C compilers
9983    incorrectly reject 9223372036854775807.  */
9984#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9985  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9986		       && LARGE_OFF_T % 2147483647 == 1)
9987		      ? 1 : -1];
9988int
9989main ()
9990{
9991
9992  ;
9993  return 0;
9994}
9995_ACEOF
9996	 if ac_fn_c_try_compile "$LINENO"; then :
9997  break
9998fi
9999rm -f core conftest.err conftest.$ac_objext
10000	 CC="$CC -n32"
10001	 if ac_fn_c_try_compile "$LINENO"; then :
10002  ac_cv_sys_largefile_CC=' -n32'; break
10003fi
10004rm -f core conftest.err conftest.$ac_objext
10005	 break
10006       done
10007       CC=$ac_save_CC
10008       rm -f conftest.$ac_ext
10009    fi
10010fi
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10012$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10013  if test "$ac_cv_sys_largefile_CC" != no; then
10014    CC=$CC$ac_cv_sys_largefile_CC
10015  fi
10016
10017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10018$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10019if ${ac_cv_sys_file_offset_bits+:} false; then :
10020  $as_echo_n "(cached) " >&6
10021else
10022  while :; do
10023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024/* end confdefs.h.  */
10025#include <sys/types.h>
10026 /* Check that off_t can represent 2**63 - 1 correctly.
10027    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10028    since some C++ compilers masquerading as C compilers
10029    incorrectly reject 9223372036854775807.  */
10030#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10031  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10032		       && LARGE_OFF_T % 2147483647 == 1)
10033		      ? 1 : -1];
10034int
10035main ()
10036{
10037
10038  ;
10039  return 0;
10040}
10041_ACEOF
10042if ac_fn_c_try_compile "$LINENO"; then :
10043  ac_cv_sys_file_offset_bits=no; break
10044fi
10045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048#define _FILE_OFFSET_BITS 64
10049#include <sys/types.h>
10050 /* Check that off_t can represent 2**63 - 1 correctly.
10051    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10052    since some C++ compilers masquerading as C compilers
10053    incorrectly reject 9223372036854775807.  */
10054#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10055  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10056		       && LARGE_OFF_T % 2147483647 == 1)
10057		      ? 1 : -1];
10058int
10059main ()
10060{
10061
10062  ;
10063  return 0;
10064}
10065_ACEOF
10066if ac_fn_c_try_compile "$LINENO"; then :
10067  ac_cv_sys_file_offset_bits=64; break
10068fi
10069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070  ac_cv_sys_file_offset_bits=unknown
10071  break
10072done
10073fi
10074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10075$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10076case $ac_cv_sys_file_offset_bits in #(
10077  no | unknown) ;;
10078  *)
10079cat >>confdefs.h <<_ACEOF
10080#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10081_ACEOF
10082;;
10083esac
10084rm -rf conftest*
10085  if test $ac_cv_sys_file_offset_bits = unknown; then
10086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10087$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10088if ${ac_cv_sys_large_files+:} false; then :
10089  $as_echo_n "(cached) " >&6
10090else
10091  while :; do
10092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093/* end confdefs.h.  */
10094#include <sys/types.h>
10095 /* Check that off_t can represent 2**63 - 1 correctly.
10096    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10097    since some C++ compilers masquerading as C compilers
10098    incorrectly reject 9223372036854775807.  */
10099#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10100  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10101		       && LARGE_OFF_T % 2147483647 == 1)
10102		      ? 1 : -1];
10103int
10104main ()
10105{
10106
10107  ;
10108  return 0;
10109}
10110_ACEOF
10111if ac_fn_c_try_compile "$LINENO"; then :
10112  ac_cv_sys_large_files=no; break
10113fi
10114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116/* end confdefs.h.  */
10117#define _LARGE_FILES 1
10118#include <sys/types.h>
10119 /* Check that off_t can represent 2**63 - 1 correctly.
10120    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10121    since some C++ compilers masquerading as C compilers
10122    incorrectly reject 9223372036854775807.  */
10123#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10124  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10125		       && LARGE_OFF_T % 2147483647 == 1)
10126		      ? 1 : -1];
10127int
10128main ()
10129{
10130
10131  ;
10132  return 0;
10133}
10134_ACEOF
10135if ac_fn_c_try_compile "$LINENO"; then :
10136  ac_cv_sys_large_files=1; break
10137fi
10138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139  ac_cv_sys_large_files=unknown
10140  break
10141done
10142fi
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10144$as_echo "$ac_cv_sys_large_files" >&6; }
10145case $ac_cv_sys_large_files in #(
10146  no | unknown) ;;
10147  *)
10148cat >>confdefs.h <<_ACEOF
10149#define _LARGE_FILES $ac_cv_sys_large_files
10150_ACEOF
10151;;
10152esac
10153rm -rf conftest*
10154  fi
10155
10156
10157fi
10158
10159
10160#########
10161# Check for needed/wanted data types
10162ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10163if test "x$ac_cv_type_int8_t" = xyes; then :
10164
10165cat >>confdefs.h <<_ACEOF
10166#define HAVE_INT8_T 1
10167_ACEOF
10168
10169
10170fi
10171ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10172if test "x$ac_cv_type_int16_t" = xyes; then :
10173
10174cat >>confdefs.h <<_ACEOF
10175#define HAVE_INT16_T 1
10176_ACEOF
10177
10178
10179fi
10180ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10181if test "x$ac_cv_type_int32_t" = xyes; then :
10182
10183cat >>confdefs.h <<_ACEOF
10184#define HAVE_INT32_T 1
10185_ACEOF
10186
10187
10188fi
10189ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10190if test "x$ac_cv_type_int64_t" = xyes; then :
10191
10192cat >>confdefs.h <<_ACEOF
10193#define HAVE_INT64_T 1
10194_ACEOF
10195
10196
10197fi
10198ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10199if test "x$ac_cv_type_intptr_t" = xyes; then :
10200
10201cat >>confdefs.h <<_ACEOF
10202#define HAVE_INTPTR_T 1
10203_ACEOF
10204
10205
10206fi
10207ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10208if test "x$ac_cv_type_uint8_t" = xyes; then :
10209
10210cat >>confdefs.h <<_ACEOF
10211#define HAVE_UINT8_T 1
10212_ACEOF
10213
10214
10215fi
10216ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10217if test "x$ac_cv_type_uint16_t" = xyes; then :
10218
10219cat >>confdefs.h <<_ACEOF
10220#define HAVE_UINT16_T 1
10221_ACEOF
10222
10223
10224fi
10225ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10226if test "x$ac_cv_type_uint32_t" = xyes; then :
10227
10228cat >>confdefs.h <<_ACEOF
10229#define HAVE_UINT32_T 1
10230_ACEOF
10231
10232
10233fi
10234ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10235if test "x$ac_cv_type_uint64_t" = xyes; then :
10236
10237cat >>confdefs.h <<_ACEOF
10238#define HAVE_UINT64_T 1
10239_ACEOF
10240
10241
10242fi
10243ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10244if test "x$ac_cv_type_uintptr_t" = xyes; then :
10245
10246cat >>confdefs.h <<_ACEOF
10247#define HAVE_UINTPTR_T 1
10248_ACEOF
10249
10250
10251fi
10252
10253
10254#########
10255# Check for needed/wanted headers
10256for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10257do :
10258  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10259ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10260if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10261  cat >>confdefs.h <<_ACEOF
10262#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10263_ACEOF
10264
10265fi
10266
10267done
10268
10269
10270#########
10271# Figure out whether or not we have these functions
10272#
10273for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime
10274do :
10275  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10276ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10277if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10278  cat >>confdefs.h <<_ACEOF
10279#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10280_ACEOF
10281
10282fi
10283done
10284
10285
10286#########
10287# By default, we use the amalgamation (this may be changed below...)
10288#
10289USE_AMALGAMATION=1
10290
10291#########
10292# See whether we can run specific tclsh versions known to work well;
10293# if not, then we fall back to plain tclsh.
10294# TODO: try other versions before falling back?
10295#
10296for ac_prog in tclsh8.6 tclsh8.5 tclsh
10297do
10298  # Extract the first word of "$ac_prog", so it can be a program name with args.
10299set dummy $ac_prog; ac_word=$2
10300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301$as_echo_n "checking for $ac_word... " >&6; }
10302if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10303  $as_echo_n "(cached) " >&6
10304else
10305  if test -n "$TCLSH_CMD"; then
10306  ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10307else
10308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309for as_dir in $PATH
10310do
10311  IFS=$as_save_IFS
10312  test -z "$as_dir" && as_dir=.
10313    for ac_exec_ext in '' $ac_executable_extensions; do
10314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10315    ac_cv_prog_TCLSH_CMD="$ac_prog"
10316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10317    break 2
10318  fi
10319done
10320  done
10321IFS=$as_save_IFS
10322
10323fi
10324fi
10325TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10326if test -n "$TCLSH_CMD"; then
10327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10328$as_echo "$TCLSH_CMD" >&6; }
10329else
10330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331$as_echo "no" >&6; }
10332fi
10333
10334
10335  test -n "$TCLSH_CMD" && break
10336done
10337test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10338
10339if test "$TCLSH_CMD" = "none"; then
10340  # If we can't find a local tclsh, then building the amalgamation will fail.
10341  # We act as though --disable-amalgamation has been used.
10342  echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10343  USE_AMALGAMATION=0
10344  TCLSH_CMD="tclsh"
10345fi
10346
10347
10348
10349if test "x${TCLLIBDIR+set}" != "xset" ; then
10350  TCLLIBDIR='$(libdir)'
10351  for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10352    TCLLIBDIR=$i
10353    break
10354  done
10355  TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10356fi
10357
10358
10359#########
10360# Set up an appropriate program prefix
10361#
10362if test "$program_prefix" = "NONE"; then
10363  program_prefix=""
10364fi
10365
10366
10367VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10369$as_echo "$as_me: Version set to $VERSION" >&6;}
10370
10371RELEASE=`cat $srcdir/VERSION`
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10373$as_echo "$as_me: Release set to $RELEASE" >&6;}
10374
10375VERSION_NUMBER=`cat $srcdir/VERSION \
10376                           | sed 's/[^0-9]/ /g' \
10377                | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
10379$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
10380
10381
10382#########
10383# Locate a compiler for the build machine.  This compiler should
10384# generate command-line programs that run on the build machine.
10385#
10386if test x"$cross_compiling" = xno; then
10387	BUILD_CC=$CC
10388	BUILD_CFLAGS=$CFLAGS
10389else
10390	if test "${BUILD_CC+set}" != set; then
10391		for ac_prog in gcc cc cl
10392do
10393  # Extract the first word of "$ac_prog", so it can be a program name with args.
10394set dummy $ac_prog; ac_word=$2
10395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396$as_echo_n "checking for $ac_word... " >&6; }
10397if ${ac_cv_prog_BUILD_CC+:} false; then :
10398  $as_echo_n "(cached) " >&6
10399else
10400  if test -n "$BUILD_CC"; then
10401  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10402else
10403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406  IFS=$as_save_IFS
10407  test -z "$as_dir" && as_dir=.
10408    for ac_exec_ext in '' $ac_executable_extensions; do
10409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410    ac_cv_prog_BUILD_CC="$ac_prog"
10411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10412    break 2
10413  fi
10414done
10415  done
10416IFS=$as_save_IFS
10417
10418fi
10419fi
10420BUILD_CC=$ac_cv_prog_BUILD_CC
10421if test -n "$BUILD_CC"; then
10422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10423$as_echo "$BUILD_CC" >&6; }
10424else
10425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426$as_echo "no" >&6; }
10427fi
10428
10429
10430  test -n "$BUILD_CC" && break
10431done
10432
10433	fi
10434	if test "${BUILD_CFLAGS+set}" != set; then
10435		BUILD_CFLAGS="-g"
10436	fi
10437fi
10438
10439
10440##########
10441# Do we want to support multithreaded use of sqlite
10442#
10443# Check whether --enable-threadsafe was given.
10444if test "${enable_threadsafe+set}" = set; then :
10445  enableval=$enable_threadsafe;
10446else
10447  enable_threadsafe=yes
10448fi
10449
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10451$as_echo_n "checking whether to support threadsafe operation... " >&6; }
10452if test "$enable_threadsafe" = "no"; then
10453  SQLITE_THREADSAFE=0
10454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455$as_echo "no" >&6; }
10456else
10457  SQLITE_THREADSAFE=1
10458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10459$as_echo "yes" >&6; }
10460fi
10461
10462
10463if test "$SQLITE_THREADSAFE" = "1"; then
10464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10465$as_echo_n "checking for library containing pthread_create... " >&6; }
10466if ${ac_cv_search_pthread_create+:} false; then :
10467  $as_echo_n "(cached) " >&6
10468else
10469  ac_func_search_save_LIBS=$LIBS
10470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471/* end confdefs.h.  */
10472
10473/* Override any GCC internal prototype to avoid an error.
10474   Use char because int might match the return type of a GCC
10475   builtin and then its argument prototype would still apply.  */
10476#ifdef __cplusplus
10477extern "C"
10478#endif
10479char pthread_create ();
10480int
10481main ()
10482{
10483return pthread_create ();
10484  ;
10485  return 0;
10486}
10487_ACEOF
10488for ac_lib in '' pthread; do
10489  if test -z "$ac_lib"; then
10490    ac_res="none required"
10491  else
10492    ac_res=-l$ac_lib
10493    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10494  fi
10495  if ac_fn_c_try_link "$LINENO"; then :
10496  ac_cv_search_pthread_create=$ac_res
10497fi
10498rm -f core conftest.err conftest.$ac_objext \
10499    conftest$ac_exeext
10500  if ${ac_cv_search_pthread_create+:} false; then :
10501  break
10502fi
10503done
10504if ${ac_cv_search_pthread_create+:} false; then :
10505
10506else
10507  ac_cv_search_pthread_create=no
10508fi
10509rm conftest.$ac_ext
10510LIBS=$ac_func_search_save_LIBS
10511fi
10512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10513$as_echo "$ac_cv_search_pthread_create" >&6; }
10514ac_res=$ac_cv_search_pthread_create
10515if test "$ac_res" != no; then :
10516  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10517
10518fi
10519
10520fi
10521
10522##########
10523# Do we want to support release
10524#
10525# Check whether --enable-releasemode was given.
10526if test "${enable_releasemode+set}" = set; then :
10527  enableval=$enable_releasemode;
10528else
10529  enable_releasemode=no
10530fi
10531
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10533$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10534if test "$enable_releasemode" = "no"; then
10535  ALLOWRELEASE=""
10536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537$as_echo "no" >&6; }
10538else
10539  ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10541$as_echo "yes" >&6; }
10542fi
10543
10544
10545##########
10546# Do we want temporary databases in memory
10547#
10548# Check whether --enable-tempstore was given.
10549if test "${enable_tempstore+set}" = set; then :
10550  enableval=$enable_tempstore;
10551else
10552  enable_tempstore=no
10553fi
10554
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10556$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10557case "$enable_tempstore" in
10558  never )
10559    TEMP_STORE=0
10560    { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10561$as_echo "never" >&6; }
10562  ;;
10563  no )
10564    TEMP_STORE=1
10565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
10567  ;;
10568  yes )
10569     TEMP_STORE=2
10570    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10571$as_echo "yes" >&6; }
10572  ;;
10573  always )
10574     TEMP_STORE=3
10575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10576$as_echo "always" >&6; }
10577  ;;
10578  * )
10579    TEMP_STORE=1
10580    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581$as_echo "no" >&6; }
10582  ;;
10583esac
10584
10585
10586
10587###########
10588# Lots of things are different if we are compiling for Windows using
10589# the CYGWIN environment.  So check for that special case and handle
10590# things accordingly.
10591#
10592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10593$as_echo_n "checking if executables have the .exe suffix... " >&6; }
10594if test "$config_BUILD_EXEEXT" = ".exe"; then
10595  CYGWIN=yes
10596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10597$as_echo "yes" >&6; }
10598else
10599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10600$as_echo "unknown" >&6; }
10601fi
10602if test "$CYGWIN" != "yes"; then
10603
10604case $host_os in
10605  *cygwin* ) CYGWIN=yes;;
10606	 * ) CYGWIN=no;;
10607esac
10608
10609fi
10610if test "$CYGWIN" = "yes"; then
10611  BUILD_EXEEXT=.exe
10612else
10613  BUILD_EXEEXT=$EXEEXT
10614fi
10615if test x"$cross_compiling" = xno; then
10616  TARGET_EXEEXT=$BUILD_EXEEXT
10617else
10618  TARGET_EXEEXT=$config_TARGET_EXEEXT
10619fi
10620if test "$TARGET_EXEEXT" = ".exe"; then
10621  SQLITE_OS_UNIX=0
10622  SQLITE_OS_WIN=1
10623  CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10624else
10625  SQLITE_OS_UNIX=1
10626  SQLITE_OS_WIN=0
10627  CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10628fi
10629
10630
10631
10632
10633
10634
10635##########
10636# Figure out all the parameters needed to compile against Tcl.
10637#
10638# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10639# macros in the in the tcl.m4 file of the standard TCL distribution.
10640# Those macros could not be used directly since we have to make some
10641# minor changes to accomodate systems that do not have TCL installed.
10642#
10643# Check whether --enable-tcl was given.
10644if test "${enable_tcl+set}" = set; then :
10645  enableval=$enable_tcl; use_tcl=$enableval
10646else
10647  use_tcl=yes
10648fi
10649
10650if test "${use_tcl}" = "yes" ; then
10651
10652# Check whether --with-tcl was given.
10653if test "${with_tcl+set}" = set; then :
10654  withval=$with_tcl; with_tclconfig=${withval}
10655fi
10656
10657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10658$as_echo_n "checking for Tcl configuration... " >&6; }
10659  if ${ac_cv_c_tclconfig+:} false; then :
10660  $as_echo_n "(cached) " >&6
10661else
10662
10663    # First check to see if --with-tcl was specified.
10664    if test x"${with_tclconfig}" != x ; then
10665      if test -f "${with_tclconfig}/tclConfig.sh" ; then
10666        ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10667      else
10668        as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10669      fi
10670    fi
10671
10672    # Start autosearch by asking tclsh
10673    if test x"${ac_cv_c_tclconfig}" = x ; then
10674      if test x"$cross_compiling" = xno; then
10675        for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10676        do
10677          if test -f "$i/tclConfig.sh" ; then
10678            ac_cv_c_tclconfig="$i"
10679            break
10680          fi
10681        done
10682      fi
10683    fi
10684
10685    # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10686    # So try again after applying corrections.
10687    if test x"${ac_cv_c_tclconfig}" = x ; then
10688      if test x"$cross_compiling" = xno; then
10689        for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10690        do
10691          if test -f "$i/tclConfig.sh" ; then
10692            ac_cv_c_tclconfig="$i"
10693            break
10694          fi
10695        done
10696      fi
10697    fi
10698
10699    # then check for a private Tcl installation
10700    if test x"${ac_cv_c_tclconfig}" = x ; then
10701      for i in \
10702            ../tcl \
10703            `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10704            `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10705            `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10706            ../../tcl \
10707            `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10708            `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10709            `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10710            ../../../tcl \
10711            `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10712            `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10713            `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10714      do
10715        if test -f "$i/unix/tclConfig.sh" ; then
10716          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10717          break
10718        fi
10719      done
10720    fi
10721
10722    # check in a few common install locations
10723    if test x"${ac_cv_c_tclconfig}" = x ; then
10724      for i in \
10725            `ls -d ${libdir} 2>/dev/null` \
10726            `ls -d /usr/local/lib 2>/dev/null` \
10727            `ls -d /usr/contrib/lib 2>/dev/null` \
10728            `ls -d /usr/lib 2>/dev/null`
10729      do
10730        if test -f "$i/tclConfig.sh" ; then
10731           ac_cv_c_tclconfig=`(cd $i; pwd)`
10732           break
10733        fi
10734      done
10735    fi
10736
10737    # check in a few other private locations
10738    if test x"${ac_cv_c_tclconfig}" = x ; then
10739      for i in \
10740         ${srcdir}/../tcl \
10741         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10742         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10743         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10744      do
10745        if test -f "$i/unix/tclConfig.sh" ; then
10746          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10747          break
10748        fi
10749      done
10750    fi
10751
10752fi
10753
10754
10755  if test x"${ac_cv_c_tclconfig}" = x ; then
10756    use_tcl=no
10757    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10758$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10759    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10760$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10761    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10762$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10763  else
10764    TCL_BIN_DIR=${ac_cv_c_tclconfig}
10765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10766$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10767
10768    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10769$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10770    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10771      { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10772$as_echo "loading" >&6; }
10773      . $TCL_BIN_DIR/tclConfig.sh
10774    else
10775      { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10776$as_echo "file not found" >&6; }
10777    fi
10778
10779    #
10780    # If the TCL_BIN_DIR is the build directory (not the install directory),
10781    # then set the common variable name to the value of the build variables.
10782    # For example, the variable TCL_LIB_SPEC will be set to the value
10783    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10784    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10785    # installed and uninstalled version of Tcl.
10786    #
10787
10788    if test -f $TCL_BIN_DIR/Makefile ; then
10789      TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10790      TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10791      TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10792    fi
10793
10794    #
10795    # eval is required to do the TCL_DBGX substitution
10796    #
10797
10798    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10799    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10800    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10801
10802    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10803    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10804    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819  fi
10820fi
10821if test "${use_tcl}" = "no" ; then
10822  HAVE_TCL=""
10823else
10824  HAVE_TCL=1
10825fi
10826
10827
10828##########
10829# Figure out what C libraries are required to compile programs
10830# that use "readline()" library.
10831#
10832TARGET_READLINE_LIBS=""
10833TARGET_READLINE_INC=""
10834TARGET_HAVE_READLINE=0
10835# Check whether --enable-readline was given.
10836if test "${enable_readline+set}" = set; then :
10837  enableval=$enable_readline; with_readline=$enableval
10838else
10839  with_readline=auto
10840fi
10841
10842
10843if test x"$with_readline" != xno; then
10844	found="yes"
10845
10846
10847# Check whether --with-readline-lib was given.
10848if test "${with_readline_lib+set}" = set; then :
10849  withval=$with_readline_lib; with_readline_lib=$withval
10850else
10851  with_readline_lib="auto"
10852fi
10853
10854	if test "x$with_readline_lib" = xauto; then
10855		save_LIBS="$LIBS"
10856		LIBS=""
10857		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
10858$as_echo_n "checking for library containing tgetent... " >&6; }
10859if ${ac_cv_search_tgetent+:} false; then :
10860  $as_echo_n "(cached) " >&6
10861else
10862  ac_func_search_save_LIBS=$LIBS
10863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864/* end confdefs.h.  */
10865
10866/* Override any GCC internal prototype to avoid an error.
10867   Use char because int might match the return type of a GCC
10868   builtin and then its argument prototype would still apply.  */
10869#ifdef __cplusplus
10870extern "C"
10871#endif
10872char tgetent ();
10873int
10874main ()
10875{
10876return tgetent ();
10877  ;
10878  return 0;
10879}
10880_ACEOF
10881for ac_lib in '' readline ncurses curses termcap; do
10882  if test -z "$ac_lib"; then
10883    ac_res="none required"
10884  else
10885    ac_res=-l$ac_lib
10886    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10887  fi
10888  if ac_fn_c_try_link "$LINENO"; then :
10889  ac_cv_search_tgetent=$ac_res
10890fi
10891rm -f core conftest.err conftest.$ac_objext \
10892    conftest$ac_exeext
10893  if ${ac_cv_search_tgetent+:} false; then :
10894  break
10895fi
10896done
10897if ${ac_cv_search_tgetent+:} false; then :
10898
10899else
10900  ac_cv_search_tgetent=no
10901fi
10902rm conftest.$ac_ext
10903LIBS=$ac_func_search_save_LIBS
10904fi
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
10906$as_echo "$ac_cv_search_tgetent" >&6; }
10907ac_res=$ac_cv_search_tgetent
10908if test "$ac_res" != no; then :
10909  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10910  term_LIBS="$LIBS"
10911else
10912  term_LIBS=""
10913fi
10914
10915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
10916$as_echo_n "checking for readline in -lreadline... " >&6; }
10917if ${ac_cv_lib_readline_readline+:} false; then :
10918  $as_echo_n "(cached) " >&6
10919else
10920  ac_check_lib_save_LIBS=$LIBS
10921LIBS="-lreadline  $LIBS"
10922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923/* end confdefs.h.  */
10924
10925/* Override any GCC internal prototype to avoid an error.
10926   Use char because int might match the return type of a GCC
10927   builtin and then its argument prototype would still apply.  */
10928#ifdef __cplusplus
10929extern "C"
10930#endif
10931char readline ();
10932int
10933main ()
10934{
10935return readline ();
10936  ;
10937  return 0;
10938}
10939_ACEOF
10940if ac_fn_c_try_link "$LINENO"; then :
10941  ac_cv_lib_readline_readline=yes
10942else
10943  ac_cv_lib_readline_readline=no
10944fi
10945rm -f core conftest.err conftest.$ac_objext \
10946    conftest$ac_exeext conftest.$ac_ext
10947LIBS=$ac_check_lib_save_LIBS
10948fi
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
10950$as_echo "$ac_cv_lib_readline_readline" >&6; }
10951if test "x$ac_cv_lib_readline_readline" = xyes; then :
10952  TARGET_READLINE_LIBS="-lreadline"
10953else
10954  found="no"
10955fi
10956
10957		TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
10958		LIBS="$save_LIBS"
10959	else
10960		TARGET_READLINE_LIBS="$with_readline_lib"
10961	fi
10962
10963
10964# Check whether --with-readline-inc was given.
10965if test "${with_readline_inc+set}" = set; then :
10966  withval=$with_readline_inc; with_readline_inc=$withval
10967else
10968  with_readline_inc="auto"
10969fi
10970
10971	if test "x$with_readline_inc" = xauto; then
10972		ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10973if test "x$ac_cv_header_readline_h" = xyes; then :
10974  found="yes"
10975else
10976
10977			found="no"
10978			if test "$cross_compiling" != yes; then
10979				for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
10980					for subdir in include include/readline; do
10981						as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
10983$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
10984if eval \${$as_ac_File+:} false; then :
10985  $as_echo_n "(cached) " >&6
10986else
10987  test "$cross_compiling" = yes &&
10988  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10989if test -r "$dir/$subdir/readline.h"; then
10990  eval "$as_ac_File=yes"
10991else
10992  eval "$as_ac_File=no"
10993fi
10994fi
10995eval ac_res=\$$as_ac_File
10996	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10997$as_echo "$ac_res" >&6; }
10998if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10999  found=yes
11000fi
11001
11002						if test "$found" = "yes"; then
11003							TARGET_READLINE_INC="-I$dir/$subdir"
11004							break
11005						fi
11006					done
11007					test "$found" = "yes" && break
11008				done
11009			fi
11010
11011fi
11012
11013
11014	else
11015		TARGET_READLINE_INC="$with_readline_inc"
11016	fi
11017
11018	if test x"$found" = xno; then
11019		TARGET_READLINE_LIBS=""
11020		TARGET_READLINE_INC=""
11021		TARGET_HAVE_READLINE=0
11022	else
11023		TARGET_HAVE_READLINE=1
11024	fi
11025fi
11026
11027
11028
11029
11030
11031##########
11032# Figure out what C libraries are required to compile programs
11033# that use "fdatasync()" function.
11034#
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11036$as_echo_n "checking for library containing fdatasync... " >&6; }
11037if ${ac_cv_search_fdatasync+:} false; then :
11038  $as_echo_n "(cached) " >&6
11039else
11040  ac_func_search_save_LIBS=$LIBS
11041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042/* end confdefs.h.  */
11043
11044/* Override any GCC internal prototype to avoid an error.
11045   Use char because int might match the return type of a GCC
11046   builtin and then its argument prototype would still apply.  */
11047#ifdef __cplusplus
11048extern "C"
11049#endif
11050char fdatasync ();
11051int
11052main ()
11053{
11054return fdatasync ();
11055  ;
11056  return 0;
11057}
11058_ACEOF
11059for ac_lib in '' rt; do
11060  if test -z "$ac_lib"; then
11061    ac_res="none required"
11062  else
11063    ac_res=-l$ac_lib
11064    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11065  fi
11066  if ac_fn_c_try_link "$LINENO"; then :
11067  ac_cv_search_fdatasync=$ac_res
11068fi
11069rm -f core conftest.err conftest.$ac_objext \
11070    conftest$ac_exeext
11071  if ${ac_cv_search_fdatasync+:} false; then :
11072  break
11073fi
11074done
11075if ${ac_cv_search_fdatasync+:} false; then :
11076
11077else
11078  ac_cv_search_fdatasync=no
11079fi
11080rm conftest.$ac_ext
11081LIBS=$ac_func_search_save_LIBS
11082fi
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11084$as_echo "$ac_cv_search_fdatasync" >&6; }
11085ac_res=$ac_cv_search_fdatasync
11086if test "$ac_res" != no; then :
11087  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11088
11089fi
11090
11091
11092#########
11093# check for debug enabled
11094# Check whether --enable-debug was given.
11095if test "${enable_debug+set}" = set; then :
11096  enableval=$enable_debug; use_debug=$enableval
11097else
11098  use_debug=no
11099fi
11100
11101if test "${use_debug}" = "yes" ; then
11102  TARGET_DEBUG="-DSQLITE_DEBUG=1"
11103else
11104  TARGET_DEBUG="-DNDEBUG"
11105fi
11106
11107
11108#########
11109# See whether we should use the amalgamation to build
11110# Check whether --enable-amalgamation was given.
11111if test "${enable_amalgamation+set}" = set; then :
11112  enableval=$enable_amalgamation; use_amalgamation=$enableval
11113else
11114  use_amalgamation=yes
11115fi
11116
11117if test "${use_amalgamation}" != "yes" ; then
11118  USE_AMALGAMATION=0
11119fi
11120
11121
11122#########
11123# See whether we should allow loadable extensions
11124# Check whether --enable-load-extension was given.
11125if test "${enable_load_extension+set}" = set; then :
11126  enableval=$enable_load_extension; use_loadextension=$enableval
11127else
11128  use_loadextension=yes
11129fi
11130
11131if test "${use_loadextension}" = "yes" ; then
11132  OPT_FEATURE_FLAGS=""
11133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11134$as_echo_n "checking for library containing dlopen... " >&6; }
11135if ${ac_cv_search_dlopen+:} false; then :
11136  $as_echo_n "(cached) " >&6
11137else
11138  ac_func_search_save_LIBS=$LIBS
11139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140/* end confdefs.h.  */
11141
11142/* Override any GCC internal prototype to avoid an error.
11143   Use char because int might match the return type of a GCC
11144   builtin and then its argument prototype would still apply.  */
11145#ifdef __cplusplus
11146extern "C"
11147#endif
11148char dlopen ();
11149int
11150main ()
11151{
11152return dlopen ();
11153  ;
11154  return 0;
11155}
11156_ACEOF
11157for ac_lib in '' dl; do
11158  if test -z "$ac_lib"; then
11159    ac_res="none required"
11160  else
11161    ac_res=-l$ac_lib
11162    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11163  fi
11164  if ac_fn_c_try_link "$LINENO"; then :
11165  ac_cv_search_dlopen=$ac_res
11166fi
11167rm -f core conftest.err conftest.$ac_objext \
11168    conftest$ac_exeext
11169  if ${ac_cv_search_dlopen+:} false; then :
11170  break
11171fi
11172done
11173if ${ac_cv_search_dlopen+:} false; then :
11174
11175else
11176  ac_cv_search_dlopen=no
11177fi
11178rm conftest.$ac_ext
11179LIBS=$ac_func_search_save_LIBS
11180fi
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11182$as_echo "$ac_cv_search_dlopen" >&6; }
11183ac_res=$ac_cv_search_dlopen
11184if test "$ac_res" != no; then :
11185  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11186
11187fi
11188
11189else
11190  OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11191fi
11192
11193#########
11194# See whether we should enable Full Text Search extensions
11195# Check whether --enable-fts3 was given.
11196if test "${enable_fts3+set}" = set; then :
11197  enableval=$enable_fts3; enable_fts3=yes
11198else
11199  enable_fts3=no
11200fi
11201
11202if test "${enable_fts3}" = "yes" ; then
11203  OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3"
11204fi
11205# Check whether --enable-fts4 was given.
11206if test "${enable_fts4+set}" = set; then :
11207  enableval=$enable_fts4; enable_fts4=yes
11208else
11209  enable_fts4=no
11210fi
11211
11212if test "${enable_fts4}" = "yes" ; then
11213  OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4"
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11215$as_echo_n "checking for library containing log... " >&6; }
11216if ${ac_cv_search_log+:} false; then :
11217  $as_echo_n "(cached) " >&6
11218else
11219  ac_func_search_save_LIBS=$LIBS
11220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221/* end confdefs.h.  */
11222
11223/* Override any GCC internal prototype to avoid an error.
11224   Use char because int might match the return type of a GCC
11225   builtin and then its argument prototype would still apply.  */
11226#ifdef __cplusplus
11227extern "C"
11228#endif
11229char log ();
11230int
11231main ()
11232{
11233return log ();
11234  ;
11235  return 0;
11236}
11237_ACEOF
11238for ac_lib in '' m; do
11239  if test -z "$ac_lib"; then
11240    ac_res="none required"
11241  else
11242    ac_res=-l$ac_lib
11243    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11244  fi
11245  if ac_fn_c_try_link "$LINENO"; then :
11246  ac_cv_search_log=$ac_res
11247fi
11248rm -f core conftest.err conftest.$ac_objext \
11249    conftest$ac_exeext
11250  if ${ac_cv_search_log+:} false; then :
11251  break
11252fi
11253done
11254if ${ac_cv_search_log+:} false; then :
11255
11256else
11257  ac_cv_search_log=no
11258fi
11259rm conftest.$ac_ext
11260LIBS=$ac_func_search_save_LIBS
11261fi
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11263$as_echo "$ac_cv_search_log" >&6; }
11264ac_res=$ac_cv_search_log
11265if test "$ac_res" != no; then :
11266  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11267
11268fi
11269
11270fi
11271# Check whether --enable-fts5 was given.
11272if test "${enable_fts5+set}" = set; then :
11273  enableval=$enable_fts5; enable_fts5=yes
11274else
11275  enable_fts5=no
11276fi
11277
11278if test "${enable_fts5}" = "yes" ; then
11279  OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5"
11280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11281$as_echo_n "checking for library containing log... " >&6; }
11282if ${ac_cv_search_log+:} false; then :
11283  $as_echo_n "(cached) " >&6
11284else
11285  ac_func_search_save_LIBS=$LIBS
11286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287/* end confdefs.h.  */
11288
11289/* Override any GCC internal prototype to avoid an error.
11290   Use char because int might match the return type of a GCC
11291   builtin and then its argument prototype would still apply.  */
11292#ifdef __cplusplus
11293extern "C"
11294#endif
11295char log ();
11296int
11297main ()
11298{
11299return log ();
11300  ;
11301  return 0;
11302}
11303_ACEOF
11304for ac_lib in '' m; do
11305  if test -z "$ac_lib"; then
11306    ac_res="none required"
11307  else
11308    ac_res=-l$ac_lib
11309    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11310  fi
11311  if ac_fn_c_try_link "$LINENO"; then :
11312  ac_cv_search_log=$ac_res
11313fi
11314rm -f core conftest.err conftest.$ac_objext \
11315    conftest$ac_exeext
11316  if ${ac_cv_search_log+:} false; then :
11317  break
11318fi
11319done
11320if ${ac_cv_search_log+:} false; then :
11321
11322else
11323  ac_cv_search_log=no
11324fi
11325rm conftest.$ac_ext
11326LIBS=$ac_func_search_save_LIBS
11327fi
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11329$as_echo "$ac_cv_search_log" >&6; }
11330ac_res=$ac_cv_search_log
11331if test "$ac_res" != no; then :
11332  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11333
11334fi
11335
11336fi
11337
11338#########
11339# See whether we should enable JSON1
11340# Check whether --enable-json1 was given.
11341if test "${enable_json1+set}" = set; then :
11342  enableval=$enable_json1; enable_json1=yes
11343else
11344  enable_json1=no
11345fi
11346
11347if test "${enable_json1}" = "yes" ; then
11348  OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1"
11349fi
11350
11351#########
11352# See whether we should enable RTREE
11353# Check whether --enable-rtree was given.
11354if test "${enable_rtree+set}" = set; then :
11355  enableval=$enable_rtree; enable_rtree=yes
11356else
11357  enable_rtree=no
11358fi
11359
11360if test "${enable_rtree}" = "yes" ; then
11361  OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE"
11362fi
11363
11364#########
11365# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
11366for option in $CFLAGS $CPPFLAGS
11367do
11368  case $option in
11369    -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11370    -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11371  esac
11372done
11373
11374
11375
11376# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11377ac_temp_CFLAGS=""
11378for option in $CFLAGS
11379do
11380  case $option in
11381    -DSQLITE_OMIT*) ;;
11382    -DSQLITE_ENABLE*) ;;
11383    *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11384  esac
11385done
11386CFLAGS=$ac_temp_CFLAGS
11387
11388
11389# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11390ac_temp_CPPFLAGS=""
11391for option in $CPPFLAGS
11392do
11393  case $option in
11394    -DSQLITE_OMIT*) ;;
11395    -DSQLITE_ENABLE*) ;;
11396    *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11397  esac
11398done
11399CPPFLAGS=$ac_temp_CPPFLAGS
11400
11401
11402# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11403ac_temp_BUILD_CFLAGS=""
11404for option in $BUILD_CFLAGS
11405do
11406  case $option in
11407    -DSQLITE_OMIT*) ;;
11408    -DSQLITE_ENABLE*) ;;
11409    *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11410  esac
11411done
11412BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11413
11414
11415#########
11416# See whether we should use GCOV
11417# Check whether --enable-gcov was given.
11418if test "${enable_gcov+set}" = set; then :
11419  enableval=$enable_gcov; use_gcov=$enableval
11420else
11421  use_gcov=no
11422fi
11423
11424if test "${use_gcov}" = "yes" ; then
11425  USE_GCOV=1
11426else
11427  USE_GCOV=0
11428fi
11429
11430
11431
11432#########
11433# Output the config header
11434ac_config_headers="$ac_config_headers config.h"
11435
11436
11437#########
11438# Generate the output files.
11439#
11440
11441ac_config_files="$ac_config_files Makefile sqlite3.pc"
11442
11443cat >confcache <<\_ACEOF
11444# This file is a shell script that caches the results of configure
11445# tests run on this system so they can be shared between configure
11446# scripts and configure runs, see configure's option --config-cache.
11447# It is not useful on other systems.  If it contains results you don't
11448# want to keep, you may remove or edit it.
11449#
11450# config.status only pays attention to the cache file if you give it
11451# the --recheck option to rerun configure.
11452#
11453# `ac_cv_env_foo' variables (set or unset) will be overridden when
11454# loading this file, other *unset* `ac_cv_foo' will be assigned the
11455# following values.
11456
11457_ACEOF
11458
11459# The following way of writing the cache mishandles newlines in values,
11460# but we know of no workaround that is simple, portable, and efficient.
11461# So, we kill variables containing newlines.
11462# Ultrix sh set writes to stderr and can't be redirected directly,
11463# and sets the high bit in the cache file unless we assign to the vars.
11464(
11465  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11466    eval ac_val=\$$ac_var
11467    case $ac_val in #(
11468    *${as_nl}*)
11469      case $ac_var in #(
11470      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11471$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11472      esac
11473      case $ac_var in #(
11474      _ | IFS | as_nl) ;; #(
11475      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11476      *) { eval $ac_var=; unset $ac_var;} ;;
11477      esac ;;
11478    esac
11479  done
11480
11481  (set) 2>&1 |
11482    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11483    *${as_nl}ac_space=\ *)
11484      # `set' does not quote correctly, so add quotes: double-quote
11485      # substitution turns \\\\ into \\, and sed turns \\ into \.
11486      sed -n \
11487	"s/'/'\\\\''/g;
11488	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11489      ;; #(
11490    *)
11491      # `set' quotes correctly as required by POSIX, so do not add quotes.
11492      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11493      ;;
11494    esac |
11495    sort
11496) |
11497  sed '
11498     /^ac_cv_env_/b end
11499     t clear
11500     :clear
11501     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11502     t end
11503     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11504     :end' >>confcache
11505if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11506  if test -w "$cache_file"; then
11507    if test "x$cache_file" != "x/dev/null"; then
11508      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11509$as_echo "$as_me: updating cache $cache_file" >&6;}
11510      if test ! -f "$cache_file" || test -h "$cache_file"; then
11511	cat confcache >"$cache_file"
11512      else
11513        case $cache_file in #(
11514        */* | ?:*)
11515	  mv -f confcache "$cache_file"$$ &&
11516	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11517        *)
11518	  mv -f confcache "$cache_file" ;;
11519	esac
11520      fi
11521    fi
11522  else
11523    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11524$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11525  fi
11526fi
11527rm -f confcache
11528
11529test "x$prefix" = xNONE && prefix=$ac_default_prefix
11530# Let make expand exec_prefix.
11531test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11532
11533DEFS=-DHAVE_CONFIG_H
11534
11535ac_libobjs=
11536ac_ltlibobjs=
11537U=
11538for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11539  # 1. Remove the extension, and $U if already installed.
11540  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11541  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11542  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11543  #    will be set to the directory where LIBOBJS objects are built.
11544  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11545  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11546done
11547LIBOBJS=$ac_libobjs
11548
11549LTLIBOBJS=$ac_ltlibobjs
11550
11551
11552
11553: "${CONFIG_STATUS=./config.status}"
11554ac_write_fail=0
11555ac_clean_files_save=$ac_clean_files
11556ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11558$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11559as_write_fail=0
11560cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11561#! $SHELL
11562# Generated by $as_me.
11563# Run this file to recreate the current configuration.
11564# Compiler output produced by configure, useful for debugging
11565# configure, is in config.log if it exists.
11566
11567debug=false
11568ac_cs_recheck=false
11569ac_cs_silent=false
11570
11571SHELL=\${CONFIG_SHELL-$SHELL}
11572export SHELL
11573_ASEOF
11574cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11575## -------------------- ##
11576## M4sh Initialization. ##
11577## -------------------- ##
11578
11579# Be more Bourne compatible
11580DUALCASE=1; export DUALCASE # for MKS sh
11581if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11582  emulate sh
11583  NULLCMD=:
11584  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11585  # is contrary to our usage.  Disable this feature.
11586  alias -g '${1+"$@"}'='"$@"'
11587  setopt NO_GLOB_SUBST
11588else
11589  case `(set -o) 2>/dev/null` in #(
11590  *posix*) :
11591    set -o posix ;; #(
11592  *) :
11593     ;;
11594esac
11595fi
11596
11597
11598as_nl='
11599'
11600export as_nl
11601# Printing a long string crashes Solaris 7 /usr/bin/printf.
11602as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11603as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11604as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11605# Prefer a ksh shell builtin over an external printf program on Solaris,
11606# but without wasting forks for bash or zsh.
11607if test -z "$BASH_VERSION$ZSH_VERSION" \
11608    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11609  as_echo='print -r --'
11610  as_echo_n='print -rn --'
11611elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11612  as_echo='printf %s\n'
11613  as_echo_n='printf %s'
11614else
11615  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11616    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11617    as_echo_n='/usr/ucb/echo -n'
11618  else
11619    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11620    as_echo_n_body='eval
11621      arg=$1;
11622      case $arg in #(
11623      *"$as_nl"*)
11624	expr "X$arg" : "X\\(.*\\)$as_nl";
11625	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11626      esac;
11627      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11628    '
11629    export as_echo_n_body
11630    as_echo_n='sh -c $as_echo_n_body as_echo'
11631  fi
11632  export as_echo_body
11633  as_echo='sh -c $as_echo_body as_echo'
11634fi
11635
11636# The user is always right.
11637if test "${PATH_SEPARATOR+set}" != set; then
11638  PATH_SEPARATOR=:
11639  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11640    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11641      PATH_SEPARATOR=';'
11642  }
11643fi
11644
11645
11646# IFS
11647# We need space, tab and new line, in precisely that order.  Quoting is
11648# there to prevent editors from complaining about space-tab.
11649# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11650# splitting by setting IFS to empty value.)
11651IFS=" ""	$as_nl"
11652
11653# Find who we are.  Look in the path if we contain no directory separator.
11654as_myself=
11655case $0 in #((
11656  *[\\/]* ) as_myself=$0 ;;
11657  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658for as_dir in $PATH
11659do
11660  IFS=$as_save_IFS
11661  test -z "$as_dir" && as_dir=.
11662    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11663  done
11664IFS=$as_save_IFS
11665
11666     ;;
11667esac
11668# We did not find ourselves, most probably we were run as `sh COMMAND'
11669# in which case we are not to be found in the path.
11670if test "x$as_myself" = x; then
11671  as_myself=$0
11672fi
11673if test ! -f "$as_myself"; then
11674  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11675  exit 1
11676fi
11677
11678# Unset variables that we do not need and which cause bugs (e.g. in
11679# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11680# suppresses any "Segmentation fault" message there.  '((' could
11681# trigger a bug in pdksh 5.2.14.
11682for as_var in BASH_ENV ENV MAIL MAILPATH
11683do eval test x\${$as_var+set} = xset \
11684  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11685done
11686PS1='$ '
11687PS2='> '
11688PS4='+ '
11689
11690# NLS nuisances.
11691LC_ALL=C
11692export LC_ALL
11693LANGUAGE=C
11694export LANGUAGE
11695
11696# CDPATH.
11697(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11698
11699
11700# as_fn_error STATUS ERROR [LINENO LOG_FD]
11701# ----------------------------------------
11702# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11703# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11704# script with STATUS, using 1 if that was 0.
11705as_fn_error ()
11706{
11707  as_status=$1; test $as_status -eq 0 && as_status=1
11708  if test "$4"; then
11709    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11710    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11711  fi
11712  $as_echo "$as_me: error: $2" >&2
11713  as_fn_exit $as_status
11714} # as_fn_error
11715
11716
11717# as_fn_set_status STATUS
11718# -----------------------
11719# Set $? to STATUS, without forking.
11720as_fn_set_status ()
11721{
11722  return $1
11723} # as_fn_set_status
11724
11725# as_fn_exit STATUS
11726# -----------------
11727# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11728as_fn_exit ()
11729{
11730  set +e
11731  as_fn_set_status $1
11732  exit $1
11733} # as_fn_exit
11734
11735# as_fn_unset VAR
11736# ---------------
11737# Portably unset VAR.
11738as_fn_unset ()
11739{
11740  { eval $1=; unset $1;}
11741}
11742as_unset=as_fn_unset
11743# as_fn_append VAR VALUE
11744# ----------------------
11745# Append the text in VALUE to the end of the definition contained in VAR. Take
11746# advantage of any shell optimizations that allow amortized linear growth over
11747# repeated appends, instead of the typical quadratic growth present in naive
11748# implementations.
11749if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11750  eval 'as_fn_append ()
11751  {
11752    eval $1+=\$2
11753  }'
11754else
11755  as_fn_append ()
11756  {
11757    eval $1=\$$1\$2
11758  }
11759fi # as_fn_append
11760
11761# as_fn_arith ARG...
11762# ------------------
11763# Perform arithmetic evaluation on the ARGs, and store the result in the
11764# global $as_val. Take advantage of shells that can avoid forks. The arguments
11765# must be portable across $(()) and expr.
11766if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11767  eval 'as_fn_arith ()
11768  {
11769    as_val=$(( $* ))
11770  }'
11771else
11772  as_fn_arith ()
11773  {
11774    as_val=`expr "$@" || test $? -eq 1`
11775  }
11776fi # as_fn_arith
11777
11778
11779if expr a : '\(a\)' >/dev/null 2>&1 &&
11780   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11781  as_expr=expr
11782else
11783  as_expr=false
11784fi
11785
11786if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11787  as_basename=basename
11788else
11789  as_basename=false
11790fi
11791
11792if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11793  as_dirname=dirname
11794else
11795  as_dirname=false
11796fi
11797
11798as_me=`$as_basename -- "$0" ||
11799$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11800	 X"$0" : 'X\(//\)$' \| \
11801	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11802$as_echo X/"$0" |
11803    sed '/^.*\/\([^/][^/]*\)\/*$/{
11804	    s//\1/
11805	    q
11806	  }
11807	  /^X\/\(\/\/\)$/{
11808	    s//\1/
11809	    q
11810	  }
11811	  /^X\/\(\/\).*/{
11812	    s//\1/
11813	    q
11814	  }
11815	  s/.*/./; q'`
11816
11817# Avoid depending upon Character Ranges.
11818as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11819as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11820as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11821as_cr_digits='0123456789'
11822as_cr_alnum=$as_cr_Letters$as_cr_digits
11823
11824ECHO_C= ECHO_N= ECHO_T=
11825case `echo -n x` in #(((((
11826-n*)
11827  case `echo 'xy\c'` in
11828  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11829  xy)  ECHO_C='\c';;
11830  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11831       ECHO_T='	';;
11832  esac;;
11833*)
11834  ECHO_N='-n';;
11835esac
11836
11837rm -f conf$$ conf$$.exe conf$$.file
11838if test -d conf$$.dir; then
11839  rm -f conf$$.dir/conf$$.file
11840else
11841  rm -f conf$$.dir
11842  mkdir conf$$.dir 2>/dev/null
11843fi
11844if (echo >conf$$.file) 2>/dev/null; then
11845  if ln -s conf$$.file conf$$ 2>/dev/null; then
11846    as_ln_s='ln -s'
11847    # ... but there are two gotchas:
11848    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11849    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11850    # In both cases, we have to default to `cp -pR'.
11851    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11852      as_ln_s='cp -pR'
11853  elif ln conf$$.file conf$$ 2>/dev/null; then
11854    as_ln_s=ln
11855  else
11856    as_ln_s='cp -pR'
11857  fi
11858else
11859  as_ln_s='cp -pR'
11860fi
11861rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11862rmdir conf$$.dir 2>/dev/null
11863
11864
11865# as_fn_mkdir_p
11866# -------------
11867# Create "$as_dir" as a directory, including parents if necessary.
11868as_fn_mkdir_p ()
11869{
11870
11871  case $as_dir in #(
11872  -*) as_dir=./$as_dir;;
11873  esac
11874  test -d "$as_dir" || eval $as_mkdir_p || {
11875    as_dirs=
11876    while :; do
11877      case $as_dir in #(
11878      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11879      *) as_qdir=$as_dir;;
11880      esac
11881      as_dirs="'$as_qdir' $as_dirs"
11882      as_dir=`$as_dirname -- "$as_dir" ||
11883$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11884	 X"$as_dir" : 'X\(//\)[^/]' \| \
11885	 X"$as_dir" : 'X\(//\)$' \| \
11886	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11887$as_echo X"$as_dir" |
11888    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11889	    s//\1/
11890	    q
11891	  }
11892	  /^X\(\/\/\)[^/].*/{
11893	    s//\1/
11894	    q
11895	  }
11896	  /^X\(\/\/\)$/{
11897	    s//\1/
11898	    q
11899	  }
11900	  /^X\(\/\).*/{
11901	    s//\1/
11902	    q
11903	  }
11904	  s/.*/./; q'`
11905      test -d "$as_dir" && break
11906    done
11907    test -z "$as_dirs" || eval "mkdir $as_dirs"
11908  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11909
11910
11911} # as_fn_mkdir_p
11912if mkdir -p . 2>/dev/null; then
11913  as_mkdir_p='mkdir -p "$as_dir"'
11914else
11915  test -d ./-p && rmdir ./-p
11916  as_mkdir_p=false
11917fi
11918
11919
11920# as_fn_executable_p FILE
11921# -----------------------
11922# Test if FILE is an executable regular file.
11923as_fn_executable_p ()
11924{
11925  test -f "$1" && test -x "$1"
11926} # as_fn_executable_p
11927as_test_x='test -x'
11928as_executable_p=as_fn_executable_p
11929
11930# Sed expression to map a string onto a valid CPP name.
11931as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11932
11933# Sed expression to map a string onto a valid variable name.
11934as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11935
11936
11937exec 6>&1
11938## ----------------------------------- ##
11939## Main body of $CONFIG_STATUS script. ##
11940## ----------------------------------- ##
11941_ASEOF
11942test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11943
11944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11945# Save the log message, to keep $0 and so on meaningful, and to
11946# report actual input values of CONFIG_FILES etc. instead of their
11947# values after options handling.
11948ac_log="
11949This file was extended by sqlite $as_me 3.9.1, which was
11950generated by GNU Autoconf 2.69.  Invocation command line was
11951
11952  CONFIG_FILES    = $CONFIG_FILES
11953  CONFIG_HEADERS  = $CONFIG_HEADERS
11954  CONFIG_LINKS    = $CONFIG_LINKS
11955  CONFIG_COMMANDS = $CONFIG_COMMANDS
11956  $ $0 $@
11957
11958on `(hostname || uname -n) 2>/dev/null | sed 1q`
11959"
11960
11961_ACEOF
11962
11963case $ac_config_files in *"
11964"*) set x $ac_config_files; shift; ac_config_files=$*;;
11965esac
11966
11967case $ac_config_headers in *"
11968"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11969esac
11970
11971
11972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11973# Files that config.status was made for.
11974config_files="$ac_config_files"
11975config_headers="$ac_config_headers"
11976config_commands="$ac_config_commands"
11977
11978_ACEOF
11979
11980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11981ac_cs_usage="\
11982\`$as_me' instantiates files and other configuration actions
11983from templates according to the current configuration.  Unless the files
11984and actions are specified as TAGs, all are instantiated by default.
11985
11986Usage: $0 [OPTION]... [TAG]...
11987
11988  -h, --help       print this help, then exit
11989  -V, --version    print version number and configuration settings, then exit
11990      --config     print configuration, then exit
11991  -q, --quiet, --silent
11992                   do not print progress messages
11993  -d, --debug      don't remove temporary files
11994      --recheck    update $as_me by reconfiguring in the same conditions
11995      --file=FILE[:TEMPLATE]
11996                   instantiate the configuration file FILE
11997      --header=FILE[:TEMPLATE]
11998                   instantiate the configuration header FILE
11999
12000Configuration files:
12001$config_files
12002
12003Configuration headers:
12004$config_headers
12005
12006Configuration commands:
12007$config_commands
12008
12009Report bugs to the package provider."
12010
12011_ACEOF
12012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12013ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12014ac_cs_version="\\
12015sqlite config.status 3.9.1
12016configured by $0, generated by GNU Autoconf 2.69,
12017  with options \\"\$ac_cs_config\\"
12018
12019Copyright (C) 2012 Free Software Foundation, Inc.
12020This config.status script is free software; the Free Software Foundation
12021gives unlimited permission to copy, distribute and modify it."
12022
12023ac_pwd='$ac_pwd'
12024srcdir='$srcdir'
12025INSTALL='$INSTALL'
12026test -n "\$AWK" || AWK=awk
12027_ACEOF
12028
12029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12030# The default lists apply if the user does not specify any file.
12031ac_need_defaults=:
12032while test $# != 0
12033do
12034  case $1 in
12035  --*=?*)
12036    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12037    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12038    ac_shift=:
12039    ;;
12040  --*=)
12041    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12042    ac_optarg=
12043    ac_shift=:
12044    ;;
12045  *)
12046    ac_option=$1
12047    ac_optarg=$2
12048    ac_shift=shift
12049    ;;
12050  esac
12051
12052  case $ac_option in
12053  # Handling of the options.
12054  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12055    ac_cs_recheck=: ;;
12056  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12057    $as_echo "$ac_cs_version"; exit ;;
12058  --config | --confi | --conf | --con | --co | --c )
12059    $as_echo "$ac_cs_config"; exit ;;
12060  --debug | --debu | --deb | --de | --d | -d )
12061    debug=: ;;
12062  --file | --fil | --fi | --f )
12063    $ac_shift
12064    case $ac_optarg in
12065    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12066    '') as_fn_error $? "missing file argument" ;;
12067    esac
12068    as_fn_append CONFIG_FILES " '$ac_optarg'"
12069    ac_need_defaults=false;;
12070  --header | --heade | --head | --hea )
12071    $ac_shift
12072    case $ac_optarg in
12073    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12074    esac
12075    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12076    ac_need_defaults=false;;
12077  --he | --h)
12078    # Conflict between --help and --header
12079    as_fn_error $? "ambiguous option: \`$1'
12080Try \`$0 --help' for more information.";;
12081  --help | --hel | -h )
12082    $as_echo "$ac_cs_usage"; exit ;;
12083  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12084  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12085    ac_cs_silent=: ;;
12086
12087  # This is an error.
12088  -*) as_fn_error $? "unrecognized option: \`$1'
12089Try \`$0 --help' for more information." ;;
12090
12091  *) as_fn_append ac_config_targets " $1"
12092     ac_need_defaults=false ;;
12093
12094  esac
12095  shift
12096done
12097
12098ac_configure_extra_args=
12099
12100if $ac_cs_silent; then
12101  exec 6>/dev/null
12102  ac_configure_extra_args="$ac_configure_extra_args --silent"
12103fi
12104
12105_ACEOF
12106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12107if \$ac_cs_recheck; then
12108  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12109  shift
12110  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12111  CONFIG_SHELL='$SHELL'
12112  export CONFIG_SHELL
12113  exec "\$@"
12114fi
12115
12116_ACEOF
12117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12118exec 5>>config.log
12119{
12120  echo
12121  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12122## Running $as_me. ##
12123_ASBOX
12124  $as_echo "$ac_log"
12125} >&5
12126
12127_ACEOF
12128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12129#
12130# INIT-COMMANDS
12131#
12132
12133
12134# The HP-UX ksh and POSIX shell print the target directory to stdout
12135# if CDPATH is set.
12136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12137
12138sed_quote_subst='$sed_quote_subst'
12139double_quote_subst='$double_quote_subst'
12140delay_variable_subst='$delay_variable_subst'
12141macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12142macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12143enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12144enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12145pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12146enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12147host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12148host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12149host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12150build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12151build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12152build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12153SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12154Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12155GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12156EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12157FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12158LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12159NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12160LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12161max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12162ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12163exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12164lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12165lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12166lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12167reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12168reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12169OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12170deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12171file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12172AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12173AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12174STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12175RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12176old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12177old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12178old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12179CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12180CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12181compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12182GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12183lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12184lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12185lt_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"`'
12186lt_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"`'
12187objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12188SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12189ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12190MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12191lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12192lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12193lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12194lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12195lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12196need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12197DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12198NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12199LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12200OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12201OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12202libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12203shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12204extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12205archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12206enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12207export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12208whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12209compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12210old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12211old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12212archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12213archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12214module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12215module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12216with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12217allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12218no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12219hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12220hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12221hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12222hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12223hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12224hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12225hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12226hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12227inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12228link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12229fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12230always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12231export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12232exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12233include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12234prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12235file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12236variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12237need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12238need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12239version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12240runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12241shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12242shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12243libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12244library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12245soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12246postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12247postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12248finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12249finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12250hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12251sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12252sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12253hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12254enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12255enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12256enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12257old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12258striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12259
12260LTCC='$LTCC'
12261LTCFLAGS='$LTCFLAGS'
12262compiler='$compiler_DEFAULT'
12263
12264# Quote evaled strings.
12265for var in SED \
12266GREP \
12267EGREP \
12268FGREP \
12269LD \
12270NM \
12271LN_S \
12272lt_SP2NL \
12273lt_NL2SP \
12274reload_flag \
12275OBJDUMP \
12276deplibs_check_method \
12277file_magic_cmd \
12278AR \
12279AR_FLAGS \
12280STRIP \
12281RANLIB \
12282CC \
12283CFLAGS \
12284compiler \
12285lt_cv_sys_global_symbol_pipe \
12286lt_cv_sys_global_symbol_to_cdecl \
12287lt_cv_sys_global_symbol_to_c_name_address \
12288lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12289SHELL \
12290ECHO \
12291lt_prog_compiler_no_builtin_flag \
12292lt_prog_compiler_wl \
12293lt_prog_compiler_pic \
12294lt_prog_compiler_static \
12295lt_cv_prog_compiler_c_o \
12296need_locks \
12297DSYMUTIL \
12298NMEDIT \
12299LIPO \
12300OTOOL \
12301OTOOL64 \
12302shrext_cmds \
12303export_dynamic_flag_spec \
12304whole_archive_flag_spec \
12305compiler_needs_object \
12306with_gnu_ld \
12307allow_undefined_flag \
12308no_undefined_flag \
12309hardcode_libdir_flag_spec \
12310hardcode_libdir_flag_spec_ld \
12311hardcode_libdir_separator \
12312fix_srcfile_path \
12313exclude_expsyms \
12314include_expsyms \
12315file_list_spec \
12316variables_saved_for_relink \
12317libname_spec \
12318library_names_spec \
12319soname_spec \
12320finish_eval \
12321old_striplib \
12322striplib; do
12323    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12324    *[\\\\\\\`\\"\\\$]*)
12325      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12326      ;;
12327    *)
12328      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12329      ;;
12330    esac
12331done
12332
12333# Double-quote double-evaled strings.
12334for var in reload_cmds \
12335old_postinstall_cmds \
12336old_postuninstall_cmds \
12337old_archive_cmds \
12338extract_expsyms_cmds \
12339old_archive_from_new_cmds \
12340old_archive_from_expsyms_cmds \
12341archive_cmds \
12342archive_expsym_cmds \
12343module_cmds \
12344module_expsym_cmds \
12345export_symbols_cmds \
12346prelink_cmds \
12347postinstall_cmds \
12348postuninstall_cmds \
12349finish_cmds \
12350sys_lib_search_path_spec \
12351sys_lib_dlsearch_path_spec; do
12352    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12353    *[\\\\\\\`\\"\\\$]*)
12354      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12355      ;;
12356    *)
12357      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12358      ;;
12359    esac
12360done
12361
12362# Fix-up fallback echo if it was mangled by the above quoting rules.
12363case \$lt_ECHO in
12364*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12365  ;;
12366esac
12367
12368ac_aux_dir='$ac_aux_dir'
12369xsi_shell='$xsi_shell'
12370lt_shell_append='$lt_shell_append'
12371
12372# See if we are running on zsh, and set the options which allow our
12373# commands through without removal of \ escapes INIT.
12374if test -n "\${ZSH_VERSION+set}" ; then
12375   setopt NO_GLOB_SUBST
12376fi
12377
12378
12379    PACKAGE='$PACKAGE'
12380    VERSION='$VERSION'
12381    TIMESTAMP='$TIMESTAMP'
12382    RM='$RM'
12383    ofile='$ofile'
12384
12385
12386
12387
12388_ACEOF
12389
12390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12391
12392# Handling of arguments.
12393for ac_config_target in $ac_config_targets
12394do
12395  case $ac_config_target in
12396    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12397    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12398    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12399    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12400
12401  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12402  esac
12403done
12404
12405
12406# If the user did not use the arguments to specify the items to instantiate,
12407# then the envvar interface is used.  Set only those that are not.
12408# We use the long form for the default assignment because of an extremely
12409# bizarre bug on SunOS 4.1.3.
12410if $ac_need_defaults; then
12411  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12412  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12413  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12414fi
12415
12416# Have a temporary directory for convenience.  Make it in the build tree
12417# simply because there is no reason against having it here, and in addition,
12418# creating and moving files from /tmp can sometimes cause problems.
12419# Hook for its removal unless debugging.
12420# Note that there is a small window in which the directory will not be cleaned:
12421# after its creation but before its name has been assigned to `$tmp'.
12422$debug ||
12423{
12424  tmp= ac_tmp=
12425  trap 'exit_status=$?
12426  : "${ac_tmp:=$tmp}"
12427  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12428' 0
12429  trap 'as_fn_exit 1' 1 2 13 15
12430}
12431# Create a (secure) tmp directory for tmp files.
12432
12433{
12434  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12435  test -d "$tmp"
12436}  ||
12437{
12438  tmp=./conf$$-$RANDOM
12439  (umask 077 && mkdir "$tmp")
12440} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12441ac_tmp=$tmp
12442
12443# Set up the scripts for CONFIG_FILES section.
12444# No need to generate them if there are no CONFIG_FILES.
12445# This happens for instance with `./config.status config.h'.
12446if test -n "$CONFIG_FILES"; then
12447
12448
12449ac_cr=`echo X | tr X '\015'`
12450# On cygwin, bash can eat \r inside `` if the user requested igncr.
12451# But we know of no other shell where ac_cr would be empty at this
12452# point, so we can use a bashism as a fallback.
12453if test "x$ac_cr" = x; then
12454  eval ac_cr=\$\'\\r\'
12455fi
12456ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12457if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12458  ac_cs_awk_cr='\\r'
12459else
12460  ac_cs_awk_cr=$ac_cr
12461fi
12462
12463echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12464_ACEOF
12465
12466
12467{
12468  echo "cat >conf$$subs.awk <<_ACEOF" &&
12469  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12470  echo "_ACEOF"
12471} >conf$$subs.sh ||
12472  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12473ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12474ac_delim='%!_!# '
12475for ac_last_try in false false false false false :; do
12476  . ./conf$$subs.sh ||
12477    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12478
12479  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12480  if test $ac_delim_n = $ac_delim_num; then
12481    break
12482  elif $ac_last_try; then
12483    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12484  else
12485    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12486  fi
12487done
12488rm -f conf$$subs.sh
12489
12490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12491cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12492_ACEOF
12493sed -n '
12494h
12495s/^/S["/; s/!.*/"]=/
12496p
12497g
12498s/^[^!]*!//
12499:repl
12500t repl
12501s/'"$ac_delim"'$//
12502t delim
12503:nl
12504h
12505s/\(.\{148\}\)..*/\1/
12506t more1
12507s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12508p
12509n
12510b repl
12511:more1
12512s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12513p
12514g
12515s/.\{148\}//
12516t nl
12517:delim
12518h
12519s/\(.\{148\}\)..*/\1/
12520t more2
12521s/["\\]/\\&/g; s/^/"/; s/$/"/
12522p
12523b
12524:more2
12525s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12526p
12527g
12528s/.\{148\}//
12529t delim
12530' <conf$$subs.awk | sed '
12531/^[^""]/{
12532  N
12533  s/\n//
12534}
12535' >>$CONFIG_STATUS || ac_write_fail=1
12536rm -f conf$$subs.awk
12537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12538_ACAWK
12539cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12540  for (key in S) S_is_set[key] = 1
12541  FS = ""
12542
12543}
12544{
12545  line = $ 0
12546  nfields = split(line, field, "@")
12547  substed = 0
12548  len = length(field[1])
12549  for (i = 2; i < nfields; i++) {
12550    key = field[i]
12551    keylen = length(key)
12552    if (S_is_set[key]) {
12553      value = S[key]
12554      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12555      len += length(value) + length(field[++i])
12556      substed = 1
12557    } else
12558      len += 1 + keylen
12559  }
12560
12561  print line
12562}
12563
12564_ACAWK
12565_ACEOF
12566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12567if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12568  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12569else
12570  cat
12571fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12572  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12573_ACEOF
12574
12575# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12576# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12577# trailing colons and then remove the whole line if VPATH becomes empty
12578# (actually we leave an empty line to preserve line numbers).
12579if test "x$srcdir" = x.; then
12580  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12581h
12582s///
12583s/^/:/
12584s/[	 ]*$/:/
12585s/:\$(srcdir):/:/g
12586s/:\${srcdir}:/:/g
12587s/:@srcdir@:/:/g
12588s/^:*//
12589s/:*$//
12590x
12591s/\(=[	 ]*\).*/\1/
12592G
12593s/\n//
12594s/^[^=]*=[	 ]*$//
12595}'
12596fi
12597
12598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12599fi # test -n "$CONFIG_FILES"
12600
12601# Set up the scripts for CONFIG_HEADERS section.
12602# No need to generate them if there are no CONFIG_HEADERS.
12603# This happens for instance with `./config.status Makefile'.
12604if test -n "$CONFIG_HEADERS"; then
12605cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12606BEGIN {
12607_ACEOF
12608
12609# Transform confdefs.h into an awk script `defines.awk', embedded as
12610# here-document in config.status, that substitutes the proper values into
12611# config.h.in to produce config.h.
12612
12613# Create a delimiter string that does not exist in confdefs.h, to ease
12614# handling of long lines.
12615ac_delim='%!_!# '
12616for ac_last_try in false false :; do
12617  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12618  if test -z "$ac_tt"; then
12619    break
12620  elif $ac_last_try; then
12621    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12622  else
12623    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12624  fi
12625done
12626
12627# For the awk script, D is an array of macro values keyed by name,
12628# likewise P contains macro parameters if any.  Preserve backslash
12629# newline sequences.
12630
12631ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12632sed -n '
12633s/.\{148\}/&'"$ac_delim"'/g
12634t rset
12635:rset
12636s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12637t def
12638d
12639:def
12640s/\\$//
12641t bsnl
12642s/["\\]/\\&/g
12643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12644D["\1"]=" \3"/p
12645s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12646d
12647:bsnl
12648s/["\\]/\\&/g
12649s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12650D["\1"]=" \3\\\\\\n"\\/p
12651t cont
12652s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12653t cont
12654d
12655:cont
12656n
12657s/.\{148\}/&'"$ac_delim"'/g
12658t clear
12659:clear
12660s/\\$//
12661t bsnlc
12662s/["\\]/\\&/g; s/^/"/; s/$/"/p
12663d
12664:bsnlc
12665s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12666b cont
12667' <confdefs.h | sed '
12668s/'"$ac_delim"'/"\\\
12669"/g' >>$CONFIG_STATUS || ac_write_fail=1
12670
12671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12672  for (key in D) D_is_set[key] = 1
12673  FS = ""
12674}
12675/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12676  line = \$ 0
12677  split(line, arg, " ")
12678  if (arg[1] == "#") {
12679    defundef = arg[2]
12680    mac1 = arg[3]
12681  } else {
12682    defundef = substr(arg[1], 2)
12683    mac1 = arg[2]
12684  }
12685  split(mac1, mac2, "(") #)
12686  macro = mac2[1]
12687  prefix = substr(line, 1, index(line, defundef) - 1)
12688  if (D_is_set[macro]) {
12689    # Preserve the white space surrounding the "#".
12690    print prefix "define", macro P[macro] D[macro]
12691    next
12692  } else {
12693    # Replace #undef with comments.  This is necessary, for example,
12694    # in the case of _POSIX_SOURCE, which is predefined and required
12695    # on some systems where configure will not decide to define it.
12696    if (defundef == "undef") {
12697      print "/*", prefix defundef, macro, "*/"
12698      next
12699    }
12700  }
12701}
12702{ print }
12703_ACAWK
12704_ACEOF
12705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12706  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12707fi # test -n "$CONFIG_HEADERS"
12708
12709
12710eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12711shift
12712for ac_tag
12713do
12714  case $ac_tag in
12715  :[FHLC]) ac_mode=$ac_tag; continue;;
12716  esac
12717  case $ac_mode$ac_tag in
12718  :[FHL]*:*);;
12719  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12720  :[FH]-) ac_tag=-:-;;
12721  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12722  esac
12723  ac_save_IFS=$IFS
12724  IFS=:
12725  set x $ac_tag
12726  IFS=$ac_save_IFS
12727  shift
12728  ac_file=$1
12729  shift
12730
12731  case $ac_mode in
12732  :L) ac_source=$1;;
12733  :[FH])
12734    ac_file_inputs=
12735    for ac_f
12736    do
12737      case $ac_f in
12738      -) ac_f="$ac_tmp/stdin";;
12739      *) # Look for the file first in the build tree, then in the source tree
12740	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12741	 # because $ac_f cannot contain `:'.
12742	 test -f "$ac_f" ||
12743	   case $ac_f in
12744	   [\\/$]*) false;;
12745	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12746	   esac ||
12747	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12748      esac
12749      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12750      as_fn_append ac_file_inputs " '$ac_f'"
12751    done
12752
12753    # Let's still pretend it is `configure' which instantiates (i.e., don't
12754    # use $as_me), people would be surprised to read:
12755    #    /* config.h.  Generated by config.status.  */
12756    configure_input='Generated from '`
12757	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12758	`' by configure.'
12759    if test x"$ac_file" != x-; then
12760      configure_input="$ac_file.  $configure_input"
12761      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12762$as_echo "$as_me: creating $ac_file" >&6;}
12763    fi
12764    # Neutralize special characters interpreted by sed in replacement strings.
12765    case $configure_input in #(
12766    *\&* | *\|* | *\\* )
12767       ac_sed_conf_input=`$as_echo "$configure_input" |
12768       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12769    *) ac_sed_conf_input=$configure_input;;
12770    esac
12771
12772    case $ac_tag in
12773    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12774      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12775    esac
12776    ;;
12777  esac
12778
12779  ac_dir=`$as_dirname -- "$ac_file" ||
12780$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12781	 X"$ac_file" : 'X\(//\)[^/]' \| \
12782	 X"$ac_file" : 'X\(//\)$' \| \
12783	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12784$as_echo X"$ac_file" |
12785    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12786	    s//\1/
12787	    q
12788	  }
12789	  /^X\(\/\/\)[^/].*/{
12790	    s//\1/
12791	    q
12792	  }
12793	  /^X\(\/\/\)$/{
12794	    s//\1/
12795	    q
12796	  }
12797	  /^X\(\/\).*/{
12798	    s//\1/
12799	    q
12800	  }
12801	  s/.*/./; q'`
12802  as_dir="$ac_dir"; as_fn_mkdir_p
12803  ac_builddir=.
12804
12805case "$ac_dir" in
12806.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12807*)
12808  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12809  # A ".." for each directory in $ac_dir_suffix.
12810  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12811  case $ac_top_builddir_sub in
12812  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12813  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12814  esac ;;
12815esac
12816ac_abs_top_builddir=$ac_pwd
12817ac_abs_builddir=$ac_pwd$ac_dir_suffix
12818# for backward compatibility:
12819ac_top_builddir=$ac_top_build_prefix
12820
12821case $srcdir in
12822  .)  # We are building in place.
12823    ac_srcdir=.
12824    ac_top_srcdir=$ac_top_builddir_sub
12825    ac_abs_top_srcdir=$ac_pwd ;;
12826  [\\/]* | ?:[\\/]* )  # Absolute name.
12827    ac_srcdir=$srcdir$ac_dir_suffix;
12828    ac_top_srcdir=$srcdir
12829    ac_abs_top_srcdir=$srcdir ;;
12830  *) # Relative name.
12831    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12832    ac_top_srcdir=$ac_top_build_prefix$srcdir
12833    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12834esac
12835ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12836
12837
12838  case $ac_mode in
12839  :F)
12840  #
12841  # CONFIG_FILE
12842  #
12843
12844  case $INSTALL in
12845  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12846  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12847  esac
12848_ACEOF
12849
12850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12851# If the template does not know about datarootdir, expand it.
12852# FIXME: This hack should be removed a few years after 2.60.
12853ac_datarootdir_hack=; ac_datarootdir_seen=
12854ac_sed_dataroot='
12855/datarootdir/ {
12856  p
12857  q
12858}
12859/@datadir@/p
12860/@docdir@/p
12861/@infodir@/p
12862/@localedir@/p
12863/@mandir@/p'
12864case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12865*datarootdir*) ac_datarootdir_seen=yes;;
12866*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12867  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12868$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12869_ACEOF
12870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12871  ac_datarootdir_hack='
12872  s&@datadir@&$datadir&g
12873  s&@docdir@&$docdir&g
12874  s&@infodir@&$infodir&g
12875  s&@localedir@&$localedir&g
12876  s&@mandir@&$mandir&g
12877  s&\\\${datarootdir}&$datarootdir&g' ;;
12878esac
12879_ACEOF
12880
12881# Neutralize VPATH when `$srcdir' = `.'.
12882# Shell code in configure.ac might set extrasub.
12883# FIXME: do we really want to maintain this feature?
12884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12885ac_sed_extra="$ac_vpsub
12886$extrasub
12887_ACEOF
12888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12889:t
12890/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12891s|@configure_input@|$ac_sed_conf_input|;t t
12892s&@top_builddir@&$ac_top_builddir_sub&;t t
12893s&@top_build_prefix@&$ac_top_build_prefix&;t t
12894s&@srcdir@&$ac_srcdir&;t t
12895s&@abs_srcdir@&$ac_abs_srcdir&;t t
12896s&@top_srcdir@&$ac_top_srcdir&;t t
12897s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12898s&@builddir@&$ac_builddir&;t t
12899s&@abs_builddir@&$ac_abs_builddir&;t t
12900s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12901s&@INSTALL@&$ac_INSTALL&;t t
12902$ac_datarootdir_hack
12903"
12904eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12905  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12906
12907test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12908  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12909  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12910      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12911  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12912which seems to be undefined.  Please make sure it is defined" >&5
12913$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12914which seems to be undefined.  Please make sure it is defined" >&2;}
12915
12916  rm -f "$ac_tmp/stdin"
12917  case $ac_file in
12918  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12919  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12920  esac \
12921  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12922 ;;
12923  :H)
12924  #
12925  # CONFIG_HEADER
12926  #
12927  if test x"$ac_file" != x-; then
12928    {
12929      $as_echo "/* $configure_input  */" \
12930      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12931    } >"$ac_tmp/config.h" \
12932      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12933    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12934      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12935$as_echo "$as_me: $ac_file is unchanged" >&6;}
12936    else
12937      rm -f "$ac_file"
12938      mv "$ac_tmp/config.h" "$ac_file" \
12939	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12940    fi
12941  else
12942    $as_echo "/* $configure_input  */" \
12943      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12944      || as_fn_error $? "could not create -" "$LINENO" 5
12945  fi
12946 ;;
12947
12948  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12949$as_echo "$as_me: executing $ac_file commands" >&6;}
12950 ;;
12951  esac
12952
12953
12954  case $ac_file$ac_mode in
12955    "libtool":C)
12956
12957    # See if we are running on zsh, and set the options which allow our
12958    # commands through without removal of \ escapes.
12959    if test -n "${ZSH_VERSION+set}" ; then
12960      setopt NO_GLOB_SUBST
12961    fi
12962
12963    cfgfile="${ofile}T"
12964    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12965    $RM "$cfgfile"
12966
12967    cat <<_LT_EOF >> "$cfgfile"
12968#! $SHELL
12969
12970# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12971# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12972# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12973# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12974#
12975#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12976#                 2006, 2007, 2008 Free Software Foundation, Inc.
12977#   Written by Gordon Matzigkeit, 1996
12978#
12979#   This file is part of GNU Libtool.
12980#
12981# GNU Libtool is free software; you can redistribute it and/or
12982# modify it under the terms of the GNU General Public License as
12983# published by the Free Software Foundation; either version 2 of
12984# the License, or (at your option) any later version.
12985#
12986# As a special exception to the GNU General Public License,
12987# if you distribute this file as part of a program or library that
12988# is built using GNU Libtool, you may include this file under the
12989# same distribution terms that you use for the rest of that program.
12990#
12991# GNU Libtool is distributed in the hope that it will be useful,
12992# but WITHOUT ANY WARRANTY; without even the implied warranty of
12993# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12994# GNU General Public License for more details.
12995#
12996# You should have received a copy of the GNU General Public License
12997# along with GNU Libtool; see the file COPYING.  If not, a copy
12998# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12999# obtained by writing to the Free Software Foundation, Inc.,
13000# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13001
13002
13003# The names of the tagged configurations supported by this script.
13004available_tags=""
13005
13006# ### BEGIN LIBTOOL CONFIG
13007
13008# Which release of libtool.m4 was used?
13009macro_version=$macro_version
13010macro_revision=$macro_revision
13011
13012# Whether or not to build shared libraries.
13013build_libtool_libs=$enable_shared
13014
13015# Whether or not to build static libraries.
13016build_old_libs=$enable_static
13017
13018# What type of objects to build.
13019pic_mode=$pic_mode
13020
13021# Whether or not to optimize for fast installation.
13022fast_install=$enable_fast_install
13023
13024# The host system.
13025host_alias=$host_alias
13026host=$host
13027host_os=$host_os
13028
13029# The build system.
13030build_alias=$build_alias
13031build=$build
13032build_os=$build_os
13033
13034# A sed program that does not truncate output.
13035SED=$lt_SED
13036
13037# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13038Xsed="\$SED -e 1s/^X//"
13039
13040# A grep program that handles long lines.
13041GREP=$lt_GREP
13042
13043# An ERE matcher.
13044EGREP=$lt_EGREP
13045
13046# A literal string matcher.
13047FGREP=$lt_FGREP
13048
13049# A BSD- or MS-compatible name lister.
13050NM=$lt_NM
13051
13052# Whether we need soft or hard links.
13053LN_S=$lt_LN_S
13054
13055# What is the maximum length of a command?
13056max_cmd_len=$max_cmd_len
13057
13058# Object file suffix (normally "o").
13059objext=$ac_objext
13060
13061# Executable file suffix (normally "").
13062exeext=$exeext
13063
13064# whether the shell understands "unset".
13065lt_unset=$lt_unset
13066
13067# turn spaces into newlines.
13068SP2NL=$lt_lt_SP2NL
13069
13070# turn newlines into spaces.
13071NL2SP=$lt_lt_NL2SP
13072
13073# How to create reloadable object files.
13074reload_flag=$lt_reload_flag
13075reload_cmds=$lt_reload_cmds
13076
13077# An object symbol dumper.
13078OBJDUMP=$lt_OBJDUMP
13079
13080# Method to check whether dependent libraries are shared objects.
13081deplibs_check_method=$lt_deplibs_check_method
13082
13083# Command to use when deplibs_check_method == "file_magic".
13084file_magic_cmd=$lt_file_magic_cmd
13085
13086# The archiver.
13087AR=$lt_AR
13088AR_FLAGS=$lt_AR_FLAGS
13089
13090# A symbol stripping program.
13091STRIP=$lt_STRIP
13092
13093# Commands used to install an old-style archive.
13094RANLIB=$lt_RANLIB
13095old_postinstall_cmds=$lt_old_postinstall_cmds
13096old_postuninstall_cmds=$lt_old_postuninstall_cmds
13097
13098# A C compiler.
13099LTCC=$lt_CC
13100
13101# LTCC compiler flags.
13102LTCFLAGS=$lt_CFLAGS
13103
13104# Take the output of nm and produce a listing of raw symbols and C names.
13105global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13106
13107# Transform the output of nm in a proper C declaration.
13108global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13109
13110# Transform the output of nm in a C name address pair.
13111global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13112
13113# Transform the output of nm in a C name address pair when lib prefix is needed.
13114global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13115
13116# The name of the directory that contains temporary libtool files.
13117objdir=$objdir
13118
13119# Shell to use when invoking shell scripts.
13120SHELL=$lt_SHELL
13121
13122# An echo program that does not interpret backslashes.
13123ECHO=$lt_ECHO
13124
13125# Used to examine libraries when file_magic_cmd begins with "file".
13126MAGIC_CMD=$MAGIC_CMD
13127
13128# Must we lock files when doing compilation?
13129need_locks=$lt_need_locks
13130
13131# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13132DSYMUTIL=$lt_DSYMUTIL
13133
13134# Tool to change global to local symbols on Mac OS X.
13135NMEDIT=$lt_NMEDIT
13136
13137# Tool to manipulate fat objects and archives on Mac OS X.
13138LIPO=$lt_LIPO
13139
13140# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13141OTOOL=$lt_OTOOL
13142
13143# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13144OTOOL64=$lt_OTOOL64
13145
13146# Old archive suffix (normally "a").
13147libext=$libext
13148
13149# Shared library suffix (normally ".so").
13150shrext_cmds=$lt_shrext_cmds
13151
13152# The commands to extract the exported symbol list from a shared archive.
13153extract_expsyms_cmds=$lt_extract_expsyms_cmds
13154
13155# Variables whose values should be saved in libtool wrapper scripts and
13156# restored at link time.
13157variables_saved_for_relink=$lt_variables_saved_for_relink
13158
13159# Do we need the "lib" prefix for modules?
13160need_lib_prefix=$need_lib_prefix
13161
13162# Do we need a version for libraries?
13163need_version=$need_version
13164
13165# Library versioning type.
13166version_type=$version_type
13167
13168# Shared library runtime path variable.
13169runpath_var=$runpath_var
13170
13171# Shared library path variable.
13172shlibpath_var=$shlibpath_var
13173
13174# Is shlibpath searched before the hard-coded library search path?
13175shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13176
13177# Format of library name prefix.
13178libname_spec=$lt_libname_spec
13179
13180# List of archive names.  First name is the real one, the rest are links.
13181# The last name is the one that the linker finds with -lNAME
13182library_names_spec=$lt_library_names_spec
13183
13184# The coded name of the library, if different from the real name.
13185soname_spec=$lt_soname_spec
13186
13187# Command to use after installation of a shared archive.
13188postinstall_cmds=$lt_postinstall_cmds
13189
13190# Command to use after uninstallation of a shared archive.
13191postuninstall_cmds=$lt_postuninstall_cmds
13192
13193# Commands used to finish a libtool library installation in a directory.
13194finish_cmds=$lt_finish_cmds
13195
13196# As "finish_cmds", except a single script fragment to be evaled but
13197# not shown.
13198finish_eval=$lt_finish_eval
13199
13200# Whether we should hardcode library paths into libraries.
13201hardcode_into_libs=$hardcode_into_libs
13202
13203# Compile-time system search path for libraries.
13204sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13205
13206# Run-time system search path for libraries.
13207sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13208
13209# Whether dlopen is supported.
13210dlopen_support=$enable_dlopen
13211
13212# Whether dlopen of programs is supported.
13213dlopen_self=$enable_dlopen_self
13214
13215# Whether dlopen of statically linked programs is supported.
13216dlopen_self_static=$enable_dlopen_self_static
13217
13218# Commands to strip libraries.
13219old_striplib=$lt_old_striplib
13220striplib=$lt_striplib
13221
13222
13223# The linker used to build libraries.
13224LD=$lt_LD
13225
13226# Commands used to build an old-style archive.
13227old_archive_cmds=$lt_old_archive_cmds
13228
13229# A language specific compiler.
13230CC=$lt_compiler
13231
13232# Is the compiler the GNU compiler?
13233with_gcc=$GCC
13234
13235# Compiler flag to turn off builtin functions.
13236no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13237
13238# How to pass a linker flag through the compiler.
13239wl=$lt_lt_prog_compiler_wl
13240
13241# Additional compiler flags for building library objects.
13242pic_flag=$lt_lt_prog_compiler_pic
13243
13244# Compiler flag to prevent dynamic linking.
13245link_static_flag=$lt_lt_prog_compiler_static
13246
13247# Does compiler simultaneously support -c and -o options?
13248compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13249
13250# Whether or not to add -lc for building shared libraries.
13251build_libtool_need_lc=$archive_cmds_need_lc
13252
13253# Whether or not to disallow shared libs when runtime libs are static.
13254allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13255
13256# Compiler flag to allow reflexive dlopens.
13257export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13258
13259# Compiler flag to generate shared objects directly from archives.
13260whole_archive_flag_spec=$lt_whole_archive_flag_spec
13261
13262# Whether the compiler copes with passing no objects directly.
13263compiler_needs_object=$lt_compiler_needs_object
13264
13265# Create an old-style archive from a shared archive.
13266old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13267
13268# Create a temporary old-style archive to link instead of a shared archive.
13269old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13270
13271# Commands used to build a shared archive.
13272archive_cmds=$lt_archive_cmds
13273archive_expsym_cmds=$lt_archive_expsym_cmds
13274
13275# Commands used to build a loadable module if different from building
13276# a shared archive.
13277module_cmds=$lt_module_cmds
13278module_expsym_cmds=$lt_module_expsym_cmds
13279
13280# Whether we are building with GNU ld or not.
13281with_gnu_ld=$lt_with_gnu_ld
13282
13283# Flag that allows shared libraries with undefined symbols to be built.
13284allow_undefined_flag=$lt_allow_undefined_flag
13285
13286# Flag that enforces no undefined symbols.
13287no_undefined_flag=$lt_no_undefined_flag
13288
13289# Flag to hardcode \$libdir into a binary during linking.
13290# This must work even if \$libdir does not exist
13291hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13292
13293# If ld is used when linking, flag to hardcode \$libdir into a binary
13294# during linking.  This must work even if \$libdir does not exist.
13295hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13296
13297# Whether we need a single "-rpath" flag with a separated argument.
13298hardcode_libdir_separator=$lt_hardcode_libdir_separator
13299
13300# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13301# DIR into the resulting binary.
13302hardcode_direct=$hardcode_direct
13303
13304# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13305# DIR into the resulting binary and the resulting library dependency is
13306# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13307# library is relocated.
13308hardcode_direct_absolute=$hardcode_direct_absolute
13309
13310# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13311# into the resulting binary.
13312hardcode_minus_L=$hardcode_minus_L
13313
13314# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13315# into the resulting binary.
13316hardcode_shlibpath_var=$hardcode_shlibpath_var
13317
13318# Set to "yes" if building a shared library automatically hardcodes DIR
13319# into the library and all subsequent libraries and executables linked
13320# against it.
13321hardcode_automatic=$hardcode_automatic
13322
13323# Set to yes if linker adds runtime paths of dependent libraries
13324# to runtime path list.
13325inherit_rpath=$inherit_rpath
13326
13327# Whether libtool must link a program against all its dependency libraries.
13328link_all_deplibs=$link_all_deplibs
13329
13330# Fix the shell variable \$srcfile for the compiler.
13331fix_srcfile_path=$lt_fix_srcfile_path
13332
13333# Set to "yes" if exported symbols are required.
13334always_export_symbols=$always_export_symbols
13335
13336# The commands to list exported symbols.
13337export_symbols_cmds=$lt_export_symbols_cmds
13338
13339# Symbols that should not be listed in the preloaded symbols.
13340exclude_expsyms=$lt_exclude_expsyms
13341
13342# Symbols that must always be exported.
13343include_expsyms=$lt_include_expsyms
13344
13345# Commands necessary for linking programs (against libraries) with templates.
13346prelink_cmds=$lt_prelink_cmds
13347
13348# Specify filename containing input files.
13349file_list_spec=$lt_file_list_spec
13350
13351# How to hardcode a shared library path into an executable.
13352hardcode_action=$hardcode_action
13353
13354# ### END LIBTOOL CONFIG
13355
13356_LT_EOF
13357
13358  case $host_os in
13359  aix3*)
13360    cat <<\_LT_EOF >> "$cfgfile"
13361# AIX sometimes has problems with the GCC collect2 program.  For some
13362# reason, if we set the COLLECT_NAMES environment variable, the problems
13363# vanish in a puff of smoke.
13364if test "X${COLLECT_NAMES+set}" != Xset; then
13365  COLLECT_NAMES=
13366  export COLLECT_NAMES
13367fi
13368_LT_EOF
13369    ;;
13370  esac
13371
13372
13373ltmain="$ac_aux_dir/ltmain.sh"
13374
13375
13376  # We use sed instead of cat because bash on DJGPP gets confused if
13377  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13378  # text mode, it properly converts lines to CR/LF.  This bash problem
13379  # is reportedly fixed, but why not run on old versions too?
13380  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13381    || (rm -f "$cfgfile"; exit 1)
13382
13383  case $xsi_shell in
13384  yes)
13385    cat << \_LT_EOF >> "$cfgfile"
13386
13387# func_dirname file append nondir_replacement
13388# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13389# otherwise set result to NONDIR_REPLACEMENT.
13390func_dirname ()
13391{
13392  case ${1} in
13393    */*) func_dirname_result="${1%/*}${2}" ;;
13394    *  ) func_dirname_result="${3}" ;;
13395  esac
13396}
13397
13398# func_basename file
13399func_basename ()
13400{
13401  func_basename_result="${1##*/}"
13402}
13403
13404# func_dirname_and_basename file append nondir_replacement
13405# perform func_basename and func_dirname in a single function
13406# call:
13407#   dirname:  Compute the dirname of FILE.  If nonempty,
13408#             add APPEND to the result, otherwise set result
13409#             to NONDIR_REPLACEMENT.
13410#             value returned in "$func_dirname_result"
13411#   basename: Compute filename of FILE.
13412#             value retuned in "$func_basename_result"
13413# Implementation must be kept synchronized with func_dirname
13414# and func_basename. For efficiency, we do not delegate to
13415# those functions but instead duplicate the functionality here.
13416func_dirname_and_basename ()
13417{
13418  case ${1} in
13419    */*) func_dirname_result="${1%/*}${2}" ;;
13420    *  ) func_dirname_result="${3}" ;;
13421  esac
13422  func_basename_result="${1##*/}"
13423}
13424
13425# func_stripname prefix suffix name
13426# strip PREFIX and SUFFIX off of NAME.
13427# PREFIX and SUFFIX must not contain globbing or regex special
13428# characters, hashes, percent signs, but SUFFIX may contain a leading
13429# dot (in which case that matches only a dot).
13430func_stripname ()
13431{
13432  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13433  # positional parameters, so assign one to ordinary parameter first.
13434  func_stripname_result=${3}
13435  func_stripname_result=${func_stripname_result#"${1}"}
13436  func_stripname_result=${func_stripname_result%"${2}"}
13437}
13438
13439# func_opt_split
13440func_opt_split ()
13441{
13442  func_opt_split_opt=${1%%=*}
13443  func_opt_split_arg=${1#*=}
13444}
13445
13446# func_lo2o object
13447func_lo2o ()
13448{
13449  case ${1} in
13450    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13451    *)    func_lo2o_result=${1} ;;
13452  esac
13453}
13454
13455# func_xform libobj-or-source
13456func_xform ()
13457{
13458  func_xform_result=${1%.*}.lo
13459}
13460
13461# func_arith arithmetic-term...
13462func_arith ()
13463{
13464  func_arith_result=$(( $* ))
13465}
13466
13467# func_len string
13468# STRING may not start with a hyphen.
13469func_len ()
13470{
13471  func_len_result=${#1}
13472}
13473
13474_LT_EOF
13475    ;;
13476  *) # Bourne compatible functions.
13477    cat << \_LT_EOF >> "$cfgfile"
13478
13479# func_dirname file append nondir_replacement
13480# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13481# otherwise set result to NONDIR_REPLACEMENT.
13482func_dirname ()
13483{
13484  # Extract subdirectory from the argument.
13485  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13486  if test "X$func_dirname_result" = "X${1}"; then
13487    func_dirname_result="${3}"
13488  else
13489    func_dirname_result="$func_dirname_result${2}"
13490  fi
13491}
13492
13493# func_basename file
13494func_basename ()
13495{
13496  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13497}
13498
13499
13500# func_stripname prefix suffix name
13501# strip PREFIX and SUFFIX off of NAME.
13502# PREFIX and SUFFIX must not contain globbing or regex special
13503# characters, hashes, percent signs, but SUFFIX may contain a leading
13504# dot (in which case that matches only a dot).
13505# func_strip_suffix prefix name
13506func_stripname ()
13507{
13508  case ${2} in
13509    .*) func_stripname_result=`$ECHO "X${3}" \
13510           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13511    *)  func_stripname_result=`$ECHO "X${3}" \
13512           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13513  esac
13514}
13515
13516# sed scripts:
13517my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13518my_sed_long_arg='1s/^-[^=]*=//'
13519
13520# func_opt_split
13521func_opt_split ()
13522{
13523  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13524  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13525}
13526
13527# func_lo2o object
13528func_lo2o ()
13529{
13530  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13531}
13532
13533# func_xform libobj-or-source
13534func_xform ()
13535{
13536  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13537}
13538
13539# func_arith arithmetic-term...
13540func_arith ()
13541{
13542  func_arith_result=`expr "$@"`
13543}
13544
13545# func_len string
13546# STRING may not start with a hyphen.
13547func_len ()
13548{
13549  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13550}
13551
13552_LT_EOF
13553esac
13554
13555case $lt_shell_append in
13556  yes)
13557    cat << \_LT_EOF >> "$cfgfile"
13558
13559# func_append var value
13560# Append VALUE to the end of shell variable VAR.
13561func_append ()
13562{
13563  eval "$1+=\$2"
13564}
13565_LT_EOF
13566    ;;
13567  *)
13568    cat << \_LT_EOF >> "$cfgfile"
13569
13570# func_append var value
13571# Append VALUE to the end of shell variable VAR.
13572func_append ()
13573{
13574  eval "$1=\$$1\$2"
13575}
13576
13577_LT_EOF
13578    ;;
13579  esac
13580
13581
13582  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13583    || (rm -f "$cfgfile"; exit 1)
13584
13585  mv -f "$cfgfile" "$ofile" ||
13586    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13587  chmod +x "$ofile"
13588
13589 ;;
13590
13591  esac
13592done # for ac_tag
13593
13594
13595as_fn_exit 0
13596_ACEOF
13597ac_clean_files=$ac_clean_files_save
13598
13599test $ac_write_fail = 0 ||
13600  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13601
13602
13603# configure is writing to config.log, and then calls config.status.
13604# config.status does its own redirection, appending to config.log.
13605# Unfortunately, on DOS this fails, as config.log is still kept open
13606# by configure, so config.status won't be able to write to it; its
13607# output is simply discarded.  So we exec the FD to /dev/null,
13608# effectively closing config.log, so it can be properly (re)opened and
13609# appended to by config.status.  When coming back to configure, we
13610# need to make the FD available again.
13611if test "$no_create" != yes; then
13612  ac_cs_success=:
13613  ac_config_status_args=
13614  test "$silent" = yes &&
13615    ac_config_status_args="$ac_config_status_args --quiet"
13616  exec 5>/dev/null
13617  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13618  exec 5>>config.log
13619  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13620  # would make configure fail if this is the last instruction.
13621  $ac_cs_success || as_fn_exit 1
13622fi
13623if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13624  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13625$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13626fi
13627
13628