xref: /freebsd/contrib/sqlite3/configure (revision 7431dfd4580e850375fe5478d92ec770344db098)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.8.5.
4#
5# Report bugs to <http://www.sqlite.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.sqlite.org about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='sqlite'
592PACKAGE_TARNAME='sqlite'
593PACKAGE_VERSION='3.8.5'
594PACKAGE_STRING='sqlite 3.8.5'
595PACKAGE_BUGREPORT='http://www.sqlite.org'
596PACKAGE_URL=''
597
598ac_unique_file="sqlite3.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639DYNAMIC_EXTENSION_FLAGS
640THREADSAFE_FLAGS
641READLINE_LIBS
642BUILD_CFLAGS
643CPP
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
649MANIFEST_TOOL
650ac_ct_AR
651AR
652DLLTOOL
653OBJDUMP
654LN_S
655NM
656ac_ct_DUMPBIN
657DUMPBIN
658LD
659FGREP
660EGREP
661GREP
662SED
663host_os
664host_vendor
665host_cpu
666host
667build_os
668build_vendor
669build_cpu
670build
671LIBTOOL
672RANLIB
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
676am__nodep
677AMDEPBACKSLASH
678AMDEP_FALSE
679AMDEP_TRUE
680am__quote
681am__include
682DEPDIR
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690am__untar
691am__tar
692AMTAR
693am__leading_dot
694SET_MAKE
695AWK
696mkdir_p
697MKDIR_P
698INSTALL_STRIP_PROGRAM
699STRIP
700install_sh
701MAKEINFO
702AUTOHEADER
703AUTOMAKE
704AUTOCONF
705ACLOCAL
706VERSION
707PACKAGE
708CYGPATH_W
709am__isrc
710INSTALL_DATA
711INSTALL_SCRIPT
712INSTALL_PROGRAM
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
750SHELL'
751ac_subst_files=''
752ac_user_opts='
753enable_option_checking
754enable_largefile
755enable_dependency_tracking
756enable_shared
757enable_static
758with_pic
759enable_fast_install
760with_gnu_ld
761with_sysroot
762enable_libtool_lock
763enable_readline
764enable_threadsafe
765enable_dynamic_extensions
766'
767      ac_precious_vars='build_alias
768host_alias
769target_alias
770CC
771CFLAGS
772LDFLAGS
773LIBS
774CPPFLAGS
775CPP'
776
777
778# Initialize some variables set by options.
779ac_init_help=
780ac_init_version=false
781ac_unrecognized_opts=
782ac_unrecognized_sep=
783# The variables have the same names as the options, with
784# dashes changed to underlines.
785cache_file=/dev/null
786exec_prefix=NONE
787no_create=
788no_recursion=
789prefix=NONE
790program_prefix=NONE
791program_suffix=NONE
792program_transform_name=s,x,x,
793silent=
794site=
795srcdir=
796verbose=
797x_includes=NONE
798x_libraries=NONE
799
800# Installation directory options.
801# These are left unexpanded so users can "make install exec_prefix=/foo"
802# and all the variables that are supposed to be based on exec_prefix
803# by default will actually change.
804# Use braces instead of parens because sh, perl, etc. also accept them.
805# (The list follows the same order as the GNU Coding Standards.)
806bindir='${exec_prefix}/bin'
807sbindir='${exec_prefix}/sbin'
808libexecdir='${exec_prefix}/libexec'
809datarootdir='${prefix}/share'
810datadir='${datarootdir}'
811sysconfdir='${prefix}/etc'
812sharedstatedir='${prefix}/com'
813localstatedir='${prefix}/var'
814includedir='${prefix}/include'
815oldincludedir='/usr/include'
816docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817infodir='${datarootdir}/info'
818htmldir='${docdir}'
819dvidir='${docdir}'
820pdfdir='${docdir}'
821psdir='${docdir}'
822libdir='${exec_prefix}/lib'
823localedir='${datarootdir}/locale'
824mandir='${datarootdir}/man'
825
826ac_prev=
827ac_dashdash=
828for ac_option
829do
830  # If the previous option needs an argument, assign it.
831  if test -n "$ac_prev"; then
832    eval $ac_prev=\$ac_option
833    ac_prev=
834    continue
835  fi
836
837  case $ac_option in
838  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839  *=)   ac_optarg= ;;
840  *)    ac_optarg=yes ;;
841  esac
842
843  # Accept the important Cygnus configure options, so we can diagnose typos.
844
845  case $ac_dashdash$ac_option in
846  --)
847    ac_dashdash=yes ;;
848
849  -bindir | --bindir | --bindi | --bind | --bin | --bi)
850    ac_prev=bindir ;;
851  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852    bindir=$ac_optarg ;;
853
854  -build | --build | --buil | --bui | --bu)
855    ac_prev=build_alias ;;
856  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857    build_alias=$ac_optarg ;;
858
859  -cache-file | --cache-file | --cache-fil | --cache-fi \
860  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861    ac_prev=cache_file ;;
862  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864    cache_file=$ac_optarg ;;
865
866  --config-cache | -C)
867    cache_file=config.cache ;;
868
869  -datadir | --datadir | --datadi | --datad)
870    ac_prev=datadir ;;
871  -datadir=* | --datadir=* | --datadi=* | --datad=*)
872    datadir=$ac_optarg ;;
873
874  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875  | --dataroo | --dataro | --datar)
876    ac_prev=datarootdir ;;
877  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879    datarootdir=$ac_optarg ;;
880
881  -disable-* | --disable-*)
882    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883    # Reject names that are not valid shell variable names.
884    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885      as_fn_error $? "invalid feature name: $ac_useropt"
886    ac_useropt_orig=$ac_useropt
887    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888    case $ac_user_opts in
889      *"
890"enable_$ac_useropt"
891"*) ;;
892      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893	 ac_unrecognized_sep=', ';;
894    esac
895    eval enable_$ac_useropt=no ;;
896
897  -docdir | --docdir | --docdi | --doc | --do)
898    ac_prev=docdir ;;
899  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900    docdir=$ac_optarg ;;
901
902  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903    ac_prev=dvidir ;;
904  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905    dvidir=$ac_optarg ;;
906
907  -enable-* | --enable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: $ac_useropt"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=\$ac_optarg ;;
922
923  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925  | --exec | --exe | --ex)
926    ac_prev=exec_prefix ;;
927  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929  | --exec=* | --exe=* | --ex=*)
930    exec_prefix=$ac_optarg ;;
931
932  -gas | --gas | --ga | --g)
933    # Obsolete; use --with-gas.
934    with_gas=yes ;;
935
936  -help | --help | --hel | --he | -h)
937    ac_init_help=long ;;
938  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939    ac_init_help=recursive ;;
940  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941    ac_init_help=short ;;
942
943  -host | --host | --hos | --ho)
944    ac_prev=host_alias ;;
945  -host=* | --host=* | --hos=* | --ho=*)
946    host_alias=$ac_optarg ;;
947
948  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949    ac_prev=htmldir ;;
950  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951  | --ht=*)
952    htmldir=$ac_optarg ;;
953
954  -includedir | --includedir | --includedi | --included | --include \
955  | --includ | --inclu | --incl | --inc)
956    ac_prev=includedir ;;
957  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958  | --includ=* | --inclu=* | --incl=* | --inc=*)
959    includedir=$ac_optarg ;;
960
961  -infodir | --infodir | --infodi | --infod | --info | --inf)
962    ac_prev=infodir ;;
963  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964    infodir=$ac_optarg ;;
965
966  -libdir | --libdir | --libdi | --libd)
967    ac_prev=libdir ;;
968  -libdir=* | --libdir=* | --libdi=* | --libd=*)
969    libdir=$ac_optarg ;;
970
971  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972  | --libexe | --libex | --libe)
973    ac_prev=libexecdir ;;
974  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975  | --libexe=* | --libex=* | --libe=*)
976    libexecdir=$ac_optarg ;;
977
978  -localedir | --localedir | --localedi | --localed | --locale)
979    ac_prev=localedir ;;
980  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981    localedir=$ac_optarg ;;
982
983  -localstatedir | --localstatedir | --localstatedi | --localstated \
984  | --localstate | --localstat | --localsta | --localst | --locals)
985    ac_prev=localstatedir ;;
986  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988    localstatedir=$ac_optarg ;;
989
990  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991    ac_prev=mandir ;;
992  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993    mandir=$ac_optarg ;;
994
995  -nfp | --nfp | --nf)
996    # Obsolete; use --without-fp.
997    with_fp=no ;;
998
999  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000  | --no-cr | --no-c | -n)
1001    no_create=yes ;;
1002
1003  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005    no_recursion=yes ;;
1006
1007  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009  | --oldin | --oldi | --old | --ol | --o)
1010    ac_prev=oldincludedir ;;
1011  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014    oldincludedir=$ac_optarg ;;
1015
1016  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017    ac_prev=prefix ;;
1018  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019    prefix=$ac_optarg ;;
1020
1021  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022  | --program-pre | --program-pr | --program-p)
1023    ac_prev=program_prefix ;;
1024  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026    program_prefix=$ac_optarg ;;
1027
1028  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029  | --program-suf | --program-su | --program-s)
1030    ac_prev=program_suffix ;;
1031  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033    program_suffix=$ac_optarg ;;
1034
1035  -program-transform-name | --program-transform-name \
1036  | --program-transform-nam | --program-transform-na \
1037  | --program-transform-n | --program-transform- \
1038  | --program-transform | --program-transfor \
1039  | --program-transfo | --program-transf \
1040  | --program-trans | --program-tran \
1041  | --progr-tra | --program-tr | --program-t)
1042    ac_prev=program_transform_name ;;
1043  -program-transform-name=* | --program-transform-name=* \
1044  | --program-transform-nam=* | --program-transform-na=* \
1045  | --program-transform-n=* | --program-transform-=* \
1046  | --program-transform=* | --program-transfor=* \
1047  | --program-transfo=* | --program-transf=* \
1048  | --program-trans=* | --program-tran=* \
1049  | --progr-tra=* | --program-tr=* | --program-t=*)
1050    program_transform_name=$ac_optarg ;;
1051
1052  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053    ac_prev=pdfdir ;;
1054  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055    pdfdir=$ac_optarg ;;
1056
1057  -psdir | --psdir | --psdi | --psd | --ps)
1058    ac_prev=psdir ;;
1059  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060    psdir=$ac_optarg ;;
1061
1062  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063  | -silent | --silent | --silen | --sile | --sil)
1064    silent=yes ;;
1065
1066  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067    ac_prev=sbindir ;;
1068  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069  | --sbi=* | --sb=*)
1070    sbindir=$ac_optarg ;;
1071
1072  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074  | --sharedst | --shareds | --shared | --share | --shar \
1075  | --sha | --sh)
1076    ac_prev=sharedstatedir ;;
1077  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080  | --sha=* | --sh=*)
1081    sharedstatedir=$ac_optarg ;;
1082
1083  -site | --site | --sit)
1084    ac_prev=site ;;
1085  -site=* | --site=* | --sit=*)
1086    site=$ac_optarg ;;
1087
1088  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089    ac_prev=srcdir ;;
1090  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091    srcdir=$ac_optarg ;;
1092
1093  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094  | --syscon | --sysco | --sysc | --sys | --sy)
1095    ac_prev=sysconfdir ;;
1096  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098    sysconfdir=$ac_optarg ;;
1099
1100  -target | --target | --targe | --targ | --tar | --ta | --t)
1101    ac_prev=target_alias ;;
1102  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103    target_alias=$ac_optarg ;;
1104
1105  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106    verbose=yes ;;
1107
1108  -version | --version | --versio | --versi | --vers | -V)
1109    ac_init_version=: ;;
1110
1111  -with-* | --with-*)
1112    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113    # Reject names that are not valid shell variable names.
1114    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115      as_fn_error $? "invalid package name: $ac_useropt"
1116    ac_useropt_orig=$ac_useropt
1117    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118    case $ac_user_opts in
1119      *"
1120"with_$ac_useropt"
1121"*) ;;
1122      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123	 ac_unrecognized_sep=', ';;
1124    esac
1125    eval with_$ac_useropt=\$ac_optarg ;;
1126
1127  -without-* | --without-*)
1128    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129    # Reject names that are not valid shell variable names.
1130    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131      as_fn_error $? "invalid package name: $ac_useropt"
1132    ac_useropt_orig=$ac_useropt
1133    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134    case $ac_user_opts in
1135      *"
1136"with_$ac_useropt"
1137"*) ;;
1138      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139	 ac_unrecognized_sep=', ';;
1140    esac
1141    eval with_$ac_useropt=no ;;
1142
1143  --x)
1144    # Obsolete; use --with-x.
1145    with_x=yes ;;
1146
1147  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148  | --x-incl | --x-inc | --x-in | --x-i)
1149    ac_prev=x_includes ;;
1150  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152    x_includes=$ac_optarg ;;
1153
1154  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156    ac_prev=x_libraries ;;
1157  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159    x_libraries=$ac_optarg ;;
1160
1161  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162Try \`$0 --help' for more information"
1163    ;;
1164
1165  *=*)
1166    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167    # Reject names that are not valid shell variable names.
1168    case $ac_envvar in #(
1169      '' | [0-9]* | *[!_$as_cr_alnum]* )
1170      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171    esac
1172    eval $ac_envvar=\$ac_optarg
1173    export $ac_envvar ;;
1174
1175  *)
1176    # FIXME: should be removed in autoconf 3.0.
1177    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181    ;;
1182
1183  esac
1184done
1185
1186if test -n "$ac_prev"; then
1187  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188  as_fn_error $? "missing argument to $ac_option"
1189fi
1190
1191if test -n "$ac_unrecognized_opts"; then
1192  case $enable_option_checking in
1193    no) ;;
1194    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196  esac
1197fi
1198
1199# Check all directory arguments for consistency.
1200for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201		datadir sysconfdir sharedstatedir localstatedir includedir \
1202		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203		libdir localedir mandir
1204do
1205  eval ac_val=\$$ac_var
1206  # Remove trailing slashes.
1207  case $ac_val in
1208    */ )
1209      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210      eval $ac_var=\$ac_val;;
1211  esac
1212  # Be sure to have absolute directory names.
1213  case $ac_val in
1214    [\\/$]* | ?:[\\/]* )  continue;;
1215    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216  esac
1217  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229  if test "x$build_alias" = x; then
1230    cross_compiling=maybe
1231  elif test "x$build_alias" != "x$host_alias"; then
1232    cross_compiling=yes
1233  fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
1242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245  as_fn_error $? "working directory cannot be determined"
1246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247  as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252  ac_srcdir_defaulted=yes
1253  # Try the directory containing this script, then the parent directory.
1254  ac_confdir=`$as_dirname -- "$as_myself" ||
1255$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256	 X"$as_myself" : 'X\(//\)[^/]' \| \
1257	 X"$as_myself" : 'X\(//\)$' \| \
1258	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259$as_echo X"$as_myself" |
1260    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\/\)[^/].*/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\/\)$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\).*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  s/.*/./; q'`
1277  srcdir=$ac_confdir
1278  if test ! -r "$srcdir/$ac_unique_file"; then
1279    srcdir=..
1280  fi
1281else
1282  ac_srcdir_defaulted=no
1283fi
1284if test ! -r "$srcdir/$ac_unique_file"; then
1285  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287fi
1288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289ac_abs_confdir=`(
1290	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291	pwd)`
1292# When building in place, set srcdir=.
1293if test "$ac_abs_confdir" = "$ac_pwd"; then
1294  srcdir=.
1295fi
1296# Remove unnecessary trailing slashes from srcdir.
1297# Double slashes in file names in object file debugging info
1298# mess up M-x gdb in Emacs.
1299case $srcdir in
1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301esac
1302for ac_var in $ac_precious_vars; do
1303  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304  eval ac_env_${ac_var}_value=\$${ac_var}
1305  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307done
1308
1309#
1310# Report the --help message.
1311#
1312if test "$ac_init_help" = "long"; then
1313  # Omit some internal or obsolete options to make the list less imposing.
1314  # This message is too long to be a string in the A/UX 3.1 sh.
1315  cat <<_ACEOF
1316\`configure' configures sqlite 3.8.5 to adapt to many kinds of systems.
1317
1318Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323Defaults for the options are specified in brackets.
1324
1325Configuration:
1326  -h, --help              display this help and exit
1327      --help=short        display options specific to this package
1328      --help=recursive    display the short help of all the included packages
1329  -V, --version           display version information and exit
1330  -q, --quiet, --silent   do not print \`checking ...' messages
1331      --cache-file=FILE   cache test results in FILE [disabled]
1332  -C, --config-cache      alias for \`--cache-file=config.cache'
1333  -n, --no-create         do not create output files
1334      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336Installation directories:
1337  --prefix=PREFIX         install architecture-independent files in PREFIX
1338                          [$ac_default_prefix]
1339  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                          [PREFIX]
1341
1342By default, \`make install' will install all the files in
1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345for instance \`--prefix=\$HOME'.
1346
1347For better control, use the options below.
1348
1349Fine tuning of the installation directories:
1350  --bindir=DIR            user executables [EPREFIX/bin]
1351  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1352  --libexecdir=DIR        program executables [EPREFIX/libexec]
1353  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1354  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1355  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1356  --libdir=DIR            object code libraries [EPREFIX/lib]
1357  --includedir=DIR        C header files [PREFIX/include]
1358  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1359  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1360  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1361  --infodir=DIR           info documentation [DATAROOTDIR/info]
1362  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1363  --mandir=DIR            man documentation [DATAROOTDIR/man]
1364  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1365  --htmldir=DIR           html documentation [DOCDIR]
1366  --dvidir=DIR            dvi documentation [DOCDIR]
1367  --pdfdir=DIR            pdf documentation [DOCDIR]
1368  --psdir=DIR             ps documentation [DOCDIR]
1369_ACEOF
1370
1371  cat <<\_ACEOF
1372
1373Program names:
1374  --program-prefix=PREFIX            prepend PREFIX to installed program names
1375  --program-suffix=SUFFIX            append SUFFIX to installed program names
1376  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1377
1378System types:
1379  --build=BUILD     configure for building on BUILD [guessed]
1380  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385  case $ac_init_help in
1386     short | recursive ) echo "Configuration of sqlite 3.8.5:";;
1387   esac
1388  cat <<\_ACEOF
1389
1390Optional Features:
1391  --disable-option-checking  ignore unrecognized --enable/--with options
1392  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394  --disable-largefile     omit support for large files
1395  --disable-dependency-tracking  speeds up one-time build
1396  --enable-dependency-tracking   do not reject slow dependency extractors
1397  --enable-shared[=PKGS]  build shared libraries [default=yes]
1398  --enable-static[=PKGS]  build static libraries [default=yes]
1399  --enable-fast-install[=PKGS]
1400                          optimize for fast installation [default=yes]
1401  --disable-libtool-lock  avoid locking (might break parallel builds)
1402  --enable-readline       use readline in shell tool (yes, no) [default=yes]
1403  --enable-threadsafe     build a thread-safe library [default=yes]
1404  --enable-dynamic-extensions
1405                          support loadable extensions [default=yes]
1406
1407Optional Packages:
1408  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1409  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1410  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1411                          both]
1412  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1413  --with-sysroot=DIR Search for dependent libraries within DIR
1414                        (or the compiler's sysroot if not specified).
1415
1416Some influential environment variables:
1417  CC          C compiler command
1418  CFLAGS      C compiler flags
1419  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1420              nonstandard directory <lib dir>
1421  LIBS        libraries to pass to the linker, e.g. -l<library>
1422  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423              you have headers in a nonstandard directory <include dir>
1424  CPP         C preprocessor
1425
1426Use these variables to override the choices made by `configure' or to help
1427it to find libraries and programs with nonstandard names/locations.
1428
1429Report bugs to <http://www.sqlite.org>.
1430_ACEOF
1431ac_status=$?
1432fi
1433
1434if test "$ac_init_help" = "recursive"; then
1435  # If there are subdirs, report their specific --help.
1436  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437    test -d "$ac_dir" ||
1438      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439      continue
1440    ac_builddir=.
1441
1442case "$ac_dir" in
1443.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444*)
1445  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446  # A ".." for each directory in $ac_dir_suffix.
1447  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448  case $ac_top_builddir_sub in
1449  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1451  esac ;;
1452esac
1453ac_abs_top_builddir=$ac_pwd
1454ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455# for backward compatibility:
1456ac_top_builddir=$ac_top_build_prefix
1457
1458case $srcdir in
1459  .)  # We are building in place.
1460    ac_srcdir=.
1461    ac_top_srcdir=$ac_top_builddir_sub
1462    ac_abs_top_srcdir=$ac_pwd ;;
1463  [\\/]* | ?:[\\/]* )  # Absolute name.
1464    ac_srcdir=$srcdir$ac_dir_suffix;
1465    ac_top_srcdir=$srcdir
1466    ac_abs_top_srcdir=$srcdir ;;
1467  *) # Relative name.
1468    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469    ac_top_srcdir=$ac_top_build_prefix$srcdir
1470    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471esac
1472ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473
1474    cd "$ac_dir" || { ac_status=$?; continue; }
1475    # Check for guested configure.
1476    if test -f "$ac_srcdir/configure.gnu"; then
1477      echo &&
1478      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479    elif test -f "$ac_srcdir/configure"; then
1480      echo &&
1481      $SHELL "$ac_srcdir/configure" --help=recursive
1482    else
1483      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484    fi || ac_status=$?
1485    cd "$ac_pwd" || { ac_status=$?; break; }
1486  done
1487fi
1488
1489test -n "$ac_init_help" && exit $ac_status
1490if $ac_init_version; then
1491  cat <<\_ACEOF
1492sqlite configure 3.8.5
1493generated by GNU Autoconf 2.69
1494
1495Copyright (C) 2012 Free Software Foundation, Inc.
1496This configure script is free software; the Free Software Foundation
1497gives unlimited permission to copy, distribute and modify it.
1498_ACEOF
1499  exit
1500fi
1501
1502## ------------------------ ##
1503## Autoconf initialization. ##
1504## ------------------------ ##
1505
1506# ac_fn_c_try_compile LINENO
1507# --------------------------
1508# Try to compile conftest.$ac_ext, and return whether this succeeded.
1509ac_fn_c_try_compile ()
1510{
1511  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512  rm -f conftest.$ac_objext
1513  if { { ac_try="$ac_compile"
1514case "(($ac_try" in
1515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516  *) ac_try_echo=$ac_try;;
1517esac
1518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519$as_echo "$ac_try_echo"; } >&5
1520  (eval "$ac_compile") 2>conftest.err
1521  ac_status=$?
1522  if test -s conftest.err; then
1523    grep -v '^ *+' conftest.err >conftest.er1
1524    cat conftest.er1 >&5
1525    mv -f conftest.er1 conftest.err
1526  fi
1527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528  test $ac_status = 0; } && {
1529	 test -z "$ac_c_werror_flag" ||
1530	 test ! -s conftest.err
1531       } && test -s conftest.$ac_objext; then :
1532  ac_retval=0
1533else
1534  $as_echo "$as_me: failed program was:" >&5
1535sed 's/^/| /' conftest.$ac_ext >&5
1536
1537	ac_retval=1
1538fi
1539  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540  as_fn_set_status $ac_retval
1541
1542} # ac_fn_c_try_compile
1543
1544# ac_fn_c_try_link LINENO
1545# -----------------------
1546# Try to link conftest.$ac_ext, and return whether this succeeded.
1547ac_fn_c_try_link ()
1548{
1549  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550  rm -f conftest.$ac_objext conftest$ac_exeext
1551  if { { ac_try="$ac_link"
1552case "(($ac_try" in
1553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554  *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558  (eval "$ac_link") 2>conftest.err
1559  ac_status=$?
1560  if test -s conftest.err; then
1561    grep -v '^ *+' conftest.err >conftest.er1
1562    cat conftest.er1 >&5
1563    mv -f conftest.er1 conftest.err
1564  fi
1565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566  test $ac_status = 0; } && {
1567	 test -z "$ac_c_werror_flag" ||
1568	 test ! -s conftest.err
1569       } && test -s conftest$ac_exeext && {
1570	 test "$cross_compiling" = yes ||
1571	 test -x conftest$ac_exeext
1572       }; then :
1573  ac_retval=0
1574else
1575  $as_echo "$as_me: failed program was:" >&5
1576sed 's/^/| /' conftest.$ac_ext >&5
1577
1578	ac_retval=1
1579fi
1580  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1581  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1582  # interfere with the next link command; also delete a directory that is
1583  # left behind by Apple's compiler.  We do this before executing the actions.
1584  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1585  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586  as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_link
1589
1590# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1591# -------------------------------------------------------
1592# Tests whether HEADER exists and can be compiled using the include files in
1593# INCLUDES, setting the cache variable VAR accordingly.
1594ac_fn_c_check_header_compile ()
1595{
1596  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598$as_echo_n "checking for $2... " >&6; }
1599if eval \${$3+:} false; then :
1600  $as_echo_n "(cached) " >&6
1601else
1602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603/* end confdefs.h.  */
1604$4
1605#include <$2>
1606_ACEOF
1607if ac_fn_c_try_compile "$LINENO"; then :
1608  eval "$3=yes"
1609else
1610  eval "$3=no"
1611fi
1612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1613fi
1614eval ac_res=\$$3
1615	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616$as_echo "$ac_res" >&6; }
1617  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618
1619} # ac_fn_c_check_header_compile
1620
1621# ac_fn_c_try_cpp LINENO
1622# ----------------------
1623# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624ac_fn_c_try_cpp ()
1625{
1626  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627  if { { ac_try="$ac_cpp conftest.$ac_ext"
1628case "(($ac_try" in
1629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630  *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
1634  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635  ac_status=$?
1636  if test -s conftest.err; then
1637    grep -v '^ *+' conftest.err >conftest.er1
1638    cat conftest.er1 >&5
1639    mv -f conftest.er1 conftest.err
1640  fi
1641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642  test $ac_status = 0; } > conftest.i && {
1643	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644	 test ! -s conftest.err
1645       }; then :
1646  ac_retval=0
1647else
1648  $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
1650
1651    ac_retval=1
1652fi
1653  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654  as_fn_set_status $ac_retval
1655
1656} # ac_fn_c_try_cpp
1657
1658# ac_fn_c_try_run LINENO
1659# ----------------------
1660# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661# that executables *can* be run.
1662ac_fn_c_try_run ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  if { { ac_try="$ac_link"
1666case "(($ac_try" in
1667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668  *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672  (eval "$ac_link") 2>&5
1673  ac_status=$?
1674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676  { { case "(($ac_try" in
1677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678  *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682  (eval "$ac_try") 2>&5
1683  ac_status=$?
1684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; }; }; then :
1686  ac_retval=0
1687else
1688  $as_echo "$as_me: program exited with status $ac_status" >&5
1689       $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692       ac_retval=$ac_status
1693fi
1694  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696  as_fn_set_status $ac_retval
1697
1698} # ac_fn_c_try_run
1699
1700# ac_fn_c_check_func LINENO FUNC VAR
1701# ----------------------------------
1702# Tests whether FUNC exists, setting the cache variable VAR accordingly
1703ac_fn_c_check_func ()
1704{
1705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707$as_echo_n "checking for $2... " >&6; }
1708if eval \${$3+:} false; then :
1709  $as_echo_n "(cached) " >&6
1710else
1711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h.  */
1713/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1714   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1715#define $2 innocuous_$2
1716
1717/* System header to define __stub macros and hopefully few prototypes,
1718    which can conflict with char $2 (); below.
1719    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1720    <limits.h> exists even on freestanding compilers.  */
1721
1722#ifdef __STDC__
1723# include <limits.h>
1724#else
1725# include <assert.h>
1726#endif
1727
1728#undef $2
1729
1730/* Override any GCC internal prototype to avoid an error.
1731   Use char because int might match the return type of a GCC
1732   builtin and then its argument prototype would still apply.  */
1733#ifdef __cplusplus
1734extern "C"
1735#endif
1736char $2 ();
1737/* The GNU C library defines this for functions which it implements
1738    to always fail with ENOSYS.  Some functions are actually named
1739    something starting with __ and the normal name is an alias.  */
1740#if defined __stub_$2 || defined __stub___$2
1741choke me
1742#endif
1743
1744int
1745main ()
1746{
1747return $2 ();
1748  ;
1749  return 0;
1750}
1751_ACEOF
1752if ac_fn_c_try_link "$LINENO"; then :
1753  eval "$3=yes"
1754else
1755  eval "$3=no"
1756fi
1757rm -f core conftest.err conftest.$ac_objext \
1758    conftest$ac_exeext conftest.$ac_ext
1759fi
1760eval ac_res=\$$3
1761	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765} # ac_fn_c_check_func
1766
1767# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1768# ---------------------------------------------
1769# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1770# accordingly.
1771ac_fn_c_check_decl ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  as_decl_name=`echo $2|sed 's/ *(.*//'`
1775  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1777$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1778if eval \${$3+:} false; then :
1779  $as_echo_n "(cached) " >&6
1780else
1781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h.  */
1783$4
1784int
1785main ()
1786{
1787#ifndef $as_decl_name
1788#ifdef __cplusplus
1789  (void) $as_decl_use;
1790#else
1791  (void) $as_decl_name;
1792#endif
1793#endif
1794
1795  ;
1796  return 0;
1797}
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800  eval "$3=yes"
1801else
1802  eval "$3=no"
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805fi
1806eval ac_res=\$$3
1807	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811} # ac_fn_c_check_decl
1812cat >config.log <<_ACEOF
1813This file contains any messages produced by compilers while
1814running configure, to aid debugging if configure makes a mistake.
1815
1816It was created by sqlite $as_me 3.8.5, which was
1817generated by GNU Autoconf 2.69.  Invocation command line was
1818
1819  $ $0 $@
1820
1821_ACEOF
1822exec 5>>config.log
1823{
1824cat <<_ASUNAME
1825## --------- ##
1826## Platform. ##
1827## --------- ##
1828
1829hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1830uname -m = `(uname -m) 2>/dev/null || echo unknown`
1831uname -r = `(uname -r) 2>/dev/null || echo unknown`
1832uname -s = `(uname -s) 2>/dev/null || echo unknown`
1833uname -v = `(uname -v) 2>/dev/null || echo unknown`
1834
1835/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1836/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1837
1838/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1839/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1840/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1841/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1842/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1843/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1844/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1845
1846_ASUNAME
1847
1848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849for as_dir in $PATH
1850do
1851  IFS=$as_save_IFS
1852  test -z "$as_dir" && as_dir=.
1853    $as_echo "PATH: $as_dir"
1854  done
1855IFS=$as_save_IFS
1856
1857} >&5
1858
1859cat >&5 <<_ACEOF
1860
1861
1862## ----------- ##
1863## Core tests. ##
1864## ----------- ##
1865
1866_ACEOF
1867
1868
1869# Keep a trace of the command line.
1870# Strip out --no-create and --no-recursion so they do not pile up.
1871# Strip out --silent because we don't want to record it for future runs.
1872# Also quote any args containing shell meta-characters.
1873# Make two passes to allow for proper duplicate-argument suppression.
1874ac_configure_args=
1875ac_configure_args0=
1876ac_configure_args1=
1877ac_must_keep_next=false
1878for ac_pass in 1 2
1879do
1880  for ac_arg
1881  do
1882    case $ac_arg in
1883    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1884    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1885    | -silent | --silent | --silen | --sile | --sil)
1886      continue ;;
1887    *\'*)
1888      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1889    esac
1890    case $ac_pass in
1891    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1892    2)
1893      as_fn_append ac_configure_args1 " '$ac_arg'"
1894      if test $ac_must_keep_next = true; then
1895	ac_must_keep_next=false # Got value, back to normal.
1896      else
1897	case $ac_arg in
1898	  *=* | --config-cache | -C | -disable-* | --disable-* \
1899	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1900	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1901	  | -with-* | --with-* | -without-* | --without-* | --x)
1902	    case "$ac_configure_args0 " in
1903	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1904	    esac
1905	    ;;
1906	  -* ) ac_must_keep_next=true ;;
1907	esac
1908      fi
1909      as_fn_append ac_configure_args " '$ac_arg'"
1910      ;;
1911    esac
1912  done
1913done
1914{ ac_configure_args0=; unset ac_configure_args0;}
1915{ ac_configure_args1=; unset ac_configure_args1;}
1916
1917# When interrupted or exit'd, cleanup temporary files, and complete
1918# config.log.  We remove comments because anyway the quotes in there
1919# would cause problems or look ugly.
1920# WARNING: Use '\'' to represent an apostrophe within the trap.
1921# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1922trap 'exit_status=$?
1923  # Save into config.log some information that might help in debugging.
1924  {
1925    echo
1926
1927    $as_echo "## ---------------- ##
1928## Cache variables. ##
1929## ---------------- ##"
1930    echo
1931    # The following way of writing the cache mishandles newlines in values,
1932(
1933  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1934    eval ac_val=\$$ac_var
1935    case $ac_val in #(
1936    *${as_nl}*)
1937      case $ac_var in #(
1938      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1939$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1940      esac
1941      case $ac_var in #(
1942      _ | IFS | as_nl) ;; #(
1943      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1944      *) { eval $ac_var=; unset $ac_var;} ;;
1945      esac ;;
1946    esac
1947  done
1948  (set) 2>&1 |
1949    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1950    *${as_nl}ac_space=\ *)
1951      sed -n \
1952	"s/'\''/'\''\\\\'\'''\''/g;
1953	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1954      ;; #(
1955    *)
1956      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1957      ;;
1958    esac |
1959    sort
1960)
1961    echo
1962
1963    $as_echo "## ----------------- ##
1964## Output variables. ##
1965## ----------------- ##"
1966    echo
1967    for ac_var in $ac_subst_vars
1968    do
1969      eval ac_val=\$$ac_var
1970      case $ac_val in
1971      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972      esac
1973      $as_echo "$ac_var='\''$ac_val'\''"
1974    done | sort
1975    echo
1976
1977    if test -n "$ac_subst_files"; then
1978      $as_echo "## ------------------- ##
1979## File substitutions. ##
1980## ------------------- ##"
1981      echo
1982      for ac_var in $ac_subst_files
1983      do
1984	eval ac_val=\$$ac_var
1985	case $ac_val in
1986	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987	esac
1988	$as_echo "$ac_var='\''$ac_val'\''"
1989      done | sort
1990      echo
1991    fi
1992
1993    if test -s confdefs.h; then
1994      $as_echo "## ----------- ##
1995## confdefs.h. ##
1996## ----------- ##"
1997      echo
1998      cat confdefs.h
1999      echo
2000    fi
2001    test "$ac_signal" != 0 &&
2002      $as_echo "$as_me: caught signal $ac_signal"
2003    $as_echo "$as_me: exit $exit_status"
2004  } >&5
2005  rm -f core *.core core.conftest.* &&
2006    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2007    exit $exit_status
2008' 0
2009for ac_signal in 1 2 13 15; do
2010  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2011done
2012ac_signal=0
2013
2014# confdefs.h avoids OS command line length limits that DEFS can exceed.
2015rm -f -r conftest* confdefs.h
2016
2017$as_echo "/* confdefs.h */" > confdefs.h
2018
2019# Predefined preprocessor variables.
2020
2021cat >>confdefs.h <<_ACEOF
2022#define PACKAGE_NAME "$PACKAGE_NAME"
2023_ACEOF
2024
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2027_ACEOF
2028
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_VERSION "$PACKAGE_VERSION"
2031_ACEOF
2032
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_STRING "$PACKAGE_STRING"
2035_ACEOF
2036
2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2039_ACEOF
2040
2041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_URL "$PACKAGE_URL"
2043_ACEOF
2044
2045
2046# Let the site file select an alternate cache file if it wants to.
2047# Prefer an explicitly selected file to automatically selected ones.
2048ac_site_file1=NONE
2049ac_site_file2=NONE
2050if test -n "$CONFIG_SITE"; then
2051  # We do not want a PATH search for config.site.
2052  case $CONFIG_SITE in #((
2053    -*)  ac_site_file1=./$CONFIG_SITE;;
2054    */*) ac_site_file1=$CONFIG_SITE;;
2055    *)   ac_site_file1=./$CONFIG_SITE;;
2056  esac
2057elif test "x$prefix" != xNONE; then
2058  ac_site_file1=$prefix/share/config.site
2059  ac_site_file2=$prefix/etc/config.site
2060else
2061  ac_site_file1=$ac_default_prefix/share/config.site
2062  ac_site_file2=$ac_default_prefix/etc/config.site
2063fi
2064for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2065do
2066  test "x$ac_site_file" = xNONE && continue
2067  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2068    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2069$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2070    sed 's/^/| /' "$ac_site_file" >&5
2071    . "$ac_site_file" \
2072      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2074as_fn_error $? "failed to load site script $ac_site_file
2075See \`config.log' for more details" "$LINENO" 5; }
2076  fi
2077done
2078
2079if test -r "$cache_file"; then
2080  # Some versions of bash will fail to source /dev/null (special files
2081  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2082  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2083    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2084$as_echo "$as_me: loading cache $cache_file" >&6;}
2085    case $cache_file in
2086      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2087      *)                      . "./$cache_file";;
2088    esac
2089  fi
2090else
2091  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2092$as_echo "$as_me: creating cache $cache_file" >&6;}
2093  >$cache_file
2094fi
2095
2096# Check that the precious variables saved in the cache have kept the same
2097# value.
2098ac_cache_corrupted=false
2099for ac_var in $ac_precious_vars; do
2100  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2101  eval ac_new_set=\$ac_env_${ac_var}_set
2102  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2103  eval ac_new_val=\$ac_env_${ac_var}_value
2104  case $ac_old_set,$ac_new_set in
2105    set,)
2106      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2107$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2108      ac_cache_corrupted=: ;;
2109    ,set)
2110      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2111$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2112      ac_cache_corrupted=: ;;
2113    ,);;
2114    *)
2115      if test "x$ac_old_val" != "x$ac_new_val"; then
2116	# differences in whitespace do not lead to failure.
2117	ac_old_val_w=`echo x $ac_old_val`
2118	ac_new_val_w=`echo x $ac_new_val`
2119	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2120	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2121$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2122	  ac_cache_corrupted=:
2123	else
2124	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2125$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2126	  eval $ac_var=\$ac_old_val
2127	fi
2128	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2129$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2130	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2131$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2132      fi;;
2133  esac
2134  # Pass precious variables to config.status.
2135  if test "$ac_new_set" = set; then
2136    case $ac_new_val in
2137    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2138    *) ac_arg=$ac_var=$ac_new_val ;;
2139    esac
2140    case " $ac_configure_args " in
2141      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2142      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2143    esac
2144  fi
2145done
2146if $ac_cache_corrupted; then
2147  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2149  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2150$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2151  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2152fi
2153## -------------------- ##
2154## Main body of script. ##
2155## -------------------- ##
2156
2157ac_ext=c
2158ac_cpp='$CPP $CPPFLAGS'
2159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2161ac_compiler_gnu=$ac_cv_c_compiler_gnu
2162
2163
2164
2165
2166# Use automake.
2167am__api_version='1.11'
2168
2169ac_aux_dir=
2170for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2171  if test -f "$ac_dir/install-sh"; then
2172    ac_aux_dir=$ac_dir
2173    ac_install_sh="$ac_aux_dir/install-sh -c"
2174    break
2175  elif test -f "$ac_dir/install.sh"; then
2176    ac_aux_dir=$ac_dir
2177    ac_install_sh="$ac_aux_dir/install.sh -c"
2178    break
2179  elif test -f "$ac_dir/shtool"; then
2180    ac_aux_dir=$ac_dir
2181    ac_install_sh="$ac_aux_dir/shtool install -c"
2182    break
2183  fi
2184done
2185if test -z "$ac_aux_dir"; then
2186  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2187fi
2188
2189# These three variables are undocumented and unsupported,
2190# and are intended to be withdrawn in a future Autoconf release.
2191# They can cause serious problems if a builder's source tree is in a directory
2192# whose full name contains unusual characters.
2193ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2194ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2195ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2196
2197
2198# Find a good install program.  We prefer a C program (faster),
2199# so one script is as good as another.  But avoid the broken or
2200# incompatible versions:
2201# SysV /etc/install, /usr/sbin/install
2202# SunOS /usr/etc/install
2203# IRIX /sbin/install
2204# AIX /bin/install
2205# AmigaOS /C/install, which installs bootblocks on floppy discs
2206# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2207# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2208# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2209# OS/2's system install, which has a completely different semantic
2210# ./install, which can be erroneously created by make from ./install.sh.
2211# Reject install programs that cannot install multiple files.
2212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2213$as_echo_n "checking for a BSD-compatible install... " >&6; }
2214if test -z "$INSTALL"; then
2215if ${ac_cv_path_install+:} false; then :
2216  $as_echo_n "(cached) " >&6
2217else
2218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219for as_dir in $PATH
2220do
2221  IFS=$as_save_IFS
2222  test -z "$as_dir" && as_dir=.
2223    # Account for people who put trailing slashes in PATH elements.
2224case $as_dir/ in #((
2225  ./ | .// | /[cC]/* | \
2226  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2227  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2228  /usr/ucb/* ) ;;
2229  *)
2230    # OSF1 and SCO ODT 3.0 have their own names for install.
2231    # Don't use installbsd from OSF since it installs stuff as root
2232    # by default.
2233    for ac_prog in ginstall scoinst install; do
2234      for ac_exec_ext in '' $ac_executable_extensions; do
2235	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2236	  if test $ac_prog = install &&
2237	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2238	    # AIX install.  It has an incompatible calling convention.
2239	    :
2240	  elif test $ac_prog = install &&
2241	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2242	    # program-specific install script used by HP pwplus--don't use.
2243	    :
2244	  else
2245	    rm -rf conftest.one conftest.two conftest.dir
2246	    echo one > conftest.one
2247	    echo two > conftest.two
2248	    mkdir conftest.dir
2249	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2250	      test -s conftest.one && test -s conftest.two &&
2251	      test -s conftest.dir/conftest.one &&
2252	      test -s conftest.dir/conftest.two
2253	    then
2254	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2255	      break 3
2256	    fi
2257	  fi
2258	fi
2259      done
2260    done
2261    ;;
2262esac
2263
2264  done
2265IFS=$as_save_IFS
2266
2267rm -rf conftest.one conftest.two conftest.dir
2268
2269fi
2270  if test "${ac_cv_path_install+set}" = set; then
2271    INSTALL=$ac_cv_path_install
2272  else
2273    # As a last resort, use the slow shell script.  Don't cache a
2274    # value for INSTALL within a source directory, because that will
2275    # break other packages using the cache if that directory is
2276    # removed, or if the value is a relative name.
2277    INSTALL=$ac_install_sh
2278  fi
2279fi
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2281$as_echo "$INSTALL" >&6; }
2282
2283# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2284# It thinks the first close brace ends the variable substitution.
2285test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2286
2287test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2288
2289test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2290
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2292$as_echo_n "checking whether build environment is sane... " >&6; }
2293# Just in case
2294sleep 1
2295echo timestamp > conftest.file
2296# Reject unsafe characters in $srcdir or the absolute working directory
2297# name.  Accept space and tab only in the latter.
2298am_lf='
2299'
2300case `pwd` in
2301  *[\\\"\#\$\&\'\`$am_lf]*)
2302    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2303esac
2304case $srcdir in
2305  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2306    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2307esac
2308
2309# Do `set' in a subshell so we don't clobber the current shell's
2310# arguments.  Must try -L first in case configure is actually a
2311# symlink; some systems play weird games with the mod time of symlinks
2312# (eg FreeBSD returns the mod time of the symlink's containing
2313# directory).
2314if (
2315   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2316   if test "$*" = "X"; then
2317      # -L didn't work.
2318      set X `ls -t "$srcdir/configure" conftest.file`
2319   fi
2320   rm -f conftest.file
2321   if test "$*" != "X $srcdir/configure conftest.file" \
2322      && test "$*" != "X conftest.file $srcdir/configure"; then
2323
2324      # If neither matched, then we have a broken ls.  This can happen
2325      # if, for instance, CONFIG_SHELL is bash and it inherits a
2326      # broken ls alias from the environment.  This has actually
2327      # happened.  Such a system could not be considered "sane".
2328      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2329alias in your environment" "$LINENO" 5
2330   fi
2331
2332   test "$2" = conftest.file
2333   )
2334then
2335   # Ok.
2336   :
2337else
2338   as_fn_error $? "newly created file is older than distributed files!
2339Check your system clock" "$LINENO" 5
2340fi
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2342$as_echo "yes" >&6; }
2343test "$program_prefix" != NONE &&
2344  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2345# Use a double $ so make ignores it.
2346test "$program_suffix" != NONE &&
2347  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2348# Double any \ or $.
2349# By default was `s,x,x', remove it if useless.
2350ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2351program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2352
2353# expand $ac_aux_dir to an absolute path
2354am_aux_dir=`cd $ac_aux_dir && pwd`
2355
2356if test x"${MISSING+set}" != xset; then
2357  case $am_aux_dir in
2358  *\ * | *\	*)
2359    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2360  *)
2361    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2362  esac
2363fi
2364# Use eval to expand $SHELL
2365if eval "$MISSING --run true"; then
2366  am_missing_run="$MISSING --run "
2367else
2368  am_missing_run=
2369  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2370$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2371fi
2372
2373if test x"${install_sh}" != xset; then
2374  case $am_aux_dir in
2375  *\ * | *\	*)
2376    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2377  *)
2378    install_sh="\${SHELL} $am_aux_dir/install-sh"
2379  esac
2380fi
2381
2382# Installed binaries are usually stripped using `strip' when the user
2383# run `make install-strip'.  However `strip' might not be the right
2384# tool to use in cross-compilation environments, therefore Automake
2385# will honor the `STRIP' environment variable to overrule this program.
2386if test "$cross_compiling" != no; then
2387  if test -n "$ac_tool_prefix"; then
2388  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2389set dummy ${ac_tool_prefix}strip; ac_word=$2
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2391$as_echo_n "checking for $ac_word... " >&6; }
2392if ${ac_cv_prog_STRIP+:} false; then :
2393  $as_echo_n "(cached) " >&6
2394else
2395  if test -n "$STRIP"; then
2396  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2397else
2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401  IFS=$as_save_IFS
2402  test -z "$as_dir" && as_dir=.
2403    for ac_exec_ext in '' $ac_executable_extensions; do
2404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2407    break 2
2408  fi
2409done
2410  done
2411IFS=$as_save_IFS
2412
2413fi
2414fi
2415STRIP=$ac_cv_prog_STRIP
2416if test -n "$STRIP"; then
2417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2418$as_echo "$STRIP" >&6; }
2419else
2420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2421$as_echo "no" >&6; }
2422fi
2423
2424
2425fi
2426if test -z "$ac_cv_prog_STRIP"; then
2427  ac_ct_STRIP=$STRIP
2428  # Extract the first word of "strip", so it can be a program name with args.
2429set dummy strip; ac_word=$2
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431$as_echo_n "checking for $ac_word... " >&6; }
2432if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2433  $as_echo_n "(cached) " >&6
2434else
2435  if test -n "$ac_ct_STRIP"; then
2436  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2437else
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441  IFS=$as_save_IFS
2442  test -z "$as_dir" && as_dir=.
2443    for ac_exec_ext in '' $ac_executable_extensions; do
2444  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445    ac_cv_prog_ac_ct_STRIP="strip"
2446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2447    break 2
2448  fi
2449done
2450  done
2451IFS=$as_save_IFS
2452
2453fi
2454fi
2455ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2456if test -n "$ac_ct_STRIP"; then
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2458$as_echo "$ac_ct_STRIP" >&6; }
2459else
2460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461$as_echo "no" >&6; }
2462fi
2463
2464  if test "x$ac_ct_STRIP" = x; then
2465    STRIP=":"
2466  else
2467    case $cross_compiling:$ac_tool_warned in
2468yes:)
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2471ac_tool_warned=yes ;;
2472esac
2473    STRIP=$ac_ct_STRIP
2474  fi
2475else
2476  STRIP="$ac_cv_prog_STRIP"
2477fi
2478
2479fi
2480INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2481
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2483$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2484if test -z "$MKDIR_P"; then
2485  if ${ac_cv_path_mkdir+:} false; then :
2486  $as_echo_n "(cached) " >&6
2487else
2488  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2490do
2491  IFS=$as_save_IFS
2492  test -z "$as_dir" && as_dir=.
2493    for ac_prog in mkdir gmkdir; do
2494	 for ac_exec_ext in '' $ac_executable_extensions; do
2495	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2496	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2497	     'mkdir (GNU coreutils) '* | \
2498	     'mkdir (coreutils) '* | \
2499	     'mkdir (fileutils) '4.1*)
2500	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2501	       break 3;;
2502	   esac
2503	 done
2504       done
2505  done
2506IFS=$as_save_IFS
2507
2508fi
2509
2510  test -d ./--version && rmdir ./--version
2511  if test "${ac_cv_path_mkdir+set}" = set; then
2512    MKDIR_P="$ac_cv_path_mkdir -p"
2513  else
2514    # As a last resort, use the slow shell script.  Don't cache a
2515    # value for MKDIR_P within a source directory, because that will
2516    # break other packages using the cache if that directory is
2517    # removed, or if the value is a relative name.
2518    MKDIR_P="$ac_install_sh -d"
2519  fi
2520fi
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2522$as_echo "$MKDIR_P" >&6; }
2523
2524mkdir_p="$MKDIR_P"
2525case $mkdir_p in
2526  [\\/$]* | ?:[\\/]*) ;;
2527  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2528esac
2529
2530for ac_prog in gawk mawk nawk awk
2531do
2532  # Extract the first word of "$ac_prog", so it can be a program name with args.
2533set dummy $ac_prog; ac_word=$2
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535$as_echo_n "checking for $ac_word... " >&6; }
2536if ${ac_cv_prog_AWK+:} false; then :
2537  $as_echo_n "(cached) " >&6
2538else
2539  if test -n "$AWK"; then
2540  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545  IFS=$as_save_IFS
2546  test -z "$as_dir" && as_dir=.
2547    for ac_exec_ext in '' $ac_executable_extensions; do
2548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549    ac_cv_prog_AWK="$ac_prog"
2550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551    break 2
2552  fi
2553done
2554  done
2555IFS=$as_save_IFS
2556
2557fi
2558fi
2559AWK=$ac_cv_prog_AWK
2560if test -n "$AWK"; then
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2562$as_echo "$AWK" >&6; }
2563else
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565$as_echo "no" >&6; }
2566fi
2567
2568
2569  test -n "$AWK" && break
2570done
2571
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2573$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2574set x ${MAKE-make}
2575ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2576if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2577  $as_echo_n "(cached) " >&6
2578else
2579  cat >conftest.make <<\_ACEOF
2580SHELL = /bin/sh
2581all:
2582	@echo '@@@%%%=$(MAKE)=@@@%%%'
2583_ACEOF
2584# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2585case `${MAKE-make} -f conftest.make 2>/dev/null` in
2586  *@@@%%%=?*=@@@%%%*)
2587    eval ac_cv_prog_make_${ac_make}_set=yes;;
2588  *)
2589    eval ac_cv_prog_make_${ac_make}_set=no;;
2590esac
2591rm -f conftest.make
2592fi
2593if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2595$as_echo "yes" >&6; }
2596  SET_MAKE=
2597else
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599$as_echo "no" >&6; }
2600  SET_MAKE="MAKE=${MAKE-make}"
2601fi
2602
2603rm -rf .tst 2>/dev/null
2604mkdir .tst 2>/dev/null
2605if test -d .tst; then
2606  am__leading_dot=.
2607else
2608  am__leading_dot=_
2609fi
2610rmdir .tst 2>/dev/null
2611
2612if test "`cd $srcdir && pwd`" != "`pwd`"; then
2613  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2614  # is not polluted with repeated "-I."
2615  am__isrc=' -I$(srcdir)'
2616  # test to see if srcdir already configured
2617  if test -f $srcdir/config.status; then
2618    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2619  fi
2620fi
2621
2622# test whether we have cygpath
2623if test -z "$CYGPATH_W"; then
2624  if (cygpath --version) >/dev/null 2>/dev/null; then
2625    CYGPATH_W='cygpath -w'
2626  else
2627    CYGPATH_W=echo
2628  fi
2629fi
2630
2631
2632# Define the identity of the package.
2633 PACKAGE='sqlite'
2634 VERSION='3.8.5'
2635
2636
2637cat >>confdefs.h <<_ACEOF
2638#define PACKAGE "$PACKAGE"
2639_ACEOF
2640
2641
2642cat >>confdefs.h <<_ACEOF
2643#define VERSION "$VERSION"
2644_ACEOF
2645
2646# Some tools Automake needs.
2647
2648ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2649
2650
2651AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2652
2653
2654AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2655
2656
2657AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2658
2659
2660MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2661
2662# We need awk for the "check" target.  The system "awk" is bad on
2663# some platforms.
2664# Always define AMTAR for backward compatibility.  Yes, it's still used
2665# in the wild :-(  We should find a proper way to deprecate it ...
2666AMTAR='$${TAR-tar}'
2667
2668am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2669
2670
2671
2672
2673
2674
2675DEPDIR="${am__leading_dot}deps"
2676
2677ac_config_commands="$ac_config_commands depfiles"
2678
2679
2680am_make=${MAKE-make}
2681cat > confinc << 'END'
2682am__doit:
2683	@echo this is the am__doit target
2684.PHONY: am__doit
2685END
2686# If we don't find an include directive, just comment out the code.
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2688$as_echo_n "checking for style of include used by $am_make... " >&6; }
2689am__include="#"
2690am__quote=
2691_am_result=none
2692# First try GNU make style include.
2693echo "include confinc" > confmf
2694# Ignore all kinds of additional output from `make'.
2695case `$am_make -s -f confmf 2> /dev/null` in #(
2696*the\ am__doit\ target*)
2697  am__include=include
2698  am__quote=
2699  _am_result=GNU
2700  ;;
2701esac
2702# Now try BSD make style include.
2703if test "$am__include" = "#"; then
2704   echo '.include "confinc"' > confmf
2705   case `$am_make -s -f confmf 2> /dev/null` in #(
2706   *the\ am__doit\ target*)
2707     am__include=.include
2708     am__quote="\""
2709     _am_result=BSD
2710     ;;
2711   esac
2712fi
2713
2714
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2716$as_echo "$_am_result" >&6; }
2717rm -f confinc confmf
2718
2719# Check whether --enable-dependency-tracking was given.
2720if test "${enable_dependency_tracking+set}" = set; then :
2721  enableval=$enable_dependency_tracking;
2722fi
2723
2724if test "x$enable_dependency_tracking" != xno; then
2725  am_depcomp="$ac_aux_dir/depcomp"
2726  AMDEPBACKSLASH='\'
2727  am__nodep='_no'
2728fi
2729 if test "x$enable_dependency_tracking" != xno; then
2730  AMDEP_TRUE=
2731  AMDEP_FALSE='#'
2732else
2733  AMDEP_TRUE='#'
2734  AMDEP_FALSE=
2735fi
2736
2737
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743if test -n "$ac_tool_prefix"; then
2744  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2745set dummy ${ac_tool_prefix}gcc; ac_word=$2
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747$as_echo_n "checking for $ac_word... " >&6; }
2748if ${ac_cv_prog_CC+:} false; then :
2749  $as_echo_n "(cached) " >&6
2750else
2751  if test -n "$CC"; then
2752  ac_cv_prog_CC="$CC" # Let the user override the test.
2753else
2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755for as_dir in $PATH
2756do
2757  IFS=$as_save_IFS
2758  test -z "$as_dir" && as_dir=.
2759    for ac_exec_ext in '' $ac_executable_extensions; do
2760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763    break 2
2764  fi
2765done
2766  done
2767IFS=$as_save_IFS
2768
2769fi
2770fi
2771CC=$ac_cv_prog_CC
2772if test -n "$CC"; then
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774$as_echo "$CC" >&6; }
2775else
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
2778fi
2779
2780
2781fi
2782if test -z "$ac_cv_prog_CC"; then
2783  ac_ct_CC=$CC
2784  # Extract the first word of "gcc", so it can be a program name with args.
2785set dummy gcc; ac_word=$2
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
2788if ${ac_cv_prog_ac_ct_CC+:} false; then :
2789  $as_echo_n "(cached) " >&6
2790else
2791  if test -n "$ac_ct_CC"; then
2792  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797  IFS=$as_save_IFS
2798  test -z "$as_dir" && as_dir=.
2799    for ac_exec_ext in '' $ac_executable_extensions; do
2800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801    ac_cv_prog_ac_ct_CC="gcc"
2802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803    break 2
2804  fi
2805done
2806  done
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812if test -n "$ac_ct_CC"; then
2813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2814$as_echo "$ac_ct_CC" >&6; }
2815else
2816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817$as_echo "no" >&6; }
2818fi
2819
2820  if test "x$ac_ct_CC" = x; then
2821    CC=""
2822  else
2823    case $cross_compiling:$ac_tool_warned in
2824yes:)
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2827ac_tool_warned=yes ;;
2828esac
2829    CC=$ac_ct_CC
2830  fi
2831else
2832  CC="$ac_cv_prog_CC"
2833fi
2834
2835if test -z "$CC"; then
2836          if test -n "$ac_tool_prefix"; then
2837    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2838set dummy ${ac_tool_prefix}cc; ac_word=$2
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840$as_echo_n "checking for $ac_word... " >&6; }
2841if ${ac_cv_prog_CC+:} false; then :
2842  $as_echo_n "(cached) " >&6
2843else
2844  if test -n "$CC"; then
2845  ac_cv_prog_CC="$CC" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850  IFS=$as_save_IFS
2851  test -z "$as_dir" && as_dir=.
2852    for ac_exec_ext in '' $ac_executable_extensions; do
2853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854    ac_cv_prog_CC="${ac_tool_prefix}cc"
2855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856    break 2
2857  fi
2858done
2859  done
2860IFS=$as_save_IFS
2861
2862fi
2863fi
2864CC=$ac_cv_prog_CC
2865if test -n "$CC"; then
2866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867$as_echo "$CC" >&6; }
2868else
2869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870$as_echo "no" >&6; }
2871fi
2872
2873
2874  fi
2875fi
2876if test -z "$CC"; then
2877  # Extract the first word of "cc", so it can be a program name with args.
2878set dummy cc; ac_word=$2
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880$as_echo_n "checking for $ac_word... " >&6; }
2881if ${ac_cv_prog_CC+:} false; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  if test -n "$CC"; then
2885  ac_cv_prog_CC="$CC" # Let the user override the test.
2886else
2887  ac_prog_rejected=no
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891  IFS=$as_save_IFS
2892  test -z "$as_dir" && as_dir=.
2893    for ac_exec_ext in '' $ac_executable_extensions; do
2894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896       ac_prog_rejected=yes
2897       continue
2898     fi
2899    ac_cv_prog_CC="cc"
2900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901    break 2
2902  fi
2903done
2904  done
2905IFS=$as_save_IFS
2906
2907if test $ac_prog_rejected = yes; then
2908  # We found a bogon in the path, so make sure we never use it.
2909  set dummy $ac_cv_prog_CC
2910  shift
2911  if test $# != 0; then
2912    # We chose a different compiler from the bogus one.
2913    # However, it has the same basename, so the bogon will be chosen
2914    # first if we set CC to just the basename; use the full file name.
2915    shift
2916    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2917  fi
2918fi
2919fi
2920fi
2921CC=$ac_cv_prog_CC
2922if test -n "$CC"; then
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924$as_echo "$CC" >&6; }
2925else
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927$as_echo "no" >&6; }
2928fi
2929
2930
2931fi
2932if test -z "$CC"; then
2933  if test -n "$ac_tool_prefix"; then
2934  for ac_prog in cl.exe
2935  do
2936    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939$as_echo_n "checking for $ac_word... " >&6; }
2940if ${ac_cv_prog_CC+:} false; then :
2941  $as_echo_n "(cached) " >&6
2942else
2943  if test -n "$CC"; then
2944  ac_cv_prog_CC="$CC" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949  IFS=$as_save_IFS
2950  test -z "$as_dir" && as_dir=.
2951    for ac_exec_ext in '' $ac_executable_extensions; do
2952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955    break 2
2956  fi
2957done
2958  done
2959IFS=$as_save_IFS
2960
2961fi
2962fi
2963CC=$ac_cv_prog_CC
2964if test -n "$CC"; then
2965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966$as_echo "$CC" >&6; }
2967else
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
2970fi
2971
2972
2973    test -n "$CC" && break
2974  done
2975fi
2976if test -z "$CC"; then
2977  ac_ct_CC=$CC
2978  for ac_prog in cl.exe
2979do
2980  # Extract the first word of "$ac_prog", so it can be a program name with args.
2981set dummy $ac_prog; ac_word=$2
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983$as_echo_n "checking for $ac_word... " >&6; }
2984if ${ac_cv_prog_ac_ct_CC+:} false; then :
2985  $as_echo_n "(cached) " >&6
2986else
2987  if test -n "$ac_ct_CC"; then
2988  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989else
2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991for as_dir in $PATH
2992do
2993  IFS=$as_save_IFS
2994  test -z "$as_dir" && as_dir=.
2995    for ac_exec_ext in '' $ac_executable_extensions; do
2996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997    ac_cv_prog_ac_ct_CC="$ac_prog"
2998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999    break 2
3000  fi
3001done
3002  done
3003IFS=$as_save_IFS
3004
3005fi
3006fi
3007ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008if test -n "$ac_ct_CC"; then
3009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010$as_echo "$ac_ct_CC" >&6; }
3011else
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013$as_echo "no" >&6; }
3014fi
3015
3016
3017  test -n "$ac_ct_CC" && break
3018done
3019
3020  if test "x$ac_ct_CC" = x; then
3021    CC=""
3022  else
3023    case $cross_compiling:$ac_tool_warned in
3024yes:)
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027ac_tool_warned=yes ;;
3028esac
3029    CC=$ac_ct_CC
3030  fi
3031fi
3032
3033fi
3034
3035
3036test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038as_fn_error $? "no acceptable C compiler found in \$PATH
3039See \`config.log' for more details" "$LINENO" 5; }
3040
3041# Provide some information about the compiler.
3042$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3043set X $ac_compile
3044ac_compiler=$2
3045for ac_option in --version -v -V -qversion; do
3046  { { ac_try="$ac_compiler $ac_option >&5"
3047case "(($ac_try" in
3048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049  *) ac_try_echo=$ac_try;;
3050esac
3051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052$as_echo "$ac_try_echo"; } >&5
3053  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3054  ac_status=$?
3055  if test -s conftest.err; then
3056    sed '10a\
3057... rest of stderr output deleted ...
3058         10q' conftest.err >conftest.er1
3059    cat conftest.er1 >&5
3060  fi
3061  rm -f conftest.er1 conftest.err
3062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063  test $ac_status = 0; }
3064done
3065
3066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067/* end confdefs.h.  */
3068
3069int
3070main ()
3071{
3072
3073  ;
3074  return 0;
3075}
3076_ACEOF
3077ac_clean_files_save=$ac_clean_files
3078ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3079# Try to create an executable without -o first, disregard a.out.
3080# It will help us diagnose broken compilers, and finding out an intuition
3081# of exeext.
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3083$as_echo_n "checking whether the C compiler works... " >&6; }
3084ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3085
3086# The possible output files:
3087ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3088
3089ac_rmfiles=
3090for ac_file in $ac_files
3091do
3092  case $ac_file in
3093    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3095  esac
3096done
3097rm -f $ac_rmfiles
3098
3099if { { ac_try="$ac_link_default"
3100case "(($ac_try" in
3101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102  *) ac_try_echo=$ac_try;;
3103esac
3104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105$as_echo "$ac_try_echo"; } >&5
3106  (eval "$ac_link_default") 2>&5
3107  ac_status=$?
3108  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109  test $ac_status = 0; }; then :
3110  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3111# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3112# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3113# so that the user can short-circuit this test for compilers unknown to
3114# Autoconf.
3115for ac_file in $ac_files ''
3116do
3117  test -f "$ac_file" || continue
3118  case $ac_file in
3119    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3120	;;
3121    [ab].out )
3122	# We found the default executable, but exeext='' is most
3123	# certainly right.
3124	break;;
3125    *.* )
3126	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3127	then :; else
3128	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3129	fi
3130	# We set ac_cv_exeext here because the later test for it is not
3131	# safe: cross compilers may not add the suffix if given an `-o'
3132	# argument, so we may need to know it at that point already.
3133	# Even if this section looks crufty: it has the advantage of
3134	# actually working.
3135	break;;
3136    * )
3137	break;;
3138  esac
3139done
3140test "$ac_cv_exeext" = no && ac_cv_exeext=
3141
3142else
3143  ac_file=''
3144fi
3145if test -z "$ac_file"; then :
3146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147$as_echo "no" >&6; }
3148$as_echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153as_fn_error 77 "C compiler cannot create executables
3154See \`config.log' for more details" "$LINENO" 5; }
3155else
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3157$as_echo "yes" >&6; }
3158fi
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3160$as_echo_n "checking for C compiler default output file name... " >&6; }
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3162$as_echo "$ac_file" >&6; }
3163ac_exeext=$ac_cv_exeext
3164
3165rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3166ac_clean_files=$ac_clean_files_save
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3168$as_echo_n "checking for suffix of executables... " >&6; }
3169if { { ac_try="$ac_link"
3170case "(($ac_try" in
3171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172  *) ac_try_echo=$ac_try;;
3173esac
3174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175$as_echo "$ac_try_echo"; } >&5
3176  (eval "$ac_link") 2>&5
3177  ac_status=$?
3178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179  test $ac_status = 0; }; then :
3180  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3181# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3182# work properly (i.e., refer to `conftest.exe'), while it won't with
3183# `rm'.
3184for ac_file in conftest.exe conftest conftest.*; do
3185  test -f "$ac_file" || continue
3186  case $ac_file in
3187    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3188    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189	  break;;
3190    * ) break;;
3191  esac
3192done
3193else
3194  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3197See \`config.log' for more details" "$LINENO" 5; }
3198fi
3199rm -f conftest conftest$ac_cv_exeext
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3201$as_echo "$ac_cv_exeext" >&6; }
3202
3203rm -f conftest.$ac_ext
3204EXEEXT=$ac_cv_exeext
3205ac_exeext=$EXEEXT
3206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h.  */
3208#include <stdio.h>
3209int
3210main ()
3211{
3212FILE *f = fopen ("conftest.out", "w");
3213 return ferror (f) || fclose (f) != 0;
3214
3215  ;
3216  return 0;
3217}
3218_ACEOF
3219ac_clean_files="$ac_clean_files conftest.out"
3220# Check that the compiler produces executables we can run.  If not, either
3221# the compiler is broken, or we cross compile.
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3223$as_echo_n "checking whether we are cross compiling... " >&6; }
3224if test "$cross_compiling" != yes; then
3225  { { ac_try="$ac_link"
3226case "(($ac_try" in
3227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228  *) ac_try_echo=$ac_try;;
3229esac
3230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231$as_echo "$ac_try_echo"; } >&5
3232  (eval "$ac_link") 2>&5
3233  ac_status=$?
3234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235  test $ac_status = 0; }
3236  if { ac_try='./conftest$ac_cv_exeext'
3237  { { case "(($ac_try" in
3238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239  *) ac_try_echo=$ac_try;;
3240esac
3241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242$as_echo "$ac_try_echo"; } >&5
3243  (eval "$ac_try") 2>&5
3244  ac_status=$?
3245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246  test $ac_status = 0; }; }; then
3247    cross_compiling=no
3248  else
3249    if test "$cross_compiling" = maybe; then
3250	cross_compiling=yes
3251    else
3252	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254as_fn_error $? "cannot run C compiled programs.
3255If you meant to cross compile, use \`--host'.
3256See \`config.log' for more details" "$LINENO" 5; }
3257    fi
3258  fi
3259fi
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3261$as_echo "$cross_compiling" >&6; }
3262
3263rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3264ac_clean_files=$ac_clean_files_save
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3266$as_echo_n "checking for suffix of object files... " >&6; }
3267if ${ac_cv_objext+:} false; then :
3268  $as_echo_n "(cached) " >&6
3269else
3270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271/* end confdefs.h.  */
3272
3273int
3274main ()
3275{
3276
3277  ;
3278  return 0;
3279}
3280_ACEOF
3281rm -f conftest.o conftest.obj
3282if { { ac_try="$ac_compile"
3283case "(($ac_try" in
3284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285  *) ac_try_echo=$ac_try;;
3286esac
3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288$as_echo "$ac_try_echo"; } >&5
3289  (eval "$ac_compile") 2>&5
3290  ac_status=$?
3291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292  test $ac_status = 0; }; then :
3293  for ac_file in conftest.o conftest.obj conftest.*; do
3294  test -f "$ac_file" || continue;
3295  case $ac_file in
3296    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3297    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3298       break;;
3299  esac
3300done
3301else
3302  $as_echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307as_fn_error $? "cannot compute suffix of object files: cannot compile
3308See \`config.log' for more details" "$LINENO" 5; }
3309fi
3310rm -f conftest.$ac_cv_objext conftest.$ac_ext
3311fi
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3313$as_echo "$ac_cv_objext" >&6; }
3314OBJEXT=$ac_cv_objext
3315ac_objext=$OBJEXT
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3317$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3318if ${ac_cv_c_compiler_gnu+:} false; then :
3319  $as_echo_n "(cached) " >&6
3320else
3321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322/* end confdefs.h.  */
3323
3324int
3325main ()
3326{
3327#ifndef __GNUC__
3328       choke me
3329#endif
3330
3331  ;
3332  return 0;
3333}
3334_ACEOF
3335if ac_fn_c_try_compile "$LINENO"; then :
3336  ac_compiler_gnu=yes
3337else
3338  ac_compiler_gnu=no
3339fi
3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341ac_cv_c_compiler_gnu=$ac_compiler_gnu
3342
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3345$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3346if test $ac_compiler_gnu = yes; then
3347  GCC=yes
3348else
3349  GCC=
3350fi
3351ac_test_CFLAGS=${CFLAGS+set}
3352ac_save_CFLAGS=$CFLAGS
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3354$as_echo_n "checking whether $CC accepts -g... " >&6; }
3355if ${ac_cv_prog_cc_g+:} false; then :
3356  $as_echo_n "(cached) " >&6
3357else
3358  ac_save_c_werror_flag=$ac_c_werror_flag
3359   ac_c_werror_flag=yes
3360   ac_cv_prog_cc_g=no
3361   CFLAGS="-g"
3362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363/* end confdefs.h.  */
3364
3365int
3366main ()
3367{
3368
3369  ;
3370  return 0;
3371}
3372_ACEOF
3373if ac_fn_c_try_compile "$LINENO"; then :
3374  ac_cv_prog_cc_g=yes
3375else
3376  CFLAGS=""
3377      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h.  */
3379
3380int
3381main ()
3382{
3383
3384  ;
3385  return 0;
3386}
3387_ACEOF
3388if ac_fn_c_try_compile "$LINENO"; then :
3389
3390else
3391  ac_c_werror_flag=$ac_save_c_werror_flag
3392	 CFLAGS="-g"
3393	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394/* end confdefs.h.  */
3395
3396int
3397main ()
3398{
3399
3400  ;
3401  return 0;
3402}
3403_ACEOF
3404if ac_fn_c_try_compile "$LINENO"; then :
3405  ac_cv_prog_cc_g=yes
3406fi
3407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408fi
3409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410fi
3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412   ac_c_werror_flag=$ac_save_c_werror_flag
3413fi
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3415$as_echo "$ac_cv_prog_cc_g" >&6; }
3416if test "$ac_test_CFLAGS" = set; then
3417  CFLAGS=$ac_save_CFLAGS
3418elif test $ac_cv_prog_cc_g = yes; then
3419  if test "$GCC" = yes; then
3420    CFLAGS="-g -O2"
3421  else
3422    CFLAGS="-g"
3423  fi
3424else
3425  if test "$GCC" = yes; then
3426    CFLAGS="-O2"
3427  else
3428    CFLAGS=
3429  fi
3430fi
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3432$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3433if ${ac_cv_prog_cc_c89+:} false; then :
3434  $as_echo_n "(cached) " >&6
3435else
3436  ac_cv_prog_cc_c89=no
3437ac_save_CC=$CC
3438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439/* end confdefs.h.  */
3440#include <stdarg.h>
3441#include <stdio.h>
3442struct stat;
3443/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3444struct buf { int x; };
3445FILE * (*rcsopen) (struct buf *, struct stat *, int);
3446static char *e (p, i)
3447     char **p;
3448     int i;
3449{
3450  return p[i];
3451}
3452static char *f (char * (*g) (char **, int), char **p, ...)
3453{
3454  char *s;
3455  va_list v;
3456  va_start (v,p);
3457  s = g (p, va_arg (v,int));
3458  va_end (v);
3459  return s;
3460}
3461
3462/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3463   function prototypes and stuff, but not '\xHH' hex character constants.
3464   These don't provoke an error unfortunately, instead are silently treated
3465   as 'x'.  The following induces an error, until -std is added to get
3466   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3467   array size at least.  It's necessary to write '\x00'==0 to get something
3468   that's true only with -std.  */
3469int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3470
3471/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3472   inside strings and character constants.  */
3473#define FOO(x) 'x'
3474int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3475
3476int test (int i, double x);
3477struct s1 {int (*f) (int a);};
3478struct s2 {int (*f) (double a);};
3479int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3480int argc;
3481char **argv;
3482int
3483main ()
3484{
3485return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3491	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3492do
3493  CC="$ac_save_CC $ac_arg"
3494  if ac_fn_c_try_compile "$LINENO"; then :
3495  ac_cv_prog_cc_c89=$ac_arg
3496fi
3497rm -f core conftest.err conftest.$ac_objext
3498  test "x$ac_cv_prog_cc_c89" != "xno" && break
3499done
3500rm -f conftest.$ac_ext
3501CC=$ac_save_CC
3502
3503fi
3504# AC_CACHE_VAL
3505case "x$ac_cv_prog_cc_c89" in
3506  x)
3507    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3508$as_echo "none needed" >&6; } ;;
3509  xno)
3510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3511$as_echo "unsupported" >&6; } ;;
3512  *)
3513    CC="$CC $ac_cv_prog_cc_c89"
3514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3515$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3516esac
3517if test "x$ac_cv_prog_cc_c89" != xno; then :
3518
3519fi
3520
3521ac_ext=c
3522ac_cpp='$CPP $CPPFLAGS'
3523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526
3527depcc="$CC"   am_compiler_list=
3528
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3530$as_echo_n "checking dependency style of $depcc... " >&6; }
3531if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3532  $as_echo_n "(cached) " >&6
3533else
3534  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3535  # We make a subdir and do the tests there.  Otherwise we can end up
3536  # making bogus files that we don't know about and never remove.  For
3537  # instance it was reported that on HP-UX the gcc test will end up
3538  # making a dummy file named `D' -- because `-MD' means `put the output
3539  # in D'.
3540  rm -rf conftest.dir
3541  mkdir conftest.dir
3542  # Copy depcomp to subdir because otherwise we won't find it if we're
3543  # using a relative directory.
3544  cp "$am_depcomp" conftest.dir
3545  cd conftest.dir
3546  # We will build objects and dependencies in a subdirectory because
3547  # it helps to detect inapplicable dependency modes.  For instance
3548  # both Tru64's cc and ICC support -MD to output dependencies as a
3549  # side effect of compilation, but ICC will put the dependencies in
3550  # the current directory while Tru64 will put them in the object
3551  # directory.
3552  mkdir sub
3553
3554  am_cv_CC_dependencies_compiler_type=none
3555  if test "$am_compiler_list" = ""; then
3556     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3557  fi
3558  am__universal=false
3559  case " $depcc " in #(
3560     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3561     esac
3562
3563  for depmode in $am_compiler_list; do
3564    # Setup a source with many dependencies, because some compilers
3565    # like to wrap large dependency lists on column 80 (with \), and
3566    # we should not choose a depcomp mode which is confused by this.
3567    #
3568    # We need to recreate these files for each test, as the compiler may
3569    # overwrite some of them when testing with obscure command lines.
3570    # This happens at least with the AIX C compiler.
3571    : > sub/conftest.c
3572    for i in 1 2 3 4 5 6; do
3573      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3574      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3575      # Solaris 8's {/usr,}/bin/sh.
3576      touch sub/conftst$i.h
3577    done
3578    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3579
3580    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3581    # mode.  It turns out that the SunPro C++ compiler does not properly
3582    # handle `-M -o', and we need to detect this.  Also, some Intel
3583    # versions had trouble with output in subdirs
3584    am__obj=sub/conftest.${OBJEXT-o}
3585    am__minus_obj="-o $am__obj"
3586    case $depmode in
3587    gcc)
3588      # This depmode causes a compiler race in universal mode.
3589      test "$am__universal" = false || continue
3590      ;;
3591    nosideeffect)
3592      # after this tag, mechanisms are not by side-effect, so they'll
3593      # only be used when explicitly requested
3594      if test "x$enable_dependency_tracking" = xyes; then
3595	continue
3596      else
3597	break
3598      fi
3599      ;;
3600    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3601      # This compiler won't grok `-c -o', but also, the minuso test has
3602      # not run yet.  These depmodes are late enough in the game, and
3603      # so weak that their functioning should not be impacted.
3604      am__obj=conftest.${OBJEXT-o}
3605      am__minus_obj=
3606      ;;
3607    none) break ;;
3608    esac
3609    if depmode=$depmode \
3610       source=sub/conftest.c object=$am__obj \
3611       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3612       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3613         >/dev/null 2>conftest.err &&
3614       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3615       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3616       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3617       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3618      # icc doesn't choke on unknown options, it will just issue warnings
3619      # or remarks (even with -Werror).  So we grep stderr for any message
3620      # that says an option was ignored or not supported.
3621      # When given -MP, icc 7.0 and 7.1 complain thusly:
3622      #   icc: Command line warning: ignoring option '-M'; no argument required
3623      # The diagnosis changed in icc 8.0:
3624      #   icc: Command line remark: option '-MP' not supported
3625      if (grep 'ignoring option' conftest.err ||
3626          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3627        am_cv_CC_dependencies_compiler_type=$depmode
3628        break
3629      fi
3630    fi
3631  done
3632
3633  cd ..
3634  rm -rf conftest.dir
3635else
3636  am_cv_CC_dependencies_compiler_type=none
3637fi
3638
3639fi
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3641$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3642CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643
3644 if
3645  test "x$enable_dependency_tracking" != xno \
3646  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3647  am__fastdepCC_TRUE=
3648  am__fastdepCC_FALSE='#'
3649else
3650  am__fastdepCC_TRUE='#'
3651  am__fastdepCC_FALSE=
3652fi
3653
3654
3655
3656# Check whether --enable-largefile was given.
3657if test "${enable_largefile+set}" = set; then :
3658  enableval=$enable_largefile;
3659fi
3660
3661if test "$enable_largefile" != no; then
3662
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3664$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3665if ${ac_cv_sys_largefile_CC+:} false; then :
3666  $as_echo_n "(cached) " >&6
3667else
3668  ac_cv_sys_largefile_CC=no
3669     if test "$GCC" != yes; then
3670       ac_save_CC=$CC
3671       while :; do
3672	 # IRIX 6.2 and later do not support large files by default,
3673	 # so use the C compiler's -n32 option if that helps.
3674	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676#include <sys/types.h>
3677 /* Check that off_t can represent 2**63 - 1 correctly.
3678    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3679    since some C++ compilers masquerading as C compilers
3680    incorrectly reject 9223372036854775807.  */
3681#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3682  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3683		       && LARGE_OFF_T % 2147483647 == 1)
3684		      ? 1 : -1];
3685int
3686main ()
3687{
3688
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693	 if ac_fn_c_try_compile "$LINENO"; then :
3694  break
3695fi
3696rm -f core conftest.err conftest.$ac_objext
3697	 CC="$CC -n32"
3698	 if ac_fn_c_try_compile "$LINENO"; then :
3699  ac_cv_sys_largefile_CC=' -n32'; break
3700fi
3701rm -f core conftest.err conftest.$ac_objext
3702	 break
3703       done
3704       CC=$ac_save_CC
3705       rm -f conftest.$ac_ext
3706    fi
3707fi
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3709$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3710  if test "$ac_cv_sys_largefile_CC" != no; then
3711    CC=$CC$ac_cv_sys_largefile_CC
3712  fi
3713
3714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3715$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3716if ${ac_cv_sys_file_offset_bits+:} false; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  while :; do
3720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722#include <sys/types.h>
3723 /* Check that off_t can represent 2**63 - 1 correctly.
3724    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3725    since some C++ compilers masquerading as C compilers
3726    incorrectly reject 9223372036854775807.  */
3727#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3728  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3729		       && LARGE_OFF_T % 2147483647 == 1)
3730		      ? 1 : -1];
3731int
3732main ()
3733{
3734
3735  ;
3736  return 0;
3737}
3738_ACEOF
3739if ac_fn_c_try_compile "$LINENO"; then :
3740  ac_cv_sys_file_offset_bits=no; break
3741fi
3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h.  */
3745#define _FILE_OFFSET_BITS 64
3746#include <sys/types.h>
3747 /* Check that off_t can represent 2**63 - 1 correctly.
3748    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3749    since some C++ compilers masquerading as C compilers
3750    incorrectly reject 9223372036854775807.  */
3751#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3752  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3753		       && LARGE_OFF_T % 2147483647 == 1)
3754		      ? 1 : -1];
3755int
3756main ()
3757{
3758
3759  ;
3760  return 0;
3761}
3762_ACEOF
3763if ac_fn_c_try_compile "$LINENO"; then :
3764  ac_cv_sys_file_offset_bits=64; break
3765fi
3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767  ac_cv_sys_file_offset_bits=unknown
3768  break
3769done
3770fi
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3772$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3773case $ac_cv_sys_file_offset_bits in #(
3774  no | unknown) ;;
3775  *)
3776cat >>confdefs.h <<_ACEOF
3777#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3778_ACEOF
3779;;
3780esac
3781rm -rf conftest*
3782  if test $ac_cv_sys_file_offset_bits = unknown; then
3783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3784$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3785if ${ac_cv_sys_large_files+:} false; then :
3786  $as_echo_n "(cached) " >&6
3787else
3788  while :; do
3789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h.  */
3791#include <sys/types.h>
3792 /* Check that off_t can represent 2**63 - 1 correctly.
3793    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3794    since some C++ compilers masquerading as C compilers
3795    incorrectly reject 9223372036854775807.  */
3796#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3797  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3798		       && LARGE_OFF_T % 2147483647 == 1)
3799		      ? 1 : -1];
3800int
3801main ()
3802{
3803
3804  ;
3805  return 0;
3806}
3807_ACEOF
3808if ac_fn_c_try_compile "$LINENO"; then :
3809  ac_cv_sys_large_files=no; break
3810fi
3811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h.  */
3814#define _LARGE_FILES 1
3815#include <sys/types.h>
3816 /* Check that off_t can represent 2**63 - 1 correctly.
3817    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3818    since some C++ compilers masquerading as C compilers
3819    incorrectly reject 9223372036854775807.  */
3820#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3821  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3822		       && LARGE_OFF_T % 2147483647 == 1)
3823		      ? 1 : -1];
3824int
3825main ()
3826{
3827
3828  ;
3829  return 0;
3830}
3831_ACEOF
3832if ac_fn_c_try_compile "$LINENO"; then :
3833  ac_cv_sys_large_files=1; break
3834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836  ac_cv_sys_large_files=unknown
3837  break
3838done
3839fi
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3841$as_echo "$ac_cv_sys_large_files" >&6; }
3842case $ac_cv_sys_large_files in #(
3843  no | unknown) ;;
3844  *)
3845cat >>confdefs.h <<_ACEOF
3846#define _LARGE_FILES $ac_cv_sys_large_files
3847_ACEOF
3848;;
3849esac
3850rm -rf conftest*
3851  fi
3852
3853
3854fi
3855
3856
3857# Check for required programs.
3858ac_ext=c
3859ac_cpp='$CPP $CPPFLAGS'
3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863if test -n "$ac_tool_prefix"; then
3864  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3865set dummy ${ac_tool_prefix}gcc; ac_word=$2
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867$as_echo_n "checking for $ac_word... " >&6; }
3868if ${ac_cv_prog_CC+:} false; then :
3869  $as_echo_n "(cached) " >&6
3870else
3871  if test -n "$CC"; then
3872  ac_cv_prog_CC="$CC" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877  IFS=$as_save_IFS
3878  test -z "$as_dir" && as_dir=.
3879    for ac_exec_ext in '' $ac_executable_extensions; do
3880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883    break 2
3884  fi
3885done
3886  done
3887IFS=$as_save_IFS
3888
3889fi
3890fi
3891CC=$ac_cv_prog_CC
3892if test -n "$CC"; then
3893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3894$as_echo "$CC" >&6; }
3895else
3896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897$as_echo "no" >&6; }
3898fi
3899
3900
3901fi
3902if test -z "$ac_cv_prog_CC"; then
3903  ac_ct_CC=$CC
3904  # Extract the first word of "gcc", so it can be a program name with args.
3905set dummy gcc; ac_word=$2
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907$as_echo_n "checking for $ac_word... " >&6; }
3908if ${ac_cv_prog_ac_ct_CC+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  if test -n "$ac_ct_CC"; then
3912  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3913else
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917  IFS=$as_save_IFS
3918  test -z "$as_dir" && as_dir=.
3919    for ac_exec_ext in '' $ac_executable_extensions; do
3920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921    ac_cv_prog_ac_ct_CC="gcc"
3922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923    break 2
3924  fi
3925done
3926  done
3927IFS=$as_save_IFS
3928
3929fi
3930fi
3931ac_ct_CC=$ac_cv_prog_ac_ct_CC
3932if test -n "$ac_ct_CC"; then
3933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3934$as_echo "$ac_ct_CC" >&6; }
3935else
3936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937$as_echo "no" >&6; }
3938fi
3939
3940  if test "x$ac_ct_CC" = x; then
3941    CC=""
3942  else
3943    case $cross_compiling:$ac_tool_warned in
3944yes:)
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3947ac_tool_warned=yes ;;
3948esac
3949    CC=$ac_ct_CC
3950  fi
3951else
3952  CC="$ac_cv_prog_CC"
3953fi
3954
3955if test -z "$CC"; then
3956          if test -n "$ac_tool_prefix"; then
3957    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3958set dummy ${ac_tool_prefix}cc; ac_word=$2
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960$as_echo_n "checking for $ac_word... " >&6; }
3961if ${ac_cv_prog_CC+:} false; then :
3962  $as_echo_n "(cached) " >&6
3963else
3964  if test -n "$CC"; then
3965  ac_cv_prog_CC="$CC" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970  IFS=$as_save_IFS
3971  test -z "$as_dir" && as_dir=.
3972    for ac_exec_ext in '' $ac_executable_extensions; do
3973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974    ac_cv_prog_CC="${ac_tool_prefix}cc"
3975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976    break 2
3977  fi
3978done
3979  done
3980IFS=$as_save_IFS
3981
3982fi
3983fi
3984CC=$ac_cv_prog_CC
3985if test -n "$CC"; then
3986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3987$as_echo "$CC" >&6; }
3988else
3989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990$as_echo "no" >&6; }
3991fi
3992
3993
3994  fi
3995fi
3996if test -z "$CC"; then
3997  # Extract the first word of "cc", so it can be a program name with args.
3998set dummy cc; ac_word=$2
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000$as_echo_n "checking for $ac_word... " >&6; }
4001if ${ac_cv_prog_CC+:} false; then :
4002  $as_echo_n "(cached) " >&6
4003else
4004  if test -n "$CC"; then
4005  ac_cv_prog_CC="$CC" # Let the user override the test.
4006else
4007  ac_prog_rejected=no
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011  IFS=$as_save_IFS
4012  test -z "$as_dir" && as_dir=.
4013    for ac_exec_ext in '' $ac_executable_extensions; do
4014  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4016       ac_prog_rejected=yes
4017       continue
4018     fi
4019    ac_cv_prog_CC="cc"
4020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021    break 2
4022  fi
4023done
4024  done
4025IFS=$as_save_IFS
4026
4027if test $ac_prog_rejected = yes; then
4028  # We found a bogon in the path, so make sure we never use it.
4029  set dummy $ac_cv_prog_CC
4030  shift
4031  if test $# != 0; then
4032    # We chose a different compiler from the bogus one.
4033    # However, it has the same basename, so the bogon will be chosen
4034    # first if we set CC to just the basename; use the full file name.
4035    shift
4036    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4037  fi
4038fi
4039fi
4040fi
4041CC=$ac_cv_prog_CC
4042if test -n "$CC"; then
4043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4044$as_echo "$CC" >&6; }
4045else
4046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047$as_echo "no" >&6; }
4048fi
4049
4050
4051fi
4052if test -z "$CC"; then
4053  if test -n "$ac_tool_prefix"; then
4054  for ac_prog in cl.exe
4055  do
4056    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059$as_echo_n "checking for $ac_word... " >&6; }
4060if ${ac_cv_prog_CC+:} false; then :
4061  $as_echo_n "(cached) " >&6
4062else
4063  if test -n "$CC"; then
4064  ac_cv_prog_CC="$CC" # Let the user override the test.
4065else
4066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069  IFS=$as_save_IFS
4070  test -z "$as_dir" && as_dir=.
4071    for ac_exec_ext in '' $ac_executable_extensions; do
4072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075    break 2
4076  fi
4077done
4078  done
4079IFS=$as_save_IFS
4080
4081fi
4082fi
4083CC=$ac_cv_prog_CC
4084if test -n "$CC"; then
4085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086$as_echo "$CC" >&6; }
4087else
4088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089$as_echo "no" >&6; }
4090fi
4091
4092
4093    test -n "$CC" && break
4094  done
4095fi
4096if test -z "$CC"; then
4097  ac_ct_CC=$CC
4098  for ac_prog in cl.exe
4099do
4100  # Extract the first word of "$ac_prog", so it can be a program name with args.
4101set dummy $ac_prog; ac_word=$2
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103$as_echo_n "checking for $ac_word... " >&6; }
4104if ${ac_cv_prog_ac_ct_CC+:} false; then :
4105  $as_echo_n "(cached) " >&6
4106else
4107  if test -n "$ac_ct_CC"; then
4108  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4109else
4110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113  IFS=$as_save_IFS
4114  test -z "$as_dir" && as_dir=.
4115    for ac_exec_ext in '' $ac_executable_extensions; do
4116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117    ac_cv_prog_ac_ct_CC="$ac_prog"
4118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119    break 2
4120  fi
4121done
4122  done
4123IFS=$as_save_IFS
4124
4125fi
4126fi
4127ac_ct_CC=$ac_cv_prog_ac_ct_CC
4128if test -n "$ac_ct_CC"; then
4129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4130$as_echo "$ac_ct_CC" >&6; }
4131else
4132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133$as_echo "no" >&6; }
4134fi
4135
4136
4137  test -n "$ac_ct_CC" && break
4138done
4139
4140  if test "x$ac_ct_CC" = x; then
4141    CC=""
4142  else
4143    case $cross_compiling:$ac_tool_warned in
4144yes:)
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4147ac_tool_warned=yes ;;
4148esac
4149    CC=$ac_ct_CC
4150  fi
4151fi
4152
4153fi
4154
4155
4156test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158as_fn_error $? "no acceptable C compiler found in \$PATH
4159See \`config.log' for more details" "$LINENO" 5; }
4160
4161# Provide some information about the compiler.
4162$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4163set X $ac_compile
4164ac_compiler=$2
4165for ac_option in --version -v -V -qversion; do
4166  { { ac_try="$ac_compiler $ac_option >&5"
4167case "(($ac_try" in
4168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169  *) ac_try_echo=$ac_try;;
4170esac
4171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4172$as_echo "$ac_try_echo"; } >&5
4173  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4174  ac_status=$?
4175  if test -s conftest.err; then
4176    sed '10a\
4177... rest of stderr output deleted ...
4178         10q' conftest.err >conftest.er1
4179    cat conftest.er1 >&5
4180  fi
4181  rm -f conftest.er1 conftest.err
4182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183  test $ac_status = 0; }
4184done
4185
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4187$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4188if ${ac_cv_c_compiler_gnu+:} false; then :
4189  $as_echo_n "(cached) " >&6
4190else
4191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192/* end confdefs.h.  */
4193
4194int
4195main ()
4196{
4197#ifndef __GNUC__
4198       choke me
4199#endif
4200
4201  ;
4202  return 0;
4203}
4204_ACEOF
4205if ac_fn_c_try_compile "$LINENO"; then :
4206  ac_compiler_gnu=yes
4207else
4208  ac_compiler_gnu=no
4209fi
4210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211ac_cv_c_compiler_gnu=$ac_compiler_gnu
4212
4213fi
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4215$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4216if test $ac_compiler_gnu = yes; then
4217  GCC=yes
4218else
4219  GCC=
4220fi
4221ac_test_CFLAGS=${CFLAGS+set}
4222ac_save_CFLAGS=$CFLAGS
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4224$as_echo_n "checking whether $CC accepts -g... " >&6; }
4225if ${ac_cv_prog_cc_g+:} false; then :
4226  $as_echo_n "(cached) " >&6
4227else
4228  ac_save_c_werror_flag=$ac_c_werror_flag
4229   ac_c_werror_flag=yes
4230   ac_cv_prog_cc_g=no
4231   CFLAGS="-g"
4232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234
4235int
4236main ()
4237{
4238
4239  ;
4240  return 0;
4241}
4242_ACEOF
4243if ac_fn_c_try_compile "$LINENO"; then :
4244  ac_cv_prog_cc_g=yes
4245else
4246  CFLAGS=""
4247      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248/* end confdefs.h.  */
4249
4250int
4251main ()
4252{
4253
4254  ;
4255  return 0;
4256}
4257_ACEOF
4258if ac_fn_c_try_compile "$LINENO"; then :
4259
4260else
4261  ac_c_werror_flag=$ac_save_c_werror_flag
4262	 CFLAGS="-g"
4263	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264/* end confdefs.h.  */
4265
4266int
4267main ()
4268{
4269
4270  ;
4271  return 0;
4272}
4273_ACEOF
4274if ac_fn_c_try_compile "$LINENO"; then :
4275  ac_cv_prog_cc_g=yes
4276fi
4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278fi
4279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4280fi
4281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282   ac_c_werror_flag=$ac_save_c_werror_flag
4283fi
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4285$as_echo "$ac_cv_prog_cc_g" >&6; }
4286if test "$ac_test_CFLAGS" = set; then
4287  CFLAGS=$ac_save_CFLAGS
4288elif test $ac_cv_prog_cc_g = yes; then
4289  if test "$GCC" = yes; then
4290    CFLAGS="-g -O2"
4291  else
4292    CFLAGS="-g"
4293  fi
4294else
4295  if test "$GCC" = yes; then
4296    CFLAGS="-O2"
4297  else
4298    CFLAGS=
4299  fi
4300fi
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4302$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4303if ${ac_cv_prog_cc_c89+:} false; then :
4304  $as_echo_n "(cached) " >&6
4305else
4306  ac_cv_prog_cc_c89=no
4307ac_save_CC=$CC
4308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309/* end confdefs.h.  */
4310#include <stdarg.h>
4311#include <stdio.h>
4312struct stat;
4313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4314struct buf { int x; };
4315FILE * (*rcsopen) (struct buf *, struct stat *, int);
4316static char *e (p, i)
4317     char **p;
4318     int i;
4319{
4320  return p[i];
4321}
4322static char *f (char * (*g) (char **, int), char **p, ...)
4323{
4324  char *s;
4325  va_list v;
4326  va_start (v,p);
4327  s = g (p, va_arg (v,int));
4328  va_end (v);
4329  return s;
4330}
4331
4332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4333   function prototypes and stuff, but not '\xHH' hex character constants.
4334   These don't provoke an error unfortunately, instead are silently treated
4335   as 'x'.  The following induces an error, until -std is added to get
4336   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4337   array size at least.  It's necessary to write '\x00'==0 to get something
4338   that's true only with -std.  */
4339int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4340
4341/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4342   inside strings and character constants.  */
4343#define FOO(x) 'x'
4344int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4345
4346int test (int i, double x);
4347struct s1 {int (*f) (int a);};
4348struct s2 {int (*f) (double a);};
4349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4350int argc;
4351char **argv;
4352int
4353main ()
4354{
4355return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4356  ;
4357  return 0;
4358}
4359_ACEOF
4360for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4361	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4362do
4363  CC="$ac_save_CC $ac_arg"
4364  if ac_fn_c_try_compile "$LINENO"; then :
4365  ac_cv_prog_cc_c89=$ac_arg
4366fi
4367rm -f core conftest.err conftest.$ac_objext
4368  test "x$ac_cv_prog_cc_c89" != "xno" && break
4369done
4370rm -f conftest.$ac_ext
4371CC=$ac_save_CC
4372
4373fi
4374# AC_CACHE_VAL
4375case "x$ac_cv_prog_cc_c89" in
4376  x)
4377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4378$as_echo "none needed" >&6; } ;;
4379  xno)
4380    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4381$as_echo "unsupported" >&6; } ;;
4382  *)
4383    CC="$CC $ac_cv_prog_cc_c89"
4384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4385$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4386esac
4387if test "x$ac_cv_prog_cc_c89" != xno; then :
4388
4389fi
4390
4391ac_ext=c
4392ac_cpp='$CPP $CPPFLAGS'
4393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396
4397depcc="$CC"   am_compiler_list=
4398
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4400$as_echo_n "checking dependency style of $depcc... " >&6; }
4401if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4402  $as_echo_n "(cached) " >&6
4403else
4404  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4405  # We make a subdir and do the tests there.  Otherwise we can end up
4406  # making bogus files that we don't know about and never remove.  For
4407  # instance it was reported that on HP-UX the gcc test will end up
4408  # making a dummy file named `D' -- because `-MD' means `put the output
4409  # in D'.
4410  rm -rf conftest.dir
4411  mkdir conftest.dir
4412  # Copy depcomp to subdir because otherwise we won't find it if we're
4413  # using a relative directory.
4414  cp "$am_depcomp" conftest.dir
4415  cd conftest.dir
4416  # We will build objects and dependencies in a subdirectory because
4417  # it helps to detect inapplicable dependency modes.  For instance
4418  # both Tru64's cc and ICC support -MD to output dependencies as a
4419  # side effect of compilation, but ICC will put the dependencies in
4420  # the current directory while Tru64 will put them in the object
4421  # directory.
4422  mkdir sub
4423
4424  am_cv_CC_dependencies_compiler_type=none
4425  if test "$am_compiler_list" = ""; then
4426     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4427  fi
4428  am__universal=false
4429  case " $depcc " in #(
4430     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4431     esac
4432
4433  for depmode in $am_compiler_list; do
4434    # Setup a source with many dependencies, because some compilers
4435    # like to wrap large dependency lists on column 80 (with \), and
4436    # we should not choose a depcomp mode which is confused by this.
4437    #
4438    # We need to recreate these files for each test, as the compiler may
4439    # overwrite some of them when testing with obscure command lines.
4440    # This happens at least with the AIX C compiler.
4441    : > sub/conftest.c
4442    for i in 1 2 3 4 5 6; do
4443      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4444      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4445      # Solaris 8's {/usr,}/bin/sh.
4446      touch sub/conftst$i.h
4447    done
4448    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4449
4450    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4451    # mode.  It turns out that the SunPro C++ compiler does not properly
4452    # handle `-M -o', and we need to detect this.  Also, some Intel
4453    # versions had trouble with output in subdirs
4454    am__obj=sub/conftest.${OBJEXT-o}
4455    am__minus_obj="-o $am__obj"
4456    case $depmode in
4457    gcc)
4458      # This depmode causes a compiler race in universal mode.
4459      test "$am__universal" = false || continue
4460      ;;
4461    nosideeffect)
4462      # after this tag, mechanisms are not by side-effect, so they'll
4463      # only be used when explicitly requested
4464      if test "x$enable_dependency_tracking" = xyes; then
4465	continue
4466      else
4467	break
4468      fi
4469      ;;
4470    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4471      # This compiler won't grok `-c -o', but also, the minuso test has
4472      # not run yet.  These depmodes are late enough in the game, and
4473      # so weak that their functioning should not be impacted.
4474      am__obj=conftest.${OBJEXT-o}
4475      am__minus_obj=
4476      ;;
4477    none) break ;;
4478    esac
4479    if depmode=$depmode \
4480       source=sub/conftest.c object=$am__obj \
4481       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4482       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4483         >/dev/null 2>conftest.err &&
4484       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4485       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4486       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4487       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4488      # icc doesn't choke on unknown options, it will just issue warnings
4489      # or remarks (even with -Werror).  So we grep stderr for any message
4490      # that says an option was ignored or not supported.
4491      # When given -MP, icc 7.0 and 7.1 complain thusly:
4492      #   icc: Command line warning: ignoring option '-M'; no argument required
4493      # The diagnosis changed in icc 8.0:
4494      #   icc: Command line remark: option '-MP' not supported
4495      if (grep 'ignoring option' conftest.err ||
4496          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4497        am_cv_CC_dependencies_compiler_type=$depmode
4498        break
4499      fi
4500    fi
4501  done
4502
4503  cd ..
4504  rm -rf conftest.dir
4505else
4506  am_cv_CC_dependencies_compiler_type=none
4507fi
4508
4509fi
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4511$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4512CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4513
4514 if
4515  test "x$enable_dependency_tracking" != xno \
4516  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4517  am__fastdepCC_TRUE=
4518  am__fastdepCC_FALSE='#'
4519else
4520  am__fastdepCC_TRUE='#'
4521  am__fastdepCC_FALSE=
4522fi
4523
4524
4525if test -n "$ac_tool_prefix"; then
4526  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4527set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529$as_echo_n "checking for $ac_word... " >&6; }
4530if ${ac_cv_prog_RANLIB+:} false; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  if test -n "$RANLIB"; then
4534  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539  IFS=$as_save_IFS
4540  test -z "$as_dir" && as_dir=.
4541    for ac_exec_ext in '' $ac_executable_extensions; do
4542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545    break 2
4546  fi
4547done
4548  done
4549IFS=$as_save_IFS
4550
4551fi
4552fi
4553RANLIB=$ac_cv_prog_RANLIB
4554if test -n "$RANLIB"; then
4555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4556$as_echo "$RANLIB" >&6; }
4557else
4558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559$as_echo "no" >&6; }
4560fi
4561
4562
4563fi
4564if test -z "$ac_cv_prog_RANLIB"; then
4565  ac_ct_RANLIB=$RANLIB
4566  # Extract the first word of "ranlib", so it can be a program name with args.
4567set dummy ranlib; ac_word=$2
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569$as_echo_n "checking for $ac_word... " >&6; }
4570if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4571  $as_echo_n "(cached) " >&6
4572else
4573  if test -n "$ac_ct_RANLIB"; then
4574  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4575else
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579  IFS=$as_save_IFS
4580  test -z "$as_dir" && as_dir=.
4581    for ac_exec_ext in '' $ac_executable_extensions; do
4582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583    ac_cv_prog_ac_ct_RANLIB="ranlib"
4584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585    break 2
4586  fi
4587done
4588  done
4589IFS=$as_save_IFS
4590
4591fi
4592fi
4593ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4594if test -n "$ac_ct_RANLIB"; then
4595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4596$as_echo "$ac_ct_RANLIB" >&6; }
4597else
4598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599$as_echo "no" >&6; }
4600fi
4601
4602  if test "x$ac_ct_RANLIB" = x; then
4603    RANLIB=":"
4604  else
4605    case $cross_compiling:$ac_tool_warned in
4606yes:)
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609ac_tool_warned=yes ;;
4610esac
4611    RANLIB=$ac_ct_RANLIB
4612  fi
4613else
4614  RANLIB="$ac_cv_prog_RANLIB"
4615fi
4616
4617case `pwd` in
4618  *\ * | *\	*)
4619    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4620$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4621esac
4622
4623
4624
4625macro_version='2.4.2'
4626macro_revision='1.3337'
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640ltmain="$ac_aux_dir/ltmain.sh"
4641
4642# Make sure we can run config.sub.
4643$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4644  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4645
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4647$as_echo_n "checking build system type... " >&6; }
4648if ${ac_cv_build+:} false; then :
4649  $as_echo_n "(cached) " >&6
4650else
4651  ac_build_alias=$build_alias
4652test "x$ac_build_alias" = x &&
4653  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4654test "x$ac_build_alias" = x &&
4655  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4656ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4657  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4658
4659fi
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4661$as_echo "$ac_cv_build" >&6; }
4662case $ac_cv_build in
4663*-*-*) ;;
4664*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4665esac
4666build=$ac_cv_build
4667ac_save_IFS=$IFS; IFS='-'
4668set x $ac_cv_build
4669shift
4670build_cpu=$1
4671build_vendor=$2
4672shift; shift
4673# Remember, the first character of IFS is used to create $*,
4674# except with old shells:
4675build_os=$*
4676IFS=$ac_save_IFS
4677case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4678
4679
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4681$as_echo_n "checking host system type... " >&6; }
4682if ${ac_cv_host+:} false; then :
4683  $as_echo_n "(cached) " >&6
4684else
4685  if test "x$host_alias" = x; then
4686  ac_cv_host=$ac_cv_build
4687else
4688  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4689    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4690fi
4691
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4694$as_echo "$ac_cv_host" >&6; }
4695case $ac_cv_host in
4696*-*-*) ;;
4697*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4698esac
4699host=$ac_cv_host
4700ac_save_IFS=$IFS; IFS='-'
4701set x $ac_cv_host
4702shift
4703host_cpu=$1
4704host_vendor=$2
4705shift; shift
4706# Remember, the first character of IFS is used to create $*,
4707# except with old shells:
4708host_os=$*
4709IFS=$ac_save_IFS
4710case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4711
4712
4713# Backslashify metacharacters that are still active within
4714# double-quoted strings.
4715sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4716
4717# Same as above, but do not quote variable references.
4718double_quote_subst='s/\(["`\\]\)/\\\1/g'
4719
4720# Sed substitution to delay expansion of an escaped shell variable in a
4721# double_quote_subst'ed string.
4722delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4723
4724# Sed substitution to delay expansion of an escaped single quote.
4725delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4726
4727# Sed substitution to avoid accidental globbing in evaled expressions
4728no_glob_subst='s/\*/\\\*/g'
4729
4730ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4731ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4732ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4733
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4735$as_echo_n "checking how to print strings... " >&6; }
4736# Test print first, because it will be a builtin if present.
4737if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4738   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4739  ECHO='print -r --'
4740elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4741  ECHO='printf %s\n'
4742else
4743  # Use this function as a fallback that always works.
4744  func_fallback_echo ()
4745  {
4746    eval 'cat <<_LTECHO_EOF
4747$1
4748_LTECHO_EOF'
4749  }
4750  ECHO='func_fallback_echo'
4751fi
4752
4753# func_echo_all arg...
4754# Invoke $ECHO with all args, space-separated.
4755func_echo_all ()
4756{
4757    $ECHO ""
4758}
4759
4760case "$ECHO" in
4761  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4762$as_echo "printf" >&6; } ;;
4763  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4764$as_echo "print -r" >&6; } ;;
4765  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4766$as_echo "cat" >&6; } ;;
4767esac
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4783$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4784if ${ac_cv_path_SED+:} false; then :
4785  $as_echo_n "(cached) " >&6
4786else
4787            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4788     for ac_i in 1 2 3 4 5 6 7; do
4789       ac_script="$ac_script$as_nl$ac_script"
4790     done
4791     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4792     { ac_script=; unset ac_script;}
4793     if test -z "$SED"; then
4794  ac_path_SED_found=false
4795  # Loop through the user's path and test for each of PROGNAME-LIST
4796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH
4798do
4799  IFS=$as_save_IFS
4800  test -z "$as_dir" && as_dir=.
4801    for ac_prog in sed gsed; do
4802    for ac_exec_ext in '' $ac_executable_extensions; do
4803      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4804      as_fn_executable_p "$ac_path_SED" || continue
4805# Check for GNU ac_path_SED and select it if it is found.
4806  # Check for GNU $ac_path_SED
4807case `"$ac_path_SED" --version 2>&1` in
4808*GNU*)
4809  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4810*)
4811  ac_count=0
4812  $as_echo_n 0123456789 >"conftest.in"
4813  while :
4814  do
4815    cat "conftest.in" "conftest.in" >"conftest.tmp"
4816    mv "conftest.tmp" "conftest.in"
4817    cp "conftest.in" "conftest.nl"
4818    $as_echo '' >> "conftest.nl"
4819    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821    as_fn_arith $ac_count + 1 && ac_count=$as_val
4822    if test $ac_count -gt ${ac_path_SED_max-0}; then
4823      # Best one so far, save it but keep looking for a better one
4824      ac_cv_path_SED="$ac_path_SED"
4825      ac_path_SED_max=$ac_count
4826    fi
4827    # 10*(2^10) chars as input seems more than enough
4828    test $ac_count -gt 10 && break
4829  done
4830  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831esac
4832
4833      $ac_path_SED_found && break 3
4834    done
4835  done
4836  done
4837IFS=$as_save_IFS
4838  if test -z "$ac_cv_path_SED"; then
4839    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4840  fi
4841else
4842  ac_cv_path_SED=$SED
4843fi
4844
4845fi
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4847$as_echo "$ac_cv_path_SED" >&6; }
4848 SED="$ac_cv_path_SED"
4849  rm -f conftest.sed
4850
4851test -z "$SED" && SED=sed
4852Xsed="$SED -e 1s/^X//"
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4865$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4866if ${ac_cv_path_GREP+:} false; then :
4867  $as_echo_n "(cached) " >&6
4868else
4869  if test -z "$GREP"; then
4870  ac_path_GREP_found=false
4871  # Loop through the user's path and test for each of PROGNAME-LIST
4872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4874do
4875  IFS=$as_save_IFS
4876  test -z "$as_dir" && as_dir=.
4877    for ac_prog in grep ggrep; do
4878    for ac_exec_ext in '' $ac_executable_extensions; do
4879      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4880      as_fn_executable_p "$ac_path_GREP" || continue
4881# Check for GNU ac_path_GREP and select it if it is found.
4882  # Check for GNU $ac_path_GREP
4883case `"$ac_path_GREP" --version 2>&1` in
4884*GNU*)
4885  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4886*)
4887  ac_count=0
4888  $as_echo_n 0123456789 >"conftest.in"
4889  while :
4890  do
4891    cat "conftest.in" "conftest.in" >"conftest.tmp"
4892    mv "conftest.tmp" "conftest.in"
4893    cp "conftest.in" "conftest.nl"
4894    $as_echo 'GREP' >> "conftest.nl"
4895    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4896    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4897    as_fn_arith $ac_count + 1 && ac_count=$as_val
4898    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4899      # Best one so far, save it but keep looking for a better one
4900      ac_cv_path_GREP="$ac_path_GREP"
4901      ac_path_GREP_max=$ac_count
4902    fi
4903    # 10*(2^10) chars as input seems more than enough
4904    test $ac_count -gt 10 && break
4905  done
4906  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4907esac
4908
4909      $ac_path_GREP_found && break 3
4910    done
4911  done
4912  done
4913IFS=$as_save_IFS
4914  if test -z "$ac_cv_path_GREP"; then
4915    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4916  fi
4917else
4918  ac_cv_path_GREP=$GREP
4919fi
4920
4921fi
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4923$as_echo "$ac_cv_path_GREP" >&6; }
4924 GREP="$ac_cv_path_GREP"
4925
4926
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4928$as_echo_n "checking for egrep... " >&6; }
4929if ${ac_cv_path_EGREP+:} false; then :
4930  $as_echo_n "(cached) " >&6
4931else
4932  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4933   then ac_cv_path_EGREP="$GREP -E"
4934   else
4935     if test -z "$EGREP"; then
4936  ac_path_EGREP_found=false
4937  # Loop through the user's path and test for each of PROGNAME-LIST
4938  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4940do
4941  IFS=$as_save_IFS
4942  test -z "$as_dir" && as_dir=.
4943    for ac_prog in egrep; do
4944    for ac_exec_ext in '' $ac_executable_extensions; do
4945      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4946      as_fn_executable_p "$ac_path_EGREP" || continue
4947# Check for GNU ac_path_EGREP and select it if it is found.
4948  # Check for GNU $ac_path_EGREP
4949case `"$ac_path_EGREP" --version 2>&1` in
4950*GNU*)
4951  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4952*)
4953  ac_count=0
4954  $as_echo_n 0123456789 >"conftest.in"
4955  while :
4956  do
4957    cat "conftest.in" "conftest.in" >"conftest.tmp"
4958    mv "conftest.tmp" "conftest.in"
4959    cp "conftest.in" "conftest.nl"
4960    $as_echo 'EGREP' >> "conftest.nl"
4961    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4962    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4963    as_fn_arith $ac_count + 1 && ac_count=$as_val
4964    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4965      # Best one so far, save it but keep looking for a better one
4966      ac_cv_path_EGREP="$ac_path_EGREP"
4967      ac_path_EGREP_max=$ac_count
4968    fi
4969    # 10*(2^10) chars as input seems more than enough
4970    test $ac_count -gt 10 && break
4971  done
4972  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4973esac
4974
4975      $ac_path_EGREP_found && break 3
4976    done
4977  done
4978  done
4979IFS=$as_save_IFS
4980  if test -z "$ac_cv_path_EGREP"; then
4981    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4982  fi
4983else
4984  ac_cv_path_EGREP=$EGREP
4985fi
4986
4987   fi
4988fi
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4990$as_echo "$ac_cv_path_EGREP" >&6; }
4991 EGREP="$ac_cv_path_EGREP"
4992
4993
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4995$as_echo_n "checking for fgrep... " >&6; }
4996if ${ac_cv_path_FGREP+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5000   then ac_cv_path_FGREP="$GREP -F"
5001   else
5002     if test -z "$FGREP"; then
5003  ac_path_FGREP_found=false
5004  # Loop through the user's path and test for each of PROGNAME-LIST
5005  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5007do
5008  IFS=$as_save_IFS
5009  test -z "$as_dir" && as_dir=.
5010    for ac_prog in fgrep; do
5011    for ac_exec_ext in '' $ac_executable_extensions; do
5012      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5013      as_fn_executable_p "$ac_path_FGREP" || continue
5014# Check for GNU ac_path_FGREP and select it if it is found.
5015  # Check for GNU $ac_path_FGREP
5016case `"$ac_path_FGREP" --version 2>&1` in
5017*GNU*)
5018  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5019*)
5020  ac_count=0
5021  $as_echo_n 0123456789 >"conftest.in"
5022  while :
5023  do
5024    cat "conftest.in" "conftest.in" >"conftest.tmp"
5025    mv "conftest.tmp" "conftest.in"
5026    cp "conftest.in" "conftest.nl"
5027    $as_echo 'FGREP' >> "conftest.nl"
5028    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5029    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5030    as_fn_arith $ac_count + 1 && ac_count=$as_val
5031    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5032      # Best one so far, save it but keep looking for a better one
5033      ac_cv_path_FGREP="$ac_path_FGREP"
5034      ac_path_FGREP_max=$ac_count
5035    fi
5036    # 10*(2^10) chars as input seems more than enough
5037    test $ac_count -gt 10 && break
5038  done
5039  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5040esac
5041
5042      $ac_path_FGREP_found && break 3
5043    done
5044  done
5045  done
5046IFS=$as_save_IFS
5047  if test -z "$ac_cv_path_FGREP"; then
5048    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5049  fi
5050else
5051  ac_cv_path_FGREP=$FGREP
5052fi
5053
5054   fi
5055fi
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5057$as_echo "$ac_cv_path_FGREP" >&6; }
5058 FGREP="$ac_cv_path_FGREP"
5059
5060
5061test -z "$GREP" && GREP=grep
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081# Check whether --with-gnu-ld was given.
5082if test "${with_gnu_ld+set}" = set; then :
5083  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5084else
5085  with_gnu_ld=no
5086fi
5087
5088ac_prog=ld
5089if test "$GCC" = yes; then
5090  # Check if gcc -print-prog-name=ld gives a path.
5091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5092$as_echo_n "checking for ld used by $CC... " >&6; }
5093  case $host in
5094  *-*-mingw*)
5095    # gcc leaves a trailing carriage return which upsets mingw
5096    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5097  *)
5098    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5099  esac
5100  case $ac_prog in
5101    # Accept absolute paths.
5102    [\\/]* | ?:[\\/]*)
5103      re_direlt='/[^/][^/]*/\.\./'
5104      # Canonicalize the pathname of ld
5105      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5106      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5107	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5108      done
5109      test -z "$LD" && LD="$ac_prog"
5110      ;;
5111  "")
5112    # If it fails, then pretend we aren't using GCC.
5113    ac_prog=ld
5114    ;;
5115  *)
5116    # If it is relative, then search for the first ld in PATH.
5117    with_gnu_ld=unknown
5118    ;;
5119  esac
5120elif test "$with_gnu_ld" = yes; then
5121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5122$as_echo_n "checking for GNU ld... " >&6; }
5123else
5124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5125$as_echo_n "checking for non-GNU ld... " >&6; }
5126fi
5127if ${lt_cv_path_LD+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  if test -z "$LD"; then
5131  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5132  for ac_dir in $PATH; do
5133    IFS="$lt_save_ifs"
5134    test -z "$ac_dir" && ac_dir=.
5135    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5136      lt_cv_path_LD="$ac_dir/$ac_prog"
5137      # Check to see if the program is GNU ld.  I'd rather use --version,
5138      # but apparently some variants of GNU ld only accept -v.
5139      # Break only if it was the GNU/non-GNU ld that we prefer.
5140      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5141      *GNU* | *'with BFD'*)
5142	test "$with_gnu_ld" != no && break
5143	;;
5144      *)
5145	test "$with_gnu_ld" != yes && break
5146	;;
5147      esac
5148    fi
5149  done
5150  IFS="$lt_save_ifs"
5151else
5152  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5153fi
5154fi
5155
5156LD="$lt_cv_path_LD"
5157if test -n "$LD"; then
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5159$as_echo "$LD" >&6; }
5160else
5161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162$as_echo "no" >&6; }
5163fi
5164test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5166$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5167if ${lt_cv_prog_gnu_ld+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5171case `$LD -v 2>&1 </dev/null` in
5172*GNU* | *'with BFD'*)
5173  lt_cv_prog_gnu_ld=yes
5174  ;;
5175*)
5176  lt_cv_prog_gnu_ld=no
5177  ;;
5178esac
5179fi
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5181$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5182with_gnu_ld=$lt_cv_prog_gnu_ld
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5193$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5194if ${lt_cv_path_NM+:} false; then :
5195  $as_echo_n "(cached) " >&6
5196else
5197  if test -n "$NM"; then
5198  # Let the user override the test.
5199  lt_cv_path_NM="$NM"
5200else
5201  lt_nm_to_check="${ac_tool_prefix}nm"
5202  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5203    lt_nm_to_check="$lt_nm_to_check nm"
5204  fi
5205  for lt_tmp_nm in $lt_nm_to_check; do
5206    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5207    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5208      IFS="$lt_save_ifs"
5209      test -z "$ac_dir" && ac_dir=.
5210      tmp_nm="$ac_dir/$lt_tmp_nm"
5211      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5212	# Check to see if the nm accepts a BSD-compat flag.
5213	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5214	#   nm: unknown option "B" ignored
5215	# Tru64's nm complains that /dev/null is an invalid object file
5216	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5217	*/dev/null* | *'Invalid file or object type'*)
5218	  lt_cv_path_NM="$tmp_nm -B"
5219	  break
5220	  ;;
5221	*)
5222	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5223	  */dev/null*)
5224	    lt_cv_path_NM="$tmp_nm -p"
5225	    break
5226	    ;;
5227	  *)
5228	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5229	    continue # so that we can try to find one that supports BSD flags
5230	    ;;
5231	  esac
5232	  ;;
5233	esac
5234      fi
5235    done
5236    IFS="$lt_save_ifs"
5237  done
5238  : ${lt_cv_path_NM=no}
5239fi
5240fi
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5242$as_echo "$lt_cv_path_NM" >&6; }
5243if test "$lt_cv_path_NM" != "no"; then
5244  NM="$lt_cv_path_NM"
5245else
5246  # Didn't find any BSD compatible name lister, look for dumpbin.
5247  if test -n "$DUMPBIN"; then :
5248    # Let the user override the test.
5249  else
5250    if test -n "$ac_tool_prefix"; then
5251  for ac_prog in dumpbin "link -dump"
5252  do
5253    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256$as_echo_n "checking for $ac_word... " >&6; }
5257if ${ac_cv_prog_DUMPBIN+:} false; then :
5258  $as_echo_n "(cached) " >&6
5259else
5260  if test -n "$DUMPBIN"; then
5261  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5262else
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266  IFS=$as_save_IFS
5267  test -z "$as_dir" && as_dir=.
5268    for ac_exec_ext in '' $ac_executable_extensions; do
5269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272    break 2
5273  fi
5274done
5275  done
5276IFS=$as_save_IFS
5277
5278fi
5279fi
5280DUMPBIN=$ac_cv_prog_DUMPBIN
5281if test -n "$DUMPBIN"; then
5282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5283$as_echo "$DUMPBIN" >&6; }
5284else
5285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286$as_echo "no" >&6; }
5287fi
5288
5289
5290    test -n "$DUMPBIN" && break
5291  done
5292fi
5293if test -z "$DUMPBIN"; then
5294  ac_ct_DUMPBIN=$DUMPBIN
5295  for ac_prog in dumpbin "link -dump"
5296do
5297  # Extract the first word of "$ac_prog", so it can be a program name with args.
5298set dummy $ac_prog; ac_word=$2
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300$as_echo_n "checking for $ac_word... " >&6; }
5301if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5302  $as_echo_n "(cached) " >&6
5303else
5304  if test -n "$ac_ct_DUMPBIN"; then
5305  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5306else
5307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310  IFS=$as_save_IFS
5311  test -z "$as_dir" && as_dir=.
5312    for ac_exec_ext in '' $ac_executable_extensions; do
5313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316    break 2
5317  fi
5318done
5319  done
5320IFS=$as_save_IFS
5321
5322fi
5323fi
5324ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5325if test -n "$ac_ct_DUMPBIN"; then
5326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5327$as_echo "$ac_ct_DUMPBIN" >&6; }
5328else
5329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330$as_echo "no" >&6; }
5331fi
5332
5333
5334  test -n "$ac_ct_DUMPBIN" && break
5335done
5336
5337  if test "x$ac_ct_DUMPBIN" = x; then
5338    DUMPBIN=":"
5339  else
5340    case $cross_compiling:$ac_tool_warned in
5341yes:)
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344ac_tool_warned=yes ;;
5345esac
5346    DUMPBIN=$ac_ct_DUMPBIN
5347  fi
5348fi
5349
5350    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5351    *COFF*)
5352      DUMPBIN="$DUMPBIN -symbols"
5353      ;;
5354    *)
5355      DUMPBIN=:
5356      ;;
5357    esac
5358  fi
5359
5360  if test "$DUMPBIN" != ":"; then
5361    NM="$DUMPBIN"
5362  fi
5363fi
5364test -z "$NM" && NM=nm
5365
5366
5367
5368
5369
5370
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5372$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5373if ${lt_cv_nm_interface+:} false; then :
5374  $as_echo_n "(cached) " >&6
5375else
5376  lt_cv_nm_interface="BSD nm"
5377  echo "int some_variable = 0;" > conftest.$ac_ext
5378  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5379  (eval "$ac_compile" 2>conftest.err)
5380  cat conftest.err >&5
5381  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5382  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5383  cat conftest.err >&5
5384  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5385  cat conftest.out >&5
5386  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5387    lt_cv_nm_interface="MS dumpbin"
5388  fi
5389  rm -f conftest*
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5392$as_echo "$lt_cv_nm_interface" >&6; }
5393
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5395$as_echo_n "checking whether ln -s works... " >&6; }
5396LN_S=$as_ln_s
5397if test "$LN_S" = "ln -s"; then
5398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5399$as_echo "yes" >&6; }
5400else
5401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5402$as_echo "no, using $LN_S" >&6; }
5403fi
5404
5405# find the maximum length of command line arguments
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5407$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5408if ${lt_cv_sys_max_cmd_len+:} false; then :
5409  $as_echo_n "(cached) " >&6
5410else
5411    i=0
5412  teststring="ABCD"
5413
5414  case $build_os in
5415  msdosdjgpp*)
5416    # On DJGPP, this test can blow up pretty badly due to problems in libc
5417    # (any single argument exceeding 2000 bytes causes a buffer overrun
5418    # during glob expansion).  Even if it were fixed, the result of this
5419    # check would be larger than it should be.
5420    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5421    ;;
5422
5423  gnu*)
5424    # Under GNU Hurd, this test is not required because there is
5425    # no limit to the length of command line arguments.
5426    # Libtool will interpret -1 as no limit whatsoever
5427    lt_cv_sys_max_cmd_len=-1;
5428    ;;
5429
5430  cygwin* | mingw* | cegcc*)
5431    # On Win9x/ME, this test blows up -- it succeeds, but takes
5432    # about 5 minutes as the teststring grows exponentially.
5433    # Worse, since 9x/ME are not pre-emptively multitasking,
5434    # you end up with a "frozen" computer, even though with patience
5435    # the test eventually succeeds (with a max line length of 256k).
5436    # Instead, let's just punt: use the minimum linelength reported by
5437    # all of the supported platforms: 8192 (on NT/2K/XP).
5438    lt_cv_sys_max_cmd_len=8192;
5439    ;;
5440
5441  mint*)
5442    # On MiNT this can take a long time and run out of memory.
5443    lt_cv_sys_max_cmd_len=8192;
5444    ;;
5445
5446  amigaos*)
5447    # On AmigaOS with pdksh, this test takes hours, literally.
5448    # So we just punt and use a minimum line length of 8192.
5449    lt_cv_sys_max_cmd_len=8192;
5450    ;;
5451
5452  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5453    # This has been around since 386BSD, at least.  Likely further.
5454    if test -x /sbin/sysctl; then
5455      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5456    elif test -x /usr/sbin/sysctl; then
5457      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5458    else
5459      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5460    fi
5461    # And add a safety zone
5462    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5463    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5464    ;;
5465
5466  interix*)
5467    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5468    lt_cv_sys_max_cmd_len=196608
5469    ;;
5470
5471  os2*)
5472    # The test takes a long time on OS/2.
5473    lt_cv_sys_max_cmd_len=8192
5474    ;;
5475
5476  osf*)
5477    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5478    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5479    # nice to cause kernel panics so lets avoid the loop below.
5480    # First set a reasonable default.
5481    lt_cv_sys_max_cmd_len=16384
5482    #
5483    if test -x /sbin/sysconfig; then
5484      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5485        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5486      esac
5487    fi
5488    ;;
5489  sco3.2v5*)
5490    lt_cv_sys_max_cmd_len=102400
5491    ;;
5492  sysv5* | sco5v6* | sysv4.2uw2*)
5493    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5494    if test -n "$kargmax"; then
5495      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5496    else
5497      lt_cv_sys_max_cmd_len=32768
5498    fi
5499    ;;
5500  *)
5501    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5502    if test -n "$lt_cv_sys_max_cmd_len"; then
5503      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5504      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5505    else
5506      # Make teststring a little bigger before we do anything with it.
5507      # a 1K string should be a reasonable start.
5508      for i in 1 2 3 4 5 6 7 8 ; do
5509        teststring=$teststring$teststring
5510      done
5511      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5512      # If test is not a shell built-in, we'll probably end up computing a
5513      # maximum length that is only half of the actual maximum length, but
5514      # we can't tell.
5515      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5516	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5517	      test $i != 17 # 1/2 MB should be enough
5518      do
5519        i=`expr $i + 1`
5520        teststring=$teststring$teststring
5521      done
5522      # Only check the string length outside the loop.
5523      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5524      teststring=
5525      # Add a significant safety factor because C++ compilers can tack on
5526      # massive amounts of additional arguments before passing them to the
5527      # linker.  It appears as though 1/2 is a usable value.
5528      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5529    fi
5530    ;;
5531  esac
5532
5533fi
5534
5535if test -n $lt_cv_sys_max_cmd_len ; then
5536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5537$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5538else
5539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5540$as_echo "none" >&6; }
5541fi
5542max_cmd_len=$lt_cv_sys_max_cmd_len
5543
5544
5545
5546
5547
5548
5549: ${CP="cp -f"}
5550: ${MV="mv -f"}
5551: ${RM="rm -f"}
5552
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5554$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5555# Try some XSI features
5556xsi_shell=no
5557( _lt_dummy="a/b/c"
5558  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5559      = c,a/b,b/c, \
5560    && eval 'test $(( 1 + 1 )) -eq 2 \
5561    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5562  && xsi_shell=yes
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5564$as_echo "$xsi_shell" >&6; }
5565
5566
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5568$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5569lt_shell_append=no
5570( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5571    >/dev/null 2>&1 \
5572  && lt_shell_append=yes
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5574$as_echo "$lt_shell_append" >&6; }
5575
5576
5577if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5578  lt_unset=unset
5579else
5580  lt_unset=false
5581fi
5582
5583
5584
5585
5586
5587# test EBCDIC or ASCII
5588case `echo X|tr X '\101'` in
5589 A) # ASCII based system
5590    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5591  lt_SP2NL='tr \040 \012'
5592  lt_NL2SP='tr \015\012 \040\040'
5593  ;;
5594 *) # EBCDIC based system
5595  lt_SP2NL='tr \100 \n'
5596  lt_NL2SP='tr \r\n \100\100'
5597  ;;
5598esac
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5609$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5610if ${lt_cv_to_host_file_cmd+:} false; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  case $host in
5614  *-*-mingw* )
5615    case $build in
5616      *-*-mingw* ) # actually msys
5617        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5618        ;;
5619      *-*-cygwin* )
5620        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5621        ;;
5622      * ) # otherwise, assume *nix
5623        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5624        ;;
5625    esac
5626    ;;
5627  *-*-cygwin* )
5628    case $build in
5629      *-*-mingw* ) # actually msys
5630        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5631        ;;
5632      *-*-cygwin* )
5633        lt_cv_to_host_file_cmd=func_convert_file_noop
5634        ;;
5635      * ) # otherwise, assume *nix
5636        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5637        ;;
5638    esac
5639    ;;
5640  * ) # unhandled hosts (and "normal" native builds)
5641    lt_cv_to_host_file_cmd=func_convert_file_noop
5642    ;;
5643esac
5644
5645fi
5646
5647to_host_file_cmd=$lt_cv_to_host_file_cmd
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5649$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5650
5651
5652
5653
5654
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5656$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5657if ${lt_cv_to_tool_file_cmd+:} false; then :
5658  $as_echo_n "(cached) " >&6
5659else
5660  #assume ordinary cross tools, or native build.
5661lt_cv_to_tool_file_cmd=func_convert_file_noop
5662case $host in
5663  *-*-mingw* )
5664    case $build in
5665      *-*-mingw* ) # actually msys
5666        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5667        ;;
5668    esac
5669    ;;
5670esac
5671
5672fi
5673
5674to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5676$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5677
5678
5679
5680
5681
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5683$as_echo_n "checking for $LD option to reload object files... " >&6; }
5684if ${lt_cv_ld_reload_flag+:} false; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  lt_cv_ld_reload_flag='-r'
5688fi
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5690$as_echo "$lt_cv_ld_reload_flag" >&6; }
5691reload_flag=$lt_cv_ld_reload_flag
5692case $reload_flag in
5693"" | " "*) ;;
5694*) reload_flag=" $reload_flag" ;;
5695esac
5696reload_cmds='$LD$reload_flag -o $output$reload_objs'
5697case $host_os in
5698  cygwin* | mingw* | pw32* | cegcc*)
5699    if test "$GCC" != yes; then
5700      reload_cmds=false
5701    fi
5702    ;;
5703  darwin*)
5704    if test "$GCC" = yes; then
5705      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5706    else
5707      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5708    fi
5709    ;;
5710esac
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720if test -n "$ac_tool_prefix"; then
5721  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5722set dummy ${ac_tool_prefix}objdump; ac_word=$2
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724$as_echo_n "checking for $ac_word... " >&6; }
5725if ${ac_cv_prog_OBJDUMP+:} false; then :
5726  $as_echo_n "(cached) " >&6
5727else
5728  if test -n "$OBJDUMP"; then
5729  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5730else
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734  IFS=$as_save_IFS
5735  test -z "$as_dir" && as_dir=.
5736    for ac_exec_ext in '' $ac_executable_extensions; do
5737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740    break 2
5741  fi
5742done
5743  done
5744IFS=$as_save_IFS
5745
5746fi
5747fi
5748OBJDUMP=$ac_cv_prog_OBJDUMP
5749if test -n "$OBJDUMP"; then
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5751$as_echo "$OBJDUMP" >&6; }
5752else
5753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754$as_echo "no" >&6; }
5755fi
5756
5757
5758fi
5759if test -z "$ac_cv_prog_OBJDUMP"; then
5760  ac_ct_OBJDUMP=$OBJDUMP
5761  # Extract the first word of "objdump", so it can be a program name with args.
5762set dummy objdump; ac_word=$2
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764$as_echo_n "checking for $ac_word... " >&6; }
5765if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5766  $as_echo_n "(cached) " >&6
5767else
5768  if test -n "$ac_ct_OBJDUMP"; then
5769  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5770else
5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
5773do
5774  IFS=$as_save_IFS
5775  test -z "$as_dir" && as_dir=.
5776    for ac_exec_ext in '' $ac_executable_extensions; do
5777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780    break 2
5781  fi
5782done
5783  done
5784IFS=$as_save_IFS
5785
5786fi
5787fi
5788ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5789if test -n "$ac_ct_OBJDUMP"; then
5790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5791$as_echo "$ac_ct_OBJDUMP" >&6; }
5792else
5793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794$as_echo "no" >&6; }
5795fi
5796
5797  if test "x$ac_ct_OBJDUMP" = x; then
5798    OBJDUMP="false"
5799  else
5800    case $cross_compiling:$ac_tool_warned in
5801yes:)
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5804ac_tool_warned=yes ;;
5805esac
5806    OBJDUMP=$ac_ct_OBJDUMP
5807  fi
5808else
5809  OBJDUMP="$ac_cv_prog_OBJDUMP"
5810fi
5811
5812test -z "$OBJDUMP" && OBJDUMP=objdump
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5823$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5824if ${lt_cv_deplibs_check_method+:} false; then :
5825  $as_echo_n "(cached) " >&6
5826else
5827  lt_cv_file_magic_cmd='$MAGIC_CMD'
5828lt_cv_file_magic_test_file=
5829lt_cv_deplibs_check_method='unknown'
5830# Need to set the preceding variable on all platforms that support
5831# interlibrary dependencies.
5832# 'none' -- dependencies not supported.
5833# `unknown' -- same as none, but documents that we really don't know.
5834# 'pass_all' -- all dependencies passed with no checks.
5835# 'test_compile' -- check by making test program.
5836# 'file_magic [[regex]]' -- check by looking for files in library path
5837# which responds to the $file_magic_cmd with a given extended regex.
5838# If you have `file' or equivalent on your system and you're not sure
5839# whether `pass_all' will *always* work, you probably want this one.
5840
5841case $host_os in
5842aix[4-9]*)
5843  lt_cv_deplibs_check_method=pass_all
5844  ;;
5845
5846beos*)
5847  lt_cv_deplibs_check_method=pass_all
5848  ;;
5849
5850bsdi[45]*)
5851  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5852  lt_cv_file_magic_cmd='/usr/bin/file -L'
5853  lt_cv_file_magic_test_file=/shlib/libc.so
5854  ;;
5855
5856cygwin*)
5857  # func_win32_libid is a shell function defined in ltmain.sh
5858  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5859  lt_cv_file_magic_cmd='func_win32_libid'
5860  ;;
5861
5862mingw* | pw32*)
5863  # Base MSYS/MinGW do not provide the 'file' command needed by
5864  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5865  # unless we find 'file', for example because we are cross-compiling.
5866  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5867  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5868    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5869    lt_cv_file_magic_cmd='func_win32_libid'
5870  else
5871    # Keep this pattern in sync with the one in func_win32_libid.
5872    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5873    lt_cv_file_magic_cmd='$OBJDUMP -f'
5874  fi
5875  ;;
5876
5877cegcc*)
5878  # use the weaker test based on 'objdump'. See mingw*.
5879  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5880  lt_cv_file_magic_cmd='$OBJDUMP -f'
5881  ;;
5882
5883darwin* | rhapsody*)
5884  lt_cv_deplibs_check_method=pass_all
5885  ;;
5886
5887freebsd* | dragonfly*)
5888  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5889    case $host_cpu in
5890    i*86 )
5891      # Not sure whether the presence of OpenBSD here was a mistake.
5892      # Let's accept both of them until this is cleared up.
5893      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5894      lt_cv_file_magic_cmd=/usr/bin/file
5895      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5896      ;;
5897    esac
5898  else
5899    lt_cv_deplibs_check_method=pass_all
5900  fi
5901  ;;
5902
5903gnu*)
5904  lt_cv_deplibs_check_method=pass_all
5905  ;;
5906
5907haiku*)
5908  lt_cv_deplibs_check_method=pass_all
5909  ;;
5910
5911hpux10.20* | hpux11*)
5912  lt_cv_file_magic_cmd=/usr/bin/file
5913  case $host_cpu in
5914  ia64*)
5915    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5916    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5917    ;;
5918  hppa*64*)
5919    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5920    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5921    ;;
5922  *)
5923    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5924    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5925    ;;
5926  esac
5927  ;;
5928
5929interix[3-9]*)
5930  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5931  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5932  ;;
5933
5934irix5* | irix6* | nonstopux*)
5935  case $LD in
5936  *-32|*"-32 ") libmagic=32-bit;;
5937  *-n32|*"-n32 ") libmagic=N32;;
5938  *-64|*"-64 ") libmagic=64-bit;;
5939  *) libmagic=never-match;;
5940  esac
5941  lt_cv_deplibs_check_method=pass_all
5942  ;;
5943
5944# This must be glibc/ELF.
5945linux* | k*bsd*-gnu | kopensolaris*-gnu)
5946  lt_cv_deplibs_check_method=pass_all
5947  ;;
5948
5949netbsd*)
5950  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5951    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5952  else
5953    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5954  fi
5955  ;;
5956
5957newos6*)
5958  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5959  lt_cv_file_magic_cmd=/usr/bin/file
5960  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5961  ;;
5962
5963*nto* | *qnx*)
5964  lt_cv_deplibs_check_method=pass_all
5965  ;;
5966
5967openbsd*)
5968  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5969    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5970  else
5971    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5972  fi
5973  ;;
5974
5975osf3* | osf4* | osf5*)
5976  lt_cv_deplibs_check_method=pass_all
5977  ;;
5978
5979rdos*)
5980  lt_cv_deplibs_check_method=pass_all
5981  ;;
5982
5983solaris*)
5984  lt_cv_deplibs_check_method=pass_all
5985  ;;
5986
5987sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5988  lt_cv_deplibs_check_method=pass_all
5989  ;;
5990
5991sysv4 | sysv4.3*)
5992  case $host_vendor in
5993  motorola)
5994    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]'
5995    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5996    ;;
5997  ncr)
5998    lt_cv_deplibs_check_method=pass_all
5999    ;;
6000  sequent)
6001    lt_cv_file_magic_cmd='/bin/file'
6002    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6003    ;;
6004  sni)
6005    lt_cv_file_magic_cmd='/bin/file'
6006    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6007    lt_cv_file_magic_test_file=/lib/libc.so
6008    ;;
6009  siemens)
6010    lt_cv_deplibs_check_method=pass_all
6011    ;;
6012  pc)
6013    lt_cv_deplibs_check_method=pass_all
6014    ;;
6015  esac
6016  ;;
6017
6018tpf*)
6019  lt_cv_deplibs_check_method=pass_all
6020  ;;
6021esac
6022
6023fi
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6025$as_echo "$lt_cv_deplibs_check_method" >&6; }
6026
6027file_magic_glob=
6028want_nocaseglob=no
6029if test "$build" = "$host"; then
6030  case $host_os in
6031  mingw* | pw32*)
6032    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6033      want_nocaseglob=yes
6034    else
6035      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6036    fi
6037    ;;
6038  esac
6039fi
6040
6041file_magic_cmd=$lt_cv_file_magic_cmd
6042deplibs_check_method=$lt_cv_deplibs_check_method
6043test -z "$deplibs_check_method" && deplibs_check_method=unknown
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066if test -n "$ac_tool_prefix"; then
6067  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6068set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
6071if ${ac_cv_prog_DLLTOOL+:} false; then :
6072  $as_echo_n "(cached) " >&6
6073else
6074  if test -n "$DLLTOOL"; then
6075  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080  IFS=$as_save_IFS
6081  test -z "$as_dir" && as_dir=.
6082    for ac_exec_ext in '' $ac_executable_extensions; do
6083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086    break 2
6087  fi
6088done
6089  done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094DLLTOOL=$ac_cv_prog_DLLTOOL
6095if test -n "$DLLTOOL"; then
6096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6097$as_echo "$DLLTOOL" >&6; }
6098else
6099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104fi
6105if test -z "$ac_cv_prog_DLLTOOL"; then
6106  ac_ct_DLLTOOL=$DLLTOOL
6107  # Extract the first word of "dlltool", so it can be a program name with args.
6108set dummy dlltool; ac_word=$2
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110$as_echo_n "checking for $ac_word... " >&6; }
6111if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6112  $as_echo_n "(cached) " >&6
6113else
6114  if test -n "$ac_ct_DLLTOOL"; then
6115  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6116else
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120  IFS=$as_save_IFS
6121  test -z "$as_dir" && as_dir=.
6122    for ac_exec_ext in '' $ac_executable_extensions; do
6123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126    break 2
6127  fi
6128done
6129  done
6130IFS=$as_save_IFS
6131
6132fi
6133fi
6134ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6135if test -n "$ac_ct_DLLTOOL"; then
6136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6137$as_echo "$ac_ct_DLLTOOL" >&6; }
6138else
6139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140$as_echo "no" >&6; }
6141fi
6142
6143  if test "x$ac_ct_DLLTOOL" = x; then
6144    DLLTOOL="false"
6145  else
6146    case $cross_compiling:$ac_tool_warned in
6147yes:)
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150ac_tool_warned=yes ;;
6151esac
6152    DLLTOOL=$ac_ct_DLLTOOL
6153  fi
6154else
6155  DLLTOOL="$ac_cv_prog_DLLTOOL"
6156fi
6157
6158test -z "$DLLTOOL" && DLLTOOL=dlltool
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6170$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6171if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6172  $as_echo_n "(cached) " >&6
6173else
6174  lt_cv_sharedlib_from_linklib_cmd='unknown'
6175
6176case $host_os in
6177cygwin* | mingw* | pw32* | cegcc*)
6178  # two different shell functions defined in ltmain.sh
6179  # decide which to use based on capabilities of $DLLTOOL
6180  case `$DLLTOOL --help 2>&1` in
6181  *--identify-strict*)
6182    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6183    ;;
6184  *)
6185    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6186    ;;
6187  esac
6188  ;;
6189*)
6190  # fallback: assume linklib IS sharedlib
6191  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6192  ;;
6193esac
6194
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6197$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6198sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6199test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6200
6201
6202
6203
6204
6205
6206
6207if test -n "$ac_tool_prefix"; then
6208  for ac_prog in ar
6209  do
6210    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213$as_echo_n "checking for $ac_word... " >&6; }
6214if ${ac_cv_prog_AR+:} false; then :
6215  $as_echo_n "(cached) " >&6
6216else
6217  if test -n "$AR"; then
6218  ac_cv_prog_AR="$AR" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223  IFS=$as_save_IFS
6224  test -z "$as_dir" && as_dir=.
6225    for ac_exec_ext in '' $ac_executable_extensions; do
6226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229    break 2
6230  fi
6231done
6232  done
6233IFS=$as_save_IFS
6234
6235fi
6236fi
6237AR=$ac_cv_prog_AR
6238if test -n "$AR"; then
6239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6240$as_echo "$AR" >&6; }
6241else
6242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243$as_echo "no" >&6; }
6244fi
6245
6246
6247    test -n "$AR" && break
6248  done
6249fi
6250if test -z "$AR"; then
6251  ac_ct_AR=$AR
6252  for ac_prog in ar
6253do
6254  # Extract the first word of "$ac_prog", so it can be a program name with args.
6255set dummy $ac_prog; ac_word=$2
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257$as_echo_n "checking for $ac_word... " >&6; }
6258if ${ac_cv_prog_ac_ct_AR+:} false; then :
6259  $as_echo_n "(cached) " >&6
6260else
6261  if test -n "$ac_ct_AR"; then
6262  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267  IFS=$as_save_IFS
6268  test -z "$as_dir" && as_dir=.
6269    for ac_exec_ext in '' $ac_executable_extensions; do
6270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271    ac_cv_prog_ac_ct_AR="$ac_prog"
6272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273    break 2
6274  fi
6275done
6276  done
6277IFS=$as_save_IFS
6278
6279fi
6280fi
6281ac_ct_AR=$ac_cv_prog_ac_ct_AR
6282if test -n "$ac_ct_AR"; then
6283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6284$as_echo "$ac_ct_AR" >&6; }
6285else
6286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287$as_echo "no" >&6; }
6288fi
6289
6290
6291  test -n "$ac_ct_AR" && break
6292done
6293
6294  if test "x$ac_ct_AR" = x; then
6295    AR="false"
6296  else
6297    case $cross_compiling:$ac_tool_warned in
6298yes:)
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301ac_tool_warned=yes ;;
6302esac
6303    AR=$ac_ct_AR
6304  fi
6305fi
6306
6307: ${AR=ar}
6308: ${AR_FLAGS=cru}
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6321$as_echo_n "checking for archiver @FILE support... " >&6; }
6322if ${lt_cv_ar_at_file+:} false; then :
6323  $as_echo_n "(cached) " >&6
6324else
6325  lt_cv_ar_at_file=no
6326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327/* end confdefs.h.  */
6328
6329int
6330main ()
6331{
6332
6333  ;
6334  return 0;
6335}
6336_ACEOF
6337if ac_fn_c_try_compile "$LINENO"; then :
6338  echo conftest.$ac_objext > conftest.lst
6339      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6340      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6341  (eval $lt_ar_try) 2>&5
6342  ac_status=$?
6343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344  test $ac_status = 0; }
6345      if test "$ac_status" -eq 0; then
6346	# Ensure the archiver fails upon bogus file names.
6347	rm -f conftest.$ac_objext libconftest.a
6348	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6349  (eval $lt_ar_try) 2>&5
6350  ac_status=$?
6351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6352  test $ac_status = 0; }
6353	if test "$ac_status" -ne 0; then
6354          lt_cv_ar_at_file=@
6355        fi
6356      fi
6357      rm -f conftest.* libconftest.a
6358
6359fi
6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6364$as_echo "$lt_cv_ar_at_file" >&6; }
6365
6366if test "x$lt_cv_ar_at_file" = xno; then
6367  archiver_list_spec=
6368else
6369  archiver_list_spec=$lt_cv_ar_at_file
6370fi
6371
6372
6373
6374
6375
6376
6377
6378if test -n "$ac_tool_prefix"; then
6379  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6380set dummy ${ac_tool_prefix}strip; ac_word=$2
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
6383if ${ac_cv_prog_STRIP+:} false; then :
6384  $as_echo_n "(cached) " >&6
6385else
6386  if test -n "$STRIP"; then
6387  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392  IFS=$as_save_IFS
6393  test -z "$as_dir" && as_dir=.
6394    for ac_exec_ext in '' $ac_executable_extensions; do
6395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398    break 2
6399  fi
6400done
6401  done
6402IFS=$as_save_IFS
6403
6404fi
6405fi
6406STRIP=$ac_cv_prog_STRIP
6407if test -n "$STRIP"; then
6408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6409$as_echo "$STRIP" >&6; }
6410else
6411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
6413fi
6414
6415
6416fi
6417if test -z "$ac_cv_prog_STRIP"; then
6418  ac_ct_STRIP=$STRIP
6419  # Extract the first word of "strip", so it can be a program name with args.
6420set dummy strip; ac_word=$2
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422$as_echo_n "checking for $ac_word... " >&6; }
6423if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6424  $as_echo_n "(cached) " >&6
6425else
6426  if test -n "$ac_ct_STRIP"; then
6427  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432  IFS=$as_save_IFS
6433  test -z "$as_dir" && as_dir=.
6434    for ac_exec_ext in '' $ac_executable_extensions; do
6435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436    ac_cv_prog_ac_ct_STRIP="strip"
6437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438    break 2
6439  fi
6440done
6441  done
6442IFS=$as_save_IFS
6443
6444fi
6445fi
6446ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6447if test -n "$ac_ct_STRIP"; then
6448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6449$as_echo "$ac_ct_STRIP" >&6; }
6450else
6451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452$as_echo "no" >&6; }
6453fi
6454
6455  if test "x$ac_ct_STRIP" = x; then
6456    STRIP=":"
6457  else
6458    case $cross_compiling:$ac_tool_warned in
6459yes:)
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462ac_tool_warned=yes ;;
6463esac
6464    STRIP=$ac_ct_STRIP
6465  fi
6466else
6467  STRIP="$ac_cv_prog_STRIP"
6468fi
6469
6470test -z "$STRIP" && STRIP=:
6471
6472
6473
6474
6475
6476
6477if test -n "$ac_tool_prefix"; then
6478  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6479set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481$as_echo_n "checking for $ac_word... " >&6; }
6482if ${ac_cv_prog_RANLIB+:} false; then :
6483  $as_echo_n "(cached) " >&6
6484else
6485  if test -n "$RANLIB"; then
6486  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6487else
6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489for as_dir in $PATH
6490do
6491  IFS=$as_save_IFS
6492  test -z "$as_dir" && as_dir=.
6493    for ac_exec_ext in '' $ac_executable_extensions; do
6494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497    break 2
6498  fi
6499done
6500  done
6501IFS=$as_save_IFS
6502
6503fi
6504fi
6505RANLIB=$ac_cv_prog_RANLIB
6506if test -n "$RANLIB"; then
6507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6508$as_echo "$RANLIB" >&6; }
6509else
6510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511$as_echo "no" >&6; }
6512fi
6513
6514
6515fi
6516if test -z "$ac_cv_prog_RANLIB"; then
6517  ac_ct_RANLIB=$RANLIB
6518  # Extract the first word of "ranlib", so it can be a program name with args.
6519set dummy ranlib; ac_word=$2
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521$as_echo_n "checking for $ac_word... " >&6; }
6522if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6523  $as_echo_n "(cached) " >&6
6524else
6525  if test -n "$ac_ct_RANLIB"; then
6526  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6527else
6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529for as_dir in $PATH
6530do
6531  IFS=$as_save_IFS
6532  test -z "$as_dir" && as_dir=.
6533    for ac_exec_ext in '' $ac_executable_extensions; do
6534  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535    ac_cv_prog_ac_ct_RANLIB="ranlib"
6536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537    break 2
6538  fi
6539done
6540  done
6541IFS=$as_save_IFS
6542
6543fi
6544fi
6545ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6546if test -n "$ac_ct_RANLIB"; then
6547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6548$as_echo "$ac_ct_RANLIB" >&6; }
6549else
6550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551$as_echo "no" >&6; }
6552fi
6553
6554  if test "x$ac_ct_RANLIB" = x; then
6555    RANLIB=":"
6556  else
6557    case $cross_compiling:$ac_tool_warned in
6558yes:)
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6561ac_tool_warned=yes ;;
6562esac
6563    RANLIB=$ac_ct_RANLIB
6564  fi
6565else
6566  RANLIB="$ac_cv_prog_RANLIB"
6567fi
6568
6569test -z "$RANLIB" && RANLIB=:
6570
6571
6572
6573
6574
6575
6576# Determine commands to create old-style static archives.
6577old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6578old_postinstall_cmds='chmod 644 $oldlib'
6579old_postuninstall_cmds=
6580
6581if test -n "$RANLIB"; then
6582  case $host_os in
6583  openbsd*)
6584    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6585    ;;
6586  *)
6587    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6588    ;;
6589  esac
6590  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6591fi
6592
6593case $host_os in
6594  darwin*)
6595    lock_old_archive_extraction=yes ;;
6596  *)
6597    lock_old_archive_extraction=no ;;
6598esac
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638# If no C compiler was specified, use CC.
6639LTCC=${LTCC-"$CC"}
6640
6641# If no C compiler flags were specified, use CFLAGS.
6642LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6643
6644# Allow CC to be a program name with arguments.
6645compiler=$CC
6646
6647
6648# Check for command to grab the raw symbol name followed by C symbol from nm.
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6650$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6651if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654
6655# These are sane defaults that work on at least a few old systems.
6656# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6657
6658# Character class describing NM global symbol codes.
6659symcode='[BCDEGRST]'
6660
6661# Regexp to match symbols that can be accessed directly from C.
6662sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6663
6664# Define system-specific variables.
6665case $host_os in
6666aix*)
6667  symcode='[BCDT]'
6668  ;;
6669cygwin* | mingw* | pw32* | cegcc*)
6670  symcode='[ABCDGISTW]'
6671  ;;
6672hpux*)
6673  if test "$host_cpu" = ia64; then
6674    symcode='[ABCDEGRST]'
6675  fi
6676  ;;
6677irix* | nonstopux*)
6678  symcode='[BCDEGRST]'
6679  ;;
6680osf*)
6681  symcode='[BCDEGQRST]'
6682  ;;
6683solaris*)
6684  symcode='[BDRT]'
6685  ;;
6686sco3.2v5*)
6687  symcode='[DT]'
6688  ;;
6689sysv4.2uw2*)
6690  symcode='[DT]'
6691  ;;
6692sysv5* | sco5v6* | unixware* | OpenUNIX*)
6693  symcode='[ABDT]'
6694  ;;
6695sysv4)
6696  symcode='[DFNSTU]'
6697  ;;
6698esac
6699
6700# If we're using GNU nm, then use its standard symbol codes.
6701case `$NM -V 2>&1` in
6702*GNU* | *'with BFD'*)
6703  symcode='[ABCDGIRSTW]' ;;
6704esac
6705
6706# Transform an extracted symbol line into a proper C declaration.
6707# Some systems (esp. on ia64) link data and code symbols differently,
6708# so use this general approach.
6709lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6710
6711# Transform an extracted symbol line into symbol name and symbol address
6712lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6713lt_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'"
6714
6715# Handle CRLF in mingw tool chain
6716opt_cr=
6717case $build_os in
6718mingw*)
6719  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6720  ;;
6721esac
6722
6723# Try without a prefix underscore, then with it.
6724for ac_symprfx in "" "_"; do
6725
6726  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6727  symxfrm="\\1 $ac_symprfx\\2 \\2"
6728
6729  # Write the raw and C identifiers.
6730  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6731    # Fake it for dumpbin and say T for any non-static function
6732    # and D for any global variable.
6733    # Also find C++ and __fastcall symbols from MSVC++,
6734    # which start with @ or ?.
6735    lt_cv_sys_global_symbol_pipe="$AWK '"\
6736"     {last_section=section; section=\$ 3};"\
6737"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6738"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6739"     \$ 0!~/External *\|/{next};"\
6740"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6741"     {if(hide[section]) next};"\
6742"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6743"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6744"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6745"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6746"     ' prfx=^$ac_symprfx"
6747  else
6748    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6749  fi
6750  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6751
6752  # Check to see that the pipe works correctly.
6753  pipe_works=no
6754
6755  rm -f conftest*
6756  cat > conftest.$ac_ext <<_LT_EOF
6757#ifdef __cplusplus
6758extern "C" {
6759#endif
6760char nm_test_var;
6761void nm_test_func(void);
6762void nm_test_func(void){}
6763#ifdef __cplusplus
6764}
6765#endif
6766int main(){nm_test_var='a';nm_test_func();return(0);}
6767_LT_EOF
6768
6769  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770  (eval $ac_compile) 2>&5
6771  ac_status=$?
6772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773  test $ac_status = 0; }; then
6774    # Now try to grab the symbols.
6775    nlist=conftest.nm
6776    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6777  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6778  ac_status=$?
6779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780  test $ac_status = 0; } && test -s "$nlist"; then
6781      # Try sorting and uniquifying the output.
6782      if sort "$nlist" | uniq > "$nlist"T; then
6783	mv -f "$nlist"T "$nlist"
6784      else
6785	rm -f "$nlist"T
6786      fi
6787
6788      # Make sure that we snagged all the symbols we need.
6789      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6790	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6791	  cat <<_LT_EOF > conftest.$ac_ext
6792/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6793#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6794/* DATA imports from DLLs on WIN32 con't be const, because runtime
6795   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6796# define LT_DLSYM_CONST
6797#elif defined(__osf__)
6798/* This system does not cope well with relocations in const data.  */
6799# define LT_DLSYM_CONST
6800#else
6801# define LT_DLSYM_CONST const
6802#endif
6803
6804#ifdef __cplusplus
6805extern "C" {
6806#endif
6807
6808_LT_EOF
6809	  # Now generate the symbol file.
6810	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6811
6812	  cat <<_LT_EOF >> conftest.$ac_ext
6813
6814/* The mapping between symbol names and symbols.  */
6815LT_DLSYM_CONST struct {
6816  const char *name;
6817  void       *address;
6818}
6819lt__PROGRAM__LTX_preloaded_symbols[] =
6820{
6821  { "@PROGRAM@", (void *) 0 },
6822_LT_EOF
6823	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6824	  cat <<\_LT_EOF >> conftest.$ac_ext
6825  {0, (void *) 0}
6826};
6827
6828/* This works around a problem in FreeBSD linker */
6829#ifdef FREEBSD_WORKAROUND
6830static const void *lt_preloaded_setup() {
6831  return lt__PROGRAM__LTX_preloaded_symbols;
6832}
6833#endif
6834
6835#ifdef __cplusplus
6836}
6837#endif
6838_LT_EOF
6839	  # Now try linking the two files.
6840	  mv conftest.$ac_objext conftstm.$ac_objext
6841	  lt_globsym_save_LIBS=$LIBS
6842	  lt_globsym_save_CFLAGS=$CFLAGS
6843	  LIBS="conftstm.$ac_objext"
6844	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6845	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6846  (eval $ac_link) 2>&5
6847  ac_status=$?
6848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6850	    pipe_works=yes
6851	  fi
6852	  LIBS=$lt_globsym_save_LIBS
6853	  CFLAGS=$lt_globsym_save_CFLAGS
6854	else
6855	  echo "cannot find nm_test_func in $nlist" >&5
6856	fi
6857      else
6858	echo "cannot find nm_test_var in $nlist" >&5
6859      fi
6860    else
6861      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6862    fi
6863  else
6864    echo "$progname: failed program was:" >&5
6865    cat conftest.$ac_ext >&5
6866  fi
6867  rm -rf conftest* conftst*
6868
6869  # Do not use the global_symbol_pipe unless it works.
6870  if test "$pipe_works" = yes; then
6871    break
6872  else
6873    lt_cv_sys_global_symbol_pipe=
6874  fi
6875done
6876
6877fi
6878
6879if test -z "$lt_cv_sys_global_symbol_pipe"; then
6880  lt_cv_sys_global_symbol_to_cdecl=
6881fi
6882if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6884$as_echo "failed" >&6; }
6885else
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6887$as_echo "ok" >&6; }
6888fi
6889
6890# Response file support.
6891if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6892  nm_file_list_spec='@'
6893elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6894  nm_file_list_spec='@'
6895fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6924$as_echo_n "checking for sysroot... " >&6; }
6925
6926# Check whether --with-sysroot was given.
6927if test "${with_sysroot+set}" = set; then :
6928  withval=$with_sysroot;
6929else
6930  with_sysroot=no
6931fi
6932
6933
6934lt_sysroot=
6935case ${with_sysroot} in #(
6936 yes)
6937   if test "$GCC" = yes; then
6938     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6939   fi
6940   ;; #(
6941 /*)
6942   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6943   ;; #(
6944 no|'')
6945   ;; #(
6946 *)
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6948$as_echo "${with_sysroot}" >&6; }
6949   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6950   ;;
6951esac
6952
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6954$as_echo "${lt_sysroot:-no}" >&6; }
6955
6956
6957
6958
6959
6960# Check whether --enable-libtool-lock was given.
6961if test "${enable_libtool_lock+set}" = set; then :
6962  enableval=$enable_libtool_lock;
6963fi
6964
6965test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6966
6967# Some flags need to be propagated to the compiler or linker for good
6968# libtool support.
6969case $host in
6970ia64-*-hpux*)
6971  # Find out which ABI we are using.
6972  echo 'int i;' > conftest.$ac_ext
6973  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6974  (eval $ac_compile) 2>&5
6975  ac_status=$?
6976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6977  test $ac_status = 0; }; then
6978    case `/usr/bin/file conftest.$ac_objext` in
6979      *ELF-32*)
6980	HPUX_IA64_MODE="32"
6981	;;
6982      *ELF-64*)
6983	HPUX_IA64_MODE="64"
6984	;;
6985    esac
6986  fi
6987  rm -rf conftest*
6988  ;;
6989*-*-irix6*)
6990  # Find out which ABI we are using.
6991  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6992  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6993  (eval $ac_compile) 2>&5
6994  ac_status=$?
6995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996  test $ac_status = 0; }; then
6997    if test "$lt_cv_prog_gnu_ld" = yes; then
6998      case `/usr/bin/file conftest.$ac_objext` in
6999	*32-bit*)
7000	  LD="${LD-ld} -melf32bsmip"
7001	  ;;
7002	*N32*)
7003	  LD="${LD-ld} -melf32bmipn32"
7004	  ;;
7005	*64-bit*)
7006	  LD="${LD-ld} -melf64bmip"
7007	;;
7008      esac
7009    else
7010      case `/usr/bin/file conftest.$ac_objext` in
7011	*32-bit*)
7012	  LD="${LD-ld} -32"
7013	  ;;
7014	*N32*)
7015	  LD="${LD-ld} -n32"
7016	  ;;
7017	*64-bit*)
7018	  LD="${LD-ld} -64"
7019	  ;;
7020      esac
7021    fi
7022  fi
7023  rm -rf conftest*
7024  ;;
7025
7026x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7027s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7028  # Find out which ABI we are using.
7029  echo 'int i;' > conftest.$ac_ext
7030  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7031  (eval $ac_compile) 2>&5
7032  ac_status=$?
7033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034  test $ac_status = 0; }; then
7035    case `/usr/bin/file conftest.o` in
7036      *32-bit*)
7037	case $host in
7038	  x86_64-*kfreebsd*-gnu)
7039	    LD="${LD-ld} -m elf_i386_fbsd"
7040	    ;;
7041	  x86_64-*linux*)
7042	    LD="${LD-ld} -m elf_i386"
7043	    ;;
7044	  ppc64-*linux*|powerpc64-*linux*)
7045	    LD="${LD-ld} -m elf32ppclinux"
7046	    ;;
7047	  s390x-*linux*)
7048	    LD="${LD-ld} -m elf_s390"
7049	    ;;
7050	  sparc64-*linux*)
7051	    LD="${LD-ld} -m elf32_sparc"
7052	    ;;
7053	esac
7054	;;
7055      *64-bit*)
7056	case $host in
7057	  x86_64-*kfreebsd*-gnu)
7058	    LD="${LD-ld} -m elf_x86_64_fbsd"
7059	    ;;
7060	  x86_64-*linux*)
7061	    LD="${LD-ld} -m elf_x86_64"
7062	    ;;
7063	  ppc*-*linux*|powerpc*-*linux*)
7064	    LD="${LD-ld} -m elf64ppc"
7065	    ;;
7066	  s390*-*linux*|s390*-*tpf*)
7067	    LD="${LD-ld} -m elf64_s390"
7068	    ;;
7069	  sparc*-*linux*)
7070	    LD="${LD-ld} -m elf64_sparc"
7071	    ;;
7072	esac
7073	;;
7074    esac
7075  fi
7076  rm -rf conftest*
7077  ;;
7078
7079*-*-sco3.2v5*)
7080  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7081  SAVE_CFLAGS="$CFLAGS"
7082  CFLAGS="$CFLAGS -belf"
7083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7084$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7085if ${lt_cv_cc_needs_belf+:} false; then :
7086  $as_echo_n "(cached) " >&6
7087else
7088  ac_ext=c
7089ac_cpp='$CPP $CPPFLAGS'
7090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092ac_compiler_gnu=$ac_cv_c_compiler_gnu
7093
7094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095/* end confdefs.h.  */
7096
7097int
7098main ()
7099{
7100
7101  ;
7102  return 0;
7103}
7104_ACEOF
7105if ac_fn_c_try_link "$LINENO"; then :
7106  lt_cv_cc_needs_belf=yes
7107else
7108  lt_cv_cc_needs_belf=no
7109fi
7110rm -f core conftest.err conftest.$ac_objext \
7111    conftest$ac_exeext conftest.$ac_ext
7112     ac_ext=c
7113ac_cpp='$CPP $CPPFLAGS'
7114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116ac_compiler_gnu=$ac_cv_c_compiler_gnu
7117
7118fi
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7120$as_echo "$lt_cv_cc_needs_belf" >&6; }
7121  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7122    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7123    CFLAGS="$SAVE_CFLAGS"
7124  fi
7125  ;;
7126*-*solaris*)
7127  # Find out which ABI we are using.
7128  echo 'int i;' > conftest.$ac_ext
7129  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7130  (eval $ac_compile) 2>&5
7131  ac_status=$?
7132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7133  test $ac_status = 0; }; then
7134    case `/usr/bin/file conftest.o` in
7135    *64-bit*)
7136      case $lt_cv_prog_gnu_ld in
7137      yes*)
7138        case $host in
7139        i?86-*-solaris*)
7140          LD="${LD-ld} -m elf_x86_64"
7141          ;;
7142        sparc*-*-solaris*)
7143          LD="${LD-ld} -m elf64_sparc"
7144          ;;
7145        esac
7146        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7147        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7148          LD="${LD-ld}_sol2"
7149        fi
7150        ;;
7151      *)
7152	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7153	  LD="${LD-ld} -64"
7154	fi
7155	;;
7156      esac
7157      ;;
7158    esac
7159  fi
7160  rm -rf conftest*
7161  ;;
7162esac
7163
7164need_locks="$enable_libtool_lock"
7165
7166if test -n "$ac_tool_prefix"; then
7167  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7168set dummy ${ac_tool_prefix}mt; ac_word=$2
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170$as_echo_n "checking for $ac_word... " >&6; }
7171if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174  if test -n "$MANIFEST_TOOL"; then
7175  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7176else
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180  IFS=$as_save_IFS
7181  test -z "$as_dir" && as_dir=.
7182    for ac_exec_ext in '' $ac_executable_extensions; do
7183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186    break 2
7187  fi
7188done
7189  done
7190IFS=$as_save_IFS
7191
7192fi
7193fi
7194MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7195if test -n "$MANIFEST_TOOL"; then
7196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7197$as_echo "$MANIFEST_TOOL" >&6; }
7198else
7199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200$as_echo "no" >&6; }
7201fi
7202
7203
7204fi
7205if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7206  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7207  # Extract the first word of "mt", so it can be a program name with args.
7208set dummy mt; ac_word=$2
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210$as_echo_n "checking for $ac_word... " >&6; }
7211if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  if test -n "$ac_ct_MANIFEST_TOOL"; then
7215  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7216else
7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220  IFS=$as_save_IFS
7221  test -z "$as_dir" && as_dir=.
7222    for ac_exec_ext in '' $ac_executable_extensions; do
7223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226    break 2
7227  fi
7228done
7229  done
7230IFS=$as_save_IFS
7231
7232fi
7233fi
7234ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7235if test -n "$ac_ct_MANIFEST_TOOL"; then
7236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7237$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7238else
7239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240$as_echo "no" >&6; }
7241fi
7242
7243  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7244    MANIFEST_TOOL=":"
7245  else
7246    case $cross_compiling:$ac_tool_warned in
7247yes:)
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250ac_tool_warned=yes ;;
7251esac
7252    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7253  fi
7254else
7255  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7256fi
7257
7258test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7260$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7261if ${lt_cv_path_mainfest_tool+:} false; then :
7262  $as_echo_n "(cached) " >&6
7263else
7264  lt_cv_path_mainfest_tool=no
7265  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7266  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7267  cat conftest.err >&5
7268  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7269    lt_cv_path_mainfest_tool=yes
7270  fi
7271  rm -f conftest*
7272fi
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7274$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7275if test "x$lt_cv_path_mainfest_tool" != xyes; then
7276  MANIFEST_TOOL=:
7277fi
7278
7279
7280
7281
7282
7283
7284  case $host_os in
7285    rhapsody* | darwin*)
7286    if test -n "$ac_tool_prefix"; then
7287  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7288set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290$as_echo_n "checking for $ac_word... " >&6; }
7291if ${ac_cv_prog_DSYMUTIL+:} false; then :
7292  $as_echo_n "(cached) " >&6
7293else
7294  if test -n "$DSYMUTIL"; then
7295  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7296else
7297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300  IFS=$as_save_IFS
7301  test -z "$as_dir" && as_dir=.
7302    for ac_exec_ext in '' $ac_executable_extensions; do
7303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306    break 2
7307  fi
7308done
7309  done
7310IFS=$as_save_IFS
7311
7312fi
7313fi
7314DSYMUTIL=$ac_cv_prog_DSYMUTIL
7315if test -n "$DSYMUTIL"; then
7316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7317$as_echo "$DSYMUTIL" >&6; }
7318else
7319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320$as_echo "no" >&6; }
7321fi
7322
7323
7324fi
7325if test -z "$ac_cv_prog_DSYMUTIL"; then
7326  ac_ct_DSYMUTIL=$DSYMUTIL
7327  # Extract the first word of "dsymutil", so it can be a program name with args.
7328set dummy dsymutil; ac_word=$2
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334  if test -n "$ac_ct_DSYMUTIL"; then
7335  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340  IFS=$as_save_IFS
7341  test -z "$as_dir" && as_dir=.
7342    for ac_exec_ext in '' $ac_executable_extensions; do
7343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346    break 2
7347  fi
7348done
7349  done
7350IFS=$as_save_IFS
7351
7352fi
7353fi
7354ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7355if test -n "$ac_ct_DSYMUTIL"; then
7356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7357$as_echo "$ac_ct_DSYMUTIL" >&6; }
7358else
7359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360$as_echo "no" >&6; }
7361fi
7362
7363  if test "x$ac_ct_DSYMUTIL" = x; then
7364    DSYMUTIL=":"
7365  else
7366    case $cross_compiling:$ac_tool_warned in
7367yes:)
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370ac_tool_warned=yes ;;
7371esac
7372    DSYMUTIL=$ac_ct_DSYMUTIL
7373  fi
7374else
7375  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7376fi
7377
7378    if test -n "$ac_tool_prefix"; then
7379  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7380set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382$as_echo_n "checking for $ac_word... " >&6; }
7383if ${ac_cv_prog_NMEDIT+:} false; then :
7384  $as_echo_n "(cached) " >&6
7385else
7386  if test -n "$NMEDIT"; then
7387  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7388else
7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392  IFS=$as_save_IFS
7393  test -z "$as_dir" && as_dir=.
7394    for ac_exec_ext in '' $ac_executable_extensions; do
7395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398    break 2
7399  fi
7400done
7401  done
7402IFS=$as_save_IFS
7403
7404fi
7405fi
7406NMEDIT=$ac_cv_prog_NMEDIT
7407if test -n "$NMEDIT"; then
7408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7409$as_echo "$NMEDIT" >&6; }
7410else
7411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412$as_echo "no" >&6; }
7413fi
7414
7415
7416fi
7417if test -z "$ac_cv_prog_NMEDIT"; then
7418  ac_ct_NMEDIT=$NMEDIT
7419  # Extract the first word of "nmedit", so it can be a program name with args.
7420set dummy nmedit; ac_word=$2
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422$as_echo_n "checking for $ac_word... " >&6; }
7423if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7424  $as_echo_n "(cached) " >&6
7425else
7426  if test -n "$ac_ct_NMEDIT"; then
7427  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7428else
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432  IFS=$as_save_IFS
7433  test -z "$as_dir" && as_dir=.
7434    for ac_exec_ext in '' $ac_executable_extensions; do
7435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438    break 2
7439  fi
7440done
7441  done
7442IFS=$as_save_IFS
7443
7444fi
7445fi
7446ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7447if test -n "$ac_ct_NMEDIT"; then
7448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7449$as_echo "$ac_ct_NMEDIT" >&6; }
7450else
7451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
7453fi
7454
7455  if test "x$ac_ct_NMEDIT" = x; then
7456    NMEDIT=":"
7457  else
7458    case $cross_compiling:$ac_tool_warned in
7459yes:)
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7462ac_tool_warned=yes ;;
7463esac
7464    NMEDIT=$ac_ct_NMEDIT
7465  fi
7466else
7467  NMEDIT="$ac_cv_prog_NMEDIT"
7468fi
7469
7470    if test -n "$ac_tool_prefix"; then
7471  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7472set dummy ${ac_tool_prefix}lipo; ac_word=$2
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474$as_echo_n "checking for $ac_word... " >&6; }
7475if ${ac_cv_prog_LIPO+:} false; then :
7476  $as_echo_n "(cached) " >&6
7477else
7478  if test -n "$LIPO"; then
7479  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7480else
7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482for as_dir in $PATH
7483do
7484  IFS=$as_save_IFS
7485  test -z "$as_dir" && as_dir=.
7486    for ac_exec_ext in '' $ac_executable_extensions; do
7487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490    break 2
7491  fi
7492done
7493  done
7494IFS=$as_save_IFS
7495
7496fi
7497fi
7498LIPO=$ac_cv_prog_LIPO
7499if test -n "$LIPO"; then
7500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7501$as_echo "$LIPO" >&6; }
7502else
7503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504$as_echo "no" >&6; }
7505fi
7506
7507
7508fi
7509if test -z "$ac_cv_prog_LIPO"; then
7510  ac_ct_LIPO=$LIPO
7511  # Extract the first word of "lipo", so it can be a program name with args.
7512set dummy lipo; ac_word=$2
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514$as_echo_n "checking for $ac_word... " >&6; }
7515if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7516  $as_echo_n "(cached) " >&6
7517else
7518  if test -n "$ac_ct_LIPO"; then
7519  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7520else
7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524  IFS=$as_save_IFS
7525  test -z "$as_dir" && as_dir=.
7526    for ac_exec_ext in '' $ac_executable_extensions; do
7527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528    ac_cv_prog_ac_ct_LIPO="lipo"
7529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530    break 2
7531  fi
7532done
7533  done
7534IFS=$as_save_IFS
7535
7536fi
7537fi
7538ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7539if test -n "$ac_ct_LIPO"; then
7540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7541$as_echo "$ac_ct_LIPO" >&6; }
7542else
7543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544$as_echo "no" >&6; }
7545fi
7546
7547  if test "x$ac_ct_LIPO" = x; then
7548    LIPO=":"
7549  else
7550    case $cross_compiling:$ac_tool_warned in
7551yes:)
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7554ac_tool_warned=yes ;;
7555esac
7556    LIPO=$ac_ct_LIPO
7557  fi
7558else
7559  LIPO="$ac_cv_prog_LIPO"
7560fi
7561
7562    if test -n "$ac_tool_prefix"; then
7563  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7564set dummy ${ac_tool_prefix}otool; ac_word=$2
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566$as_echo_n "checking for $ac_word... " >&6; }
7567if ${ac_cv_prog_OTOOL+:} false; then :
7568  $as_echo_n "(cached) " >&6
7569else
7570  if test -n "$OTOOL"; then
7571  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7572else
7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576  IFS=$as_save_IFS
7577  test -z "$as_dir" && as_dir=.
7578    for ac_exec_ext in '' $ac_executable_extensions; do
7579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582    break 2
7583  fi
7584done
7585  done
7586IFS=$as_save_IFS
7587
7588fi
7589fi
7590OTOOL=$ac_cv_prog_OTOOL
7591if test -n "$OTOOL"; then
7592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7593$as_echo "$OTOOL" >&6; }
7594else
7595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596$as_echo "no" >&6; }
7597fi
7598
7599
7600fi
7601if test -z "$ac_cv_prog_OTOOL"; then
7602  ac_ct_OTOOL=$OTOOL
7603  # Extract the first word of "otool", so it can be a program name with args.
7604set dummy otool; ac_word=$2
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606$as_echo_n "checking for $ac_word... " >&6; }
7607if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7608  $as_echo_n "(cached) " >&6
7609else
7610  if test -n "$ac_ct_OTOOL"; then
7611  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7612else
7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616  IFS=$as_save_IFS
7617  test -z "$as_dir" && as_dir=.
7618    for ac_exec_ext in '' $ac_executable_extensions; do
7619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620    ac_cv_prog_ac_ct_OTOOL="otool"
7621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622    break 2
7623  fi
7624done
7625  done
7626IFS=$as_save_IFS
7627
7628fi
7629fi
7630ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7631if test -n "$ac_ct_OTOOL"; then
7632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7633$as_echo "$ac_ct_OTOOL" >&6; }
7634else
7635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636$as_echo "no" >&6; }
7637fi
7638
7639  if test "x$ac_ct_OTOOL" = x; then
7640    OTOOL=":"
7641  else
7642    case $cross_compiling:$ac_tool_warned in
7643yes:)
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646ac_tool_warned=yes ;;
7647esac
7648    OTOOL=$ac_ct_OTOOL
7649  fi
7650else
7651  OTOOL="$ac_cv_prog_OTOOL"
7652fi
7653
7654    if test -n "$ac_tool_prefix"; then
7655  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7656set dummy ${ac_tool_prefix}otool64; ac_word=$2
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658$as_echo_n "checking for $ac_word... " >&6; }
7659if ${ac_cv_prog_OTOOL64+:} false; then :
7660  $as_echo_n "(cached) " >&6
7661else
7662  if test -n "$OTOOL64"; then
7663  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7664else
7665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666for as_dir in $PATH
7667do
7668  IFS=$as_save_IFS
7669  test -z "$as_dir" && as_dir=.
7670    for ac_exec_ext in '' $ac_executable_extensions; do
7671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674    break 2
7675  fi
7676done
7677  done
7678IFS=$as_save_IFS
7679
7680fi
7681fi
7682OTOOL64=$ac_cv_prog_OTOOL64
7683if test -n "$OTOOL64"; then
7684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7685$as_echo "$OTOOL64" >&6; }
7686else
7687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688$as_echo "no" >&6; }
7689fi
7690
7691
7692fi
7693if test -z "$ac_cv_prog_OTOOL64"; then
7694  ac_ct_OTOOL64=$OTOOL64
7695  # Extract the first word of "otool64", so it can be a program name with args.
7696set dummy otool64; ac_word=$2
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698$as_echo_n "checking for $ac_word... " >&6; }
7699if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7700  $as_echo_n "(cached) " >&6
7701else
7702  if test -n "$ac_ct_OTOOL64"; then
7703  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7704else
7705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706for as_dir in $PATH
7707do
7708  IFS=$as_save_IFS
7709  test -z "$as_dir" && as_dir=.
7710    for ac_exec_ext in '' $ac_executable_extensions; do
7711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712    ac_cv_prog_ac_ct_OTOOL64="otool64"
7713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714    break 2
7715  fi
7716done
7717  done
7718IFS=$as_save_IFS
7719
7720fi
7721fi
7722ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7723if test -n "$ac_ct_OTOOL64"; then
7724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7725$as_echo "$ac_ct_OTOOL64" >&6; }
7726else
7727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728$as_echo "no" >&6; }
7729fi
7730
7731  if test "x$ac_ct_OTOOL64" = x; then
7732    OTOOL64=":"
7733  else
7734    case $cross_compiling:$ac_tool_warned in
7735yes:)
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738ac_tool_warned=yes ;;
7739esac
7740    OTOOL64=$ac_ct_OTOOL64
7741  fi
7742else
7743  OTOOL64="$ac_cv_prog_OTOOL64"
7744fi
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7773$as_echo_n "checking for -single_module linker flag... " >&6; }
7774if ${lt_cv_apple_cc_single_mod+:} false; then :
7775  $as_echo_n "(cached) " >&6
7776else
7777  lt_cv_apple_cc_single_mod=no
7778      if test -z "${LT_MULTI_MODULE}"; then
7779	# By default we will add the -single_module flag. You can override
7780	# by either setting the environment variable LT_MULTI_MODULE
7781	# non-empty at configure time, or by adding -multi_module to the
7782	# link flags.
7783	rm -rf libconftest.dylib*
7784	echo "int foo(void){return 1;}" > conftest.c
7785	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7786-dynamiclib -Wl,-single_module conftest.c" >&5
7787	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7788	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7789        _lt_result=$?
7790	# If there is a non-empty error log, and "single_module"
7791	# appears in it, assume the flag caused a linker warning
7792        if test -s conftest.err && $GREP single_module conftest.err; then
7793	  cat conftest.err >&5
7794	# Otherwise, if the output was created with a 0 exit code from
7795	# the compiler, it worked.
7796	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7797	  lt_cv_apple_cc_single_mod=yes
7798	else
7799	  cat conftest.err >&5
7800	fi
7801	rm -rf libconftest.dylib*
7802	rm -f conftest.*
7803      fi
7804fi
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7806$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7807
7808    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7809$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7810if ${lt_cv_ld_exported_symbols_list+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  lt_cv_ld_exported_symbols_list=no
7814      save_LDFLAGS=$LDFLAGS
7815      echo "_main" > conftest.sym
7816      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7817      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h.  */
7819
7820int
7821main ()
7822{
7823
7824  ;
7825  return 0;
7826}
7827_ACEOF
7828if ac_fn_c_try_link "$LINENO"; then :
7829  lt_cv_ld_exported_symbols_list=yes
7830else
7831  lt_cv_ld_exported_symbols_list=no
7832fi
7833rm -f core conftest.err conftest.$ac_objext \
7834    conftest$ac_exeext conftest.$ac_ext
7835	LDFLAGS="$save_LDFLAGS"
7836
7837fi
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7839$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7840
7841    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7842$as_echo_n "checking for -force_load linker flag... " >&6; }
7843if ${lt_cv_ld_force_load+:} false; then :
7844  $as_echo_n "(cached) " >&6
7845else
7846  lt_cv_ld_force_load=no
7847      cat > conftest.c << _LT_EOF
7848int forced_loaded() { return 2;}
7849_LT_EOF
7850      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7851      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7852      echo "$AR cru libconftest.a conftest.o" >&5
7853      $AR cru libconftest.a conftest.o 2>&5
7854      echo "$RANLIB libconftest.a" >&5
7855      $RANLIB libconftest.a 2>&5
7856      cat > conftest.c << _LT_EOF
7857int main() { return 0;}
7858_LT_EOF
7859      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7860      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7861      _lt_result=$?
7862      if test -s conftest.err && $GREP force_load conftest.err; then
7863	cat conftest.err >&5
7864      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7865	lt_cv_ld_force_load=yes
7866      else
7867	cat conftest.err >&5
7868      fi
7869        rm -f conftest.err libconftest.a conftest conftest.c
7870        rm -rf conftest.dSYM
7871
7872fi
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7874$as_echo "$lt_cv_ld_force_load" >&6; }
7875    case $host_os in
7876    rhapsody* | darwin1.[012])
7877      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7878    darwin1.*)
7879      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7880    darwin*) # darwin 5.x on
7881      # if running on 10.5 or later, the deployment target defaults
7882      # to the OS version, if on x86, and 10.4, the deployment
7883      # target defaults to 10.4. Don't you love it?
7884      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7885	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7886	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7887	10.[012]*)
7888	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7889	10.*)
7890	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7891      esac
7892    ;;
7893  esac
7894    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7895      _lt_dar_single_mod='$single_module'
7896    fi
7897    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7898      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7899    else
7900      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7901    fi
7902    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7903      _lt_dsymutil='~$DSYMUTIL $lib || :'
7904    else
7905      _lt_dsymutil=
7906    fi
7907    ;;
7908  esac
7909
7910ac_ext=c
7911ac_cpp='$CPP $CPPFLAGS'
7912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7916$as_echo_n "checking how to run the C preprocessor... " >&6; }
7917# On Suns, sometimes $CPP names a directory.
7918if test -n "$CPP" && test -d "$CPP"; then
7919  CPP=
7920fi
7921if test -z "$CPP"; then
7922  if ${ac_cv_prog_CPP+:} false; then :
7923  $as_echo_n "(cached) " >&6
7924else
7925      # Double quotes because CPP needs to be expanded
7926    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7927    do
7928      ac_preproc_ok=false
7929for ac_c_preproc_warn_flag in '' yes
7930do
7931  # Use a header file that comes with gcc, so configuring glibc
7932  # with a fresh cross-compiler works.
7933  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7934  # <limits.h> exists even on freestanding compilers.
7935  # On the NeXT, cc -E runs the code through the compiler's parser,
7936  # not just through cpp. "Syntax error" is here to catch this case.
7937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939#ifdef __STDC__
7940# include <limits.h>
7941#else
7942# include <assert.h>
7943#endif
7944		     Syntax error
7945_ACEOF
7946if ac_fn_c_try_cpp "$LINENO"; then :
7947
7948else
7949  # Broken: fails on valid input.
7950continue
7951fi
7952rm -f conftest.err conftest.i conftest.$ac_ext
7953
7954  # OK, works on sane cases.  Now check whether nonexistent headers
7955  # can be detected and how.
7956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957/* end confdefs.h.  */
7958#include <ac_nonexistent.h>
7959_ACEOF
7960if ac_fn_c_try_cpp "$LINENO"; then :
7961  # Broken: success on invalid input.
7962continue
7963else
7964  # Passes both tests.
7965ac_preproc_ok=:
7966break
7967fi
7968rm -f conftest.err conftest.i conftest.$ac_ext
7969
7970done
7971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7972rm -f conftest.i conftest.err conftest.$ac_ext
7973if $ac_preproc_ok; then :
7974  break
7975fi
7976
7977    done
7978    ac_cv_prog_CPP=$CPP
7979
7980fi
7981  CPP=$ac_cv_prog_CPP
7982else
7983  ac_cv_prog_CPP=$CPP
7984fi
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7986$as_echo "$CPP" >&6; }
7987ac_preproc_ok=false
7988for ac_c_preproc_warn_flag in '' yes
7989do
7990  # Use a header file that comes with gcc, so configuring glibc
7991  # with a fresh cross-compiler works.
7992  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7993  # <limits.h> exists even on freestanding compilers.
7994  # On the NeXT, cc -E runs the code through the compiler's parser,
7995  # not just through cpp. "Syntax error" is here to catch this case.
7996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997/* end confdefs.h.  */
7998#ifdef __STDC__
7999# include <limits.h>
8000#else
8001# include <assert.h>
8002#endif
8003		     Syntax error
8004_ACEOF
8005if ac_fn_c_try_cpp "$LINENO"; then :
8006
8007else
8008  # Broken: fails on valid input.
8009continue
8010fi
8011rm -f conftest.err conftest.i conftest.$ac_ext
8012
8013  # OK, works on sane cases.  Now check whether nonexistent headers
8014  # can be detected and how.
8015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016/* end confdefs.h.  */
8017#include <ac_nonexistent.h>
8018_ACEOF
8019if ac_fn_c_try_cpp "$LINENO"; then :
8020  # Broken: success on invalid input.
8021continue
8022else
8023  # Passes both tests.
8024ac_preproc_ok=:
8025break
8026fi
8027rm -f conftest.err conftest.i conftest.$ac_ext
8028
8029done
8030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8031rm -f conftest.i conftest.err conftest.$ac_ext
8032if $ac_preproc_ok; then :
8033
8034else
8035  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8037as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8038See \`config.log' for more details" "$LINENO" 5; }
8039fi
8040
8041ac_ext=c
8042ac_cpp='$CPP $CPPFLAGS'
8043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046
8047
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8049$as_echo_n "checking for ANSI C header files... " >&6; }
8050if ${ac_cv_header_stdc+:} false; then :
8051  $as_echo_n "(cached) " >&6
8052else
8053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h.  */
8055#include <stdlib.h>
8056#include <stdarg.h>
8057#include <string.h>
8058#include <float.h>
8059
8060int
8061main ()
8062{
8063
8064  ;
8065  return 0;
8066}
8067_ACEOF
8068if ac_fn_c_try_compile "$LINENO"; then :
8069  ac_cv_header_stdc=yes
8070else
8071  ac_cv_header_stdc=no
8072fi
8073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074
8075if test $ac_cv_header_stdc = yes; then
8076  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h.  */
8079#include <string.h>
8080
8081_ACEOF
8082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8083  $EGREP "memchr" >/dev/null 2>&1; then :
8084
8085else
8086  ac_cv_header_stdc=no
8087fi
8088rm -f conftest*
8089
8090fi
8091
8092if test $ac_cv_header_stdc = yes; then
8093  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095/* end confdefs.h.  */
8096#include <stdlib.h>
8097
8098_ACEOF
8099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8100  $EGREP "free" >/dev/null 2>&1; then :
8101
8102else
8103  ac_cv_header_stdc=no
8104fi
8105rm -f conftest*
8106
8107fi
8108
8109if test $ac_cv_header_stdc = yes; then
8110  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8111  if test "$cross_compiling" = yes; then :
8112  :
8113else
8114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116#include <ctype.h>
8117#include <stdlib.h>
8118#if ((' ' & 0x0FF) == 0x020)
8119# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8120# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8121#else
8122# define ISLOWER(c) \
8123		   (('a' <= (c) && (c) <= 'i') \
8124		     || ('j' <= (c) && (c) <= 'r') \
8125		     || ('s' <= (c) && (c) <= 'z'))
8126# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8127#endif
8128
8129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8130int
8131main ()
8132{
8133  int i;
8134  for (i = 0; i < 256; i++)
8135    if (XOR (islower (i), ISLOWER (i))
8136	|| toupper (i) != TOUPPER (i))
8137      return 2;
8138  return 0;
8139}
8140_ACEOF
8141if ac_fn_c_try_run "$LINENO"; then :
8142
8143else
8144  ac_cv_header_stdc=no
8145fi
8146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8147  conftest.$ac_objext conftest.beam conftest.$ac_ext
8148fi
8149
8150fi
8151fi
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8153$as_echo "$ac_cv_header_stdc" >&6; }
8154if test $ac_cv_header_stdc = yes; then
8155
8156$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8157
8158fi
8159
8160# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8161for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8162		  inttypes.h stdint.h unistd.h
8163do :
8164  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8165ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8166"
8167if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8168  cat >>confdefs.h <<_ACEOF
8169#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8170_ACEOF
8171
8172fi
8173
8174done
8175
8176
8177for ac_header in dlfcn.h
8178do :
8179  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8180"
8181if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8182  cat >>confdefs.h <<_ACEOF
8183#define HAVE_DLFCN_H 1
8184_ACEOF
8185
8186fi
8187
8188done
8189
8190
8191
8192
8193
8194# Set options
8195
8196
8197
8198        enable_dlopen=no
8199
8200
8201  enable_win32_dll=no
8202
8203
8204            # Check whether --enable-shared was given.
8205if test "${enable_shared+set}" = set; then :
8206  enableval=$enable_shared; p=${PACKAGE-default}
8207    case $enableval in
8208    yes) enable_shared=yes ;;
8209    no) enable_shared=no ;;
8210    *)
8211      enable_shared=no
8212      # Look at the argument we got.  We use all the common list separators.
8213      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8214      for pkg in $enableval; do
8215	IFS="$lt_save_ifs"
8216	if test "X$pkg" = "X$p"; then
8217	  enable_shared=yes
8218	fi
8219      done
8220      IFS="$lt_save_ifs"
8221      ;;
8222    esac
8223else
8224  enable_shared=yes
8225fi
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235  # Check whether --enable-static was given.
8236if test "${enable_static+set}" = set; then :
8237  enableval=$enable_static; p=${PACKAGE-default}
8238    case $enableval in
8239    yes) enable_static=yes ;;
8240    no) enable_static=no ;;
8241    *)
8242     enable_static=no
8243      # Look at the argument we got.  We use all the common list separators.
8244      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8245      for pkg in $enableval; do
8246	IFS="$lt_save_ifs"
8247	if test "X$pkg" = "X$p"; then
8248	  enable_static=yes
8249	fi
8250      done
8251      IFS="$lt_save_ifs"
8252      ;;
8253    esac
8254else
8255  enable_static=yes
8256fi
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267# Check whether --with-pic was given.
8268if test "${with_pic+set}" = set; then :
8269  withval=$with_pic; lt_p=${PACKAGE-default}
8270    case $withval in
8271    yes|no) pic_mode=$withval ;;
8272    *)
8273      pic_mode=default
8274      # Look at the argument we got.  We use all the common list separators.
8275      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8276      for lt_pkg in $withval; do
8277	IFS="$lt_save_ifs"
8278	if test "X$lt_pkg" = "X$lt_p"; then
8279	  pic_mode=yes
8280	fi
8281      done
8282      IFS="$lt_save_ifs"
8283      ;;
8284    esac
8285else
8286  pic_mode=default
8287fi
8288
8289
8290test -z "$pic_mode" && pic_mode=default
8291
8292
8293
8294
8295
8296
8297
8298  # Check whether --enable-fast-install was given.
8299if test "${enable_fast_install+set}" = set; then :
8300  enableval=$enable_fast_install; p=${PACKAGE-default}
8301    case $enableval in
8302    yes) enable_fast_install=yes ;;
8303    no) enable_fast_install=no ;;
8304    *)
8305      enable_fast_install=no
8306      # Look at the argument we got.  We use all the common list separators.
8307      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8308      for pkg in $enableval; do
8309	IFS="$lt_save_ifs"
8310	if test "X$pkg" = "X$p"; then
8311	  enable_fast_install=yes
8312	fi
8313      done
8314      IFS="$lt_save_ifs"
8315      ;;
8316    esac
8317else
8318  enable_fast_install=yes
8319fi
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331# This can be used to rebuild libtool when needed
8332LIBTOOL_DEPS="$ltmain"
8333
8334# Always use our own libtool.
8335LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8366test -z "$LN_S" && LN_S="ln -s"
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381if test -n "${ZSH_VERSION+set}" ; then
8382   setopt NO_GLOB_SUBST
8383fi
8384
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8386$as_echo_n "checking for objdir... " >&6; }
8387if ${lt_cv_objdir+:} false; then :
8388  $as_echo_n "(cached) " >&6
8389else
8390  rm -f .libs 2>/dev/null
8391mkdir .libs 2>/dev/null
8392if test -d .libs; then
8393  lt_cv_objdir=.libs
8394else
8395  # MS-DOS does not allow filenames that begin with a dot.
8396  lt_cv_objdir=_libs
8397fi
8398rmdir .libs 2>/dev/null
8399fi
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8401$as_echo "$lt_cv_objdir" >&6; }
8402objdir=$lt_cv_objdir
8403
8404
8405
8406
8407
8408cat >>confdefs.h <<_ACEOF
8409#define LT_OBJDIR "$lt_cv_objdir/"
8410_ACEOF
8411
8412
8413
8414
8415case $host_os in
8416aix3*)
8417  # AIX sometimes has problems with the GCC collect2 program.  For some
8418  # reason, if we set the COLLECT_NAMES environment variable, the problems
8419  # vanish in a puff of smoke.
8420  if test "X${COLLECT_NAMES+set}" != Xset; then
8421    COLLECT_NAMES=
8422    export COLLECT_NAMES
8423  fi
8424  ;;
8425esac
8426
8427# Global variables:
8428ofile=libtool
8429can_build_shared=yes
8430
8431# All known linkers require a `.a' archive for static linking (except MSVC,
8432# which needs '.lib').
8433libext=a
8434
8435with_gnu_ld="$lt_cv_prog_gnu_ld"
8436
8437old_CC="$CC"
8438old_CFLAGS="$CFLAGS"
8439
8440# Set sane defaults for various variables
8441test -z "$CC" && CC=cc
8442test -z "$LTCC" && LTCC=$CC
8443test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8444test -z "$LD" && LD=ld
8445test -z "$ac_objext" && ac_objext=o
8446
8447for cc_temp in $compiler""; do
8448  case $cc_temp in
8449    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8450    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8451    \-*) ;;
8452    *) break;;
8453  esac
8454done
8455cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8456
8457
8458# Only perform the check for file, if the check method requires it
8459test -z "$MAGIC_CMD" && MAGIC_CMD=file
8460case $deplibs_check_method in
8461file_magic*)
8462  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8463    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8464$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8465if ${lt_cv_path_MAGIC_CMD+:} false; then :
8466  $as_echo_n "(cached) " >&6
8467else
8468  case $MAGIC_CMD in
8469[\\/*] |  ?:[\\/]*)
8470  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8471  ;;
8472*)
8473  lt_save_MAGIC_CMD="$MAGIC_CMD"
8474  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8475  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8476  for ac_dir in $ac_dummy; do
8477    IFS="$lt_save_ifs"
8478    test -z "$ac_dir" && ac_dir=.
8479    if test -f $ac_dir/${ac_tool_prefix}file; then
8480      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8481      if test -n "$file_magic_test_file"; then
8482	case $deplibs_check_method in
8483	"file_magic "*)
8484	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8485	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8486	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8487	    $EGREP "$file_magic_regex" > /dev/null; then
8488	    :
8489	  else
8490	    cat <<_LT_EOF 1>&2
8491
8492*** Warning: the command libtool uses to detect shared libraries,
8493*** $file_magic_cmd, produces output that libtool cannot recognize.
8494*** The result is that libtool may fail to recognize shared libraries
8495*** as such.  This will affect the creation of libtool libraries that
8496*** depend on shared libraries, but programs linked with such libtool
8497*** libraries will work regardless of this problem.  Nevertheless, you
8498*** may want to report the problem to your system manager and/or to
8499*** bug-libtool@gnu.org
8500
8501_LT_EOF
8502	  fi ;;
8503	esac
8504      fi
8505      break
8506    fi
8507  done
8508  IFS="$lt_save_ifs"
8509  MAGIC_CMD="$lt_save_MAGIC_CMD"
8510  ;;
8511esac
8512fi
8513
8514MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8515if test -n "$MAGIC_CMD"; then
8516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8517$as_echo "$MAGIC_CMD" >&6; }
8518else
8519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520$as_echo "no" >&6; }
8521fi
8522
8523
8524
8525
8526
8527if test -z "$lt_cv_path_MAGIC_CMD"; then
8528  if test -n "$ac_tool_prefix"; then
8529    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8530$as_echo_n "checking for file... " >&6; }
8531if ${lt_cv_path_MAGIC_CMD+:} false; then :
8532  $as_echo_n "(cached) " >&6
8533else
8534  case $MAGIC_CMD in
8535[\\/*] |  ?:[\\/]*)
8536  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8537  ;;
8538*)
8539  lt_save_MAGIC_CMD="$MAGIC_CMD"
8540  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8541  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8542  for ac_dir in $ac_dummy; do
8543    IFS="$lt_save_ifs"
8544    test -z "$ac_dir" && ac_dir=.
8545    if test -f $ac_dir/file; then
8546      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8547      if test -n "$file_magic_test_file"; then
8548	case $deplibs_check_method in
8549	"file_magic "*)
8550	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8551	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8552	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8553	    $EGREP "$file_magic_regex" > /dev/null; then
8554	    :
8555	  else
8556	    cat <<_LT_EOF 1>&2
8557
8558*** Warning: the command libtool uses to detect shared libraries,
8559*** $file_magic_cmd, produces output that libtool cannot recognize.
8560*** The result is that libtool may fail to recognize shared libraries
8561*** as such.  This will affect the creation of libtool libraries that
8562*** depend on shared libraries, but programs linked with such libtool
8563*** libraries will work regardless of this problem.  Nevertheless, you
8564*** may want to report the problem to your system manager and/or to
8565*** bug-libtool@gnu.org
8566
8567_LT_EOF
8568	  fi ;;
8569	esac
8570      fi
8571      break
8572    fi
8573  done
8574  IFS="$lt_save_ifs"
8575  MAGIC_CMD="$lt_save_MAGIC_CMD"
8576  ;;
8577esac
8578fi
8579
8580MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8581if test -n "$MAGIC_CMD"; then
8582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8583$as_echo "$MAGIC_CMD" >&6; }
8584else
8585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586$as_echo "no" >&6; }
8587fi
8588
8589
8590  else
8591    MAGIC_CMD=:
8592  fi
8593fi
8594
8595  fi
8596  ;;
8597esac
8598
8599# Use C for the default configuration in the libtool script
8600
8601lt_save_CC="$CC"
8602ac_ext=c
8603ac_cpp='$CPP $CPPFLAGS'
8604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606ac_compiler_gnu=$ac_cv_c_compiler_gnu
8607
8608
8609# Source file extension for C test sources.
8610ac_ext=c
8611
8612# Object file extension for compiled C test sources.
8613objext=o
8614objext=$objext
8615
8616# Code to be used in simple compile tests
8617lt_simple_compile_test_code="int some_variable = 0;"
8618
8619# Code to be used in simple link tests
8620lt_simple_link_test_code='int main(){return(0);}'
8621
8622
8623
8624
8625
8626
8627
8628# If no C compiler was specified, use CC.
8629LTCC=${LTCC-"$CC"}
8630
8631# If no C compiler flags were specified, use CFLAGS.
8632LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8633
8634# Allow CC to be a program name with arguments.
8635compiler=$CC
8636
8637# Save the default compiler, since it gets overwritten when the other
8638# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8639compiler_DEFAULT=$CC
8640
8641# save warnings/boilerplate of simple test code
8642ac_outfile=conftest.$ac_objext
8643echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8644eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8645_lt_compiler_boilerplate=`cat conftest.err`
8646$RM conftest*
8647
8648ac_outfile=conftest.$ac_objext
8649echo "$lt_simple_link_test_code" >conftest.$ac_ext
8650eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8651_lt_linker_boilerplate=`cat conftest.err`
8652$RM -r conftest*
8653
8654
8655if test -n "$compiler"; then
8656
8657lt_prog_compiler_no_builtin_flag=
8658
8659if test "$GCC" = yes; then
8660  case $cc_basename in
8661  nvcc*)
8662    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8663  *)
8664    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8665  esac
8666
8667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8668$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8669if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8670  $as_echo_n "(cached) " >&6
8671else
8672  lt_cv_prog_compiler_rtti_exceptions=no
8673   ac_outfile=conftest.$ac_objext
8674   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8675   lt_compiler_flag="-fno-rtti -fno-exceptions"
8676   # Insert the option either (1) after the last *FLAGS variable, or
8677   # (2) before a word containing "conftest.", or (3) at the end.
8678   # Note that $ac_compile itself does not contain backslashes and begins
8679   # with a dollar sign (not a hyphen), so the echo should work correctly.
8680   # The option is referenced via a variable to avoid confusing sed.
8681   lt_compile=`echo "$ac_compile" | $SED \
8682   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8683   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8684   -e 's:$: $lt_compiler_flag:'`
8685   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8686   (eval "$lt_compile" 2>conftest.err)
8687   ac_status=$?
8688   cat conftest.err >&5
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   if (exit $ac_status) && test -s "$ac_outfile"; then
8691     # The compiler can only warn and ignore the option if not recognized
8692     # So say no if there are warnings other than the usual output.
8693     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8694     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8695     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8696       lt_cv_prog_compiler_rtti_exceptions=yes
8697     fi
8698   fi
8699   $RM conftest*
8700
8701fi
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8703$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8704
8705if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8706    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8707else
8708    :
8709fi
8710
8711fi
8712
8713
8714
8715
8716
8717
8718  lt_prog_compiler_wl=
8719lt_prog_compiler_pic=
8720lt_prog_compiler_static=
8721
8722
8723  if test "$GCC" = yes; then
8724    lt_prog_compiler_wl='-Wl,'
8725    lt_prog_compiler_static='-static'
8726
8727    case $host_os in
8728      aix*)
8729      # All AIX code is PIC.
8730      if test "$host_cpu" = ia64; then
8731	# AIX 5 now supports IA64 processor
8732	lt_prog_compiler_static='-Bstatic'
8733      fi
8734      ;;
8735
8736    amigaos*)
8737      case $host_cpu in
8738      powerpc)
8739            # see comment about AmigaOS4 .so support
8740            lt_prog_compiler_pic='-fPIC'
8741        ;;
8742      m68k)
8743            # FIXME: we need at least 68020 code to build shared libraries, but
8744            # adding the `-m68020' flag to GCC prevents building anything better,
8745            # like `-m68040'.
8746            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8747        ;;
8748      esac
8749      ;;
8750
8751    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8752      # PIC is the default for these OSes.
8753      ;;
8754
8755    mingw* | cygwin* | pw32* | os2* | cegcc*)
8756      # This hack is so that the source file can tell whether it is being
8757      # built for inclusion in a dll (and should export symbols for example).
8758      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8759      # (--disable-auto-import) libraries
8760      lt_prog_compiler_pic='-DDLL_EXPORT'
8761      ;;
8762
8763    darwin* | rhapsody*)
8764      # PIC is the default on this platform
8765      # Common symbols not allowed in MH_DYLIB files
8766      lt_prog_compiler_pic='-fno-common'
8767      ;;
8768
8769    haiku*)
8770      # PIC is the default for Haiku.
8771      # The "-static" flag exists, but is broken.
8772      lt_prog_compiler_static=
8773      ;;
8774
8775    hpux*)
8776      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8777      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8778      # sets the default TLS model and affects inlining.
8779      case $host_cpu in
8780      hppa*64*)
8781	# +Z the default
8782	;;
8783      *)
8784	lt_prog_compiler_pic='-fPIC'
8785	;;
8786      esac
8787      ;;
8788
8789    interix[3-9]*)
8790      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8791      # Instead, we relocate shared libraries at runtime.
8792      ;;
8793
8794    msdosdjgpp*)
8795      # Just because we use GCC doesn't mean we suddenly get shared libraries
8796      # on systems that don't support them.
8797      lt_prog_compiler_can_build_shared=no
8798      enable_shared=no
8799      ;;
8800
8801    *nto* | *qnx*)
8802      # QNX uses GNU C++, but need to define -shared option too, otherwise
8803      # it will coredump.
8804      lt_prog_compiler_pic='-fPIC -shared'
8805      ;;
8806
8807    sysv4*MP*)
8808      if test -d /usr/nec; then
8809	lt_prog_compiler_pic=-Kconform_pic
8810      fi
8811      ;;
8812
8813    *)
8814      lt_prog_compiler_pic='-fPIC'
8815      ;;
8816    esac
8817
8818    case $cc_basename in
8819    nvcc*) # Cuda Compiler Driver 2.2
8820      lt_prog_compiler_wl='-Xlinker '
8821      if test -n "$lt_prog_compiler_pic"; then
8822        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8823      fi
8824      ;;
8825    esac
8826  else
8827    # PORTME Check for flag to pass linker flags through the system compiler.
8828    case $host_os in
8829    aix*)
8830      lt_prog_compiler_wl='-Wl,'
8831      if test "$host_cpu" = ia64; then
8832	# AIX 5 now supports IA64 processor
8833	lt_prog_compiler_static='-Bstatic'
8834      else
8835	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8836      fi
8837      ;;
8838
8839    mingw* | cygwin* | pw32* | os2* | cegcc*)
8840      # This hack is so that the source file can tell whether it is being
8841      # built for inclusion in a dll (and should export symbols for example).
8842      lt_prog_compiler_pic='-DDLL_EXPORT'
8843      ;;
8844
8845    hpux9* | hpux10* | hpux11*)
8846      lt_prog_compiler_wl='-Wl,'
8847      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8848      # not for PA HP-UX.
8849      case $host_cpu in
8850      hppa*64*|ia64*)
8851	# +Z the default
8852	;;
8853      *)
8854	lt_prog_compiler_pic='+Z'
8855	;;
8856      esac
8857      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8858      lt_prog_compiler_static='${wl}-a ${wl}archive'
8859      ;;
8860
8861    irix5* | irix6* | nonstopux*)
8862      lt_prog_compiler_wl='-Wl,'
8863      # PIC (with -KPIC) is the default.
8864      lt_prog_compiler_static='-non_shared'
8865      ;;
8866
8867    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8868      case $cc_basename in
8869      # old Intel for x86_64 which still supported -KPIC.
8870      ecc*)
8871	lt_prog_compiler_wl='-Wl,'
8872	lt_prog_compiler_pic='-KPIC'
8873	lt_prog_compiler_static='-static'
8874        ;;
8875      # icc used to be incompatible with GCC.
8876      # ICC 10 doesn't accept -KPIC any more.
8877      icc* | ifort*)
8878	lt_prog_compiler_wl='-Wl,'
8879	lt_prog_compiler_pic='-fPIC'
8880	lt_prog_compiler_static='-static'
8881        ;;
8882      # Lahey Fortran 8.1.
8883      lf95*)
8884	lt_prog_compiler_wl='-Wl,'
8885	lt_prog_compiler_pic='--shared'
8886	lt_prog_compiler_static='--static'
8887	;;
8888      nagfor*)
8889	# NAG Fortran compiler
8890	lt_prog_compiler_wl='-Wl,-Wl,,'
8891	lt_prog_compiler_pic='-PIC'
8892	lt_prog_compiler_static='-Bstatic'
8893	;;
8894      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8895        # Portland Group compilers (*not* the Pentium gcc compiler,
8896	# which looks to be a dead project)
8897	lt_prog_compiler_wl='-Wl,'
8898	lt_prog_compiler_pic='-fpic'
8899	lt_prog_compiler_static='-Bstatic'
8900        ;;
8901      ccc*)
8902        lt_prog_compiler_wl='-Wl,'
8903        # All Alpha code is PIC.
8904        lt_prog_compiler_static='-non_shared'
8905        ;;
8906      xl* | bgxl* | bgf* | mpixl*)
8907	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8908	lt_prog_compiler_wl='-Wl,'
8909	lt_prog_compiler_pic='-qpic'
8910	lt_prog_compiler_static='-qstaticlink'
8911	;;
8912      *)
8913	case `$CC -V 2>&1 | sed 5q` in
8914	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8915	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8916	  lt_prog_compiler_pic='-KPIC'
8917	  lt_prog_compiler_static='-Bstatic'
8918	  lt_prog_compiler_wl=''
8919	  ;;
8920	*Sun\ F* | *Sun*Fortran*)
8921	  lt_prog_compiler_pic='-KPIC'
8922	  lt_prog_compiler_static='-Bstatic'
8923	  lt_prog_compiler_wl='-Qoption ld '
8924	  ;;
8925	*Sun\ C*)
8926	  # Sun C 5.9
8927	  lt_prog_compiler_pic='-KPIC'
8928	  lt_prog_compiler_static='-Bstatic'
8929	  lt_prog_compiler_wl='-Wl,'
8930	  ;;
8931        *Intel*\ [CF]*Compiler*)
8932	  lt_prog_compiler_wl='-Wl,'
8933	  lt_prog_compiler_pic='-fPIC'
8934	  lt_prog_compiler_static='-static'
8935	  ;;
8936	*Portland\ Group*)
8937	  lt_prog_compiler_wl='-Wl,'
8938	  lt_prog_compiler_pic='-fpic'
8939	  lt_prog_compiler_static='-Bstatic'
8940	  ;;
8941	esac
8942	;;
8943      esac
8944      ;;
8945
8946    newsos6)
8947      lt_prog_compiler_pic='-KPIC'
8948      lt_prog_compiler_static='-Bstatic'
8949      ;;
8950
8951    *nto* | *qnx*)
8952      # QNX uses GNU C++, but need to define -shared option too, otherwise
8953      # it will coredump.
8954      lt_prog_compiler_pic='-fPIC -shared'
8955      ;;
8956
8957    osf3* | osf4* | osf5*)
8958      lt_prog_compiler_wl='-Wl,'
8959      # All OSF/1 code is PIC.
8960      lt_prog_compiler_static='-non_shared'
8961      ;;
8962
8963    rdos*)
8964      lt_prog_compiler_static='-non_shared'
8965      ;;
8966
8967    solaris*)
8968      lt_prog_compiler_pic='-KPIC'
8969      lt_prog_compiler_static='-Bstatic'
8970      case $cc_basename in
8971      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8972	lt_prog_compiler_wl='-Qoption ld ';;
8973      *)
8974	lt_prog_compiler_wl='-Wl,';;
8975      esac
8976      ;;
8977
8978    sunos4*)
8979      lt_prog_compiler_wl='-Qoption ld '
8980      lt_prog_compiler_pic='-PIC'
8981      lt_prog_compiler_static='-Bstatic'
8982      ;;
8983
8984    sysv4 | sysv4.2uw2* | sysv4.3*)
8985      lt_prog_compiler_wl='-Wl,'
8986      lt_prog_compiler_pic='-KPIC'
8987      lt_prog_compiler_static='-Bstatic'
8988      ;;
8989
8990    sysv4*MP*)
8991      if test -d /usr/nec ;then
8992	lt_prog_compiler_pic='-Kconform_pic'
8993	lt_prog_compiler_static='-Bstatic'
8994      fi
8995      ;;
8996
8997    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8998      lt_prog_compiler_wl='-Wl,'
8999      lt_prog_compiler_pic='-KPIC'
9000      lt_prog_compiler_static='-Bstatic'
9001      ;;
9002
9003    unicos*)
9004      lt_prog_compiler_wl='-Wl,'
9005      lt_prog_compiler_can_build_shared=no
9006      ;;
9007
9008    uts4*)
9009      lt_prog_compiler_pic='-pic'
9010      lt_prog_compiler_static='-Bstatic'
9011      ;;
9012
9013    *)
9014      lt_prog_compiler_can_build_shared=no
9015      ;;
9016    esac
9017  fi
9018
9019case $host_os in
9020  # For platforms which do not support PIC, -DPIC is meaningless:
9021  *djgpp*)
9022    lt_prog_compiler_pic=
9023    ;;
9024  *)
9025    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9026    ;;
9027esac
9028
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9030$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9031if ${lt_cv_prog_compiler_pic+:} false; then :
9032  $as_echo_n "(cached) " >&6
9033else
9034  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9037$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9038lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9039
9040#
9041# Check to make sure the PIC flag actually works.
9042#
9043if test -n "$lt_prog_compiler_pic"; then
9044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9045$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9046if ${lt_cv_prog_compiler_pic_works+:} false; then :
9047  $as_echo_n "(cached) " >&6
9048else
9049  lt_cv_prog_compiler_pic_works=no
9050   ac_outfile=conftest.$ac_objext
9051   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9052   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9053   # Insert the option either (1) after the last *FLAGS variable, or
9054   # (2) before a word containing "conftest.", or (3) at the end.
9055   # Note that $ac_compile itself does not contain backslashes and begins
9056   # with a dollar sign (not a hyphen), so the echo should work correctly.
9057   # The option is referenced via a variable to avoid confusing sed.
9058   lt_compile=`echo "$ac_compile" | $SED \
9059   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9060   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9061   -e 's:$: $lt_compiler_flag:'`
9062   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9063   (eval "$lt_compile" 2>conftest.err)
9064   ac_status=$?
9065   cat conftest.err >&5
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   if (exit $ac_status) && test -s "$ac_outfile"; then
9068     # The compiler can only warn and ignore the option if not recognized
9069     # So say no if there are warnings other than the usual output.
9070     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9071     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9072     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9073       lt_cv_prog_compiler_pic_works=yes
9074     fi
9075   fi
9076   $RM conftest*
9077
9078fi
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9080$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9081
9082if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9083    case $lt_prog_compiler_pic in
9084     "" | " "*) ;;
9085     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9086     esac
9087else
9088    lt_prog_compiler_pic=
9089     lt_prog_compiler_can_build_shared=no
9090fi
9091
9092fi
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104#
9105# Check to make sure the static flag actually works.
9106#
9107wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9109$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9110if ${lt_cv_prog_compiler_static_works+:} false; then :
9111  $as_echo_n "(cached) " >&6
9112else
9113  lt_cv_prog_compiler_static_works=no
9114   save_LDFLAGS="$LDFLAGS"
9115   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9116   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9117   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9118     # The linker can only warn and ignore the option if not recognized
9119     # So say no if there are warnings
9120     if test -s conftest.err; then
9121       # Append any errors to the config.log.
9122       cat conftest.err 1>&5
9123       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9124       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9125       if diff conftest.exp conftest.er2 >/dev/null; then
9126         lt_cv_prog_compiler_static_works=yes
9127       fi
9128     else
9129       lt_cv_prog_compiler_static_works=yes
9130     fi
9131   fi
9132   $RM -r conftest*
9133   LDFLAGS="$save_LDFLAGS"
9134
9135fi
9136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9137$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9138
9139if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9140    :
9141else
9142    lt_prog_compiler_static=
9143fi
9144
9145
9146
9147
9148
9149
9150
9151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9152$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9153if ${lt_cv_prog_compiler_c_o+:} false; then :
9154  $as_echo_n "(cached) " >&6
9155else
9156  lt_cv_prog_compiler_c_o=no
9157   $RM -r conftest 2>/dev/null
9158   mkdir conftest
9159   cd conftest
9160   mkdir out
9161   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9162
9163   lt_compiler_flag="-o out/conftest2.$ac_objext"
9164   # Insert the option either (1) after the last *FLAGS variable, or
9165   # (2) before a word containing "conftest.", or (3) at the end.
9166   # Note that $ac_compile itself does not contain backslashes and begins
9167   # with a dollar sign (not a hyphen), so the echo should work correctly.
9168   lt_compile=`echo "$ac_compile" | $SED \
9169   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9170   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9171   -e 's:$: $lt_compiler_flag:'`
9172   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9173   (eval "$lt_compile" 2>out/conftest.err)
9174   ac_status=$?
9175   cat out/conftest.err >&5
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9178   then
9179     # The compiler can only warn and ignore the option if not recognized
9180     # So say no if there are warnings
9181     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9182     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9183     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9184       lt_cv_prog_compiler_c_o=yes
9185     fi
9186   fi
9187   chmod u+w . 2>&5
9188   $RM conftest*
9189   # SGI C++ compiler will create directory out/ii_files/ for
9190   # template instantiation
9191   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9192   $RM out/* && rmdir out
9193   cd ..
9194   $RM -r conftest
9195   $RM conftest*
9196
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9199$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9200
9201
9202
9203
9204
9205
9206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9207$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9208if ${lt_cv_prog_compiler_c_o+:} false; then :
9209  $as_echo_n "(cached) " >&6
9210else
9211  lt_cv_prog_compiler_c_o=no
9212   $RM -r conftest 2>/dev/null
9213   mkdir conftest
9214   cd conftest
9215   mkdir out
9216   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9217
9218   lt_compiler_flag="-o out/conftest2.$ac_objext"
9219   # Insert the option either (1) after the last *FLAGS variable, or
9220   # (2) before a word containing "conftest.", or (3) at the end.
9221   # Note that $ac_compile itself does not contain backslashes and begins
9222   # with a dollar sign (not a hyphen), so the echo should work correctly.
9223   lt_compile=`echo "$ac_compile" | $SED \
9224   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9225   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9226   -e 's:$: $lt_compiler_flag:'`
9227   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9228   (eval "$lt_compile" 2>out/conftest.err)
9229   ac_status=$?
9230   cat out/conftest.err >&5
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9233   then
9234     # The compiler can only warn and ignore the option if not recognized
9235     # So say no if there are warnings
9236     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9237     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9238     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9239       lt_cv_prog_compiler_c_o=yes
9240     fi
9241   fi
9242   chmod u+w . 2>&5
9243   $RM conftest*
9244   # SGI C++ compiler will create directory out/ii_files/ for
9245   # template instantiation
9246   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9247   $RM out/* && rmdir out
9248   cd ..
9249   $RM -r conftest
9250   $RM conftest*
9251
9252fi
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9254$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9255
9256
9257
9258
9259hard_links="nottested"
9260if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9261  # do not overwrite the value of need_locks provided by the user
9262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9263$as_echo_n "checking if we can lock with hard links... " >&6; }
9264  hard_links=yes
9265  $RM conftest*
9266  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9267  touch conftest.a
9268  ln conftest.a conftest.b 2>&5 || hard_links=no
9269  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9271$as_echo "$hard_links" >&6; }
9272  if test "$hard_links" = no; then
9273    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9274$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9275    need_locks=warn
9276  fi
9277else
9278  need_locks=no
9279fi
9280
9281
9282
9283
9284
9285
9286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9287$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9288
9289  runpath_var=
9290  allow_undefined_flag=
9291  always_export_symbols=no
9292  archive_cmds=
9293  archive_expsym_cmds=
9294  compiler_needs_object=no
9295  enable_shared_with_static_runtimes=no
9296  export_dynamic_flag_spec=
9297  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9298  hardcode_automatic=no
9299  hardcode_direct=no
9300  hardcode_direct_absolute=no
9301  hardcode_libdir_flag_spec=
9302  hardcode_libdir_separator=
9303  hardcode_minus_L=no
9304  hardcode_shlibpath_var=unsupported
9305  inherit_rpath=no
9306  link_all_deplibs=unknown
9307  module_cmds=
9308  module_expsym_cmds=
9309  old_archive_from_new_cmds=
9310  old_archive_from_expsyms_cmds=
9311  thread_safe_flag_spec=
9312  whole_archive_flag_spec=
9313  # include_expsyms should be a list of space-separated symbols to be *always*
9314  # included in the symbol list
9315  include_expsyms=
9316  # exclude_expsyms can be an extended regexp of symbols to exclude
9317  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9318  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9319  # as well as any symbol that contains `d'.
9320  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9321  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9322  # platforms (ab)use it in PIC code, but their linkers get confused if
9323  # the symbol is explicitly referenced.  Since portable code cannot
9324  # rely on this symbol name, it's probably fine to never include it in
9325  # preloaded symbol tables.
9326  # Exclude shared library initialization/finalization symbols.
9327  extract_expsyms_cmds=
9328
9329  case $host_os in
9330  cygwin* | mingw* | pw32* | cegcc*)
9331    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9332    # When not using gcc, we currently assume that we are using
9333    # Microsoft Visual C++.
9334    if test "$GCC" != yes; then
9335      with_gnu_ld=no
9336    fi
9337    ;;
9338  interix*)
9339    # we just hope/assume this is gcc and not c89 (= MSVC++)
9340    with_gnu_ld=yes
9341    ;;
9342  openbsd*)
9343    with_gnu_ld=no
9344    ;;
9345  esac
9346
9347  ld_shlibs=yes
9348
9349  # On some targets, GNU ld is compatible enough with the native linker
9350  # that we're better off using the native interface for both.
9351  lt_use_gnu_ld_interface=no
9352  if test "$with_gnu_ld" = yes; then
9353    case $host_os in
9354      aix*)
9355	# The AIX port of GNU ld has always aspired to compatibility
9356	# with the native linker.  However, as the warning in the GNU ld
9357	# block says, versions before 2.19.5* couldn't really create working
9358	# shared libraries, regardless of the interface used.
9359	case `$LD -v 2>&1` in
9360	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9361	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9362	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9363	  *)
9364	    lt_use_gnu_ld_interface=yes
9365	    ;;
9366	esac
9367	;;
9368      *)
9369	lt_use_gnu_ld_interface=yes
9370	;;
9371    esac
9372  fi
9373
9374  if test "$lt_use_gnu_ld_interface" = yes; then
9375    # If archive_cmds runs LD, not CC, wlarc should be empty
9376    wlarc='${wl}'
9377
9378    # Set some defaults for GNU ld with shared library support. These
9379    # are reset later if shared libraries are not supported. Putting them
9380    # here allows them to be overridden if necessary.
9381    runpath_var=LD_RUN_PATH
9382    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9383    export_dynamic_flag_spec='${wl}--export-dynamic'
9384    # ancient GNU ld didn't support --whole-archive et. al.
9385    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9386      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9387    else
9388      whole_archive_flag_spec=
9389    fi
9390    supports_anon_versioning=no
9391    case `$LD -v 2>&1` in
9392      *GNU\ gold*) supports_anon_versioning=yes ;;
9393      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9394      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9395      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9396      *\ 2.11.*) ;; # other 2.11 versions
9397      *) supports_anon_versioning=yes ;;
9398    esac
9399
9400    # See if GNU ld supports shared libraries.
9401    case $host_os in
9402    aix[3-9]*)
9403      # On AIX/PPC, the GNU linker is very broken
9404      if test "$host_cpu" != ia64; then
9405	ld_shlibs=no
9406	cat <<_LT_EOF 1>&2
9407
9408*** Warning: the GNU linker, at least up to release 2.19, is reported
9409*** to be unable to reliably create shared libraries on AIX.
9410*** Therefore, libtool is disabling shared libraries support.  If you
9411*** really care for shared libraries, you may want to install binutils
9412*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9413*** You will then need to restart the configuration process.
9414
9415_LT_EOF
9416      fi
9417      ;;
9418
9419    amigaos*)
9420      case $host_cpu in
9421      powerpc)
9422            # see comment about AmigaOS4 .so support
9423            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424            archive_expsym_cmds=''
9425        ;;
9426      m68k)
9427            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)'
9428            hardcode_libdir_flag_spec='-L$libdir'
9429            hardcode_minus_L=yes
9430        ;;
9431      esac
9432      ;;
9433
9434    beos*)
9435      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9436	allow_undefined_flag=unsupported
9437	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9438	# support --undefined.  This deserves some investigation.  FIXME
9439	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9440      else
9441	ld_shlibs=no
9442      fi
9443      ;;
9444
9445    cygwin* | mingw* | pw32* | cegcc*)
9446      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9447      # as there is no search path for DLLs.
9448      hardcode_libdir_flag_spec='-L$libdir'
9449      export_dynamic_flag_spec='${wl}--export-all-symbols'
9450      allow_undefined_flag=unsupported
9451      always_export_symbols=no
9452      enable_shared_with_static_runtimes=yes
9453      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9454      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9455
9456      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9457        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9458	# If the export-symbols file already is a .def file (1st line
9459	# is EXPORTS), use it as is; otherwise, prepend...
9460	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9461	  cp $export_symbols $output_objdir/$soname.def;
9462	else
9463	  echo EXPORTS > $output_objdir/$soname.def;
9464	  cat $export_symbols >> $output_objdir/$soname.def;
9465	fi~
9466	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9467      else
9468	ld_shlibs=no
9469      fi
9470      ;;
9471
9472    haiku*)
9473      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474      link_all_deplibs=yes
9475      ;;
9476
9477    interix[3-9]*)
9478      hardcode_direct=no
9479      hardcode_shlibpath_var=no
9480      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9481      export_dynamic_flag_spec='${wl}-E'
9482      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9483      # Instead, shared libraries are loaded at an image base (0x10000000 by
9484      # default) and relocated if they conflict, which is a slow very memory
9485      # consuming and fragmenting process.  To avoid this, we pick a random,
9486      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9487      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9488      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9489      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'
9490      ;;
9491
9492    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9493      tmp_diet=no
9494      if test "$host_os" = linux-dietlibc; then
9495	case $cc_basename in
9496	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9497	esac
9498      fi
9499      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9500	 && test "$tmp_diet" = no
9501      then
9502	tmp_addflag=' $pic_flag'
9503	tmp_sharedflag='-shared'
9504	case $cc_basename,$host_cpu in
9505        pgcc*)				# Portland Group C compiler
9506	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9507	  tmp_addflag=' $pic_flag'
9508	  ;;
9509	pgf77* | pgf90* | pgf95* | pgfortran*)
9510					# Portland Group f77 and f90 compilers
9511	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9512	  tmp_addflag=' $pic_flag -Mnomain' ;;
9513	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9514	  tmp_addflag=' -i_dynamic' ;;
9515	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9516	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9517	ifc* | ifort*)			# Intel Fortran compiler
9518	  tmp_addflag=' -nofor_main' ;;
9519	lf95*)				# Lahey Fortran 8.1
9520	  whole_archive_flag_spec=
9521	  tmp_sharedflag='--shared' ;;
9522	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9523	  tmp_sharedflag='-qmkshrobj'
9524	  tmp_addflag= ;;
9525	nvcc*)	# Cuda Compiler Driver 2.2
9526	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9527	  compiler_needs_object=yes
9528	  ;;
9529	esac
9530	case `$CC -V 2>&1 | sed 5q` in
9531	*Sun\ C*)			# Sun C 5.9
9532	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9533	  compiler_needs_object=yes
9534	  tmp_sharedflag='-G' ;;
9535	*Sun\ F*)			# Sun Fortran 8.3
9536	  tmp_sharedflag='-G' ;;
9537	esac
9538	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9539
9540        if test "x$supports_anon_versioning" = xyes; then
9541          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9542	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9543	    echo "local: *; };" >> $output_objdir/$libname.ver~
9544	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9545        fi
9546
9547	case $cc_basename in
9548	xlf* | bgf* | bgxlf* | mpixlf*)
9549	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9550	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9551	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9553	  if test "x$supports_anon_versioning" = xyes; then
9554	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9555	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9556	      echo "local: *; };" >> $output_objdir/$libname.ver~
9557	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9558	  fi
9559	  ;;
9560	esac
9561      else
9562        ld_shlibs=no
9563      fi
9564      ;;
9565
9566    netbsd*)
9567      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9568	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9569	wlarc=
9570      else
9571	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9573      fi
9574      ;;
9575
9576    solaris*)
9577      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9578	ld_shlibs=no
9579	cat <<_LT_EOF 1>&2
9580
9581*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9582*** create shared libraries on Solaris systems.  Therefore, libtool
9583*** is disabling shared libraries support.  We urge you to upgrade GNU
9584*** binutils to release 2.9.1 or newer.  Another option is to modify
9585*** your PATH or compiler configuration so that the native linker is
9586*** used, and then restart.
9587
9588_LT_EOF
9589      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9590	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9591	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9592      else
9593	ld_shlibs=no
9594      fi
9595      ;;
9596
9597    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9598      case `$LD -v 2>&1` in
9599        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9600	ld_shlibs=no
9601	cat <<_LT_EOF 1>&2
9602
9603*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9604*** reliably create shared libraries on SCO systems.  Therefore, libtool
9605*** is disabling shared libraries support.  We urge you to upgrade GNU
9606*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9607*** your PATH or compiler configuration so that the native linker is
9608*** used, and then restart.
9609
9610_LT_EOF
9611	;;
9612	*)
9613	  # For security reasons, it is highly recommended that you always
9614	  # use absolute paths for naming shared libraries, and exclude the
9615	  # DT_RUNPATH tag from executables and libraries.  But doing so
9616	  # requires that you compile everything twice, which is a pain.
9617	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9618	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9620	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9621	  else
9622	    ld_shlibs=no
9623	  fi
9624	;;
9625      esac
9626      ;;
9627
9628    sunos4*)
9629      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9630      wlarc=
9631      hardcode_direct=yes
9632      hardcode_shlibpath_var=no
9633      ;;
9634
9635    *)
9636      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9637	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9638	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9639      else
9640	ld_shlibs=no
9641      fi
9642      ;;
9643    esac
9644
9645    if test "$ld_shlibs" = no; then
9646      runpath_var=
9647      hardcode_libdir_flag_spec=
9648      export_dynamic_flag_spec=
9649      whole_archive_flag_spec=
9650    fi
9651  else
9652    # PORTME fill in a description of your system's linker (not GNU ld)
9653    case $host_os in
9654    aix3*)
9655      allow_undefined_flag=unsupported
9656      always_export_symbols=yes
9657      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'
9658      # Note: this linker hardcodes the directories in LIBPATH if there
9659      # are no directories specified by -L.
9660      hardcode_minus_L=yes
9661      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9662	# Neither direct hardcoding nor static linking is supported with a
9663	# broken collect2.
9664	hardcode_direct=unsupported
9665      fi
9666      ;;
9667
9668    aix[4-9]*)
9669      if test "$host_cpu" = ia64; then
9670	# On IA64, the linker does run time linking by default, so we don't
9671	# have to do anything special.
9672	aix_use_runtimelinking=no
9673	exp_sym_flag='-Bexport'
9674	no_entry_flag=""
9675      else
9676	# If we're using GNU nm, then we don't want the "-C" option.
9677	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9678	# Also, AIX nm treats weak defined symbols like other global
9679	# defined symbols, whereas GNU nm marks them as "W".
9680	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9681	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9682	else
9683	  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'
9684	fi
9685	aix_use_runtimelinking=no
9686
9687	# Test if we are trying to use run time linking or normal
9688	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9689	# need to do runtime linking.
9690	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9691	  for ld_flag in $LDFLAGS; do
9692	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9693	    aix_use_runtimelinking=yes
9694	    break
9695	  fi
9696	  done
9697	  ;;
9698	esac
9699
9700	exp_sym_flag='-bexport'
9701	no_entry_flag='-bnoentry'
9702      fi
9703
9704      # When large executables or shared objects are built, AIX ld can
9705      # have problems creating the table of contents.  If linking a library
9706      # or program results in "error TOC overflow" add -mminimal-toc to
9707      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9708      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9709
9710      archive_cmds=''
9711      hardcode_direct=yes
9712      hardcode_direct_absolute=yes
9713      hardcode_libdir_separator=':'
9714      link_all_deplibs=yes
9715      file_list_spec='${wl}-f,'
9716
9717      if test "$GCC" = yes; then
9718	case $host_os in aix4.[012]|aix4.[012].*)
9719	# We only want to do this on AIX 4.2 and lower, the check
9720	# below for broken collect2 doesn't work under 4.3+
9721	  collect2name=`${CC} -print-prog-name=collect2`
9722	  if test -f "$collect2name" &&
9723	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9724	  then
9725	  # We have reworked collect2
9726	  :
9727	  else
9728	  # We have old collect2
9729	  hardcode_direct=unsupported
9730	  # It fails to find uninstalled libraries when the uninstalled
9731	  # path is not listed in the libpath.  Setting hardcode_minus_L
9732	  # to unsupported forces relinking
9733	  hardcode_minus_L=yes
9734	  hardcode_libdir_flag_spec='-L$libdir'
9735	  hardcode_libdir_separator=
9736	  fi
9737	  ;;
9738	esac
9739	shared_flag='-shared'
9740	if test "$aix_use_runtimelinking" = yes; then
9741	  shared_flag="$shared_flag "'${wl}-G'
9742	fi
9743      else
9744	# not using gcc
9745	if test "$host_cpu" = ia64; then
9746	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9747	# chokes on -Wl,-G. The following line is correct:
9748	  shared_flag='-G'
9749	else
9750	  if test "$aix_use_runtimelinking" = yes; then
9751	    shared_flag='${wl}-G'
9752	  else
9753	    shared_flag='${wl}-bM:SRE'
9754	  fi
9755	fi
9756      fi
9757
9758      export_dynamic_flag_spec='${wl}-bexpall'
9759      # It seems that -bexpall does not export symbols beginning with
9760      # underscore (_), so it is better to generate a list of symbols to export.
9761      always_export_symbols=yes
9762      if test "$aix_use_runtimelinking" = yes; then
9763	# Warning - without using the other runtime loading flags (-brtl),
9764	# -berok will link without error, but may produce a broken library.
9765	allow_undefined_flag='-berok'
9766        # Determine the default libpath from the value encoded in an
9767        # empty executable.
9768        if test "${lt_cv_aix_libpath+set}" = set; then
9769  aix_libpath=$lt_cv_aix_libpath
9770else
9771  if ${lt_cv_aix_libpath_+:} false; then :
9772  $as_echo_n "(cached) " >&6
9773else
9774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h.  */
9776
9777int
9778main ()
9779{
9780
9781  ;
9782  return 0;
9783}
9784_ACEOF
9785if ac_fn_c_try_link "$LINENO"; then :
9786
9787  lt_aix_libpath_sed='
9788      /Import File Strings/,/^$/ {
9789	  /^0/ {
9790	      s/^0  *\([^ ]*\) *$/\1/
9791	      p
9792	  }
9793      }'
9794  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9795  # Check for a 64-bit object if we didn't find anything.
9796  if test -z "$lt_cv_aix_libpath_"; then
9797    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9798  fi
9799fi
9800rm -f core conftest.err conftest.$ac_objext \
9801    conftest$ac_exeext conftest.$ac_ext
9802  if test -z "$lt_cv_aix_libpath_"; then
9803    lt_cv_aix_libpath_="/usr/lib:/lib"
9804  fi
9805
9806fi
9807
9808  aix_libpath=$lt_cv_aix_libpath_
9809fi
9810
9811        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9812        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9813      else
9814	if test "$host_cpu" = ia64; then
9815	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9816	  allow_undefined_flag="-z nodefs"
9817	  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"
9818	else
9819	 # Determine the default libpath from the value encoded in an
9820	 # empty executable.
9821	 if test "${lt_cv_aix_libpath+set}" = set; then
9822  aix_libpath=$lt_cv_aix_libpath
9823else
9824  if ${lt_cv_aix_libpath_+:} false; then :
9825  $as_echo_n "(cached) " >&6
9826else
9827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828/* end confdefs.h.  */
9829
9830int
9831main ()
9832{
9833
9834  ;
9835  return 0;
9836}
9837_ACEOF
9838if ac_fn_c_try_link "$LINENO"; then :
9839
9840  lt_aix_libpath_sed='
9841      /Import File Strings/,/^$/ {
9842	  /^0/ {
9843	      s/^0  *\([^ ]*\) *$/\1/
9844	      p
9845	  }
9846      }'
9847  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9848  # Check for a 64-bit object if we didn't find anything.
9849  if test -z "$lt_cv_aix_libpath_"; then
9850    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9851  fi
9852fi
9853rm -f core conftest.err conftest.$ac_objext \
9854    conftest$ac_exeext conftest.$ac_ext
9855  if test -z "$lt_cv_aix_libpath_"; then
9856    lt_cv_aix_libpath_="/usr/lib:/lib"
9857  fi
9858
9859fi
9860
9861  aix_libpath=$lt_cv_aix_libpath_
9862fi
9863
9864	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9865	  # Warning - without using the other run time loading flags,
9866	  # -berok will link without error, but may produce a broken library.
9867	  no_undefined_flag=' ${wl}-bernotok'
9868	  allow_undefined_flag=' ${wl}-berok'
9869	  if test "$with_gnu_ld" = yes; then
9870	    # We only use this code for GNU lds that support --whole-archive.
9871	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9872	  else
9873	    # Exported symbols can be pulled into shared objects from archives
9874	    whole_archive_flag_spec='$convenience'
9875	  fi
9876	  archive_cmds_need_lc=yes
9877	  # This is similar to how AIX traditionally builds its shared libraries.
9878	  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'
9879	fi
9880      fi
9881      ;;
9882
9883    amigaos*)
9884      case $host_cpu in
9885      powerpc)
9886            # see comment about AmigaOS4 .so support
9887            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9888            archive_expsym_cmds=''
9889        ;;
9890      m68k)
9891            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)'
9892            hardcode_libdir_flag_spec='-L$libdir'
9893            hardcode_minus_L=yes
9894        ;;
9895      esac
9896      ;;
9897
9898    bsdi[45]*)
9899      export_dynamic_flag_spec=-rdynamic
9900      ;;
9901
9902    cygwin* | mingw* | pw32* | cegcc*)
9903      # When not using gcc, we currently assume that we are using
9904      # Microsoft Visual C++.
9905      # hardcode_libdir_flag_spec is actually meaningless, as there is
9906      # no search path for DLLs.
9907      case $cc_basename in
9908      cl*)
9909	# Native MSVC
9910	hardcode_libdir_flag_spec=' '
9911	allow_undefined_flag=unsupported
9912	always_export_symbols=yes
9913	file_list_spec='@'
9914	# Tell ltmain to make .lib files, not .a files.
9915	libext=lib
9916	# Tell ltmain to make .dll files, not .so files.
9917	shrext_cmds=".dll"
9918	# FIXME: Setting linknames here is a bad hack.
9919	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9920	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9921	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9922	  else
9923	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9924	  fi~
9925	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9926	  linknames='
9927	# The linker will not automatically build a static lib if we build a DLL.
9928	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9929	enable_shared_with_static_runtimes=yes
9930	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9931	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9932	# Don't use ranlib
9933	old_postinstall_cmds='chmod 644 $oldlib'
9934	postlink_cmds='lt_outputfile="@OUTPUT@"~
9935	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9936	  case $lt_outputfile in
9937	    *.exe|*.EXE) ;;
9938	    *)
9939	      lt_outputfile="$lt_outputfile.exe"
9940	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9941	      ;;
9942	  esac~
9943	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9944	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9945	    $RM "$lt_outputfile.manifest";
9946	  fi'
9947	;;
9948      *)
9949	# Assume MSVC wrapper
9950	hardcode_libdir_flag_spec=' '
9951	allow_undefined_flag=unsupported
9952	# Tell ltmain to make .lib files, not .a files.
9953	libext=lib
9954	# Tell ltmain to make .dll files, not .so files.
9955	shrext_cmds=".dll"
9956	# FIXME: Setting linknames here is a bad hack.
9957	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9958	# The linker will automatically build a .lib file if we build a DLL.
9959	old_archive_from_new_cmds='true'
9960	# FIXME: Should let the user specify the lib program.
9961	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9962	enable_shared_with_static_runtimes=yes
9963	;;
9964      esac
9965      ;;
9966
9967    darwin* | rhapsody*)
9968
9969
9970  archive_cmds_need_lc=no
9971  hardcode_direct=no
9972  hardcode_automatic=yes
9973  hardcode_shlibpath_var=unsupported
9974  if test "$lt_cv_ld_force_load" = "yes"; then
9975    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9976
9977  else
9978    whole_archive_flag_spec=''
9979  fi
9980  link_all_deplibs=yes
9981  allow_undefined_flag="$_lt_dar_allow_undefined"
9982  case $cc_basename in
9983     ifort*) _lt_dar_can_shared=yes ;;
9984     *) _lt_dar_can_shared=$GCC ;;
9985  esac
9986  if test "$_lt_dar_can_shared" = "yes"; then
9987    output_verbose_link_cmd=func_echo_all
9988    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9989    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9990    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}"
9991    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}"
9992
9993  else
9994  ld_shlibs=no
9995  fi
9996
9997      ;;
9998
9999    dgux*)
10000      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001      hardcode_libdir_flag_spec='-L$libdir'
10002      hardcode_shlibpath_var=no
10003      ;;
10004
10005    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10006    # support.  Future versions do this automatically, but an explicit c++rt0.o
10007    # does not break anything, and helps significantly (at the cost of a little
10008    # extra space).
10009    freebsd2.2*)
10010      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10011      hardcode_libdir_flag_spec='-R$libdir'
10012      hardcode_direct=yes
10013      hardcode_shlibpath_var=no
10014      ;;
10015
10016    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10017    freebsd2.*)
10018      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10019      hardcode_direct=yes
10020      hardcode_minus_L=yes
10021      hardcode_shlibpath_var=no
10022      ;;
10023
10024    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10025    freebsd* | dragonfly*)
10026      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10027      hardcode_libdir_flag_spec='-R$libdir'
10028      hardcode_direct=yes
10029      hardcode_shlibpath_var=no
10030      ;;
10031
10032    hpux9*)
10033      if test "$GCC" = yes; then
10034	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10035      else
10036	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'
10037      fi
10038      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10039      hardcode_libdir_separator=:
10040      hardcode_direct=yes
10041
10042      # hardcode_minus_L: Not really in the search PATH,
10043      # but as the default location of the library.
10044      hardcode_minus_L=yes
10045      export_dynamic_flag_spec='${wl}-E'
10046      ;;
10047
10048    hpux10*)
10049      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10050	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10051      else
10052	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10053      fi
10054      if test "$with_gnu_ld" = no; then
10055	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10056	hardcode_libdir_separator=:
10057	hardcode_direct=yes
10058	hardcode_direct_absolute=yes
10059	export_dynamic_flag_spec='${wl}-E'
10060	# hardcode_minus_L: Not really in the search PATH,
10061	# but as the default location of the library.
10062	hardcode_minus_L=yes
10063      fi
10064      ;;
10065
10066    hpux11*)
10067      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10068	case $host_cpu in
10069	hppa*64*)
10070	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10071	  ;;
10072	ia64*)
10073	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10074	  ;;
10075	*)
10076	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10077	  ;;
10078	esac
10079      else
10080	case $host_cpu in
10081	hppa*64*)
10082	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10083	  ;;
10084	ia64*)
10085	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10086	  ;;
10087	*)
10088
10089	  # Older versions of the 11.00 compiler do not understand -b yet
10090	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10091	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10092$as_echo_n "checking if $CC understands -b... " >&6; }
10093if ${lt_cv_prog_compiler__b+:} false; then :
10094  $as_echo_n "(cached) " >&6
10095else
10096  lt_cv_prog_compiler__b=no
10097   save_LDFLAGS="$LDFLAGS"
10098   LDFLAGS="$LDFLAGS -b"
10099   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10100   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10101     # The linker can only warn and ignore the option if not recognized
10102     # So say no if there are warnings
10103     if test -s conftest.err; then
10104       # Append any errors to the config.log.
10105       cat conftest.err 1>&5
10106       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10107       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10108       if diff conftest.exp conftest.er2 >/dev/null; then
10109         lt_cv_prog_compiler__b=yes
10110       fi
10111     else
10112       lt_cv_prog_compiler__b=yes
10113     fi
10114   fi
10115   $RM -r conftest*
10116   LDFLAGS="$save_LDFLAGS"
10117
10118fi
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10120$as_echo "$lt_cv_prog_compiler__b" >&6; }
10121
10122if test x"$lt_cv_prog_compiler__b" = xyes; then
10123    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10124else
10125    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10126fi
10127
10128	  ;;
10129	esac
10130      fi
10131      if test "$with_gnu_ld" = no; then
10132	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10133	hardcode_libdir_separator=:
10134
10135	case $host_cpu in
10136	hppa*64*|ia64*)
10137	  hardcode_direct=no
10138	  hardcode_shlibpath_var=no
10139	  ;;
10140	*)
10141	  hardcode_direct=yes
10142	  hardcode_direct_absolute=yes
10143	  export_dynamic_flag_spec='${wl}-E'
10144
10145	  # hardcode_minus_L: Not really in the search PATH,
10146	  # but as the default location of the library.
10147	  hardcode_minus_L=yes
10148	  ;;
10149	esac
10150      fi
10151      ;;
10152
10153    irix5* | irix6* | nonstopux*)
10154      if test "$GCC" = yes; then
10155	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10156	# Try to use the -exported_symbol ld option, if it does not
10157	# work, assume that -exports_file does not work either and
10158	# implicitly export all symbols.
10159	# This should be the same for all languages, so no per-tag cache variable.
10160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10161$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10162if ${lt_cv_irix_exported_symbol+:} false; then :
10163  $as_echo_n "(cached) " >&6
10164else
10165  save_LDFLAGS="$LDFLAGS"
10166	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10167	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168/* end confdefs.h.  */
10169int foo (void) { return 0; }
10170_ACEOF
10171if ac_fn_c_try_link "$LINENO"; then :
10172  lt_cv_irix_exported_symbol=yes
10173else
10174  lt_cv_irix_exported_symbol=no
10175fi
10176rm -f core conftest.err conftest.$ac_objext \
10177    conftest$ac_exeext conftest.$ac_ext
10178           LDFLAGS="$save_LDFLAGS"
10179fi
10180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10181$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10182	if test "$lt_cv_irix_exported_symbol" = yes; then
10183          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10184	fi
10185      else
10186	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10187	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10188      fi
10189      archive_cmds_need_lc='no'
10190      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10191      hardcode_libdir_separator=:
10192      inherit_rpath=yes
10193      link_all_deplibs=yes
10194      ;;
10195
10196    netbsd*)
10197      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10198	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10199      else
10200	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10201      fi
10202      hardcode_libdir_flag_spec='-R$libdir'
10203      hardcode_direct=yes
10204      hardcode_shlibpath_var=no
10205      ;;
10206
10207    newsos6)
10208      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209      hardcode_direct=yes
10210      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10211      hardcode_libdir_separator=:
10212      hardcode_shlibpath_var=no
10213      ;;
10214
10215    *nto* | *qnx*)
10216      ;;
10217
10218    openbsd*)
10219      if test -f /usr/libexec/ld.so; then
10220	hardcode_direct=yes
10221	hardcode_shlibpath_var=no
10222	hardcode_direct_absolute=yes
10223	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10224	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10225	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10226	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10227	  export_dynamic_flag_spec='${wl}-E'
10228	else
10229	  case $host_os in
10230	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10231	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10232	     hardcode_libdir_flag_spec='-R$libdir'
10233	     ;;
10234	   *)
10235	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10236	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10237	     ;;
10238	  esac
10239	fi
10240      else
10241	ld_shlibs=no
10242      fi
10243      ;;
10244
10245    os2*)
10246      hardcode_libdir_flag_spec='-L$libdir'
10247      hardcode_minus_L=yes
10248      allow_undefined_flag=unsupported
10249      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'
10250      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10251      ;;
10252
10253    osf3*)
10254      if test "$GCC" = yes; then
10255	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10256	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10257      else
10258	allow_undefined_flag=' -expect_unresolved \*'
10259	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10260      fi
10261      archive_cmds_need_lc='no'
10262      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10263      hardcode_libdir_separator=:
10264      ;;
10265
10266    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10267      if test "$GCC" = yes; then
10268	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10269	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10270	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10271      else
10272	allow_undefined_flag=' -expect_unresolved \*'
10273	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10274	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~
10275	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10276
10277	# Both c and cxx compiler support -rpath directly
10278	hardcode_libdir_flag_spec='-rpath $libdir'
10279      fi
10280      archive_cmds_need_lc='no'
10281      hardcode_libdir_separator=:
10282      ;;
10283
10284    solaris*)
10285      no_undefined_flag=' -z defs'
10286      if test "$GCC" = yes; then
10287	wlarc='${wl}'
10288	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10289	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10290	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10291      else
10292	case `$CC -V 2>&1` in
10293	*"Compilers 5.0"*)
10294	  wlarc=''
10295	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10298	  ;;
10299	*)
10300	  wlarc='${wl}'
10301	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10302	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10303	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10304	  ;;
10305	esac
10306      fi
10307      hardcode_libdir_flag_spec='-R$libdir'
10308      hardcode_shlibpath_var=no
10309      case $host_os in
10310      solaris2.[0-5] | solaris2.[0-5].*) ;;
10311      *)
10312	# The compiler driver will combine and reorder linker options,
10313	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10314	# but is careful enough not to reorder.
10315	# Supported since Solaris 2.6 (maybe 2.5.1?)
10316	if test "$GCC" = yes; then
10317	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10318	else
10319	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10320	fi
10321	;;
10322      esac
10323      link_all_deplibs=yes
10324      ;;
10325
10326    sunos4*)
10327      if test "x$host_vendor" = xsequent; then
10328	# Use $CC to link under sequent, because it throws in some extra .o
10329	# files that make .init and .fini sections work.
10330	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10331      else
10332	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10333      fi
10334      hardcode_libdir_flag_spec='-L$libdir'
10335      hardcode_direct=yes
10336      hardcode_minus_L=yes
10337      hardcode_shlibpath_var=no
10338      ;;
10339
10340    sysv4)
10341      case $host_vendor in
10342	sni)
10343	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344	  hardcode_direct=yes # is this really true???
10345	;;
10346	siemens)
10347	  ## LD is ld it makes a PLAMLIB
10348	  ## CC just makes a GrossModule.
10349	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10350	  reload_cmds='$CC -r -o $output$reload_objs'
10351	  hardcode_direct=no
10352        ;;
10353	motorola)
10354	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10356	;;
10357      esac
10358      runpath_var='LD_RUN_PATH'
10359      hardcode_shlibpath_var=no
10360      ;;
10361
10362    sysv4.3*)
10363      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364      hardcode_shlibpath_var=no
10365      export_dynamic_flag_spec='-Bexport'
10366      ;;
10367
10368    sysv4*MP*)
10369      if test -d /usr/nec; then
10370	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371	hardcode_shlibpath_var=no
10372	runpath_var=LD_RUN_PATH
10373	hardcode_runpath_var=yes
10374	ld_shlibs=yes
10375      fi
10376      ;;
10377
10378    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10379      no_undefined_flag='${wl}-z,text'
10380      archive_cmds_need_lc=no
10381      hardcode_shlibpath_var=no
10382      runpath_var='LD_RUN_PATH'
10383
10384      if test "$GCC" = yes; then
10385	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387      else
10388	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10389	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10390      fi
10391      ;;
10392
10393    sysv5* | sco3.2v5* | sco5v6*)
10394      # Note: We can NOT use -z defs as we might desire, because we do not
10395      # link with -lc, and that would cause any symbols used from libc to
10396      # always be unresolved, which means just about no library would
10397      # ever link correctly.  If we're not using GNU ld we use -z text
10398      # though, which does catch some bad symbols but isn't as heavy-handed
10399      # as -z defs.
10400      no_undefined_flag='${wl}-z,text'
10401      allow_undefined_flag='${wl}-z,nodefs'
10402      archive_cmds_need_lc=no
10403      hardcode_shlibpath_var=no
10404      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10405      hardcode_libdir_separator=':'
10406      link_all_deplibs=yes
10407      export_dynamic_flag_spec='${wl}-Bexport'
10408      runpath_var='LD_RUN_PATH'
10409
10410      if test "$GCC" = yes; then
10411	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10412	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10413      else
10414	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10415	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10416      fi
10417      ;;
10418
10419    uts4*)
10420      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10421      hardcode_libdir_flag_spec='-L$libdir'
10422      hardcode_shlibpath_var=no
10423      ;;
10424
10425    *)
10426      ld_shlibs=no
10427      ;;
10428    esac
10429
10430    if test x$host_vendor = xsni; then
10431      case $host in
10432      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10433	export_dynamic_flag_spec='${wl}-Blargedynsym'
10434	;;
10435      esac
10436    fi
10437  fi
10438
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10440$as_echo "$ld_shlibs" >&6; }
10441test "$ld_shlibs" = no && can_build_shared=no
10442
10443with_gnu_ld=$with_gnu_ld
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459#
10460# Do we need to explicitly link libc?
10461#
10462case "x$archive_cmds_need_lc" in
10463x|xyes)
10464  # Assume -lc should be added
10465  archive_cmds_need_lc=yes
10466
10467  if test "$enable_shared" = yes && test "$GCC" = yes; then
10468    case $archive_cmds in
10469    *'~'*)
10470      # FIXME: we may have to deal with multi-command sequences.
10471      ;;
10472    '$CC '*)
10473      # Test whether the compiler implicitly links with -lc since on some
10474      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10475      # to ld, don't add -lc before -lgcc.
10476      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10477$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10478if ${lt_cv_archive_cmds_need_lc+:} false; then :
10479  $as_echo_n "(cached) " >&6
10480else
10481  $RM conftest*
10482	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10483
10484	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10485  (eval $ac_compile) 2>&5
10486  ac_status=$?
10487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10488  test $ac_status = 0; } 2>conftest.err; then
10489	  soname=conftest
10490	  lib=conftest
10491	  libobjs=conftest.$ac_objext
10492	  deplibs=
10493	  wl=$lt_prog_compiler_wl
10494	  pic_flag=$lt_prog_compiler_pic
10495	  compiler_flags=-v
10496	  linker_flags=-v
10497	  verstring=
10498	  output_objdir=.
10499	  libname=conftest
10500	  lt_save_allow_undefined_flag=$allow_undefined_flag
10501	  allow_undefined_flag=
10502	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10503  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10504  ac_status=$?
10505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10506  test $ac_status = 0; }
10507	  then
10508	    lt_cv_archive_cmds_need_lc=no
10509	  else
10510	    lt_cv_archive_cmds_need_lc=yes
10511	  fi
10512	  allow_undefined_flag=$lt_save_allow_undefined_flag
10513	else
10514	  cat conftest.err 1>&5
10515	fi
10516	$RM conftest*
10517
10518fi
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10520$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10521      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10522      ;;
10523    esac
10524  fi
10525  ;;
10526esac
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10680$as_echo_n "checking dynamic linker characteristics... " >&6; }
10681
10682if test "$GCC" = yes; then
10683  case $host_os in
10684    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10685    *) lt_awk_arg="/^libraries:/" ;;
10686  esac
10687  case $host_os in
10688    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10689    *) lt_sed_strip_eq="s,=/,/,g" ;;
10690  esac
10691  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10692  case $lt_search_path_spec in
10693  *\;*)
10694    # if the path contains ";" then we assume it to be the separator
10695    # otherwise default to the standard path separator (i.e. ":") - it is
10696    # assumed that no part of a normal pathname contains ";" but that should
10697    # okay in the real world where ";" in dirpaths is itself problematic.
10698    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10699    ;;
10700  *)
10701    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10702    ;;
10703  esac
10704  # Ok, now we have the path, separated by spaces, we can step through it
10705  # and add multilib dir if necessary.
10706  lt_tmp_lt_search_path_spec=
10707  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10708  for lt_sys_path in $lt_search_path_spec; do
10709    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10710      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10711    else
10712      test -d "$lt_sys_path" && \
10713	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10714    fi
10715  done
10716  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10717BEGIN {RS=" "; FS="/|\n";} {
10718  lt_foo="";
10719  lt_count=0;
10720  for (lt_i = NF; lt_i > 0; lt_i--) {
10721    if ($lt_i != "" && $lt_i != ".") {
10722      if ($lt_i == "..") {
10723        lt_count++;
10724      } else {
10725        if (lt_count == 0) {
10726          lt_foo="/" $lt_i lt_foo;
10727        } else {
10728          lt_count--;
10729        }
10730      }
10731    }
10732  }
10733  if (lt_foo != "") { lt_freq[lt_foo]++; }
10734  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10735}'`
10736  # AWK program above erroneously prepends '/' to C:/dos/paths
10737  # for these hosts.
10738  case $host_os in
10739    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10740      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10741  esac
10742  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10743else
10744  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10745fi
10746library_names_spec=
10747libname_spec='lib$name'
10748soname_spec=
10749shrext_cmds=".so"
10750postinstall_cmds=
10751postuninstall_cmds=
10752finish_cmds=
10753finish_eval=
10754shlibpath_var=
10755shlibpath_overrides_runpath=unknown
10756version_type=none
10757dynamic_linker="$host_os ld.so"
10758sys_lib_dlsearch_path_spec="/lib /usr/lib"
10759need_lib_prefix=unknown
10760hardcode_into_libs=no
10761
10762# when you set need_version to no, make sure it does not cause -set_version
10763# flags to be left without arguments
10764need_version=unknown
10765
10766case $host_os in
10767aix3*)
10768  version_type=linux # correct to gnu/linux during the next big refactor
10769  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10770  shlibpath_var=LIBPATH
10771
10772  # AIX 3 has no versioning support, so we append a major version to the name.
10773  soname_spec='${libname}${release}${shared_ext}$major'
10774  ;;
10775
10776aix[4-9]*)
10777  version_type=linux # correct to gnu/linux during the next big refactor
10778  need_lib_prefix=no
10779  need_version=no
10780  hardcode_into_libs=yes
10781  if test "$host_cpu" = ia64; then
10782    # AIX 5 supports IA64
10783    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10784    shlibpath_var=LD_LIBRARY_PATH
10785  else
10786    # With GCC up to 2.95.x, collect2 would create an import file
10787    # for dependence libraries.  The import file would start with
10788    # the line `#! .'.  This would cause the generated library to
10789    # depend on `.', always an invalid library.  This was fixed in
10790    # development snapshots of GCC prior to 3.0.
10791    case $host_os in
10792      aix4 | aix4.[01] | aix4.[01].*)
10793      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10794	   echo ' yes '
10795	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10796	:
10797      else
10798	can_build_shared=no
10799      fi
10800      ;;
10801    esac
10802    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10803    # soname into executable. Probably we can add versioning support to
10804    # collect2, so additional links can be useful in future.
10805    if test "$aix_use_runtimelinking" = yes; then
10806      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10807      # instead of lib<name>.a to let people know that these are not
10808      # typical AIX shared libraries.
10809      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810    else
10811      # We preserve .a as extension for shared libraries through AIX4.2
10812      # and later when we are not doing run time linking.
10813      library_names_spec='${libname}${release}.a $libname.a'
10814      soname_spec='${libname}${release}${shared_ext}$major'
10815    fi
10816    shlibpath_var=LIBPATH
10817  fi
10818  ;;
10819
10820amigaos*)
10821  case $host_cpu in
10822  powerpc)
10823    # Since July 2007 AmigaOS4 officially supports .so libraries.
10824    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10825    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826    ;;
10827  m68k)
10828    library_names_spec='$libname.ixlibrary $libname.a'
10829    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10830    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10831    ;;
10832  esac
10833  ;;
10834
10835beos*)
10836  library_names_spec='${libname}${shared_ext}'
10837  dynamic_linker="$host_os ld.so"
10838  shlibpath_var=LIBRARY_PATH
10839  ;;
10840
10841bsdi[45]*)
10842  version_type=linux # correct to gnu/linux during the next big refactor
10843  need_version=no
10844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845  soname_spec='${libname}${release}${shared_ext}$major'
10846  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10847  shlibpath_var=LD_LIBRARY_PATH
10848  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10849  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10850  # the default ld.so.conf also contains /usr/contrib/lib and
10851  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10852  # libtool to hard-code these into programs
10853  ;;
10854
10855cygwin* | mingw* | pw32* | cegcc*)
10856  version_type=windows
10857  shrext_cmds=".dll"
10858  need_version=no
10859  need_lib_prefix=no
10860
10861  case $GCC,$cc_basename in
10862  yes,*)
10863    # gcc
10864    library_names_spec='$libname.dll.a'
10865    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10866    postinstall_cmds='base_file=`basename \${file}`~
10867      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10868      dldir=$destdir/`dirname \$dlpath`~
10869      test -d \$dldir || mkdir -p \$dldir~
10870      $install_prog $dir/$dlname \$dldir/$dlname~
10871      chmod a+x \$dldir/$dlname~
10872      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10873        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10874      fi'
10875    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10876      dlpath=$dir/\$dldll~
10877       $RM \$dlpath'
10878    shlibpath_overrides_runpath=yes
10879
10880    case $host_os in
10881    cygwin*)
10882      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10883      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10884
10885      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10886      ;;
10887    mingw* | cegcc*)
10888      # MinGW DLLs use traditional 'lib' prefix
10889      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10890      ;;
10891    pw32*)
10892      # pw32 DLLs use 'pw' prefix rather than 'lib'
10893      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10894      ;;
10895    esac
10896    dynamic_linker='Win32 ld.exe'
10897    ;;
10898
10899  *,cl*)
10900    # Native MSVC
10901    libname_spec='$name'
10902    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10903    library_names_spec='${libname}.dll.lib'
10904
10905    case $build_os in
10906    mingw*)
10907      sys_lib_search_path_spec=
10908      lt_save_ifs=$IFS
10909      IFS=';'
10910      for lt_path in $LIB
10911      do
10912        IFS=$lt_save_ifs
10913        # Let DOS variable expansion print the short 8.3 style file name.
10914        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10915        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10916      done
10917      IFS=$lt_save_ifs
10918      # Convert to MSYS style.
10919      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10920      ;;
10921    cygwin*)
10922      # Convert to unix form, then to dos form, then back to unix form
10923      # but this time dos style (no spaces!) so that the unix form looks
10924      # like /cygdrive/c/PROGRA~1:/cygdr...
10925      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10926      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10927      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10928      ;;
10929    *)
10930      sys_lib_search_path_spec="$LIB"
10931      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10932        # It is most probably a Windows format PATH.
10933        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10934      else
10935        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10936      fi
10937      # FIXME: find the short name or the path components, as spaces are
10938      # common. (e.g. "Program Files" -> "PROGRA~1")
10939      ;;
10940    esac
10941
10942    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10943    postinstall_cmds='base_file=`basename \${file}`~
10944      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10945      dldir=$destdir/`dirname \$dlpath`~
10946      test -d \$dldir || mkdir -p \$dldir~
10947      $install_prog $dir/$dlname \$dldir/$dlname'
10948    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10949      dlpath=$dir/\$dldll~
10950       $RM \$dlpath'
10951    shlibpath_overrides_runpath=yes
10952    dynamic_linker='Win32 link.exe'
10953    ;;
10954
10955  *)
10956    # Assume MSVC wrapper
10957    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10958    dynamic_linker='Win32 ld.exe'
10959    ;;
10960  esac
10961  # FIXME: first we should search . and the directory the executable is in
10962  shlibpath_var=PATH
10963  ;;
10964
10965darwin* | rhapsody*)
10966  dynamic_linker="$host_os dyld"
10967  version_type=darwin
10968  need_lib_prefix=no
10969  need_version=no
10970  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10971  soname_spec='${libname}${release}${major}$shared_ext'
10972  shlibpath_overrides_runpath=yes
10973  shlibpath_var=DYLD_LIBRARY_PATH
10974  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10975
10976  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10977  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10978  ;;
10979
10980dgux*)
10981  version_type=linux # correct to gnu/linux during the next big refactor
10982  need_lib_prefix=no
10983  need_version=no
10984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10985  soname_spec='${libname}${release}${shared_ext}$major'
10986  shlibpath_var=LD_LIBRARY_PATH
10987  ;;
10988
10989freebsd* | dragonfly*)
10990  # DragonFly does not have aout.  When/if they implement a new
10991  # versioning mechanism, adjust this.
10992  if test -x /usr/bin/objformat; then
10993    objformat=`/usr/bin/objformat`
10994  else
10995    case $host_os in
10996    freebsd[23].*) objformat=aout ;;
10997    *) objformat=elf ;;
10998    esac
10999  fi
11000  version_type=freebsd-$objformat
11001  case $version_type in
11002    freebsd-elf*)
11003      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11004      need_version=no
11005      need_lib_prefix=no
11006      ;;
11007    freebsd-*)
11008      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11009      need_version=yes
11010      ;;
11011  esac
11012  shlibpath_var=LD_LIBRARY_PATH
11013  case $host_os in
11014  freebsd2.*)
11015    shlibpath_overrides_runpath=yes
11016    ;;
11017  freebsd3.[01]* | freebsdelf3.[01]*)
11018    shlibpath_overrides_runpath=yes
11019    hardcode_into_libs=yes
11020    ;;
11021  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11022  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11023    shlibpath_overrides_runpath=no
11024    hardcode_into_libs=yes
11025    ;;
11026  *) # from 4.6 on, and DragonFly
11027    shlibpath_overrides_runpath=yes
11028    hardcode_into_libs=yes
11029    ;;
11030  esac
11031  ;;
11032
11033gnu*)
11034  version_type=linux # correct to gnu/linux during the next big refactor
11035  need_lib_prefix=no
11036  need_version=no
11037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11038  soname_spec='${libname}${release}${shared_ext}$major'
11039  shlibpath_var=LD_LIBRARY_PATH
11040  shlibpath_overrides_runpath=no
11041  hardcode_into_libs=yes
11042  ;;
11043
11044haiku*)
11045  version_type=linux # correct to gnu/linux during the next big refactor
11046  need_lib_prefix=no
11047  need_version=no
11048  dynamic_linker="$host_os runtime_loader"
11049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11050  soname_spec='${libname}${release}${shared_ext}$major'
11051  shlibpath_var=LIBRARY_PATH
11052  shlibpath_overrides_runpath=yes
11053  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11054  hardcode_into_libs=yes
11055  ;;
11056
11057hpux9* | hpux10* | hpux11*)
11058  # Give a soname corresponding to the major version so that dld.sl refuses to
11059  # link against other versions.
11060  version_type=sunos
11061  need_lib_prefix=no
11062  need_version=no
11063  case $host_cpu in
11064  ia64*)
11065    shrext_cmds='.so'
11066    hardcode_into_libs=yes
11067    dynamic_linker="$host_os dld.so"
11068    shlibpath_var=LD_LIBRARY_PATH
11069    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11070    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071    soname_spec='${libname}${release}${shared_ext}$major'
11072    if test "X$HPUX_IA64_MODE" = X32; then
11073      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11074    else
11075      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11076    fi
11077    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11078    ;;
11079  hppa*64*)
11080    shrext_cmds='.sl'
11081    hardcode_into_libs=yes
11082    dynamic_linker="$host_os dld.sl"
11083    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11084    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11085    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086    soname_spec='${libname}${release}${shared_ext}$major'
11087    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11088    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11089    ;;
11090  *)
11091    shrext_cmds='.sl'
11092    dynamic_linker="$host_os dld.sl"
11093    shlibpath_var=SHLIB_PATH
11094    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11095    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096    soname_spec='${libname}${release}${shared_ext}$major'
11097    ;;
11098  esac
11099  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11100  postinstall_cmds='chmod 555 $lib'
11101  # or fails outright, so override atomically:
11102  install_override_mode=555
11103  ;;
11104
11105interix[3-9]*)
11106  version_type=linux # correct to gnu/linux during the next big refactor
11107  need_lib_prefix=no
11108  need_version=no
11109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11110  soname_spec='${libname}${release}${shared_ext}$major'
11111  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11112  shlibpath_var=LD_LIBRARY_PATH
11113  shlibpath_overrides_runpath=no
11114  hardcode_into_libs=yes
11115  ;;
11116
11117irix5* | irix6* | nonstopux*)
11118  case $host_os in
11119    nonstopux*) version_type=nonstopux ;;
11120    *)
11121	if test "$lt_cv_prog_gnu_ld" = yes; then
11122		version_type=linux # correct to gnu/linux during the next big refactor
11123	else
11124		version_type=irix
11125	fi ;;
11126  esac
11127  need_lib_prefix=no
11128  need_version=no
11129  soname_spec='${libname}${release}${shared_ext}$major'
11130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11131  case $host_os in
11132  irix5* | nonstopux*)
11133    libsuff= shlibsuff=
11134    ;;
11135  *)
11136    case $LD in # libtool.m4 will add one of these switches to LD
11137    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11138      libsuff= shlibsuff= libmagic=32-bit;;
11139    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11140      libsuff=32 shlibsuff=N32 libmagic=N32;;
11141    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11142      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11143    *) libsuff= shlibsuff= libmagic=never-match;;
11144    esac
11145    ;;
11146  esac
11147  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11148  shlibpath_overrides_runpath=no
11149  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11150  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11151  hardcode_into_libs=yes
11152  ;;
11153
11154# No shared lib support for Linux oldld, aout, or coff.
11155linux*oldld* | linux*aout* | linux*coff*)
11156  dynamic_linker=no
11157  ;;
11158
11159# This must be glibc/ELF.
11160linux* | k*bsd*-gnu | kopensolaris*-gnu)
11161  version_type=linux # correct to gnu/linux during the next big refactor
11162  need_lib_prefix=no
11163  need_version=no
11164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165  soname_spec='${libname}${release}${shared_ext}$major'
11166  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11167  shlibpath_var=LD_LIBRARY_PATH
11168  shlibpath_overrides_runpath=no
11169
11170  # Some binutils ld are patched to set DT_RUNPATH
11171  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11172  $as_echo_n "(cached) " >&6
11173else
11174  lt_cv_shlibpath_overrides_runpath=no
11175    save_LDFLAGS=$LDFLAGS
11176    save_libdir=$libdir
11177    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11178	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11179    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180/* end confdefs.h.  */
11181
11182int
11183main ()
11184{
11185
11186  ;
11187  return 0;
11188}
11189_ACEOF
11190if ac_fn_c_try_link "$LINENO"; then :
11191  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11192  lt_cv_shlibpath_overrides_runpath=yes
11193fi
11194fi
11195rm -f core conftest.err conftest.$ac_objext \
11196    conftest$ac_exeext conftest.$ac_ext
11197    LDFLAGS=$save_LDFLAGS
11198    libdir=$save_libdir
11199
11200fi
11201
11202  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11203
11204  # This implies no fast_install, which is unacceptable.
11205  # Some rework will be needed to allow for fast_install
11206  # before this can be enabled.
11207  hardcode_into_libs=yes
11208
11209  # Append ld.so.conf contents to the search path
11210  if test -f /etc/ld.so.conf; then
11211    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11212    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11213  fi
11214
11215  # We used to test for /lib/ld.so.1 and disable shared libraries on
11216  # powerpc, because MkLinux only supported shared libraries with the
11217  # GNU dynamic linker.  Since this was broken with cross compilers,
11218  # most powerpc-linux boxes support dynamic linking these days and
11219  # people can always --disable-shared, the test was removed, and we
11220  # assume the GNU/Linux dynamic linker is in use.
11221  dynamic_linker='GNU/Linux ld.so'
11222  ;;
11223
11224netbsd*)
11225  version_type=sunos
11226  need_lib_prefix=no
11227  need_version=no
11228  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11229    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11230    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11231    dynamic_linker='NetBSD (a.out) ld.so'
11232  else
11233    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11234    soname_spec='${libname}${release}${shared_ext}$major'
11235    dynamic_linker='NetBSD ld.elf_so'
11236  fi
11237  shlibpath_var=LD_LIBRARY_PATH
11238  shlibpath_overrides_runpath=yes
11239  hardcode_into_libs=yes
11240  ;;
11241
11242newsos6)
11243  version_type=linux # correct to gnu/linux during the next big refactor
11244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245  shlibpath_var=LD_LIBRARY_PATH
11246  shlibpath_overrides_runpath=yes
11247  ;;
11248
11249*nto* | *qnx*)
11250  version_type=qnx
11251  need_lib_prefix=no
11252  need_version=no
11253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254  soname_spec='${libname}${release}${shared_ext}$major'
11255  shlibpath_var=LD_LIBRARY_PATH
11256  shlibpath_overrides_runpath=no
11257  hardcode_into_libs=yes
11258  dynamic_linker='ldqnx.so'
11259  ;;
11260
11261openbsd*)
11262  version_type=sunos
11263  sys_lib_dlsearch_path_spec="/usr/lib"
11264  need_lib_prefix=no
11265  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11266  case $host_os in
11267    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11268    *)				need_version=no  ;;
11269  esac
11270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11271  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11272  shlibpath_var=LD_LIBRARY_PATH
11273  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11274    case $host_os in
11275      openbsd2.[89] | openbsd2.[89].*)
11276	shlibpath_overrides_runpath=no
11277	;;
11278      *)
11279	shlibpath_overrides_runpath=yes
11280	;;
11281      esac
11282  else
11283    shlibpath_overrides_runpath=yes
11284  fi
11285  ;;
11286
11287os2*)
11288  libname_spec='$name'
11289  shrext_cmds=".dll"
11290  need_lib_prefix=no
11291  library_names_spec='$libname${shared_ext} $libname.a'
11292  dynamic_linker='OS/2 ld.exe'
11293  shlibpath_var=LIBPATH
11294  ;;
11295
11296osf3* | osf4* | osf5*)
11297  version_type=osf
11298  need_lib_prefix=no
11299  need_version=no
11300  soname_spec='${libname}${release}${shared_ext}$major'
11301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302  shlibpath_var=LD_LIBRARY_PATH
11303  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11304  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11305  ;;
11306
11307rdos*)
11308  dynamic_linker=no
11309  ;;
11310
11311solaris*)
11312  version_type=linux # correct to gnu/linux during the next big refactor
11313  need_lib_prefix=no
11314  need_version=no
11315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316  soname_spec='${libname}${release}${shared_ext}$major'
11317  shlibpath_var=LD_LIBRARY_PATH
11318  shlibpath_overrides_runpath=yes
11319  hardcode_into_libs=yes
11320  # ldd complains unless libraries are executable
11321  postinstall_cmds='chmod +x $lib'
11322  ;;
11323
11324sunos4*)
11325  version_type=sunos
11326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11327  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11328  shlibpath_var=LD_LIBRARY_PATH
11329  shlibpath_overrides_runpath=yes
11330  if test "$with_gnu_ld" = yes; then
11331    need_lib_prefix=no
11332  fi
11333  need_version=yes
11334  ;;
11335
11336sysv4 | sysv4.3*)
11337  version_type=linux # correct to gnu/linux during the next big refactor
11338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339  soname_spec='${libname}${release}${shared_ext}$major'
11340  shlibpath_var=LD_LIBRARY_PATH
11341  case $host_vendor in
11342    sni)
11343      shlibpath_overrides_runpath=no
11344      need_lib_prefix=no
11345      runpath_var=LD_RUN_PATH
11346      ;;
11347    siemens)
11348      need_lib_prefix=no
11349      ;;
11350    motorola)
11351      need_lib_prefix=no
11352      need_version=no
11353      shlibpath_overrides_runpath=no
11354      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11355      ;;
11356  esac
11357  ;;
11358
11359sysv4*MP*)
11360  if test -d /usr/nec ;then
11361    version_type=linux # correct to gnu/linux during the next big refactor
11362    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11363    soname_spec='$libname${shared_ext}.$major'
11364    shlibpath_var=LD_LIBRARY_PATH
11365  fi
11366  ;;
11367
11368sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11369  version_type=freebsd-elf
11370  need_lib_prefix=no
11371  need_version=no
11372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11373  soname_spec='${libname}${release}${shared_ext}$major'
11374  shlibpath_var=LD_LIBRARY_PATH
11375  shlibpath_overrides_runpath=yes
11376  hardcode_into_libs=yes
11377  if test "$with_gnu_ld" = yes; then
11378    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11379  else
11380    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11381    case $host_os in
11382      sco3.2v5*)
11383        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11384	;;
11385    esac
11386  fi
11387  sys_lib_dlsearch_path_spec='/usr/lib'
11388  ;;
11389
11390tpf*)
11391  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11392  version_type=linux # correct to gnu/linux during the next big refactor
11393  need_lib_prefix=no
11394  need_version=no
11395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396  shlibpath_var=LD_LIBRARY_PATH
11397  shlibpath_overrides_runpath=no
11398  hardcode_into_libs=yes
11399  ;;
11400
11401uts4*)
11402  version_type=linux # correct to gnu/linux during the next big refactor
11403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404  soname_spec='${libname}${release}${shared_ext}$major'
11405  shlibpath_var=LD_LIBRARY_PATH
11406  ;;
11407
11408*)
11409  dynamic_linker=no
11410  ;;
11411esac
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11413$as_echo "$dynamic_linker" >&6; }
11414test "$dynamic_linker" = no && can_build_shared=no
11415
11416variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11417if test "$GCC" = yes; then
11418  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11419fi
11420
11421if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11422  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11423fi
11424if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11425  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11426fi
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11520$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11521hardcode_action=
11522if test -n "$hardcode_libdir_flag_spec" ||
11523   test -n "$runpath_var" ||
11524   test "X$hardcode_automatic" = "Xyes" ; then
11525
11526  # We can hardcode non-existent directories.
11527  if test "$hardcode_direct" != no &&
11528     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11529     # have to relink, otherwise we might link with an installed library
11530     # when we should be linking with a yet-to-be-installed one
11531     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11532     test "$hardcode_minus_L" != no; then
11533    # Linking always hardcodes the temporary library directory.
11534    hardcode_action=relink
11535  else
11536    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11537    hardcode_action=immediate
11538  fi
11539else
11540  # We cannot hardcode anything, or else we can only hardcode existing
11541  # directories.
11542  hardcode_action=unsupported
11543fi
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11545$as_echo "$hardcode_action" >&6; }
11546
11547if test "$hardcode_action" = relink ||
11548   test "$inherit_rpath" = yes; then
11549  # Fast installation is not supported
11550  enable_fast_install=no
11551elif test "$shlibpath_overrides_runpath" = yes ||
11552     test "$enable_shared" = no; then
11553  # Fast installation is not necessary
11554  enable_fast_install=needless
11555fi
11556
11557
11558
11559
11560
11561
11562  if test "x$enable_dlopen" != xyes; then
11563  enable_dlopen=unknown
11564  enable_dlopen_self=unknown
11565  enable_dlopen_self_static=unknown
11566else
11567  lt_cv_dlopen=no
11568  lt_cv_dlopen_libs=
11569
11570  case $host_os in
11571  beos*)
11572    lt_cv_dlopen="load_add_on"
11573    lt_cv_dlopen_libs=
11574    lt_cv_dlopen_self=yes
11575    ;;
11576
11577  mingw* | pw32* | cegcc*)
11578    lt_cv_dlopen="LoadLibrary"
11579    lt_cv_dlopen_libs=
11580    ;;
11581
11582  cygwin*)
11583    lt_cv_dlopen="dlopen"
11584    lt_cv_dlopen_libs=
11585    ;;
11586
11587  darwin*)
11588  # if libdl is installed we need to link against it
11589    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11590$as_echo_n "checking for dlopen in -ldl... " >&6; }
11591if ${ac_cv_lib_dl_dlopen+:} false; then :
11592  $as_echo_n "(cached) " >&6
11593else
11594  ac_check_lib_save_LIBS=$LIBS
11595LIBS="-ldl  $LIBS"
11596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h.  */
11598
11599/* Override any GCC internal prototype to avoid an error.
11600   Use char because int might match the return type of a GCC
11601   builtin and then its argument prototype would still apply.  */
11602#ifdef __cplusplus
11603extern "C"
11604#endif
11605char dlopen ();
11606int
11607main ()
11608{
11609return dlopen ();
11610  ;
11611  return 0;
11612}
11613_ACEOF
11614if ac_fn_c_try_link "$LINENO"; then :
11615  ac_cv_lib_dl_dlopen=yes
11616else
11617  ac_cv_lib_dl_dlopen=no
11618fi
11619rm -f core conftest.err conftest.$ac_objext \
11620    conftest$ac_exeext conftest.$ac_ext
11621LIBS=$ac_check_lib_save_LIBS
11622fi
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11624$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11625if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11626  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11627else
11628
11629    lt_cv_dlopen="dyld"
11630    lt_cv_dlopen_libs=
11631    lt_cv_dlopen_self=yes
11632
11633fi
11634
11635    ;;
11636
11637  *)
11638    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11639if test "x$ac_cv_func_shl_load" = xyes; then :
11640  lt_cv_dlopen="shl_load"
11641else
11642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11643$as_echo_n "checking for shl_load in -ldld... " >&6; }
11644if ${ac_cv_lib_dld_shl_load+:} false; then :
11645  $as_echo_n "(cached) " >&6
11646else
11647  ac_check_lib_save_LIBS=$LIBS
11648LIBS="-ldld  $LIBS"
11649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650/* end confdefs.h.  */
11651
11652/* Override any GCC internal prototype to avoid an error.
11653   Use char because int might match the return type of a GCC
11654   builtin and then its argument prototype would still apply.  */
11655#ifdef __cplusplus
11656extern "C"
11657#endif
11658char shl_load ();
11659int
11660main ()
11661{
11662return shl_load ();
11663  ;
11664  return 0;
11665}
11666_ACEOF
11667if ac_fn_c_try_link "$LINENO"; then :
11668  ac_cv_lib_dld_shl_load=yes
11669else
11670  ac_cv_lib_dld_shl_load=no
11671fi
11672rm -f core conftest.err conftest.$ac_objext \
11673    conftest$ac_exeext conftest.$ac_ext
11674LIBS=$ac_check_lib_save_LIBS
11675fi
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11677$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11678if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11679  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11680else
11681  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11682if test "x$ac_cv_func_dlopen" = xyes; then :
11683  lt_cv_dlopen="dlopen"
11684else
11685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11686$as_echo_n "checking for dlopen in -ldl... " >&6; }
11687if ${ac_cv_lib_dl_dlopen+:} false; then :
11688  $as_echo_n "(cached) " >&6
11689else
11690  ac_check_lib_save_LIBS=$LIBS
11691LIBS="-ldl  $LIBS"
11692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693/* end confdefs.h.  */
11694
11695/* Override any GCC internal prototype to avoid an error.
11696   Use char because int might match the return type of a GCC
11697   builtin and then its argument prototype would still apply.  */
11698#ifdef __cplusplus
11699extern "C"
11700#endif
11701char dlopen ();
11702int
11703main ()
11704{
11705return dlopen ();
11706  ;
11707  return 0;
11708}
11709_ACEOF
11710if ac_fn_c_try_link "$LINENO"; then :
11711  ac_cv_lib_dl_dlopen=yes
11712else
11713  ac_cv_lib_dl_dlopen=no
11714fi
11715rm -f core conftest.err conftest.$ac_objext \
11716    conftest$ac_exeext conftest.$ac_ext
11717LIBS=$ac_check_lib_save_LIBS
11718fi
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11720$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11721if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11722  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11723else
11724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11725$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11726if ${ac_cv_lib_svld_dlopen+:} false; then :
11727  $as_echo_n "(cached) " >&6
11728else
11729  ac_check_lib_save_LIBS=$LIBS
11730LIBS="-lsvld  $LIBS"
11731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732/* end confdefs.h.  */
11733
11734/* Override any GCC internal prototype to avoid an error.
11735   Use char because int might match the return type of a GCC
11736   builtin and then its argument prototype would still apply.  */
11737#ifdef __cplusplus
11738extern "C"
11739#endif
11740char dlopen ();
11741int
11742main ()
11743{
11744return dlopen ();
11745  ;
11746  return 0;
11747}
11748_ACEOF
11749if ac_fn_c_try_link "$LINENO"; then :
11750  ac_cv_lib_svld_dlopen=yes
11751else
11752  ac_cv_lib_svld_dlopen=no
11753fi
11754rm -f core conftest.err conftest.$ac_objext \
11755    conftest$ac_exeext conftest.$ac_ext
11756LIBS=$ac_check_lib_save_LIBS
11757fi
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11759$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11760if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11761  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11762else
11763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11764$as_echo_n "checking for dld_link in -ldld... " >&6; }
11765if ${ac_cv_lib_dld_dld_link+:} false; then :
11766  $as_echo_n "(cached) " >&6
11767else
11768  ac_check_lib_save_LIBS=$LIBS
11769LIBS="-ldld  $LIBS"
11770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771/* end confdefs.h.  */
11772
11773/* Override any GCC internal prototype to avoid an error.
11774   Use char because int might match the return type of a GCC
11775   builtin and then its argument prototype would still apply.  */
11776#ifdef __cplusplus
11777extern "C"
11778#endif
11779char dld_link ();
11780int
11781main ()
11782{
11783return dld_link ();
11784  ;
11785  return 0;
11786}
11787_ACEOF
11788if ac_fn_c_try_link "$LINENO"; then :
11789  ac_cv_lib_dld_dld_link=yes
11790else
11791  ac_cv_lib_dld_dld_link=no
11792fi
11793rm -f core conftest.err conftest.$ac_objext \
11794    conftest$ac_exeext conftest.$ac_ext
11795LIBS=$ac_check_lib_save_LIBS
11796fi
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11798$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11799if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11800  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11801fi
11802
11803
11804fi
11805
11806
11807fi
11808
11809
11810fi
11811
11812
11813fi
11814
11815
11816fi
11817
11818    ;;
11819  esac
11820
11821  if test "x$lt_cv_dlopen" != xno; then
11822    enable_dlopen=yes
11823  else
11824    enable_dlopen=no
11825  fi
11826
11827  case $lt_cv_dlopen in
11828  dlopen)
11829    save_CPPFLAGS="$CPPFLAGS"
11830    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11831
11832    save_LDFLAGS="$LDFLAGS"
11833    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11834
11835    save_LIBS="$LIBS"
11836    LIBS="$lt_cv_dlopen_libs $LIBS"
11837
11838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11839$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11840if ${lt_cv_dlopen_self+:} false; then :
11841  $as_echo_n "(cached) " >&6
11842else
11843  	  if test "$cross_compiling" = yes; then :
11844  lt_cv_dlopen_self=cross
11845else
11846  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11847  lt_status=$lt_dlunknown
11848  cat > conftest.$ac_ext <<_LT_EOF
11849#line $LINENO "configure"
11850#include "confdefs.h"
11851
11852#if HAVE_DLFCN_H
11853#include <dlfcn.h>
11854#endif
11855
11856#include <stdio.h>
11857
11858#ifdef RTLD_GLOBAL
11859#  define LT_DLGLOBAL		RTLD_GLOBAL
11860#else
11861#  ifdef DL_GLOBAL
11862#    define LT_DLGLOBAL		DL_GLOBAL
11863#  else
11864#    define LT_DLGLOBAL		0
11865#  endif
11866#endif
11867
11868/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11869   find out it does not work in some platform. */
11870#ifndef LT_DLLAZY_OR_NOW
11871#  ifdef RTLD_LAZY
11872#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11873#  else
11874#    ifdef DL_LAZY
11875#      define LT_DLLAZY_OR_NOW		DL_LAZY
11876#    else
11877#      ifdef RTLD_NOW
11878#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11879#      else
11880#        ifdef DL_NOW
11881#          define LT_DLLAZY_OR_NOW	DL_NOW
11882#        else
11883#          define LT_DLLAZY_OR_NOW	0
11884#        endif
11885#      endif
11886#    endif
11887#  endif
11888#endif
11889
11890/* When -fvisbility=hidden is used, assume the code has been annotated
11891   correspondingly for the symbols needed.  */
11892#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11893int fnord () __attribute__((visibility("default")));
11894#endif
11895
11896int fnord () { return 42; }
11897int main ()
11898{
11899  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11900  int status = $lt_dlunknown;
11901
11902  if (self)
11903    {
11904      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11905      else
11906        {
11907	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11908          else puts (dlerror ());
11909	}
11910      /* dlclose (self); */
11911    }
11912  else
11913    puts (dlerror ());
11914
11915  return status;
11916}
11917_LT_EOF
11918  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11919  (eval $ac_link) 2>&5
11920  ac_status=$?
11921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11922  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11923    (./conftest; exit; ) >&5 2>/dev/null
11924    lt_status=$?
11925    case x$lt_status in
11926      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11927      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11928      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11929    esac
11930  else :
11931    # compilation failed
11932    lt_cv_dlopen_self=no
11933  fi
11934fi
11935rm -fr conftest*
11936
11937
11938fi
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11940$as_echo "$lt_cv_dlopen_self" >&6; }
11941
11942    if test "x$lt_cv_dlopen_self" = xyes; then
11943      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11944      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11945$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11946if ${lt_cv_dlopen_self_static+:} false; then :
11947  $as_echo_n "(cached) " >&6
11948else
11949  	  if test "$cross_compiling" = yes; then :
11950  lt_cv_dlopen_self_static=cross
11951else
11952  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11953  lt_status=$lt_dlunknown
11954  cat > conftest.$ac_ext <<_LT_EOF
11955#line $LINENO "configure"
11956#include "confdefs.h"
11957
11958#if HAVE_DLFCN_H
11959#include <dlfcn.h>
11960#endif
11961
11962#include <stdio.h>
11963
11964#ifdef RTLD_GLOBAL
11965#  define LT_DLGLOBAL		RTLD_GLOBAL
11966#else
11967#  ifdef DL_GLOBAL
11968#    define LT_DLGLOBAL		DL_GLOBAL
11969#  else
11970#    define LT_DLGLOBAL		0
11971#  endif
11972#endif
11973
11974/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11975   find out it does not work in some platform. */
11976#ifndef LT_DLLAZY_OR_NOW
11977#  ifdef RTLD_LAZY
11978#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11979#  else
11980#    ifdef DL_LAZY
11981#      define LT_DLLAZY_OR_NOW		DL_LAZY
11982#    else
11983#      ifdef RTLD_NOW
11984#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11985#      else
11986#        ifdef DL_NOW
11987#          define LT_DLLAZY_OR_NOW	DL_NOW
11988#        else
11989#          define LT_DLLAZY_OR_NOW	0
11990#        endif
11991#      endif
11992#    endif
11993#  endif
11994#endif
11995
11996/* When -fvisbility=hidden is used, assume the code has been annotated
11997   correspondingly for the symbols needed.  */
11998#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11999int fnord () __attribute__((visibility("default")));
12000#endif
12001
12002int fnord () { return 42; }
12003int main ()
12004{
12005  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12006  int status = $lt_dlunknown;
12007
12008  if (self)
12009    {
12010      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12011      else
12012        {
12013	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12014          else puts (dlerror ());
12015	}
12016      /* dlclose (self); */
12017    }
12018  else
12019    puts (dlerror ());
12020
12021  return status;
12022}
12023_LT_EOF
12024  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12025  (eval $ac_link) 2>&5
12026  ac_status=$?
12027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12028  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12029    (./conftest; exit; ) >&5 2>/dev/null
12030    lt_status=$?
12031    case x$lt_status in
12032      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12033      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12034      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12035    esac
12036  else :
12037    # compilation failed
12038    lt_cv_dlopen_self_static=no
12039  fi
12040fi
12041rm -fr conftest*
12042
12043
12044fi
12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12046$as_echo "$lt_cv_dlopen_self_static" >&6; }
12047    fi
12048
12049    CPPFLAGS="$save_CPPFLAGS"
12050    LDFLAGS="$save_LDFLAGS"
12051    LIBS="$save_LIBS"
12052    ;;
12053  esac
12054
12055  case $lt_cv_dlopen_self in
12056  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12057  *) enable_dlopen_self=unknown ;;
12058  esac
12059
12060  case $lt_cv_dlopen_self_static in
12061  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12062  *) enable_dlopen_self_static=unknown ;;
12063  esac
12064fi
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082striplib=
12083old_striplib=
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12085$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12086if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12087  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12088  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12090$as_echo "yes" >&6; }
12091else
12092# FIXME - insert some real tests, host_os isn't really good enough
12093  case $host_os in
12094  darwin*)
12095    if test -n "$STRIP" ; then
12096      striplib="$STRIP -x"
12097      old_striplib="$STRIP -S"
12098      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099$as_echo "yes" >&6; }
12100    else
12101      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102$as_echo "no" >&6; }
12103    fi
12104    ;;
12105  *)
12106    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107$as_echo "no" >&6; }
12108    ;;
12109  esac
12110fi
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123  # Report which library types will actually be built
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12125$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12127$as_echo "$can_build_shared" >&6; }
12128
12129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12130$as_echo_n "checking whether to build shared libraries... " >&6; }
12131  test "$can_build_shared" = "no" && enable_shared=no
12132
12133  # On AIX, shared libraries and static libraries use the same namespace, and
12134  # are all built from PIC.
12135  case $host_os in
12136  aix3*)
12137    test "$enable_shared" = yes && enable_static=no
12138    if test -n "$RANLIB"; then
12139      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12140      postinstall_cmds='$RANLIB $lib'
12141    fi
12142    ;;
12143
12144  aix[4-9]*)
12145    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12146      test "$enable_shared" = yes && enable_static=no
12147    fi
12148    ;;
12149  esac
12150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12151$as_echo "$enable_shared" >&6; }
12152
12153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12154$as_echo_n "checking whether to build static libraries... " >&6; }
12155  # Make sure either enable_shared or enable_static is yes.
12156  test "$enable_shared" = yes || enable_static=yes
12157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12158$as_echo "$enable_static" >&6; }
12159
12160
12161
12162
12163fi
12164ac_ext=c
12165ac_cpp='$CPP $CPPFLAGS'
12166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168ac_compiler_gnu=$ac_cv_c_compiler_gnu
12169
12170CC="$lt_save_CC"
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186        ac_config_commands="$ac_config_commands libtool"
12187
12188
12189
12190
12191# Only expand once:
12192
12193
12194
12195
12196# Check for library functions that SQLite can optionally use.
12197for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12198do :
12199  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12200ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12201if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12202  cat >>confdefs.h <<_ACEOF
12203#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12204_ACEOF
12205
12206fi
12207done
12208
12209ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12210if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12211  ac_have_decl=1
12212else
12213  ac_have_decl=0
12214fi
12215
12216cat >>confdefs.h <<_ACEOF
12217#define HAVE_DECL_STRERROR_R $ac_have_decl
12218_ACEOF
12219
12220for ac_func in strerror_r
12221do :
12222  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12223if test "x$ac_cv_func_strerror_r" = xyes; then :
12224  cat >>confdefs.h <<_ACEOF
12225#define HAVE_STRERROR_R 1
12226_ACEOF
12227
12228fi
12229done
12230
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12232$as_echo_n "checking whether strerror_r returns char *... " >&6; }
12233if ${ac_cv_func_strerror_r_char_p+:} false; then :
12234  $as_echo_n "(cached) " >&6
12235else
12236
12237    ac_cv_func_strerror_r_char_p=no
12238    if test $ac_cv_have_decl_strerror_r = yes; then
12239      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240/* end confdefs.h.  */
12241$ac_includes_default
12242int
12243main ()
12244{
12245
12246	  char buf[100];
12247	  char x = *strerror_r (0, buf, sizeof buf);
12248	  char *p = strerror_r (0, buf, sizeof buf);
12249	  return !p || x;
12250
12251  ;
12252  return 0;
12253}
12254_ACEOF
12255if ac_fn_c_try_compile "$LINENO"; then :
12256  ac_cv_func_strerror_r_char_p=yes
12257fi
12258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259    else
12260      # strerror_r is not declared.  Choose between
12261      # systems that have relatively inaccessible declarations for the
12262      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
12263      # former has a strerror_r that returns char*, while the latter
12264      # has a strerror_r that returns `int'.
12265      # This test should segfault on the DEC system.
12266      if test "$cross_compiling" = yes; then :
12267  :
12268else
12269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270/* end confdefs.h.  */
12271$ac_includes_default
12272	extern char *strerror_r ();
12273int
12274main ()
12275{
12276char buf[100];
12277	  char x = *strerror_r (0, buf, sizeof buf);
12278	  return ! isalpha (x);
12279  ;
12280  return 0;
12281}
12282_ACEOF
12283if ac_fn_c_try_run "$LINENO"; then :
12284  ac_cv_func_strerror_r_char_p=yes
12285fi
12286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12287  conftest.$ac_objext conftest.beam conftest.$ac_ext
12288fi
12289
12290    fi
12291
12292fi
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12294$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12295if test $ac_cv_func_strerror_r_char_p = yes; then
12296
12297$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12298
12299fi
12300
12301
12302ac_config_files="$ac_config_files Makefile sqlite3.pc"
12303
12304
12305
12306#-----------------------------------------------------------------------
12307#   --enable-readline
12308#
12309# Check whether --enable-readline was given.
12310if test "${enable_readline+set}" = set; then :
12311  enableval=$enable_readline;
12312else
12313  enable_readline=yes
12314fi
12315
12316if test x"$enable_readline" != xno ; then
12317  sLIBS=$LIBS
12318  LIBS=""
12319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12320$as_echo_n "checking for library containing tgetent... " >&6; }
12321if ${ac_cv_search_tgetent+:} false; then :
12322  $as_echo_n "(cached) " >&6
12323else
12324  ac_func_search_save_LIBS=$LIBS
12325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326/* end confdefs.h.  */
12327
12328/* Override any GCC internal prototype to avoid an error.
12329   Use char because int might match the return type of a GCC
12330   builtin and then its argument prototype would still apply.  */
12331#ifdef __cplusplus
12332extern "C"
12333#endif
12334char tgetent ();
12335int
12336main ()
12337{
12338return tgetent ();
12339  ;
12340  return 0;
12341}
12342_ACEOF
12343for ac_lib in '' curses ncurses ncursesw; do
12344  if test -z "$ac_lib"; then
12345    ac_res="none required"
12346  else
12347    ac_res=-l$ac_lib
12348    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12349  fi
12350  if ac_fn_c_try_link "$LINENO"; then :
12351  ac_cv_search_tgetent=$ac_res
12352fi
12353rm -f core conftest.err conftest.$ac_objext \
12354    conftest$ac_exeext
12355  if ${ac_cv_search_tgetent+:} false; then :
12356  break
12357fi
12358done
12359if ${ac_cv_search_tgetent+:} false; then :
12360
12361else
12362  ac_cv_search_tgetent=no
12363fi
12364rm conftest.$ac_ext
12365LIBS=$ac_func_search_save_LIBS
12366fi
12367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12368$as_echo "$ac_cv_search_tgetent" >&6; }
12369ac_res=$ac_cv_search_tgetent
12370if test "$ac_res" != no; then :
12371  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12372
12373fi
12374
12375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12376$as_echo_n "checking for library containing readline... " >&6; }
12377if ${ac_cv_search_readline+:} false; then :
12378  $as_echo_n "(cached) " >&6
12379else
12380  ac_func_search_save_LIBS=$LIBS
12381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382/* end confdefs.h.  */
12383
12384/* Override any GCC internal prototype to avoid an error.
12385   Use char because int might match the return type of a GCC
12386   builtin and then its argument prototype would still apply.  */
12387#ifdef __cplusplus
12388extern "C"
12389#endif
12390char readline ();
12391int
12392main ()
12393{
12394return readline ();
12395  ;
12396  return 0;
12397}
12398_ACEOF
12399for ac_lib in '' readline; do
12400  if test -z "$ac_lib"; then
12401    ac_res="none required"
12402  else
12403    ac_res=-l$ac_lib
12404    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12405  fi
12406  if ac_fn_c_try_link "$LINENO"; then :
12407  ac_cv_search_readline=$ac_res
12408fi
12409rm -f core conftest.err conftest.$ac_objext \
12410    conftest$ac_exeext
12411  if ${ac_cv_search_readline+:} false; then :
12412  break
12413fi
12414done
12415if ${ac_cv_search_readline+:} false; then :
12416
12417else
12418  ac_cv_search_readline=no
12419fi
12420rm conftest.$ac_ext
12421LIBS=$ac_func_search_save_LIBS
12422fi
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12424$as_echo "$ac_cv_search_readline" >&6; }
12425ac_res=$ac_cv_search_readline
12426if test "$ac_res" != no; then :
12427  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12428
12429else
12430  enable_readline=no
12431fi
12432
12433  for ac_func in readline
12434do :
12435  ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
12436if test "x$ac_cv_func_readline" = xyes; then :
12437  cat >>confdefs.h <<_ACEOF
12438#define HAVE_READLINE 1
12439_ACEOF
12440
12441fi
12442done
12443
12444  READLINE_LIBS=$LIBS
12445  LIBS=$sLIBS
12446fi
12447
12448#-----------------------------------------------------------------------
12449
12450#-----------------------------------------------------------------------
12451#   --enable-threadsafe
12452#
12453# Check whether --enable-threadsafe was given.
12454if test "${enable_threadsafe+set}" = set; then :
12455  enableval=$enable_threadsafe;
12456else
12457  enable_threadsafe=yes
12458fi
12459
12460THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
12461if test x"$enable_threadsafe" != "xno"; then
12462  THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
12463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12464$as_echo_n "checking for library containing pthread_create... " >&6; }
12465if ${ac_cv_search_pthread_create+:} false; then :
12466  $as_echo_n "(cached) " >&6
12467else
12468  ac_func_search_save_LIBS=$LIBS
12469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470/* end confdefs.h.  */
12471
12472/* Override any GCC internal prototype to avoid an error.
12473   Use char because int might match the return type of a GCC
12474   builtin and then its argument prototype would still apply.  */
12475#ifdef __cplusplus
12476extern "C"
12477#endif
12478char pthread_create ();
12479int
12480main ()
12481{
12482return pthread_create ();
12483  ;
12484  return 0;
12485}
12486_ACEOF
12487for ac_lib in '' pthread; do
12488  if test -z "$ac_lib"; then
12489    ac_res="none required"
12490  else
12491    ac_res=-l$ac_lib
12492    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12493  fi
12494  if ac_fn_c_try_link "$LINENO"; then :
12495  ac_cv_search_pthread_create=$ac_res
12496fi
12497rm -f core conftest.err conftest.$ac_objext \
12498    conftest$ac_exeext
12499  if ${ac_cv_search_pthread_create+:} false; then :
12500  break
12501fi
12502done
12503if ${ac_cv_search_pthread_create+:} false; then :
12504
12505else
12506  ac_cv_search_pthread_create=no
12507fi
12508rm conftest.$ac_ext
12509LIBS=$ac_func_search_save_LIBS
12510fi
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12512$as_echo "$ac_cv_search_pthread_create" >&6; }
12513ac_res=$ac_cv_search_pthread_create
12514if test "$ac_res" != no; then :
12515  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12516
12517fi
12518
12519fi
12520
12521#-----------------------------------------------------------------------
12522
12523#-----------------------------------------------------------------------
12524#   --enable-dynamic-extensions
12525#
12526# Check whether --enable-dynamic-extensions was given.
12527if test "${enable_dynamic_extensions+set}" = set; then :
12528  enableval=$enable_dynamic_extensions;
12529else
12530  enable_dynamic_extensions=yes
12531fi
12532
12533if test x"$enable_dynamic_extensions" != "xno"; then
12534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12535$as_echo_n "checking for library containing dlopen... " >&6; }
12536if ${ac_cv_search_dlopen+:} false; then :
12537  $as_echo_n "(cached) " >&6
12538else
12539  ac_func_search_save_LIBS=$LIBS
12540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541/* end confdefs.h.  */
12542
12543/* Override any GCC internal prototype to avoid an error.
12544   Use char because int might match the return type of a GCC
12545   builtin and then its argument prototype would still apply.  */
12546#ifdef __cplusplus
12547extern "C"
12548#endif
12549char dlopen ();
12550int
12551main ()
12552{
12553return dlopen ();
12554  ;
12555  return 0;
12556}
12557_ACEOF
12558for ac_lib in '' dl; do
12559  if test -z "$ac_lib"; then
12560    ac_res="none required"
12561  else
12562    ac_res=-l$ac_lib
12563    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12564  fi
12565  if ac_fn_c_try_link "$LINENO"; then :
12566  ac_cv_search_dlopen=$ac_res
12567fi
12568rm -f core conftest.err conftest.$ac_objext \
12569    conftest$ac_exeext
12570  if ${ac_cv_search_dlopen+:} false; then :
12571  break
12572fi
12573done
12574if ${ac_cv_search_dlopen+:} false; then :
12575
12576else
12577  ac_cv_search_dlopen=no
12578fi
12579rm conftest.$ac_ext
12580LIBS=$ac_func_search_save_LIBS
12581fi
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12583$as_echo "$ac_cv_search_dlopen" >&6; }
12584ac_res=$ac_cv_search_dlopen
12585if test "$ac_res" != no; then :
12586  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12587
12588fi
12589
12590else
12591  DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
12592fi
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
12594$as_echo_n "checking for whether to support dynamic extensions... " >&6; }
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
12596$as_echo "$enable_dynamic_extensions" >&6; }
12597
12598#-----------------------------------------------------------------------
12599
12600for ac_func in posix_fallocate
12601do :
12602  ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
12603if test "x$ac_cv_func_posix_fallocate" = xyes; then :
12604  cat >>confdefs.h <<_ACEOF
12605#define HAVE_POSIX_FALLOCATE 1
12606_ACEOF
12607
12608fi
12609done
12610
12611
12612#-----------------------------------------------------------------------
12613# UPDATE: Maybe it's better if users just set CFLAGS before invoking
12614# configure. This option doesn't really add much...
12615#
12616#   --enable-tempstore
12617#
12618# AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
12619#   [--enable-tempstore],
12620#   [in-memory temporary tables (never, no, yes, always) [default=no]])],
12621#   [], [enable_tempstore=no])
12622# AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
12623# case "$enable_tempstore" in
12624#   never )  TEMP_STORE=0 ;;
12625#   no )     TEMP_STORE=1 ;;
12626#   always ) TEMP_STORE=3 ;;
12627#   yes )    TEMP_STORE=3 ;;
12628#   * )
12629#     TEMP_STORE=1
12630#     enable_tempstore=yes
12631#   ;;
12632# esac
12633# AC_MSG_RESULT($enable_tempstore)
12634# AC_SUBST(TEMP_STORE)
12635#-----------------------------------------------------------------------
12636
12637cat >confcache <<\_ACEOF
12638# This file is a shell script that caches the results of configure
12639# tests run on this system so they can be shared between configure
12640# scripts and configure runs, see configure's option --config-cache.
12641# It is not useful on other systems.  If it contains results you don't
12642# want to keep, you may remove or edit it.
12643#
12644# config.status only pays attention to the cache file if you give it
12645# the --recheck option to rerun configure.
12646#
12647# `ac_cv_env_foo' variables (set or unset) will be overridden when
12648# loading this file, other *unset* `ac_cv_foo' will be assigned the
12649# following values.
12650
12651_ACEOF
12652
12653# The following way of writing the cache mishandles newlines in values,
12654# but we know of no workaround that is simple, portable, and efficient.
12655# So, we kill variables containing newlines.
12656# Ultrix sh set writes to stderr and can't be redirected directly,
12657# and sets the high bit in the cache file unless we assign to the vars.
12658(
12659  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12660    eval ac_val=\$$ac_var
12661    case $ac_val in #(
12662    *${as_nl}*)
12663      case $ac_var in #(
12664      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12665$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12666      esac
12667      case $ac_var in #(
12668      _ | IFS | as_nl) ;; #(
12669      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12670      *) { eval $ac_var=; unset $ac_var;} ;;
12671      esac ;;
12672    esac
12673  done
12674
12675  (set) 2>&1 |
12676    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12677    *${as_nl}ac_space=\ *)
12678      # `set' does not quote correctly, so add quotes: double-quote
12679      # substitution turns \\\\ into \\, and sed turns \\ into \.
12680      sed -n \
12681	"s/'/'\\\\''/g;
12682	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12683      ;; #(
12684    *)
12685      # `set' quotes correctly as required by POSIX, so do not add quotes.
12686      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12687      ;;
12688    esac |
12689    sort
12690) |
12691  sed '
12692     /^ac_cv_env_/b end
12693     t clear
12694     :clear
12695     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12696     t end
12697     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12698     :end' >>confcache
12699if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12700  if test -w "$cache_file"; then
12701    if test "x$cache_file" != "x/dev/null"; then
12702      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12703$as_echo "$as_me: updating cache $cache_file" >&6;}
12704      if test ! -f "$cache_file" || test -h "$cache_file"; then
12705	cat confcache >"$cache_file"
12706      else
12707        case $cache_file in #(
12708        */* | ?:*)
12709	  mv -f confcache "$cache_file"$$ &&
12710	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12711        *)
12712	  mv -f confcache "$cache_file" ;;
12713	esac
12714      fi
12715    fi
12716  else
12717    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12718$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12719  fi
12720fi
12721rm -f confcache
12722
12723test "x$prefix" = xNONE && prefix=$ac_default_prefix
12724# Let make expand exec_prefix.
12725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12726
12727# Transform confdefs.h into DEFS.
12728# Protect against shell expansion while executing Makefile rules.
12729# Protect against Makefile macro expansion.
12730#
12731# If the first sed substitution is executed (which looks for macros that
12732# take arguments), then branch to the quote section.  Otherwise,
12733# look for a macro that doesn't take arguments.
12734ac_script='
12735:mline
12736/\\$/{
12737 N
12738 s,\\\n,,
12739 b mline
12740}
12741t clear
12742:clear
12743s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
12744t quote
12745s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
12746t quote
12747b any
12748:quote
12749s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12750s/\[/\\&/g
12751s/\]/\\&/g
12752s/\$/$$/g
12753H
12754:any
12755${
12756	g
12757	s/^\n//
12758	s/\n/ /g
12759	p
12760}
12761'
12762DEFS=`sed -n "$ac_script" confdefs.h`
12763
12764
12765ac_libobjs=
12766ac_ltlibobjs=
12767U=
12768for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12769  # 1. Remove the extension, and $U if already installed.
12770  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12771  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12772  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12773  #    will be set to the directory where LIBOBJS objects are built.
12774  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12775  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12776done
12777LIBOBJS=$ac_libobjs
12778
12779LTLIBOBJS=$ac_ltlibobjs
12780
12781
12782 if test -n "$EXEEXT"; then
12783  am__EXEEXT_TRUE=
12784  am__EXEEXT_FALSE='#'
12785else
12786  am__EXEEXT_TRUE='#'
12787  am__EXEEXT_FALSE=
12788fi
12789
12790if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12791  as_fn_error $? "conditional \"AMDEP\" was never defined.
12792Usually this means the macro was only invoked conditionally." "$LINENO" 5
12793fi
12794if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12795  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12796Usually this means the macro was only invoked conditionally." "$LINENO" 5
12797fi
12798if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12799  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12800Usually this means the macro was only invoked conditionally." "$LINENO" 5
12801fi
12802
12803: "${CONFIG_STATUS=./config.status}"
12804ac_write_fail=0
12805ac_clean_files_save=$ac_clean_files
12806ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12808$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12809as_write_fail=0
12810cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12811#! $SHELL
12812# Generated by $as_me.
12813# Run this file to recreate the current configuration.
12814# Compiler output produced by configure, useful for debugging
12815# configure, is in config.log if it exists.
12816
12817debug=false
12818ac_cs_recheck=false
12819ac_cs_silent=false
12820
12821SHELL=\${CONFIG_SHELL-$SHELL}
12822export SHELL
12823_ASEOF
12824cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12825## -------------------- ##
12826## M4sh Initialization. ##
12827## -------------------- ##
12828
12829# Be more Bourne compatible
12830DUALCASE=1; export DUALCASE # for MKS sh
12831if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12832  emulate sh
12833  NULLCMD=:
12834  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12835  # is contrary to our usage.  Disable this feature.
12836  alias -g '${1+"$@"}'='"$@"'
12837  setopt NO_GLOB_SUBST
12838else
12839  case `(set -o) 2>/dev/null` in #(
12840  *posix*) :
12841    set -o posix ;; #(
12842  *) :
12843     ;;
12844esac
12845fi
12846
12847
12848as_nl='
12849'
12850export as_nl
12851# Printing a long string crashes Solaris 7 /usr/bin/printf.
12852as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12853as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12854as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12855# Prefer a ksh shell builtin over an external printf program on Solaris,
12856# but without wasting forks for bash or zsh.
12857if test -z "$BASH_VERSION$ZSH_VERSION" \
12858    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12859  as_echo='print -r --'
12860  as_echo_n='print -rn --'
12861elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12862  as_echo='printf %s\n'
12863  as_echo_n='printf %s'
12864else
12865  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12866    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12867    as_echo_n='/usr/ucb/echo -n'
12868  else
12869    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12870    as_echo_n_body='eval
12871      arg=$1;
12872      case $arg in #(
12873      *"$as_nl"*)
12874	expr "X$arg" : "X\\(.*\\)$as_nl";
12875	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12876      esac;
12877      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12878    '
12879    export as_echo_n_body
12880    as_echo_n='sh -c $as_echo_n_body as_echo'
12881  fi
12882  export as_echo_body
12883  as_echo='sh -c $as_echo_body as_echo'
12884fi
12885
12886# The user is always right.
12887if test "${PATH_SEPARATOR+set}" != set; then
12888  PATH_SEPARATOR=:
12889  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12890    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12891      PATH_SEPARATOR=';'
12892  }
12893fi
12894
12895
12896# IFS
12897# We need space, tab and new line, in precisely that order.  Quoting is
12898# there to prevent editors from complaining about space-tab.
12899# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12900# splitting by setting IFS to empty value.)
12901IFS=" ""	$as_nl"
12902
12903# Find who we are.  Look in the path if we contain no directory separator.
12904as_myself=
12905case $0 in #((
12906  *[\\/]* ) as_myself=$0 ;;
12907  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908for as_dir in $PATH
12909do
12910  IFS=$as_save_IFS
12911  test -z "$as_dir" && as_dir=.
12912    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12913  done
12914IFS=$as_save_IFS
12915
12916     ;;
12917esac
12918# We did not find ourselves, most probably we were run as `sh COMMAND'
12919# in which case we are not to be found in the path.
12920if test "x$as_myself" = x; then
12921  as_myself=$0
12922fi
12923if test ! -f "$as_myself"; then
12924  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12925  exit 1
12926fi
12927
12928# Unset variables that we do not need and which cause bugs (e.g. in
12929# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12930# suppresses any "Segmentation fault" message there.  '((' could
12931# trigger a bug in pdksh 5.2.14.
12932for as_var in BASH_ENV ENV MAIL MAILPATH
12933do eval test x\${$as_var+set} = xset \
12934  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12935done
12936PS1='$ '
12937PS2='> '
12938PS4='+ '
12939
12940# NLS nuisances.
12941LC_ALL=C
12942export LC_ALL
12943LANGUAGE=C
12944export LANGUAGE
12945
12946# CDPATH.
12947(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12948
12949
12950# as_fn_error STATUS ERROR [LINENO LOG_FD]
12951# ----------------------------------------
12952# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12953# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12954# script with STATUS, using 1 if that was 0.
12955as_fn_error ()
12956{
12957  as_status=$1; test $as_status -eq 0 && as_status=1
12958  if test "$4"; then
12959    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12960    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12961  fi
12962  $as_echo "$as_me: error: $2" >&2
12963  as_fn_exit $as_status
12964} # as_fn_error
12965
12966
12967# as_fn_set_status STATUS
12968# -----------------------
12969# Set $? to STATUS, without forking.
12970as_fn_set_status ()
12971{
12972  return $1
12973} # as_fn_set_status
12974
12975# as_fn_exit STATUS
12976# -----------------
12977# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12978as_fn_exit ()
12979{
12980  set +e
12981  as_fn_set_status $1
12982  exit $1
12983} # as_fn_exit
12984
12985# as_fn_unset VAR
12986# ---------------
12987# Portably unset VAR.
12988as_fn_unset ()
12989{
12990  { eval $1=; unset $1;}
12991}
12992as_unset=as_fn_unset
12993# as_fn_append VAR VALUE
12994# ----------------------
12995# Append the text in VALUE to the end of the definition contained in VAR. Take
12996# advantage of any shell optimizations that allow amortized linear growth over
12997# repeated appends, instead of the typical quadratic growth present in naive
12998# implementations.
12999if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13000  eval 'as_fn_append ()
13001  {
13002    eval $1+=\$2
13003  }'
13004else
13005  as_fn_append ()
13006  {
13007    eval $1=\$$1\$2
13008  }
13009fi # as_fn_append
13010
13011# as_fn_arith ARG...
13012# ------------------
13013# Perform arithmetic evaluation on the ARGs, and store the result in the
13014# global $as_val. Take advantage of shells that can avoid forks. The arguments
13015# must be portable across $(()) and expr.
13016if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13017  eval 'as_fn_arith ()
13018  {
13019    as_val=$(( $* ))
13020  }'
13021else
13022  as_fn_arith ()
13023  {
13024    as_val=`expr "$@" || test $? -eq 1`
13025  }
13026fi # as_fn_arith
13027
13028
13029if expr a : '\(a\)' >/dev/null 2>&1 &&
13030   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13031  as_expr=expr
13032else
13033  as_expr=false
13034fi
13035
13036if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13037  as_basename=basename
13038else
13039  as_basename=false
13040fi
13041
13042if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13043  as_dirname=dirname
13044else
13045  as_dirname=false
13046fi
13047
13048as_me=`$as_basename -- "$0" ||
13049$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13050	 X"$0" : 'X\(//\)$' \| \
13051	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13052$as_echo X/"$0" |
13053    sed '/^.*\/\([^/][^/]*\)\/*$/{
13054	    s//\1/
13055	    q
13056	  }
13057	  /^X\/\(\/\/\)$/{
13058	    s//\1/
13059	    q
13060	  }
13061	  /^X\/\(\/\).*/{
13062	    s//\1/
13063	    q
13064	  }
13065	  s/.*/./; q'`
13066
13067# Avoid depending upon Character Ranges.
13068as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13069as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13070as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13071as_cr_digits='0123456789'
13072as_cr_alnum=$as_cr_Letters$as_cr_digits
13073
13074ECHO_C= ECHO_N= ECHO_T=
13075case `echo -n x` in #(((((
13076-n*)
13077  case `echo 'xy\c'` in
13078  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13079  xy)  ECHO_C='\c';;
13080  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13081       ECHO_T='	';;
13082  esac;;
13083*)
13084  ECHO_N='-n';;
13085esac
13086
13087rm -f conf$$ conf$$.exe conf$$.file
13088if test -d conf$$.dir; then
13089  rm -f conf$$.dir/conf$$.file
13090else
13091  rm -f conf$$.dir
13092  mkdir conf$$.dir 2>/dev/null
13093fi
13094if (echo >conf$$.file) 2>/dev/null; then
13095  if ln -s conf$$.file conf$$ 2>/dev/null; then
13096    as_ln_s='ln -s'
13097    # ... but there are two gotchas:
13098    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13099    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13100    # In both cases, we have to default to `cp -pR'.
13101    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13102      as_ln_s='cp -pR'
13103  elif ln conf$$.file conf$$ 2>/dev/null; then
13104    as_ln_s=ln
13105  else
13106    as_ln_s='cp -pR'
13107  fi
13108else
13109  as_ln_s='cp -pR'
13110fi
13111rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13112rmdir conf$$.dir 2>/dev/null
13113
13114
13115# as_fn_mkdir_p
13116# -------------
13117# Create "$as_dir" as a directory, including parents if necessary.
13118as_fn_mkdir_p ()
13119{
13120
13121  case $as_dir in #(
13122  -*) as_dir=./$as_dir;;
13123  esac
13124  test -d "$as_dir" || eval $as_mkdir_p || {
13125    as_dirs=
13126    while :; do
13127      case $as_dir in #(
13128      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13129      *) as_qdir=$as_dir;;
13130      esac
13131      as_dirs="'$as_qdir' $as_dirs"
13132      as_dir=`$as_dirname -- "$as_dir" ||
13133$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13134	 X"$as_dir" : 'X\(//\)[^/]' \| \
13135	 X"$as_dir" : 'X\(//\)$' \| \
13136	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13137$as_echo X"$as_dir" |
13138    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13139	    s//\1/
13140	    q
13141	  }
13142	  /^X\(\/\/\)[^/].*/{
13143	    s//\1/
13144	    q
13145	  }
13146	  /^X\(\/\/\)$/{
13147	    s//\1/
13148	    q
13149	  }
13150	  /^X\(\/\).*/{
13151	    s//\1/
13152	    q
13153	  }
13154	  s/.*/./; q'`
13155      test -d "$as_dir" && break
13156    done
13157    test -z "$as_dirs" || eval "mkdir $as_dirs"
13158  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13159
13160
13161} # as_fn_mkdir_p
13162if mkdir -p . 2>/dev/null; then
13163  as_mkdir_p='mkdir -p "$as_dir"'
13164else
13165  test -d ./-p && rmdir ./-p
13166  as_mkdir_p=false
13167fi
13168
13169
13170# as_fn_executable_p FILE
13171# -----------------------
13172# Test if FILE is an executable regular file.
13173as_fn_executable_p ()
13174{
13175  test -f "$1" && test -x "$1"
13176} # as_fn_executable_p
13177as_test_x='test -x'
13178as_executable_p=as_fn_executable_p
13179
13180# Sed expression to map a string onto a valid CPP name.
13181as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13182
13183# Sed expression to map a string onto a valid variable name.
13184as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13185
13186
13187exec 6>&1
13188## ----------------------------------- ##
13189## Main body of $CONFIG_STATUS script. ##
13190## ----------------------------------- ##
13191_ASEOF
13192test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13193
13194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13195# Save the log message, to keep $0 and so on meaningful, and to
13196# report actual input values of CONFIG_FILES etc. instead of their
13197# values after options handling.
13198ac_log="
13199This file was extended by sqlite $as_me 3.8.5, which was
13200generated by GNU Autoconf 2.69.  Invocation command line was
13201
13202  CONFIG_FILES    = $CONFIG_FILES
13203  CONFIG_HEADERS  = $CONFIG_HEADERS
13204  CONFIG_LINKS    = $CONFIG_LINKS
13205  CONFIG_COMMANDS = $CONFIG_COMMANDS
13206  $ $0 $@
13207
13208on `(hostname || uname -n) 2>/dev/null | sed 1q`
13209"
13210
13211_ACEOF
13212
13213case $ac_config_files in *"
13214"*) set x $ac_config_files; shift; ac_config_files=$*;;
13215esac
13216
13217
13218
13219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13220# Files that config.status was made for.
13221config_files="$ac_config_files"
13222config_commands="$ac_config_commands"
13223
13224_ACEOF
13225
13226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13227ac_cs_usage="\
13228\`$as_me' instantiates files and other configuration actions
13229from templates according to the current configuration.  Unless the files
13230and actions are specified as TAGs, all are instantiated by default.
13231
13232Usage: $0 [OPTION]... [TAG]...
13233
13234  -h, --help       print this help, then exit
13235  -V, --version    print version number and configuration settings, then exit
13236      --config     print configuration, then exit
13237  -q, --quiet, --silent
13238                   do not print progress messages
13239  -d, --debug      don't remove temporary files
13240      --recheck    update $as_me by reconfiguring in the same conditions
13241      --file=FILE[:TEMPLATE]
13242                   instantiate the configuration file FILE
13243
13244Configuration files:
13245$config_files
13246
13247Configuration commands:
13248$config_commands
13249
13250Report bugs to <http://www.sqlite.org>."
13251
13252_ACEOF
13253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13255ac_cs_version="\\
13256sqlite config.status 3.8.5
13257configured by $0, generated by GNU Autoconf 2.69,
13258  with options \\"\$ac_cs_config\\"
13259
13260Copyright (C) 2012 Free Software Foundation, Inc.
13261This config.status script is free software; the Free Software Foundation
13262gives unlimited permission to copy, distribute and modify it."
13263
13264ac_pwd='$ac_pwd'
13265srcdir='$srcdir'
13266INSTALL='$INSTALL'
13267MKDIR_P='$MKDIR_P'
13268AWK='$AWK'
13269test -n "\$AWK" || AWK=awk
13270_ACEOF
13271
13272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13273# The default lists apply if the user does not specify any file.
13274ac_need_defaults=:
13275while test $# != 0
13276do
13277  case $1 in
13278  --*=?*)
13279    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13280    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13281    ac_shift=:
13282    ;;
13283  --*=)
13284    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13285    ac_optarg=
13286    ac_shift=:
13287    ;;
13288  *)
13289    ac_option=$1
13290    ac_optarg=$2
13291    ac_shift=shift
13292    ;;
13293  esac
13294
13295  case $ac_option in
13296  # Handling of the options.
13297  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13298    ac_cs_recheck=: ;;
13299  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13300    $as_echo "$ac_cs_version"; exit ;;
13301  --config | --confi | --conf | --con | --co | --c )
13302    $as_echo "$ac_cs_config"; exit ;;
13303  --debug | --debu | --deb | --de | --d | -d )
13304    debug=: ;;
13305  --file | --fil | --fi | --f )
13306    $ac_shift
13307    case $ac_optarg in
13308    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13309    '') as_fn_error $? "missing file argument" ;;
13310    esac
13311    as_fn_append CONFIG_FILES " '$ac_optarg'"
13312    ac_need_defaults=false;;
13313  --he | --h |  --help | --hel | -h )
13314    $as_echo "$ac_cs_usage"; exit ;;
13315  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13316  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13317    ac_cs_silent=: ;;
13318
13319  # This is an error.
13320  -*) as_fn_error $? "unrecognized option: \`$1'
13321Try \`$0 --help' for more information." ;;
13322
13323  *) as_fn_append ac_config_targets " $1"
13324     ac_need_defaults=false ;;
13325
13326  esac
13327  shift
13328done
13329
13330ac_configure_extra_args=
13331
13332if $ac_cs_silent; then
13333  exec 6>/dev/null
13334  ac_configure_extra_args="$ac_configure_extra_args --silent"
13335fi
13336
13337_ACEOF
13338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13339if \$ac_cs_recheck; then
13340  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13341  shift
13342  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13343  CONFIG_SHELL='$SHELL'
13344  export CONFIG_SHELL
13345  exec "\$@"
13346fi
13347
13348_ACEOF
13349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13350exec 5>>config.log
13351{
13352  echo
13353  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13354## Running $as_me. ##
13355_ASBOX
13356  $as_echo "$ac_log"
13357} >&5
13358
13359_ACEOF
13360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13361#
13362# INIT-COMMANDS
13363#
13364AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13365
13366
13367# The HP-UX ksh and POSIX shell print the target directory to stdout
13368# if CDPATH is set.
13369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13370
13371sed_quote_subst='$sed_quote_subst'
13372double_quote_subst='$double_quote_subst'
13373delay_variable_subst='$delay_variable_subst'
13374macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13375macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13376enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13377enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13378pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13379enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13380SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13381ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13382PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13383host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13384host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13385host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13386build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13387build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13388build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13389SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13390Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13391GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13392EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13393FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13394LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13395NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13396LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13397max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13398ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13399exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13400lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13401lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13402lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13403lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13404lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13405reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13406reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13407OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13408deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13409file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13410file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13411want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13412DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13413sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13414AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13415AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13416archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13417STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13418RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13419old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13420old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13421old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13422lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13423CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13424CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13425compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13426GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13427lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13428lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13429lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13430lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13431nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13432lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13433objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13434MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13435lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13436lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13437lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13438lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13439lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13440need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13441MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13442DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13443NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13444LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13445OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13446OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13447libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13448shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13449extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13450archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13451enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13452export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13453whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13454compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13455old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13456old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13457archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13458archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13459module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13460module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13461with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13462allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13463no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13464hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13465hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13466hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13467hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13468hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13469hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13470hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13471inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13472link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13473always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13474export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13475exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13476include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13477prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13478postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13479file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13480variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13481need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13482need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13483version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13484runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13485shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13486shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13487libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13488library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13489soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13490install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13491postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13492postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13493finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13494finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13495hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13496sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13497sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13498hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13499enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13500enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13501enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13502old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13503striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13504
13505LTCC='$LTCC'
13506LTCFLAGS='$LTCFLAGS'
13507compiler='$compiler_DEFAULT'
13508
13509# A function that is used when there is no print builtin or printf.
13510func_fallback_echo ()
13511{
13512  eval 'cat <<_LTECHO_EOF
13513\$1
13514_LTECHO_EOF'
13515}
13516
13517# Quote evaled strings.
13518for var in SHELL \
13519ECHO \
13520PATH_SEPARATOR \
13521SED \
13522GREP \
13523EGREP \
13524FGREP \
13525LD \
13526NM \
13527LN_S \
13528lt_SP2NL \
13529lt_NL2SP \
13530reload_flag \
13531OBJDUMP \
13532deplibs_check_method \
13533file_magic_cmd \
13534file_magic_glob \
13535want_nocaseglob \
13536DLLTOOL \
13537sharedlib_from_linklib_cmd \
13538AR \
13539AR_FLAGS \
13540archiver_list_spec \
13541STRIP \
13542RANLIB \
13543CC \
13544CFLAGS \
13545compiler \
13546lt_cv_sys_global_symbol_pipe \
13547lt_cv_sys_global_symbol_to_cdecl \
13548lt_cv_sys_global_symbol_to_c_name_address \
13549lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13550nm_file_list_spec \
13551lt_prog_compiler_no_builtin_flag \
13552lt_prog_compiler_pic \
13553lt_prog_compiler_wl \
13554lt_prog_compiler_static \
13555lt_cv_prog_compiler_c_o \
13556need_locks \
13557MANIFEST_TOOL \
13558DSYMUTIL \
13559NMEDIT \
13560LIPO \
13561OTOOL \
13562OTOOL64 \
13563shrext_cmds \
13564export_dynamic_flag_spec \
13565whole_archive_flag_spec \
13566compiler_needs_object \
13567with_gnu_ld \
13568allow_undefined_flag \
13569no_undefined_flag \
13570hardcode_libdir_flag_spec \
13571hardcode_libdir_separator \
13572exclude_expsyms \
13573include_expsyms \
13574file_list_spec \
13575variables_saved_for_relink \
13576libname_spec \
13577library_names_spec \
13578soname_spec \
13579install_override_mode \
13580finish_eval \
13581old_striplib \
13582striplib; do
13583    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13584    *[\\\\\\\`\\"\\\$]*)
13585      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13586      ;;
13587    *)
13588      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13589      ;;
13590    esac
13591done
13592
13593# Double-quote double-evaled strings.
13594for var in reload_cmds \
13595old_postinstall_cmds \
13596old_postuninstall_cmds \
13597old_archive_cmds \
13598extract_expsyms_cmds \
13599old_archive_from_new_cmds \
13600old_archive_from_expsyms_cmds \
13601archive_cmds \
13602archive_expsym_cmds \
13603module_cmds \
13604module_expsym_cmds \
13605export_symbols_cmds \
13606prelink_cmds \
13607postlink_cmds \
13608postinstall_cmds \
13609postuninstall_cmds \
13610finish_cmds \
13611sys_lib_search_path_spec \
13612sys_lib_dlsearch_path_spec; do
13613    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13614    *[\\\\\\\`\\"\\\$]*)
13615      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13616      ;;
13617    *)
13618      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13619      ;;
13620    esac
13621done
13622
13623ac_aux_dir='$ac_aux_dir'
13624xsi_shell='$xsi_shell'
13625lt_shell_append='$lt_shell_append'
13626
13627# See if we are running on zsh, and set the options which allow our
13628# commands through without removal of \ escapes INIT.
13629if test -n "\${ZSH_VERSION+set}" ; then
13630   setopt NO_GLOB_SUBST
13631fi
13632
13633
13634    PACKAGE='$PACKAGE'
13635    VERSION='$VERSION'
13636    TIMESTAMP='$TIMESTAMP'
13637    RM='$RM'
13638    ofile='$ofile'
13639
13640
13641
13642
13643_ACEOF
13644
13645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13646
13647# Handling of arguments.
13648for ac_config_target in $ac_config_targets
13649do
13650  case $ac_config_target in
13651    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13652    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13653    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13654    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
13655
13656  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13657  esac
13658done
13659
13660
13661# If the user did not use the arguments to specify the items to instantiate,
13662# then the envvar interface is used.  Set only those that are not.
13663# We use the long form for the default assignment because of an extremely
13664# bizarre bug on SunOS 4.1.3.
13665if $ac_need_defaults; then
13666  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13667  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13668fi
13669
13670# Have a temporary directory for convenience.  Make it in the build tree
13671# simply because there is no reason against having it here, and in addition,
13672# creating and moving files from /tmp can sometimes cause problems.
13673# Hook for its removal unless debugging.
13674# Note that there is a small window in which the directory will not be cleaned:
13675# after its creation but before its name has been assigned to `$tmp'.
13676$debug ||
13677{
13678  tmp= ac_tmp=
13679  trap 'exit_status=$?
13680  : "${ac_tmp:=$tmp}"
13681  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13682' 0
13683  trap 'as_fn_exit 1' 1 2 13 15
13684}
13685# Create a (secure) tmp directory for tmp files.
13686
13687{
13688  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13689  test -d "$tmp"
13690}  ||
13691{
13692  tmp=./conf$$-$RANDOM
13693  (umask 077 && mkdir "$tmp")
13694} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13695ac_tmp=$tmp
13696
13697# Set up the scripts for CONFIG_FILES section.
13698# No need to generate them if there are no CONFIG_FILES.
13699# This happens for instance with `./config.status config.h'.
13700if test -n "$CONFIG_FILES"; then
13701
13702
13703ac_cr=`echo X | tr X '\015'`
13704# On cygwin, bash can eat \r inside `` if the user requested igncr.
13705# But we know of no other shell where ac_cr would be empty at this
13706# point, so we can use a bashism as a fallback.
13707if test "x$ac_cr" = x; then
13708  eval ac_cr=\$\'\\r\'
13709fi
13710ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13711if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13712  ac_cs_awk_cr='\\r'
13713else
13714  ac_cs_awk_cr=$ac_cr
13715fi
13716
13717echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13718_ACEOF
13719
13720
13721{
13722  echo "cat >conf$$subs.awk <<_ACEOF" &&
13723  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13724  echo "_ACEOF"
13725} >conf$$subs.sh ||
13726  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13727ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13728ac_delim='%!_!# '
13729for ac_last_try in false false false false false :; do
13730  . ./conf$$subs.sh ||
13731    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13732
13733  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13734  if test $ac_delim_n = $ac_delim_num; then
13735    break
13736  elif $ac_last_try; then
13737    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13738  else
13739    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13740  fi
13741done
13742rm -f conf$$subs.sh
13743
13744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13745cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13746_ACEOF
13747sed -n '
13748h
13749s/^/S["/; s/!.*/"]=/
13750p
13751g
13752s/^[^!]*!//
13753:repl
13754t repl
13755s/'"$ac_delim"'$//
13756t delim
13757:nl
13758h
13759s/\(.\{148\}\)..*/\1/
13760t more1
13761s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13762p
13763n
13764b repl
13765:more1
13766s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13767p
13768g
13769s/.\{148\}//
13770t nl
13771:delim
13772h
13773s/\(.\{148\}\)..*/\1/
13774t more2
13775s/["\\]/\\&/g; s/^/"/; s/$/"/
13776p
13777b
13778:more2
13779s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13780p
13781g
13782s/.\{148\}//
13783t delim
13784' <conf$$subs.awk | sed '
13785/^[^""]/{
13786  N
13787  s/\n//
13788}
13789' >>$CONFIG_STATUS || ac_write_fail=1
13790rm -f conf$$subs.awk
13791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13792_ACAWK
13793cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13794  for (key in S) S_is_set[key] = 1
13795  FS = ""
13796
13797}
13798{
13799  line = $ 0
13800  nfields = split(line, field, "@")
13801  substed = 0
13802  len = length(field[1])
13803  for (i = 2; i < nfields; i++) {
13804    key = field[i]
13805    keylen = length(key)
13806    if (S_is_set[key]) {
13807      value = S[key]
13808      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13809      len += length(value) + length(field[++i])
13810      substed = 1
13811    } else
13812      len += 1 + keylen
13813  }
13814
13815  print line
13816}
13817
13818_ACAWK
13819_ACEOF
13820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13821if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13822  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13823else
13824  cat
13825fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13826  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13827_ACEOF
13828
13829# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13830# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13831# trailing colons and then remove the whole line if VPATH becomes empty
13832# (actually we leave an empty line to preserve line numbers).
13833if test "x$srcdir" = x.; then
13834  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13835h
13836s///
13837s/^/:/
13838s/[	 ]*$/:/
13839s/:\$(srcdir):/:/g
13840s/:\${srcdir}:/:/g
13841s/:@srcdir@:/:/g
13842s/^:*//
13843s/:*$//
13844x
13845s/\(=[	 ]*\).*/\1/
13846G
13847s/\n//
13848s/^[^=]*=[	 ]*$//
13849}'
13850fi
13851
13852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13853fi # test -n "$CONFIG_FILES"
13854
13855
13856eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13857shift
13858for ac_tag
13859do
13860  case $ac_tag in
13861  :[FHLC]) ac_mode=$ac_tag; continue;;
13862  esac
13863  case $ac_mode$ac_tag in
13864  :[FHL]*:*);;
13865  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13866  :[FH]-) ac_tag=-:-;;
13867  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13868  esac
13869  ac_save_IFS=$IFS
13870  IFS=:
13871  set x $ac_tag
13872  IFS=$ac_save_IFS
13873  shift
13874  ac_file=$1
13875  shift
13876
13877  case $ac_mode in
13878  :L) ac_source=$1;;
13879  :[FH])
13880    ac_file_inputs=
13881    for ac_f
13882    do
13883      case $ac_f in
13884      -) ac_f="$ac_tmp/stdin";;
13885      *) # Look for the file first in the build tree, then in the source tree
13886	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13887	 # because $ac_f cannot contain `:'.
13888	 test -f "$ac_f" ||
13889	   case $ac_f in
13890	   [\\/$]*) false;;
13891	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13892	   esac ||
13893	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13894      esac
13895      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13896      as_fn_append ac_file_inputs " '$ac_f'"
13897    done
13898
13899    # Let's still pretend it is `configure' which instantiates (i.e., don't
13900    # use $as_me), people would be surprised to read:
13901    #    /* config.h.  Generated by config.status.  */
13902    configure_input='Generated from '`
13903	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13904	`' by configure.'
13905    if test x"$ac_file" != x-; then
13906      configure_input="$ac_file.  $configure_input"
13907      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13908$as_echo "$as_me: creating $ac_file" >&6;}
13909    fi
13910    # Neutralize special characters interpreted by sed in replacement strings.
13911    case $configure_input in #(
13912    *\&* | *\|* | *\\* )
13913       ac_sed_conf_input=`$as_echo "$configure_input" |
13914       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13915    *) ac_sed_conf_input=$configure_input;;
13916    esac
13917
13918    case $ac_tag in
13919    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13920      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13921    esac
13922    ;;
13923  esac
13924
13925  ac_dir=`$as_dirname -- "$ac_file" ||
13926$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13927	 X"$ac_file" : 'X\(//\)[^/]' \| \
13928	 X"$ac_file" : 'X\(//\)$' \| \
13929	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13930$as_echo X"$ac_file" |
13931    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13932	    s//\1/
13933	    q
13934	  }
13935	  /^X\(\/\/\)[^/].*/{
13936	    s//\1/
13937	    q
13938	  }
13939	  /^X\(\/\/\)$/{
13940	    s//\1/
13941	    q
13942	  }
13943	  /^X\(\/\).*/{
13944	    s//\1/
13945	    q
13946	  }
13947	  s/.*/./; q'`
13948  as_dir="$ac_dir"; as_fn_mkdir_p
13949  ac_builddir=.
13950
13951case "$ac_dir" in
13952.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13953*)
13954  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13955  # A ".." for each directory in $ac_dir_suffix.
13956  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13957  case $ac_top_builddir_sub in
13958  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13959  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13960  esac ;;
13961esac
13962ac_abs_top_builddir=$ac_pwd
13963ac_abs_builddir=$ac_pwd$ac_dir_suffix
13964# for backward compatibility:
13965ac_top_builddir=$ac_top_build_prefix
13966
13967case $srcdir in
13968  .)  # We are building in place.
13969    ac_srcdir=.
13970    ac_top_srcdir=$ac_top_builddir_sub
13971    ac_abs_top_srcdir=$ac_pwd ;;
13972  [\\/]* | ?:[\\/]* )  # Absolute name.
13973    ac_srcdir=$srcdir$ac_dir_suffix;
13974    ac_top_srcdir=$srcdir
13975    ac_abs_top_srcdir=$srcdir ;;
13976  *) # Relative name.
13977    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13978    ac_top_srcdir=$ac_top_build_prefix$srcdir
13979    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13980esac
13981ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13982
13983
13984  case $ac_mode in
13985  :F)
13986  #
13987  # CONFIG_FILE
13988  #
13989
13990  case $INSTALL in
13991  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13992  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13993  esac
13994  ac_MKDIR_P=$MKDIR_P
13995  case $MKDIR_P in
13996  [\\/$]* | ?:[\\/]* ) ;;
13997  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13998  esac
13999_ACEOF
14000
14001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14002# If the template does not know about datarootdir, expand it.
14003# FIXME: This hack should be removed a few years after 2.60.
14004ac_datarootdir_hack=; ac_datarootdir_seen=
14005ac_sed_dataroot='
14006/datarootdir/ {
14007  p
14008  q
14009}
14010/@datadir@/p
14011/@docdir@/p
14012/@infodir@/p
14013/@localedir@/p
14014/@mandir@/p'
14015case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14016*datarootdir*) ac_datarootdir_seen=yes;;
14017*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14018  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14019$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14020_ACEOF
14021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14022  ac_datarootdir_hack='
14023  s&@datadir@&$datadir&g
14024  s&@docdir@&$docdir&g
14025  s&@infodir@&$infodir&g
14026  s&@localedir@&$localedir&g
14027  s&@mandir@&$mandir&g
14028  s&\\\${datarootdir}&$datarootdir&g' ;;
14029esac
14030_ACEOF
14031
14032# Neutralize VPATH when `$srcdir' = `.'.
14033# Shell code in configure.ac might set extrasub.
14034# FIXME: do we really want to maintain this feature?
14035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14036ac_sed_extra="$ac_vpsub
14037$extrasub
14038_ACEOF
14039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14040:t
14041/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14042s|@configure_input@|$ac_sed_conf_input|;t t
14043s&@top_builddir@&$ac_top_builddir_sub&;t t
14044s&@top_build_prefix@&$ac_top_build_prefix&;t t
14045s&@srcdir@&$ac_srcdir&;t t
14046s&@abs_srcdir@&$ac_abs_srcdir&;t t
14047s&@top_srcdir@&$ac_top_srcdir&;t t
14048s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14049s&@builddir@&$ac_builddir&;t t
14050s&@abs_builddir@&$ac_abs_builddir&;t t
14051s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14052s&@INSTALL@&$ac_INSTALL&;t t
14053s&@MKDIR_P@&$ac_MKDIR_P&;t t
14054$ac_datarootdir_hack
14055"
14056eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14057  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14058
14059test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14060  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14061  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14062      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14063  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14064which seems to be undefined.  Please make sure it is defined" >&5
14065$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14066which seems to be undefined.  Please make sure it is defined" >&2;}
14067
14068  rm -f "$ac_tmp/stdin"
14069  case $ac_file in
14070  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14071  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14072  esac \
14073  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14074 ;;
14075
14076
14077  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14078$as_echo "$as_me: executing $ac_file commands" >&6;}
14079 ;;
14080  esac
14081
14082
14083  case $ac_file$ac_mode in
14084    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14085  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14086  # are listed without --file.  Let's play safe and only enable the eval
14087  # if we detect the quoting.
14088  case $CONFIG_FILES in
14089  *\'*) eval set x "$CONFIG_FILES" ;;
14090  *)   set x $CONFIG_FILES ;;
14091  esac
14092  shift
14093  for mf
14094  do
14095    # Strip MF so we end up with the name of the file.
14096    mf=`echo "$mf" | sed -e 's/:.*$//'`
14097    # Check whether this is an Automake generated Makefile or not.
14098    # We used to match only the files named `Makefile.in', but
14099    # some people rename them; so instead we look at the file content.
14100    # Grep'ing the first line is not enough: some people post-process
14101    # each Makefile.in and add a new line on top of each file to say so.
14102    # Grep'ing the whole file is not good either: AIX grep has a line
14103    # limit of 2048, but all sed's we know have understand at least 4000.
14104    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14105      dirpart=`$as_dirname -- "$mf" ||
14106$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14107	 X"$mf" : 'X\(//\)[^/]' \| \
14108	 X"$mf" : 'X\(//\)$' \| \
14109	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14110$as_echo X"$mf" |
14111    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14112	    s//\1/
14113	    q
14114	  }
14115	  /^X\(\/\/\)[^/].*/{
14116	    s//\1/
14117	    q
14118	  }
14119	  /^X\(\/\/\)$/{
14120	    s//\1/
14121	    q
14122	  }
14123	  /^X\(\/\).*/{
14124	    s//\1/
14125	    q
14126	  }
14127	  s/.*/./; q'`
14128    else
14129      continue
14130    fi
14131    # Extract the definition of DEPDIR, am__include, and am__quote
14132    # from the Makefile without running `make'.
14133    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14134    test -z "$DEPDIR" && continue
14135    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14136    test -z "am__include" && continue
14137    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14138    # When using ansi2knr, U may be empty or an underscore; expand it
14139    U=`sed -n 's/^U = //p' < "$mf"`
14140    # Find all dependency output files, they are included files with
14141    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14142    # simplest approach to changing $(DEPDIR) to its actual value in the
14143    # expansion.
14144    for file in `sed -n "
14145      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14146	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14147      # Make sure the directory exists.
14148      test -f "$dirpart/$file" && continue
14149      fdir=`$as_dirname -- "$file" ||
14150$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14151	 X"$file" : 'X\(//\)[^/]' \| \
14152	 X"$file" : 'X\(//\)$' \| \
14153	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14154$as_echo X"$file" |
14155    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14156	    s//\1/
14157	    q
14158	  }
14159	  /^X\(\/\/\)[^/].*/{
14160	    s//\1/
14161	    q
14162	  }
14163	  /^X\(\/\/\)$/{
14164	    s//\1/
14165	    q
14166	  }
14167	  /^X\(\/\).*/{
14168	    s//\1/
14169	    q
14170	  }
14171	  s/.*/./; q'`
14172      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14173      # echo "creating $dirpart/$file"
14174      echo '# dummy' > "$dirpart/$file"
14175    done
14176  done
14177}
14178 ;;
14179    "libtool":C)
14180
14181    # See if we are running on zsh, and set the options which allow our
14182    # commands through without removal of \ escapes.
14183    if test -n "${ZSH_VERSION+set}" ; then
14184      setopt NO_GLOB_SUBST
14185    fi
14186
14187    cfgfile="${ofile}T"
14188    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14189    $RM "$cfgfile"
14190
14191    cat <<_LT_EOF >> "$cfgfile"
14192#! $SHELL
14193
14194# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14195# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14196# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14197# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14198#
14199#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14200#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14201#                 Foundation, Inc.
14202#   Written by Gordon Matzigkeit, 1996
14203#
14204#   This file is part of GNU Libtool.
14205#
14206# GNU Libtool is free software; you can redistribute it and/or
14207# modify it under the terms of the GNU General Public License as
14208# published by the Free Software Foundation; either version 2 of
14209# the License, or (at your option) any later version.
14210#
14211# As a special exception to the GNU General Public License,
14212# if you distribute this file as part of a program or library that
14213# is built using GNU Libtool, you may include this file under the
14214# same distribution terms that you use for the rest of that program.
14215#
14216# GNU Libtool is distributed in the hope that it will be useful,
14217# but WITHOUT ANY WARRANTY; without even the implied warranty of
14218# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14219# GNU General Public License for more details.
14220#
14221# You should have received a copy of the GNU General Public License
14222# along with GNU Libtool; see the file COPYING.  If not, a copy
14223# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14224# obtained by writing to the Free Software Foundation, Inc.,
14225# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14226
14227
14228# The names of the tagged configurations supported by this script.
14229available_tags=""
14230
14231# ### BEGIN LIBTOOL CONFIG
14232
14233# Which release of libtool.m4 was used?
14234macro_version=$macro_version
14235macro_revision=$macro_revision
14236
14237# Whether or not to build shared libraries.
14238build_libtool_libs=$enable_shared
14239
14240# Whether or not to build static libraries.
14241build_old_libs=$enable_static
14242
14243# What type of objects to build.
14244pic_mode=$pic_mode
14245
14246# Whether or not to optimize for fast installation.
14247fast_install=$enable_fast_install
14248
14249# Shell to use when invoking shell scripts.
14250SHELL=$lt_SHELL
14251
14252# An echo program that protects backslashes.
14253ECHO=$lt_ECHO
14254
14255# The PATH separator for the build system.
14256PATH_SEPARATOR=$lt_PATH_SEPARATOR
14257
14258# The host system.
14259host_alias=$host_alias
14260host=$host
14261host_os=$host_os
14262
14263# The build system.
14264build_alias=$build_alias
14265build=$build
14266build_os=$build_os
14267
14268# A sed program that does not truncate output.
14269SED=$lt_SED
14270
14271# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14272Xsed="\$SED -e 1s/^X//"
14273
14274# A grep program that handles long lines.
14275GREP=$lt_GREP
14276
14277# An ERE matcher.
14278EGREP=$lt_EGREP
14279
14280# A literal string matcher.
14281FGREP=$lt_FGREP
14282
14283# A BSD- or MS-compatible name lister.
14284NM=$lt_NM
14285
14286# Whether we need soft or hard links.
14287LN_S=$lt_LN_S
14288
14289# What is the maximum length of a command?
14290max_cmd_len=$max_cmd_len
14291
14292# Object file suffix (normally "o").
14293objext=$ac_objext
14294
14295# Executable file suffix (normally "").
14296exeext=$exeext
14297
14298# whether the shell understands "unset".
14299lt_unset=$lt_unset
14300
14301# turn spaces into newlines.
14302SP2NL=$lt_lt_SP2NL
14303
14304# turn newlines into spaces.
14305NL2SP=$lt_lt_NL2SP
14306
14307# convert \$build file names to \$host format.
14308to_host_file_cmd=$lt_cv_to_host_file_cmd
14309
14310# convert \$build files to toolchain format.
14311to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14312
14313# An object symbol dumper.
14314OBJDUMP=$lt_OBJDUMP
14315
14316# Method to check whether dependent libraries are shared objects.
14317deplibs_check_method=$lt_deplibs_check_method
14318
14319# Command to use when deplibs_check_method = "file_magic".
14320file_magic_cmd=$lt_file_magic_cmd
14321
14322# How to find potential files when deplibs_check_method = "file_magic".
14323file_magic_glob=$lt_file_magic_glob
14324
14325# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14326want_nocaseglob=$lt_want_nocaseglob
14327
14328# DLL creation program.
14329DLLTOOL=$lt_DLLTOOL
14330
14331# Command to associate shared and link libraries.
14332sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14333
14334# The archiver.
14335AR=$lt_AR
14336
14337# Flags to create an archive.
14338AR_FLAGS=$lt_AR_FLAGS
14339
14340# How to feed a file listing to the archiver.
14341archiver_list_spec=$lt_archiver_list_spec
14342
14343# A symbol stripping program.
14344STRIP=$lt_STRIP
14345
14346# Commands used to install an old-style archive.
14347RANLIB=$lt_RANLIB
14348old_postinstall_cmds=$lt_old_postinstall_cmds
14349old_postuninstall_cmds=$lt_old_postuninstall_cmds
14350
14351# Whether to use a lock for old archive extraction.
14352lock_old_archive_extraction=$lock_old_archive_extraction
14353
14354# A C compiler.
14355LTCC=$lt_CC
14356
14357# LTCC compiler flags.
14358LTCFLAGS=$lt_CFLAGS
14359
14360# Take the output of nm and produce a listing of raw symbols and C names.
14361global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14362
14363# Transform the output of nm in a proper C declaration.
14364global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14365
14366# Transform the output of nm in a C name address pair.
14367global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14368
14369# Transform the output of nm in a C name address pair when lib prefix is needed.
14370global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14371
14372# Specify filename containing input files for \$NM.
14373nm_file_list_spec=$lt_nm_file_list_spec
14374
14375# The root where to search for dependent libraries,and in which our libraries should be installed.
14376lt_sysroot=$lt_sysroot
14377
14378# The name of the directory that contains temporary libtool files.
14379objdir=$objdir
14380
14381# Used to examine libraries when file_magic_cmd begins with "file".
14382MAGIC_CMD=$MAGIC_CMD
14383
14384# Must we lock files when doing compilation?
14385need_locks=$lt_need_locks
14386
14387# Manifest tool.
14388MANIFEST_TOOL=$lt_MANIFEST_TOOL
14389
14390# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14391DSYMUTIL=$lt_DSYMUTIL
14392
14393# Tool to change global to local symbols on Mac OS X.
14394NMEDIT=$lt_NMEDIT
14395
14396# Tool to manipulate fat objects and archives on Mac OS X.
14397LIPO=$lt_LIPO
14398
14399# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14400OTOOL=$lt_OTOOL
14401
14402# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14403OTOOL64=$lt_OTOOL64
14404
14405# Old archive suffix (normally "a").
14406libext=$libext
14407
14408# Shared library suffix (normally ".so").
14409shrext_cmds=$lt_shrext_cmds
14410
14411# The commands to extract the exported symbol list from a shared archive.
14412extract_expsyms_cmds=$lt_extract_expsyms_cmds
14413
14414# Variables whose values should be saved in libtool wrapper scripts and
14415# restored at link time.
14416variables_saved_for_relink=$lt_variables_saved_for_relink
14417
14418# Do we need the "lib" prefix for modules?
14419need_lib_prefix=$need_lib_prefix
14420
14421# Do we need a version for libraries?
14422need_version=$need_version
14423
14424# Library versioning type.
14425version_type=$version_type
14426
14427# Shared library runtime path variable.
14428runpath_var=$runpath_var
14429
14430# Shared library path variable.
14431shlibpath_var=$shlibpath_var
14432
14433# Is shlibpath searched before the hard-coded library search path?
14434shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14435
14436# Format of library name prefix.
14437libname_spec=$lt_libname_spec
14438
14439# List of archive names.  First name is the real one, the rest are links.
14440# The last name is the one that the linker finds with -lNAME
14441library_names_spec=$lt_library_names_spec
14442
14443# The coded name of the library, if different from the real name.
14444soname_spec=$lt_soname_spec
14445
14446# Permission mode override for installation of shared libraries.
14447install_override_mode=$lt_install_override_mode
14448
14449# Command to use after installation of a shared archive.
14450postinstall_cmds=$lt_postinstall_cmds
14451
14452# Command to use after uninstallation of a shared archive.
14453postuninstall_cmds=$lt_postuninstall_cmds
14454
14455# Commands used to finish a libtool library installation in a directory.
14456finish_cmds=$lt_finish_cmds
14457
14458# As "finish_cmds", except a single script fragment to be evaled but
14459# not shown.
14460finish_eval=$lt_finish_eval
14461
14462# Whether we should hardcode library paths into libraries.
14463hardcode_into_libs=$hardcode_into_libs
14464
14465# Compile-time system search path for libraries.
14466sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14467
14468# Run-time system search path for libraries.
14469sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14470
14471# Whether dlopen is supported.
14472dlopen_support=$enable_dlopen
14473
14474# Whether dlopen of programs is supported.
14475dlopen_self=$enable_dlopen_self
14476
14477# Whether dlopen of statically linked programs is supported.
14478dlopen_self_static=$enable_dlopen_self_static
14479
14480# Commands to strip libraries.
14481old_striplib=$lt_old_striplib
14482striplib=$lt_striplib
14483
14484
14485# The linker used to build libraries.
14486LD=$lt_LD
14487
14488# How to create reloadable object files.
14489reload_flag=$lt_reload_flag
14490reload_cmds=$lt_reload_cmds
14491
14492# Commands used to build an old-style archive.
14493old_archive_cmds=$lt_old_archive_cmds
14494
14495# A language specific compiler.
14496CC=$lt_compiler
14497
14498# Is the compiler the GNU compiler?
14499with_gcc=$GCC
14500
14501# Compiler flag to turn off builtin functions.
14502no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14503
14504# Additional compiler flags for building library objects.
14505pic_flag=$lt_lt_prog_compiler_pic
14506
14507# How to pass a linker flag through the compiler.
14508wl=$lt_lt_prog_compiler_wl
14509
14510# Compiler flag to prevent dynamic linking.
14511link_static_flag=$lt_lt_prog_compiler_static
14512
14513# Does compiler simultaneously support -c and -o options?
14514compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14515
14516# Whether or not to add -lc for building shared libraries.
14517build_libtool_need_lc=$archive_cmds_need_lc
14518
14519# Whether or not to disallow shared libs when runtime libs are static.
14520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14521
14522# Compiler flag to allow reflexive dlopens.
14523export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14524
14525# Compiler flag to generate shared objects directly from archives.
14526whole_archive_flag_spec=$lt_whole_archive_flag_spec
14527
14528# Whether the compiler copes with passing no objects directly.
14529compiler_needs_object=$lt_compiler_needs_object
14530
14531# Create an old-style archive from a shared archive.
14532old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14533
14534# Create a temporary old-style archive to link instead of a shared archive.
14535old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14536
14537# Commands used to build a shared archive.
14538archive_cmds=$lt_archive_cmds
14539archive_expsym_cmds=$lt_archive_expsym_cmds
14540
14541# Commands used to build a loadable module if different from building
14542# a shared archive.
14543module_cmds=$lt_module_cmds
14544module_expsym_cmds=$lt_module_expsym_cmds
14545
14546# Whether we are building with GNU ld or not.
14547with_gnu_ld=$lt_with_gnu_ld
14548
14549# Flag that allows shared libraries with undefined symbols to be built.
14550allow_undefined_flag=$lt_allow_undefined_flag
14551
14552# Flag that enforces no undefined symbols.
14553no_undefined_flag=$lt_no_undefined_flag
14554
14555# Flag to hardcode \$libdir into a binary during linking.
14556# This must work even if \$libdir does not exist
14557hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14558
14559# Whether we need a single "-rpath" flag with a separated argument.
14560hardcode_libdir_separator=$lt_hardcode_libdir_separator
14561
14562# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14563# DIR into the resulting binary.
14564hardcode_direct=$hardcode_direct
14565
14566# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14567# DIR into the resulting binary and the resulting library dependency is
14568# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14569# library is relocated.
14570hardcode_direct_absolute=$hardcode_direct_absolute
14571
14572# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14573# into the resulting binary.
14574hardcode_minus_L=$hardcode_minus_L
14575
14576# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14577# into the resulting binary.
14578hardcode_shlibpath_var=$hardcode_shlibpath_var
14579
14580# Set to "yes" if building a shared library automatically hardcodes DIR
14581# into the library and all subsequent libraries and executables linked
14582# against it.
14583hardcode_automatic=$hardcode_automatic
14584
14585# Set to yes if linker adds runtime paths of dependent libraries
14586# to runtime path list.
14587inherit_rpath=$inherit_rpath
14588
14589# Whether libtool must link a program against all its dependency libraries.
14590link_all_deplibs=$link_all_deplibs
14591
14592# Set to "yes" if exported symbols are required.
14593always_export_symbols=$always_export_symbols
14594
14595# The commands to list exported symbols.
14596export_symbols_cmds=$lt_export_symbols_cmds
14597
14598# Symbols that should not be listed in the preloaded symbols.
14599exclude_expsyms=$lt_exclude_expsyms
14600
14601# Symbols that must always be exported.
14602include_expsyms=$lt_include_expsyms
14603
14604# Commands necessary for linking programs (against libraries) with templates.
14605prelink_cmds=$lt_prelink_cmds
14606
14607# Commands necessary for finishing linking programs.
14608postlink_cmds=$lt_postlink_cmds
14609
14610# Specify filename containing input files.
14611file_list_spec=$lt_file_list_spec
14612
14613# How to hardcode a shared library path into an executable.
14614hardcode_action=$hardcode_action
14615
14616# ### END LIBTOOL CONFIG
14617
14618_LT_EOF
14619
14620  case $host_os in
14621  aix3*)
14622    cat <<\_LT_EOF >> "$cfgfile"
14623# AIX sometimes has problems with the GCC collect2 program.  For some
14624# reason, if we set the COLLECT_NAMES environment variable, the problems
14625# vanish in a puff of smoke.
14626if test "X${COLLECT_NAMES+set}" != Xset; then
14627  COLLECT_NAMES=
14628  export COLLECT_NAMES
14629fi
14630_LT_EOF
14631    ;;
14632  esac
14633
14634
14635ltmain="$ac_aux_dir/ltmain.sh"
14636
14637
14638  # We use sed instead of cat because bash on DJGPP gets confused if
14639  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14640  # text mode, it properly converts lines to CR/LF.  This bash problem
14641  # is reportedly fixed, but why not run on old versions too?
14642  sed '$q' "$ltmain" >> "$cfgfile" \
14643     || (rm -f "$cfgfile"; exit 1)
14644
14645  if test x"$xsi_shell" = xyes; then
14646  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14647func_dirname ()\
14648{\
14649\    case ${1} in\
14650\      */*) func_dirname_result="${1%/*}${2}" ;;\
14651\      *  ) func_dirname_result="${3}" ;;\
14652\    esac\
14653} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14654  && mv -f "$cfgfile.tmp" "$cfgfile" \
14655    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14656test 0 -eq $? || _lt_function_replace_fail=:
14657
14658
14659  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14660func_basename ()\
14661{\
14662\    func_basename_result="${1##*/}"\
14663} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14664  && mv -f "$cfgfile.tmp" "$cfgfile" \
14665    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14666test 0 -eq $? || _lt_function_replace_fail=:
14667
14668
14669  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14670func_dirname_and_basename ()\
14671{\
14672\    case ${1} in\
14673\      */*) func_dirname_result="${1%/*}${2}" ;;\
14674\      *  ) func_dirname_result="${3}" ;;\
14675\    esac\
14676\    func_basename_result="${1##*/}"\
14677} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14678  && mv -f "$cfgfile.tmp" "$cfgfile" \
14679    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14680test 0 -eq $? || _lt_function_replace_fail=:
14681
14682
14683  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14684func_stripname ()\
14685{\
14686\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14687\    # positional parameters, so assign one to ordinary parameter first.\
14688\    func_stripname_result=${3}\
14689\    func_stripname_result=${func_stripname_result#"${1}"}\
14690\    func_stripname_result=${func_stripname_result%"${2}"}\
14691} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14692  && mv -f "$cfgfile.tmp" "$cfgfile" \
14693    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14694test 0 -eq $? || _lt_function_replace_fail=:
14695
14696
14697  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14698func_split_long_opt ()\
14699{\
14700\    func_split_long_opt_name=${1%%=*}\
14701\    func_split_long_opt_arg=${1#*=}\
14702} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14703  && mv -f "$cfgfile.tmp" "$cfgfile" \
14704    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14705test 0 -eq $? || _lt_function_replace_fail=:
14706
14707
14708  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14709func_split_short_opt ()\
14710{\
14711\    func_split_short_opt_arg=${1#??}\
14712\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14713} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14714  && mv -f "$cfgfile.tmp" "$cfgfile" \
14715    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14716test 0 -eq $? || _lt_function_replace_fail=:
14717
14718
14719  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14720func_lo2o ()\
14721{\
14722\    case ${1} in\
14723\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14724\      *)    func_lo2o_result=${1} ;;\
14725\    esac\
14726} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14727  && mv -f "$cfgfile.tmp" "$cfgfile" \
14728    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14729test 0 -eq $? || _lt_function_replace_fail=:
14730
14731
14732  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14733func_xform ()\
14734{\
14735    func_xform_result=${1%.*}.lo\
14736} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14737  && mv -f "$cfgfile.tmp" "$cfgfile" \
14738    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14739test 0 -eq $? || _lt_function_replace_fail=:
14740
14741
14742  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14743func_arith ()\
14744{\
14745    func_arith_result=$(( $* ))\
14746} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14747  && mv -f "$cfgfile.tmp" "$cfgfile" \
14748    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14749test 0 -eq $? || _lt_function_replace_fail=:
14750
14751
14752  sed -e '/^func_len ()$/,/^} # func_len /c\
14753func_len ()\
14754{\
14755    func_len_result=${#1}\
14756} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14757  && mv -f "$cfgfile.tmp" "$cfgfile" \
14758    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14759test 0 -eq $? || _lt_function_replace_fail=:
14760
14761fi
14762
14763if test x"$lt_shell_append" = xyes; then
14764  sed -e '/^func_append ()$/,/^} # func_append /c\
14765func_append ()\
14766{\
14767    eval "${1}+=\\${2}"\
14768} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14769  && mv -f "$cfgfile.tmp" "$cfgfile" \
14770    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14771test 0 -eq $? || _lt_function_replace_fail=:
14772
14773
14774  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14775func_append_quoted ()\
14776{\
14777\    func_quote_for_eval "${2}"\
14778\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14779} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14780  && mv -f "$cfgfile.tmp" "$cfgfile" \
14781    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14782test 0 -eq $? || _lt_function_replace_fail=:
14783
14784
14785  # Save a `func_append' function call where possible by direct use of '+='
14786  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14787    && mv -f "$cfgfile.tmp" "$cfgfile" \
14788      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14789  test 0 -eq $? || _lt_function_replace_fail=:
14790else
14791  # Save a `func_append' function call even when '+=' is not available
14792  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14793    && mv -f "$cfgfile.tmp" "$cfgfile" \
14794      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14795  test 0 -eq $? || _lt_function_replace_fail=:
14796fi
14797
14798if test x"$_lt_function_replace_fail" = x":"; then
14799  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14800$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14801fi
14802
14803
14804   mv -f "$cfgfile" "$ofile" ||
14805    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14806  chmod +x "$ofile"
14807
14808 ;;
14809
14810  esac
14811done # for ac_tag
14812
14813
14814as_fn_exit 0
14815_ACEOF
14816ac_clean_files=$ac_clean_files_save
14817
14818test $ac_write_fail = 0 ||
14819  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14820
14821
14822# configure is writing to config.log, and then calls config.status.
14823# config.status does its own redirection, appending to config.log.
14824# Unfortunately, on DOS this fails, as config.log is still kept open
14825# by configure, so config.status won't be able to write to it; its
14826# output is simply discarded.  So we exec the FD to /dev/null,
14827# effectively closing config.log, so it can be properly (re)opened and
14828# appended to by config.status.  When coming back to configure, we
14829# need to make the FD available again.
14830if test "$no_create" != yes; then
14831  ac_cs_success=:
14832  ac_config_status_args=
14833  test "$silent" = yes &&
14834    ac_config_status_args="$ac_config_status_args --quiet"
14835  exec 5>/dev/null
14836  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14837  exec 5>>config.log
14838  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14839  # would make configure fail if this is the last instruction.
14840  $ac_cs_success || as_fn_exit 1
14841fi
14842if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14843  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14844$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14845fi
14846
14847