]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/sqlite3/configure
zfs: merge openzfs/zfs@269b5dadc (master) into main
[FreeBSD/FreeBSD.git] / contrib / sqlite3 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.35.5.
4 #
5 # Report bugs to <http://www.sqlite.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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   }
81 fi
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.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
103
104      ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export 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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if 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
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -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
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
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
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
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
244 fi; }
245 IFS=$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.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $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
267 exit 255
268 fi
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
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_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.
316 as_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.
326 as_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.
374 as_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.
384 if (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   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # 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.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # 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.
419 as_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
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_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.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_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
511 ECHO_C= ECHO_N= ECHO_T=
512 case `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';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (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
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_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.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 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.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='sqlite'
592 PACKAGE_TARNAME='sqlite'
593 PACKAGE_VERSION='3.35.5'
594 PACKAGE_STRING='sqlite 3.35.5'
595 PACKAGE_BUGREPORT='http://www.sqlite.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="sqlite3.c"
599 # Factoring default headers for most tests.
600 ac_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
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 SHELL_CFLAGS
640 EXTRA_SHELL_OBJ
641 READLINE_LIBS
642 BUILD_CFLAGS
643 CPP
644 LT_SYS_LIBRARY_PATH
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 MANIFEST_TOOL
651 RANLIB
652 ac_ct_AR
653 AR
654 DLLTOOL
655 OBJDUMP
656 LN_S
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 EGREP
663 GREP
664 SED
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 LIBTOOL
674 am__fastdepCC_FALSE
675 am__fastdepCC_TRUE
676 CCDEPMODE
677 am__nodep
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 AM_BACKSLASH
692 AM_DEFAULT_VERBOSITY
693 AM_DEFAULT_V
694 AM_V
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 runstatedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_silent_rules
761 enable_largefile
762 enable_dependency_tracking
763 enable_shared
764 enable_static
765 with_pic
766 enable_fast_install
767 with_aix_soname
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 enable_editline
772 enable_readline
773 enable_threadsafe
774 enable_dynamic_extensions
775 enable_math
776 enable_fts4
777 enable_fts3
778 enable_fts5
779 enable_json1
780 enable_rtree
781 enable_session
782 enable_debug
783 enable_static_shell
784 '
785       ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 LT_SYS_LIBRARY_PATH
794 CPP'
795
796
797 # Initialize some variables set by options.
798 ac_init_help=
799 ac_init_version=false
800 ac_unrecognized_opts=
801 ac_unrecognized_sep=
802 # The variables have the same names as the options, with
803 # dashes changed to underlines.
804 cache_file=/dev/null
805 exec_prefix=NONE
806 no_create=
807 no_recursion=
808 prefix=NONE
809 program_prefix=NONE
810 program_suffix=NONE
811 program_transform_name=s,x,x,
812 silent=
813 site=
814 srcdir=
815 verbose=
816 x_includes=NONE
817 x_libraries=NONE
818
819 # Installation directory options.
820 # These are left unexpanded so users can "make install exec_prefix=/foo"
821 # and all the variables that are supposed to be based on exec_prefix
822 # by default will actually change.
823 # Use braces instead of parens because sh, perl, etc. also accept them.
824 # (The list follows the same order as the GNU Coding Standards.)
825 bindir='${exec_prefix}/bin'
826 sbindir='${exec_prefix}/sbin'
827 libexecdir='${exec_prefix}/libexec'
828 datarootdir='${prefix}/share'
829 datadir='${datarootdir}'
830 sysconfdir='${prefix}/etc'
831 sharedstatedir='${prefix}/com'
832 localstatedir='${prefix}/var'
833 runstatedir='${localstatedir}/run'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
838 htmldir='${docdir}'
839 dvidir='${docdir}'
840 pdfdir='${docdir}'
841 psdir='${docdir}'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
845
846 ac_prev=
847 ac_dashdash=
848 for ac_option
849 do
850   # If the previous option needs an argument, assign it.
851   if test -n "$ac_prev"; then
852     eval $ac_prev=\$ac_option
853     ac_prev=
854     continue
855   fi
856
857   case $ac_option in
858   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859   *=)   ac_optarg= ;;
860   *)    ac_optarg=yes ;;
861   esac
862
863   # Accept the important Cygnus configure options, so we can diagnose typos.
864
865   case $ac_dashdash$ac_option in
866   --)
867     ac_dashdash=yes ;;
868
869   -bindir | --bindir | --bindi | --bind | --bin | --bi)
870     ac_prev=bindir ;;
871   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872     bindir=$ac_optarg ;;
873
874   -build | --build | --buil | --bui | --bu)
875     ac_prev=build_alias ;;
876   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877     build_alias=$ac_optarg ;;
878
879   -cache-file | --cache-file | --cache-fil | --cache-fi \
880   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881     ac_prev=cache_file ;;
882   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884     cache_file=$ac_optarg ;;
885
886   --config-cache | -C)
887     cache_file=config.cache ;;
888
889   -datadir | --datadir | --datadi | --datad)
890     ac_prev=datadir ;;
891   -datadir=* | --datadir=* | --datadi=* | --datad=*)
892     datadir=$ac_optarg ;;
893
894   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895   | --dataroo | --dataro | --datar)
896     ac_prev=datarootdir ;;
897   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899     datarootdir=$ac_optarg ;;
900
901   -disable-* | --disable-*)
902     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903     # Reject names that are not valid shell variable names.
904     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905       as_fn_error $? "invalid feature name: $ac_useropt"
906     ac_useropt_orig=$ac_useropt
907     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908     case $ac_user_opts in
909       *"
910 "enable_$ac_useropt"
911 "*) ;;
912       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913          ac_unrecognized_sep=', ';;
914     esac
915     eval enable_$ac_useropt=no ;;
916
917   -docdir | --docdir | --docdi | --doc | --do)
918     ac_prev=docdir ;;
919   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920     docdir=$ac_optarg ;;
921
922   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923     ac_prev=dvidir ;;
924   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925     dvidir=$ac_optarg ;;
926
927   -enable-* | --enable-*)
928     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929     # Reject names that are not valid shell variable names.
930     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931       as_fn_error $? "invalid feature name: $ac_useropt"
932     ac_useropt_orig=$ac_useropt
933     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934     case $ac_user_opts in
935       *"
936 "enable_$ac_useropt"
937 "*) ;;
938       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939          ac_unrecognized_sep=', ';;
940     esac
941     eval enable_$ac_useropt=\$ac_optarg ;;
942
943   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945   | --exec | --exe | --ex)
946     ac_prev=exec_prefix ;;
947   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949   | --exec=* | --exe=* | --ex=*)
950     exec_prefix=$ac_optarg ;;
951
952   -gas | --gas | --ga | --g)
953     # Obsolete; use --with-gas.
954     with_gas=yes ;;
955
956   -help | --help | --hel | --he | -h)
957     ac_init_help=long ;;
958   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959     ac_init_help=recursive ;;
960   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961     ac_init_help=short ;;
962
963   -host | --host | --hos | --ho)
964     ac_prev=host_alias ;;
965   -host=* | --host=* | --hos=* | --ho=*)
966     host_alias=$ac_optarg ;;
967
968   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969     ac_prev=htmldir ;;
970   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971   | --ht=*)
972     htmldir=$ac_optarg ;;
973
974   -includedir | --includedir | --includedi | --included | --include \
975   | --includ | --inclu | --incl | --inc)
976     ac_prev=includedir ;;
977   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978   | --includ=* | --inclu=* | --incl=* | --inc=*)
979     includedir=$ac_optarg ;;
980
981   -infodir | --infodir | --infodi | --infod | --info | --inf)
982     ac_prev=infodir ;;
983   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984     infodir=$ac_optarg ;;
985
986   -libdir | --libdir | --libdi | --libd)
987     ac_prev=libdir ;;
988   -libdir=* | --libdir=* | --libdi=* | --libd=*)
989     libdir=$ac_optarg ;;
990
991   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992   | --libexe | --libex | --libe)
993     ac_prev=libexecdir ;;
994   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995   | --libexe=* | --libex=* | --libe=*)
996     libexecdir=$ac_optarg ;;
997
998   -localedir | --localedir | --localedi | --localed | --locale)
999     ac_prev=localedir ;;
1000   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001     localedir=$ac_optarg ;;
1002
1003   -localstatedir | --localstatedir | --localstatedi | --localstated \
1004   | --localstate | --localstat | --localsta | --localst | --locals)
1005     ac_prev=localstatedir ;;
1006   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008     localstatedir=$ac_optarg ;;
1009
1010   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011     ac_prev=mandir ;;
1012   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013     mandir=$ac_optarg ;;
1014
1015   -nfp | --nfp | --nf)
1016     # Obsolete; use --without-fp.
1017     with_fp=no ;;
1018
1019   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020   | --no-cr | --no-c | -n)
1021     no_create=yes ;;
1022
1023   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025     no_recursion=yes ;;
1026
1027   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029   | --oldin | --oldi | --old | --ol | --o)
1030     ac_prev=oldincludedir ;;
1031   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034     oldincludedir=$ac_optarg ;;
1035
1036   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037     ac_prev=prefix ;;
1038   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039     prefix=$ac_optarg ;;
1040
1041   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042   | --program-pre | --program-pr | --program-p)
1043     ac_prev=program_prefix ;;
1044   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046     program_prefix=$ac_optarg ;;
1047
1048   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049   | --program-suf | --program-su | --program-s)
1050     ac_prev=program_suffix ;;
1051   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053     program_suffix=$ac_optarg ;;
1054
1055   -program-transform-name | --program-transform-name \
1056   | --program-transform-nam | --program-transform-na \
1057   | --program-transform-n | --program-transform- \
1058   | --program-transform | --program-transfor \
1059   | --program-transfo | --program-transf \
1060   | --program-trans | --program-tran \
1061   | --progr-tra | --program-tr | --program-t)
1062     ac_prev=program_transform_name ;;
1063   -program-transform-name=* | --program-transform-name=* \
1064   | --program-transform-nam=* | --program-transform-na=* \
1065   | --program-transform-n=* | --program-transform-=* \
1066   | --program-transform=* | --program-transfor=* \
1067   | --program-transfo=* | --program-transf=* \
1068   | --program-trans=* | --program-tran=* \
1069   | --progr-tra=* | --program-tr=* | --program-t=*)
1070     program_transform_name=$ac_optarg ;;
1071
1072   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073     ac_prev=pdfdir ;;
1074   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075     pdfdir=$ac_optarg ;;
1076
1077   -psdir | --psdir | --psdi | --psd | --ps)
1078     ac_prev=psdir ;;
1079   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080     psdir=$ac_optarg ;;
1081
1082   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083   | -silent | --silent | --silen | --sile | --sil)
1084     silent=yes ;;
1085
1086   -runstatedir | --runstatedir | --runstatedi | --runstated \
1087   | --runstate | --runstat | --runsta | --runst | --runs \
1088   | --run | --ru | --r)
1089     ac_prev=runstatedir ;;
1090   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092   | --run=* | --ru=* | --r=*)
1093     runstatedir=$ac_optarg ;;
1094
1095   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096     ac_prev=sbindir ;;
1097   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098   | --sbi=* | --sb=*)
1099     sbindir=$ac_optarg ;;
1100
1101   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103   | --sharedst | --shareds | --shared | --share | --shar \
1104   | --sha | --sh)
1105     ac_prev=sharedstatedir ;;
1106   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109   | --sha=* | --sh=*)
1110     sharedstatedir=$ac_optarg ;;
1111
1112   -site | --site | --sit)
1113     ac_prev=site ;;
1114   -site=* | --site=* | --sit=*)
1115     site=$ac_optarg ;;
1116
1117   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118     ac_prev=srcdir ;;
1119   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120     srcdir=$ac_optarg ;;
1121
1122   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123   | --syscon | --sysco | --sysc | --sys | --sy)
1124     ac_prev=sysconfdir ;;
1125   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127     sysconfdir=$ac_optarg ;;
1128
1129   -target | --target | --targe | --targ | --tar | --ta | --t)
1130     ac_prev=target_alias ;;
1131   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132     target_alias=$ac_optarg ;;
1133
1134   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135     verbose=yes ;;
1136
1137   -version | --version | --versio | --versi | --vers | -V)
1138     ac_init_version=: ;;
1139
1140   -with-* | --with-*)
1141     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142     # Reject names that are not valid shell variable names.
1143     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144       as_fn_error $? "invalid package name: $ac_useropt"
1145     ac_useropt_orig=$ac_useropt
1146     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147     case $ac_user_opts in
1148       *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152          ac_unrecognized_sep=', ';;
1153     esac
1154     eval with_$ac_useropt=\$ac_optarg ;;
1155
1156   -without-* | --without-*)
1157     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158     # Reject names that are not valid shell variable names.
1159     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160       as_fn_error $? "invalid package name: $ac_useropt"
1161     ac_useropt_orig=$ac_useropt
1162     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163     case $ac_user_opts in
1164       *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168          ac_unrecognized_sep=', ';;
1169     esac
1170     eval with_$ac_useropt=no ;;
1171
1172   --x)
1173     # Obsolete; use --with-x.
1174     with_x=yes ;;
1175
1176   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177   | --x-incl | --x-inc | --x-in | --x-i)
1178     ac_prev=x_includes ;;
1179   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181     x_includes=$ac_optarg ;;
1182
1183   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185     ac_prev=x_libraries ;;
1186   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188     x_libraries=$ac_optarg ;;
1189
1190   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1192     ;;
1193
1194   *=*)
1195     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196     # Reject names that are not valid shell variable names.
1197     case $ac_envvar in #(
1198       '' | [0-9]* | *[!_$as_cr_alnum]* )
1199       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200     esac
1201     eval $ac_envvar=\$ac_optarg
1202     export $ac_envvar ;;
1203
1204   *)
1205     # FIXME: should be removed in autoconf 3.0.
1206     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210     ;;
1211
1212   esac
1213 done
1214
1215 if test -n "$ac_prev"; then
1216   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217   as_fn_error $? "missing argument to $ac_option"
1218 fi
1219
1220 if test -n "$ac_unrecognized_opts"; then
1221   case $enable_option_checking in
1222     no) ;;
1223     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225   esac
1226 fi
1227
1228 # Check all directory arguments for consistency.
1229 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230                 datadir sysconfdir sharedstatedir localstatedir includedir \
1231                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232                 libdir localedir mandir runstatedir
1233 do
1234   eval ac_val=\$$ac_var
1235   # Remove trailing slashes.
1236   case $ac_val in
1237     */ )
1238       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239       eval $ac_var=\$ac_val;;
1240   esac
1241   # Be sure to have absolute directory names.
1242   case $ac_val in
1243     [\\/$]* | ?:[\\/]* )  continue;;
1244     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245   esac
1246   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1248
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1255
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258   if test "x$build_alias" = x; then
1259     cross_compiling=maybe
1260   elif test "x$build_alias" != "x$host_alias"; then
1261     cross_compiling=yes
1262   fi
1263 fi
1264
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268 test "$silent" = yes && exec 6>/dev/null
1269
1270
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274   as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276   as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281   ac_srcdir_defaulted=yes
1282   # Try the directory containing this script, then the parent directory.
1283   ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285          X"$as_myself" : 'X\(//\)[^/]' \| \
1286          X"$as_myself" : 'X\(//\)$' \| \
1287          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290             s//\1/
1291             q
1292           }
1293           /^X\(\/\/\)[^/].*/{
1294             s//\1/
1295             q
1296           }
1297           /^X\(\/\/\)$/{
1298             s//\1/
1299             q
1300           }
1301           /^X\(\/\).*/{
1302             s//\1/
1303             q
1304           }
1305           s/.*/./; q'`
1306   srcdir=$ac_confdir
1307   if test ! -r "$srcdir/$ac_unique_file"; then
1308     srcdir=..
1309   fi
1310 else
1311   ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320         pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323   srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333   eval ac_env_${ac_var}_value=\$${ac_var}
1334   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342   # Omit some internal or obsolete options to make the list less imposing.
1343   # This message is too long to be a string in the A/UX 3.1 sh.
1344   cat <<_ACEOF
1345 \`configure' configures sqlite 3.35.5 to adapt to many kinds of systems.
1346
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352 Defaults for the options are specified in brackets.
1353
1354 Configuration:
1355   -h, --help              display this help and exit
1356       --help=short        display options specific to this package
1357       --help=recursive    display the short help of all the included packages
1358   -V, --version           display version information and exit
1359   -q, --quiet, --silent   do not print \`checking ...' messages
1360       --cache-file=FILE   cache test results in FILE [disabled]
1361   -C, --config-cache      alias for \`--cache-file=config.cache'
1362   -n, --no-create         do not create output files
1363       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365 Installation directories:
1366   --prefix=PREFIX         install architecture-independent files in PREFIX
1367                           [$ac_default_prefix]
1368   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                           [PREFIX]
1370
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1375
1376 For better control, use the options below.
1377
1378 Fine tuning of the installation directories:
1379   --bindir=DIR            user executables [EPREFIX/bin]
1380   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381   --libexecdir=DIR        program executables [EPREFIX/libexec]
1382   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386   --libdir=DIR            object code libraries [EPREFIX/lib]
1387   --includedir=DIR        C header files [PREFIX/include]
1388   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391   --infodir=DIR           info documentation [DATAROOTDIR/info]
1392   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393   --mandir=DIR            man documentation [DATAROOTDIR/man]
1394   --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1395   --htmldir=DIR           html documentation [DOCDIR]
1396   --dvidir=DIR            dvi documentation [DOCDIR]
1397   --pdfdir=DIR            pdf documentation [DOCDIR]
1398   --psdir=DIR             ps documentation [DOCDIR]
1399 _ACEOF
1400
1401   cat <<\_ACEOF
1402
1403 Program names:
1404   --program-prefix=PREFIX            prepend PREFIX to installed program names
1405   --program-suffix=SUFFIX            append SUFFIX to installed program names
1406   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408 System types:
1409   --build=BUILD     configure for building on BUILD [guessed]
1410   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415   case $ac_init_help in
1416      short | recursive ) echo "Configuration of sqlite 3.35.5:";;
1417    esac
1418   cat <<\_ACEOF
1419
1420 Optional Features:
1421   --disable-option-checking  ignore unrecognized --enable/--with options
1422   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424   --enable-silent-rules   less verbose build output (undo: "make V=1")
1425   --disable-silent-rules  verbose build output (undo: "make V=0")
1426   --disable-largefile     omit support for large files
1427   --enable-dependency-tracking
1428                           do not reject slow dependency extractors
1429   --disable-dependency-tracking
1430                           speeds up one-time build
1431   --enable-shared[=PKGS]  build shared libraries [default=yes]
1432   --enable-static[=PKGS]  build static libraries [default=yes]
1433   --enable-fast-install[=PKGS]
1434                           optimize for fast installation [default=yes]
1435   --disable-libtool-lock  avoid locking (might break parallel builds)
1436   --enable-editline       use BSD libedit
1437   --enable-readline       use readline
1438   --enable-threadsafe     build a thread-safe library [default=yes]
1439   --enable-dynamic-extensions
1440                           support loadable extensions [default=yes]
1441   --enable-math           SQL math functions [default=yes]
1442   --enable-fts4           include fts4 support [default=yes]
1443   --enable-fts3           include fts3 support [default=no]
1444   --enable-fts5           include fts5 support [default=yes]
1445   --enable-json1          include json1 support [default=yes]
1446   --enable-rtree          include rtree support [default=yes]
1447   --enable-session        enable the session extension [default=no]
1448   --enable-debug          build with debugging features enabled [default=no]
1449   --enable-static-shell   statically link libsqlite3 into shell tool
1450                           [default=yes]
1451
1452 Optional Packages:
1453   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1456                           both]
1457   --with-aix-soname=aix|svr4|both
1458                           shared library versioning (aka "SONAME") variant to
1459                           provide on AIX, [default=aix].
1460   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1461   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1462                           compiler's sysroot if not specified).
1463
1464 Some influential environment variables:
1465   CC          C compiler command
1466   CFLAGS      C compiler flags
1467   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468               nonstandard directory <lib dir>
1469   LIBS        libraries to pass to the linker, e.g. -l<library>
1470   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471               you have headers in a nonstandard directory <include dir>
1472   LT_SYS_LIBRARY_PATH
1473               User-defined run-time library search path.
1474   CPP         C preprocessor
1475
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1478
1479 Report bugs to <http://www.sqlite.org>.
1480 _ACEOF
1481 ac_status=$?
1482 fi
1483
1484 if test "$ac_init_help" = "recursive"; then
1485   # If there are subdirs, report their specific --help.
1486   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487     test -d "$ac_dir" ||
1488       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489       continue
1490     ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496   # A ".." for each directory in $ac_dir_suffix.
1497   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498   case $ac_top_builddir_sub in
1499   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501   esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509   .)  # We are building in place.
1510     ac_srcdir=.
1511     ac_top_srcdir=$ac_top_builddir_sub
1512     ac_abs_top_srcdir=$ac_pwd ;;
1513   [\\/]* | ?:[\\/]* )  # Absolute name.
1514     ac_srcdir=$srcdir$ac_dir_suffix;
1515     ac_top_srcdir=$srcdir
1516     ac_abs_top_srcdir=$srcdir ;;
1517   *) # Relative name.
1518     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519     ac_top_srcdir=$ac_top_build_prefix$srcdir
1520     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524     cd "$ac_dir" || { ac_status=$?; continue; }
1525     # Check for guested configure.
1526     if test -f "$ac_srcdir/configure.gnu"; then
1527       echo &&
1528       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529     elif test -f "$ac_srcdir/configure"; then
1530       echo &&
1531       $SHELL "$ac_srcdir/configure" --help=recursive
1532     else
1533       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534     fi || ac_status=$?
1535     cd "$ac_pwd" || { ac_status=$?; break; }
1536   done
1537 fi
1538
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541   cat <<\_ACEOF
1542 sqlite configure 3.35.5
1543 generated by GNU Autoconf 2.69
1544
1545 Copyright (C) 2012 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548 _ACEOF
1549   exit
1550 fi
1551
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1555
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile ()
1560 {
1561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562   rm -f conftest.$ac_objext
1563   if { { ac_try="$ac_compile"
1564 case "(($ac_try" in
1565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566   *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570   (eval "$ac_compile") 2>conftest.err
1571   ac_status=$?
1572   if test -s conftest.err; then
1573     grep -v '^ *+' conftest.err >conftest.er1
1574     cat conftest.er1 >&5
1575     mv -f conftest.er1 conftest.err
1576   fi
1577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578   test $ac_status = 0; } && {
1579          test -z "$ac_c_werror_flag" ||
1580          test ! -s conftest.err
1581        } && test -s conftest.$ac_objext; then :
1582   ac_retval=0
1583 else
1584   $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587         ac_retval=1
1588 fi
1589   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590   as_fn_set_status $ac_retval
1591
1592 } # ac_fn_c_try_compile
1593
1594 # ac_fn_c_try_link LINENO
1595 # -----------------------
1596 # Try to link conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_link ()
1598 {
1599   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600   rm -f conftest.$ac_objext conftest$ac_exeext
1601   if { { ac_try="$ac_link"
1602 case "(($ac_try" in
1603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604   *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608   (eval "$ac_link") 2>conftest.err
1609   ac_status=$?
1610   if test -s conftest.err; then
1611     grep -v '^ *+' conftest.err >conftest.er1
1612     cat conftest.er1 >&5
1613     mv -f conftest.er1 conftest.err
1614   fi
1615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616   test $ac_status = 0; } && {
1617          test -z "$ac_c_werror_flag" ||
1618          test ! -s conftest.err
1619        } && test -s conftest$ac_exeext && {
1620          test "$cross_compiling" = yes ||
1621          test -x conftest$ac_exeext
1622        }; then :
1623   ac_retval=0
1624 else
1625   $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628         ac_retval=1
1629 fi
1630   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1631   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1632   # interfere with the next link command; also delete a directory that is
1633   # left behind by Apple's compiler.  We do this before executing the actions.
1634   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636   as_fn_set_status $ac_retval
1637
1638 } # ac_fn_c_try_link
1639
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile ()
1645 {
1646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if eval \${$3+:} false; then :
1650   $as_echo_n "(cached) " >&6
1651 else
1652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h.  */
1654 $4
1655 #include <$2>
1656 _ACEOF
1657 if ac_fn_c_try_compile "$LINENO"; then :
1658   eval "$3=yes"
1659 else
1660   eval "$3=no"
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 fi
1664 eval ac_res=\$$3
1665                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
1669 } # ac_fn_c_check_header_compile
1670
1671 # ac_fn_c_try_cpp LINENO
1672 # ----------------------
1673 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_cpp ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   if { { ac_try="$ac_cpp conftest.$ac_ext"
1678 case "(($ac_try" in
1679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680   *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1685   ac_status=$?
1686   if test -s conftest.err; then
1687     grep -v '^ *+' conftest.err >conftest.er1
1688     cat conftest.er1 >&5
1689     mv -f conftest.er1 conftest.err
1690   fi
1691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692   test $ac_status = 0; } > conftest.i && {
1693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694          test ! -s conftest.err
1695        }; then :
1696   ac_retval=0
1697 else
1698   $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701     ac_retval=1
1702 fi
1703   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704   as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_cpp
1707
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1712 ac_fn_c_try_run ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718   *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722   (eval "$ac_link") 2>&5
1723   ac_status=$?
1724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726   { { case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732   (eval "$ac_try") 2>&5
1733   ac_status=$?
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; }; }; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: program exited with status $ac_status" >&5
1739        $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742        ac_retval=$ac_status
1743 fi
1744   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_run
1749
1750 # ac_fn_c_check_func LINENO FUNC VAR
1751 # ----------------------------------
1752 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1753 ac_fn_c_check_func ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759   $as_echo_n "(cached) " >&6
1760 else
1761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h.  */
1763 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1765 #define $2 innocuous_$2
1766
1767 /* System header to define __stub macros and hopefully few prototypes,
1768     which can conflict with char $2 (); below.
1769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770     <limits.h> exists even on freestanding compilers.  */
1771
1772 #ifdef __STDC__
1773 # include <limits.h>
1774 #else
1775 # include <assert.h>
1776 #endif
1777
1778 #undef $2
1779
1780 /* Override any GCC internal prototype to avoid an error.
1781    Use char because int might match the return type of a GCC
1782    builtin and then its argument prototype would still apply.  */
1783 #ifdef __cplusplus
1784 extern "C"
1785 #endif
1786 char $2 ();
1787 /* The GNU C library defines this for functions which it implements
1788     to always fail with ENOSYS.  Some functions are actually named
1789     something starting with __ and the normal name is an alias.  */
1790 #if defined __stub_$2 || defined __stub___$2
1791 choke me
1792 #endif
1793
1794 int
1795 main ()
1796 {
1797 return $2 ();
1798   ;
1799   return 0;
1800 }
1801 _ACEOF
1802 if ac_fn_c_try_link "$LINENO"; then :
1803   eval "$3=yes"
1804 else
1805   eval "$3=no"
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext \
1808     conftest$ac_exeext conftest.$ac_ext
1809 fi
1810 eval ac_res=\$$3
1811                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
1815 } # ac_fn_c_check_func
1816
1817 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1818 # ---------------------------------------------
1819 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1820 # accordingly.
1821 ac_fn_c_check_decl ()
1822 {
1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824   as_decl_name=`echo $2|sed 's/ *(.*//'`
1825   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1827 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1828 if eval \${$3+:} false; then :
1829   $as_echo_n "(cached) " >&6
1830 else
1831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h.  */
1833 $4
1834 int
1835 main ()
1836 {
1837 #ifndef $as_decl_name
1838 #ifdef __cplusplus
1839   (void) $as_decl_use;
1840 #else
1841   (void) $as_decl_name;
1842 #endif
1843 #endif
1844
1845   ;
1846   return 0;
1847 }
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850   eval "$3=yes"
1851 else
1852   eval "$3=no"
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861 } # ac_fn_c_check_decl
1862
1863 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1866 # the include files in INCLUDES and setting the cache variable VAR
1867 # accordingly.
1868 ac_fn_c_check_header_mongrel ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   if eval \${$3+:} false; then :
1872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875   $as_echo_n "(cached) " >&6
1876 fi
1877 eval ac_res=\$$3
1878                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 else
1881   # Is the header compilable?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1883 $as_echo_n "checking $2 usability... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h.  */
1886 $4
1887 #include <$2>
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890   ac_header_compiler=yes
1891 else
1892   ac_header_compiler=no
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1896 $as_echo "$ac_header_compiler" >&6; }
1897
1898 # Is the header present?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1900 $as_echo_n "checking $2 presence... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h.  */
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_cpp "$LINENO"; then :
1906   ac_header_preproc=yes
1907 else
1908   ac_header_preproc=no
1909 fi
1910 rm -f conftest.err conftest.i conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1912 $as_echo "$ac_header_preproc" >&6; }
1913
1914 # So?  What about this header?
1915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1916   yes:no: )
1917     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1918 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1919     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921     ;;
1922   no:yes:* )
1923     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1924 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1925     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1926 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1927     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1928 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1930 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1931     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 ( $as_echo "## ------------------------------------ ##
1934 ## Report this to http://www.sqlite.org ##
1935 ## ------------------------------------ ##"
1936      ) | sed "s/^/$as_me: WARNING:     /" >&2
1937     ;;
1938 esac
1939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942   $as_echo_n "(cached) " >&6
1943 else
1944   eval "$3=\$ac_header_compiler"
1945 fi
1946 eval ac_res=\$$3
1947                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 fi
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952 } # ac_fn_c_check_header_mongrel
1953 cat >config.log <<_ACEOF
1954 This file contains any messages produced by compilers while
1955 running configure, to aid debugging if configure makes a mistake.
1956
1957 It was created by sqlite $as_me 3.35.5, which was
1958 generated by GNU Autoconf 2.69.  Invocation command line was
1959
1960   $ $0 $@
1961
1962 _ACEOF
1963 exec 5>>config.log
1964 {
1965 cat <<_ASUNAME
1966 ## --------- ##
1967 ## Platform. ##
1968 ## --------- ##
1969
1970 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1971 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1972 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1973 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1974 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975
1976 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1977 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1978
1979 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1980 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1981 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1982 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1983 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1984 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1985 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1986
1987 _ASUNAME
1988
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992   IFS=$as_save_IFS
1993   test -z "$as_dir" && as_dir=.
1994     $as_echo "PATH: $as_dir"
1995   done
1996 IFS=$as_save_IFS
1997
1998 } >&5
1999
2000 cat >&5 <<_ACEOF
2001
2002
2003 ## ----------- ##
2004 ## Core tests. ##
2005 ## ----------- ##
2006
2007 _ACEOF
2008
2009
2010 # Keep a trace of the command line.
2011 # Strip out --no-create and --no-recursion so they do not pile up.
2012 # Strip out --silent because we don't want to record it for future runs.
2013 # Also quote any args containing shell meta-characters.
2014 # Make two passes to allow for proper duplicate-argument suppression.
2015 ac_configure_args=
2016 ac_configure_args0=
2017 ac_configure_args1=
2018 ac_must_keep_next=false
2019 for ac_pass in 1 2
2020 do
2021   for ac_arg
2022   do
2023     case $ac_arg in
2024     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2025     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2026     | -silent | --silent | --silen | --sile | --sil)
2027       continue ;;
2028     *\'*)
2029       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030     esac
2031     case $ac_pass in
2032     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033     2)
2034       as_fn_append ac_configure_args1 " '$ac_arg'"
2035       if test $ac_must_keep_next = true; then
2036         ac_must_keep_next=false # Got value, back to normal.
2037       else
2038         case $ac_arg in
2039           *=* | --config-cache | -C | -disable-* | --disable-* \
2040           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2041           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2042           | -with-* | --with-* | -without-* | --without-* | --x)
2043             case "$ac_configure_args0 " in
2044               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2045             esac
2046             ;;
2047           -* ) ac_must_keep_next=true ;;
2048         esac
2049       fi
2050       as_fn_append ac_configure_args " '$ac_arg'"
2051       ;;
2052     esac
2053   done
2054 done
2055 { ac_configure_args0=; unset ac_configure_args0;}
2056 { ac_configure_args1=; unset ac_configure_args1;}
2057
2058 # When interrupted or exit'd, cleanup temporary files, and complete
2059 # config.log.  We remove comments because anyway the quotes in there
2060 # would cause problems or look ugly.
2061 # WARNING: Use '\'' to represent an apostrophe within the trap.
2062 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2063 trap 'exit_status=$?
2064   # Save into config.log some information that might help in debugging.
2065   {
2066     echo
2067
2068     $as_echo "## ---------------- ##
2069 ## Cache variables. ##
2070 ## ---------------- ##"
2071     echo
2072     # The following way of writing the cache mishandles newlines in values,
2073 (
2074   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2075     eval ac_val=\$$ac_var
2076     case $ac_val in #(
2077     *${as_nl}*)
2078       case $ac_var in #(
2079       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2081       esac
2082       case $ac_var in #(
2083       _ | IFS | as_nl) ;; #(
2084       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2085       *) { eval $ac_var=; unset $ac_var;} ;;
2086       esac ;;
2087     esac
2088   done
2089   (set) 2>&1 |
2090     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2091     *${as_nl}ac_space=\ *)
2092       sed -n \
2093         "s/'\''/'\''\\\\'\'''\''/g;
2094           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2095       ;; #(
2096     *)
2097       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2098       ;;
2099     esac |
2100     sort
2101 )
2102     echo
2103
2104     $as_echo "## ----------------- ##
2105 ## Output variables. ##
2106 ## ----------------- ##"
2107     echo
2108     for ac_var in $ac_subst_vars
2109     do
2110       eval ac_val=\$$ac_var
2111       case $ac_val in
2112       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113       esac
2114       $as_echo "$ac_var='\''$ac_val'\''"
2115     done | sort
2116     echo
2117
2118     if test -n "$ac_subst_files"; then
2119       $as_echo "## ------------------- ##
2120 ## File substitutions. ##
2121 ## ------------------- ##"
2122       echo
2123       for ac_var in $ac_subst_files
2124       do
2125         eval ac_val=\$$ac_var
2126         case $ac_val in
2127         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128         esac
2129         $as_echo "$ac_var='\''$ac_val'\''"
2130       done | sort
2131       echo
2132     fi
2133
2134     if test -s confdefs.h; then
2135       $as_echo "## ----------- ##
2136 ## confdefs.h. ##
2137 ## ----------- ##"
2138       echo
2139       cat confdefs.h
2140       echo
2141     fi
2142     test "$ac_signal" != 0 &&
2143       $as_echo "$as_me: caught signal $ac_signal"
2144     $as_echo "$as_me: exit $exit_status"
2145   } >&5
2146   rm -f core *.core core.conftest.* &&
2147     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2148     exit $exit_status
2149 ' 0
2150 for ac_signal in 1 2 13 15; do
2151   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2152 done
2153 ac_signal=0
2154
2155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2156 rm -f -r conftest* confdefs.h
2157
2158 $as_echo "/* confdefs.h */" > confdefs.h
2159
2160 # Predefined preprocessor variables.
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_NAME "$PACKAGE_NAME"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2172 _ACEOF
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_STRING "$PACKAGE_STRING"
2176 _ACEOF
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2180 _ACEOF
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_URL "$PACKAGE_URL"
2184 _ACEOF
2185
2186
2187 # Let the site file select an alternate cache file if it wants to.
2188 # Prefer an explicitly selected file to automatically selected ones.
2189 ac_site_file1=NONE
2190 ac_site_file2=NONE
2191 if test -n "$CONFIG_SITE"; then
2192   # We do not want a PATH search for config.site.
2193   case $CONFIG_SITE in #((
2194     -*)  ac_site_file1=./$CONFIG_SITE;;
2195     */*) ac_site_file1=$CONFIG_SITE;;
2196     *)   ac_site_file1=./$CONFIG_SITE;;
2197   esac
2198 elif test "x$prefix" != xNONE; then
2199   ac_site_file1=$prefix/share/config.site
2200   ac_site_file2=$prefix/etc/config.site
2201 else
2202   ac_site_file1=$ac_default_prefix/share/config.site
2203   ac_site_file2=$ac_default_prefix/etc/config.site
2204 fi
2205 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2206 do
2207   test "x$ac_site_file" = xNONE && continue
2208   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2209     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2210 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2211     sed 's/^/| /' "$ac_site_file" >&5
2212     . "$ac_site_file" \
2213       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 as_fn_error $? "failed to load site script $ac_site_file
2216 See \`config.log' for more details" "$LINENO" 5; }
2217   fi
2218 done
2219
2220 if test -r "$cache_file"; then
2221   # Some versions of bash will fail to source /dev/null (special files
2222   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2223   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2224     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2225 $as_echo "$as_me: loading cache $cache_file" >&6;}
2226     case $cache_file in
2227       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2228       *)                      . "./$cache_file";;
2229     esac
2230   fi
2231 else
2232   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2233 $as_echo "$as_me: creating cache $cache_file" >&6;}
2234   >$cache_file
2235 fi
2236
2237 # Check that the precious variables saved in the cache have kept the same
2238 # value.
2239 ac_cache_corrupted=false
2240 for ac_var in $ac_precious_vars; do
2241   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2242   eval ac_new_set=\$ac_env_${ac_var}_set
2243   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2244   eval ac_new_val=\$ac_env_${ac_var}_value
2245   case $ac_old_set,$ac_new_set in
2246     set,)
2247       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2249       ac_cache_corrupted=: ;;
2250     ,set)
2251       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2252 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2253       ac_cache_corrupted=: ;;
2254     ,);;
2255     *)
2256       if test "x$ac_old_val" != "x$ac_new_val"; then
2257         # differences in whitespace do not lead to failure.
2258         ac_old_val_w=`echo x $ac_old_val`
2259         ac_new_val_w=`echo x $ac_new_val`
2260         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2261           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2262 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2263           ac_cache_corrupted=:
2264         else
2265           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2266 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2267           eval $ac_var=\$ac_old_val
2268         fi
2269         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2270 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2271         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2272 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2273       fi;;
2274   esac
2275   # Pass precious variables to config.status.
2276   if test "$ac_new_set" = set; then
2277     case $ac_new_val in
2278     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2279     *) ac_arg=$ac_var=$ac_new_val ;;
2280     esac
2281     case " $ac_configure_args " in
2282       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2283       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2284     esac
2285   fi
2286 done
2287 if $ac_cache_corrupted; then
2288   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2291 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2292   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293 fi
2294 ## -------------------- ##
2295 ## Main body of script. ##
2296 ## -------------------- ##
2297
2298 ac_ext=c
2299 ac_cpp='$CPP $CPPFLAGS'
2300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303
2304
2305
2306 ac_aux_dir=
2307 for ac_dir in . "$srcdir"/.; do
2308   if test -f "$ac_dir/install-sh"; then
2309     ac_aux_dir=$ac_dir
2310     ac_install_sh="$ac_aux_dir/install-sh -c"
2311     break
2312   elif test -f "$ac_dir/install.sh"; then
2313     ac_aux_dir=$ac_dir
2314     ac_install_sh="$ac_aux_dir/install.sh -c"
2315     break
2316   elif test -f "$ac_dir/shtool"; then
2317     ac_aux_dir=$ac_dir
2318     ac_install_sh="$ac_aux_dir/shtool install -c"
2319     break
2320   fi
2321 done
2322 if test -z "$ac_aux_dir"; then
2323   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2324 fi
2325
2326 # These three variables are undocumented and unsupported,
2327 # and are intended to be withdrawn in a future Autoconf release.
2328 # They can cause serious problems if a builder's source tree is in a directory
2329 # whose full name contains unusual characters.
2330 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2331 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2332 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2333
2334
2335
2336 # Use automake.
2337 am__api_version='1.15'
2338
2339 # Find a good install program.  We prefer a C program (faster),
2340 # so one script is as good as another.  But avoid the broken or
2341 # incompatible versions:
2342 # SysV /etc/install, /usr/sbin/install
2343 # SunOS /usr/etc/install
2344 # IRIX /sbin/install
2345 # AIX /bin/install
2346 # AmigaOS /C/install, which installs bootblocks on floppy discs
2347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2350 # OS/2's system install, which has a completely different semantic
2351 # ./install, which can be erroneously created by make from ./install.sh.
2352 # Reject install programs that cannot install multiple files.
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2354 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2355 if test -z "$INSTALL"; then
2356 if ${ac_cv_path_install+:} false; then :
2357   $as_echo_n "(cached) " >&6
2358 else
2359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362   IFS=$as_save_IFS
2363   test -z "$as_dir" && as_dir=.
2364     # Account for people who put trailing slashes in PATH elements.
2365 case $as_dir/ in #((
2366   ./ | .// | /[cC]/* | \
2367   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2368   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2369   /usr/ucb/* ) ;;
2370   *)
2371     # OSF1 and SCO ODT 3.0 have their own names for install.
2372     # Don't use installbsd from OSF since it installs stuff as root
2373     # by default.
2374     for ac_prog in ginstall scoinst install; do
2375       for ac_exec_ext in '' $ac_executable_extensions; do
2376         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2377           if test $ac_prog = install &&
2378             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2379             # AIX install.  It has an incompatible calling convention.
2380             :
2381           elif test $ac_prog = install &&
2382             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383             # program-specific install script used by HP pwplus--don't use.
2384             :
2385           else
2386             rm -rf conftest.one conftest.two conftest.dir
2387             echo one > conftest.one
2388             echo two > conftest.two
2389             mkdir conftest.dir
2390             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2391               test -s conftest.one && test -s conftest.two &&
2392               test -s conftest.dir/conftest.one &&
2393               test -s conftest.dir/conftest.two
2394             then
2395               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2396               break 3
2397             fi
2398           fi
2399         fi
2400       done
2401     done
2402     ;;
2403 esac
2404
2405   done
2406 IFS=$as_save_IFS
2407
2408 rm -rf conftest.one conftest.two conftest.dir
2409
2410 fi
2411   if test "${ac_cv_path_install+set}" = set; then
2412     INSTALL=$ac_cv_path_install
2413   else
2414     # As a last resort, use the slow shell script.  Don't cache a
2415     # value for INSTALL within a source directory, because that will
2416     # break other packages using the cache if that directory is
2417     # removed, or if the value is a relative name.
2418     INSTALL=$ac_install_sh
2419   fi
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2422 $as_echo "$INSTALL" >&6; }
2423
2424 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2425 # It thinks the first close brace ends the variable substitution.
2426 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2427
2428 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2429
2430 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2431
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2433 $as_echo_n "checking whether build environment is sane... " >&6; }
2434 # Reject unsafe characters in $srcdir or the absolute working directory
2435 # name.  Accept space and tab only in the latter.
2436 am_lf='
2437 '
2438 case `pwd` in
2439   *[\\\"\#\$\&\'\`$am_lf]*)
2440     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2441 esac
2442 case $srcdir in
2443   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2444     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2445 esac
2446
2447 # Do 'set' in a subshell so we don't clobber the current shell's
2448 # arguments.  Must try -L first in case configure is actually a
2449 # symlink; some systems play weird games with the mod time of symlinks
2450 # (eg FreeBSD returns the mod time of the symlink's containing
2451 # directory).
2452 if (
2453    am_has_slept=no
2454    for am_try in 1 2; do
2455      echo "timestamp, slept: $am_has_slept" > conftest.file
2456      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2457      if test "$*" = "X"; then
2458         # -L didn't work.
2459         set X `ls -t "$srcdir/configure" conftest.file`
2460      fi
2461      if test "$*" != "X $srcdir/configure conftest.file" \
2462         && test "$*" != "X conftest.file $srcdir/configure"; then
2463
2464         # If neither matched, then we have a broken ls.  This can happen
2465         # if, for instance, CONFIG_SHELL is bash and it inherits a
2466         # broken ls alias from the environment.  This has actually
2467         # happened.  Such a system could not be considered "sane".
2468         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2469   alias in your environment" "$LINENO" 5
2470      fi
2471      if test "$2" = conftest.file || test $am_try -eq 2; then
2472        break
2473      fi
2474      # Just in case.
2475      sleep 1
2476      am_has_slept=yes
2477    done
2478    test "$2" = conftest.file
2479    )
2480 then
2481    # Ok.
2482    :
2483 else
2484    as_fn_error $? "newly created file is older than distributed files!
2485 Check your system clock" "$LINENO" 5
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2488 $as_echo "yes" >&6; }
2489 # If we didn't sleep, we still need to ensure time stamps of config.status and
2490 # generated files are strictly newer.
2491 am_sleep_pid=
2492 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2493   ( sleep 1 ) &
2494   am_sleep_pid=$!
2495 fi
2496
2497 rm -f conftest.file
2498
2499 test "$program_prefix" != NONE &&
2500   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2501 # Use a double $ so make ignores it.
2502 test "$program_suffix" != NONE &&
2503   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2504 # Double any \ or $.
2505 # By default was `s,x,x', remove it if useless.
2506 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2507 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2508
2509 # Expand $ac_aux_dir to an absolute path.
2510 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2511
2512 if test x"${MISSING+set}" != xset; then
2513   case $am_aux_dir in
2514   *\ * | *\     *)
2515     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2516   *)
2517     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2518   esac
2519 fi
2520 # Use eval to expand $SHELL
2521 if eval "$MISSING --is-lightweight"; then
2522   am_missing_run="$MISSING "
2523 else
2524   am_missing_run=
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2526 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2527 fi
2528
2529 if test x"${install_sh+set}" != xset; then
2530   case $am_aux_dir in
2531   *\ * | *\     *)
2532     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2533   *)
2534     install_sh="\${SHELL} $am_aux_dir/install-sh"
2535   esac
2536 fi
2537
2538 # Installed binaries are usually stripped using 'strip' when the user
2539 # run "make install-strip".  However 'strip' might not be the right
2540 # tool to use in cross-compilation environments, therefore Automake
2541 # will honor the 'STRIP' environment variable to overrule this program.
2542 if test "$cross_compiling" != no; then
2543   if test -n "$ac_tool_prefix"; then
2544   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}strip; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if ${ac_cv_prog_STRIP+:} false; then :
2549   $as_echo_n "(cached) " >&6
2550 else
2551   if test -n "$STRIP"; then
2552   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557   IFS=$as_save_IFS
2558   test -z "$as_dir" && as_dir=.
2559     for ac_exec_ext in '' $ac_executable_extensions; do
2560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563     break 2
2564   fi
2565 done
2566   done
2567 IFS=$as_save_IFS
2568
2569 fi
2570 fi
2571 STRIP=$ac_cv_prog_STRIP
2572 if test -n "$STRIP"; then
2573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2574 $as_echo "$STRIP" >&6; }
2575 else
2576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2578 fi
2579
2580
2581 fi
2582 if test -z "$ac_cv_prog_STRIP"; then
2583   ac_ct_STRIP=$STRIP
2584   # Extract the first word of "strip", so it can be a program name with args.
2585 set dummy strip; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2589   $as_echo_n "(cached) " >&6
2590 else
2591   if test -n "$ac_ct_STRIP"; then
2592   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599     for ac_exec_ext in '' $ac_executable_extensions; do
2600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601     ac_cv_prog_ac_ct_STRIP="strip"
2602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606   done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2612 if test -n "$ac_ct_STRIP"; then
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2614 $as_echo "$ac_ct_STRIP" >&6; }
2615 else
2616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2618 fi
2619
2620   if test "x$ac_ct_STRIP" = x; then
2621     STRIP=":"
2622   else
2623     case $cross_compiling:$ac_tool_warned in
2624 yes:)
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2627 ac_tool_warned=yes ;;
2628 esac
2629     STRIP=$ac_ct_STRIP
2630   fi
2631 else
2632   STRIP="$ac_cv_prog_STRIP"
2633 fi
2634
2635 fi
2636 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2639 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2640 if test -z "$MKDIR_P"; then
2641   if ${ac_cv_path_mkdir+:} false; then :
2642   $as_echo_n "(cached) " >&6
2643 else
2644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2646 do
2647   IFS=$as_save_IFS
2648   test -z "$as_dir" && as_dir=.
2649     for ac_prog in mkdir gmkdir; do
2650          for ac_exec_ext in '' $ac_executable_extensions; do
2651            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2652            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2653              'mkdir (GNU coreutils) '* | \
2654              'mkdir (coreutils) '* | \
2655              'mkdir (fileutils) '4.1*)
2656                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2657                break 3;;
2658            esac
2659          done
2660        done
2661   done
2662 IFS=$as_save_IFS
2663
2664 fi
2665
2666   test -d ./--version && rmdir ./--version
2667   if test "${ac_cv_path_mkdir+set}" = set; then
2668     MKDIR_P="$ac_cv_path_mkdir -p"
2669   else
2670     # As a last resort, use the slow shell script.  Don't cache a
2671     # value for MKDIR_P within a source directory, because that will
2672     # break other packages using the cache if that directory is
2673     # removed, or if the value is a relative name.
2674     MKDIR_P="$ac_install_sh -d"
2675   fi
2676 fi
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2678 $as_echo "$MKDIR_P" >&6; }
2679
2680 for ac_prog in gawk mawk nawk awk
2681 do
2682   # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if ${ac_cv_prog_AWK+:} false; then :
2687   $as_echo_n "(cached) " >&6
2688 else
2689   if test -n "$AWK"; then
2690   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695   IFS=$as_save_IFS
2696   test -z "$as_dir" && as_dir=.
2697     for ac_exec_ext in '' $ac_executable_extensions; do
2698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699     ac_cv_prog_AWK="$ac_prog"
2700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701     break 2
2702   fi
2703 done
2704   done
2705 IFS=$as_save_IFS
2706
2707 fi
2708 fi
2709 AWK=$ac_cv_prog_AWK
2710 if test -n "$AWK"; then
2711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2712 $as_echo "$AWK" >&6; }
2713 else
2714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2716 fi
2717
2718
2719   test -n "$AWK" && break
2720 done
2721
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2723 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2724 set x ${MAKE-make}
2725 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2726 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   cat >conftest.make <<\_ACEOF
2730 SHELL = /bin/sh
2731 all:
2732         @echo '@@@%%%=$(MAKE)=@@@%%%'
2733 _ACEOF
2734 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2735 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2736   *@@@%%%=?*=@@@%%%*)
2737     eval ac_cv_prog_make_${ac_make}_set=yes;;
2738   *)
2739     eval ac_cv_prog_make_${ac_make}_set=no;;
2740 esac
2741 rm -f conftest.make
2742 fi
2743 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745 $as_echo "yes" >&6; }
2746   SET_MAKE=
2747 else
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750   SET_MAKE="MAKE=${MAKE-make}"
2751 fi
2752
2753 rm -rf .tst 2>/dev/null
2754 mkdir .tst 2>/dev/null
2755 if test -d .tst; then
2756   am__leading_dot=.
2757 else
2758   am__leading_dot=_
2759 fi
2760 rmdir .tst 2>/dev/null
2761
2762 # Check whether --enable-silent-rules was given.
2763 if test "${enable_silent_rules+set}" = set; then :
2764   enableval=$enable_silent_rules;
2765 fi
2766
2767 case $enable_silent_rules in # (((
2768   yes) AM_DEFAULT_VERBOSITY=0;;
2769    no) AM_DEFAULT_VERBOSITY=1;;
2770     *) AM_DEFAULT_VERBOSITY=1;;
2771 esac
2772 am_make=${MAKE-make}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2774 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2775 if ${am_cv_make_support_nested_variables+:} false; then :
2776   $as_echo_n "(cached) " >&6
2777 else
2778   if $as_echo 'TRUE=$(BAR$(V))
2779 BAR0=false
2780 BAR1=true
2781 V=1
2782 am__doit:
2783         @$(TRUE)
2784 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2785   am_cv_make_support_nested_variables=yes
2786 else
2787   am_cv_make_support_nested_variables=no
2788 fi
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2791 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2792 if test $am_cv_make_support_nested_variables = yes; then
2793     AM_V='$(V)'
2794   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2795 else
2796   AM_V=$AM_DEFAULT_VERBOSITY
2797   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2798 fi
2799 AM_BACKSLASH='\'
2800
2801 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2802   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2803   # is not polluted with repeated "-I."
2804   am__isrc=' -I$(srcdir)'
2805   # test to see if srcdir already configured
2806   if test -f $srcdir/config.status; then
2807     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2808   fi
2809 fi
2810
2811 # test whether we have cygpath
2812 if test -z "$CYGPATH_W"; then
2813   if (cygpath --version) >/dev/null 2>/dev/null; then
2814     CYGPATH_W='cygpath -w'
2815   else
2816     CYGPATH_W=echo
2817   fi
2818 fi
2819
2820
2821 # Define the identity of the package.
2822  PACKAGE='sqlite'
2823  VERSION='3.35.5'
2824
2825
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE "$PACKAGE"
2828 _ACEOF
2829
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define VERSION "$VERSION"
2833 _ACEOF
2834
2835 # Some tools Automake needs.
2836
2837 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2838
2839
2840 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2841
2842
2843 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2844
2845
2846 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2847
2848
2849 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2850
2851 # For better backward compatibility.  To be removed once Automake 1.9.x
2852 # dies out for good.  For more background, see:
2853 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2854 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2855 mkdir_p='$(MKDIR_P)'
2856
2857 # We need awk for the "check" target (and possibly the TAP driver).  The
2858 # system "awk" is bad on some platforms.
2859 # Always define AMTAR for backward compatibility.  Yes, it's still used
2860 # in the wild :-(  We should find a proper way to deprecate it ...
2861 AMTAR='$${TAR-tar}'
2862
2863
2864 # We'll loop over all known methods to create a tar archive until one works.
2865 _am_tools='gnutar  pax cpio none'
2866
2867 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2868
2869
2870
2871
2872
2873
2874 # POSIX will say in a future version that running "rm -f" with no argument
2875 # is OK; and we want to be able to make that assumption in our Makefile
2876 # recipes.  So use an aggressive probe to check that the usage we want is
2877 # actually supported "in the wild" to an acceptable degree.
2878 # See automake bug#10828.
2879 # To make any issue more visible, cause the running configure to be aborted
2880 # by default if the 'rm' program in use doesn't match our expectations; the
2881 # user can still override this though.
2882 if rm -f && rm -fr && rm -rf; then : OK; else
2883   cat >&2 <<'END'
2884 Oops!
2885
2886 Your 'rm' program seems unable to run without file operands specified
2887 on the command line, even when the '-f' option is present.  This is contrary
2888 to the behaviour of most rm programs out there, and not conforming with
2889 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2890
2891 Please tell bug-automake@gnu.org about your system, including the value
2892 of your $PATH and any error possibly output before this message.  This
2893 can help us improve future automake versions.
2894
2895 END
2896   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2897     echo 'Configuration will proceed anyway, since you have set the' >&2
2898     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2899     echo >&2
2900   else
2901     cat >&2 <<'END'
2902 Aborting the configuration process, to ensure you take notice of the issue.
2903
2904 You can download and install GNU coreutils to get an 'rm' implementation
2905 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2906
2907 If you want to complete the configuration process using your problematic
2908 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2909 to "yes", and re-run configure.
2910
2911 END
2912     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2913   fi
2914 fi
2915
2916
2917 DEPDIR="${am__leading_dot}deps"
2918
2919 ac_config_commands="$ac_config_commands depfiles"
2920
2921
2922 am_make=${MAKE-make}
2923 cat > confinc << 'END'
2924 am__doit:
2925         @echo this is the am__doit target
2926 .PHONY: am__doit
2927 END
2928 # If we don't find an include directive, just comment out the code.
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2930 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2931 am__include="#"
2932 am__quote=
2933 _am_result=none
2934 # First try GNU make style include.
2935 echo "include confinc" > confmf
2936 # Ignore all kinds of additional output from 'make'.
2937 case `$am_make -s -f confmf 2> /dev/null` in #(
2938 *the\ am__doit\ target*)
2939   am__include=include
2940   am__quote=
2941   _am_result=GNU
2942   ;;
2943 esac
2944 # Now try BSD make style include.
2945 if test "$am__include" = "#"; then
2946    echo '.include "confinc"' > confmf
2947    case `$am_make -s -f confmf 2> /dev/null` in #(
2948    *the\ am__doit\ target*)
2949      am__include=.include
2950      am__quote="\""
2951      _am_result=BSD
2952      ;;
2953    esac
2954 fi
2955
2956
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2958 $as_echo "$_am_result" >&6; }
2959 rm -f confinc confmf
2960
2961 # Check whether --enable-dependency-tracking was given.
2962 if test "${enable_dependency_tracking+set}" = set; then :
2963   enableval=$enable_dependency_tracking;
2964 fi
2965
2966 if test "x$enable_dependency_tracking" != xno; then
2967   am_depcomp="$ac_aux_dir/depcomp"
2968   AMDEPBACKSLASH='\'
2969   am__nodep='_no'
2970 fi
2971  if test "x$enable_dependency_tracking" != xno; then
2972   AMDEP_TRUE=
2973   AMDEP_FALSE='#'
2974 else
2975   AMDEP_TRUE='#'
2976   AMDEP_FALSE=
2977 fi
2978
2979
2980 ac_ext=c
2981 ac_cpp='$CPP $CPPFLAGS'
2982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985 if test -n "$ac_tool_prefix"; then
2986   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2987 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_CC+:} false; then :
2991   $as_echo_n "(cached) " >&6
2992 else
2993   if test -n "$CC"; then
2994   ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999   IFS=$as_save_IFS
3000   test -z "$as_dir" && as_dir=.
3001     for ac_exec_ext in '' $ac_executable_extensions; do
3002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008   done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023 fi
3024 if test -z "$ac_cv_prog_CC"; then
3025   ac_ct_CC=$CC
3026   # Extract the first word of "gcc", so it can be a program name with args.
3027 set dummy gcc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -n "$ac_ct_CC"; then
3034   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041     for ac_exec_ext in '' $ac_executable_extensions; do
3042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043     ac_cv_prog_ac_ct_CC="gcc"
3044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048   done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054 if test -n "$ac_ct_CC"; then
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056 $as_echo "$ac_ct_CC" >&6; }
3057 else
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062   if test "x$ac_ct_CC" = x; then
3063     CC=""
3064   else
3065     case $cross_compiling:$ac_tool_warned in
3066 yes:)
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3069 ac_tool_warned=yes ;;
3070 esac
3071     CC=$ac_ct_CC
3072   fi
3073 else
3074   CC="$ac_cv_prog_CC"
3075 fi
3076
3077 if test -z "$CC"; then
3078           if test -n "$ac_tool_prefix"; then
3079     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3080 set dummy ${ac_tool_prefix}cc; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_CC+:} false; then :
3084   $as_echo_n "(cached) " >&6
3085 else
3086   if test -n "$CC"; then
3087   ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092   IFS=$as_save_IFS
3093   test -z "$as_dir" && as_dir=.
3094     for ac_exec_ext in '' $ac_executable_extensions; do
3095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096     ac_cv_prog_CC="${ac_tool_prefix}cc"
3097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098     break 2
3099   fi
3100 done
3101   done
3102 IFS=$as_save_IFS
3103
3104 fi
3105 fi
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3110 else
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115
3116   fi
3117 fi
3118 if test -z "$CC"; then
3119   # Extract the first word of "cc", so it can be a program name with args.
3120 set dummy cc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124   $as_echo_n "(cached) " >&6
3125 else
3126   if test -n "$CC"; then
3127   ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129   ac_prog_rejected=no
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135     for ac_exec_ext in '' $ac_executable_extensions; do
3136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3138        ac_prog_rejected=yes
3139        continue
3140      fi
3141     ac_cv_prog_CC="cc"
3142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143     break 2
3144   fi
3145 done
3146   done
3147 IFS=$as_save_IFS
3148
3149 if test $ac_prog_rejected = yes; then
3150   # We found a bogon in the path, so make sure we never use it.
3151   set dummy $ac_cv_prog_CC
3152   shift
3153   if test $# != 0; then
3154     # We chose a different compiler from the bogus one.
3155     # However, it has the same basename, so the bogon will be chosen
3156     # first if we set CC to just the basename; use the full file name.
3157     shift
3158     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3159   fi
3160 fi
3161 fi
3162 fi
3163 CC=$ac_cv_prog_CC
3164 if test -n "$CC"; then
3165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3166 $as_echo "$CC" >&6; }
3167 else
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3170 fi
3171
3172
3173 fi
3174 if test -z "$CC"; then
3175   if test -n "$ac_tool_prefix"; then
3176   for ac_prog in cl.exe
3177   do
3178     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_CC+:} false; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   if test -n "$CC"; then
3186   ac_cv_prog_CC="$CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191   IFS=$as_save_IFS
3192   test -z "$as_dir" && as_dir=.
3193     for ac_exec_ext in '' $ac_executable_extensions; do
3194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197     break 2
3198   fi
3199 done
3200   done
3201 IFS=$as_save_IFS
3202
3203 fi
3204 fi
3205 CC=$ac_cv_prog_CC
3206 if test -n "$CC"; then
3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3209 else
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213
3214
3215     test -n "$CC" && break
3216   done
3217 fi
3218 if test -z "$CC"; then
3219   ac_ct_CC=$CC
3220   for ac_prog in cl.exe
3221 do
3222   # Extract the first word of "$ac_prog", so it can be a program name with args.
3223 set dummy $ac_prog; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3227   $as_echo_n "(cached) " >&6
3228 else
3229   if test -n "$ac_ct_CC"; then
3230   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235   IFS=$as_save_IFS
3236   test -z "$as_dir" && as_dir=.
3237     for ac_exec_ext in '' $ac_executable_extensions; do
3238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239     ac_cv_prog_ac_ct_CC="$ac_prog"
3240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241     break 2
3242   fi
3243 done
3244   done
3245 IFS=$as_save_IFS
3246
3247 fi
3248 fi
3249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3250 if test -n "$ac_ct_CC"; then
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3252 $as_echo "$ac_ct_CC" >&6; }
3253 else
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 fi
3257
3258
3259   test -n "$ac_ct_CC" && break
3260 done
3261
3262   if test "x$ac_ct_CC" = x; then
3263     CC=""
3264   else
3265     case $cross_compiling:$ac_tool_warned in
3266 yes:)
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3269 ac_tool_warned=yes ;;
3270 esac
3271     CC=$ac_ct_CC
3272   fi
3273 fi
3274
3275 fi
3276
3277
3278 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280 as_fn_error $? "no acceptable C compiler found in \$PATH
3281 See \`config.log' for more details" "$LINENO" 5; }
3282
3283 # Provide some information about the compiler.
3284 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3285 set X $ac_compile
3286 ac_compiler=$2
3287 for ac_option in --version -v -V -qversion; do
3288   { { ac_try="$ac_compiler $ac_option >&5"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3296   ac_status=$?
3297   if test -s conftest.err; then
3298     sed '10a\
3299 ... rest of stderr output deleted ...
3300          10q' conftest.err >conftest.er1
3301     cat conftest.er1 >&5
3302   fi
3303   rm -f conftest.er1 conftest.err
3304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305   test $ac_status = 0; }
3306 done
3307
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h.  */
3310
3311 int
3312 main ()
3313 {
3314
3315   ;
3316   return 0;
3317 }
3318 _ACEOF
3319 ac_clean_files_save=$ac_clean_files
3320 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3321 # Try to create an executable without -o first, disregard a.out.
3322 # It will help us diagnose broken compilers, and finding out an intuition
3323 # of exeext.
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3325 $as_echo_n "checking whether the C compiler works... " >&6; }
3326 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3327
3328 # The possible output files:
3329 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3330
3331 ac_rmfiles=
3332 for ac_file in $ac_files
3333 do
3334   case $ac_file in
3335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3336     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3337   esac
3338 done
3339 rm -f $ac_rmfiles
3340
3341 if { { ac_try="$ac_link_default"
3342 case "(($ac_try" in
3343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344   *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348   (eval "$ac_link_default") 2>&5
3349   ac_status=$?
3350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351   test $ac_status = 0; }; then :
3352   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3353 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3354 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3355 # so that the user can short-circuit this test for compilers unknown to
3356 # Autoconf.
3357 for ac_file in $ac_files ''
3358 do
3359   test -f "$ac_file" || continue
3360   case $ac_file in
3361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3362         ;;
3363     [ab].out )
3364         # We found the default executable, but exeext='' is most
3365         # certainly right.
3366         break;;
3367     *.* )
3368         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3369         then :; else
3370            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371         fi
3372         # We set ac_cv_exeext here because the later test for it is not
3373         # safe: cross compilers may not add the suffix if given an `-o'
3374         # argument, so we may need to know it at that point already.
3375         # Even if this section looks crufty: it has the advantage of
3376         # actually working.
3377         break;;
3378     * )
3379         break;;
3380   esac
3381 done
3382 test "$ac_cv_exeext" = no && ac_cv_exeext=
3383
3384 else
3385   ac_file=''
3386 fi
3387 if test -z "$ac_file"; then :
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 $as_echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395 as_fn_error 77 "C compiler cannot create executables
3396 See \`config.log' for more details" "$LINENO" 5; }
3397 else
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3399 $as_echo "yes" >&6; }
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3402 $as_echo_n "checking for C compiler default output file name... " >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3404 $as_echo "$ac_file" >&6; }
3405 ac_exeext=$ac_cv_exeext
3406
3407 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3408 ac_clean_files=$ac_clean_files_save
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3410 $as_echo_n "checking for suffix of executables... " >&6; }
3411 if { { ac_try="$ac_link"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418   (eval "$ac_link") 2>&5
3419   ac_status=$?
3420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421   test $ac_status = 0; }; then :
3422   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3423 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3424 # work properly (i.e., refer to `conftest.exe'), while it won't with
3425 # `rm'.
3426 for ac_file in conftest.exe conftest conftest.*; do
3427   test -f "$ac_file" || continue
3428   case $ac_file in
3429     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3430     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3431           break;;
3432     * ) break;;
3433   esac
3434 done
3435 else
3436   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3439 See \`config.log' for more details" "$LINENO" 5; }
3440 fi
3441 rm -f conftest conftest$ac_cv_exeext
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3443 $as_echo "$ac_cv_exeext" >&6; }
3444
3445 rm -f conftest.$ac_ext
3446 EXEEXT=$ac_cv_exeext
3447 ac_exeext=$EXEEXT
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h.  */
3450 #include <stdio.h>
3451 int
3452 main ()
3453 {
3454 FILE *f = fopen ("conftest.out", "w");
3455  return ferror (f) || fclose (f) != 0;
3456
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 ac_clean_files="$ac_clean_files conftest.out"
3462 # Check that the compiler produces executables we can run.  If not, either
3463 # the compiler is broken, or we cross compile.
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3465 $as_echo_n "checking whether we are cross compiling... " >&6; }
3466 if test "$cross_compiling" != yes; then
3467   { { ac_try="$ac_link"
3468 case "(($ac_try" in
3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470   *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474   (eval "$ac_link") 2>&5
3475   ac_status=$?
3476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477   test $ac_status = 0; }
3478   if { ac_try='./conftest$ac_cv_exeext'
3479   { { case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485   (eval "$ac_try") 2>&5
3486   ac_status=$?
3487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488   test $ac_status = 0; }; }; then
3489     cross_compiling=no
3490   else
3491     if test "$cross_compiling" = maybe; then
3492         cross_compiling=yes
3493     else
3494         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error $? "cannot run C compiled programs.
3497 If you meant to cross compile, use \`--host'.
3498 See \`config.log' for more details" "$LINENO" 5; }
3499     fi
3500   fi
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3503 $as_echo "$cross_compiling" >&6; }
3504
3505 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3506 ac_clean_files=$ac_clean_files_save
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3508 $as_echo_n "checking for suffix of object files... " >&6; }
3509 if ${ac_cv_objext+:} false; then :
3510   $as_echo_n "(cached) " >&6
3511 else
3512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h.  */
3514
3515 int
3516 main ()
3517 {
3518
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.o conftest.obj
3524 if { { ac_try="$ac_compile"
3525 case "(($ac_try" in
3526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527   *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531   (eval "$ac_compile") 2>&5
3532   ac_status=$?
3533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534   test $ac_status = 0; }; then :
3535   for ac_file in conftest.o conftest.obj conftest.*; do
3536   test -f "$ac_file" || continue;
3537   case $ac_file in
3538     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3539     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3540        break;;
3541   esac
3542 done
3543 else
3544   $as_echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 as_fn_error $? "cannot compute suffix of object files: cannot compile
3550 See \`config.log' for more details" "$LINENO" 5; }
3551 fi
3552 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3553 fi
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3555 $as_echo "$ac_cv_objext" >&6; }
3556 OBJEXT=$ac_cv_objext
3557 ac_objext=$OBJEXT
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3559 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3560 if ${ac_cv_c_compiler_gnu+:} false; then :
3561   $as_echo_n "(cached) " >&6
3562 else
3563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h.  */
3565
3566 int
3567 main ()
3568 {
3569 #ifndef __GNUC__
3570        choke me
3571 #endif
3572
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 if ac_fn_c_try_compile "$LINENO"; then :
3578   ac_compiler_gnu=yes
3579 else
3580   ac_compiler_gnu=no
3581 fi
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3587 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3588 if test $ac_compiler_gnu = yes; then
3589   GCC=yes
3590 else
3591   GCC=
3592 fi
3593 ac_test_CFLAGS=${CFLAGS+set}
3594 ac_save_CFLAGS=$CFLAGS
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3596 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3597 if ${ac_cv_prog_cc_g+:} false; then :
3598   $as_echo_n "(cached) " >&6
3599 else
3600   ac_save_c_werror_flag=$ac_c_werror_flag
3601    ac_c_werror_flag=yes
3602    ac_cv_prog_cc_g=no
3603    CFLAGS="-g"
3604    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h.  */
3606
3607 int
3608 main ()
3609 {
3610
3611   ;
3612   return 0;
3613 }
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3616   ac_cv_prog_cc_g=yes
3617 else
3618   CFLAGS=""
3619       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621
3622 int
3623 main ()
3624 {
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631
3632 else
3633   ac_c_werror_flag=$ac_save_c_werror_flag
3634          CFLAGS="-g"
3635          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h.  */
3637
3638 int
3639 main ()
3640 {
3641
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 if ac_fn_c_try_compile "$LINENO"; then :
3647   ac_cv_prog_cc_g=yes
3648 fi
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 fi
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 fi
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654    ac_c_werror_flag=$ac_save_c_werror_flag
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3657 $as_echo "$ac_cv_prog_cc_g" >&6; }
3658 if test "$ac_test_CFLAGS" = set; then
3659   CFLAGS=$ac_save_CFLAGS
3660 elif test $ac_cv_prog_cc_g = yes; then
3661   if test "$GCC" = yes; then
3662     CFLAGS="-g -O2"
3663   else
3664     CFLAGS="-g"
3665   fi
3666 else
3667   if test "$GCC" = yes; then
3668     CFLAGS="-O2"
3669   else
3670     CFLAGS=
3671   fi
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3674 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3675 if ${ac_cv_prog_cc_c89+:} false; then :
3676   $as_echo_n "(cached) " >&6
3677 else
3678   ac_cv_prog_cc_c89=no
3679 ac_save_CC=$CC
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h.  */
3682 #include <stdarg.h>
3683 #include <stdio.h>
3684 struct stat;
3685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3686 struct buf { int x; };
3687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3688 static char *e (p, i)
3689      char **p;
3690      int i;
3691 {
3692   return p[i];
3693 }
3694 static char *f (char * (*g) (char **, int), char **p, ...)
3695 {
3696   char *s;
3697   va_list v;
3698   va_start (v,p);
3699   s = g (p, va_arg (v,int));
3700   va_end (v);
3701   return s;
3702 }
3703
3704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3705    function prototypes and stuff, but not '\xHH' hex character constants.
3706    These don't provoke an error unfortunately, instead are silently treated
3707    as 'x'.  The following induces an error, until -std is added to get
3708    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3709    array size at least.  It's necessary to write '\x00'==0 to get something
3710    that's true only with -std.  */
3711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3712
3713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3714    inside strings and character constants.  */
3715 #define FOO(x) 'x'
3716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3717
3718 int test (int i, double x);
3719 struct s1 {int (*f) (int a);};
3720 struct s2 {int (*f) (double a);};
3721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3722 int argc;
3723 char **argv;
3724 int
3725 main ()
3726 {
3727 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3728   ;
3729   return 0;
3730 }
3731 _ACEOF
3732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3733         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3734 do
3735   CC="$ac_save_CC $ac_arg"
3736   if ac_fn_c_try_compile "$LINENO"; then :
3737   ac_cv_prog_cc_c89=$ac_arg
3738 fi
3739 rm -f core conftest.err conftest.$ac_objext
3740   test "x$ac_cv_prog_cc_c89" != "xno" && break
3741 done
3742 rm -f conftest.$ac_ext
3743 CC=$ac_save_CC
3744
3745 fi
3746 # AC_CACHE_VAL
3747 case "x$ac_cv_prog_cc_c89" in
3748   x)
3749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3750 $as_echo "none needed" >&6; } ;;
3751   xno)
3752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753 $as_echo "unsupported" >&6; } ;;
3754   *)
3755     CC="$CC $ac_cv_prog_cc_c89"
3756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3757 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3758 esac
3759 if test "x$ac_cv_prog_cc_c89" != xno; then :
3760
3761 fi
3762
3763 ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768
3769 ac_ext=c
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3775 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3776 if ${am_cv_prog_cc_c_o+:} false; then :
3777   $as_echo_n "(cached) " >&6
3778 else
3779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h.  */
3781
3782 int
3783 main ()
3784 {
3785
3786   ;
3787   return 0;
3788 }
3789 _ACEOF
3790   # Make sure it works both with $CC and with simple cc.
3791   # Following AC_PROG_CC_C_O, we do the test twice because some
3792   # compilers refuse to overwrite an existing .o file with -o,
3793   # though they will create one.
3794   am_cv_prog_cc_c_o=yes
3795   for am_i in 1 2; do
3796     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3797    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3798    ac_status=$?
3799    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800    (exit $ac_status); } \
3801          && test -f conftest2.$ac_objext; then
3802       : OK
3803     else
3804       am_cv_prog_cc_c_o=no
3805       break
3806     fi
3807   done
3808   rm -f core conftest*
3809   unset am_i
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3812 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3813 if test "$am_cv_prog_cc_c_o" != yes; then
3814    # Losing compiler, so override with the script.
3815    # FIXME: It is wrong to rewrite CC.
3816    # But if we don't then we get into trouble of one sort or another.
3817    # A longer-term fix would be to have automake use am__CC in this case,
3818    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3819    CC="$am_aux_dir/compile $CC"
3820 fi
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826
3827
3828 depcc="$CC"   am_compiler_list=
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3831 $as_echo_n "checking dependency style of $depcc... " >&6; }
3832 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836   # We make a subdir and do the tests there.  Otherwise we can end up
3837   # making bogus files that we don't know about and never remove.  For
3838   # instance it was reported that on HP-UX the gcc test will end up
3839   # making a dummy file named 'D' -- because '-MD' means "put the output
3840   # in D".
3841   rm -rf conftest.dir
3842   mkdir conftest.dir
3843   # Copy depcomp to subdir because otherwise we won't find it if we're
3844   # using a relative directory.
3845   cp "$am_depcomp" conftest.dir
3846   cd conftest.dir
3847   # We will build objects and dependencies in a subdirectory because
3848   # it helps to detect inapplicable dependency modes.  For instance
3849   # both Tru64's cc and ICC support -MD to output dependencies as a
3850   # side effect of compilation, but ICC will put the dependencies in
3851   # the current directory while Tru64 will put them in the object
3852   # directory.
3853   mkdir sub
3854
3855   am_cv_CC_dependencies_compiler_type=none
3856   if test "$am_compiler_list" = ""; then
3857      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3858   fi
3859   am__universal=false
3860   case " $depcc " in #(
3861      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3862      esac
3863
3864   for depmode in $am_compiler_list; do
3865     # Setup a source with many dependencies, because some compilers
3866     # like to wrap large dependency lists on column 80 (with \), and
3867     # we should not choose a depcomp mode which is confused by this.
3868     #
3869     # We need to recreate these files for each test, as the compiler may
3870     # overwrite some of them when testing with obscure command lines.
3871     # This happens at least with the AIX C compiler.
3872     : > sub/conftest.c
3873     for i in 1 2 3 4 5 6; do
3874       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3875       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3876       # Solaris 10 /bin/sh.
3877       echo '/* dummy */' > sub/conftst$i.h
3878     done
3879     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3880
3881     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3882     # mode.  It turns out that the SunPro C++ compiler does not properly
3883     # handle '-M -o', and we need to detect this.  Also, some Intel
3884     # versions had trouble with output in subdirs.
3885     am__obj=sub/conftest.${OBJEXT-o}
3886     am__minus_obj="-o $am__obj"
3887     case $depmode in
3888     gcc)
3889       # This depmode causes a compiler race in universal mode.
3890       test "$am__universal" = false || continue
3891       ;;
3892     nosideeffect)
3893       # After this tag, mechanisms are not by side-effect, so they'll
3894       # only be used when explicitly requested.
3895       if test "x$enable_dependency_tracking" = xyes; then
3896         continue
3897       else
3898         break
3899       fi
3900       ;;
3901     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3902       # This compiler won't grok '-c -o', but also, the minuso test has
3903       # not run yet.  These depmodes are late enough in the game, and
3904       # so weak that their functioning should not be impacted.
3905       am__obj=conftest.${OBJEXT-o}
3906       am__minus_obj=
3907       ;;
3908     none) break ;;
3909     esac
3910     if depmode=$depmode \
3911        source=sub/conftest.c object=$am__obj \
3912        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3913        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3914          >/dev/null 2>conftest.err &&
3915        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3916        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3917        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3918        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3919       # icc doesn't choke on unknown options, it will just issue warnings
3920       # or remarks (even with -Werror).  So we grep stderr for any message
3921       # that says an option was ignored or not supported.
3922       # When given -MP, icc 7.0 and 7.1 complain thusly:
3923       #   icc: Command line warning: ignoring option '-M'; no argument required
3924       # The diagnosis changed in icc 8.0:
3925       #   icc: Command line remark: option '-MP' not supported
3926       if (grep 'ignoring option' conftest.err ||
3927           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3928         am_cv_CC_dependencies_compiler_type=$depmode
3929         break
3930       fi
3931     fi
3932   done
3933
3934   cd ..
3935   rm -rf conftest.dir
3936 else
3937   am_cv_CC_dependencies_compiler_type=none
3938 fi
3939
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3942 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3943 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3944
3945  if
3946   test "x$enable_dependency_tracking" != xno \
3947   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3948   am__fastdepCC_TRUE=
3949   am__fastdepCC_FALSE='#'
3950 else
3951   am__fastdepCC_TRUE='#'
3952   am__fastdepCC_FALSE=
3953 fi
3954
3955
3956
3957 # Check whether --enable-largefile was given.
3958 if test "${enable_largefile+set}" = set; then :
3959   enableval=$enable_largefile;
3960 fi
3961
3962 if test "$enable_largefile" != no; then
3963
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3965 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3966 if ${ac_cv_sys_largefile_CC+:} false; then :
3967   $as_echo_n "(cached) " >&6
3968 else
3969   ac_cv_sys_largefile_CC=no
3970      if test "$GCC" != yes; then
3971        ac_save_CC=$CC
3972        while :; do
3973          # IRIX 6.2 and later do not support large files by default,
3974          # so use the C compiler's -n32 option if that helps.
3975          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h.  */
3977 #include <sys/types.h>
3978  /* Check that off_t can represent 2**63 - 1 correctly.
3979     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3980     since some C++ compilers masquerading as C compilers
3981     incorrectly reject 9223372036854775807.  */
3982 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
3983   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3984                        && LARGE_OFF_T % 2147483647 == 1)
3985                       ? 1 : -1];
3986 int
3987 main ()
3988 {
3989
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994          if ac_fn_c_try_compile "$LINENO"; then :
3995   break
3996 fi
3997 rm -f core conftest.err conftest.$ac_objext
3998          CC="$CC -n32"
3999          if ac_fn_c_try_compile "$LINENO"; then :
4000   ac_cv_sys_largefile_CC=' -n32'; break
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext
4003          break
4004        done
4005        CC=$ac_save_CC
4006        rm -f conftest.$ac_ext
4007     fi
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4010 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4011   if test "$ac_cv_sys_largefile_CC" != no; then
4012     CC=$CC$ac_cv_sys_largefile_CC
4013   fi
4014
4015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4016 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4017 if ${ac_cv_sys_file_offset_bits+:} false; then :
4018   $as_echo_n "(cached) " >&6
4019 else
4020   while :; do
4021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h.  */
4023 #include <sys/types.h>
4024  /* Check that off_t can represent 2**63 - 1 correctly.
4025     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4026     since some C++ compilers masquerading as C compilers
4027     incorrectly reject 9223372036854775807.  */
4028 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4029   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4030                        && LARGE_OFF_T % 2147483647 == 1)
4031                       ? 1 : -1];
4032 int
4033 main ()
4034 {
4035
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041   ac_cv_sys_file_offset_bits=no; break
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h.  */
4046 #define _FILE_OFFSET_BITS 64
4047 #include <sys/types.h>
4048  /* Check that off_t can represent 2**63 - 1 correctly.
4049     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4050     since some C++ compilers masquerading as C compilers
4051     incorrectly reject 9223372036854775807.  */
4052 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4053   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4054                        && LARGE_OFF_T % 2147483647 == 1)
4055                       ? 1 : -1];
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065   ac_cv_sys_file_offset_bits=64; break
4066 fi
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068   ac_cv_sys_file_offset_bits=unknown
4069   break
4070 done
4071 fi
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4073 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4074 case $ac_cv_sys_file_offset_bits in #(
4075   no | unknown) ;;
4076   *)
4077 cat >>confdefs.h <<_ACEOF
4078 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4079 _ACEOF
4080 ;;
4081 esac
4082 rm -rf conftest*
4083   if test $ac_cv_sys_file_offset_bits = unknown; then
4084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4085 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4086 if ${ac_cv_sys_large_files+:} false; then :
4087   $as_echo_n "(cached) " >&6
4088 else
4089   while :; do
4090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h.  */
4092 #include <sys/types.h>
4093  /* Check that off_t can represent 2**63 - 1 correctly.
4094     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4095     since some C++ compilers masquerading as C compilers
4096     incorrectly reject 9223372036854775807.  */
4097 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4098   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4099                        && LARGE_OFF_T % 2147483647 == 1)
4100                       ? 1 : -1];
4101 int
4102 main ()
4103 {
4104
4105   ;
4106   return 0;
4107 }
4108 _ACEOF
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110   ac_cv_sys_large_files=no; break
4111 fi
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h.  */
4115 #define _LARGE_FILES 1
4116 #include <sys/types.h>
4117  /* Check that off_t can represent 2**63 - 1 correctly.
4118     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119     since some C++ compilers masquerading as C compilers
4120     incorrectly reject 9223372036854775807.  */
4121 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4122   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123                        && LARGE_OFF_T % 2147483647 == 1)
4124                       ? 1 : -1];
4125 int
4126 main ()
4127 {
4128
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134   ac_cv_sys_large_files=1; break
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137   ac_cv_sys_large_files=unknown
4138   break
4139 done
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4142 $as_echo "$ac_cv_sys_large_files" >&6; }
4143 case $ac_cv_sys_large_files in #(
4144   no | unknown) ;;
4145   *)
4146 cat >>confdefs.h <<_ACEOF
4147 #define _LARGE_FILES $ac_cv_sys_large_files
4148 _ACEOF
4149 ;;
4150 esac
4151 rm -rf conftest*
4152   fi
4153
4154
4155 fi
4156
4157
4158 # Check for required programs.
4159 ac_ext=c
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 if test -n "$ac_tool_prefix"; then
4165   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4166 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_CC+:} false; then :
4170   $as_echo_n "(cached) " >&6
4171 else
4172   if test -n "$CC"; then
4173   ac_cv_prog_CC="$CC" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178   IFS=$as_save_IFS
4179   test -z "$as_dir" && as_dir=.
4180     for ac_exec_ext in '' $ac_executable_extensions; do
4181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184     break 2
4185   fi
4186 done
4187   done
4188 IFS=$as_save_IFS
4189
4190 fi
4191 fi
4192 CC=$ac_cv_prog_CC
4193 if test -n "$CC"; then
4194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4195 $as_echo "$CC" >&6; }
4196 else
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4200
4201
4202 fi
4203 if test -z "$ac_cv_prog_CC"; then
4204   ac_ct_CC=$CC
4205   # Extract the first word of "gcc", so it can be a program name with args.
4206 set dummy gcc; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4210   $as_echo_n "(cached) " >&6
4211 else
4212   if test -n "$ac_ct_CC"; then
4213   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220     for ac_exec_ext in '' $ac_executable_extensions; do
4221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222     ac_cv_prog_ac_ct_CC="gcc"
4223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224     break 2
4225   fi
4226 done
4227   done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4233 if test -n "$ac_ct_CC"; then
4234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4235 $as_echo "$ac_ct_CC" >&6; }
4236 else
4237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241   if test "x$ac_ct_CC" = x; then
4242     CC=""
4243   else
4244     case $cross_compiling:$ac_tool_warned in
4245 yes:)
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned=yes ;;
4249 esac
4250     CC=$ac_ct_CC
4251   fi
4252 else
4253   CC="$ac_cv_prog_CC"
4254 fi
4255
4256 if test -z "$CC"; then
4257           if test -n "$ac_tool_prefix"; then
4258     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4259 set dummy ${ac_tool_prefix}cc; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_prog_CC+:} false; then :
4263   $as_echo_n "(cached) " >&6
4264 else
4265   if test -n "$CC"; then
4266   ac_cv_prog_CC="$CC" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273     for ac_exec_ext in '' $ac_executable_extensions; do
4274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275     ac_cv_prog_CC="${ac_tool_prefix}cc"
4276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277     break 2
4278   fi
4279 done
4280   done
4281 IFS=$as_save_IFS
4282
4283 fi
4284 fi
4285 CC=$ac_cv_prog_CC
4286 if test -n "$CC"; then
4287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4288 $as_echo "$CC" >&6; }
4289 else
4290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4292 fi
4293
4294
4295   fi
4296 fi
4297 if test -z "$CC"; then
4298   # Extract the first word of "cc", so it can be a program name with args.
4299 set dummy cc; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_prog_CC+:} false; then :
4303   $as_echo_n "(cached) " >&6
4304 else
4305   if test -n "$CC"; then
4306   ac_cv_prog_CC="$CC" # Let the user override the test.
4307 else
4308   ac_prog_rejected=no
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314     for ac_exec_ext in '' $ac_executable_extensions; do
4315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4317        ac_prog_rejected=yes
4318        continue
4319      fi
4320     ac_cv_prog_CC="cc"
4321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322     break 2
4323   fi
4324 done
4325   done
4326 IFS=$as_save_IFS
4327
4328 if test $ac_prog_rejected = yes; then
4329   # We found a bogon in the path, so make sure we never use it.
4330   set dummy $ac_cv_prog_CC
4331   shift
4332   if test $# != 0; then
4333     # We chose a different compiler from the bogus one.
4334     # However, it has the same basename, so the bogon will be chosen
4335     # first if we set CC to just the basename; use the full file name.
4336     shift
4337     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4338   fi
4339 fi
4340 fi
4341 fi
4342 CC=$ac_cv_prog_CC
4343 if test -n "$CC"; then
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345 $as_echo "$CC" >&6; }
4346 else
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350
4351
4352 fi
4353 if test -z "$CC"; then
4354   if test -n "$ac_tool_prefix"; then
4355   for ac_prog in cl.exe
4356   do
4357     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_prog_CC+:} false; then :
4362   $as_echo_n "(cached) " >&6
4363 else
4364   if test -n "$CC"; then
4365   ac_cv_prog_CC="$CC" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370   IFS=$as_save_IFS
4371   test -z "$as_dir" && as_dir=.
4372     for ac_exec_ext in '' $ac_executable_extensions; do
4373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376     break 2
4377   fi
4378 done
4379   done
4380 IFS=$as_save_IFS
4381
4382 fi
4383 fi
4384 CC=$ac_cv_prog_CC
4385 if test -n "$CC"; then
4386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4387 $as_echo "$CC" >&6; }
4388 else
4389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4391 fi
4392
4393
4394     test -n "$CC" && break
4395   done
4396 fi
4397 if test -z "$CC"; then
4398   ac_ct_CC=$CC
4399   for ac_prog in cl.exe
4400 do
4401   # Extract the first word of "$ac_prog", so it can be a program name with args.
4402 set dummy $ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if test -n "$ac_ct_CC"; then
4409   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416     for ac_exec_ext in '' $ac_executable_extensions; do
4417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418     ac_cv_prog_ac_ct_CC="$ac_prog"
4419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420     break 2
4421   fi
4422 done
4423   done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4429 if test -n "$ac_ct_CC"; then
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4431 $as_echo "$ac_ct_CC" >&6; }
4432 else
4433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437
4438   test -n "$ac_ct_CC" && break
4439 done
4440
4441   if test "x$ac_ct_CC" = x; then
4442     CC=""
4443   else
4444     case $cross_compiling:$ac_tool_warned in
4445 yes:)
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448 ac_tool_warned=yes ;;
4449 esac
4450     CC=$ac_ct_CC
4451   fi
4452 fi
4453
4454 fi
4455
4456
4457 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $? "no acceptable C compiler found in \$PATH
4460 See \`config.log' for more details" "$LINENO" 5; }
4461
4462 # Provide some information about the compiler.
4463 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4464 set X $ac_compile
4465 ac_compiler=$2
4466 for ac_option in --version -v -V -qversion; do
4467   { { ac_try="$ac_compiler $ac_option >&5"
4468 case "(($ac_try" in
4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470   *) ac_try_echo=$ac_try;;
4471 esac
4472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4473 $as_echo "$ac_try_echo"; } >&5
4474   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4475   ac_status=$?
4476   if test -s conftest.err; then
4477     sed '10a\
4478 ... rest of stderr output deleted ...
4479          10q' conftest.err >conftest.er1
4480     cat conftest.er1 >&5
4481   fi
4482   rm -f conftest.er1 conftest.err
4483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484   test $ac_status = 0; }
4485 done
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4488 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4489 if ${ac_cv_c_compiler_gnu+:} false; then :
4490   $as_echo_n "(cached) " >&6
4491 else
4492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h.  */
4494
4495 int
4496 main ()
4497 {
4498 #ifndef __GNUC__
4499        choke me
4500 #endif
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507   ac_compiler_gnu=yes
4508 else
4509   ac_compiler_gnu=no
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4513
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4516 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4517 if test $ac_compiler_gnu = yes; then
4518   GCC=yes
4519 else
4520   GCC=
4521 fi
4522 ac_test_CFLAGS=${CFLAGS+set}
4523 ac_save_CFLAGS=$CFLAGS
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4525 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4526 if ${ac_cv_prog_cc_g+:} false; then :
4527   $as_echo_n "(cached) " >&6
4528 else
4529   ac_save_c_werror_flag=$ac_c_werror_flag
4530    ac_c_werror_flag=yes
4531    ac_cv_prog_cc_g=no
4532    CFLAGS="-g"
4533    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h.  */
4535
4536 int
4537 main ()
4538 {
4539
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544 if ac_fn_c_try_compile "$LINENO"; then :
4545   ac_cv_prog_cc_g=yes
4546 else
4547   CFLAGS=""
4548       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h.  */
4550
4551 int
4552 main ()
4553 {
4554
4555   ;
4556   return 0;
4557 }
4558 _ACEOF
4559 if ac_fn_c_try_compile "$LINENO"; then :
4560
4561 else
4562   ac_c_werror_flag=$ac_save_c_werror_flag
4563          CFLAGS="-g"
4564          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h.  */
4566
4567 int
4568 main ()
4569 {
4570
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_c_try_compile "$LINENO"; then :
4576   ac_cv_prog_cc_g=yes
4577 fi
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 fi
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583    ac_c_werror_flag=$ac_save_c_werror_flag
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4586 $as_echo "$ac_cv_prog_cc_g" >&6; }
4587 if test "$ac_test_CFLAGS" = set; then
4588   CFLAGS=$ac_save_CFLAGS
4589 elif test $ac_cv_prog_cc_g = yes; then
4590   if test "$GCC" = yes; then
4591     CFLAGS="-g -O2"
4592   else
4593     CFLAGS="-g"
4594   fi
4595 else
4596   if test "$GCC" = yes; then
4597     CFLAGS="-O2"
4598   else
4599     CFLAGS=
4600   fi
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4603 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4604 if ${ac_cv_prog_cc_c89+:} false; then :
4605   $as_echo_n "(cached) " >&6
4606 else
4607   ac_cv_prog_cc_c89=no
4608 ac_save_CC=$CC
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h.  */
4611 #include <stdarg.h>
4612 #include <stdio.h>
4613 struct stat;
4614 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4615 struct buf { int x; };
4616 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4617 static char *e (p, i)
4618      char **p;
4619      int i;
4620 {
4621   return p[i];
4622 }
4623 static char *f (char * (*g) (char **, int), char **p, ...)
4624 {
4625   char *s;
4626   va_list v;
4627   va_start (v,p);
4628   s = g (p, va_arg (v,int));
4629   va_end (v);
4630   return s;
4631 }
4632
4633 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4634    function prototypes and stuff, but not '\xHH' hex character constants.
4635    These don't provoke an error unfortunately, instead are silently treated
4636    as 'x'.  The following induces an error, until -std is added to get
4637    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4638    array size at least.  It's necessary to write '\x00'==0 to get something
4639    that's true only with -std.  */
4640 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4641
4642 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4643    inside strings and character constants.  */
4644 #define FOO(x) 'x'
4645 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4646
4647 int test (int i, double x);
4648 struct s1 {int (*f) (int a);};
4649 struct s2 {int (*f) (double a);};
4650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4651 int argc;
4652 char **argv;
4653 int
4654 main ()
4655 {
4656 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4657   ;
4658   return 0;
4659 }
4660 _ACEOF
4661 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4662         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4663 do
4664   CC="$ac_save_CC $ac_arg"
4665   if ac_fn_c_try_compile "$LINENO"; then :
4666   ac_cv_prog_cc_c89=$ac_arg
4667 fi
4668 rm -f core conftest.err conftest.$ac_objext
4669   test "x$ac_cv_prog_cc_c89" != "xno" && break
4670 done
4671 rm -f conftest.$ac_ext
4672 CC=$ac_save_CC
4673
4674 fi
4675 # AC_CACHE_VAL
4676 case "x$ac_cv_prog_cc_c89" in
4677   x)
4678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4679 $as_echo "none needed" >&6; } ;;
4680   xno)
4681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4682 $as_echo "unsupported" >&6; } ;;
4683   *)
4684     CC="$CC $ac_cv_prog_cc_c89"
4685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4686 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4687 esac
4688 if test "x$ac_cv_prog_cc_c89" != xno; then :
4689
4690 fi
4691
4692 ac_ext=c
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697
4698 ac_ext=c
4699 ac_cpp='$CPP $CPPFLAGS'
4700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4704 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4705 if ${am_cv_prog_cc_c_o+:} false; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h.  */
4710
4711 int
4712 main ()
4713 {
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719   # Make sure it works both with $CC and with simple cc.
4720   # Following AC_PROG_CC_C_O, we do the test twice because some
4721   # compilers refuse to overwrite an existing .o file with -o,
4722   # though they will create one.
4723   am_cv_prog_cc_c_o=yes
4724   for am_i in 1 2; do
4725     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4726    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4727    ac_status=$?
4728    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729    (exit $ac_status); } \
4730          && test -f conftest2.$ac_objext; then
4731       : OK
4732     else
4733       am_cv_prog_cc_c_o=no
4734       break
4735     fi
4736   done
4737   rm -f core conftest*
4738   unset am_i
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4741 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4742 if test "$am_cv_prog_cc_c_o" != yes; then
4743    # Losing compiler, so override with the script.
4744    # FIXME: It is wrong to rewrite CC.
4745    # But if we don't then we get into trouble of one sort or another.
4746    # A longer-term fix would be to have automake use am__CC in this case,
4747    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4748    CC="$am_aux_dir/compile $CC"
4749 fi
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755
4756
4757 depcc="$CC"   am_compiler_list=
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4760 $as_echo_n "checking dependency style of $depcc... " >&6; }
4761 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4762   $as_echo_n "(cached) " >&6
4763 else
4764   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4765   # We make a subdir and do the tests there.  Otherwise we can end up
4766   # making bogus files that we don't know about and never remove.  For
4767   # instance it was reported that on HP-UX the gcc test will end up
4768   # making a dummy file named 'D' -- because '-MD' means "put the output
4769   # in D".
4770   rm -rf conftest.dir
4771   mkdir conftest.dir
4772   # Copy depcomp to subdir because otherwise we won't find it if we're
4773   # using a relative directory.
4774   cp "$am_depcomp" conftest.dir
4775   cd conftest.dir
4776   # We will build objects and dependencies in a subdirectory because
4777   # it helps to detect inapplicable dependency modes.  For instance
4778   # both Tru64's cc and ICC support -MD to output dependencies as a
4779   # side effect of compilation, but ICC will put the dependencies in
4780   # the current directory while Tru64 will put them in the object
4781   # directory.
4782   mkdir sub
4783
4784   am_cv_CC_dependencies_compiler_type=none
4785   if test "$am_compiler_list" = ""; then
4786      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4787   fi
4788   am__universal=false
4789   case " $depcc " in #(
4790      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4791      esac
4792
4793   for depmode in $am_compiler_list; do
4794     # Setup a source with many dependencies, because some compilers
4795     # like to wrap large dependency lists on column 80 (with \), and
4796     # we should not choose a depcomp mode which is confused by this.
4797     #
4798     # We need to recreate these files for each test, as the compiler may
4799     # overwrite some of them when testing with obscure command lines.
4800     # This happens at least with the AIX C compiler.
4801     : > sub/conftest.c
4802     for i in 1 2 3 4 5 6; do
4803       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4804       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4805       # Solaris 10 /bin/sh.
4806       echo '/* dummy */' > sub/conftst$i.h
4807     done
4808     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4809
4810     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4811     # mode.  It turns out that the SunPro C++ compiler does not properly
4812     # handle '-M -o', and we need to detect this.  Also, some Intel
4813     # versions had trouble with output in subdirs.
4814     am__obj=sub/conftest.${OBJEXT-o}
4815     am__minus_obj="-o $am__obj"
4816     case $depmode in
4817     gcc)
4818       # This depmode causes a compiler race in universal mode.
4819       test "$am__universal" = false || continue
4820       ;;
4821     nosideeffect)
4822       # After this tag, mechanisms are not by side-effect, so they'll
4823       # only be used when explicitly requested.
4824       if test "x$enable_dependency_tracking" = xyes; then
4825         continue
4826       else
4827         break
4828       fi
4829       ;;
4830     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4831       # This compiler won't grok '-c -o', but also, the minuso test has
4832       # not run yet.  These depmodes are late enough in the game, and
4833       # so weak that their functioning should not be impacted.
4834       am__obj=conftest.${OBJEXT-o}
4835       am__minus_obj=
4836       ;;
4837     none) break ;;
4838     esac
4839     if depmode=$depmode \
4840        source=sub/conftest.c object=$am__obj \
4841        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4842        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4843          >/dev/null 2>conftest.err &&
4844        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4845        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4846        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4847        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4848       # icc doesn't choke on unknown options, it will just issue warnings
4849       # or remarks (even with -Werror).  So we grep stderr for any message
4850       # that says an option was ignored or not supported.
4851       # When given -MP, icc 7.0 and 7.1 complain thusly:
4852       #   icc: Command line warning: ignoring option '-M'; no argument required
4853       # The diagnosis changed in icc 8.0:
4854       #   icc: Command line remark: option '-MP' not supported
4855       if (grep 'ignoring option' conftest.err ||
4856           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4857         am_cv_CC_dependencies_compiler_type=$depmode
4858         break
4859       fi
4860     fi
4861   done
4862
4863   cd ..
4864   rm -rf conftest.dir
4865 else
4866   am_cv_CC_dependencies_compiler_type=none
4867 fi
4868
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4871 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4873
4874  if
4875   test "x$enable_dependency_tracking" != xno \
4876   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4877   am__fastdepCC_TRUE=
4878   am__fastdepCC_FALSE='#'
4879 else
4880   am__fastdepCC_TRUE='#'
4881   am__fastdepCC_FALSE=
4882 fi
4883
4884
4885 case `pwd` in
4886   *\ * | *\     *)
4887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4888 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4889 esac
4890
4891
4892
4893 macro_version='2.4.6'
4894 macro_revision='2.4.6'
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908 ltmain=$ac_aux_dir/ltmain.sh
4909
4910 # Make sure we can run config.sub.
4911 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4912   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4913
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4915 $as_echo_n "checking build system type... " >&6; }
4916 if ${ac_cv_build+:} false; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   ac_build_alias=$build_alias
4920 test "x$ac_build_alias" = x &&
4921   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4922 test "x$ac_build_alias" = x &&
4923   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4924 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4925   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4926
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4929 $as_echo "$ac_cv_build" >&6; }
4930 case $ac_cv_build in
4931 *-*-*) ;;
4932 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4933 esac
4934 build=$ac_cv_build
4935 ac_save_IFS=$IFS; IFS='-'
4936 set x $ac_cv_build
4937 shift
4938 build_cpu=$1
4939 build_vendor=$2
4940 shift; shift
4941 # Remember, the first character of IFS is used to create $*,
4942 # except with old shells:
4943 build_os=$*
4944 IFS=$ac_save_IFS
4945 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4946
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4949 $as_echo_n "checking host system type... " >&6; }
4950 if ${ac_cv_host+:} false; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   if test "x$host_alias" = x; then
4954   ac_cv_host=$ac_cv_build
4955 else
4956   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4957     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4958 fi
4959
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4962 $as_echo "$ac_cv_host" >&6; }
4963 case $ac_cv_host in
4964 *-*-*) ;;
4965 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4966 esac
4967 host=$ac_cv_host
4968 ac_save_IFS=$IFS; IFS='-'
4969 set x $ac_cv_host
4970 shift
4971 host_cpu=$1
4972 host_vendor=$2
4973 shift; shift
4974 # Remember, the first character of IFS is used to create $*,
4975 # except with old shells:
4976 host_os=$*
4977 IFS=$ac_save_IFS
4978 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4979
4980
4981 # Backslashify metacharacters that are still active within
4982 # double-quoted strings.
4983 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4984
4985 # Same as above, but do not quote variable references.
4986 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4987
4988 # Sed substitution to delay expansion of an escaped shell variable in a
4989 # double_quote_subst'ed string.
4990 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4991
4992 # Sed substitution to delay expansion of an escaped single quote.
4993 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4994
4995 # Sed substitution to avoid accidental globbing in evaled expressions
4996 no_glob_subst='s/\*/\\\*/g'
4997
4998 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5000 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5001
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5003 $as_echo_n "checking how to print strings... " >&6; }
5004 # Test print first, because it will be a builtin if present.
5005 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5006    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5007   ECHO='print -r --'
5008 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5009   ECHO='printf %s\n'
5010 else
5011   # Use this function as a fallback that always works.
5012   func_fallback_echo ()
5013   {
5014     eval 'cat <<_LTECHO_EOF
5015 $1
5016 _LTECHO_EOF'
5017   }
5018   ECHO='func_fallback_echo'
5019 fi
5020
5021 # func_echo_all arg...
5022 # Invoke $ECHO with all args, space-separated.
5023 func_echo_all ()
5024 {
5025     $ECHO ""
5026 }
5027
5028 case $ECHO in
5029   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5030 $as_echo "printf" >&6; } ;;
5031   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5032 $as_echo "print -r" >&6; } ;;
5033   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5034 $as_echo "cat" >&6; } ;;
5035 esac
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5051 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5052 if ${ac_cv_path_SED+:} false; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5056      for ac_i in 1 2 3 4 5 6 7; do
5057        ac_script="$ac_script$as_nl$ac_script"
5058      done
5059      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5060      { ac_script=; unset ac_script;}
5061      if test -z "$SED"; then
5062   ac_path_SED_found=false
5063   # Loop through the user's path and test for each of PROGNAME-LIST
5064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067   IFS=$as_save_IFS
5068   test -z "$as_dir" && as_dir=.
5069     for ac_prog in sed gsed; do
5070     for ac_exec_ext in '' $ac_executable_extensions; do
5071       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5072       as_fn_executable_p "$ac_path_SED" || continue
5073 # Check for GNU ac_path_SED and select it if it is found.
5074   # Check for GNU $ac_path_SED
5075 case `"$ac_path_SED" --version 2>&1` in
5076 *GNU*)
5077   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5078 *)
5079   ac_count=0
5080   $as_echo_n 0123456789 >"conftest.in"
5081   while :
5082   do
5083     cat "conftest.in" "conftest.in" >"conftest.tmp"
5084     mv "conftest.tmp" "conftest.in"
5085     cp "conftest.in" "conftest.nl"
5086     $as_echo '' >> "conftest.nl"
5087     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5088     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5089     as_fn_arith $ac_count + 1 && ac_count=$as_val
5090     if test $ac_count -gt ${ac_path_SED_max-0}; then
5091       # Best one so far, save it but keep looking for a better one
5092       ac_cv_path_SED="$ac_path_SED"
5093       ac_path_SED_max=$ac_count
5094     fi
5095     # 10*(2^10) chars as input seems more than enough
5096     test $ac_count -gt 10 && break
5097   done
5098   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5099 esac
5100
5101       $ac_path_SED_found && break 3
5102     done
5103   done
5104   done
5105 IFS=$as_save_IFS
5106   if test -z "$ac_cv_path_SED"; then
5107     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5108   fi
5109 else
5110   ac_cv_path_SED=$SED
5111 fi
5112
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5115 $as_echo "$ac_cv_path_SED" >&6; }
5116  SED="$ac_cv_path_SED"
5117   rm -f conftest.sed
5118
5119 test -z "$SED" && SED=sed
5120 Xsed="$SED -e 1s/^X//"
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5133 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5134 if ${ac_cv_path_GREP+:} false; then :
5135   $as_echo_n "(cached) " >&6
5136 else
5137   if test -z "$GREP"; then
5138   ac_path_GREP_found=false
5139   # Loop through the user's path and test for each of PROGNAME-LIST
5140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5142 do
5143   IFS=$as_save_IFS
5144   test -z "$as_dir" && as_dir=.
5145     for ac_prog in grep ggrep; do
5146     for ac_exec_ext in '' $ac_executable_extensions; do
5147       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5148       as_fn_executable_p "$ac_path_GREP" || continue
5149 # Check for GNU ac_path_GREP and select it if it is found.
5150   # Check for GNU $ac_path_GREP
5151 case `"$ac_path_GREP" --version 2>&1` in
5152 *GNU*)
5153   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5154 *)
5155   ac_count=0
5156   $as_echo_n 0123456789 >"conftest.in"
5157   while :
5158   do
5159     cat "conftest.in" "conftest.in" >"conftest.tmp"
5160     mv "conftest.tmp" "conftest.in"
5161     cp "conftest.in" "conftest.nl"
5162     $as_echo 'GREP' >> "conftest.nl"
5163     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5164     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5165     as_fn_arith $ac_count + 1 && ac_count=$as_val
5166     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5167       # Best one so far, save it but keep looking for a better one
5168       ac_cv_path_GREP="$ac_path_GREP"
5169       ac_path_GREP_max=$ac_count
5170     fi
5171     # 10*(2^10) chars as input seems more than enough
5172     test $ac_count -gt 10 && break
5173   done
5174   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5175 esac
5176
5177       $ac_path_GREP_found && break 3
5178     done
5179   done
5180   done
5181 IFS=$as_save_IFS
5182   if test -z "$ac_cv_path_GREP"; then
5183     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5184   fi
5185 else
5186   ac_cv_path_GREP=$GREP
5187 fi
5188
5189 fi
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5191 $as_echo "$ac_cv_path_GREP" >&6; }
5192  GREP="$ac_cv_path_GREP"
5193
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5196 $as_echo_n "checking for egrep... " >&6; }
5197 if ${ac_cv_path_EGREP+:} false; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5201    then ac_cv_path_EGREP="$GREP -E"
5202    else
5203      if test -z "$EGREP"; then
5204   ac_path_EGREP_found=false
5205   # Loop through the user's path and test for each of PROGNAME-LIST
5206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5208 do
5209   IFS=$as_save_IFS
5210   test -z "$as_dir" && as_dir=.
5211     for ac_prog in egrep; do
5212     for ac_exec_ext in '' $ac_executable_extensions; do
5213       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5214       as_fn_executable_p "$ac_path_EGREP" || continue
5215 # Check for GNU ac_path_EGREP and select it if it is found.
5216   # Check for GNU $ac_path_EGREP
5217 case `"$ac_path_EGREP" --version 2>&1` in
5218 *GNU*)
5219   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5220 *)
5221   ac_count=0
5222   $as_echo_n 0123456789 >"conftest.in"
5223   while :
5224   do
5225     cat "conftest.in" "conftest.in" >"conftest.tmp"
5226     mv "conftest.tmp" "conftest.in"
5227     cp "conftest.in" "conftest.nl"
5228     $as_echo 'EGREP' >> "conftest.nl"
5229     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5230     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5231     as_fn_arith $ac_count + 1 && ac_count=$as_val
5232     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5233       # Best one so far, save it but keep looking for a better one
5234       ac_cv_path_EGREP="$ac_path_EGREP"
5235       ac_path_EGREP_max=$ac_count
5236     fi
5237     # 10*(2^10) chars as input seems more than enough
5238     test $ac_count -gt 10 && break
5239   done
5240   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5241 esac
5242
5243       $ac_path_EGREP_found && break 3
5244     done
5245   done
5246   done
5247 IFS=$as_save_IFS
5248   if test -z "$ac_cv_path_EGREP"; then
5249     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5250   fi
5251 else
5252   ac_cv_path_EGREP=$EGREP
5253 fi
5254
5255    fi
5256 fi
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5258 $as_echo "$ac_cv_path_EGREP" >&6; }
5259  EGREP="$ac_cv_path_EGREP"
5260
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5263 $as_echo_n "checking for fgrep... " >&6; }
5264 if ${ac_cv_path_FGREP+:} false; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5268    then ac_cv_path_FGREP="$GREP -F"
5269    else
5270      if test -z "$FGREP"; then
5271   ac_path_FGREP_found=false
5272   # Loop through the user's path and test for each of PROGNAME-LIST
5273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5275 do
5276   IFS=$as_save_IFS
5277   test -z "$as_dir" && as_dir=.
5278     for ac_prog in fgrep; do
5279     for ac_exec_ext in '' $ac_executable_extensions; do
5280       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5281       as_fn_executable_p "$ac_path_FGREP" || continue
5282 # Check for GNU ac_path_FGREP and select it if it is found.
5283   # Check for GNU $ac_path_FGREP
5284 case `"$ac_path_FGREP" --version 2>&1` in
5285 *GNU*)
5286   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5287 *)
5288   ac_count=0
5289   $as_echo_n 0123456789 >"conftest.in"
5290   while :
5291   do
5292     cat "conftest.in" "conftest.in" >"conftest.tmp"
5293     mv "conftest.tmp" "conftest.in"
5294     cp "conftest.in" "conftest.nl"
5295     $as_echo 'FGREP' >> "conftest.nl"
5296     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5297     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5298     as_fn_arith $ac_count + 1 && ac_count=$as_val
5299     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5300       # Best one so far, save it but keep looking for a better one
5301       ac_cv_path_FGREP="$ac_path_FGREP"
5302       ac_path_FGREP_max=$ac_count
5303     fi
5304     # 10*(2^10) chars as input seems more than enough
5305     test $ac_count -gt 10 && break
5306   done
5307   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5308 esac
5309
5310       $ac_path_FGREP_found && break 3
5311     done
5312   done
5313   done
5314 IFS=$as_save_IFS
5315   if test -z "$ac_cv_path_FGREP"; then
5316     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5317   fi
5318 else
5319   ac_cv_path_FGREP=$FGREP
5320 fi
5321
5322    fi
5323 fi
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5325 $as_echo "$ac_cv_path_FGREP" >&6; }
5326  FGREP="$ac_cv_path_FGREP"
5327
5328
5329 test -z "$GREP" && GREP=grep
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349 # Check whether --with-gnu-ld was given.
5350 if test "${with_gnu_ld+set}" = set; then :
5351   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5352 else
5353   with_gnu_ld=no
5354 fi
5355
5356 ac_prog=ld
5357 if test yes = "$GCC"; then
5358   # Check if gcc -print-prog-name=ld gives a path.
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5360 $as_echo_n "checking for ld used by $CC... " >&6; }
5361   case $host in
5362   *-*-mingw*)
5363     # gcc leaves a trailing carriage return, which upsets mingw
5364     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5365   *)
5366     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5367   esac
5368   case $ac_prog in
5369     # Accept absolute paths.
5370     [\\/]* | ?:[\\/]*)
5371       re_direlt='/[^/][^/]*/\.\./'
5372       # Canonicalize the pathname of ld
5373       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5374       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5375         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5376       done
5377       test -z "$LD" && LD=$ac_prog
5378       ;;
5379   "")
5380     # If it fails, then pretend we aren't using GCC.
5381     ac_prog=ld
5382     ;;
5383   *)
5384     # If it is relative, then search for the first ld in PATH.
5385     with_gnu_ld=unknown
5386     ;;
5387   esac
5388 elif test yes = "$with_gnu_ld"; then
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5390 $as_echo_n "checking for GNU ld... " >&6; }
5391 else
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5393 $as_echo_n "checking for non-GNU ld... " >&6; }
5394 fi
5395 if ${lt_cv_path_LD+:} false; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   if test -z "$LD"; then
5399   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5400   for ac_dir in $PATH; do
5401     IFS=$lt_save_ifs
5402     test -z "$ac_dir" && ac_dir=.
5403     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5404       lt_cv_path_LD=$ac_dir/$ac_prog
5405       # Check to see if the program is GNU ld.  I'd rather use --version,
5406       # but apparently some variants of GNU ld only accept -v.
5407       # Break only if it was the GNU/non-GNU ld that we prefer.
5408       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5409       *GNU* | *'with BFD'*)
5410         test no != "$with_gnu_ld" && break
5411         ;;
5412       *)
5413         test yes != "$with_gnu_ld" && break
5414         ;;
5415       esac
5416     fi
5417   done
5418   IFS=$lt_save_ifs
5419 else
5420   lt_cv_path_LD=$LD # Let the user override the test with a path.
5421 fi
5422 fi
5423
5424 LD=$lt_cv_path_LD
5425 if test -n "$LD"; then
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5427 $as_echo "$LD" >&6; }
5428 else
5429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5434 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5435 if ${lt_cv_prog_gnu_ld+:} false; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5439 case `$LD -v 2>&1 </dev/null` in
5440 *GNU* | *'with BFD'*)
5441   lt_cv_prog_gnu_ld=yes
5442   ;;
5443 *)
5444   lt_cv_prog_gnu_ld=no
5445   ;;
5446 esac
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5449 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5450 with_gnu_ld=$lt_cv_prog_gnu_ld
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5461 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5462 if ${lt_cv_path_NM+:} false; then :
5463   $as_echo_n "(cached) " >&6
5464 else
5465   if test -n "$NM"; then
5466   # Let the user override the test.
5467   lt_cv_path_NM=$NM
5468 else
5469   lt_nm_to_check=${ac_tool_prefix}nm
5470   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5471     lt_nm_to_check="$lt_nm_to_check nm"
5472   fi
5473   for lt_tmp_nm in $lt_nm_to_check; do
5474     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5475     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5476       IFS=$lt_save_ifs
5477       test -z "$ac_dir" && ac_dir=.
5478       tmp_nm=$ac_dir/$lt_tmp_nm
5479       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5480         # Check to see if the nm accepts a BSD-compat flag.
5481         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5482         #   nm: unknown option "B" ignored
5483         # Tru64's nm complains that /dev/null is an invalid object file
5484         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5485         case $build_os in
5486         mingw*) lt_bad_file=conftest.nm/nofile ;;
5487         *) lt_bad_file=/dev/null ;;
5488         esac
5489         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5490         *$lt_bad_file* | *'Invalid file or object type'*)
5491           lt_cv_path_NM="$tmp_nm -B"
5492           break 2
5493           ;;
5494         *)
5495           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5496           */dev/null*)
5497             lt_cv_path_NM="$tmp_nm -p"
5498             break 2
5499             ;;
5500           *)
5501             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5502             continue # so that we can try to find one that supports BSD flags
5503             ;;
5504           esac
5505           ;;
5506         esac
5507       fi
5508     done
5509     IFS=$lt_save_ifs
5510   done
5511   : ${lt_cv_path_NM=no}
5512 fi
5513 fi
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5515 $as_echo "$lt_cv_path_NM" >&6; }
5516 if test no != "$lt_cv_path_NM"; then
5517   NM=$lt_cv_path_NM
5518 else
5519   # Didn't find any BSD compatible name lister, look for dumpbin.
5520   if test -n "$DUMPBIN"; then :
5521     # Let the user override the test.
5522   else
5523     if test -n "$ac_tool_prefix"; then
5524   for ac_prog in dumpbin "link -dump"
5525   do
5526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_prog_DUMPBIN+:} false; then :
5531   $as_echo_n "(cached) " >&6
5532 else
5533   if test -n "$DUMPBIN"; then
5534   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539   IFS=$as_save_IFS
5540   test -z "$as_dir" && as_dir=.
5541     for ac_exec_ext in '' $ac_executable_extensions; do
5542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545     break 2
5546   fi
5547 done
5548   done
5549 IFS=$as_save_IFS
5550
5551 fi
5552 fi
5553 DUMPBIN=$ac_cv_prog_DUMPBIN
5554 if test -n "$DUMPBIN"; then
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5556 $as_echo "$DUMPBIN" >&6; }
5557 else
5558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5560 fi
5561
5562
5563     test -n "$DUMPBIN" && break
5564   done
5565 fi
5566 if test -z "$DUMPBIN"; then
5567   ac_ct_DUMPBIN=$DUMPBIN
5568   for ac_prog in dumpbin "link -dump"
5569 do
5570   # Extract the first word of "$ac_prog", so it can be a program name with args.
5571 set dummy $ac_prog; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5575   $as_echo_n "(cached) " >&6
5576 else
5577   if test -n "$ac_ct_DUMPBIN"; then
5578   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585     for ac_exec_ext in '' $ac_executable_extensions; do
5586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589     break 2
5590   fi
5591 done
5592   done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5598 if test -n "$ac_ct_DUMPBIN"; then
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5600 $as_echo "$ac_ct_DUMPBIN" >&6; }
5601 else
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605
5606
5607   test -n "$ac_ct_DUMPBIN" && break
5608 done
5609
5610   if test "x$ac_ct_DUMPBIN" = x; then
5611     DUMPBIN=":"
5612   else
5613     case $cross_compiling:$ac_tool_warned in
5614 yes:)
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5617 ac_tool_warned=yes ;;
5618 esac
5619     DUMPBIN=$ac_ct_DUMPBIN
5620   fi
5621 fi
5622
5623     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5624     *COFF*)
5625       DUMPBIN="$DUMPBIN -symbols -headers"
5626       ;;
5627     *)
5628       DUMPBIN=:
5629       ;;
5630     esac
5631   fi
5632
5633   if test : != "$DUMPBIN"; then
5634     NM=$DUMPBIN
5635   fi
5636 fi
5637 test -z "$NM" && NM=nm
5638
5639
5640
5641
5642
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5645 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5646 if ${lt_cv_nm_interface+:} false; then :
5647   $as_echo_n "(cached) " >&6
5648 else
5649   lt_cv_nm_interface="BSD nm"
5650   echo "int some_variable = 0;" > conftest.$ac_ext
5651   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5652   (eval "$ac_compile" 2>conftest.err)
5653   cat conftest.err >&5
5654   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5655   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5656   cat conftest.err >&5
5657   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5658   cat conftest.out >&5
5659   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5660     lt_cv_nm_interface="MS dumpbin"
5661   fi
5662   rm -f conftest*
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5665 $as_echo "$lt_cv_nm_interface" >&6; }
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5668 $as_echo_n "checking whether ln -s works... " >&6; }
5669 LN_S=$as_ln_s
5670 if test "$LN_S" = "ln -s"; then
5671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5672 $as_echo "yes" >&6; }
5673 else
5674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5675 $as_echo "no, using $LN_S" >&6; }
5676 fi
5677
5678 # find the maximum length of command line arguments
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5680 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5681 if ${lt_cv_sys_max_cmd_len+:} false; then :
5682   $as_echo_n "(cached) " >&6
5683 else
5684     i=0
5685   teststring=ABCD
5686
5687   case $build_os in
5688   msdosdjgpp*)
5689     # On DJGPP, this test can blow up pretty badly due to problems in libc
5690     # (any single argument exceeding 2000 bytes causes a buffer overrun
5691     # during glob expansion).  Even if it were fixed, the result of this
5692     # check would be larger than it should be.
5693     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5694     ;;
5695
5696   gnu*)
5697     # Under GNU Hurd, this test is not required because there is
5698     # no limit to the length of command line arguments.
5699     # Libtool will interpret -1 as no limit whatsoever
5700     lt_cv_sys_max_cmd_len=-1;
5701     ;;
5702
5703   cygwin* | mingw* | cegcc*)
5704     # On Win9x/ME, this test blows up -- it succeeds, but takes
5705     # about 5 minutes as the teststring grows exponentially.
5706     # Worse, since 9x/ME are not pre-emptively multitasking,
5707     # you end up with a "frozen" computer, even though with patience
5708     # the test eventually succeeds (with a max line length of 256k).
5709     # Instead, let's just punt: use the minimum linelength reported by
5710     # all of the supported platforms: 8192 (on NT/2K/XP).
5711     lt_cv_sys_max_cmd_len=8192;
5712     ;;
5713
5714   mint*)
5715     # On MiNT this can take a long time and run out of memory.
5716     lt_cv_sys_max_cmd_len=8192;
5717     ;;
5718
5719   amigaos*)
5720     # On AmigaOS with pdksh, this test takes hours, literally.
5721     # So we just punt and use a minimum line length of 8192.
5722     lt_cv_sys_max_cmd_len=8192;
5723     ;;
5724
5725   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5726     # This has been around since 386BSD, at least.  Likely further.
5727     if test -x /sbin/sysctl; then
5728       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5729     elif test -x /usr/sbin/sysctl; then
5730       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5731     else
5732       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5733     fi
5734     # And add a safety zone
5735     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5736     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5737     ;;
5738
5739   interix*)
5740     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5741     lt_cv_sys_max_cmd_len=196608
5742     ;;
5743
5744   os2*)
5745     # The test takes a long time on OS/2.
5746     lt_cv_sys_max_cmd_len=8192
5747     ;;
5748
5749   osf*)
5750     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5751     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5752     # nice to cause kernel panics so lets avoid the loop below.
5753     # First set a reasonable default.
5754     lt_cv_sys_max_cmd_len=16384
5755     #
5756     if test -x /sbin/sysconfig; then
5757       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5758         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5759       esac
5760     fi
5761     ;;
5762   sco3.2v5*)
5763     lt_cv_sys_max_cmd_len=102400
5764     ;;
5765   sysv5* | sco5v6* | sysv4.2uw2*)
5766     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5767     if test -n "$kargmax"; then
5768       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5769     else
5770       lt_cv_sys_max_cmd_len=32768
5771     fi
5772     ;;
5773   *)
5774     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5775     if test -n "$lt_cv_sys_max_cmd_len" && \
5776        test undefined != "$lt_cv_sys_max_cmd_len"; then
5777       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5778       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5779     else
5780       # Make teststring a little bigger before we do anything with it.
5781       # a 1K string should be a reasonable start.
5782       for i in 1 2 3 4 5 6 7 8; do
5783         teststring=$teststring$teststring
5784       done
5785       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5786       # If test is not a shell built-in, we'll probably end up computing a
5787       # maximum length that is only half of the actual maximum length, but
5788       # we can't tell.
5789       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5790                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5791               test 17 != "$i" # 1/2 MB should be enough
5792       do
5793         i=`expr $i + 1`
5794         teststring=$teststring$teststring
5795       done
5796       # Only check the string length outside the loop.
5797       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5798       teststring=
5799       # Add a significant safety factor because C++ compilers can tack on
5800       # massive amounts of additional arguments before passing them to the
5801       # linker.  It appears as though 1/2 is a usable value.
5802       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5803     fi
5804     ;;
5805   esac
5806
5807 fi
5808
5809 if test -n "$lt_cv_sys_max_cmd_len"; then
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5811 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5812 else
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5814 $as_echo "none" >&6; }
5815 fi
5816 max_cmd_len=$lt_cv_sys_max_cmd_len
5817
5818
5819
5820
5821
5822
5823 : ${CP="cp -f"}
5824 : ${MV="mv -f"}
5825 : ${RM="rm -f"}
5826
5827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5828   lt_unset=unset
5829 else
5830   lt_unset=false
5831 fi
5832
5833
5834
5835
5836
5837 # test EBCDIC or ASCII
5838 case `echo X|tr X '\101'` in
5839  A) # ASCII based system
5840     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5841   lt_SP2NL='tr \040 \012'
5842   lt_NL2SP='tr \015\012 \040\040'
5843   ;;
5844  *) # EBCDIC based system
5845   lt_SP2NL='tr \100 \n'
5846   lt_NL2SP='tr \r\n \100\100'
5847   ;;
5848 esac
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5859 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5860 if ${lt_cv_to_host_file_cmd+:} false; then :
5861   $as_echo_n "(cached) " >&6
5862 else
5863   case $host in
5864   *-*-mingw* )
5865     case $build in
5866       *-*-mingw* ) # actually msys
5867         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5868         ;;
5869       *-*-cygwin* )
5870         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5871         ;;
5872       * ) # otherwise, assume *nix
5873         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5874         ;;
5875     esac
5876     ;;
5877   *-*-cygwin* )
5878     case $build in
5879       *-*-mingw* ) # actually msys
5880         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5881         ;;
5882       *-*-cygwin* )
5883         lt_cv_to_host_file_cmd=func_convert_file_noop
5884         ;;
5885       * ) # otherwise, assume *nix
5886         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5887         ;;
5888     esac
5889     ;;
5890   * ) # unhandled hosts (and "normal" native builds)
5891     lt_cv_to_host_file_cmd=func_convert_file_noop
5892     ;;
5893 esac
5894
5895 fi
5896
5897 to_host_file_cmd=$lt_cv_to_host_file_cmd
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5899 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5900
5901
5902
5903
5904
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5906 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5907 if ${lt_cv_to_tool_file_cmd+:} false; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   #assume ordinary cross tools, or native build.
5911 lt_cv_to_tool_file_cmd=func_convert_file_noop
5912 case $host in
5913   *-*-mingw* )
5914     case $build in
5915       *-*-mingw* ) # actually msys
5916         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5917         ;;
5918     esac
5919     ;;
5920 esac
5921
5922 fi
5923
5924 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5926 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5927
5928
5929
5930
5931
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5933 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5934 if ${lt_cv_ld_reload_flag+:} false; then :
5935   $as_echo_n "(cached) " >&6
5936 else
5937   lt_cv_ld_reload_flag='-r'
5938 fi
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5940 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5941 reload_flag=$lt_cv_ld_reload_flag
5942 case $reload_flag in
5943 "" | " "*) ;;
5944 *) reload_flag=" $reload_flag" ;;
5945 esac
5946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5947 case $host_os in
5948   cygwin* | mingw* | pw32* | cegcc*)
5949     if test yes != "$GCC"; then
5950       reload_cmds=false
5951     fi
5952     ;;
5953   darwin*)
5954     if test yes = "$GCC"; then
5955       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5956     else
5957       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5958     fi
5959     ;;
5960 esac
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970 if test -n "$ac_tool_prefix"; then
5971   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5972 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 $as_echo_n "checking for $ac_word... " >&6; }
5975 if ${ac_cv_prog_OBJDUMP+:} false; then :
5976   $as_echo_n "(cached) " >&6
5977 else
5978   if test -n "$OBJDUMP"; then
5979   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5983 do
5984   IFS=$as_save_IFS
5985   test -z "$as_dir" && as_dir=.
5986     for ac_exec_ext in '' $ac_executable_extensions; do
5987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990     break 2
5991   fi
5992 done
5993   done
5994 IFS=$as_save_IFS
5995
5996 fi
5997 fi
5998 OBJDUMP=$ac_cv_prog_OBJDUMP
5999 if test -n "$OBJDUMP"; then
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6001 $as_echo "$OBJDUMP" >&6; }
6002 else
6003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6005 fi
6006
6007
6008 fi
6009 if test -z "$ac_cv_prog_OBJDUMP"; then
6010   ac_ct_OBJDUMP=$OBJDUMP
6011   # Extract the first word of "objdump", so it can be a program name with args.
6012 set dummy objdump; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6016   $as_echo_n "(cached) " >&6
6017 else
6018   if test -n "$ac_ct_OBJDUMP"; then
6019   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024   IFS=$as_save_IFS
6025   test -z "$as_dir" && as_dir=.
6026     for ac_exec_ext in '' $ac_executable_extensions; do
6027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030     break 2
6031   fi
6032 done
6033   done
6034 IFS=$as_save_IFS
6035
6036 fi
6037 fi
6038 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6039 if test -n "$ac_ct_OBJDUMP"; then
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6041 $as_echo "$ac_ct_OBJDUMP" >&6; }
6042 else
6043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6045 fi
6046
6047   if test "x$ac_ct_OBJDUMP" = x; then
6048     OBJDUMP="false"
6049   else
6050     case $cross_compiling:$ac_tool_warned in
6051 yes:)
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054 ac_tool_warned=yes ;;
6055 esac
6056     OBJDUMP=$ac_ct_OBJDUMP
6057   fi
6058 else
6059   OBJDUMP="$ac_cv_prog_OBJDUMP"
6060 fi
6061
6062 test -z "$OBJDUMP" && OBJDUMP=objdump
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6073 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6074 if ${lt_cv_deplibs_check_method+:} false; then :
6075   $as_echo_n "(cached) " >&6
6076 else
6077   lt_cv_file_magic_cmd='$MAGIC_CMD'
6078 lt_cv_file_magic_test_file=
6079 lt_cv_deplibs_check_method='unknown'
6080 # Need to set the preceding variable on all platforms that support
6081 # interlibrary dependencies.
6082 # 'none' -- dependencies not supported.
6083 # 'unknown' -- same as none, but documents that we really don't know.
6084 # 'pass_all' -- all dependencies passed with no checks.
6085 # 'test_compile' -- check by making test program.
6086 # 'file_magic [[regex]]' -- check by looking for files in library path
6087 # that responds to the $file_magic_cmd with a given extended regex.
6088 # If you have 'file' or equivalent on your system and you're not sure
6089 # whether 'pass_all' will *always* work, you probably want this one.
6090
6091 case $host_os in
6092 aix[4-9]*)
6093   lt_cv_deplibs_check_method=pass_all
6094   ;;
6095
6096 beos*)
6097   lt_cv_deplibs_check_method=pass_all
6098   ;;
6099
6100 bsdi[45]*)
6101   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6102   lt_cv_file_magic_cmd='/usr/bin/file -L'
6103   lt_cv_file_magic_test_file=/shlib/libc.so
6104   ;;
6105
6106 cygwin*)
6107   # func_win32_libid is a shell function defined in ltmain.sh
6108   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6109   lt_cv_file_magic_cmd='func_win32_libid'
6110   ;;
6111
6112 mingw* | pw32*)
6113   # Base MSYS/MinGW do not provide the 'file' command needed by
6114   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6115   # unless we find 'file', for example because we are cross-compiling.
6116   if ( file / ) >/dev/null 2>&1; then
6117     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6118     lt_cv_file_magic_cmd='func_win32_libid'
6119   else
6120     # Keep this pattern in sync with the one in func_win32_libid.
6121     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6122     lt_cv_file_magic_cmd='$OBJDUMP -f'
6123   fi
6124   ;;
6125
6126 cegcc*)
6127   # use the weaker test based on 'objdump'. See mingw*.
6128   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6129   lt_cv_file_magic_cmd='$OBJDUMP -f'
6130   ;;
6131
6132 darwin* | rhapsody*)
6133   lt_cv_deplibs_check_method=pass_all
6134   ;;
6135
6136 freebsd* | dragonfly*)
6137   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6138     case $host_cpu in
6139     i*86 )
6140       # Not sure whether the presence of OpenBSD here was a mistake.
6141       # Let's accept both of them until this is cleared up.
6142       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6143       lt_cv_file_magic_cmd=/usr/bin/file
6144       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6145       ;;
6146     esac
6147   else
6148     lt_cv_deplibs_check_method=pass_all
6149   fi
6150   ;;
6151
6152 haiku*)
6153   lt_cv_deplibs_check_method=pass_all
6154   ;;
6155
6156 hpux10.20* | hpux11*)
6157   lt_cv_file_magic_cmd=/usr/bin/file
6158   case $host_cpu in
6159   ia64*)
6160     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6161     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6162     ;;
6163   hppa*64*)
6164     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6165     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6166     ;;
6167   *)
6168     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6169     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6170     ;;
6171   esac
6172   ;;
6173
6174 interix[3-9]*)
6175   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6176   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6177   ;;
6178
6179 irix5* | irix6* | nonstopux*)
6180   case $LD in
6181   *-32|*"-32 ") libmagic=32-bit;;
6182   *-n32|*"-n32 ") libmagic=N32;;
6183   *-64|*"-64 ") libmagic=64-bit;;
6184   *) libmagic=never-match;;
6185   esac
6186   lt_cv_deplibs_check_method=pass_all
6187   ;;
6188
6189 # This must be glibc/ELF.
6190 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6191   lt_cv_deplibs_check_method=pass_all
6192   ;;
6193
6194 netbsd* | netbsdelf*-gnu)
6195   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6196     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6197   else
6198     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6199   fi
6200   ;;
6201
6202 newos6*)
6203   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6204   lt_cv_file_magic_cmd=/usr/bin/file
6205   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6206   ;;
6207
6208 *nto* | *qnx*)
6209   lt_cv_deplibs_check_method=pass_all
6210   ;;
6211
6212 openbsd* | bitrig*)
6213   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6214     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6215   else
6216     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6217   fi
6218   ;;
6219
6220 osf3* | osf4* | osf5*)
6221   lt_cv_deplibs_check_method=pass_all
6222   ;;
6223
6224 rdos*)
6225   lt_cv_deplibs_check_method=pass_all
6226   ;;
6227
6228 solaris*)
6229   lt_cv_deplibs_check_method=pass_all
6230   ;;
6231
6232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6233   lt_cv_deplibs_check_method=pass_all
6234   ;;
6235
6236 sysv4 | sysv4.3*)
6237   case $host_vendor in
6238   motorola)
6239     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6240     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6241     ;;
6242   ncr)
6243     lt_cv_deplibs_check_method=pass_all
6244     ;;
6245   sequent)
6246     lt_cv_file_magic_cmd='/bin/file'
6247     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6248     ;;
6249   sni)
6250     lt_cv_file_magic_cmd='/bin/file'
6251     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6252     lt_cv_file_magic_test_file=/lib/libc.so
6253     ;;
6254   siemens)
6255     lt_cv_deplibs_check_method=pass_all
6256     ;;
6257   pc)
6258     lt_cv_deplibs_check_method=pass_all
6259     ;;
6260   esac
6261   ;;
6262
6263 tpf*)
6264   lt_cv_deplibs_check_method=pass_all
6265   ;;
6266 os2*)
6267   lt_cv_deplibs_check_method=pass_all
6268   ;;
6269 esac
6270
6271 fi
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6273 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6274
6275 file_magic_glob=
6276 want_nocaseglob=no
6277 if test "$build" = "$host"; then
6278   case $host_os in
6279   mingw* | pw32*)
6280     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6281       want_nocaseglob=yes
6282     else
6283       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6284     fi
6285     ;;
6286   esac
6287 fi
6288
6289 file_magic_cmd=$lt_cv_file_magic_cmd
6290 deplibs_check_method=$lt_cv_deplibs_check_method
6291 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314 if test -n "$ac_tool_prefix"; then
6315   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6316 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_DLLTOOL+:} false; then :
6320   $as_echo_n "(cached) " >&6
6321 else
6322   if test -n "$DLLTOOL"; then
6323   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328   IFS=$as_save_IFS
6329   test -z "$as_dir" && as_dir=.
6330     for ac_exec_ext in '' $ac_executable_extensions; do
6331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334     break 2
6335   fi
6336 done
6337   done
6338 IFS=$as_save_IFS
6339
6340 fi
6341 fi
6342 DLLTOOL=$ac_cv_prog_DLLTOOL
6343 if test -n "$DLLTOOL"; then
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6345 $as_echo "$DLLTOOL" >&6; }
6346 else
6347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6349 fi
6350
6351
6352 fi
6353 if test -z "$ac_cv_prog_DLLTOOL"; then
6354   ac_ct_DLLTOOL=$DLLTOOL
6355   # Extract the first word of "dlltool", so it can be a program name with args.
6356 set dummy dlltool; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6360   $as_echo_n "(cached) " >&6
6361 else
6362   if test -n "$ac_ct_DLLTOOL"; then
6363   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368   IFS=$as_save_IFS
6369   test -z "$as_dir" && as_dir=.
6370     for ac_exec_ext in '' $ac_executable_extensions; do
6371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374     break 2
6375   fi
6376 done
6377   done
6378 IFS=$as_save_IFS
6379
6380 fi
6381 fi
6382 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6383 if test -n "$ac_ct_DLLTOOL"; then
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6385 $as_echo "$ac_ct_DLLTOOL" >&6; }
6386 else
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6389 fi
6390
6391   if test "x$ac_ct_DLLTOOL" = x; then
6392     DLLTOOL="false"
6393   else
6394     case $cross_compiling:$ac_tool_warned in
6395 yes:)
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398 ac_tool_warned=yes ;;
6399 esac
6400     DLLTOOL=$ac_ct_DLLTOOL
6401   fi
6402 else
6403   DLLTOOL="$ac_cv_prog_DLLTOOL"
6404 fi
6405
6406 test -z "$DLLTOOL" && DLLTOOL=dlltool
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6418 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6419 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6420   $as_echo_n "(cached) " >&6
6421 else
6422   lt_cv_sharedlib_from_linklib_cmd='unknown'
6423
6424 case $host_os in
6425 cygwin* | mingw* | pw32* | cegcc*)
6426   # two different shell functions defined in ltmain.sh;
6427   # decide which one to use based on capabilities of $DLLTOOL
6428   case `$DLLTOOL --help 2>&1` in
6429   *--identify-strict*)
6430     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6431     ;;
6432   *)
6433     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6434     ;;
6435   esac
6436   ;;
6437 *)
6438   # fallback: assume linklib IS sharedlib
6439   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6440   ;;
6441 esac
6442
6443 fi
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6445 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6446 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6447 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6448
6449
6450
6451
6452
6453
6454
6455 if test -n "$ac_tool_prefix"; then
6456   for ac_prog in ar
6457   do
6458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if ${ac_cv_prog_AR+:} false; then :
6463   $as_echo_n "(cached) " >&6
6464 else
6465   if test -n "$AR"; then
6466   ac_cv_prog_AR="$AR" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473     for ac_exec_ext in '' $ac_executable_extensions; do
6474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480   done
6481 IFS=$as_save_IFS
6482
6483 fi
6484 fi
6485 AR=$ac_cv_prog_AR
6486 if test -n "$AR"; then
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6488 $as_echo "$AR" >&6; }
6489 else
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6493
6494
6495     test -n "$AR" && break
6496   done
6497 fi
6498 if test -z "$AR"; then
6499   ac_ct_AR=$AR
6500   for ac_prog in ar
6501 do
6502   # Extract the first word of "$ac_prog", so it can be a program name with args.
6503 set dummy $ac_prog; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   if test -n "$ac_ct_AR"; then
6510   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517     for ac_exec_ext in '' $ac_executable_extensions; do
6518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519     ac_cv_prog_ac_ct_AR="$ac_prog"
6520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524   done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6530 if test -n "$ac_ct_AR"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6532 $as_echo "$ac_ct_AR" >&6; }
6533 else
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538
6539   test -n "$ac_ct_AR" && break
6540 done
6541
6542   if test "x$ac_ct_AR" = x; then
6543     AR="false"
6544   else
6545     case $cross_compiling:$ac_tool_warned in
6546 yes:)
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6549 ac_tool_warned=yes ;;
6550 esac
6551     AR=$ac_ct_AR
6552   fi
6553 fi
6554
6555 : ${AR=ar}
6556 : ${AR_FLAGS=cru}
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6569 $as_echo_n "checking for archiver @FILE support... " >&6; }
6570 if ${lt_cv_ar_at_file+:} false; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   lt_cv_ar_at_file=no
6574    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h.  */
6576
6577 int
6578 main ()
6579 {
6580
6581   ;
6582   return 0;
6583 }
6584 _ACEOF
6585 if ac_fn_c_try_compile "$LINENO"; then :
6586   echo conftest.$ac_objext > conftest.lst
6587       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6588       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6589   (eval $lt_ar_try) 2>&5
6590   ac_status=$?
6591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592   test $ac_status = 0; }
6593       if test 0 -eq "$ac_status"; then
6594         # Ensure the archiver fails upon bogus file names.
6595         rm -f conftest.$ac_objext libconftest.a
6596         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6597   (eval $lt_ar_try) 2>&5
6598   ac_status=$?
6599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600   test $ac_status = 0; }
6601         if test 0 -ne "$ac_status"; then
6602           lt_cv_ar_at_file=@
6603         fi
6604       fi
6605       rm -f conftest.* libconftest.a
6606
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609
6610 fi
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6612 $as_echo "$lt_cv_ar_at_file" >&6; }
6613
6614 if test no = "$lt_cv_ar_at_file"; then
6615   archiver_list_spec=
6616 else
6617   archiver_list_spec=$lt_cv_ar_at_file
6618 fi
6619
6620
6621
6622
6623
6624
6625
6626 if test -n "$ac_tool_prefix"; then
6627   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}strip; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_STRIP+:} false; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   if test -n "$STRIP"; then
6635   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640   IFS=$as_save_IFS
6641   test -z "$as_dir" && as_dir=.
6642     for ac_exec_ext in '' $ac_executable_extensions; do
6643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646     break 2
6647   fi
6648 done
6649   done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 STRIP=$ac_cv_prog_STRIP
6655 if test -n "$STRIP"; then
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6657 $as_echo "$STRIP" >&6; }
6658 else
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_STRIP"; then
6666   ac_ct_STRIP=$STRIP
6667   # Extract the first word of "strip", so it can be a program name with args.
6668 set dummy strip; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6672   $as_echo_n "(cached) " >&6
6673 else
6674   if test -n "$ac_ct_STRIP"; then
6675   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680   IFS=$as_save_IFS
6681   test -z "$as_dir" && as_dir=.
6682     for ac_exec_ext in '' $ac_executable_extensions; do
6683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684     ac_cv_prog_ac_ct_STRIP="strip"
6685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686     break 2
6687   fi
6688 done
6689   done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6695 if test -n "$ac_ct_STRIP"; then
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6697 $as_echo "$ac_ct_STRIP" >&6; }
6698 else
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702
6703   if test "x$ac_ct_STRIP" = x; then
6704     STRIP=":"
6705   else
6706     case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712     STRIP=$ac_ct_STRIP
6713   fi
6714 else
6715   STRIP="$ac_cv_prog_STRIP"
6716 fi
6717
6718 test -z "$STRIP" && STRIP=:
6719
6720
6721
6722
6723
6724
6725 if test -n "$ac_tool_prefix"; then
6726   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if ${ac_cv_prog_RANLIB+:} false; then :
6731   $as_echo_n "(cached) " >&6
6732 else
6733   if test -n "$RANLIB"; then
6734   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739   IFS=$as_save_IFS
6740   test -z "$as_dir" && as_dir=.
6741     for ac_exec_ext in '' $ac_executable_extensions; do
6742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745     break 2
6746   fi
6747 done
6748   done
6749 IFS=$as_save_IFS
6750
6751 fi
6752 fi
6753 RANLIB=$ac_cv_prog_RANLIB
6754 if test -n "$RANLIB"; then
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6756 $as_echo "$RANLIB" >&6; }
6757 else
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6760 fi
6761
6762
6763 fi
6764 if test -z "$ac_cv_prog_RANLIB"; then
6765   ac_ct_RANLIB=$RANLIB
6766   # Extract the first word of "ranlib", so it can be a program name with args.
6767 set dummy ranlib; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6771   $as_echo_n "(cached) " >&6
6772 else
6773   if test -n "$ac_ct_RANLIB"; then
6774   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779   IFS=$as_save_IFS
6780   test -z "$as_dir" && as_dir=.
6781     for ac_exec_ext in '' $ac_executable_extensions; do
6782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783     ac_cv_prog_ac_ct_RANLIB="ranlib"
6784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785     break 2
6786   fi
6787 done
6788   done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6794 if test -n "$ac_ct_RANLIB"; then
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6796 $as_echo "$ac_ct_RANLIB" >&6; }
6797 else
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6800 fi
6801
6802   if test "x$ac_ct_RANLIB" = x; then
6803     RANLIB=":"
6804   else
6805     case $cross_compiling:$ac_tool_warned in
6806 yes:)
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809 ac_tool_warned=yes ;;
6810 esac
6811     RANLIB=$ac_ct_RANLIB
6812   fi
6813 else
6814   RANLIB="$ac_cv_prog_RANLIB"
6815 fi
6816
6817 test -z "$RANLIB" && RANLIB=:
6818
6819
6820
6821
6822
6823
6824 # Determine commands to create old-style static archives.
6825 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6826 old_postinstall_cmds='chmod 644 $oldlib'
6827 old_postuninstall_cmds=
6828
6829 if test -n "$RANLIB"; then
6830   case $host_os in
6831   bitrig* | openbsd*)
6832     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6833     ;;
6834   *)
6835     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6836     ;;
6837   esac
6838   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6839 fi
6840
6841 case $host_os in
6842   darwin*)
6843     lock_old_archive_extraction=yes ;;
6844   *)
6845     lock_old_archive_extraction=no ;;
6846 esac
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886 # If no C compiler was specified, use CC.
6887 LTCC=${LTCC-"$CC"}
6888
6889 # If no C compiler flags were specified, use CFLAGS.
6890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6891
6892 # Allow CC to be a program name with arguments.
6893 compiler=$CC
6894
6895
6896 # Check for command to grab the raw symbol name followed by C symbol from nm.
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6898 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6899 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6900   $as_echo_n "(cached) " >&6
6901 else
6902
6903 # These are sane defaults that work on at least a few old systems.
6904 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6905
6906 # Character class describing NM global symbol codes.
6907 symcode='[BCDEGRST]'
6908
6909 # Regexp to match symbols that can be accessed directly from C.
6910 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6911
6912 # Define system-specific variables.
6913 case $host_os in
6914 aix*)
6915   symcode='[BCDT]'
6916   ;;
6917 cygwin* | mingw* | pw32* | cegcc*)
6918   symcode='[ABCDGISTW]'
6919   ;;
6920 hpux*)
6921   if test ia64 = "$host_cpu"; then
6922     symcode='[ABCDEGRST]'
6923   fi
6924   ;;
6925 irix* | nonstopux*)
6926   symcode='[BCDEGRST]'
6927   ;;
6928 osf*)
6929   symcode='[BCDEGQRST]'
6930   ;;
6931 solaris*)
6932   symcode='[BDRT]'
6933   ;;
6934 sco3.2v5*)
6935   symcode='[DT]'
6936   ;;
6937 sysv4.2uw2*)
6938   symcode='[DT]'
6939   ;;
6940 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6941   symcode='[ABDT]'
6942   ;;
6943 sysv4)
6944   symcode='[DFNSTU]'
6945   ;;
6946 esac
6947
6948 # If we're using GNU nm, then use its standard symbol codes.
6949 case `$NM -V 2>&1` in
6950 *GNU* | *'with BFD'*)
6951   symcode='[ABCDGIRSTW]' ;;
6952 esac
6953
6954 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6955   # Gets list of data symbols to import.
6956   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6957   # Adjust the below global symbol transforms to fixup imported variables.
6958   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6959   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6960   lt_c_name_lib_hook="\
6961   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6962   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6963 else
6964   # Disable hooks by default.
6965   lt_cv_sys_global_symbol_to_import=
6966   lt_cdecl_hook=
6967   lt_c_name_hook=
6968   lt_c_name_lib_hook=
6969 fi
6970
6971 # Transform an extracted symbol line into a proper C declaration.
6972 # Some systems (esp. on ia64) link data and code symbols differently,
6973 # so use this general approach.
6974 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6975 $lt_cdecl_hook\
6976 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6977 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6978
6979 # Transform an extracted symbol line into symbol name and symbol address
6980 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6981 $lt_c_name_hook\
6982 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6983 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6984
6985 # Transform an extracted symbol line into symbol name with lib prefix and
6986 # symbol address.
6987 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6988 $lt_c_name_lib_hook\
6989 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6990 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6991 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6992
6993 # Handle CRLF in mingw tool chain
6994 opt_cr=
6995 case $build_os in
6996 mingw*)
6997   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6998   ;;
6999 esac
7000
7001 # Try without a prefix underscore, then with it.
7002 for ac_symprfx in "" "_"; do
7003
7004   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7005   symxfrm="\\1 $ac_symprfx\\2 \\2"
7006
7007   # Write the raw and C identifiers.
7008   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7009     # Fake it for dumpbin and say T for any non-static function,
7010     # D for any global variable and I for any imported variable.
7011     # Also find C++ and __fastcall symbols from MSVC++,
7012     # which start with @ or ?.
7013     lt_cv_sys_global_symbol_pipe="$AWK '"\
7014 "     {last_section=section; section=\$ 3};"\
7015 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7016 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7017 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7018 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7019 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7020 "     \$ 0!~/External *\|/{next};"\
7021 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7022 "     {if(hide[section]) next};"\
7023 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7024 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7025 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7026 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7027 "     ' prfx=^$ac_symprfx"
7028   else
7029     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7030   fi
7031   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7032
7033   # Check to see that the pipe works correctly.
7034   pipe_works=no
7035
7036   rm -f conftest*
7037   cat > conftest.$ac_ext <<_LT_EOF
7038 #ifdef __cplusplus
7039 extern "C" {
7040 #endif
7041 char nm_test_var;
7042 void nm_test_func(void);
7043 void nm_test_func(void){}
7044 #ifdef __cplusplus
7045 }
7046 #endif
7047 int main(){nm_test_var='a';nm_test_func();return(0);}
7048 _LT_EOF
7049
7050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051   (eval $ac_compile) 2>&5
7052   ac_status=$?
7053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054   test $ac_status = 0; }; then
7055     # Now try to grab the symbols.
7056     nlist=conftest.nm
7057     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7058   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7059   ac_status=$?
7060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061   test $ac_status = 0; } && test -s "$nlist"; then
7062       # Try sorting and uniquifying the output.
7063       if sort "$nlist" | uniq > "$nlist"T; then
7064         mv -f "$nlist"T "$nlist"
7065       else
7066         rm -f "$nlist"T
7067       fi
7068
7069       # Make sure that we snagged all the symbols we need.
7070       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7071         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7072           cat <<_LT_EOF > conftest.$ac_ext
7073 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7074 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7075 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7076    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7077 # define LT_DLSYM_CONST
7078 #elif defined __osf__
7079 /* This system does not cope well with relocations in const data.  */
7080 # define LT_DLSYM_CONST
7081 #else
7082 # define LT_DLSYM_CONST const
7083 #endif
7084
7085 #ifdef __cplusplus
7086 extern "C" {
7087 #endif
7088
7089 _LT_EOF
7090           # Now generate the symbol file.
7091           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7092
7093           cat <<_LT_EOF >> conftest.$ac_ext
7094
7095 /* The mapping between symbol names and symbols.  */
7096 LT_DLSYM_CONST struct {
7097   const char *name;
7098   void       *address;
7099 }
7100 lt__PROGRAM__LTX_preloaded_symbols[] =
7101 {
7102   { "@PROGRAM@", (void *) 0 },
7103 _LT_EOF
7104           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7105           cat <<\_LT_EOF >> conftest.$ac_ext
7106   {0, (void *) 0}
7107 };
7108
7109 /* This works around a problem in FreeBSD linker */
7110 #ifdef FREEBSD_WORKAROUND
7111 static const void *lt_preloaded_setup() {
7112   return lt__PROGRAM__LTX_preloaded_symbols;
7113 }
7114 #endif
7115
7116 #ifdef __cplusplus
7117 }
7118 #endif
7119 _LT_EOF
7120           # Now try linking the two files.
7121           mv conftest.$ac_objext conftstm.$ac_objext
7122           lt_globsym_save_LIBS=$LIBS
7123           lt_globsym_save_CFLAGS=$CFLAGS
7124           LIBS=conftstm.$ac_objext
7125           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7126           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7127   (eval $ac_link) 2>&5
7128   ac_status=$?
7129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7130   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7131             pipe_works=yes
7132           fi
7133           LIBS=$lt_globsym_save_LIBS
7134           CFLAGS=$lt_globsym_save_CFLAGS
7135         else
7136           echo "cannot find nm_test_func in $nlist" >&5
7137         fi
7138       else
7139         echo "cannot find nm_test_var in $nlist" >&5
7140       fi
7141     else
7142       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7143     fi
7144   else
7145     echo "$progname: failed program was:" >&5
7146     cat conftest.$ac_ext >&5
7147   fi
7148   rm -rf conftest* conftst*
7149
7150   # Do not use the global_symbol_pipe unless it works.
7151   if test yes = "$pipe_works"; then
7152     break
7153   else
7154     lt_cv_sys_global_symbol_pipe=
7155   fi
7156 done
7157
7158 fi
7159
7160 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7161   lt_cv_sys_global_symbol_to_cdecl=
7162 fi
7163 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7165 $as_echo "failed" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7168 $as_echo "ok" >&6; }
7169 fi
7170
7171 # Response file support.
7172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7173   nm_file_list_spec='@'
7174 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7175   nm_file_list_spec='@'
7176 fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7215 $as_echo_n "checking for sysroot... " >&6; }
7216
7217 # Check whether --with-sysroot was given.
7218 if test "${with_sysroot+set}" = set; then :
7219   withval=$with_sysroot;
7220 else
7221   with_sysroot=no
7222 fi
7223
7224
7225 lt_sysroot=
7226 case $with_sysroot in #(
7227  yes)
7228    if test yes = "$GCC"; then
7229      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7230    fi
7231    ;; #(
7232  /*)
7233    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7234    ;; #(
7235  no|'')
7236    ;; #(
7237  *)
7238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7239 $as_echo "$with_sysroot" >&6; }
7240    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7241    ;;
7242 esac
7243
7244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7245 $as_echo "${lt_sysroot:-no}" >&6; }
7246
7247
7248
7249
7250
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7252 $as_echo_n "checking for a working dd... " >&6; }
7253 if ${ac_cv_path_lt_DD+:} false; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   printf 0123456789abcdef0123456789abcdef >conftest.i
7257 cat conftest.i conftest.i >conftest2.i
7258 : ${lt_DD:=$DD}
7259 if test -z "$lt_DD"; then
7260   ac_path_lt_DD_found=false
7261   # Loop through the user's path and test for each of PROGNAME-LIST
7262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265   IFS=$as_save_IFS
7266   test -z "$as_dir" && as_dir=.
7267     for ac_prog in dd; do
7268     for ac_exec_ext in '' $ac_executable_extensions; do
7269       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7270       as_fn_executable_p "$ac_path_lt_DD" || continue
7271 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7272   cmp -s conftest.i conftest.out \
7273   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7274 fi
7275       $ac_path_lt_DD_found && break 3
7276     done
7277   done
7278   done
7279 IFS=$as_save_IFS
7280   if test -z "$ac_cv_path_lt_DD"; then
7281     :
7282   fi
7283 else
7284   ac_cv_path_lt_DD=$lt_DD
7285 fi
7286
7287 rm -f conftest.i conftest2.i conftest.out
7288 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7290 $as_echo "$ac_cv_path_lt_DD" >&6; }
7291
7292
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7294 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7295 if ${lt_cv_truncate_bin+:} false; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298   printf 0123456789abcdef0123456789abcdef >conftest.i
7299 cat conftest.i conftest.i >conftest2.i
7300 lt_cv_truncate_bin=
7301 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7302   cmp -s conftest.i conftest.out \
7303   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7304 fi
7305 rm -f conftest.i conftest2.i conftest.out
7306 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7309 $as_echo "$lt_cv_truncate_bin" >&6; }
7310
7311
7312
7313
7314
7315
7316
7317 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7318 func_cc_basename ()
7319 {
7320     for cc_temp in $*""; do
7321       case $cc_temp in
7322         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7323         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7324         \-*) ;;
7325         *) break;;
7326       esac
7327     done
7328     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7329 }
7330
7331 # Check whether --enable-libtool-lock was given.
7332 if test "${enable_libtool_lock+set}" = set; then :
7333   enableval=$enable_libtool_lock;
7334 fi
7335
7336 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7337
7338 # Some flags need to be propagated to the compiler or linker for good
7339 # libtool support.
7340 case $host in
7341 ia64-*-hpux*)
7342   # Find out what ABI is being produced by ac_compile, and set mode
7343   # options accordingly.
7344   echo 'int i;' > conftest.$ac_ext
7345   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7346   (eval $ac_compile) 2>&5
7347   ac_status=$?
7348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349   test $ac_status = 0; }; then
7350     case `/usr/bin/file conftest.$ac_objext` in
7351       *ELF-32*)
7352         HPUX_IA64_MODE=32
7353         ;;
7354       *ELF-64*)
7355         HPUX_IA64_MODE=64
7356         ;;
7357     esac
7358   fi
7359   rm -rf conftest*
7360   ;;
7361 *-*-irix6*)
7362   # Find out what ABI is being produced by ac_compile, and set linker
7363   # options accordingly.
7364   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7365   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7366   (eval $ac_compile) 2>&5
7367   ac_status=$?
7368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369   test $ac_status = 0; }; then
7370     if test yes = "$lt_cv_prog_gnu_ld"; then
7371       case `/usr/bin/file conftest.$ac_objext` in
7372         *32-bit*)
7373           LD="${LD-ld} -melf32bsmip"
7374           ;;
7375         *N32*)
7376           LD="${LD-ld} -melf32bmipn32"
7377           ;;
7378         *64-bit*)
7379           LD="${LD-ld} -melf64bmip"
7380         ;;
7381       esac
7382     else
7383       case `/usr/bin/file conftest.$ac_objext` in
7384         *32-bit*)
7385           LD="${LD-ld} -32"
7386           ;;
7387         *N32*)
7388           LD="${LD-ld} -n32"
7389           ;;
7390         *64-bit*)
7391           LD="${LD-ld} -64"
7392           ;;
7393       esac
7394     fi
7395   fi
7396   rm -rf conftest*
7397   ;;
7398
7399 mips64*-*linux*)
7400   # Find out what ABI is being produced by ac_compile, and set linker
7401   # options accordingly.
7402   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7403   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404   (eval $ac_compile) 2>&5
7405   ac_status=$?
7406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407   test $ac_status = 0; }; then
7408     emul=elf
7409     case `/usr/bin/file conftest.$ac_objext` in
7410       *32-bit*)
7411         emul="${emul}32"
7412         ;;
7413       *64-bit*)
7414         emul="${emul}64"
7415         ;;
7416     esac
7417     case `/usr/bin/file conftest.$ac_objext` in
7418       *MSB*)
7419         emul="${emul}btsmip"
7420         ;;
7421       *LSB*)
7422         emul="${emul}ltsmip"
7423         ;;
7424     esac
7425     case `/usr/bin/file conftest.$ac_objext` in
7426       *N32*)
7427         emul="${emul}n32"
7428         ;;
7429     esac
7430     LD="${LD-ld} -m $emul"
7431   fi
7432   rm -rf conftest*
7433   ;;
7434
7435 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7436 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7437   # Find out what ABI is being produced by ac_compile, and set linker
7438   # options accordingly.  Note that the listed cases only cover the
7439   # situations where additional linker options are needed (such as when
7440   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7441   # vice versa); the common cases where no linker options are needed do
7442   # not appear in the list.
7443   echo 'int i;' > conftest.$ac_ext
7444   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445   (eval $ac_compile) 2>&5
7446   ac_status=$?
7447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448   test $ac_status = 0; }; then
7449     case `/usr/bin/file conftest.o` in
7450       *32-bit*)
7451         case $host in
7452           x86_64-*kfreebsd*-gnu)
7453             LD="${LD-ld} -m elf_i386_fbsd"
7454             ;;
7455           x86_64-*linux*)
7456             case `/usr/bin/file conftest.o` in
7457               *x86-64*)
7458                 LD="${LD-ld} -m elf32_x86_64"
7459                 ;;
7460               *)
7461                 LD="${LD-ld} -m elf_i386"
7462                 ;;
7463             esac
7464             ;;
7465           powerpc64le-*linux*)
7466             LD="${LD-ld} -m elf32lppclinux"
7467             ;;
7468           powerpc64-*linux*)
7469             LD="${LD-ld} -m elf32ppclinux"
7470             ;;
7471           s390x-*linux*)
7472             LD="${LD-ld} -m elf_s390"
7473             ;;
7474           sparc64-*linux*)
7475             LD="${LD-ld} -m elf32_sparc"
7476             ;;
7477         esac
7478         ;;
7479       *64-bit*)
7480         case $host in
7481           x86_64-*kfreebsd*-gnu)
7482             LD="${LD-ld} -m elf_x86_64_fbsd"
7483             ;;
7484           x86_64-*linux*)
7485             LD="${LD-ld} -m elf_x86_64"
7486             ;;
7487           powerpcle-*linux*)
7488             LD="${LD-ld} -m elf64lppc"
7489             ;;
7490           powerpc-*linux*)
7491             LD="${LD-ld} -m elf64ppc"
7492             ;;
7493           s390*-*linux*|s390*-*tpf*)
7494             LD="${LD-ld} -m elf64_s390"
7495             ;;
7496           sparc*-*linux*)
7497             LD="${LD-ld} -m elf64_sparc"
7498             ;;
7499         esac
7500         ;;
7501     esac
7502   fi
7503   rm -rf conftest*
7504   ;;
7505
7506 *-*-sco3.2v5*)
7507   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7508   SAVE_CFLAGS=$CFLAGS
7509   CFLAGS="$CFLAGS -belf"
7510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7511 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7512 if ${lt_cv_cc_needs_belf+:} false; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   ac_ext=c
7516 ac_cpp='$CPP $CPPFLAGS'
7517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7520
7521      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h.  */
7523
7524 int
7525 main ()
7526 {
7527
7528   ;
7529   return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_link "$LINENO"; then :
7533   lt_cv_cc_needs_belf=yes
7534 else
7535   lt_cv_cc_needs_belf=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext \
7538     conftest$ac_exeext conftest.$ac_ext
7539      ac_ext=c
7540 ac_cpp='$CPP $CPPFLAGS'
7541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544
7545 fi
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7547 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7548   if test yes != "$lt_cv_cc_needs_belf"; then
7549     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7550     CFLAGS=$SAVE_CFLAGS
7551   fi
7552   ;;
7553 *-*solaris*)
7554   # Find out what ABI is being produced by ac_compile, and set linker
7555   # options accordingly.
7556   echo 'int i;' > conftest.$ac_ext
7557   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7558   (eval $ac_compile) 2>&5
7559   ac_status=$?
7560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7561   test $ac_status = 0; }; then
7562     case `/usr/bin/file conftest.o` in
7563     *64-bit*)
7564       case $lt_cv_prog_gnu_ld in
7565       yes*)
7566         case $host in
7567         i?86-*-solaris*|x86_64-*-solaris*)
7568           LD="${LD-ld} -m elf_x86_64"
7569           ;;
7570         sparc*-*-solaris*)
7571           LD="${LD-ld} -m elf64_sparc"
7572           ;;
7573         esac
7574         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7575         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7576           LD=${LD-ld}_sol2
7577         fi
7578         ;;
7579       *)
7580         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7581           LD="${LD-ld} -64"
7582         fi
7583         ;;
7584       esac
7585       ;;
7586     esac
7587   fi
7588   rm -rf conftest*
7589   ;;
7590 esac
7591
7592 need_locks=$enable_libtool_lock
7593
7594 if test -n "$ac_tool_prefix"; then
7595   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7596 set dummy ${ac_tool_prefix}mt; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   if test -n "$MANIFEST_TOOL"; then
7603   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608   IFS=$as_save_IFS
7609   test -z "$as_dir" && as_dir=.
7610     for ac_exec_ext in '' $ac_executable_extensions; do
7611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614     break 2
7615   fi
7616 done
7617   done
7618 IFS=$as_save_IFS
7619
7620 fi
7621 fi
7622 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7623 if test -n "$MANIFEST_TOOL"; then
7624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7625 $as_echo "$MANIFEST_TOOL" >&6; }
7626 else
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7629 fi
7630
7631
7632 fi
7633 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7634   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7635   # Extract the first word of "mt", so it can be a program name with args.
7636 set dummy mt; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7640   $as_echo_n "(cached) " >&6
7641 else
7642   if test -n "$ac_ct_MANIFEST_TOOL"; then
7643   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650     for ac_exec_ext in '' $ac_executable_extensions; do
7651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657   done
7658 IFS=$as_save_IFS
7659
7660 fi
7661 fi
7662 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7663 if test -n "$ac_ct_MANIFEST_TOOL"; then
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7665 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7666 else
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670
7671   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7672     MANIFEST_TOOL=":"
7673   else
7674     case $cross_compiling:$ac_tool_warned in
7675 yes:)
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678 ac_tool_warned=yes ;;
7679 esac
7680     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7681   fi
7682 else
7683   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7684 fi
7685
7686 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7688 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7689 if ${lt_cv_path_mainfest_tool+:} false; then :
7690   $as_echo_n "(cached) " >&6
7691 else
7692   lt_cv_path_mainfest_tool=no
7693   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7694   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7695   cat conftest.err >&5
7696   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7697     lt_cv_path_mainfest_tool=yes
7698   fi
7699   rm -f conftest*
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7702 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7703 if test yes != "$lt_cv_path_mainfest_tool"; then
7704   MANIFEST_TOOL=:
7705 fi
7706
7707
7708
7709
7710
7711
7712   case $host_os in
7713     rhapsody* | darwin*)
7714     if test -n "$ac_tool_prefix"; then
7715   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   if test -n "$DSYMUTIL"; then
7723   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730     for ac_exec_ext in '' $ac_executable_extensions; do
7731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737   done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7743 if test -n "$DSYMUTIL"; then
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7745 $as_echo "$DSYMUTIL" >&6; }
7746 else
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751
7752 fi
7753 if test -z "$ac_cv_prog_DSYMUTIL"; then
7754   ac_ct_DSYMUTIL=$DSYMUTIL
7755   # Extract the first word of "dsymutil", so it can be a program name with args.
7756 set dummy dsymutil; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   if test -n "$ac_ct_DSYMUTIL"; then
7763   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768   IFS=$as_save_IFS
7769   test -z "$as_dir" && as_dir=.
7770     for ac_exec_ext in '' $ac_executable_extensions; do
7771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774     break 2
7775   fi
7776 done
7777   done
7778 IFS=$as_save_IFS
7779
7780 fi
7781 fi
7782 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7783 if test -n "$ac_ct_DSYMUTIL"; then
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7785 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7786 else
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790
7791   if test "x$ac_ct_DSYMUTIL" = x; then
7792     DSYMUTIL=":"
7793   else
7794     case $cross_compiling:$ac_tool_warned in
7795 yes:)
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798 ac_tool_warned=yes ;;
7799 esac
7800     DSYMUTIL=$ac_ct_DSYMUTIL
7801   fi
7802 else
7803   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7804 fi
7805
7806     if test -n "$ac_tool_prefix"; then
7807   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7808 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 $as_echo_n "checking for $ac_word... " >&6; }
7811 if ${ac_cv_prog_NMEDIT+:} false; then :
7812   $as_echo_n "(cached) " >&6
7813 else
7814   if test -n "$NMEDIT"; then
7815   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7816 else
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 for as_dir in $PATH
7819 do
7820   IFS=$as_save_IFS
7821   test -z "$as_dir" && as_dir=.
7822     for ac_exec_ext in '' $ac_executable_extensions; do
7823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7824     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826     break 2
7827   fi
7828 done
7829   done
7830 IFS=$as_save_IFS
7831
7832 fi
7833 fi
7834 NMEDIT=$ac_cv_prog_NMEDIT
7835 if test -n "$NMEDIT"; then
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7837 $as_echo "$NMEDIT" >&6; }
7838 else
7839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841 fi
7842
7843
7844 fi
7845 if test -z "$ac_cv_prog_NMEDIT"; then
7846   ac_ct_NMEDIT=$NMEDIT
7847   # Extract the first word of "nmedit", so it can be a program name with args.
7848 set dummy nmedit; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7852   $as_echo_n "(cached) " >&6
7853 else
7854   if test -n "$ac_ct_NMEDIT"; then
7855   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7859 do
7860   IFS=$as_save_IFS
7861   test -z "$as_dir" && as_dir=.
7862     for ac_exec_ext in '' $ac_executable_extensions; do
7863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866     break 2
7867   fi
7868 done
7869   done
7870 IFS=$as_save_IFS
7871
7872 fi
7873 fi
7874 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7875 if test -n "$ac_ct_NMEDIT"; then
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7877 $as_echo "$ac_ct_NMEDIT" >&6; }
7878 else
7879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 fi
7882
7883   if test "x$ac_ct_NMEDIT" = x; then
7884     NMEDIT=":"
7885   else
7886     case $cross_compiling:$ac_tool_warned in
7887 yes:)
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890 ac_tool_warned=yes ;;
7891 esac
7892     NMEDIT=$ac_ct_NMEDIT
7893   fi
7894 else
7895   NMEDIT="$ac_cv_prog_NMEDIT"
7896 fi
7897
7898     if test -n "$ac_tool_prefix"; then
7899   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if ${ac_cv_prog_LIPO+:} false; then :
7904   $as_echo_n "(cached) " >&6
7905 else
7906   if test -n "$LIPO"; then
7907   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912   IFS=$as_save_IFS
7913   test -z "$as_dir" && as_dir=.
7914     for ac_exec_ext in '' $ac_executable_extensions; do
7915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918     break 2
7919   fi
7920 done
7921   done
7922 IFS=$as_save_IFS
7923
7924 fi
7925 fi
7926 LIPO=$ac_cv_prog_LIPO
7927 if test -n "$LIPO"; then
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7929 $as_echo "$LIPO" >&6; }
7930 else
7931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 fi
7934
7935
7936 fi
7937 if test -z "$ac_cv_prog_LIPO"; then
7938   ac_ct_LIPO=$LIPO
7939   # Extract the first word of "lipo", so it can be a program name with args.
7940 set dummy lipo; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946   if test -n "$ac_ct_LIPO"; then
7947   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7951 do
7952   IFS=$as_save_IFS
7953   test -z "$as_dir" && as_dir=.
7954     for ac_exec_ext in '' $ac_executable_extensions; do
7955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956     ac_cv_prog_ac_ct_LIPO="lipo"
7957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958     break 2
7959   fi
7960 done
7961   done
7962 IFS=$as_save_IFS
7963
7964 fi
7965 fi
7966 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7967 if test -n "$ac_ct_LIPO"; then
7968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7969 $as_echo "$ac_ct_LIPO" >&6; }
7970 else
7971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7973 fi
7974
7975   if test "x$ac_ct_LIPO" = x; then
7976     LIPO=":"
7977   else
7978     case $cross_compiling:$ac_tool_warned in
7979 yes:)
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982 ac_tool_warned=yes ;;
7983 esac
7984     LIPO=$ac_ct_LIPO
7985   fi
7986 else
7987   LIPO="$ac_cv_prog_LIPO"
7988 fi
7989
7990     if test -n "$ac_tool_prefix"; then
7991   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7992 set dummy ${ac_tool_prefix}otool; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if ${ac_cv_prog_OTOOL+:} false; then :
7996   $as_echo_n "(cached) " >&6
7997 else
7998   if test -n "$OTOOL"; then
7999   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004   IFS=$as_save_IFS
8005   test -z "$as_dir" && as_dir=.
8006     for ac_exec_ext in '' $ac_executable_extensions; do
8007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8008     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010     break 2
8011   fi
8012 done
8013   done
8014 IFS=$as_save_IFS
8015
8016 fi
8017 fi
8018 OTOOL=$ac_cv_prog_OTOOL
8019 if test -n "$OTOOL"; then
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8021 $as_echo "$OTOOL" >&6; }
8022 else
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8025 fi
8026
8027
8028 fi
8029 if test -z "$ac_cv_prog_OTOOL"; then
8030   ac_ct_OTOOL=$OTOOL
8031   # Extract the first word of "otool", so it can be a program name with args.
8032 set dummy otool; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8036   $as_echo_n "(cached) " >&6
8037 else
8038   if test -n "$ac_ct_OTOOL"; then
8039   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044   IFS=$as_save_IFS
8045   test -z "$as_dir" && as_dir=.
8046     for ac_exec_ext in '' $ac_executable_extensions; do
8047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048     ac_cv_prog_ac_ct_OTOOL="otool"
8049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050     break 2
8051   fi
8052 done
8053   done
8054 IFS=$as_save_IFS
8055
8056 fi
8057 fi
8058 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8059 if test -n "$ac_ct_OTOOL"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8061 $as_echo "$ac_ct_OTOOL" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 fi
8066
8067   if test "x$ac_ct_OTOOL" = x; then
8068     OTOOL=":"
8069   else
8070     case $cross_compiling:$ac_tool_warned in
8071 yes:)
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074 ac_tool_warned=yes ;;
8075 esac
8076     OTOOL=$ac_ct_OTOOL
8077   fi
8078 else
8079   OTOOL="$ac_cv_prog_OTOOL"
8080 fi
8081
8082     if test -n "$ac_tool_prefix"; then
8083   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8084 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if ${ac_cv_prog_OTOOL64+:} false; then :
8088   $as_echo_n "(cached) " >&6
8089 else
8090   if test -n "$OTOOL64"; then
8091   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8092 else
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH
8095 do
8096   IFS=$as_save_IFS
8097   test -z "$as_dir" && as_dir=.
8098     for ac_exec_ext in '' $ac_executable_extensions; do
8099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102     break 2
8103   fi
8104 done
8105   done
8106 IFS=$as_save_IFS
8107
8108 fi
8109 fi
8110 OTOOL64=$ac_cv_prog_OTOOL64
8111 if test -n "$OTOOL64"; then
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8113 $as_echo "$OTOOL64" >&6; }
8114 else
8115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 fi
8118
8119
8120 fi
8121 if test -z "$ac_cv_prog_OTOOL64"; then
8122   ac_ct_OTOOL64=$OTOOL64
8123   # Extract the first word of "otool64", so it can be a program name with args.
8124 set dummy otool64; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8128   $as_echo_n "(cached) " >&6
8129 else
8130   if test -n "$ac_ct_OTOOL64"; then
8131   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136   IFS=$as_save_IFS
8137   test -z "$as_dir" && as_dir=.
8138     for ac_exec_ext in '' $ac_executable_extensions; do
8139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140     ac_cv_prog_ac_ct_OTOOL64="otool64"
8141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142     break 2
8143   fi
8144 done
8145   done
8146 IFS=$as_save_IFS
8147
8148 fi
8149 fi
8150 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8151 if test -n "$ac_ct_OTOOL64"; then
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8153 $as_echo "$ac_ct_OTOOL64" >&6; }
8154 else
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8157 fi
8158
8159   if test "x$ac_ct_OTOOL64" = x; then
8160     OTOOL64=":"
8161   else
8162     case $cross_compiling:$ac_tool_warned in
8163 yes:)
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8166 ac_tool_warned=yes ;;
8167 esac
8168     OTOOL64=$ac_ct_OTOOL64
8169   fi
8170 else
8171   OTOOL64="$ac_cv_prog_OTOOL64"
8172 fi
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8201 $as_echo_n "checking for -single_module linker flag... " >&6; }
8202 if ${lt_cv_apple_cc_single_mod+:} false; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   lt_cv_apple_cc_single_mod=no
8206       if test -z "$LT_MULTI_MODULE"; then
8207         # By default we will add the -single_module flag. You can override
8208         # by either setting the environment variable LT_MULTI_MODULE
8209         # non-empty at configure time, or by adding -multi_module to the
8210         # link flags.
8211         rm -rf libconftest.dylib*
8212         echo "int foo(void){return 1;}" > conftest.c
8213         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8214 -dynamiclib -Wl,-single_module conftest.c" >&5
8215         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8216           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8217         _lt_result=$?
8218         # If there is a non-empty error log, and "single_module"
8219         # appears in it, assume the flag caused a linker warning
8220         if test -s conftest.err && $GREP single_module conftest.err; then
8221           cat conftest.err >&5
8222         # Otherwise, if the output was created with a 0 exit code from
8223         # the compiler, it worked.
8224         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8225           lt_cv_apple_cc_single_mod=yes
8226         else
8227           cat conftest.err >&5
8228         fi
8229         rm -rf libconftest.dylib*
8230         rm -f conftest.*
8231       fi
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8234 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8235
8236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8237 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8238 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8239   $as_echo_n "(cached) " >&6
8240 else
8241   lt_cv_ld_exported_symbols_list=no
8242       save_LDFLAGS=$LDFLAGS
8243       echo "_main" > conftest.sym
8244       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8245       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h.  */
8247
8248 int
8249 main ()
8250 {
8251
8252   ;
8253   return 0;
8254 }
8255 _ACEOF
8256 if ac_fn_c_try_link "$LINENO"; then :
8257   lt_cv_ld_exported_symbols_list=yes
8258 else
8259   lt_cv_ld_exported_symbols_list=no
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext \
8262     conftest$ac_exeext conftest.$ac_ext
8263         LDFLAGS=$save_LDFLAGS
8264
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8267 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8268
8269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8270 $as_echo_n "checking for -force_load linker flag... " >&6; }
8271 if ${lt_cv_ld_force_load+:} false; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   lt_cv_ld_force_load=no
8275       cat > conftest.c << _LT_EOF
8276 int forced_loaded() { return 2;}
8277 _LT_EOF
8278       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8279       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8280       echo "$AR cru libconftest.a conftest.o" >&5
8281       $AR cru libconftest.a conftest.o 2>&5
8282       echo "$RANLIB libconftest.a" >&5
8283       $RANLIB libconftest.a 2>&5
8284       cat > conftest.c << _LT_EOF
8285 int main() { return 0;}
8286 _LT_EOF
8287       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8288       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8289       _lt_result=$?
8290       if test -s conftest.err && $GREP force_load conftest.err; then
8291         cat conftest.err >&5
8292       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8293         lt_cv_ld_force_load=yes
8294       else
8295         cat conftest.err >&5
8296       fi
8297         rm -f conftest.err libconftest.a conftest conftest.c
8298         rm -rf conftest.dSYM
8299
8300 fi
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8302 $as_echo "$lt_cv_ld_force_load" >&6; }
8303     case $host_os in
8304     rhapsody* | darwin1.[012])
8305       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8306     darwin1.*)
8307       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8308     darwin*) # darwin 5.x on
8309       # if running on 10.5 or later, the deployment target defaults
8310       # to the OS version, if on x86, and 10.4, the deployment
8311       # target defaults to 10.4. Don't you love it?
8312       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8313         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8314           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8315         10.[012][,.]*)
8316           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8317         10.*)
8318           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8319       esac
8320     ;;
8321   esac
8322     if test yes = "$lt_cv_apple_cc_single_mod"; then
8323       _lt_dar_single_mod='$single_module'
8324     fi
8325     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8326       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8327     else
8328       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8329     fi
8330     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8331       _lt_dsymutil='~$DSYMUTIL $lib || :'
8332     else
8333       _lt_dsymutil=
8334     fi
8335     ;;
8336   esac
8337
8338 # func_munge_path_list VARIABLE PATH
8339 # -----------------------------------
8340 # VARIABLE is name of variable containing _space_ separated list of
8341 # directories to be munged by the contents of PATH, which is string
8342 # having a format:
8343 # "DIR[:DIR]:"
8344 #       string "DIR[ DIR]" will be prepended to VARIABLE
8345 # ":DIR[:DIR]"
8346 #       string "DIR[ DIR]" will be appended to VARIABLE
8347 # "DIRP[:DIRP]::[DIRA:]DIRA"
8348 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8349 #       "DIRA[ DIRA]" will be appended to VARIABLE
8350 # "DIR[:DIR]"
8351 #       VARIABLE will be replaced by "DIR[ DIR]"
8352 func_munge_path_list ()
8353 {
8354     case x$2 in
8355     x)
8356         ;;
8357     *:)
8358         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8359         ;;
8360     x:*)
8361         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8362         ;;
8363     *::*)
8364         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8365         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8366         ;;
8367     *)
8368         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8369         ;;
8370     esac
8371 }
8372
8373 ac_ext=c
8374 ac_cpp='$CPP $CPPFLAGS'
8375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8379 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8380 # On Suns, sometimes $CPP names a directory.
8381 if test -n "$CPP" && test -d "$CPP"; then
8382   CPP=
8383 fi
8384 if test -z "$CPP"; then
8385   if ${ac_cv_prog_CPP+:} false; then :
8386   $as_echo_n "(cached) " >&6
8387 else
8388       # Double quotes because CPP needs to be expanded
8389     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8390     do
8391       ac_preproc_ok=false
8392 for ac_c_preproc_warn_flag in '' yes
8393 do
8394   # Use a header file that comes with gcc, so configuring glibc
8395   # with a fresh cross-compiler works.
8396   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8397   # <limits.h> exists even on freestanding compilers.
8398   # On the NeXT, cc -E runs the code through the compiler's parser,
8399   # not just through cpp. "Syntax error" is here to catch this case.
8400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h.  */
8402 #ifdef __STDC__
8403 # include <limits.h>
8404 #else
8405 # include <assert.h>
8406 #endif
8407                      Syntax error
8408 _ACEOF
8409 if ac_fn_c_try_cpp "$LINENO"; then :
8410
8411 else
8412   # Broken: fails on valid input.
8413 continue
8414 fi
8415 rm -f conftest.err conftest.i conftest.$ac_ext
8416
8417   # OK, works on sane cases.  Now check whether nonexistent headers
8418   # can be detected and how.
8419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h.  */
8421 #include <ac_nonexistent.h>
8422 _ACEOF
8423 if ac_fn_c_try_cpp "$LINENO"; then :
8424   # Broken: success on invalid input.
8425 continue
8426 else
8427   # Passes both tests.
8428 ac_preproc_ok=:
8429 break
8430 fi
8431 rm -f conftest.err conftest.i conftest.$ac_ext
8432
8433 done
8434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8435 rm -f conftest.i conftest.err conftest.$ac_ext
8436 if $ac_preproc_ok; then :
8437   break
8438 fi
8439
8440     done
8441     ac_cv_prog_CPP=$CPP
8442
8443 fi
8444   CPP=$ac_cv_prog_CPP
8445 else
8446   ac_cv_prog_CPP=$CPP
8447 fi
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8449 $as_echo "$CPP" >&6; }
8450 ac_preproc_ok=false
8451 for ac_c_preproc_warn_flag in '' yes
8452 do
8453   # Use a header file that comes with gcc, so configuring glibc
8454   # with a fresh cross-compiler works.
8455   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456   # <limits.h> exists even on freestanding compilers.
8457   # On the NeXT, cc -E runs the code through the compiler's parser,
8458   # not just through cpp. "Syntax error" is here to catch this case.
8459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h.  */
8461 #ifdef __STDC__
8462 # include <limits.h>
8463 #else
8464 # include <assert.h>
8465 #endif
8466                      Syntax error
8467 _ACEOF
8468 if ac_fn_c_try_cpp "$LINENO"; then :
8469
8470 else
8471   # Broken: fails on valid input.
8472 continue
8473 fi
8474 rm -f conftest.err conftest.i conftest.$ac_ext
8475
8476   # OK, works on sane cases.  Now check whether nonexistent headers
8477   # can be detected and how.
8478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h.  */
8480 #include <ac_nonexistent.h>
8481 _ACEOF
8482 if ac_fn_c_try_cpp "$LINENO"; then :
8483   # Broken: success on invalid input.
8484 continue
8485 else
8486   # Passes both tests.
8487 ac_preproc_ok=:
8488 break
8489 fi
8490 rm -f conftest.err conftest.i conftest.$ac_ext
8491
8492 done
8493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8494 rm -f conftest.i conftest.err conftest.$ac_ext
8495 if $ac_preproc_ok; then :
8496
8497 else
8498   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8500 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8501 See \`config.log' for more details" "$LINENO" 5; }
8502 fi
8503
8504 ac_ext=c
8505 ac_cpp='$CPP $CPPFLAGS'
8506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8509
8510
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8512 $as_echo_n "checking for ANSI C header files... " >&6; }
8513 if ${ac_cv_header_stdc+:} false; then :
8514   $as_echo_n "(cached) " >&6
8515 else
8516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h.  */
8518 #include <stdlib.h>
8519 #include <stdarg.h>
8520 #include <string.h>
8521 #include <float.h>
8522
8523 int
8524 main ()
8525 {
8526
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 if ac_fn_c_try_compile "$LINENO"; then :
8532   ac_cv_header_stdc=yes
8533 else
8534   ac_cv_header_stdc=no
8535 fi
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537
8538 if test $ac_cv_header_stdc = yes; then
8539   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h.  */
8542 #include <string.h>
8543
8544 _ACEOF
8545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8546   $EGREP "memchr" >/dev/null 2>&1; then :
8547
8548 else
8549   ac_cv_header_stdc=no
8550 fi
8551 rm -f conftest*
8552
8553 fi
8554
8555 if test $ac_cv_header_stdc = yes; then
8556   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h.  */
8559 #include <stdlib.h>
8560
8561 _ACEOF
8562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8563   $EGREP "free" >/dev/null 2>&1; then :
8564
8565 else
8566   ac_cv_header_stdc=no
8567 fi
8568 rm -f conftest*
8569
8570 fi
8571
8572 if test $ac_cv_header_stdc = yes; then
8573   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8574   if test "$cross_compiling" = yes; then :
8575   :
8576 else
8577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h.  */
8579 #include <ctype.h>
8580 #include <stdlib.h>
8581 #if ((' ' & 0x0FF) == 0x020)
8582 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8583 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8584 #else
8585 # define ISLOWER(c) \
8586                    (('a' <= (c) && (c) <= 'i') \
8587                      || ('j' <= (c) && (c) <= 'r') \
8588                      || ('s' <= (c) && (c) <= 'z'))
8589 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8590 #endif
8591
8592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8593 int
8594 main ()
8595 {
8596   int i;
8597   for (i = 0; i < 256; i++)
8598     if (XOR (islower (i), ISLOWER (i))
8599         || toupper (i) != TOUPPER (i))
8600       return 2;
8601   return 0;
8602 }
8603 _ACEOF
8604 if ac_fn_c_try_run "$LINENO"; then :
8605
8606 else
8607   ac_cv_header_stdc=no
8608 fi
8609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8610   conftest.$ac_objext conftest.beam conftest.$ac_ext
8611 fi
8612
8613 fi
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8616 $as_echo "$ac_cv_header_stdc" >&6; }
8617 if test $ac_cv_header_stdc = yes; then
8618
8619 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8620
8621 fi
8622
8623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8624 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8625                   inttypes.h stdint.h unistd.h
8626 do :
8627   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8628 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8629 "
8630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8631   cat >>confdefs.h <<_ACEOF
8632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8633 _ACEOF
8634
8635 fi
8636
8637 done
8638
8639
8640 for ac_header in dlfcn.h
8641 do :
8642   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8643 "
8644 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8645   cat >>confdefs.h <<_ACEOF
8646 #define HAVE_DLFCN_H 1
8647 _ACEOF
8648
8649 fi
8650
8651 done
8652
8653
8654
8655
8656
8657 # Set options
8658
8659
8660
8661         enable_dlopen=no
8662
8663
8664   enable_win32_dll=no
8665
8666
8667             # Check whether --enable-shared was given.
8668 if test "${enable_shared+set}" = set; then :
8669   enableval=$enable_shared; p=${PACKAGE-default}
8670     case $enableval in
8671     yes) enable_shared=yes ;;
8672     no) enable_shared=no ;;
8673     *)
8674       enable_shared=no
8675       # Look at the argument we got.  We use all the common list separators.
8676       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8677       for pkg in $enableval; do
8678         IFS=$lt_save_ifs
8679         if test "X$pkg" = "X$p"; then
8680           enable_shared=yes
8681         fi
8682       done
8683       IFS=$lt_save_ifs
8684       ;;
8685     esac
8686 else
8687   enable_shared=yes
8688 fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698   # Check whether --enable-static was given.
8699 if test "${enable_static+set}" = set; then :
8700   enableval=$enable_static; p=${PACKAGE-default}
8701     case $enableval in
8702     yes) enable_static=yes ;;
8703     no) enable_static=no ;;
8704     *)
8705      enable_static=no
8706       # Look at the argument we got.  We use all the common list separators.
8707       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8708       for pkg in $enableval; do
8709         IFS=$lt_save_ifs
8710         if test "X$pkg" = "X$p"; then
8711           enable_static=yes
8712         fi
8713       done
8714       IFS=$lt_save_ifs
8715       ;;
8716     esac
8717 else
8718   enable_static=yes
8719 fi
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730 # Check whether --with-pic was given.
8731 if test "${with_pic+set}" = set; then :
8732   withval=$with_pic; lt_p=${PACKAGE-default}
8733     case $withval in
8734     yes|no) pic_mode=$withval ;;
8735     *)
8736       pic_mode=default
8737       # Look at the argument we got.  We use all the common list separators.
8738       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8739       for lt_pkg in $withval; do
8740         IFS=$lt_save_ifs
8741         if test "X$lt_pkg" = "X$lt_p"; then
8742           pic_mode=yes
8743         fi
8744       done
8745       IFS=$lt_save_ifs
8746       ;;
8747     esac
8748 else
8749   pic_mode=default
8750 fi
8751
8752
8753
8754
8755
8756
8757
8758
8759   # Check whether --enable-fast-install was given.
8760 if test "${enable_fast_install+set}" = set; then :
8761   enableval=$enable_fast_install; p=${PACKAGE-default}
8762     case $enableval in
8763     yes) enable_fast_install=yes ;;
8764     no) enable_fast_install=no ;;
8765     *)
8766       enable_fast_install=no
8767       # Look at the argument we got.  We use all the common list separators.
8768       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8769       for pkg in $enableval; do
8770         IFS=$lt_save_ifs
8771         if test "X$pkg" = "X$p"; then
8772           enable_fast_install=yes
8773         fi
8774       done
8775       IFS=$lt_save_ifs
8776       ;;
8777     esac
8778 else
8779   enable_fast_install=yes
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788
8789   shared_archive_member_spec=
8790 case $host,$enable_shared in
8791 power*-*-aix[5-9]*,yes)
8792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8793 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8794
8795 # Check whether --with-aix-soname was given.
8796 if test "${with_aix_soname+set}" = set; then :
8797   withval=$with_aix_soname; case $withval in
8798     aix|svr4|both)
8799       ;;
8800     *)
8801       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8802       ;;
8803     esac
8804     lt_cv_with_aix_soname=$with_aix_soname
8805 else
8806   if ${lt_cv_with_aix_soname+:} false; then :
8807   $as_echo_n "(cached) " >&6
8808 else
8809   lt_cv_with_aix_soname=aix
8810 fi
8811
8812     with_aix_soname=$lt_cv_with_aix_soname
8813 fi
8814
8815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8816 $as_echo "$with_aix_soname" >&6; }
8817   if test aix != "$with_aix_soname"; then
8818     # For the AIX way of multilib, we name the shared archive member
8819     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8820     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8821     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8822     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8823     if test 64 = "${OBJECT_MODE-32}"; then
8824       shared_archive_member_spec=shr_64
8825     else
8826       shared_archive_member_spec=shr
8827     fi
8828   fi
8829   ;;
8830 *)
8831   with_aix_soname=aix
8832   ;;
8833 esac
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844 # This can be used to rebuild libtool when needed
8845 LIBTOOL_DEPS=$ltmain
8846
8847 # Always use our own libtool.
8848 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879 test -z "$LN_S" && LN_S="ln -s"
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894 if test -n "${ZSH_VERSION+set}"; then
8895    setopt NO_GLOB_SUBST
8896 fi
8897
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8899 $as_echo_n "checking for objdir... " >&6; }
8900 if ${lt_cv_objdir+:} false; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   rm -f .libs 2>/dev/null
8904 mkdir .libs 2>/dev/null
8905 if test -d .libs; then
8906   lt_cv_objdir=.libs
8907 else
8908   # MS-DOS does not allow filenames that begin with a dot.
8909   lt_cv_objdir=_libs
8910 fi
8911 rmdir .libs 2>/dev/null
8912 fi
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8914 $as_echo "$lt_cv_objdir" >&6; }
8915 objdir=$lt_cv_objdir
8916
8917
8918
8919
8920
8921 cat >>confdefs.h <<_ACEOF
8922 #define LT_OBJDIR "$lt_cv_objdir/"
8923 _ACEOF
8924
8925
8926
8927
8928 case $host_os in
8929 aix3*)
8930   # AIX sometimes has problems with the GCC collect2 program.  For some
8931   # reason, if we set the COLLECT_NAMES environment variable, the problems
8932   # vanish in a puff of smoke.
8933   if test set != "${COLLECT_NAMES+set}"; then
8934     COLLECT_NAMES=
8935     export COLLECT_NAMES
8936   fi
8937   ;;
8938 esac
8939
8940 # Global variables:
8941 ofile=libtool
8942 can_build_shared=yes
8943
8944 # All known linkers require a '.a' archive for static linking (except MSVC,
8945 # which needs '.lib').
8946 libext=a
8947
8948 with_gnu_ld=$lt_cv_prog_gnu_ld
8949
8950 old_CC=$CC
8951 old_CFLAGS=$CFLAGS
8952
8953 # Set sane defaults for various variables
8954 test -z "$CC" && CC=cc
8955 test -z "$LTCC" && LTCC=$CC
8956 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8957 test -z "$LD" && LD=ld
8958 test -z "$ac_objext" && ac_objext=o
8959
8960 func_cc_basename $compiler
8961 cc_basename=$func_cc_basename_result
8962
8963
8964 # Only perform the check for file, if the check method requires it
8965 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8966 case $deplibs_check_method in
8967 file_magic*)
8968   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8970 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8971 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8972   $as_echo_n "(cached) " >&6
8973 else
8974   case $MAGIC_CMD in
8975 [\\/*] |  ?:[\\/]*)
8976   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8977   ;;
8978 *)
8979   lt_save_MAGIC_CMD=$MAGIC_CMD
8980   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8981   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8982   for ac_dir in $ac_dummy; do
8983     IFS=$lt_save_ifs
8984     test -z "$ac_dir" && ac_dir=.
8985     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8986       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8987       if test -n "$file_magic_test_file"; then
8988         case $deplibs_check_method in
8989         "file_magic "*)
8990           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8991           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8992           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8993             $EGREP "$file_magic_regex" > /dev/null; then
8994             :
8995           else
8996             cat <<_LT_EOF 1>&2
8997
8998 *** Warning: the command libtool uses to detect shared libraries,
8999 *** $file_magic_cmd, produces output that libtool cannot recognize.
9000 *** The result is that libtool may fail to recognize shared libraries
9001 *** as such.  This will affect the creation of libtool libraries that
9002 *** depend on shared libraries, but programs linked with such libtool
9003 *** libraries will work regardless of this problem.  Nevertheless, you
9004 *** may want to report the problem to your system manager and/or to
9005 *** bug-libtool@gnu.org
9006
9007 _LT_EOF
9008           fi ;;
9009         esac
9010       fi
9011       break
9012     fi
9013   done
9014   IFS=$lt_save_ifs
9015   MAGIC_CMD=$lt_save_MAGIC_CMD
9016   ;;
9017 esac
9018 fi
9019
9020 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9021 if test -n "$MAGIC_CMD"; then
9022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9023 $as_echo "$MAGIC_CMD" >&6; }
9024 else
9025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9027 fi
9028
9029
9030
9031
9032
9033 if test -z "$lt_cv_path_MAGIC_CMD"; then
9034   if test -n "$ac_tool_prefix"; then
9035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9036 $as_echo_n "checking for file... " >&6; }
9037 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9038   $as_echo_n "(cached) " >&6
9039 else
9040   case $MAGIC_CMD in
9041 [\\/*] |  ?:[\\/]*)
9042   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9043   ;;
9044 *)
9045   lt_save_MAGIC_CMD=$MAGIC_CMD
9046   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9047   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9048   for ac_dir in $ac_dummy; do
9049     IFS=$lt_save_ifs
9050     test -z "$ac_dir" && ac_dir=.
9051     if test -f "$ac_dir/file"; then
9052       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9053       if test -n "$file_magic_test_file"; then
9054         case $deplibs_check_method in
9055         "file_magic "*)
9056           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9057           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9058           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9059             $EGREP "$file_magic_regex" > /dev/null; then
9060             :
9061           else
9062             cat <<_LT_EOF 1>&2
9063
9064 *** Warning: the command libtool uses to detect shared libraries,
9065 *** $file_magic_cmd, produces output that libtool cannot recognize.
9066 *** The result is that libtool may fail to recognize shared libraries
9067 *** as such.  This will affect the creation of libtool libraries that
9068 *** depend on shared libraries, but programs linked with such libtool
9069 *** libraries will work regardless of this problem.  Nevertheless, you
9070 *** may want to report the problem to your system manager and/or to
9071 *** bug-libtool@gnu.org
9072
9073 _LT_EOF
9074           fi ;;
9075         esac
9076       fi
9077       break
9078     fi
9079   done
9080   IFS=$lt_save_ifs
9081   MAGIC_CMD=$lt_save_MAGIC_CMD
9082   ;;
9083 esac
9084 fi
9085
9086 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9087 if test -n "$MAGIC_CMD"; then
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9089 $as_echo "$MAGIC_CMD" >&6; }
9090 else
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9093 fi
9094
9095
9096   else
9097     MAGIC_CMD=:
9098   fi
9099 fi
9100
9101   fi
9102   ;;
9103 esac
9104
9105 # Use C for the default configuration in the libtool script
9106
9107 lt_save_CC=$CC
9108 ac_ext=c
9109 ac_cpp='$CPP $CPPFLAGS'
9110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9113
9114
9115 # Source file extension for C test sources.
9116 ac_ext=c
9117
9118 # Object file extension for compiled C test sources.
9119 objext=o
9120 objext=$objext
9121
9122 # Code to be used in simple compile tests
9123 lt_simple_compile_test_code="int some_variable = 0;"
9124
9125 # Code to be used in simple link tests
9126 lt_simple_link_test_code='int main(){return(0);}'
9127
9128
9129
9130
9131
9132
9133
9134 # If no C compiler was specified, use CC.
9135 LTCC=${LTCC-"$CC"}
9136
9137 # If no C compiler flags were specified, use CFLAGS.
9138 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9139
9140 # Allow CC to be a program name with arguments.
9141 compiler=$CC
9142
9143 # Save the default compiler, since it gets overwritten when the other
9144 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9145 compiler_DEFAULT=$CC
9146
9147 # save warnings/boilerplate of simple test code
9148 ac_outfile=conftest.$ac_objext
9149 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9150 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9151 _lt_compiler_boilerplate=`cat conftest.err`
9152 $RM conftest*
9153
9154 ac_outfile=conftest.$ac_objext
9155 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9156 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9157 _lt_linker_boilerplate=`cat conftest.err`
9158 $RM -r conftest*
9159
9160
9161 if test -n "$compiler"; then
9162
9163 lt_prog_compiler_no_builtin_flag=
9164
9165 if test yes = "$GCC"; then
9166   case $cc_basename in
9167   nvcc*)
9168     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9169   *)
9170     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9171   esac
9172
9173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9174 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9175 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9176   $as_echo_n "(cached) " >&6
9177 else
9178   lt_cv_prog_compiler_rtti_exceptions=no
9179    ac_outfile=conftest.$ac_objext
9180    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9181    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9182    # Insert the option either (1) after the last *FLAGS variable, or
9183    # (2) before a word containing "conftest.", or (3) at the end.
9184    # Note that $ac_compile itself does not contain backslashes and begins
9185    # with a dollar sign (not a hyphen), so the echo should work correctly.
9186    # The option is referenced via a variable to avoid confusing sed.
9187    lt_compile=`echo "$ac_compile" | $SED \
9188    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9189    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9190    -e 's:$: $lt_compiler_flag:'`
9191    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9192    (eval "$lt_compile" 2>conftest.err)
9193    ac_status=$?
9194    cat conftest.err >&5
9195    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196    if (exit $ac_status) && test -s "$ac_outfile"; then
9197      # The compiler can only warn and ignore the option if not recognized
9198      # So say no if there are warnings other than the usual output.
9199      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9200      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9202        lt_cv_prog_compiler_rtti_exceptions=yes
9203      fi
9204    fi
9205    $RM conftest*
9206
9207 fi
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9209 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9210
9211 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9212     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9213 else
9214     :
9215 fi
9216
9217 fi
9218
9219
9220
9221
9222
9223
9224   lt_prog_compiler_wl=
9225 lt_prog_compiler_pic=
9226 lt_prog_compiler_static=
9227
9228
9229   if test yes = "$GCC"; then
9230     lt_prog_compiler_wl='-Wl,'
9231     lt_prog_compiler_static='-static'
9232
9233     case $host_os in
9234       aix*)
9235       # All AIX code is PIC.
9236       if test ia64 = "$host_cpu"; then
9237         # AIX 5 now supports IA64 processor
9238         lt_prog_compiler_static='-Bstatic'
9239       fi
9240       lt_prog_compiler_pic='-fPIC'
9241       ;;
9242
9243     amigaos*)
9244       case $host_cpu in
9245       powerpc)
9246             # see comment about AmigaOS4 .so support
9247             lt_prog_compiler_pic='-fPIC'
9248         ;;
9249       m68k)
9250             # FIXME: we need at least 68020 code to build shared libraries, but
9251             # adding the '-m68020' flag to GCC prevents building anything better,
9252             # like '-m68040'.
9253             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9254         ;;
9255       esac
9256       ;;
9257
9258     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9259       # PIC is the default for these OSes.
9260       ;;
9261
9262     mingw* | cygwin* | pw32* | os2* | cegcc*)
9263       # This hack is so that the source file can tell whether it is being
9264       # built for inclusion in a dll (and should export symbols for example).
9265       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9266       # (--disable-auto-import) libraries
9267       lt_prog_compiler_pic='-DDLL_EXPORT'
9268       case $host_os in
9269       os2*)
9270         lt_prog_compiler_static='$wl-static'
9271         ;;
9272       esac
9273       ;;
9274
9275     darwin* | rhapsody*)
9276       # PIC is the default on this platform
9277       # Common symbols not allowed in MH_DYLIB files
9278       lt_prog_compiler_pic='-fno-common'
9279       ;;
9280
9281     haiku*)
9282       # PIC is the default for Haiku.
9283       # The "-static" flag exists, but is broken.
9284       lt_prog_compiler_static=
9285       ;;
9286
9287     hpux*)
9288       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9289       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9290       # sets the default TLS model and affects inlining.
9291       case $host_cpu in
9292       hppa*64*)
9293         # +Z the default
9294         ;;
9295       *)
9296         lt_prog_compiler_pic='-fPIC'
9297         ;;
9298       esac
9299       ;;
9300
9301     interix[3-9]*)
9302       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9303       # Instead, we relocate shared libraries at runtime.
9304       ;;
9305
9306     msdosdjgpp*)
9307       # Just because we use GCC doesn't mean we suddenly get shared libraries
9308       # on systems that don't support them.
9309       lt_prog_compiler_can_build_shared=no
9310       enable_shared=no
9311       ;;
9312
9313     *nto* | *qnx*)
9314       # QNX uses GNU C++, but need to define -shared option too, otherwise
9315       # it will coredump.
9316       lt_prog_compiler_pic='-fPIC -shared'
9317       ;;
9318
9319     sysv4*MP*)
9320       if test -d /usr/nec; then
9321         lt_prog_compiler_pic=-Kconform_pic
9322       fi
9323       ;;
9324
9325     *)
9326       lt_prog_compiler_pic='-fPIC'
9327       ;;
9328     esac
9329
9330     case $cc_basename in
9331     nvcc*) # Cuda Compiler Driver 2.2
9332       lt_prog_compiler_wl='-Xlinker '
9333       if test -n "$lt_prog_compiler_pic"; then
9334         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9335       fi
9336       ;;
9337     esac
9338   else
9339     # PORTME Check for flag to pass linker flags through the system compiler.
9340     case $host_os in
9341     aix*)
9342       lt_prog_compiler_wl='-Wl,'
9343       if test ia64 = "$host_cpu"; then
9344         # AIX 5 now supports IA64 processor
9345         lt_prog_compiler_static='-Bstatic'
9346       else
9347         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9348       fi
9349       ;;
9350
9351     darwin* | rhapsody*)
9352       # PIC is the default on this platform
9353       # Common symbols not allowed in MH_DYLIB files
9354       lt_prog_compiler_pic='-fno-common'
9355       case $cc_basename in
9356       nagfor*)
9357         # NAG Fortran compiler
9358         lt_prog_compiler_wl='-Wl,-Wl,,'
9359         lt_prog_compiler_pic='-PIC'
9360         lt_prog_compiler_static='-Bstatic'
9361         ;;
9362       esac
9363       ;;
9364
9365     mingw* | cygwin* | pw32* | os2* | cegcc*)
9366       # This hack is so that the source file can tell whether it is being
9367       # built for inclusion in a dll (and should export symbols for example).
9368       lt_prog_compiler_pic='-DDLL_EXPORT'
9369       case $host_os in
9370       os2*)
9371         lt_prog_compiler_static='$wl-static'
9372         ;;
9373       esac
9374       ;;
9375
9376     hpux9* | hpux10* | hpux11*)
9377       lt_prog_compiler_wl='-Wl,'
9378       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9379       # not for PA HP-UX.
9380       case $host_cpu in
9381       hppa*64*|ia64*)
9382         # +Z the default
9383         ;;
9384       *)
9385         lt_prog_compiler_pic='+Z'
9386         ;;
9387       esac
9388       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9389       lt_prog_compiler_static='$wl-a ${wl}archive'
9390       ;;
9391
9392     irix5* | irix6* | nonstopux*)
9393       lt_prog_compiler_wl='-Wl,'
9394       # PIC (with -KPIC) is the default.
9395       lt_prog_compiler_static='-non_shared'
9396       ;;
9397
9398     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9399       case $cc_basename in
9400       # old Intel for x86_64, which still supported -KPIC.
9401       ecc*)
9402         lt_prog_compiler_wl='-Wl,'
9403         lt_prog_compiler_pic='-KPIC'
9404         lt_prog_compiler_static='-static'
9405         ;;
9406       # icc used to be incompatible with GCC.
9407       # ICC 10 doesn't accept -KPIC any more.
9408       icc* | ifort*)
9409         lt_prog_compiler_wl='-Wl,'
9410         lt_prog_compiler_pic='-fPIC'
9411         lt_prog_compiler_static='-static'
9412         ;;
9413       # Lahey Fortran 8.1.
9414       lf95*)
9415         lt_prog_compiler_wl='-Wl,'
9416         lt_prog_compiler_pic='--shared'
9417         lt_prog_compiler_static='--static'
9418         ;;
9419       nagfor*)
9420         # NAG Fortran compiler
9421         lt_prog_compiler_wl='-Wl,-Wl,,'
9422         lt_prog_compiler_pic='-PIC'
9423         lt_prog_compiler_static='-Bstatic'
9424         ;;
9425       tcc*)
9426         # Fabrice Bellard et al's Tiny C Compiler
9427         lt_prog_compiler_wl='-Wl,'
9428         lt_prog_compiler_pic='-fPIC'
9429         lt_prog_compiler_static='-static'
9430         ;;
9431       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9432         # Portland Group compilers (*not* the Pentium gcc compiler,
9433         # which looks to be a dead project)
9434         lt_prog_compiler_wl='-Wl,'
9435         lt_prog_compiler_pic='-fpic'
9436         lt_prog_compiler_static='-Bstatic'
9437         ;;
9438       ccc*)
9439         lt_prog_compiler_wl='-Wl,'
9440         # All Alpha code is PIC.
9441         lt_prog_compiler_static='-non_shared'
9442         ;;
9443       xl* | bgxl* | bgf* | mpixl*)
9444         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9445         lt_prog_compiler_wl='-Wl,'
9446         lt_prog_compiler_pic='-qpic'
9447         lt_prog_compiler_static='-qstaticlink'
9448         ;;
9449       *)
9450         case `$CC -V 2>&1 | sed 5q` in
9451         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9452           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9453           lt_prog_compiler_pic='-KPIC'
9454           lt_prog_compiler_static='-Bstatic'
9455           lt_prog_compiler_wl=''
9456           ;;
9457         *Sun\ F* | *Sun*Fortran*)
9458           lt_prog_compiler_pic='-KPIC'
9459           lt_prog_compiler_static='-Bstatic'
9460           lt_prog_compiler_wl='-Qoption ld '
9461           ;;
9462         *Sun\ C*)
9463           # Sun C 5.9
9464           lt_prog_compiler_pic='-KPIC'
9465           lt_prog_compiler_static='-Bstatic'
9466           lt_prog_compiler_wl='-Wl,'
9467           ;;
9468         *Intel*\ [CF]*Compiler*)
9469           lt_prog_compiler_wl='-Wl,'
9470           lt_prog_compiler_pic='-fPIC'
9471           lt_prog_compiler_static='-static'
9472           ;;
9473         *Portland\ Group*)
9474           lt_prog_compiler_wl='-Wl,'
9475           lt_prog_compiler_pic='-fpic'
9476           lt_prog_compiler_static='-Bstatic'
9477           ;;
9478         esac
9479         ;;
9480       esac
9481       ;;
9482
9483     newsos6)
9484       lt_prog_compiler_pic='-KPIC'
9485       lt_prog_compiler_static='-Bstatic'
9486       ;;
9487
9488     *nto* | *qnx*)
9489       # QNX uses GNU C++, but need to define -shared option too, otherwise
9490       # it will coredump.
9491       lt_prog_compiler_pic='-fPIC -shared'
9492       ;;
9493
9494     osf3* | osf4* | osf5*)
9495       lt_prog_compiler_wl='-Wl,'
9496       # All OSF/1 code is PIC.
9497       lt_prog_compiler_static='-non_shared'
9498       ;;
9499
9500     rdos*)
9501       lt_prog_compiler_static='-non_shared'
9502       ;;
9503
9504     solaris*)
9505       lt_prog_compiler_pic='-KPIC'
9506       lt_prog_compiler_static='-Bstatic'
9507       case $cc_basename in
9508       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9509         lt_prog_compiler_wl='-Qoption ld ';;
9510       *)
9511         lt_prog_compiler_wl='-Wl,';;
9512       esac
9513       ;;
9514
9515     sunos4*)
9516       lt_prog_compiler_wl='-Qoption ld '
9517       lt_prog_compiler_pic='-PIC'
9518       lt_prog_compiler_static='-Bstatic'
9519       ;;
9520
9521     sysv4 | sysv4.2uw2* | sysv4.3*)
9522       lt_prog_compiler_wl='-Wl,'
9523       lt_prog_compiler_pic='-KPIC'
9524       lt_prog_compiler_static='-Bstatic'
9525       ;;
9526
9527     sysv4*MP*)
9528       if test -d /usr/nec; then
9529         lt_prog_compiler_pic='-Kconform_pic'
9530         lt_prog_compiler_static='-Bstatic'
9531       fi
9532       ;;
9533
9534     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9535       lt_prog_compiler_wl='-Wl,'
9536       lt_prog_compiler_pic='-KPIC'
9537       lt_prog_compiler_static='-Bstatic'
9538       ;;
9539
9540     unicos*)
9541       lt_prog_compiler_wl='-Wl,'
9542       lt_prog_compiler_can_build_shared=no
9543       ;;
9544
9545     uts4*)
9546       lt_prog_compiler_pic='-pic'
9547       lt_prog_compiler_static='-Bstatic'
9548       ;;
9549
9550     *)
9551       lt_prog_compiler_can_build_shared=no
9552       ;;
9553     esac
9554   fi
9555
9556 case $host_os in
9557   # For platforms that do not support PIC, -DPIC is meaningless:
9558   *djgpp*)
9559     lt_prog_compiler_pic=
9560     ;;
9561   *)
9562     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9563     ;;
9564 esac
9565
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9567 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9568 if ${lt_cv_prog_compiler_pic+:} false; then :
9569   $as_echo_n "(cached) " >&6
9570 else
9571   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9572 fi
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9574 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9575 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9576
9577 #
9578 # Check to make sure the PIC flag actually works.
9579 #
9580 if test -n "$lt_prog_compiler_pic"; then
9581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9582 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9583 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9584   $as_echo_n "(cached) " >&6
9585 else
9586   lt_cv_prog_compiler_pic_works=no
9587    ac_outfile=conftest.$ac_objext
9588    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9589    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9590    # Insert the option either (1) after the last *FLAGS variable, or
9591    # (2) before a word containing "conftest.", or (3) at the end.
9592    # Note that $ac_compile itself does not contain backslashes and begins
9593    # with a dollar sign (not a hyphen), so the echo should work correctly.
9594    # The option is referenced via a variable to avoid confusing sed.
9595    lt_compile=`echo "$ac_compile" | $SED \
9596    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9598    -e 's:$: $lt_compiler_flag:'`
9599    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9600    (eval "$lt_compile" 2>conftest.err)
9601    ac_status=$?
9602    cat conftest.err >&5
9603    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604    if (exit $ac_status) && test -s "$ac_outfile"; then
9605      # The compiler can only warn and ignore the option if not recognized
9606      # So say no if there are warnings other than the usual output.
9607      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9608      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9609      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9610        lt_cv_prog_compiler_pic_works=yes
9611      fi
9612    fi
9613    $RM conftest*
9614
9615 fi
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9617 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9618
9619 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9620     case $lt_prog_compiler_pic in
9621      "" | " "*) ;;
9622      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9623      esac
9624 else
9625     lt_prog_compiler_pic=
9626      lt_prog_compiler_can_build_shared=no
9627 fi
9628
9629 fi
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641 #
9642 # Check to make sure the static flag actually works.
9643 #
9644 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9646 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9647 if ${lt_cv_prog_compiler_static_works+:} false; then :
9648   $as_echo_n "(cached) " >&6
9649 else
9650   lt_cv_prog_compiler_static_works=no
9651    save_LDFLAGS=$LDFLAGS
9652    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9653    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9654    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9655      # The linker can only warn and ignore the option if not recognized
9656      # So say no if there are warnings
9657      if test -s conftest.err; then
9658        # Append any errors to the config.log.
9659        cat conftest.err 1>&5
9660        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9661        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9662        if diff conftest.exp conftest.er2 >/dev/null; then
9663          lt_cv_prog_compiler_static_works=yes
9664        fi
9665      else
9666        lt_cv_prog_compiler_static_works=yes
9667      fi
9668    fi
9669    $RM -r conftest*
9670    LDFLAGS=$save_LDFLAGS
9671
9672 fi
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9674 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9675
9676 if test yes = "$lt_cv_prog_compiler_static_works"; then
9677     :
9678 else
9679     lt_prog_compiler_static=
9680 fi
9681
9682
9683
9684
9685
9686
9687
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9689 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9690 if ${lt_cv_prog_compiler_c_o+:} false; then :
9691   $as_echo_n "(cached) " >&6
9692 else
9693   lt_cv_prog_compiler_c_o=no
9694    $RM -r conftest 2>/dev/null
9695    mkdir conftest
9696    cd conftest
9697    mkdir out
9698    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699
9700    lt_compiler_flag="-o out/conftest2.$ac_objext"
9701    # Insert the option either (1) after the last *FLAGS variable, or
9702    # (2) before a word containing "conftest.", or (3) at the end.
9703    # Note that $ac_compile itself does not contain backslashes and begins
9704    # with a dollar sign (not a hyphen), so the echo should work correctly.
9705    lt_compile=`echo "$ac_compile" | $SED \
9706    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9707    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9708    -e 's:$: $lt_compiler_flag:'`
9709    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9710    (eval "$lt_compile" 2>out/conftest.err)
9711    ac_status=$?
9712    cat out/conftest.err >&5
9713    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9715    then
9716      # The compiler can only warn and ignore the option if not recognized
9717      # So say no if there are warnings
9718      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9719      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9720      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9721        lt_cv_prog_compiler_c_o=yes
9722      fi
9723    fi
9724    chmod u+w . 2>&5
9725    $RM conftest*
9726    # SGI C++ compiler will create directory out/ii_files/ for
9727    # template instantiation
9728    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9729    $RM out/* && rmdir out
9730    cd ..
9731    $RM -r conftest
9732    $RM conftest*
9733
9734 fi
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9736 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9737
9738
9739
9740
9741
9742
9743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9744 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9745 if ${lt_cv_prog_compiler_c_o+:} false; then :
9746   $as_echo_n "(cached) " >&6
9747 else
9748   lt_cv_prog_compiler_c_o=no
9749    $RM -r conftest 2>/dev/null
9750    mkdir conftest
9751    cd conftest
9752    mkdir out
9753    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9754
9755    lt_compiler_flag="-o out/conftest2.$ac_objext"
9756    # Insert the option either (1) after the last *FLAGS variable, or
9757    # (2) before a word containing "conftest.", or (3) at the end.
9758    # Note that $ac_compile itself does not contain backslashes and begins
9759    # with a dollar sign (not a hyphen), so the echo should work correctly.
9760    lt_compile=`echo "$ac_compile" | $SED \
9761    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763    -e 's:$: $lt_compiler_flag:'`
9764    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9765    (eval "$lt_compile" 2>out/conftest.err)
9766    ac_status=$?
9767    cat out/conftest.err >&5
9768    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9770    then
9771      # The compiler can only warn and ignore the option if not recognized
9772      # So say no if there are warnings
9773      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9774      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9775      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9776        lt_cv_prog_compiler_c_o=yes
9777      fi
9778    fi
9779    chmod u+w . 2>&5
9780    $RM conftest*
9781    # SGI C++ compiler will create directory out/ii_files/ for
9782    # template instantiation
9783    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9784    $RM out/* && rmdir out
9785    cd ..
9786    $RM -r conftest
9787    $RM conftest*
9788
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9791 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9792
9793
9794
9795
9796 hard_links=nottested
9797 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9798   # do not overwrite the value of need_locks provided by the user
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9800 $as_echo_n "checking if we can lock with hard links... " >&6; }
9801   hard_links=yes
9802   $RM conftest*
9803   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9804   touch conftest.a
9805   ln conftest.a conftest.b 2>&5 || hard_links=no
9806   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9808 $as_echo "$hard_links" >&6; }
9809   if test no = "$hard_links"; then
9810     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9811 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9812     need_locks=warn
9813   fi
9814 else
9815   need_locks=no
9816 fi
9817
9818
9819
9820
9821
9822
9823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9824 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9825
9826   runpath_var=
9827   allow_undefined_flag=
9828   always_export_symbols=no
9829   archive_cmds=
9830   archive_expsym_cmds=
9831   compiler_needs_object=no
9832   enable_shared_with_static_runtimes=no
9833   export_dynamic_flag_spec=
9834   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9835   hardcode_automatic=no
9836   hardcode_direct=no
9837   hardcode_direct_absolute=no
9838   hardcode_libdir_flag_spec=
9839   hardcode_libdir_separator=
9840   hardcode_minus_L=no
9841   hardcode_shlibpath_var=unsupported
9842   inherit_rpath=no
9843   link_all_deplibs=unknown
9844   module_cmds=
9845   module_expsym_cmds=
9846   old_archive_from_new_cmds=
9847   old_archive_from_expsyms_cmds=
9848   thread_safe_flag_spec=
9849   whole_archive_flag_spec=
9850   # include_expsyms should be a list of space-separated symbols to be *always*
9851   # included in the symbol list
9852   include_expsyms=
9853   # exclude_expsyms can be an extended regexp of symbols to exclude
9854   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9855   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9856   # as well as any symbol that contains 'd'.
9857   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9858   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9859   # platforms (ab)use it in PIC code, but their linkers get confused if
9860   # the symbol is explicitly referenced.  Since portable code cannot
9861   # rely on this symbol name, it's probably fine to never include it in
9862   # preloaded symbol tables.
9863   # Exclude shared library initialization/finalization symbols.
9864   extract_expsyms_cmds=
9865
9866   case $host_os in
9867   cygwin* | mingw* | pw32* | cegcc*)
9868     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9869     # When not using gcc, we currently assume that we are using
9870     # Microsoft Visual C++.
9871     if test yes != "$GCC"; then
9872       with_gnu_ld=no
9873     fi
9874     ;;
9875   interix*)
9876     # we just hope/assume this is gcc and not c89 (= MSVC++)
9877     with_gnu_ld=yes
9878     ;;
9879   openbsd* | bitrig*)
9880     with_gnu_ld=no
9881     ;;
9882   linux* | k*bsd*-gnu | gnu*)
9883     link_all_deplibs=no
9884     ;;
9885   esac
9886
9887   ld_shlibs=yes
9888
9889   # On some targets, GNU ld is compatible enough with the native linker
9890   # that we're better off using the native interface for both.
9891   lt_use_gnu_ld_interface=no
9892   if test yes = "$with_gnu_ld"; then
9893     case $host_os in
9894       aix*)
9895         # The AIX port of GNU ld has always aspired to compatibility
9896         # with the native linker.  However, as the warning in the GNU ld
9897         # block says, versions before 2.19.5* couldn't really create working
9898         # shared libraries, regardless of the interface used.
9899         case `$LD -v 2>&1` in
9900           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9901           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9902           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9903           *)
9904             lt_use_gnu_ld_interface=yes
9905             ;;
9906         esac
9907         ;;
9908       *)
9909         lt_use_gnu_ld_interface=yes
9910         ;;
9911     esac
9912   fi
9913
9914   if test yes = "$lt_use_gnu_ld_interface"; then
9915     # If archive_cmds runs LD, not CC, wlarc should be empty
9916     wlarc='$wl'
9917
9918     # Set some defaults for GNU ld with shared library support. These
9919     # are reset later if shared libraries are not supported. Putting them
9920     # here allows them to be overridden if necessary.
9921     runpath_var=LD_RUN_PATH
9922     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9923     export_dynamic_flag_spec='$wl--export-dynamic'
9924     # ancient GNU ld didn't support --whole-archive et. al.
9925     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9926       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9927     else
9928       whole_archive_flag_spec=
9929     fi
9930     supports_anon_versioning=no
9931     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9932       *GNU\ gold*) supports_anon_versioning=yes ;;
9933       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9934       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9935       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9936       *\ 2.11.*) ;; # other 2.11 versions
9937       *) supports_anon_versioning=yes ;;
9938     esac
9939
9940     # See if GNU ld supports shared libraries.
9941     case $host_os in
9942     aix[3-9]*)
9943       # On AIX/PPC, the GNU linker is very broken
9944       if test ia64 != "$host_cpu"; then
9945         ld_shlibs=no
9946         cat <<_LT_EOF 1>&2
9947
9948 *** Warning: the GNU linker, at least up to release 2.19, is reported
9949 *** to be unable to reliably create shared libraries on AIX.
9950 *** Therefore, libtool is disabling shared libraries support.  If you
9951 *** really care for shared libraries, you may want to install binutils
9952 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9953 *** You will then need to restart the configuration process.
9954
9955 _LT_EOF
9956       fi
9957       ;;
9958
9959     amigaos*)
9960       case $host_cpu in
9961       powerpc)
9962             # see comment about AmigaOS4 .so support
9963             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9964             archive_expsym_cmds=''
9965         ;;
9966       m68k)
9967             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9968             hardcode_libdir_flag_spec='-L$libdir'
9969             hardcode_minus_L=yes
9970         ;;
9971       esac
9972       ;;
9973
9974     beos*)
9975       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9976         allow_undefined_flag=unsupported
9977         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9978         # support --undefined.  This deserves some investigation.  FIXME
9979         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9980       else
9981         ld_shlibs=no
9982       fi
9983       ;;
9984
9985     cygwin* | mingw* | pw32* | cegcc*)
9986       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9987       # as there is no search path for DLLs.
9988       hardcode_libdir_flag_spec='-L$libdir'
9989       export_dynamic_flag_spec='$wl--export-all-symbols'
9990       allow_undefined_flag=unsupported
9991       always_export_symbols=no
9992       enable_shared_with_static_runtimes=yes
9993       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9994       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9995
9996       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9997         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9998         # If the export-symbols file already is a .def file, use it as
9999         # is; otherwise, prepend EXPORTS...
10000         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10001           cp $export_symbols $output_objdir/$soname.def;
10002         else
10003           echo EXPORTS > $output_objdir/$soname.def;
10004           cat $export_symbols >> $output_objdir/$soname.def;
10005         fi~
10006         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10007       else
10008         ld_shlibs=no
10009       fi
10010       ;;
10011
10012     haiku*)
10013       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10014       link_all_deplibs=yes
10015       ;;
10016
10017     os2*)
10018       hardcode_libdir_flag_spec='-L$libdir'
10019       hardcode_minus_L=yes
10020       allow_undefined_flag=unsupported
10021       shrext_cmds=.dll
10022       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10023         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10024         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10025         $ECHO EXPORTS >> $output_objdir/$libname.def~
10026         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10027         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10028         emximp -o $lib $output_objdir/$libname.def'
10029       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10030         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10031         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10032         $ECHO EXPORTS >> $output_objdir/$libname.def~
10033         prefix_cmds="$SED"~
10034         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10035           prefix_cmds="$prefix_cmds -e 1d";
10036         fi~
10037         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10038         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10039         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10040         emximp -o $lib $output_objdir/$libname.def'
10041       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10042       enable_shared_with_static_runtimes=yes
10043       ;;
10044
10045     interix[3-9]*)
10046       hardcode_direct=no
10047       hardcode_shlibpath_var=no
10048       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10049       export_dynamic_flag_spec='$wl-E'
10050       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10051       # Instead, shared libraries are loaded at an image base (0x10000000 by
10052       # default) and relocated if they conflict, which is a slow very memory
10053       # consuming and fragmenting process.  To avoid this, we pick a random,
10054       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10055       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10056       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10057       archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10058       ;;
10059
10060     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10061       tmp_diet=no
10062       if test linux-dietlibc = "$host_os"; then
10063         case $cc_basename in
10064           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10065         esac
10066       fi
10067       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10068          && test no = "$tmp_diet"
10069       then
10070         tmp_addflag=' $pic_flag'
10071         tmp_sharedflag='-shared'
10072         case $cc_basename,$host_cpu in
10073         pgcc*)                          # Portland Group C compiler
10074           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10075           tmp_addflag=' $pic_flag'
10076           ;;
10077         pgf77* | pgf90* | pgf95* | pgfortran*)
10078                                         # Portland Group f77 and f90 compilers
10079           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10080           tmp_addflag=' $pic_flag -Mnomain' ;;
10081         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10082           tmp_addflag=' -i_dynamic' ;;
10083         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10084           tmp_addflag=' -i_dynamic -nofor_main' ;;
10085         ifc* | ifort*)                  # Intel Fortran compiler
10086           tmp_addflag=' -nofor_main' ;;
10087         lf95*)                          # Lahey Fortran 8.1
10088           whole_archive_flag_spec=
10089           tmp_sharedflag='--shared' ;;
10090         nagfor*)                        # NAGFOR 5.3
10091           tmp_sharedflag='-Wl,-shared' ;;
10092         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10093           tmp_sharedflag='-qmkshrobj'
10094           tmp_addflag= ;;
10095         nvcc*)  # Cuda Compiler Driver 2.2
10096           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10097           compiler_needs_object=yes
10098           ;;
10099         esac
10100         case `$CC -V 2>&1 | sed 5q` in
10101         *Sun\ C*)                       # Sun C 5.9
10102           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10103           compiler_needs_object=yes
10104           tmp_sharedflag='-G' ;;
10105         *Sun\ F*)                       # Sun Fortran 8.3
10106           tmp_sharedflag='-G' ;;
10107         esac
10108         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10109
10110         if test yes = "$supports_anon_versioning"; then
10111           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10112             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10113             echo "local: *; };" >> $output_objdir/$libname.ver~
10114             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10115         fi
10116
10117         case $cc_basename in
10118         tcc*)
10119           export_dynamic_flag_spec='-rdynamic'
10120           ;;
10121         xlf* | bgf* | bgxlf* | mpixlf*)
10122           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10123           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10124           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10125           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10126           if test yes = "$supports_anon_versioning"; then
10127             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10128               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10129               echo "local: *; };" >> $output_objdir/$libname.ver~
10130               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10131           fi
10132           ;;
10133         esac
10134       else
10135         ld_shlibs=no
10136       fi
10137       ;;
10138
10139     netbsd* | netbsdelf*-gnu)
10140       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10141         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10142         wlarc=
10143       else
10144         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10145         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10146       fi
10147       ;;
10148
10149     solaris*)
10150       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10151         ld_shlibs=no
10152         cat <<_LT_EOF 1>&2
10153
10154 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10155 *** create shared libraries on Solaris systems.  Therefore, libtool
10156 *** is disabling shared libraries support.  We urge you to upgrade GNU
10157 *** binutils to release 2.9.1 or newer.  Another option is to modify
10158 *** your PATH or compiler configuration so that the native linker is
10159 *** used, and then restart.
10160
10161 _LT_EOF
10162       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10163         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10164         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10165       else
10166         ld_shlibs=no
10167       fi
10168       ;;
10169
10170     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10171       case `$LD -v 2>&1` in
10172         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10173         ld_shlibs=no
10174         cat <<_LT_EOF 1>&2
10175
10176 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10177 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10178 *** is disabling shared libraries support.  We urge you to upgrade GNU
10179 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10180 *** your PATH or compiler configuration so that the native linker is
10181 *** used, and then restart.
10182
10183 _LT_EOF
10184         ;;
10185         *)
10186           # For security reasons, it is highly recommended that you always
10187           # use absolute paths for naming shared libraries, and exclude the
10188           # DT_RUNPATH tag from executables and libraries.  But doing so
10189           # requires that you compile everything twice, which is a pain.
10190           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10191             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10192             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10193             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10194           else
10195             ld_shlibs=no
10196           fi
10197         ;;
10198       esac
10199       ;;
10200
10201     sunos4*)
10202       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10203       wlarc=
10204       hardcode_direct=yes
10205       hardcode_shlibpath_var=no
10206       ;;
10207
10208     *)
10209       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10210         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10211         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10212       else
10213         ld_shlibs=no
10214       fi
10215       ;;
10216     esac
10217
10218     if test no = "$ld_shlibs"; then
10219       runpath_var=
10220       hardcode_libdir_flag_spec=
10221       export_dynamic_flag_spec=
10222       whole_archive_flag_spec=
10223     fi
10224   else
10225     # PORTME fill in a description of your system's linker (not GNU ld)
10226     case $host_os in
10227     aix3*)
10228       allow_undefined_flag=unsupported
10229       always_export_symbols=yes
10230       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10231       # Note: this linker hardcodes the directories in LIBPATH if there
10232       # are no directories specified by -L.
10233       hardcode_minus_L=yes
10234       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10235         # Neither direct hardcoding nor static linking is supported with a
10236         # broken collect2.
10237         hardcode_direct=unsupported
10238       fi
10239       ;;
10240
10241     aix[4-9]*)
10242       if test ia64 = "$host_cpu"; then
10243         # On IA64, the linker does run time linking by default, so we don't
10244         # have to do anything special.
10245         aix_use_runtimelinking=no
10246         exp_sym_flag='-Bexport'
10247         no_entry_flag=
10248       else
10249         # If we're using GNU nm, then we don't want the "-C" option.
10250         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10251         # Without the "-l" option, or with the "-B" option, AIX nm treats
10252         # weak defined symbols like other global defined symbols, whereas
10253         # GNU nm marks them as "W".
10254         # While the 'weak' keyword is ignored in the Export File, we need
10255         # it in the Import File for the 'aix-soname' feature, so we have
10256         # to replace the "-B" option with "-P" for AIX nm.
10257         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10258           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10259         else
10260           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10261         fi
10262         aix_use_runtimelinking=no
10263
10264         # Test if we are trying to use run time linking or normal
10265         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10266         # have runtime linking enabled, and use it for executables.
10267         # For shared libraries, we enable/disable runtime linking
10268         # depending on the kind of the shared library created -
10269         # when "with_aix_soname,aix_use_runtimelinking" is:
10270         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10271         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10272         #            lib.a           static archive
10273         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10274         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10275         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10276         #            lib.a(lib.so.V) shared, rtl:no
10277         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10278         #            lib.a           static archive
10279         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10280           for ld_flag in $LDFLAGS; do
10281           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10282             aix_use_runtimelinking=yes
10283             break
10284           fi
10285           done
10286           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10287             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10288             # so we don't have lib.a shared libs to link our executables.
10289             # We have to force runtime linking in this case.
10290             aix_use_runtimelinking=yes
10291             LDFLAGS="$LDFLAGS -Wl,-brtl"
10292           fi
10293           ;;
10294         esac
10295
10296         exp_sym_flag='-bexport'
10297         no_entry_flag='-bnoentry'
10298       fi
10299
10300       # When large executables or shared objects are built, AIX ld can
10301       # have problems creating the table of contents.  If linking a library
10302       # or program results in "error TOC overflow" add -mminimal-toc to
10303       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10304       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10305
10306       archive_cmds=''
10307       hardcode_direct=yes
10308       hardcode_direct_absolute=yes
10309       hardcode_libdir_separator=':'
10310       link_all_deplibs=yes
10311       file_list_spec='$wl-f,'
10312       case $with_aix_soname,$aix_use_runtimelinking in
10313       aix,*) ;; # traditional, no import file
10314       svr4,* | *,yes) # use import file
10315         # The Import File defines what to hardcode.
10316         hardcode_direct=no
10317         hardcode_direct_absolute=no
10318         ;;
10319       esac
10320
10321       if test yes = "$GCC"; then
10322         case $host_os in aix4.[012]|aix4.[012].*)
10323         # We only want to do this on AIX 4.2 and lower, the check
10324         # below for broken collect2 doesn't work under 4.3+
10325           collect2name=`$CC -print-prog-name=collect2`
10326           if test -f "$collect2name" &&
10327            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10328           then
10329           # We have reworked collect2
10330           :
10331           else
10332           # We have old collect2
10333           hardcode_direct=unsupported
10334           # It fails to find uninstalled libraries when the uninstalled
10335           # path is not listed in the libpath.  Setting hardcode_minus_L
10336           # to unsupported forces relinking
10337           hardcode_minus_L=yes
10338           hardcode_libdir_flag_spec='-L$libdir'
10339           hardcode_libdir_separator=
10340           fi
10341           ;;
10342         esac
10343         shared_flag='-shared'
10344         if test yes = "$aix_use_runtimelinking"; then
10345           shared_flag="$shared_flag "'$wl-G'
10346         fi
10347         # Need to ensure runtime linking is disabled for the traditional
10348         # shared library, or the linker may eventually find shared libraries
10349         # /with/ Import File - we do not want to mix them.
10350         shared_flag_aix='-shared'
10351         shared_flag_svr4='-shared $wl-G'
10352       else
10353         # not using gcc
10354         if test ia64 = "$host_cpu"; then
10355         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10356         # chokes on -Wl,-G. The following line is correct:
10357           shared_flag='-G'
10358         else
10359           if test yes = "$aix_use_runtimelinking"; then
10360             shared_flag='$wl-G'
10361           else
10362             shared_flag='$wl-bM:SRE'
10363           fi
10364           shared_flag_aix='$wl-bM:SRE'
10365           shared_flag_svr4='$wl-G'
10366         fi
10367       fi
10368
10369       export_dynamic_flag_spec='$wl-bexpall'
10370       # It seems that -bexpall does not export symbols beginning with
10371       # underscore (_), so it is better to generate a list of symbols to export.
10372       always_export_symbols=yes
10373       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10374         # Warning - without using the other runtime loading flags (-brtl),
10375         # -berok will link without error, but may produce a broken library.
10376         allow_undefined_flag='-berok'
10377         # Determine the default libpath from the value encoded in an
10378         # empty executable.
10379         if test set = "${lt_cv_aix_libpath+set}"; then
10380   aix_libpath=$lt_cv_aix_libpath
10381 else
10382   if ${lt_cv_aix_libpath_+:} false; then :
10383   $as_echo_n "(cached) " >&6
10384 else
10385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h.  */
10387
10388 int
10389 main ()
10390 {
10391
10392   ;
10393   return 0;
10394 }
10395 _ACEOF
10396 if ac_fn_c_try_link "$LINENO"; then :
10397
10398   lt_aix_libpath_sed='
10399       /Import File Strings/,/^$/ {
10400           /^0/ {
10401               s/^0  *\([^ ]*\) *$/\1/
10402               p
10403           }
10404       }'
10405   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10406   # Check for a 64-bit object if we didn't find anything.
10407   if test -z "$lt_cv_aix_libpath_"; then
10408     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10409   fi
10410 fi
10411 rm -f core conftest.err conftest.$ac_objext \
10412     conftest$ac_exeext conftest.$ac_ext
10413   if test -z "$lt_cv_aix_libpath_"; then
10414     lt_cv_aix_libpath_=/usr/lib:/lib
10415   fi
10416
10417 fi
10418
10419   aix_libpath=$lt_cv_aix_libpath_
10420 fi
10421
10422         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10423         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10424       else
10425         if test ia64 = "$host_cpu"; then
10426           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10427           allow_undefined_flag="-z nodefs"
10428           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10429         else
10430          # Determine the default libpath from the value encoded in an
10431          # empty executable.
10432          if test set = "${lt_cv_aix_libpath+set}"; then
10433   aix_libpath=$lt_cv_aix_libpath
10434 else
10435   if ${lt_cv_aix_libpath_+:} false; then :
10436   $as_echo_n "(cached) " >&6
10437 else
10438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h.  */
10440
10441 int
10442 main ()
10443 {
10444
10445   ;
10446   return 0;
10447 }
10448 _ACEOF
10449 if ac_fn_c_try_link "$LINENO"; then :
10450
10451   lt_aix_libpath_sed='
10452       /Import File Strings/,/^$/ {
10453           /^0/ {
10454               s/^0  *\([^ ]*\) *$/\1/
10455               p
10456           }
10457       }'
10458   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10459   # Check for a 64-bit object if we didn't find anything.
10460   if test -z "$lt_cv_aix_libpath_"; then
10461     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10462   fi
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext \
10465     conftest$ac_exeext conftest.$ac_ext
10466   if test -z "$lt_cv_aix_libpath_"; then
10467     lt_cv_aix_libpath_=/usr/lib:/lib
10468   fi
10469
10470 fi
10471
10472   aix_libpath=$lt_cv_aix_libpath_
10473 fi
10474
10475          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10476           # Warning - without using the other run time loading flags,
10477           # -berok will link without error, but may produce a broken library.
10478           no_undefined_flag=' $wl-bernotok'
10479           allow_undefined_flag=' $wl-berok'
10480           if test yes = "$with_gnu_ld"; then
10481             # We only use this code for GNU lds that support --whole-archive.
10482             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10483           else
10484             # Exported symbols can be pulled into shared objects from archives
10485             whole_archive_flag_spec='$convenience'
10486           fi
10487           archive_cmds_need_lc=yes
10488           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10489           # -brtl affects multiple linker settings, -berok does not and is overridden later
10490           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10491           if test svr4 != "$with_aix_soname"; then
10492             # This is similar to how AIX traditionally builds its shared libraries.
10493             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10494           fi
10495           if test aix != "$with_aix_soname"; then
10496             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10497           else
10498             # used by -dlpreopen to get the symbols
10499             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10500           fi
10501           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10502         fi
10503       fi
10504       ;;
10505
10506     amigaos*)
10507       case $host_cpu in
10508       powerpc)
10509             # see comment about AmigaOS4 .so support
10510             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10511             archive_expsym_cmds=''
10512         ;;
10513       m68k)
10514             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10515             hardcode_libdir_flag_spec='-L$libdir'
10516             hardcode_minus_L=yes
10517         ;;
10518       esac
10519       ;;
10520
10521     bsdi[45]*)
10522       export_dynamic_flag_spec=-rdynamic
10523       ;;
10524
10525     cygwin* | mingw* | pw32* | cegcc*)
10526       # When not using gcc, we currently assume that we are using
10527       # Microsoft Visual C++.
10528       # hardcode_libdir_flag_spec is actually meaningless, as there is
10529       # no search path for DLLs.
10530       case $cc_basename in
10531       cl*)
10532         # Native MSVC
10533         hardcode_libdir_flag_spec=' '
10534         allow_undefined_flag=unsupported
10535         always_export_symbols=yes
10536         file_list_spec='@'
10537         # Tell ltmain to make .lib files, not .a files.
10538         libext=lib
10539         # Tell ltmain to make .dll files, not .so files.
10540         shrext_cmds=.dll
10541         # FIXME: Setting linknames here is a bad hack.
10542         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10543         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10544             cp "$export_symbols" "$output_objdir/$soname.def";
10545             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10546           else
10547             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10548           fi~
10549           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10550           linknames='
10551         # The linker will not automatically build a static lib if we build a DLL.
10552         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10553         enable_shared_with_static_runtimes=yes
10554         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10555         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10556         # Don't use ranlib
10557         old_postinstall_cmds='chmod 644 $oldlib'
10558         postlink_cmds='lt_outputfile="@OUTPUT@"~
10559           lt_tool_outputfile="@TOOL_OUTPUT@"~
10560           case $lt_outputfile in
10561             *.exe|*.EXE) ;;
10562             *)
10563               lt_outputfile=$lt_outputfile.exe
10564               lt_tool_outputfile=$lt_tool_outputfile.exe
10565               ;;
10566           esac~
10567           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10568             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10569             $RM "$lt_outputfile.manifest";
10570           fi'
10571         ;;
10572       *)
10573         # Assume MSVC wrapper
10574         hardcode_libdir_flag_spec=' '
10575         allow_undefined_flag=unsupported
10576         # Tell ltmain to make .lib files, not .a files.
10577         libext=lib
10578         # Tell ltmain to make .dll files, not .so files.
10579         shrext_cmds=.dll
10580         # FIXME: Setting linknames here is a bad hack.
10581         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10582         # The linker will automatically build a .lib file if we build a DLL.
10583         old_archive_from_new_cmds='true'
10584         # FIXME: Should let the user specify the lib program.
10585         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10586         enable_shared_with_static_runtimes=yes
10587         ;;
10588       esac
10589       ;;
10590
10591     darwin* | rhapsody*)
10592
10593
10594   archive_cmds_need_lc=no
10595   hardcode_direct=no
10596   hardcode_automatic=yes
10597   hardcode_shlibpath_var=unsupported
10598   if test yes = "$lt_cv_ld_force_load"; then
10599     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10600
10601   else
10602     whole_archive_flag_spec=''
10603   fi
10604   link_all_deplibs=yes
10605   allow_undefined_flag=$_lt_dar_allow_undefined
10606   case $cc_basename in
10607      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10608      *) _lt_dar_can_shared=$GCC ;;
10609   esac
10610   if test yes = "$_lt_dar_can_shared"; then
10611     output_verbose_link_cmd=func_echo_all
10612     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10613     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10614     archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10615     module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10616
10617   else
10618   ld_shlibs=no
10619   fi
10620
10621       ;;
10622
10623     dgux*)
10624       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625       hardcode_libdir_flag_spec='-L$libdir'
10626       hardcode_shlibpath_var=no
10627       ;;
10628
10629     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10630     # support.  Future versions do this automatically, but an explicit c++rt0.o
10631     # does not break anything, and helps significantly (at the cost of a little
10632     # extra space).
10633     freebsd2.2*)
10634       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10635       hardcode_libdir_flag_spec='-R$libdir'
10636       hardcode_direct=yes
10637       hardcode_shlibpath_var=no
10638       ;;
10639
10640     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10641     freebsd2.*)
10642       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10643       hardcode_direct=yes
10644       hardcode_minus_L=yes
10645       hardcode_shlibpath_var=no
10646       ;;
10647
10648     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10649     freebsd* | dragonfly*)
10650       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10651       hardcode_libdir_flag_spec='-R$libdir'
10652       hardcode_direct=yes
10653       hardcode_shlibpath_var=no
10654       ;;
10655
10656     hpux9*)
10657       if test yes = "$GCC"; then
10658         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10659       else
10660         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10661       fi
10662       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10663       hardcode_libdir_separator=:
10664       hardcode_direct=yes
10665
10666       # hardcode_minus_L: Not really in the search PATH,
10667       # but as the default location of the library.
10668       hardcode_minus_L=yes
10669       export_dynamic_flag_spec='$wl-E'
10670       ;;
10671
10672     hpux10*)
10673       if test yes,no = "$GCC,$with_gnu_ld"; then
10674         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10675       else
10676         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10677       fi
10678       if test no = "$with_gnu_ld"; then
10679         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10680         hardcode_libdir_separator=:
10681         hardcode_direct=yes
10682         hardcode_direct_absolute=yes
10683         export_dynamic_flag_spec='$wl-E'
10684         # hardcode_minus_L: Not really in the search PATH,
10685         # but as the default location of the library.
10686         hardcode_minus_L=yes
10687       fi
10688       ;;
10689
10690     hpux11*)
10691       if test yes,no = "$GCC,$with_gnu_ld"; then
10692         case $host_cpu in
10693         hppa*64*)
10694           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10695           ;;
10696         ia64*)
10697           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10698           ;;
10699         *)
10700           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10701           ;;
10702         esac
10703       else
10704         case $host_cpu in
10705         hppa*64*)
10706           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10707           ;;
10708         ia64*)
10709           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10710           ;;
10711         *)
10712
10713           # Older versions of the 11.00 compiler do not understand -b yet
10714           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10715           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10716 $as_echo_n "checking if $CC understands -b... " >&6; }
10717 if ${lt_cv_prog_compiler__b+:} false; then :
10718   $as_echo_n "(cached) " >&6
10719 else
10720   lt_cv_prog_compiler__b=no
10721    save_LDFLAGS=$LDFLAGS
10722    LDFLAGS="$LDFLAGS -b"
10723    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10724    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10725      # The linker can only warn and ignore the option if not recognized
10726      # So say no if there are warnings
10727      if test -s conftest.err; then
10728        # Append any errors to the config.log.
10729        cat conftest.err 1>&5
10730        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10731        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10732        if diff conftest.exp conftest.er2 >/dev/null; then
10733          lt_cv_prog_compiler__b=yes
10734        fi
10735      else
10736        lt_cv_prog_compiler__b=yes
10737      fi
10738    fi
10739    $RM -r conftest*
10740    LDFLAGS=$save_LDFLAGS
10741
10742 fi
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10744 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10745
10746 if test yes = "$lt_cv_prog_compiler__b"; then
10747     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10748 else
10749     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10750 fi
10751
10752           ;;
10753         esac
10754       fi
10755       if test no = "$with_gnu_ld"; then
10756         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10757         hardcode_libdir_separator=:
10758
10759         case $host_cpu in
10760         hppa*64*|ia64*)
10761           hardcode_direct=no
10762           hardcode_shlibpath_var=no
10763           ;;
10764         *)
10765           hardcode_direct=yes
10766           hardcode_direct_absolute=yes
10767           export_dynamic_flag_spec='$wl-E'
10768
10769           # hardcode_minus_L: Not really in the search PATH,
10770           # but as the default location of the library.
10771           hardcode_minus_L=yes
10772           ;;
10773         esac
10774       fi
10775       ;;
10776
10777     irix5* | irix6* | nonstopux*)
10778       if test yes = "$GCC"; then
10779         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10780         # Try to use the -exported_symbol ld option, if it does not
10781         # work, assume that -exports_file does not work either and
10782         # implicitly export all symbols.
10783         # This should be the same for all languages, so no per-tag cache variable.
10784         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10785 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10786 if ${lt_cv_irix_exported_symbol+:} false; then :
10787   $as_echo_n "(cached) " >&6
10788 else
10789   save_LDFLAGS=$LDFLAGS
10790            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10791            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h.  */
10793 int foo (void) { return 0; }
10794 _ACEOF
10795 if ac_fn_c_try_link "$LINENO"; then :
10796   lt_cv_irix_exported_symbol=yes
10797 else
10798   lt_cv_irix_exported_symbol=no
10799 fi
10800 rm -f core conftest.err conftest.$ac_objext \
10801     conftest$ac_exeext conftest.$ac_ext
10802            LDFLAGS=$save_LDFLAGS
10803 fi
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10805 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10806         if test yes = "$lt_cv_irix_exported_symbol"; then
10807           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10808         fi
10809         link_all_deplibs=no
10810       else
10811         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10812         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10813       fi
10814       archive_cmds_need_lc='no'
10815       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10816       hardcode_libdir_separator=:
10817       inherit_rpath=yes
10818       link_all_deplibs=yes
10819       ;;
10820
10821     linux*)
10822       case $cc_basename in
10823       tcc*)
10824         # Fabrice Bellard et al's Tiny C Compiler
10825         ld_shlibs=yes
10826         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10827         ;;
10828       esac
10829       ;;
10830
10831     netbsd* | netbsdelf*-gnu)
10832       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10833         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10834       else
10835         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10836       fi
10837       hardcode_libdir_flag_spec='-R$libdir'
10838       hardcode_direct=yes
10839       hardcode_shlibpath_var=no
10840       ;;
10841
10842     newsos6)
10843       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844       hardcode_direct=yes
10845       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10846       hardcode_libdir_separator=:
10847       hardcode_shlibpath_var=no
10848       ;;
10849
10850     *nto* | *qnx*)
10851       ;;
10852
10853     openbsd* | bitrig*)
10854       if test -f /usr/libexec/ld.so; then
10855         hardcode_direct=yes
10856         hardcode_shlibpath_var=no
10857         hardcode_direct_absolute=yes
10858         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10859           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10860           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10861           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10862           export_dynamic_flag_spec='$wl-E'
10863         else
10864           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10865           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10866         fi
10867       else
10868         ld_shlibs=no
10869       fi
10870       ;;
10871
10872     os2*)
10873       hardcode_libdir_flag_spec='-L$libdir'
10874       hardcode_minus_L=yes
10875       allow_undefined_flag=unsupported
10876       shrext_cmds=.dll
10877       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10878         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10879         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10880         $ECHO EXPORTS >> $output_objdir/$libname.def~
10881         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10882         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10883         emximp -o $lib $output_objdir/$libname.def'
10884       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10885         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10886         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10887         $ECHO EXPORTS >> $output_objdir/$libname.def~
10888         prefix_cmds="$SED"~
10889         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10890           prefix_cmds="$prefix_cmds -e 1d";
10891         fi~
10892         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10893         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10894         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10895         emximp -o $lib $output_objdir/$libname.def'
10896       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10897       enable_shared_with_static_runtimes=yes
10898       ;;
10899
10900     osf3*)
10901       if test yes = "$GCC"; then
10902         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10903         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10904       else
10905         allow_undefined_flag=' -expect_unresolved \*'
10906         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10907       fi
10908       archive_cmds_need_lc='no'
10909       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10910       hardcode_libdir_separator=:
10911       ;;
10912
10913     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10914       if test yes = "$GCC"; then
10915         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10916         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10917         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10918       else
10919         allow_undefined_flag=' -expect_unresolved \*'
10920         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10921         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10922           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10923
10924         # Both c and cxx compiler support -rpath directly
10925         hardcode_libdir_flag_spec='-rpath $libdir'
10926       fi
10927       archive_cmds_need_lc='no'
10928       hardcode_libdir_separator=:
10929       ;;
10930
10931     solaris*)
10932       no_undefined_flag=' -z defs'
10933       if test yes = "$GCC"; then
10934         wlarc='$wl'
10935         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10936         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10937           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10938       else
10939         case `$CC -V 2>&1` in
10940         *"Compilers 5.0"*)
10941           wlarc=''
10942           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10943           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10944             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10945           ;;
10946         *)
10947           wlarc='$wl'
10948           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10949           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10950             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10951           ;;
10952         esac
10953       fi
10954       hardcode_libdir_flag_spec='-R$libdir'
10955       hardcode_shlibpath_var=no
10956       case $host_os in
10957       solaris2.[0-5] | solaris2.[0-5].*) ;;
10958       *)
10959         # The compiler driver will combine and reorder linker options,
10960         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10961         # but is careful enough not to reorder.
10962         # Supported since Solaris 2.6 (maybe 2.5.1?)
10963         if test yes = "$GCC"; then
10964           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10965         else
10966           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10967         fi
10968         ;;
10969       esac
10970       link_all_deplibs=yes
10971       ;;
10972
10973     sunos4*)
10974       if test sequent = "$host_vendor"; then
10975         # Use $CC to link under sequent, because it throws in some extra .o
10976         # files that make .init and .fini sections work.
10977         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10978       else
10979         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10980       fi
10981       hardcode_libdir_flag_spec='-L$libdir'
10982       hardcode_direct=yes
10983       hardcode_minus_L=yes
10984       hardcode_shlibpath_var=no
10985       ;;
10986
10987     sysv4)
10988       case $host_vendor in
10989         sni)
10990           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991           hardcode_direct=yes # is this really true???
10992         ;;
10993         siemens)
10994           ## LD is ld it makes a PLAMLIB
10995           ## CC just makes a GrossModule.
10996           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10997           reload_cmds='$CC -r -o $output$reload_objs'
10998           hardcode_direct=no
10999         ;;
11000         motorola)
11001           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11002           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11003         ;;
11004       esac
11005       runpath_var='LD_RUN_PATH'
11006       hardcode_shlibpath_var=no
11007       ;;
11008
11009     sysv4.3*)
11010       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11011       hardcode_shlibpath_var=no
11012       export_dynamic_flag_spec='-Bexport'
11013       ;;
11014
11015     sysv4*MP*)
11016       if test -d /usr/nec; then
11017         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11018         hardcode_shlibpath_var=no
11019         runpath_var=LD_RUN_PATH
11020         hardcode_runpath_var=yes
11021         ld_shlibs=yes
11022       fi
11023       ;;
11024
11025     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11026       no_undefined_flag='$wl-z,text'
11027       archive_cmds_need_lc=no
11028       hardcode_shlibpath_var=no
11029       runpath_var='LD_RUN_PATH'
11030
11031       if test yes = "$GCC"; then
11032         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034       else
11035         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037       fi
11038       ;;
11039
11040     sysv5* | sco3.2v5* | sco5v6*)
11041       # Note: We CANNOT use -z defs as we might desire, because we do not
11042       # link with -lc, and that would cause any symbols used from libc to
11043       # always be unresolved, which means just about no library would
11044       # ever link correctly.  If we're not using GNU ld we use -z text
11045       # though, which does catch some bad symbols but isn't as heavy-handed
11046       # as -z defs.
11047       no_undefined_flag='$wl-z,text'
11048       allow_undefined_flag='$wl-z,nodefs'
11049       archive_cmds_need_lc=no
11050       hardcode_shlibpath_var=no
11051       hardcode_libdir_flag_spec='$wl-R,$libdir'
11052       hardcode_libdir_separator=':'
11053       link_all_deplibs=yes
11054       export_dynamic_flag_spec='$wl-Bexport'
11055       runpath_var='LD_RUN_PATH'
11056
11057       if test yes = "$GCC"; then
11058         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060       else
11061         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11062         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11063       fi
11064       ;;
11065
11066     uts4*)
11067       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11068       hardcode_libdir_flag_spec='-L$libdir'
11069       hardcode_shlibpath_var=no
11070       ;;
11071
11072     *)
11073       ld_shlibs=no
11074       ;;
11075     esac
11076
11077     if test sni = "$host_vendor"; then
11078       case $host in
11079       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11080         export_dynamic_flag_spec='$wl-Blargedynsym'
11081         ;;
11082       esac
11083     fi
11084   fi
11085
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11087 $as_echo "$ld_shlibs" >&6; }
11088 test no = "$ld_shlibs" && can_build_shared=no
11089
11090 with_gnu_ld=$with_gnu_ld
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106 #
11107 # Do we need to explicitly link libc?
11108 #
11109 case "x$archive_cmds_need_lc" in
11110 x|xyes)
11111   # Assume -lc should be added
11112   archive_cmds_need_lc=yes
11113
11114   if test yes,yes = "$GCC,$enable_shared"; then
11115     case $archive_cmds in
11116     *'~'*)
11117       # FIXME: we may have to deal with multi-command sequences.
11118       ;;
11119     '$CC '*)
11120       # Test whether the compiler implicitly links with -lc since on some
11121       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11122       # to ld, don't add -lc before -lgcc.
11123       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11124 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11125 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11126   $as_echo_n "(cached) " >&6
11127 else
11128   $RM conftest*
11129         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11130
11131         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11132   (eval $ac_compile) 2>&5
11133   ac_status=$?
11134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11135   test $ac_status = 0; } 2>conftest.err; then
11136           soname=conftest
11137           lib=conftest
11138           libobjs=conftest.$ac_objext
11139           deplibs=
11140           wl=$lt_prog_compiler_wl
11141           pic_flag=$lt_prog_compiler_pic
11142           compiler_flags=-v
11143           linker_flags=-v
11144           verstring=
11145           output_objdir=.
11146           libname=conftest
11147           lt_save_allow_undefined_flag=$allow_undefined_flag
11148           allow_undefined_flag=
11149           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11150   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11151   ac_status=$?
11152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153   test $ac_status = 0; }
11154           then
11155             lt_cv_archive_cmds_need_lc=no
11156           else
11157             lt_cv_archive_cmds_need_lc=yes
11158           fi
11159           allow_undefined_flag=$lt_save_allow_undefined_flag
11160         else
11161           cat conftest.err 1>&5
11162         fi
11163         $RM conftest*
11164
11165 fi
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11167 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11168       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11169       ;;
11170     esac
11171   fi
11172   ;;
11173 esac
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11328
11329 if test yes = "$GCC"; then
11330   case $host_os in
11331     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11332     *) lt_awk_arg='/^libraries:/' ;;
11333   esac
11334   case $host_os in
11335     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11336     *) lt_sed_strip_eq='s|=/|/|g' ;;
11337   esac
11338   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11339   case $lt_search_path_spec in
11340   *\;*)
11341     # if the path contains ";" then we assume it to be the separator
11342     # otherwise default to the standard path separator (i.e. ":") - it is
11343     # assumed that no part of a normal pathname contains ";" but that should
11344     # okay in the real world where ";" in dirpaths is itself problematic.
11345     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11346     ;;
11347   *)
11348     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11349     ;;
11350   esac
11351   # Ok, now we have the path, separated by spaces, we can step through it
11352   # and add multilib dir if necessary...
11353   lt_tmp_lt_search_path_spec=
11354   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11355   # ...but if some path component already ends with the multilib dir we assume
11356   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11357   case "$lt_multi_os_dir; $lt_search_path_spec " in
11358   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11359     lt_multi_os_dir=
11360     ;;
11361   esac
11362   for lt_sys_path in $lt_search_path_spec; do
11363     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11364       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11365     elif test -n "$lt_multi_os_dir"; then
11366       test -d "$lt_sys_path" && \
11367         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11368     fi
11369   done
11370   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11371 BEGIN {RS = " "; FS = "/|\n";} {
11372   lt_foo = "";
11373   lt_count = 0;
11374   for (lt_i = NF; lt_i > 0; lt_i--) {
11375     if ($lt_i != "" && $lt_i != ".") {
11376       if ($lt_i == "..") {
11377         lt_count++;
11378       } else {
11379         if (lt_count == 0) {
11380           lt_foo = "/" $lt_i lt_foo;
11381         } else {
11382           lt_count--;
11383         }
11384       }
11385     }
11386   }
11387   if (lt_foo != "") { lt_freq[lt_foo]++; }
11388   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11389 }'`
11390   # AWK program above erroneously prepends '/' to C:/dos/paths
11391   # for these hosts.
11392   case $host_os in
11393     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11394       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11395   esac
11396   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11397 else
11398   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11399 fi
11400 library_names_spec=
11401 libname_spec='lib$name'
11402 soname_spec=
11403 shrext_cmds=.so
11404 postinstall_cmds=
11405 postuninstall_cmds=
11406 finish_cmds=
11407 finish_eval=
11408 shlibpath_var=
11409 shlibpath_overrides_runpath=unknown
11410 version_type=none
11411 dynamic_linker="$host_os ld.so"
11412 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11413 need_lib_prefix=unknown
11414 hardcode_into_libs=no
11415
11416 # when you set need_version to no, make sure it does not cause -set_version
11417 # flags to be left without arguments
11418 need_version=unknown
11419
11420
11421
11422 case $host_os in
11423 aix3*)
11424   version_type=linux # correct to gnu/linux during the next big refactor
11425   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11426   shlibpath_var=LIBPATH
11427
11428   # AIX 3 has no versioning support, so we append a major version to the name.
11429   soname_spec='$libname$release$shared_ext$major'
11430   ;;
11431
11432 aix[4-9]*)
11433   version_type=linux # correct to gnu/linux during the next big refactor
11434   need_lib_prefix=no
11435   need_version=no
11436   hardcode_into_libs=yes
11437   if test ia64 = "$host_cpu"; then
11438     # AIX 5 supports IA64
11439     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11440     shlibpath_var=LD_LIBRARY_PATH
11441   else
11442     # With GCC up to 2.95.x, collect2 would create an import file
11443     # for dependence libraries.  The import file would start with
11444     # the line '#! .'.  This would cause the generated library to
11445     # depend on '.', always an invalid library.  This was fixed in
11446     # development snapshots of GCC prior to 3.0.
11447     case $host_os in
11448       aix4 | aix4.[01] | aix4.[01].*)
11449       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11450            echo ' yes '
11451            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11452         :
11453       else
11454         can_build_shared=no
11455       fi
11456       ;;
11457     esac
11458     # Using Import Files as archive members, it is possible to support
11459     # filename-based versioning of shared library archives on AIX. While
11460     # this would work for both with and without runtime linking, it will
11461     # prevent static linking of such archives. So we do filename-based
11462     # shared library versioning with .so extension only, which is used
11463     # when both runtime linking and shared linking is enabled.
11464     # Unfortunately, runtime linking may impact performance, so we do
11465     # not want this to be the default eventually. Also, we use the
11466     # versioned .so libs for executables only if there is the -brtl
11467     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11468     # To allow for filename-based versioning support, we need to create
11469     # libNAME.so.V as an archive file, containing:
11470     # *) an Import File, referring to the versioned filename of the
11471     #    archive as well as the shared archive member, telling the
11472     #    bitwidth (32 or 64) of that shared object, and providing the
11473     #    list of exported symbols of that shared object, eventually
11474     #    decorated with the 'weak' keyword
11475     # *) the shared object with the F_LOADONLY flag set, to really avoid
11476     #    it being seen by the linker.
11477     # At run time we better use the real file rather than another symlink,
11478     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11479
11480     case $with_aix_soname,$aix_use_runtimelinking in
11481     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11482     # soname into executable. Probably we can add versioning support to
11483     # collect2, so additional links can be useful in future.
11484     aix,yes) # traditional libtool
11485       dynamic_linker='AIX unversionable lib.so'
11486       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11487       # instead of lib<name>.a to let people know that these are not
11488       # typical AIX shared libraries.
11489       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11490       ;;
11491     aix,no) # traditional AIX only
11492       dynamic_linker='AIX lib.a(lib.so.V)'
11493       # We preserve .a as extension for shared libraries through AIX4.2
11494       # and later when we are not doing run time linking.
11495       library_names_spec='$libname$release.a $libname.a'
11496       soname_spec='$libname$release$shared_ext$major'
11497       ;;
11498     svr4,*) # full svr4 only
11499       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11500       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11501       # We do not specify a path in Import Files, so LIBPATH fires.
11502       shlibpath_overrides_runpath=yes
11503       ;;
11504     *,yes) # both, prefer svr4
11505       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11506       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11507       # unpreferred sharedlib libNAME.a needs extra handling
11508       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11509       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11510       # We do not specify a path in Import Files, so LIBPATH fires.
11511       shlibpath_overrides_runpath=yes
11512       ;;
11513     *,no) # both, prefer aix
11514       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11515       library_names_spec='$libname$release.a $libname.a'
11516       soname_spec='$libname$release$shared_ext$major'
11517       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11518       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11519       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11520       ;;
11521     esac
11522     shlibpath_var=LIBPATH
11523   fi
11524   ;;
11525
11526 amigaos*)
11527   case $host_cpu in
11528   powerpc)
11529     # Since July 2007 AmigaOS4 officially supports .so libraries.
11530     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11531     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11532     ;;
11533   m68k)
11534     library_names_spec='$libname.ixlibrary $libname.a'
11535     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11536     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11537     ;;
11538   esac
11539   ;;
11540
11541 beos*)
11542   library_names_spec='$libname$shared_ext'
11543   dynamic_linker="$host_os ld.so"
11544   shlibpath_var=LIBRARY_PATH
11545   ;;
11546
11547 bsdi[45]*)
11548   version_type=linux # correct to gnu/linux during the next big refactor
11549   need_version=no
11550   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11551   soname_spec='$libname$release$shared_ext$major'
11552   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11553   shlibpath_var=LD_LIBRARY_PATH
11554   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11555   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11556   # the default ld.so.conf also contains /usr/contrib/lib and
11557   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11558   # libtool to hard-code these into programs
11559   ;;
11560
11561 cygwin* | mingw* | pw32* | cegcc*)
11562   version_type=windows
11563   shrext_cmds=.dll
11564   need_version=no
11565   need_lib_prefix=no
11566
11567   case $GCC,$cc_basename in
11568   yes,*)
11569     # gcc
11570     library_names_spec='$libname.dll.a'
11571     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11572     postinstall_cmds='base_file=`basename \$file`~
11573       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11574       dldir=$destdir/`dirname \$dlpath`~
11575       test -d \$dldir || mkdir -p \$dldir~
11576       $install_prog $dir/$dlname \$dldir/$dlname~
11577       chmod a+x \$dldir/$dlname~
11578       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11579         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11580       fi'
11581     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11582       dlpath=$dir/\$dldll~
11583        $RM \$dlpath'
11584     shlibpath_overrides_runpath=yes
11585
11586     case $host_os in
11587     cygwin*)
11588       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11589       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11590
11591       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11592       ;;
11593     mingw* | cegcc*)
11594       # MinGW DLLs use traditional 'lib' prefix
11595       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11596       ;;
11597     pw32*)
11598       # pw32 DLLs use 'pw' prefix rather than 'lib'
11599       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11600       ;;
11601     esac
11602     dynamic_linker='Win32 ld.exe'
11603     ;;
11604
11605   *,cl*)
11606     # Native MSVC
11607     libname_spec='$name'
11608     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11609     library_names_spec='$libname.dll.lib'
11610
11611     case $build_os in
11612     mingw*)
11613       sys_lib_search_path_spec=
11614       lt_save_ifs=$IFS
11615       IFS=';'
11616       for lt_path in $LIB
11617       do
11618         IFS=$lt_save_ifs
11619         # Let DOS variable expansion print the short 8.3 style file name.
11620         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11621         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11622       done
11623       IFS=$lt_save_ifs
11624       # Convert to MSYS style.
11625       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11626       ;;
11627     cygwin*)
11628       # Convert to unix form, then to dos form, then back to unix form
11629       # but this time dos style (no spaces!) so that the unix form looks
11630       # like /cygdrive/c/PROGRA~1:/cygdr...
11631       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11632       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11633       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11634       ;;
11635     *)
11636       sys_lib_search_path_spec=$LIB
11637       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11638         # It is most probably a Windows format PATH.
11639         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11640       else
11641         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11642       fi
11643       # FIXME: find the short name or the path components, as spaces are
11644       # common. (e.g. "Program Files" -> "PROGRA~1")
11645       ;;
11646     esac
11647
11648     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11649     postinstall_cmds='base_file=`basename \$file`~
11650       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11651       dldir=$destdir/`dirname \$dlpath`~
11652       test -d \$dldir || mkdir -p \$dldir~
11653       $install_prog $dir/$dlname \$dldir/$dlname'
11654     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11655       dlpath=$dir/\$dldll~
11656        $RM \$dlpath'
11657     shlibpath_overrides_runpath=yes
11658     dynamic_linker='Win32 link.exe'
11659     ;;
11660
11661   *)
11662     # Assume MSVC wrapper
11663     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11664     dynamic_linker='Win32 ld.exe'
11665     ;;
11666   esac
11667   # FIXME: first we should search . and the directory the executable is in
11668   shlibpath_var=PATH
11669   ;;
11670
11671 darwin* | rhapsody*)
11672   dynamic_linker="$host_os dyld"
11673   version_type=darwin
11674   need_lib_prefix=no
11675   need_version=no
11676   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11677   soname_spec='$libname$release$major$shared_ext'
11678   shlibpath_overrides_runpath=yes
11679   shlibpath_var=DYLD_LIBRARY_PATH
11680   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11681
11682   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11683   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11684   ;;
11685
11686 dgux*)
11687   version_type=linux # correct to gnu/linux during the next big refactor
11688   need_lib_prefix=no
11689   need_version=no
11690   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11691   soname_spec='$libname$release$shared_ext$major'
11692   shlibpath_var=LD_LIBRARY_PATH
11693   ;;
11694
11695 freebsd* | dragonfly*)
11696   # DragonFly does not have aout.  When/if they implement a new
11697   # versioning mechanism, adjust this.
11698   if test -x /usr/bin/objformat; then
11699     objformat=`/usr/bin/objformat`
11700   else
11701     case $host_os in
11702     freebsd[23].*) objformat=aout ;;
11703     *) objformat=elf ;;
11704     esac
11705   fi
11706   version_type=freebsd-$objformat
11707   case $version_type in
11708     freebsd-elf*)
11709       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11710       soname_spec='$libname$release$shared_ext$major'
11711       need_version=no
11712       need_lib_prefix=no
11713       ;;
11714     freebsd-*)
11715       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11716       need_version=yes
11717       ;;
11718   esac
11719   shlibpath_var=LD_LIBRARY_PATH
11720   case $host_os in
11721   freebsd2.*)
11722     shlibpath_overrides_runpath=yes
11723     ;;
11724   freebsd3.[01]* | freebsdelf3.[01]*)
11725     shlibpath_overrides_runpath=yes
11726     hardcode_into_libs=yes
11727     ;;
11728   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11729   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11730     shlibpath_overrides_runpath=no
11731     hardcode_into_libs=yes
11732     ;;
11733   *) # from 4.6 on, and DragonFly
11734     shlibpath_overrides_runpath=yes
11735     hardcode_into_libs=yes
11736     ;;
11737   esac
11738   ;;
11739
11740 haiku*)
11741   version_type=linux # correct to gnu/linux during the next big refactor
11742   need_lib_prefix=no
11743   need_version=no
11744   dynamic_linker="$host_os runtime_loader"
11745   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11746   soname_spec='$libname$release$shared_ext$major'
11747   shlibpath_var=LIBRARY_PATH
11748   shlibpath_overrides_runpath=no
11749   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11750   hardcode_into_libs=yes
11751   ;;
11752
11753 hpux9* | hpux10* | hpux11*)
11754   # Give a soname corresponding to the major version so that dld.sl refuses to
11755   # link against other versions.
11756   version_type=sunos
11757   need_lib_prefix=no
11758   need_version=no
11759   case $host_cpu in
11760   ia64*)
11761     shrext_cmds='.so'
11762     hardcode_into_libs=yes
11763     dynamic_linker="$host_os dld.so"
11764     shlibpath_var=LD_LIBRARY_PATH
11765     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11766     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767     soname_spec='$libname$release$shared_ext$major'
11768     if test 32 = "$HPUX_IA64_MODE"; then
11769       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11770       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11771     else
11772       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11773       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11774     fi
11775     ;;
11776   hppa*64*)
11777     shrext_cmds='.sl'
11778     hardcode_into_libs=yes
11779     dynamic_linker="$host_os dld.sl"
11780     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11781     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11782     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783     soname_spec='$libname$release$shared_ext$major'
11784     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11785     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11786     ;;
11787   *)
11788     shrext_cmds='.sl'
11789     dynamic_linker="$host_os dld.sl"
11790     shlibpath_var=SHLIB_PATH
11791     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11792     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11793     soname_spec='$libname$release$shared_ext$major'
11794     ;;
11795   esac
11796   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11797   postinstall_cmds='chmod 555 $lib'
11798   # or fails outright, so override atomically:
11799   install_override_mode=555
11800   ;;
11801
11802 interix[3-9]*)
11803   version_type=linux # correct to gnu/linux during the next big refactor
11804   need_lib_prefix=no
11805   need_version=no
11806   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11807   soname_spec='$libname$release$shared_ext$major'
11808   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11809   shlibpath_var=LD_LIBRARY_PATH
11810   shlibpath_overrides_runpath=no
11811   hardcode_into_libs=yes
11812   ;;
11813
11814 irix5* | irix6* | nonstopux*)
11815   case $host_os in
11816     nonstopux*) version_type=nonstopux ;;
11817     *)
11818         if test yes = "$lt_cv_prog_gnu_ld"; then
11819                 version_type=linux # correct to gnu/linux during the next big refactor
11820         else
11821                 version_type=irix
11822         fi ;;
11823   esac
11824   need_lib_prefix=no
11825   need_version=no
11826   soname_spec='$libname$release$shared_ext$major'
11827   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11828   case $host_os in
11829   irix5* | nonstopux*)
11830     libsuff= shlibsuff=
11831     ;;
11832   *)
11833     case $LD in # libtool.m4 will add one of these switches to LD
11834     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11835       libsuff= shlibsuff= libmagic=32-bit;;
11836     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11837       libsuff=32 shlibsuff=N32 libmagic=N32;;
11838     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11839       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11840     *) libsuff= shlibsuff= libmagic=never-match;;
11841     esac
11842     ;;
11843   esac
11844   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11845   shlibpath_overrides_runpath=no
11846   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11847   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11848   hardcode_into_libs=yes
11849   ;;
11850
11851 # No shared lib support for Linux oldld, aout, or coff.
11852 linux*oldld* | linux*aout* | linux*coff*)
11853   dynamic_linker=no
11854   ;;
11855
11856 linux*android*)
11857   version_type=none # Android doesn't support versioned libraries.
11858   need_lib_prefix=no
11859   need_version=no
11860   library_names_spec='$libname$release$shared_ext'
11861   soname_spec='$libname$release$shared_ext'
11862   finish_cmds=
11863   shlibpath_var=LD_LIBRARY_PATH
11864   shlibpath_overrides_runpath=yes
11865
11866   # This implies no fast_install, which is unacceptable.
11867   # Some rework will be needed to allow for fast_install
11868   # before this can be enabled.
11869   hardcode_into_libs=yes
11870
11871   dynamic_linker='Android linker'
11872   # Don't embed -rpath directories since the linker doesn't support them.
11873   hardcode_libdir_flag_spec='-L$libdir'
11874   ;;
11875
11876 # This must be glibc/ELF.
11877 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11878   version_type=linux # correct to gnu/linux during the next big refactor
11879   need_lib_prefix=no
11880   need_version=no
11881   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11882   soname_spec='$libname$release$shared_ext$major'
11883   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11884   shlibpath_var=LD_LIBRARY_PATH
11885   shlibpath_overrides_runpath=no
11886
11887   # Some binutils ld are patched to set DT_RUNPATH
11888   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11889   $as_echo_n "(cached) " >&6
11890 else
11891   lt_cv_shlibpath_overrides_runpath=no
11892     save_LDFLAGS=$LDFLAGS
11893     save_libdir=$libdir
11894     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11895          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11896     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h.  */
11898
11899 int
11900 main ()
11901 {
11902
11903   ;
11904   return 0;
11905 }
11906 _ACEOF
11907 if ac_fn_c_try_link "$LINENO"; then :
11908   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11909   lt_cv_shlibpath_overrides_runpath=yes
11910 fi
11911 fi
11912 rm -f core conftest.err conftest.$ac_objext \
11913     conftest$ac_exeext conftest.$ac_ext
11914     LDFLAGS=$save_LDFLAGS
11915     libdir=$save_libdir
11916
11917 fi
11918
11919   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11920
11921   # This implies no fast_install, which is unacceptable.
11922   # Some rework will be needed to allow for fast_install
11923   # before this can be enabled.
11924   hardcode_into_libs=yes
11925
11926   # Ideally, we could use ldconfig to report *all* directores which are
11927   # searched for libraries, however this is still not possible.  Aside from not
11928   # being certain /sbin/ldconfig is available, command
11929   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11930   # even though it is searched at run-time.  Try to do the best guess by
11931   # appending ld.so.conf contents (and includes) to the search path.
11932   if test -f /etc/ld.so.conf; then
11933     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11934     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11935   fi
11936
11937   # We used to test for /lib/ld.so.1 and disable shared libraries on
11938   # powerpc, because MkLinux only supported shared libraries with the
11939   # GNU dynamic linker.  Since this was broken with cross compilers,
11940   # most powerpc-linux boxes support dynamic linking these days and
11941   # people can always --disable-shared, the test was removed, and we
11942   # assume the GNU/Linux dynamic linker is in use.
11943   dynamic_linker='GNU/Linux ld.so'
11944   ;;
11945
11946 netbsdelf*-gnu)
11947   version_type=linux
11948   need_lib_prefix=no
11949   need_version=no
11950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11951   soname_spec='${libname}${release}${shared_ext}$major'
11952   shlibpath_var=LD_LIBRARY_PATH
11953   shlibpath_overrides_runpath=no
11954   hardcode_into_libs=yes
11955   dynamic_linker='NetBSD ld.elf_so'
11956   ;;
11957
11958 netbsd*)
11959   version_type=sunos
11960   need_lib_prefix=no
11961   need_version=no
11962   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11963     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11964     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11965     dynamic_linker='NetBSD (a.out) ld.so'
11966   else
11967     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11968     soname_spec='$libname$release$shared_ext$major'
11969     dynamic_linker='NetBSD ld.elf_so'
11970   fi
11971   shlibpath_var=LD_LIBRARY_PATH
11972   shlibpath_overrides_runpath=yes
11973   hardcode_into_libs=yes
11974   ;;
11975
11976 newsos6)
11977   version_type=linux # correct to gnu/linux during the next big refactor
11978   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11979   shlibpath_var=LD_LIBRARY_PATH
11980   shlibpath_overrides_runpath=yes
11981   ;;
11982
11983 *nto* | *qnx*)
11984   version_type=qnx
11985   need_lib_prefix=no
11986   need_version=no
11987   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11988   soname_spec='$libname$release$shared_ext$major'
11989   shlibpath_var=LD_LIBRARY_PATH
11990   shlibpath_overrides_runpath=no
11991   hardcode_into_libs=yes
11992   dynamic_linker='ldqnx.so'
11993   ;;
11994
11995 openbsd* | bitrig*)
11996   version_type=sunos
11997   sys_lib_dlsearch_path_spec=/usr/lib
11998   need_lib_prefix=no
11999   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12000     need_version=no
12001   else
12002     need_version=yes
12003   fi
12004   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12005   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12006   shlibpath_var=LD_LIBRARY_PATH
12007   shlibpath_overrides_runpath=yes
12008   ;;
12009
12010 os2*)
12011   libname_spec='$name'
12012   version_type=windows
12013   shrext_cmds=.dll
12014   need_version=no
12015   need_lib_prefix=no
12016   # OS/2 can only load a DLL with a base name of 8 characters or less.
12017   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12018     v=$($ECHO $release$versuffix | tr -d .-);
12019     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12020     $ECHO $n$v`$shared_ext'
12021   library_names_spec='${libname}_dll.$libext'
12022   dynamic_linker='OS/2 ld.exe'
12023   shlibpath_var=BEGINLIBPATH
12024   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12025   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12026   postinstall_cmds='base_file=`basename \$file`~
12027     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12028     dldir=$destdir/`dirname \$dlpath`~
12029     test -d \$dldir || mkdir -p \$dldir~
12030     $install_prog $dir/$dlname \$dldir/$dlname~
12031     chmod a+x \$dldir/$dlname~
12032     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12033       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12034     fi'
12035   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12036     dlpath=$dir/\$dldll~
12037     $RM \$dlpath'
12038   ;;
12039
12040 osf3* | osf4* | osf5*)
12041   version_type=osf
12042   need_lib_prefix=no
12043   need_version=no
12044   soname_spec='$libname$release$shared_ext$major'
12045   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046   shlibpath_var=LD_LIBRARY_PATH
12047   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12048   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12049   ;;
12050
12051 rdos*)
12052   dynamic_linker=no
12053   ;;
12054
12055 solaris*)
12056   version_type=linux # correct to gnu/linux during the next big refactor
12057   need_lib_prefix=no
12058   need_version=no
12059   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12060   soname_spec='$libname$release$shared_ext$major'
12061   shlibpath_var=LD_LIBRARY_PATH
12062   shlibpath_overrides_runpath=yes
12063   hardcode_into_libs=yes
12064   # ldd complains unless libraries are executable
12065   postinstall_cmds='chmod +x $lib'
12066   ;;
12067
12068 sunos4*)
12069   version_type=sunos
12070   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12071   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12072   shlibpath_var=LD_LIBRARY_PATH
12073   shlibpath_overrides_runpath=yes
12074   if test yes = "$with_gnu_ld"; then
12075     need_lib_prefix=no
12076   fi
12077   need_version=yes
12078   ;;
12079
12080 sysv4 | sysv4.3*)
12081   version_type=linux # correct to gnu/linux during the next big refactor
12082   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12083   soname_spec='$libname$release$shared_ext$major'
12084   shlibpath_var=LD_LIBRARY_PATH
12085   case $host_vendor in
12086     sni)
12087       shlibpath_overrides_runpath=no
12088       need_lib_prefix=no
12089       runpath_var=LD_RUN_PATH
12090       ;;
12091     siemens)
12092       need_lib_prefix=no
12093       ;;
12094     motorola)
12095       need_lib_prefix=no
12096       need_version=no
12097       shlibpath_overrides_runpath=no
12098       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12099       ;;
12100   esac
12101   ;;
12102
12103 sysv4*MP*)
12104   if test -d /usr/nec; then
12105     version_type=linux # correct to gnu/linux during the next big refactor
12106     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12107     soname_spec='$libname$shared_ext.$major'
12108     shlibpath_var=LD_LIBRARY_PATH
12109   fi
12110   ;;
12111
12112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12113   version_type=sco
12114   need_lib_prefix=no
12115   need_version=no
12116   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12117   soname_spec='$libname$release$shared_ext$major'
12118   shlibpath_var=LD_LIBRARY_PATH
12119   shlibpath_overrides_runpath=yes
12120   hardcode_into_libs=yes
12121   if test yes = "$with_gnu_ld"; then
12122     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12123   else
12124     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12125     case $host_os in
12126       sco3.2v5*)
12127         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12128         ;;
12129     esac
12130   fi
12131   sys_lib_dlsearch_path_spec='/usr/lib'
12132   ;;
12133
12134 tpf*)
12135   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12136   version_type=linux # correct to gnu/linux during the next big refactor
12137   need_lib_prefix=no
12138   need_version=no
12139   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12140   shlibpath_var=LD_LIBRARY_PATH
12141   shlibpath_overrides_runpath=no
12142   hardcode_into_libs=yes
12143   ;;
12144
12145 uts4*)
12146   version_type=linux # correct to gnu/linux during the next big refactor
12147   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12148   soname_spec='$libname$release$shared_ext$major'
12149   shlibpath_var=LD_LIBRARY_PATH
12150   ;;
12151
12152 *)
12153   dynamic_linker=no
12154   ;;
12155 esac
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12157 $as_echo "$dynamic_linker" >&6; }
12158 test no = "$dynamic_linker" && can_build_shared=no
12159
12160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12161 if test yes = "$GCC"; then
12162   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12163 fi
12164
12165 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12166   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12167 fi
12168
12169 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12170   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12171 fi
12172
12173 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12174 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12175
12176 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12177 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12178
12179 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12180 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12279 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12280 hardcode_action=
12281 if test -n "$hardcode_libdir_flag_spec" ||
12282    test -n "$runpath_var" ||
12283    test yes = "$hardcode_automatic"; then
12284
12285   # We can hardcode non-existent directories.
12286   if test no != "$hardcode_direct" &&
12287      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12288      # have to relink, otherwise we might link with an installed library
12289      # when we should be linking with a yet-to-be-installed one
12290      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12291      test no != "$hardcode_minus_L"; then
12292     # Linking always hardcodes the temporary library directory.
12293     hardcode_action=relink
12294   else
12295     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12296     hardcode_action=immediate
12297   fi
12298 else
12299   # We cannot hardcode anything, or else we can only hardcode existing
12300   # directories.
12301   hardcode_action=unsupported
12302 fi
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12304 $as_echo "$hardcode_action" >&6; }
12305
12306 if test relink = "$hardcode_action" ||
12307    test yes = "$inherit_rpath"; then
12308   # Fast installation is not supported
12309   enable_fast_install=no
12310 elif test yes = "$shlibpath_overrides_runpath" ||
12311      test no = "$enable_shared"; then
12312   # Fast installation is not necessary
12313   enable_fast_install=needless
12314 fi
12315
12316
12317
12318
12319
12320
12321   if test yes != "$enable_dlopen"; then
12322   enable_dlopen=unknown
12323   enable_dlopen_self=unknown
12324   enable_dlopen_self_static=unknown
12325 else
12326   lt_cv_dlopen=no
12327   lt_cv_dlopen_libs=
12328
12329   case $host_os in
12330   beos*)
12331     lt_cv_dlopen=load_add_on
12332     lt_cv_dlopen_libs=
12333     lt_cv_dlopen_self=yes
12334     ;;
12335
12336   mingw* | pw32* | cegcc*)
12337     lt_cv_dlopen=LoadLibrary
12338     lt_cv_dlopen_libs=
12339     ;;
12340
12341   cygwin*)
12342     lt_cv_dlopen=dlopen
12343     lt_cv_dlopen_libs=
12344     ;;
12345
12346   darwin*)
12347     # if libdl is installed we need to link against it
12348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12349 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12350 if ${ac_cv_lib_dl_dlopen+:} false; then :
12351   $as_echo_n "(cached) " >&6
12352 else
12353   ac_check_lib_save_LIBS=$LIBS
12354 LIBS="-ldl  $LIBS"
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h.  */
12357
12358 /* Override any GCC internal prototype to avoid an error.
12359    Use char because int might match the return type of a GCC
12360    builtin and then its argument prototype would still apply.  */
12361 #ifdef __cplusplus
12362 extern "C"
12363 #endif
12364 char dlopen ();
12365 int
12366 main ()
12367 {
12368 return dlopen ();
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 if ac_fn_c_try_link "$LINENO"; then :
12374   ac_cv_lib_dl_dlopen=yes
12375 else
12376   ac_cv_lib_dl_dlopen=no
12377 fi
12378 rm -f core conftest.err conftest.$ac_objext \
12379     conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12381 fi
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12383 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12384 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12385   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12386 else
12387
12388     lt_cv_dlopen=dyld
12389     lt_cv_dlopen_libs=
12390     lt_cv_dlopen_self=yes
12391
12392 fi
12393
12394     ;;
12395
12396   tpf*)
12397     # Don't try to run any link tests for TPF.  We know it's impossible
12398     # because TPF is a cross-compiler, and we know how we open DSOs.
12399     lt_cv_dlopen=dlopen
12400     lt_cv_dlopen_libs=
12401     lt_cv_dlopen_self=no
12402     ;;
12403
12404   *)
12405     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12406 if test "x$ac_cv_func_shl_load" = xyes; then :
12407   lt_cv_dlopen=shl_load
12408 else
12409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12410 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12411 if ${ac_cv_lib_dld_shl_load+:} false; then :
12412   $as_echo_n "(cached) " >&6
12413 else
12414   ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-ldld  $LIBS"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h.  */
12418
12419 /* Override any GCC internal prototype to avoid an error.
12420    Use char because int might match the return type of a GCC
12421    builtin and then its argument prototype would still apply.  */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 char shl_load ();
12426 int
12427 main ()
12428 {
12429 return shl_load ();
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 if ac_fn_c_try_link "$LINENO"; then :
12435   ac_cv_lib_dld_shl_load=yes
12436 else
12437   ac_cv_lib_dld_shl_load=no
12438 fi
12439 rm -f core conftest.err conftest.$ac_objext \
12440     conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12442 fi
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12444 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12445 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12446   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12447 else
12448   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12449 if test "x$ac_cv_func_dlopen" = xyes; then :
12450   lt_cv_dlopen=dlopen
12451 else
12452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12453 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12454 if ${ac_cv_lib_dl_dlopen+:} false; then :
12455   $as_echo_n "(cached) " >&6
12456 else
12457   ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-ldl  $LIBS"
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h.  */
12461
12462 /* Override any GCC internal prototype to avoid an error.
12463    Use char because int might match the return type of a GCC
12464    builtin and then its argument prototype would still apply.  */
12465 #ifdef __cplusplus
12466 extern "C"
12467 #endif
12468 char dlopen ();
12469 int
12470 main ()
12471 {
12472 return dlopen ();
12473   ;
12474   return 0;
12475 }
12476 _ACEOF
12477 if ac_fn_c_try_link "$LINENO"; then :
12478   ac_cv_lib_dl_dlopen=yes
12479 else
12480   ac_cv_lib_dl_dlopen=no
12481 fi
12482 rm -f core conftest.err conftest.$ac_objext \
12483     conftest$ac_exeext conftest.$ac_ext
12484 LIBS=$ac_check_lib_save_LIBS
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12487 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12488 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12489   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12490 else
12491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12492 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12493 if ${ac_cv_lib_svld_dlopen+:} false; then :
12494   $as_echo_n "(cached) " >&6
12495 else
12496   ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lsvld  $LIBS"
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h.  */
12500
12501 /* Override any GCC internal prototype to avoid an error.
12502    Use char because int might match the return type of a GCC
12503    builtin and then its argument prototype would still apply.  */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 char dlopen ();
12508 int
12509 main ()
12510 {
12511 return dlopen ();
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517   ac_cv_lib_svld_dlopen=yes
12518 else
12519   ac_cv_lib_svld_dlopen=no
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522     conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12524 fi
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12526 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12527 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12528   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12529 else
12530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12531 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12532 if ${ac_cv_lib_dld_dld_link+:} false; then :
12533   $as_echo_n "(cached) " >&6
12534 else
12535   ac_check_lib_save_LIBS=$LIBS
12536 LIBS="-ldld  $LIBS"
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h.  */
12539
12540 /* Override any GCC internal prototype to avoid an error.
12541    Use char because int might match the return type of a GCC
12542    builtin and then its argument prototype would still apply.  */
12543 #ifdef __cplusplus
12544 extern "C"
12545 #endif
12546 char dld_link ();
12547 int
12548 main ()
12549 {
12550 return dld_link ();
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 if ac_fn_c_try_link "$LINENO"; then :
12556   ac_cv_lib_dld_dld_link=yes
12557 else
12558   ac_cv_lib_dld_dld_link=no
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext \
12561     conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12565 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12566 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12567   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12568 fi
12569
12570
12571 fi
12572
12573
12574 fi
12575
12576
12577 fi
12578
12579
12580 fi
12581
12582
12583 fi
12584
12585     ;;
12586   esac
12587
12588   if test no = "$lt_cv_dlopen"; then
12589     enable_dlopen=no
12590   else
12591     enable_dlopen=yes
12592   fi
12593
12594   case $lt_cv_dlopen in
12595   dlopen)
12596     save_CPPFLAGS=$CPPFLAGS
12597     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12598
12599     save_LDFLAGS=$LDFLAGS
12600     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12601
12602     save_LIBS=$LIBS
12603     LIBS="$lt_cv_dlopen_libs $LIBS"
12604
12605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12606 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12607 if ${lt_cv_dlopen_self+:} false; then :
12608   $as_echo_n "(cached) " >&6
12609 else
12610           if test yes = "$cross_compiling"; then :
12611   lt_cv_dlopen_self=cross
12612 else
12613   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12614   lt_status=$lt_dlunknown
12615   cat > conftest.$ac_ext <<_LT_EOF
12616 #line $LINENO "configure"
12617 #include "confdefs.h"
12618
12619 #if HAVE_DLFCN_H
12620 #include <dlfcn.h>
12621 #endif
12622
12623 #include <stdio.h>
12624
12625 #ifdef RTLD_GLOBAL
12626 #  define LT_DLGLOBAL           RTLD_GLOBAL
12627 #else
12628 #  ifdef DL_GLOBAL
12629 #    define LT_DLGLOBAL         DL_GLOBAL
12630 #  else
12631 #    define LT_DLGLOBAL         0
12632 #  endif
12633 #endif
12634
12635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12636    find out it does not work in some platform. */
12637 #ifndef LT_DLLAZY_OR_NOW
12638 #  ifdef RTLD_LAZY
12639 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12640 #  else
12641 #    ifdef DL_LAZY
12642 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12643 #    else
12644 #      ifdef RTLD_NOW
12645 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12646 #      else
12647 #        ifdef DL_NOW
12648 #          define LT_DLLAZY_OR_NOW      DL_NOW
12649 #        else
12650 #          define LT_DLLAZY_OR_NOW      0
12651 #        endif
12652 #      endif
12653 #    endif
12654 #  endif
12655 #endif
12656
12657 /* When -fvisibility=hidden is used, assume the code has been annotated
12658    correspondingly for the symbols needed.  */
12659 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12660 int fnord () __attribute__((visibility("default")));
12661 #endif
12662
12663 int fnord () { return 42; }
12664 int main ()
12665 {
12666   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12667   int status = $lt_dlunknown;
12668
12669   if (self)
12670     {
12671       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12672       else
12673         {
12674           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12675           else puts (dlerror ());
12676         }
12677       /* dlclose (self); */
12678     }
12679   else
12680     puts (dlerror ());
12681
12682   return status;
12683 }
12684 _LT_EOF
12685   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12686   (eval $ac_link) 2>&5
12687   ac_status=$?
12688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12690     (./conftest; exit; ) >&5 2>/dev/null
12691     lt_status=$?
12692     case x$lt_status in
12693       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12694       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12695       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12696     esac
12697   else :
12698     # compilation failed
12699     lt_cv_dlopen_self=no
12700   fi
12701 fi
12702 rm -fr conftest*
12703
12704
12705 fi
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12707 $as_echo "$lt_cv_dlopen_self" >&6; }
12708
12709     if test yes = "$lt_cv_dlopen_self"; then
12710       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12711       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12712 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12713 if ${lt_cv_dlopen_self_static+:} false; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716           if test yes = "$cross_compiling"; then :
12717   lt_cv_dlopen_self_static=cross
12718 else
12719   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12720   lt_status=$lt_dlunknown
12721   cat > conftest.$ac_ext <<_LT_EOF
12722 #line $LINENO "configure"
12723 #include "confdefs.h"
12724
12725 #if HAVE_DLFCN_H
12726 #include <dlfcn.h>
12727 #endif
12728
12729 #include <stdio.h>
12730
12731 #ifdef RTLD_GLOBAL
12732 #  define LT_DLGLOBAL           RTLD_GLOBAL
12733 #else
12734 #  ifdef DL_GLOBAL
12735 #    define LT_DLGLOBAL         DL_GLOBAL
12736 #  else
12737 #    define LT_DLGLOBAL         0
12738 #  endif
12739 #endif
12740
12741 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12742    find out it does not work in some platform. */
12743 #ifndef LT_DLLAZY_OR_NOW
12744 #  ifdef RTLD_LAZY
12745 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12746 #  else
12747 #    ifdef DL_LAZY
12748 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12749 #    else
12750 #      ifdef RTLD_NOW
12751 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12752 #      else
12753 #        ifdef DL_NOW
12754 #          define LT_DLLAZY_OR_NOW      DL_NOW
12755 #        else
12756 #          define LT_DLLAZY_OR_NOW      0
12757 #        endif
12758 #      endif
12759 #    endif
12760 #  endif
12761 #endif
12762
12763 /* When -fvisibility=hidden is used, assume the code has been annotated
12764    correspondingly for the symbols needed.  */
12765 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12766 int fnord () __attribute__((visibility("default")));
12767 #endif
12768
12769 int fnord () { return 42; }
12770 int main ()
12771 {
12772   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12773   int status = $lt_dlunknown;
12774
12775   if (self)
12776     {
12777       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12778       else
12779         {
12780           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12781           else puts (dlerror ());
12782         }
12783       /* dlclose (self); */
12784     }
12785   else
12786     puts (dlerror ());
12787
12788   return status;
12789 }
12790 _LT_EOF
12791   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12792   (eval $ac_link) 2>&5
12793   ac_status=$?
12794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12795   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12796     (./conftest; exit; ) >&5 2>/dev/null
12797     lt_status=$?
12798     case x$lt_status in
12799       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12800       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12801       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12802     esac
12803   else :
12804     # compilation failed
12805     lt_cv_dlopen_self_static=no
12806   fi
12807 fi
12808 rm -fr conftest*
12809
12810
12811 fi
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12813 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12814     fi
12815
12816     CPPFLAGS=$save_CPPFLAGS
12817     LDFLAGS=$save_LDFLAGS
12818     LIBS=$save_LIBS
12819     ;;
12820   esac
12821
12822   case $lt_cv_dlopen_self in
12823   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12824   *) enable_dlopen_self=unknown ;;
12825   esac
12826
12827   case $lt_cv_dlopen_self_static in
12828   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12829   *) enable_dlopen_self_static=unknown ;;
12830   esac
12831 fi
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849 striplib=
12850 old_striplib=
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12852 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12853 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12854   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12855   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12857 $as_echo "yes" >&6; }
12858 else
12859 # FIXME - insert some real tests, host_os isn't really good enough
12860   case $host_os in
12861   darwin*)
12862     if test -n "$STRIP"; then
12863       striplib="$STRIP -x"
12864       old_striplib="$STRIP -S"
12865       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12866 $as_echo "yes" >&6; }
12867     else
12868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 $as_echo "no" >&6; }
12870     fi
12871     ;;
12872   *)
12873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12875     ;;
12876   esac
12877 fi
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890   # Report what library types will actually be built
12891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12892 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12894 $as_echo "$can_build_shared" >&6; }
12895
12896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12897 $as_echo_n "checking whether to build shared libraries... " >&6; }
12898   test no = "$can_build_shared" && enable_shared=no
12899
12900   # On AIX, shared libraries and static libraries use the same namespace, and
12901   # are all built from PIC.
12902   case $host_os in
12903   aix3*)
12904     test yes = "$enable_shared" && enable_static=no
12905     if test -n "$RANLIB"; then
12906       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12907       postinstall_cmds='$RANLIB $lib'
12908     fi
12909     ;;
12910
12911   aix[4-9]*)
12912     if test ia64 != "$host_cpu"; then
12913       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12914       yes,aix,yes) ;;                   # shared object as lib.so file only
12915       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12916       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12917       esac
12918     fi
12919     ;;
12920   esac
12921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12922 $as_echo "$enable_shared" >&6; }
12923
12924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12925 $as_echo_n "checking whether to build static libraries... " >&6; }
12926   # Make sure either enable_shared or enable_static is yes.
12927   test yes = "$enable_shared" || enable_static=yes
12928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12929 $as_echo "$enable_static" >&6; }
12930
12931
12932
12933
12934 fi
12935 ac_ext=c
12936 ac_cpp='$CPP $CPPFLAGS'
12937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12940
12941 CC=$lt_save_CC
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957         ac_config_commands="$ac_config_commands libtool"
12958
12959
12960
12961
12962 # Only expand once:
12963
12964
12965
12966
12967 # Check for library functions that SQLite can optionally use.
12968 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12969 do :
12970   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12971 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12972 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12973   cat >>confdefs.h <<_ACEOF
12974 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12975 _ACEOF
12976
12977 fi
12978 done
12979
12980 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12981 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12982   ac_have_decl=1
12983 else
12984   ac_have_decl=0
12985 fi
12986
12987 cat >>confdefs.h <<_ACEOF
12988 #define HAVE_DECL_STRERROR_R $ac_have_decl
12989 _ACEOF
12990
12991 for ac_func in strerror_r
12992 do :
12993   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12994 if test "x$ac_cv_func_strerror_r" = xyes; then :
12995   cat >>confdefs.h <<_ACEOF
12996 #define HAVE_STRERROR_R 1
12997 _ACEOF
12998
12999 fi
13000 done
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13003 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13004 if ${ac_cv_func_strerror_r_char_p+:} false; then :
13005   $as_echo_n "(cached) " >&6
13006 else
13007
13008     ac_cv_func_strerror_r_char_p=no
13009     if test $ac_cv_have_decl_strerror_r = yes; then
13010       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h.  */
13012 $ac_includes_default
13013 int
13014 main ()
13015 {
13016
13017           char buf[100];
13018           char x = *strerror_r (0, buf, sizeof buf);
13019           char *p = strerror_r (0, buf, sizeof buf);
13020           return !p || x;
13021
13022   ;
13023   return 0;
13024 }
13025 _ACEOF
13026 if ac_fn_c_try_compile "$LINENO"; then :
13027   ac_cv_func_strerror_r_char_p=yes
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030     else
13031       # strerror_r is not declared.  Choose between
13032       # systems that have relatively inaccessible declarations for the
13033       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13034       # former has a strerror_r that returns char*, while the latter
13035       # has a strerror_r that returns `int'.
13036       # This test should segfault on the DEC system.
13037       if test "$cross_compiling" = yes; then :
13038   :
13039 else
13040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h.  */
13042 $ac_includes_default
13043         extern char *strerror_r ();
13044 int
13045 main ()
13046 {
13047 char buf[100];
13048           char x = *strerror_r (0, buf, sizeof buf);
13049           return ! isalpha (x);
13050   ;
13051   return 0;
13052 }
13053 _ACEOF
13054 if ac_fn_c_try_run "$LINENO"; then :
13055   ac_cv_func_strerror_r_char_p=yes
13056 fi
13057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13058   conftest.$ac_objext conftest.beam conftest.$ac_ext
13059 fi
13060
13061     fi
13062
13063 fi
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13065 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13066 if test $ac_cv_func_strerror_r_char_p = yes; then
13067
13068 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13069
13070 fi
13071
13072
13073 ac_config_files="$ac_config_files Makefile sqlite3.pc"
13074
13075 BUILD_CFLAGS=
13076
13077
13078 #-------------------------------------------------------------------------
13079 # Two options to enable readline compatible libraries:
13080 #
13081 #   --enable-editline
13082 #   --enable-readline
13083 #
13084 # Both are enabled by default. If, after command line processing both are
13085 # still enabled, the script searches for editline first and automatically
13086 # disables readline if it is found. So, to use readline explicitly, the
13087 # user must pass "--disable-editline". To disable command line editing
13088 # support altogether, "--disable-editline --disable-readline".
13089 #
13090 # When searching for either library, check for headers before libraries
13091 # as some distros supply packages that contain libraries but not header
13092 # files, which come as a separate development package.
13093 #
13094 # Check whether --enable-editline was given.
13095 if test "${enable_editline+set}" = set; then :
13096   enableval=$enable_editline;
13097 fi
13098
13099 # Check whether --enable-readline was given.
13100 if test "${enable_readline+set}" = set; then :
13101   enableval=$enable_readline;
13102 fi
13103
13104
13105 if  test x"$enable_editline" != xno ; then :
13106
13107   for ac_header in editline/readline.h
13108 do :
13109   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13110 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
13111   cat >>confdefs.h <<_ACEOF
13112 #define HAVE_EDITLINE_READLINE_H 1
13113 _ACEOF
13114
13115     sLIBS=$LIBS
13116     LIBS=""
13117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13118 $as_echo_n "checking for library containing readline... " >&6; }
13119 if ${ac_cv_search_readline+:} false; then :
13120   $as_echo_n "(cached) " >&6
13121 else
13122   ac_func_search_save_LIBS=$LIBS
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h.  */
13125
13126 /* Override any GCC internal prototype to avoid an error.
13127    Use char because int might match the return type of a GCC
13128    builtin and then its argument prototype would still apply.  */
13129 #ifdef __cplusplus
13130 extern "C"
13131 #endif
13132 char readline ();
13133 int
13134 main ()
13135 {
13136 return readline ();
13137   ;
13138   return 0;
13139 }
13140 _ACEOF
13141 for ac_lib in '' edit; do
13142   if test -z "$ac_lib"; then
13143     ac_res="none required"
13144   else
13145     ac_res=-l$ac_lib
13146     LIBS="-l$ac_lib -ltinfo $ac_func_search_save_LIBS"
13147   fi
13148   if ac_fn_c_try_link "$LINENO"; then :
13149   ac_cv_search_readline=$ac_res
13150 fi
13151 rm -f core conftest.err conftest.$ac_objext \
13152     conftest$ac_exeext
13153   if ${ac_cv_search_readline+:} false; then :
13154   break
13155 fi
13156 done
13157 if ${ac_cv_search_readline+:} false; then :
13158
13159 else
13160   ac_cv_search_readline=no
13161 fi
13162 rm conftest.$ac_ext
13163 LIBS=$ac_func_search_save_LIBS
13164 fi
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13166 $as_echo "$ac_cv_search_readline" >&6; }
13167 ac_res=$ac_cv_search_readline
13168 if test "$ac_res" != no; then :
13169   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13170
13171
13172 $as_echo "#define HAVE_EDITLINE 1" >>confdefs.h
13173
13174       READLINE_LIBS="$LIBS -ltinfo"
13175       enable_readline=no
13176
13177 fi
13178
13179     { ac_cv_search_readline=; unset ac_cv_search_readline;}
13180     LIBS=$sLIBS
13181
13182 fi
13183
13184 done
13185
13186
13187 fi
13188
13189 if  test x"$enable_readline" != xno ; then :
13190
13191   for ac_header in readline/readline.h
13192 do :
13193   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13194 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13195   cat >>confdefs.h <<_ACEOF
13196 #define HAVE_READLINE_READLINE_H 1
13197 _ACEOF
13198
13199     sLIBS=$LIBS
13200     LIBS=""
13201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13202 $as_echo_n "checking for library containing tgetent... " >&6; }
13203 if ${ac_cv_search_tgetent+:} false; then :
13204   $as_echo_n "(cached) " >&6
13205 else
13206   ac_func_search_save_LIBS=$LIBS
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h.  */
13209
13210 /* Override any GCC internal prototype to avoid an error.
13211    Use char because int might match the return type of a GCC
13212    builtin and then its argument prototype would still apply.  */
13213 #ifdef __cplusplus
13214 extern "C"
13215 #endif
13216 char tgetent ();
13217 int
13218 main ()
13219 {
13220 return tgetent ();
13221   ;
13222   return 0;
13223 }
13224 _ACEOF
13225 for ac_lib in '' termcap curses ncurses ncursesw; do
13226   if test -z "$ac_lib"; then
13227     ac_res="none required"
13228   else
13229     ac_res=-l$ac_lib
13230     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13231   fi
13232   if ac_fn_c_try_link "$LINENO"; then :
13233   ac_cv_search_tgetent=$ac_res
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext \
13236     conftest$ac_exeext
13237   if ${ac_cv_search_tgetent+:} false; then :
13238   break
13239 fi
13240 done
13241 if ${ac_cv_search_tgetent+:} false; then :
13242
13243 else
13244   ac_cv_search_tgetent=no
13245 fi
13246 rm conftest.$ac_ext
13247 LIBS=$ac_func_search_save_LIBS
13248 fi
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13250 $as_echo "$ac_cv_search_tgetent" >&6; }
13251 ac_res=$ac_cv_search_tgetent
13252 if test "$ac_res" != no; then :
13253   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13254
13255 fi
13256
13257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13258 $as_echo_n "checking for library containing readline... " >&6; }
13259 if ${ac_cv_search_readline+:} false; then :
13260   $as_echo_n "(cached) " >&6
13261 else
13262   ac_func_search_save_LIBS=$LIBS
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h.  */
13265
13266 /* Override any GCC internal prototype to avoid an error.
13267    Use char because int might match the return type of a GCC
13268    builtin and then its argument prototype would still apply.  */
13269 #ifdef __cplusplus
13270 extern "C"
13271 #endif
13272 char readline ();
13273 int
13274 main ()
13275 {
13276 return readline ();
13277   ;
13278   return 0;
13279 }
13280 _ACEOF
13281 for ac_lib in '' readline edit; do
13282   if test -z "$ac_lib"; then
13283     ac_res="none required"
13284   else
13285     ac_res=-l$ac_lib
13286     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13287   fi
13288   if ac_fn_c_try_link "$LINENO"; then :
13289   ac_cv_search_readline=$ac_res
13290 fi
13291 rm -f core conftest.err conftest.$ac_objext \
13292     conftest$ac_exeext
13293   if ${ac_cv_search_readline+:} false; then :
13294   break
13295 fi
13296 done
13297 if ${ac_cv_search_readline+:} false; then :
13298
13299 else
13300   ac_cv_search_readline=no
13301 fi
13302 rm conftest.$ac_ext
13303 LIBS=$ac_func_search_save_LIBS
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13306 $as_echo "$ac_cv_search_readline" >&6; }
13307 ac_res=$ac_cv_search_readline
13308 if test "$ac_res" != no; then :
13309   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13310
13311
13312 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
13313
13314       READLINE_LIBS=$LIBS
13315
13316 fi
13317
13318     LIBS=$sLIBS
13319
13320 fi
13321
13322 done
13323
13324
13325 fi
13326
13327
13328 #-----------------------------------------------------------------------
13329
13330 #-----------------------------------------------------------------------
13331 #   --enable-threadsafe
13332 #
13333 # Check whether --enable-threadsafe was given.
13334 if test "${enable_threadsafe+set}" = set; then :
13335   enableval=$enable_threadsafe;
13336 else
13337   enable_threadsafe=yes
13338 fi
13339
13340 if test x"$enable_threadsafe" == "xno"; then
13341   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_THREADSAFE=0"
13342 else
13343   BUILD_CFLAGS="$BUILD_CFLAGS -D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
13344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13345 $as_echo_n "checking for library containing pthread_create... " >&6; }
13346 if ${ac_cv_search_pthread_create+:} false; then :
13347   $as_echo_n "(cached) " >&6
13348 else
13349   ac_func_search_save_LIBS=$LIBS
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h.  */
13352
13353 /* Override any GCC internal prototype to avoid an error.
13354    Use char because int might match the return type of a GCC
13355    builtin and then its argument prototype would still apply.  */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 char pthread_create ();
13360 int
13361 main ()
13362 {
13363 return pthread_create ();
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 for ac_lib in '' pthread; do
13369   if test -z "$ac_lib"; then
13370     ac_res="none required"
13371   else
13372     ac_res=-l$ac_lib
13373     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13374   fi
13375   if ac_fn_c_try_link "$LINENO"; then :
13376   ac_cv_search_pthread_create=$ac_res
13377 fi
13378 rm -f core conftest.err conftest.$ac_objext \
13379     conftest$ac_exeext
13380   if ${ac_cv_search_pthread_create+:} false; then :
13381   break
13382 fi
13383 done
13384 if ${ac_cv_search_pthread_create+:} false; then :
13385
13386 else
13387   ac_cv_search_pthread_create=no
13388 fi
13389 rm conftest.$ac_ext
13390 LIBS=$ac_func_search_save_LIBS
13391 fi
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13393 $as_echo "$ac_cv_search_pthread_create" >&6; }
13394 ac_res=$ac_cv_search_pthread_create
13395 if test "$ac_res" != no; then :
13396   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13397
13398 fi
13399
13400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
13401 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
13402 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13403   $as_echo_n "(cached) " >&6
13404 else
13405   ac_func_search_save_LIBS=$LIBS
13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h.  */
13408
13409 /* Override any GCC internal prototype to avoid an error.
13410    Use char because int might match the return type of a GCC
13411    builtin and then its argument prototype would still apply.  */
13412 #ifdef __cplusplus
13413 extern "C"
13414 #endif
13415 char pthread_mutexattr_init ();
13416 int
13417 main ()
13418 {
13419 return pthread_mutexattr_init ();
13420   ;
13421   return 0;
13422 }
13423 _ACEOF
13424 for ac_lib in '' pthread; do
13425   if test -z "$ac_lib"; then
13426     ac_res="none required"
13427   else
13428     ac_res=-l$ac_lib
13429     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13430   fi
13431   if ac_fn_c_try_link "$LINENO"; then :
13432   ac_cv_search_pthread_mutexattr_init=$ac_res
13433 fi
13434 rm -f core conftest.err conftest.$ac_objext \
13435     conftest$ac_exeext
13436   if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13437   break
13438 fi
13439 done
13440 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13441
13442 else
13443   ac_cv_search_pthread_mutexattr_init=no
13444 fi
13445 rm conftest.$ac_ext
13446 LIBS=$ac_func_search_save_LIBS
13447 fi
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
13449 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
13450 ac_res=$ac_cv_search_pthread_mutexattr_init
13451 if test "$ac_res" != no; then :
13452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13453
13454 fi
13455
13456 fi
13457 #-----------------------------------------------------------------------
13458
13459 #-----------------------------------------------------------------------
13460 #   --enable-dynamic-extensions
13461 #
13462 # Check whether --enable-dynamic-extensions was given.
13463 if test "${enable_dynamic_extensions+set}" = set; then :
13464   enableval=$enable_dynamic_extensions;
13465 else
13466   enable_dynamic_extensions=yes
13467 fi
13468
13469 if test x"$enable_dynamic_extensions" != "xno"; then
13470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13471 $as_echo_n "checking for library containing dlopen... " >&6; }
13472 if ${ac_cv_search_dlopen+:} false; then :
13473   $as_echo_n "(cached) " >&6
13474 else
13475   ac_func_search_save_LIBS=$LIBS
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h.  */
13478
13479 /* Override any GCC internal prototype to avoid an error.
13480    Use char because int might match the return type of a GCC
13481    builtin and then its argument prototype would still apply.  */
13482 #ifdef __cplusplus
13483 extern "C"
13484 #endif
13485 char dlopen ();
13486 int
13487 main ()
13488 {
13489 return dlopen ();
13490   ;
13491   return 0;
13492 }
13493 _ACEOF
13494 for ac_lib in '' dl; do
13495   if test -z "$ac_lib"; then
13496     ac_res="none required"
13497   else
13498     ac_res=-l$ac_lib
13499     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13500   fi
13501   if ac_fn_c_try_link "$LINENO"; then :
13502   ac_cv_search_dlopen=$ac_res
13503 fi
13504 rm -f core conftest.err conftest.$ac_objext \
13505     conftest$ac_exeext
13506   if ${ac_cv_search_dlopen+:} false; then :
13507   break
13508 fi
13509 done
13510 if ${ac_cv_search_dlopen+:} false; then :
13511
13512 else
13513   ac_cv_search_dlopen=no
13514 fi
13515 rm conftest.$ac_ext
13516 LIBS=$ac_func_search_save_LIBS
13517 fi
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13519 $as_echo "$ac_cv_search_dlopen" >&6; }
13520 ac_res=$ac_cv_search_dlopen
13521 if test "$ac_res" != no; then :
13522   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13523
13524 fi
13525
13526 else
13527   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_OMIT_LOAD_EXTENSION=1"
13528 fi
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
13530 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
13532 $as_echo "$enable_dynamic_extensions" >&6; }
13533 #-----------------------------------------------------------------------
13534
13535 #-----------------------------------------------------------------------
13536 #   --enable-math
13537 #
13538 # Check whether --enable-math was given.
13539 if test "${enable_math+set}" = set; then :
13540   enableval=$enable_math;
13541 else
13542   enable_math=yes
13543 fi
13544
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SQL math functions" >&5
13546 $as_echo_n "checking SQL math functions... " >&6; }
13547 if test x"$enable_math" = "xyes"; then
13548   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_MATH_FUNCTIONS"
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13550 $as_echo "enabled" >&6; }
13551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
13552 $as_echo_n "checking for library containing ceil... " >&6; }
13553 if ${ac_cv_search_ceil+:} false; then :
13554   $as_echo_n "(cached) " >&6
13555 else
13556   ac_func_search_save_LIBS=$LIBS
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h.  */
13559
13560 /* Override any GCC internal prototype to avoid an error.
13561    Use char because int might match the return type of a GCC
13562    builtin and then its argument prototype would still apply.  */
13563 #ifdef __cplusplus
13564 extern "C"
13565 #endif
13566 char ceil ();
13567 int
13568 main ()
13569 {
13570 return ceil ();
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 for ac_lib in '' m; do
13576   if test -z "$ac_lib"; then
13577     ac_res="none required"
13578   else
13579     ac_res=-l$ac_lib
13580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13581   fi
13582   if ac_fn_c_try_link "$LINENO"; then :
13583   ac_cv_search_ceil=$ac_res
13584 fi
13585 rm -f core conftest.err conftest.$ac_objext \
13586     conftest$ac_exeext
13587   if ${ac_cv_search_ceil+:} false; then :
13588   break
13589 fi
13590 done
13591 if ${ac_cv_search_ceil+:} false; then :
13592
13593 else
13594   ac_cv_search_ceil=no
13595 fi
13596 rm conftest.$ac_ext
13597 LIBS=$ac_func_search_save_LIBS
13598 fi
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
13600 $as_echo "$ac_cv_search_ceil" >&6; }
13601 ac_res=$ac_cv_search_ceil
13602 if test "$ac_res" != no; then :
13603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13604
13605 fi
13606
13607 else
13608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13609 $as_echo "disabled" >&6; }
13610 fi
13611 #-----------------------------------------------------------------------
13612
13613 #-----------------------------------------------------------------------
13614 #   --enable-fts4
13615 #
13616 # Check whether --enable-fts4 was given.
13617 if test "${enable_fts4+set}" = set; then :
13618   enableval=$enable_fts4;
13619 else
13620   enable_fts4=yes
13621 fi
13622
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FTS4 extension" >&5
13624 $as_echo_n "checking FTS4 extension... " >&6; }
13625 if test x"$enable_fts4" = "xyes"; then
13626   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS4"
13627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13628 $as_echo "enabled" >&6; }
13629 else
13630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13631 $as_echo "disabled" >&6; }
13632 fi
13633 #-----------------------------------------------------------------------
13634
13635 #-----------------------------------------------------------------------
13636 #   --enable-fts3
13637 #
13638 # Check whether --enable-fts3 was given.
13639 if test "${enable_fts3+set}" = set; then :
13640   enableval=$enable_fts3;
13641 fi
13642
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FTS3 extension" >&5
13644 $as_echo_n "checking FTS3 extension... " >&6; }
13645 if test x"$enable_fts3" = "xyes" -a x"$enable_fts4" = "xno"; then
13646   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS3"
13647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13648 $as_echo "enabled" >&6; }
13649 else
13650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13651 $as_echo "disabled" >&6; }
13652 fi
13653 #-----------------------------------------------------------------------
13654
13655 #-----------------------------------------------------------------------
13656 #   --enable-fts5
13657 #
13658 # Check whether --enable-fts5 was given.
13659 if test "${enable_fts5+set}" = set; then :
13660   enableval=$enable_fts5;
13661 else
13662   enable_fts5=yes
13663 fi
13664
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FTS5 extension" >&5
13666 $as_echo_n "checking FTS5 extension... " >&6; }
13667 if test x"$enable_fts5" = "xyes"; then
13668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13669 $as_echo "enabled" >&6; }
13670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13671 $as_echo_n "checking for library containing log... " >&6; }
13672 if ${ac_cv_search_log+:} false; then :
13673   $as_echo_n "(cached) " >&6
13674 else
13675   ac_func_search_save_LIBS=$LIBS
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h.  */
13678
13679 /* Override any GCC internal prototype to avoid an error.
13680    Use char because int might match the return type of a GCC
13681    builtin and then its argument prototype would still apply.  */
13682 #ifdef __cplusplus
13683 extern "C"
13684 #endif
13685 char log ();
13686 int
13687 main ()
13688 {
13689 return log ();
13690   ;
13691   return 0;
13692 }
13693 _ACEOF
13694 for ac_lib in '' m; do
13695   if test -z "$ac_lib"; then
13696     ac_res="none required"
13697   else
13698     ac_res=-l$ac_lib
13699     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13700   fi
13701   if ac_fn_c_try_link "$LINENO"; then :
13702   ac_cv_search_log=$ac_res
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext \
13705     conftest$ac_exeext
13706   if ${ac_cv_search_log+:} false; then :
13707   break
13708 fi
13709 done
13710 if ${ac_cv_search_log+:} false; then :
13711
13712 else
13713   ac_cv_search_log=no
13714 fi
13715 rm conftest.$ac_ext
13716 LIBS=$ac_func_search_save_LIBS
13717 fi
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13719 $as_echo "$ac_cv_search_log" >&6; }
13720 ac_res=$ac_cv_search_log
13721 if test "$ac_res" != no; then :
13722   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13723
13724 fi
13725
13726   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS5"
13727 else
13728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13729 $as_echo "disabled" >&6; }
13730 fi
13731 #-----------------------------------------------------------------------
13732
13733 #-----------------------------------------------------------------------
13734 #   --enable-json1
13735 #
13736 # Check whether --enable-json1 was given.
13737 if test "${enable_json1+set}" = set; then :
13738   enableval=$enable_json1;
13739 else
13740   enable_json1=yes
13741 fi
13742
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JSON functions" >&5
13744 $as_echo_n "checking JSON functions... " >&6; }
13745 if test x"$enable_json1" = "xyes"; then
13746   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_JSON1"
13747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13748 $as_echo "enabled" >&6; }
13749 else
13750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13751 $as_echo "disabled" >&6; }
13752 fi
13753 #-----------------------------------------------------------------------
13754
13755 #-----------------------------------------------------------------------
13756 #   --enable-rtree
13757 #
13758 # Check whether --enable-rtree was given.
13759 if test "${enable_rtree+set}" = set; then :
13760   enableval=$enable_rtree;
13761 else
13762   enable_rtree=yes
13763 fi
13764
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RTREE extension" >&5
13766 $as_echo_n "checking RTREE extension... " >&6; }
13767 if test x"$enable_rtree" = "xyes"; then
13768   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY"
13769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13770 $as_echo "enabled" >&6; }
13771 else
13772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13773 $as_echo "disabled" >&6; }
13774 fi
13775 #-----------------------------------------------------------------------
13776
13777 #-----------------------------------------------------------------------
13778 #   --enable-session
13779 #
13780 # Check whether --enable-session was given.
13781 if test "${enable_session+set}" = set; then :
13782   enableval=$enable_session;
13783 fi
13784
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Session extension" >&5
13786 $as_echo_n "checking Session extension... " >&6; }
13787 if test x"$enable_session" = "xyes"; then
13788   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK"
13789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13790 $as_echo "enabled" >&6; }
13791 else
13792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13793 $as_echo "disabled" >&6; }
13794 fi
13795 #-----------------------------------------------------------------------
13796
13797 #-----------------------------------------------------------------------
13798 #   --enable-debug
13799 #
13800 # Check whether --enable-debug was given.
13801 if test "${enable_debug+set}" = set; then :
13802   enableval=$enable_debug;
13803 fi
13804
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build type" >&5
13806 $as_echo_n "checking Build type... " >&6; }
13807 if test x"$enable_debug" = "xyes"; then
13808   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_DEBUG -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE"
13809   CFLAGS="-g -O0"
13810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
13811 $as_echo "debug" >&6; }
13812 else
13813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
13814 $as_echo "release" >&6; }
13815 fi
13816 #-----------------------------------------------------------------------
13817
13818 #-----------------------------------------------------------------------
13819 #   --enable-static-shell
13820 #
13821 # Check whether --enable-static-shell was given.
13822 if test "${enable_static_shell+set}" = set; then :
13823   enableval=$enable_static_shell;
13824 else
13825   enable_static_shell=yes
13826 fi
13827
13828 if test x"$enable_static_shell" = "xyes"; then
13829   EXTRA_SHELL_OBJ=sqlite3-sqlite3.$OBJEXT
13830 else
13831   EXTRA_SHELL_OBJ=libsqlite3.la
13832 fi
13833
13834 #-----------------------------------------------------------------------
13835
13836 for ac_func in posix_fallocate
13837 do :
13838   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
13839 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
13840   cat >>confdefs.h <<_ACEOF
13841 #define HAVE_POSIX_FALLOCATE 1
13842 _ACEOF
13843
13844 fi
13845 done
13846
13847 for ac_header in zlib.h
13848 do :
13849   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13850 if test "x$ac_cv_header_zlib_h" = xyes; then :
13851   cat >>confdefs.h <<_ACEOF
13852 #define HAVE_ZLIB_H 1
13853 _ACEOF
13854
13855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
13856 $as_echo_n "checking for library containing deflate... " >&6; }
13857 if ${ac_cv_search_deflate+:} false; then :
13858   $as_echo_n "(cached) " >&6
13859 else
13860   ac_func_search_save_LIBS=$LIBS
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h.  */
13863
13864 /* Override any GCC internal prototype to avoid an error.
13865    Use char because int might match the return type of a GCC
13866    builtin and then its argument prototype would still apply.  */
13867 #ifdef __cplusplus
13868 extern "C"
13869 #endif
13870 char deflate ();
13871 int
13872 main ()
13873 {
13874 return deflate ();
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 for ac_lib in '' z; do
13880   if test -z "$ac_lib"; then
13881     ac_res="none required"
13882   else
13883     ac_res=-l$ac_lib
13884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13885   fi
13886   if ac_fn_c_try_link "$LINENO"; then :
13887   ac_cv_search_deflate=$ac_res
13888 fi
13889 rm -f core conftest.err conftest.$ac_objext \
13890     conftest$ac_exeext
13891   if ${ac_cv_search_deflate+:} false; then :
13892   break
13893 fi
13894 done
13895 if ${ac_cv_search_deflate+:} false; then :
13896
13897 else
13898   ac_cv_search_deflate=no
13899 fi
13900 rm conftest.$ac_ext
13901 LIBS=$ac_func_search_save_LIBS
13902 fi
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
13904 $as_echo "$ac_cv_search_deflate" >&6; }
13905 ac_res=$ac_cv_search_deflate
13906 if test "$ac_res" != no; then :
13907   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13908   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_HAVE_ZLIB"
13909 fi
13910
13911
13912 fi
13913
13914 done
13915
13916
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing system" >&5
13918 $as_echo_n "checking for library containing system... " >&6; }
13919 if ${ac_cv_search_system+:} false; then :
13920   $as_echo_n "(cached) " >&6
13921 else
13922   ac_func_search_save_LIBS=$LIBS
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h.  */
13925
13926 /* Override any GCC internal prototype to avoid an error.
13927    Use char because int might match the return type of a GCC
13928    builtin and then its argument prototype would still apply.  */
13929 #ifdef __cplusplus
13930 extern "C"
13931 #endif
13932 char system ();
13933 int
13934 main ()
13935 {
13936 return system ();
13937   ;
13938   return 0;
13939 }
13940 _ACEOF
13941 for ac_lib in '' ; do
13942   if test -z "$ac_lib"; then
13943     ac_res="none required"
13944   else
13945     ac_res=-l$ac_lib
13946     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13947   fi
13948   if ac_fn_c_try_link "$LINENO"; then :
13949   ac_cv_search_system=$ac_res
13950 fi
13951 rm -f core conftest.err conftest.$ac_objext \
13952     conftest$ac_exeext
13953   if ${ac_cv_search_system+:} false; then :
13954   break
13955 fi
13956 done
13957 if ${ac_cv_search_system+:} false; then :
13958
13959 else
13960   ac_cv_search_system=no
13961 fi
13962 rm conftest.$ac_ext
13963 LIBS=$ac_func_search_save_LIBS
13964 fi
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_system" >&5
13966 $as_echo "$ac_cv_search_system" >&6; }
13967 ac_res=$ac_cv_search_system
13968 if test "$ac_res" != no; then :
13969   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13970
13971 else
13972   SHELL_CFLAGS="-DSQLITE_NOHAVE_SYSTEM"
13973 fi
13974
13975
13976
13977 #-----------------------------------------------------------------------
13978 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
13979 # configure. This option doesn't really add much...
13980 #
13981 #   --enable-tempstore
13982 #
13983 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
13984 #   [--enable-tempstore],
13985 #   [in-memory temporary tables (never, no, yes, always) [default=no]])],
13986 #   [], [enable_tempstore=no])
13987 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
13988 # case "$enable_tempstore" in
13989 #   never )  TEMP_STORE=0 ;;
13990 #   no )     TEMP_STORE=1 ;;
13991 #   always ) TEMP_STORE=3 ;;
13992 #   yes )    TEMP_STORE=3 ;;
13993 #   * )
13994 #     TEMP_STORE=1
13995 #     enable_tempstore=yes
13996 #   ;;
13997 # esac
13998 # AC_MSG_RESULT($enable_tempstore)
13999 # AC_SUBST(TEMP_STORE)
14000 #-----------------------------------------------------------------------
14001
14002 cat >confcache <<\_ACEOF
14003 # This file is a shell script that caches the results of configure
14004 # tests run on this system so they can be shared between configure
14005 # scripts and configure runs, see configure's option --config-cache.
14006 # It is not useful on other systems.  If it contains results you don't
14007 # want to keep, you may remove or edit it.
14008 #
14009 # config.status only pays attention to the cache file if you give it
14010 # the --recheck option to rerun configure.
14011 #
14012 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14013 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14014 # following values.
14015
14016 _ACEOF
14017
14018 # The following way of writing the cache mishandles newlines in values,
14019 # but we know of no workaround that is simple, portable, and efficient.
14020 # So, we kill variables containing newlines.
14021 # Ultrix sh set writes to stderr and can't be redirected directly,
14022 # and sets the high bit in the cache file unless we assign to the vars.
14023 (
14024   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14025     eval ac_val=\$$ac_var
14026     case $ac_val in #(
14027     *${as_nl}*)
14028       case $ac_var in #(
14029       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14030 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14031       esac
14032       case $ac_var in #(
14033       _ | IFS | as_nl) ;; #(
14034       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14035       *) { eval $ac_var=; unset $ac_var;} ;;
14036       esac ;;
14037     esac
14038   done
14039
14040   (set) 2>&1 |
14041     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14042     *${as_nl}ac_space=\ *)
14043       # `set' does not quote correctly, so add quotes: double-quote
14044       # substitution turns \\\\ into \\, and sed turns \\ into \.
14045       sed -n \
14046         "s/'/'\\\\''/g;
14047           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14048       ;; #(
14049     *)
14050       # `set' quotes correctly as required by POSIX, so do not add quotes.
14051       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14052       ;;
14053     esac |
14054     sort
14055 ) |
14056   sed '
14057      /^ac_cv_env_/b end
14058      t clear
14059      :clear
14060      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14061      t end
14062      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14063      :end' >>confcache
14064 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14065   if test -w "$cache_file"; then
14066     if test "x$cache_file" != "x/dev/null"; then
14067       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14068 $as_echo "$as_me: updating cache $cache_file" >&6;}
14069       if test ! -f "$cache_file" || test -h "$cache_file"; then
14070         cat confcache >"$cache_file"
14071       else
14072         case $cache_file in #(
14073         */* | ?:*)
14074           mv -f confcache "$cache_file"$$ &&
14075           mv -f "$cache_file"$$ "$cache_file" ;; #(
14076         *)
14077           mv -f confcache "$cache_file" ;;
14078         esac
14079       fi
14080     fi
14081   else
14082     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14083 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14084   fi
14085 fi
14086 rm -f confcache
14087
14088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14089 # Let make expand exec_prefix.
14090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14091
14092 # Transform confdefs.h into DEFS.
14093 # Protect against shell expansion while executing Makefile rules.
14094 # Protect against Makefile macro expansion.
14095 #
14096 # If the first sed substitution is executed (which looks for macros that
14097 # take arguments), then branch to the quote section.  Otherwise,
14098 # look for a macro that doesn't take arguments.
14099 ac_script='
14100 :mline
14101 /\\$/{
14102  N
14103  s,\\\n,,
14104  b mline
14105 }
14106 t clear
14107 :clear
14108 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14109 t quote
14110 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14111 t quote
14112 b any
14113 :quote
14114 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14115 s/\[/\\&/g
14116 s/\]/\\&/g
14117 s/\$/$$/g
14118 H
14119 :any
14120 ${
14121         g
14122         s/^\n//
14123         s/\n/ /g
14124         p
14125 }
14126 '
14127 DEFS=`sed -n "$ac_script" confdefs.h`
14128
14129
14130 ac_libobjs=
14131 ac_ltlibobjs=
14132 U=
14133 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14134   # 1. Remove the extension, and $U if already installed.
14135   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14136   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14137   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14138   #    will be set to the directory where LIBOBJS objects are built.
14139   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14140   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14141 done
14142 LIBOBJS=$ac_libobjs
14143
14144 LTLIBOBJS=$ac_ltlibobjs
14145
14146
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14148 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14149    if test -n "$am_sleep_pid"; then
14150      # Hide warnings about reused PIDs.
14151      wait $am_sleep_pid 2>/dev/null
14152    fi
14153    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14154 $as_echo "done" >&6; }
14155  if test -n "$EXEEXT"; then
14156   am__EXEEXT_TRUE=
14157   am__EXEEXT_FALSE='#'
14158 else
14159   am__EXEEXT_TRUE='#'
14160   am__EXEEXT_FALSE=
14161 fi
14162
14163 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14164   as_fn_error $? "conditional \"AMDEP\" was never defined.
14165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14166 fi
14167 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14168   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14170 fi
14171 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14172   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14174 fi
14175
14176 : "${CONFIG_STATUS=./config.status}"
14177 ac_write_fail=0
14178 ac_clean_files_save=$ac_clean_files
14179 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14181 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14182 as_write_fail=0
14183 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14184 #! $SHELL
14185 # Generated by $as_me.
14186 # Run this file to recreate the current configuration.
14187 # Compiler output produced by configure, useful for debugging
14188 # configure, is in config.log if it exists.
14189
14190 debug=false
14191 ac_cs_recheck=false
14192 ac_cs_silent=false
14193
14194 SHELL=\${CONFIG_SHELL-$SHELL}
14195 export SHELL
14196 _ASEOF
14197 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14198 ## -------------------- ##
14199 ## M4sh Initialization. ##
14200 ## -------------------- ##
14201
14202 # Be more Bourne compatible
14203 DUALCASE=1; export DUALCASE # for MKS sh
14204 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14205   emulate sh
14206   NULLCMD=:
14207   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14208   # is contrary to our usage.  Disable this feature.
14209   alias -g '${1+"$@"}'='"$@"'
14210   setopt NO_GLOB_SUBST
14211 else
14212   case `(set -o) 2>/dev/null` in #(
14213   *posix*) :
14214     set -o posix ;; #(
14215   *) :
14216      ;;
14217 esac
14218 fi
14219
14220
14221 as_nl='
14222 '
14223 export as_nl
14224 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14225 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14228 # Prefer a ksh shell builtin over an external printf program on Solaris,
14229 # but without wasting forks for bash or zsh.
14230 if test -z "$BASH_VERSION$ZSH_VERSION" \
14231     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14232   as_echo='print -r --'
14233   as_echo_n='print -rn --'
14234 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14235   as_echo='printf %s\n'
14236   as_echo_n='printf %s'
14237 else
14238   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14239     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14240     as_echo_n='/usr/ucb/echo -n'
14241   else
14242     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14243     as_echo_n_body='eval
14244       arg=$1;
14245       case $arg in #(
14246       *"$as_nl"*)
14247         expr "X$arg" : "X\\(.*\\)$as_nl";
14248         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14249       esac;
14250       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14251     '
14252     export as_echo_n_body
14253     as_echo_n='sh -c $as_echo_n_body as_echo'
14254   fi
14255   export as_echo_body
14256   as_echo='sh -c $as_echo_body as_echo'
14257 fi
14258
14259 # The user is always right.
14260 if test "${PATH_SEPARATOR+set}" != set; then
14261   PATH_SEPARATOR=:
14262   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14263     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14264       PATH_SEPARATOR=';'
14265   }
14266 fi
14267
14268
14269 # IFS
14270 # We need space, tab and new line, in precisely that order.  Quoting is
14271 # there to prevent editors from complaining about space-tab.
14272 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14273 # splitting by setting IFS to empty value.)
14274 IFS=" ""        $as_nl"
14275
14276 # Find who we are.  Look in the path if we contain no directory separator.
14277 as_myself=
14278 case $0 in #((
14279   *[\\/]* ) as_myself=$0 ;;
14280   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281 for as_dir in $PATH
14282 do
14283   IFS=$as_save_IFS
14284   test -z "$as_dir" && as_dir=.
14285     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14286   done
14287 IFS=$as_save_IFS
14288
14289      ;;
14290 esac
14291 # We did not find ourselves, most probably we were run as `sh COMMAND'
14292 # in which case we are not to be found in the path.
14293 if test "x$as_myself" = x; then
14294   as_myself=$0
14295 fi
14296 if test ! -f "$as_myself"; then
14297   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14298   exit 1
14299 fi
14300
14301 # Unset variables that we do not need and which cause bugs (e.g. in
14302 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14303 # suppresses any "Segmentation fault" message there.  '((' could
14304 # trigger a bug in pdksh 5.2.14.
14305 for as_var in BASH_ENV ENV MAIL MAILPATH
14306 do eval test x\${$as_var+set} = xset \
14307   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14308 done
14309 PS1='$ '
14310 PS2='> '
14311 PS4='+ '
14312
14313 # NLS nuisances.
14314 LC_ALL=C
14315 export LC_ALL
14316 LANGUAGE=C
14317 export LANGUAGE
14318
14319 # CDPATH.
14320 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14321
14322
14323 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14324 # ----------------------------------------
14325 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14326 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14327 # script with STATUS, using 1 if that was 0.
14328 as_fn_error ()
14329 {
14330   as_status=$1; test $as_status -eq 0 && as_status=1
14331   if test "$4"; then
14332     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14333     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14334   fi
14335   $as_echo "$as_me: error: $2" >&2
14336   as_fn_exit $as_status
14337 } # as_fn_error
14338
14339
14340 # as_fn_set_status STATUS
14341 # -----------------------
14342 # Set $? to STATUS, without forking.
14343 as_fn_set_status ()
14344 {
14345   return $1
14346 } # as_fn_set_status
14347
14348 # as_fn_exit STATUS
14349 # -----------------
14350 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14351 as_fn_exit ()
14352 {
14353   set +e
14354   as_fn_set_status $1
14355   exit $1
14356 } # as_fn_exit
14357
14358 # as_fn_unset VAR
14359 # ---------------
14360 # Portably unset VAR.
14361 as_fn_unset ()
14362 {
14363   { eval $1=; unset $1;}
14364 }
14365 as_unset=as_fn_unset
14366 # as_fn_append VAR VALUE
14367 # ----------------------
14368 # Append the text in VALUE to the end of the definition contained in VAR. Take
14369 # advantage of any shell optimizations that allow amortized linear growth over
14370 # repeated appends, instead of the typical quadratic growth present in naive
14371 # implementations.
14372 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14373   eval 'as_fn_append ()
14374   {
14375     eval $1+=\$2
14376   }'
14377 else
14378   as_fn_append ()
14379   {
14380     eval $1=\$$1\$2
14381   }
14382 fi # as_fn_append
14383
14384 # as_fn_arith ARG...
14385 # ------------------
14386 # Perform arithmetic evaluation on the ARGs, and store the result in the
14387 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14388 # must be portable across $(()) and expr.
14389 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14390   eval 'as_fn_arith ()
14391   {
14392     as_val=$(( $* ))
14393   }'
14394 else
14395   as_fn_arith ()
14396   {
14397     as_val=`expr "$@" || test $? -eq 1`
14398   }
14399 fi # as_fn_arith
14400
14401
14402 if expr a : '\(a\)' >/dev/null 2>&1 &&
14403    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14404   as_expr=expr
14405 else
14406   as_expr=false
14407 fi
14408
14409 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14410   as_basename=basename
14411 else
14412   as_basename=false
14413 fi
14414
14415 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14416   as_dirname=dirname
14417 else
14418   as_dirname=false
14419 fi
14420
14421 as_me=`$as_basename -- "$0" ||
14422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14423          X"$0" : 'X\(//\)$' \| \
14424          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14425 $as_echo X/"$0" |
14426     sed '/^.*\/\([^/][^/]*\)\/*$/{
14427             s//\1/
14428             q
14429           }
14430           /^X\/\(\/\/\)$/{
14431             s//\1/
14432             q
14433           }
14434           /^X\/\(\/\).*/{
14435             s//\1/
14436             q
14437           }
14438           s/.*/./; q'`
14439
14440 # Avoid depending upon Character Ranges.
14441 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14442 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14443 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14444 as_cr_digits='0123456789'
14445 as_cr_alnum=$as_cr_Letters$as_cr_digits
14446
14447 ECHO_C= ECHO_N= ECHO_T=
14448 case `echo -n x` in #(((((
14449 -n*)
14450   case `echo 'xy\c'` in
14451   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14452   xy)  ECHO_C='\c';;
14453   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14454        ECHO_T=' ';;
14455   esac;;
14456 *)
14457   ECHO_N='-n';;
14458 esac
14459
14460 rm -f conf$$ conf$$.exe conf$$.file
14461 if test -d conf$$.dir; then
14462   rm -f conf$$.dir/conf$$.file
14463 else
14464   rm -f conf$$.dir
14465   mkdir conf$$.dir 2>/dev/null
14466 fi
14467 if (echo >conf$$.file) 2>/dev/null; then
14468   if ln -s conf$$.file conf$$ 2>/dev/null; then
14469     as_ln_s='ln -s'
14470     # ... but there are two gotchas:
14471     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14472     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14473     # In both cases, we have to default to `cp -pR'.
14474     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14475       as_ln_s='cp -pR'
14476   elif ln conf$$.file conf$$ 2>/dev/null; then
14477     as_ln_s=ln
14478   else
14479     as_ln_s='cp -pR'
14480   fi
14481 else
14482   as_ln_s='cp -pR'
14483 fi
14484 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14485 rmdir conf$$.dir 2>/dev/null
14486
14487
14488 # as_fn_mkdir_p
14489 # -------------
14490 # Create "$as_dir" as a directory, including parents if necessary.
14491 as_fn_mkdir_p ()
14492 {
14493
14494   case $as_dir in #(
14495   -*) as_dir=./$as_dir;;
14496   esac
14497   test -d "$as_dir" || eval $as_mkdir_p || {
14498     as_dirs=
14499     while :; do
14500       case $as_dir in #(
14501       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14502       *) as_qdir=$as_dir;;
14503       esac
14504       as_dirs="'$as_qdir' $as_dirs"
14505       as_dir=`$as_dirname -- "$as_dir" ||
14506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14507          X"$as_dir" : 'X\(//\)[^/]' \| \
14508          X"$as_dir" : 'X\(//\)$' \| \
14509          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14510 $as_echo X"$as_dir" |
14511     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14512             s//\1/
14513             q
14514           }
14515           /^X\(\/\/\)[^/].*/{
14516             s//\1/
14517             q
14518           }
14519           /^X\(\/\/\)$/{
14520             s//\1/
14521             q
14522           }
14523           /^X\(\/\).*/{
14524             s//\1/
14525             q
14526           }
14527           s/.*/./; q'`
14528       test -d "$as_dir" && break
14529     done
14530     test -z "$as_dirs" || eval "mkdir $as_dirs"
14531   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14532
14533
14534 } # as_fn_mkdir_p
14535 if mkdir -p . 2>/dev/null; then
14536   as_mkdir_p='mkdir -p "$as_dir"'
14537 else
14538   test -d ./-p && rmdir ./-p
14539   as_mkdir_p=false
14540 fi
14541
14542
14543 # as_fn_executable_p FILE
14544 # -----------------------
14545 # Test if FILE is an executable regular file.
14546 as_fn_executable_p ()
14547 {
14548   test -f "$1" && test -x "$1"
14549 } # as_fn_executable_p
14550 as_test_x='test -x'
14551 as_executable_p=as_fn_executable_p
14552
14553 # Sed expression to map a string onto a valid CPP name.
14554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14555
14556 # Sed expression to map a string onto a valid variable name.
14557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14558
14559
14560 exec 6>&1
14561 ## ----------------------------------- ##
14562 ## Main body of $CONFIG_STATUS script. ##
14563 ## ----------------------------------- ##
14564 _ASEOF
14565 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14566
14567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14568 # Save the log message, to keep $0 and so on meaningful, and to
14569 # report actual input values of CONFIG_FILES etc. instead of their
14570 # values after options handling.
14571 ac_log="
14572 This file was extended by sqlite $as_me 3.35.5, which was
14573 generated by GNU Autoconf 2.69.  Invocation command line was
14574
14575   CONFIG_FILES    = $CONFIG_FILES
14576   CONFIG_HEADERS  = $CONFIG_HEADERS
14577   CONFIG_LINKS    = $CONFIG_LINKS
14578   CONFIG_COMMANDS = $CONFIG_COMMANDS
14579   $ $0 $@
14580
14581 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14582 "
14583
14584 _ACEOF
14585
14586 case $ac_config_files in *"
14587 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14588 esac
14589
14590
14591
14592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14593 # Files that config.status was made for.
14594 config_files="$ac_config_files"
14595 config_commands="$ac_config_commands"
14596
14597 _ACEOF
14598
14599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14600 ac_cs_usage="\
14601 \`$as_me' instantiates files and other configuration actions
14602 from templates according to the current configuration.  Unless the files
14603 and actions are specified as TAGs, all are instantiated by default.
14604
14605 Usage: $0 [OPTION]... [TAG]...
14606
14607   -h, --help       print this help, then exit
14608   -V, --version    print version number and configuration settings, then exit
14609       --config     print configuration, then exit
14610   -q, --quiet, --silent
14611                    do not print progress messages
14612   -d, --debug      don't remove temporary files
14613       --recheck    update $as_me by reconfiguring in the same conditions
14614       --file=FILE[:TEMPLATE]
14615                    instantiate the configuration file FILE
14616
14617 Configuration files:
14618 $config_files
14619
14620 Configuration commands:
14621 $config_commands
14622
14623 Report bugs to <http://www.sqlite.org>."
14624
14625 _ACEOF
14626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14627 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14628 ac_cs_version="\\
14629 sqlite config.status 3.35.5
14630 configured by $0, generated by GNU Autoconf 2.69,
14631   with options \\"\$ac_cs_config\\"
14632
14633 Copyright (C) 2012 Free Software Foundation, Inc.
14634 This config.status script is free software; the Free Software Foundation
14635 gives unlimited permission to copy, distribute and modify it."
14636
14637 ac_pwd='$ac_pwd'
14638 srcdir='$srcdir'
14639 INSTALL='$INSTALL'
14640 MKDIR_P='$MKDIR_P'
14641 AWK='$AWK'
14642 test -n "\$AWK" || AWK=awk
14643 _ACEOF
14644
14645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14646 # The default lists apply if the user does not specify any file.
14647 ac_need_defaults=:
14648 while test $# != 0
14649 do
14650   case $1 in
14651   --*=?*)
14652     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14653     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14654     ac_shift=:
14655     ;;
14656   --*=)
14657     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14658     ac_optarg=
14659     ac_shift=:
14660     ;;
14661   *)
14662     ac_option=$1
14663     ac_optarg=$2
14664     ac_shift=shift
14665     ;;
14666   esac
14667
14668   case $ac_option in
14669   # Handling of the options.
14670   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14671     ac_cs_recheck=: ;;
14672   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14673     $as_echo "$ac_cs_version"; exit ;;
14674   --config | --confi | --conf | --con | --co | --c )
14675     $as_echo "$ac_cs_config"; exit ;;
14676   --debug | --debu | --deb | --de | --d | -d )
14677     debug=: ;;
14678   --file | --fil | --fi | --f )
14679     $ac_shift
14680     case $ac_optarg in
14681     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14682     '') as_fn_error $? "missing file argument" ;;
14683     esac
14684     as_fn_append CONFIG_FILES " '$ac_optarg'"
14685     ac_need_defaults=false;;
14686   --he | --h |  --help | --hel | -h )
14687     $as_echo "$ac_cs_usage"; exit ;;
14688   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14689   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14690     ac_cs_silent=: ;;
14691
14692   # This is an error.
14693   -*) as_fn_error $? "unrecognized option: \`$1'
14694 Try \`$0 --help' for more information." ;;
14695
14696   *) as_fn_append ac_config_targets " $1"
14697      ac_need_defaults=false ;;
14698
14699   esac
14700   shift
14701 done
14702
14703 ac_configure_extra_args=
14704
14705 if $ac_cs_silent; then
14706   exec 6>/dev/null
14707   ac_configure_extra_args="$ac_configure_extra_args --silent"
14708 fi
14709
14710 _ACEOF
14711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14712 if \$ac_cs_recheck; then
14713   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14714   shift
14715   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14716   CONFIG_SHELL='$SHELL'
14717   export CONFIG_SHELL
14718   exec "\$@"
14719 fi
14720
14721 _ACEOF
14722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14723 exec 5>>config.log
14724 {
14725   echo
14726   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14727 ## Running $as_me. ##
14728 _ASBOX
14729   $as_echo "$ac_log"
14730 } >&5
14731
14732 _ACEOF
14733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14734 #
14735 # INIT-COMMANDS
14736 #
14737 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14738
14739
14740 # The HP-UX ksh and POSIX shell print the target directory to stdout
14741 # if CDPATH is set.
14742 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14743
14744 sed_quote_subst='$sed_quote_subst'
14745 double_quote_subst='$double_quote_subst'
14746 delay_variable_subst='$delay_variable_subst'
14747 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14748 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14749 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14750 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14751 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14752 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14753 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14754 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14755 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14756 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14757 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14758 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14759 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14760 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14761 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14762 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14763 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14764 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14765 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14766 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14767 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14768 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14769 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14770 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14771 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14772 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14773 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14774 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14775 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14776 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14777 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14778 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14779 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14780 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14781 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14782 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14783 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14784 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14785 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14786 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14787 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14788 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14789 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14790 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14791 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14792 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14793 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14794 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14795 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14796 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14797 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14798 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14799 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14800 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14801 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14802 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14803 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14804 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14805 lt_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"`'
14806 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14807 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14808 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14809 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14810 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14811 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14812 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14813 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14814 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14815 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14816 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14817 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14818 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14819 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14820 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14821 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14822 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14823 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14824 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14825 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14826 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14827 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14828 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14829 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14830 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14831 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14832 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14833 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14834 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14835 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14836 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14837 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14838 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14839 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14840 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14841 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14842 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14843 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14844 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14845 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14846 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14847 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14848 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14849 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14850 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14851 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14852 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14853 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14854 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14855 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14856 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14857 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14858 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14859 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14860 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14861 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14862 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14863 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14864 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14865 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14866 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14867 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14868 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14869 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14870 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14871 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14872 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14873 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14874 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14875 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14876 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14877 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14878 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14879 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14880 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14881 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14882
14883 LTCC='$LTCC'
14884 LTCFLAGS='$LTCFLAGS'
14885 compiler='$compiler_DEFAULT'
14886
14887 # A function that is used when there is no print builtin or printf.
14888 func_fallback_echo ()
14889 {
14890   eval 'cat <<_LTECHO_EOF
14891 \$1
14892 _LTECHO_EOF'
14893 }
14894
14895 # Quote evaled strings.
14896 for var in SHELL \
14897 ECHO \
14898 PATH_SEPARATOR \
14899 SED \
14900 GREP \
14901 EGREP \
14902 FGREP \
14903 LD \
14904 NM \
14905 LN_S \
14906 lt_SP2NL \
14907 lt_NL2SP \
14908 reload_flag \
14909 OBJDUMP \
14910 deplibs_check_method \
14911 file_magic_cmd \
14912 file_magic_glob \
14913 want_nocaseglob \
14914 DLLTOOL \
14915 sharedlib_from_linklib_cmd \
14916 AR \
14917 AR_FLAGS \
14918 archiver_list_spec \
14919 STRIP \
14920 RANLIB \
14921 CC \
14922 CFLAGS \
14923 compiler \
14924 lt_cv_sys_global_symbol_pipe \
14925 lt_cv_sys_global_symbol_to_cdecl \
14926 lt_cv_sys_global_symbol_to_import \
14927 lt_cv_sys_global_symbol_to_c_name_address \
14928 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14929 lt_cv_nm_interface \
14930 nm_file_list_spec \
14931 lt_cv_truncate_bin \
14932 lt_prog_compiler_no_builtin_flag \
14933 lt_prog_compiler_pic \
14934 lt_prog_compiler_wl \
14935 lt_prog_compiler_static \
14936 lt_cv_prog_compiler_c_o \
14937 need_locks \
14938 MANIFEST_TOOL \
14939 DSYMUTIL \
14940 NMEDIT \
14941 LIPO \
14942 OTOOL \
14943 OTOOL64 \
14944 shrext_cmds \
14945 export_dynamic_flag_spec \
14946 whole_archive_flag_spec \
14947 compiler_needs_object \
14948 with_gnu_ld \
14949 allow_undefined_flag \
14950 no_undefined_flag \
14951 hardcode_libdir_flag_spec \
14952 hardcode_libdir_separator \
14953 exclude_expsyms \
14954 include_expsyms \
14955 file_list_spec \
14956 variables_saved_for_relink \
14957 libname_spec \
14958 library_names_spec \
14959 soname_spec \
14960 install_override_mode \
14961 finish_eval \
14962 old_striplib \
14963 striplib; do
14964     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14965     *[\\\\\\\`\\"\\\$]*)
14966       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14967       ;;
14968     *)
14969       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14970       ;;
14971     esac
14972 done
14973
14974 # Double-quote double-evaled strings.
14975 for var in reload_cmds \
14976 old_postinstall_cmds \
14977 old_postuninstall_cmds \
14978 old_archive_cmds \
14979 extract_expsyms_cmds \
14980 old_archive_from_new_cmds \
14981 old_archive_from_expsyms_cmds \
14982 archive_cmds \
14983 archive_expsym_cmds \
14984 module_cmds \
14985 module_expsym_cmds \
14986 export_symbols_cmds \
14987 prelink_cmds \
14988 postlink_cmds \
14989 postinstall_cmds \
14990 postuninstall_cmds \
14991 finish_cmds \
14992 sys_lib_search_path_spec \
14993 configure_time_dlsearch_path \
14994 configure_time_lt_sys_library_path; do
14995     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14996     *[\\\\\\\`\\"\\\$]*)
14997       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14998       ;;
14999     *)
15000       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15001       ;;
15002     esac
15003 done
15004
15005 ac_aux_dir='$ac_aux_dir'
15006
15007 # See if we are running on zsh, and set the options that allow our
15008 # commands through without removal of \ escapes INIT.
15009 if test -n "\${ZSH_VERSION+set}"; then
15010    setopt NO_GLOB_SUBST
15011 fi
15012
15013
15014     PACKAGE='$PACKAGE'
15015     VERSION='$VERSION'
15016     RM='$RM'
15017     ofile='$ofile'
15018
15019
15020
15021
15022 _ACEOF
15023
15024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15025
15026 # Handling of arguments.
15027 for ac_config_target in $ac_config_targets
15028 do
15029   case $ac_config_target in
15030     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15031     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15032     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15033     "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
15034
15035   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15036   esac
15037 done
15038
15039
15040 # If the user did not use the arguments to specify the items to instantiate,
15041 # then the envvar interface is used.  Set only those that are not.
15042 # We use the long form for the default assignment because of an extremely
15043 # bizarre bug on SunOS 4.1.3.
15044 if $ac_need_defaults; then
15045   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15046   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15047 fi
15048
15049 # Have a temporary directory for convenience.  Make it in the build tree
15050 # simply because there is no reason against having it here, and in addition,
15051 # creating and moving files from /tmp can sometimes cause problems.
15052 # Hook for its removal unless debugging.
15053 # Note that there is a small window in which the directory will not be cleaned:
15054 # after its creation but before its name has been assigned to `$tmp'.
15055 $debug ||
15056 {
15057   tmp= ac_tmp=
15058   trap 'exit_status=$?
15059   : "${ac_tmp:=$tmp}"
15060   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15061 ' 0
15062   trap 'as_fn_exit 1' 1 2 13 15
15063 }
15064 # Create a (secure) tmp directory for tmp files.
15065
15066 {
15067   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15068   test -d "$tmp"
15069 }  ||
15070 {
15071   tmp=./conf$$-$RANDOM
15072   (umask 077 && mkdir "$tmp")
15073 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15074 ac_tmp=$tmp
15075
15076 # Set up the scripts for CONFIG_FILES section.
15077 # No need to generate them if there are no CONFIG_FILES.
15078 # This happens for instance with `./config.status config.h'.
15079 if test -n "$CONFIG_FILES"; then
15080
15081
15082 ac_cr=`echo X | tr X '\015'`
15083 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15084 # But we know of no other shell where ac_cr would be empty at this
15085 # point, so we can use a bashism as a fallback.
15086 if test "x$ac_cr" = x; then
15087   eval ac_cr=\$\'\\r\'
15088 fi
15089 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15090 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15091   ac_cs_awk_cr='\\r'
15092 else
15093   ac_cs_awk_cr=$ac_cr
15094 fi
15095
15096 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15097 _ACEOF
15098
15099
15100 {
15101   echo "cat >conf$$subs.awk <<_ACEOF" &&
15102   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15103   echo "_ACEOF"
15104 } >conf$$subs.sh ||
15105   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15106 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15107 ac_delim='%!_!# '
15108 for ac_last_try in false false false false false :; do
15109   . ./conf$$subs.sh ||
15110     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15111
15112   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15113   if test $ac_delim_n = $ac_delim_num; then
15114     break
15115   elif $ac_last_try; then
15116     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15117   else
15118     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15119   fi
15120 done
15121 rm -f conf$$subs.sh
15122
15123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15124 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15125 _ACEOF
15126 sed -n '
15127 h
15128 s/^/S["/; s/!.*/"]=/
15129 p
15130 g
15131 s/^[^!]*!//
15132 :repl
15133 t repl
15134 s/'"$ac_delim"'$//
15135 t delim
15136 :nl
15137 h
15138 s/\(.\{148\}\)..*/\1/
15139 t more1
15140 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15141 p
15142 n
15143 b repl
15144 :more1
15145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15146 p
15147 g
15148 s/.\{148\}//
15149 t nl
15150 :delim
15151 h
15152 s/\(.\{148\}\)..*/\1/
15153 t more2
15154 s/["\\]/\\&/g; s/^/"/; s/$/"/
15155 p
15156 b
15157 :more2
15158 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15159 p
15160 g
15161 s/.\{148\}//
15162 t delim
15163 ' <conf$$subs.awk | sed '
15164 /^[^""]/{
15165   N
15166   s/\n//
15167 }
15168 ' >>$CONFIG_STATUS || ac_write_fail=1
15169 rm -f conf$$subs.awk
15170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171 _ACAWK
15172 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15173   for (key in S) S_is_set[key] = 1
15174   FS = "\a"
15175
15176 }
15177 {
15178   line = $ 0
15179   nfields = split(line, field, "@")
15180   substed = 0
15181   len = length(field[1])
15182   for (i = 2; i < nfields; i++) {
15183     key = field[i]
15184     keylen = length(key)
15185     if (S_is_set[key]) {
15186       value = S[key]
15187       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15188       len += length(value) + length(field[++i])
15189       substed = 1
15190     } else
15191       len += 1 + keylen
15192   }
15193
15194   print line
15195 }
15196
15197 _ACAWK
15198 _ACEOF
15199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15200 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15201   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15202 else
15203   cat
15204 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15205   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15206 _ACEOF
15207
15208 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15209 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15210 # trailing colons and then remove the whole line if VPATH becomes empty
15211 # (actually we leave an empty line to preserve line numbers).
15212 if test "x$srcdir" = x.; then
15213   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15214 h
15215 s///
15216 s/^/:/
15217 s/[      ]*$/:/
15218 s/:\$(srcdir):/:/g
15219 s/:\${srcdir}:/:/g
15220 s/:@srcdir@:/:/g
15221 s/^:*//
15222 s/:*$//
15223 x
15224 s/\(=[   ]*\).*/\1/
15225 G
15226 s/\n//
15227 s/^[^=]*=[       ]*$//
15228 }'
15229 fi
15230
15231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15232 fi # test -n "$CONFIG_FILES"
15233
15234
15235 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
15236 shift
15237 for ac_tag
15238 do
15239   case $ac_tag in
15240   :[FHLC]) ac_mode=$ac_tag; continue;;
15241   esac
15242   case $ac_mode$ac_tag in
15243   :[FHL]*:*);;
15244   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15245   :[FH]-) ac_tag=-:-;;
15246   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15247   esac
15248   ac_save_IFS=$IFS
15249   IFS=:
15250   set x $ac_tag
15251   IFS=$ac_save_IFS
15252   shift
15253   ac_file=$1
15254   shift
15255
15256   case $ac_mode in
15257   :L) ac_source=$1;;
15258   :[FH])
15259     ac_file_inputs=
15260     for ac_f
15261     do
15262       case $ac_f in
15263       -) ac_f="$ac_tmp/stdin";;
15264       *) # Look for the file first in the build tree, then in the source tree
15265          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15266          # because $ac_f cannot contain `:'.
15267          test -f "$ac_f" ||
15268            case $ac_f in
15269            [\\/$]*) false;;
15270            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15271            esac ||
15272            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15273       esac
15274       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15275       as_fn_append ac_file_inputs " '$ac_f'"
15276     done
15277
15278     # Let's still pretend it is `configure' which instantiates (i.e., don't
15279     # use $as_me), people would be surprised to read:
15280     #    /* config.h.  Generated by config.status.  */
15281     configure_input='Generated from '`
15282           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15283         `' by configure.'
15284     if test x"$ac_file" != x-; then
15285       configure_input="$ac_file.  $configure_input"
15286       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15287 $as_echo "$as_me: creating $ac_file" >&6;}
15288     fi
15289     # Neutralize special characters interpreted by sed in replacement strings.
15290     case $configure_input in #(
15291     *\&* | *\|* | *\\* )
15292        ac_sed_conf_input=`$as_echo "$configure_input" |
15293        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15294     *) ac_sed_conf_input=$configure_input;;
15295     esac
15296
15297     case $ac_tag in
15298     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15299       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15300     esac
15301     ;;
15302   esac
15303
15304   ac_dir=`$as_dirname -- "$ac_file" ||
15305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15306          X"$ac_file" : 'X\(//\)[^/]' \| \
15307          X"$ac_file" : 'X\(//\)$' \| \
15308          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15309 $as_echo X"$ac_file" |
15310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15311             s//\1/
15312             q
15313           }
15314           /^X\(\/\/\)[^/].*/{
15315             s//\1/
15316             q
15317           }
15318           /^X\(\/\/\)$/{
15319             s//\1/
15320             q
15321           }
15322           /^X\(\/\).*/{
15323             s//\1/
15324             q
15325           }
15326           s/.*/./; q'`
15327   as_dir="$ac_dir"; as_fn_mkdir_p
15328   ac_builddir=.
15329
15330 case "$ac_dir" in
15331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15332 *)
15333   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15334   # A ".." for each directory in $ac_dir_suffix.
15335   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15336   case $ac_top_builddir_sub in
15337   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15338   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15339   esac ;;
15340 esac
15341 ac_abs_top_builddir=$ac_pwd
15342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15343 # for backward compatibility:
15344 ac_top_builddir=$ac_top_build_prefix
15345
15346 case $srcdir in
15347   .)  # We are building in place.
15348     ac_srcdir=.
15349     ac_top_srcdir=$ac_top_builddir_sub
15350     ac_abs_top_srcdir=$ac_pwd ;;
15351   [\\/]* | ?:[\\/]* )  # Absolute name.
15352     ac_srcdir=$srcdir$ac_dir_suffix;
15353     ac_top_srcdir=$srcdir
15354     ac_abs_top_srcdir=$srcdir ;;
15355   *) # Relative name.
15356     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15357     ac_top_srcdir=$ac_top_build_prefix$srcdir
15358     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15359 esac
15360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15361
15362
15363   case $ac_mode in
15364   :F)
15365   #
15366   # CONFIG_FILE
15367   #
15368
15369   case $INSTALL in
15370   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15371   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15372   esac
15373   ac_MKDIR_P=$MKDIR_P
15374   case $MKDIR_P in
15375   [\\/$]* | ?:[\\/]* ) ;;
15376   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15377   esac
15378 _ACEOF
15379
15380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381 # If the template does not know about datarootdir, expand it.
15382 # FIXME: This hack should be removed a few years after 2.60.
15383 ac_datarootdir_hack=; ac_datarootdir_seen=
15384 ac_sed_dataroot='
15385 /datarootdir/ {
15386   p
15387   q
15388 }
15389 /@datadir@/p
15390 /@docdir@/p
15391 /@infodir@/p
15392 /@localedir@/p
15393 /@mandir@/p'
15394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15395 *datarootdir*) ac_datarootdir_seen=yes;;
15396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15397   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15399 _ACEOF
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401   ac_datarootdir_hack='
15402   s&@datadir@&$datadir&g
15403   s&@docdir@&$docdir&g
15404   s&@infodir@&$infodir&g
15405   s&@localedir@&$localedir&g
15406   s&@mandir@&$mandir&g
15407   s&\\\${datarootdir}&$datarootdir&g' ;;
15408 esac
15409 _ACEOF
15410
15411 # Neutralize VPATH when `$srcdir' = `.'.
15412 # Shell code in configure.ac might set extrasub.
15413 # FIXME: do we really want to maintain this feature?
15414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15415 ac_sed_extra="$ac_vpsub
15416 $extrasub
15417 _ACEOF
15418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15419 :t
15420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15421 s|@configure_input@|$ac_sed_conf_input|;t t
15422 s&@top_builddir@&$ac_top_builddir_sub&;t t
15423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15424 s&@srcdir@&$ac_srcdir&;t t
15425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15426 s&@top_srcdir@&$ac_top_srcdir&;t t
15427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15428 s&@builddir@&$ac_builddir&;t t
15429 s&@abs_builddir@&$ac_abs_builddir&;t t
15430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15431 s&@INSTALL@&$ac_INSTALL&;t t
15432 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15433 $ac_datarootdir_hack
15434 "
15435 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15436   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15437
15438 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15439   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15440   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15441       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15442   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15443 which seems to be undefined.  Please make sure it is defined" >&5
15444 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15445 which seems to be undefined.  Please make sure it is defined" >&2;}
15446
15447   rm -f "$ac_tmp/stdin"
15448   case $ac_file in
15449   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15450   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15451   esac \
15452   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15453  ;;
15454
15455
15456   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15457 $as_echo "$as_me: executing $ac_file commands" >&6;}
15458  ;;
15459   esac
15460
15461
15462   case $ac_file$ac_mode in
15463     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15464   # Older Autoconf quotes --file arguments for eval, but not when files
15465   # are listed without --file.  Let's play safe and only enable the eval
15466   # if we detect the quoting.
15467   case $CONFIG_FILES in
15468   *\'*) eval set x "$CONFIG_FILES" ;;
15469   *)   set x $CONFIG_FILES ;;
15470   esac
15471   shift
15472   for mf
15473   do
15474     # Strip MF so we end up with the name of the file.
15475     mf=`echo "$mf" | sed -e 's/:.*$//'`
15476     # Check whether this is an Automake generated Makefile or not.
15477     # We used to match only the files named 'Makefile.in', but
15478     # some people rename them; so instead we look at the file content.
15479     # Grep'ing the first line is not enough: some people post-process
15480     # each Makefile.in and add a new line on top of each file to say so.
15481     # Grep'ing the whole file is not good either: AIX grep has a line
15482     # limit of 2048, but all sed's we know have understand at least 4000.
15483     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15484       dirpart=`$as_dirname -- "$mf" ||
15485 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15486          X"$mf" : 'X\(//\)[^/]' \| \
15487          X"$mf" : 'X\(//\)$' \| \
15488          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15489 $as_echo X"$mf" |
15490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15491             s//\1/
15492             q
15493           }
15494           /^X\(\/\/\)[^/].*/{
15495             s//\1/
15496             q
15497           }
15498           /^X\(\/\/\)$/{
15499             s//\1/
15500             q
15501           }
15502           /^X\(\/\).*/{
15503             s//\1/
15504             q
15505           }
15506           s/.*/./; q'`
15507     else
15508       continue
15509     fi
15510     # Extract the definition of DEPDIR, am__include, and am__quote
15511     # from the Makefile without running 'make'.
15512     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15513     test -z "$DEPDIR" && continue
15514     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15515     test -z "$am__include" && continue
15516     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15517     # Find all dependency output files, they are included files with
15518     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15519     # simplest approach to changing $(DEPDIR) to its actual value in the
15520     # expansion.
15521     for file in `sed -n "
15522       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15523          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15524       # Make sure the directory exists.
15525       test -f "$dirpart/$file" && continue
15526       fdir=`$as_dirname -- "$file" ||
15527 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15528          X"$file" : 'X\(//\)[^/]' \| \
15529          X"$file" : 'X\(//\)$' \| \
15530          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15531 $as_echo X"$file" |
15532     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15533             s//\1/
15534             q
15535           }
15536           /^X\(\/\/\)[^/].*/{
15537             s//\1/
15538             q
15539           }
15540           /^X\(\/\/\)$/{
15541             s//\1/
15542             q
15543           }
15544           /^X\(\/\).*/{
15545             s//\1/
15546             q
15547           }
15548           s/.*/./; q'`
15549       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15550       # echo "creating $dirpart/$file"
15551       echo '# dummy' > "$dirpart/$file"
15552     done
15553   done
15554 }
15555  ;;
15556     "libtool":C)
15557
15558     # See if we are running on zsh, and set the options that allow our
15559     # commands through without removal of \ escapes.
15560     if test -n "${ZSH_VERSION+set}"; then
15561       setopt NO_GLOB_SUBST
15562     fi
15563
15564     cfgfile=${ofile}T
15565     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15566     $RM "$cfgfile"
15567
15568     cat <<_LT_EOF >> "$cfgfile"
15569 #! $SHELL
15570 # Generated automatically by $as_me ($PACKAGE) $VERSION
15571 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15572
15573 # Provide generalized library-building support services.
15574 # Written by Gordon Matzigkeit, 1996
15575
15576 # Copyright (C) 2014 Free Software Foundation, Inc.
15577 # This is free software; see the source for copying conditions.  There is NO
15578 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15579
15580 # GNU Libtool is free software; you can redistribute it and/or modify
15581 # it under the terms of the GNU General Public License as published by
15582 # the Free Software Foundation; either version 2 of of the License, or
15583 # (at your option) any later version.
15584 #
15585 # As a special exception to the GNU General Public License, if you
15586 # distribute this file as part of a program or library that is built
15587 # using GNU Libtool, you may include this file under the  same
15588 # distribution terms that you use for the rest of that program.
15589 #
15590 # GNU Libtool is distributed in the hope that it will be useful, but
15591 # WITHOUT ANY WARRANTY; without even the implied warranty of
15592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15593 # GNU General Public License for more details.
15594 #
15595 # You should have received a copy of the GNU General Public License
15596 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
15597
15598
15599 # The names of the tagged configurations supported by this script.
15600 available_tags=''
15601
15602 # Configured defaults for sys_lib_dlsearch_path munging.
15603 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15604
15605 # ### BEGIN LIBTOOL CONFIG
15606
15607 # Which release of libtool.m4 was used?
15608 macro_version=$macro_version
15609 macro_revision=$macro_revision
15610
15611 # Whether or not to build shared libraries.
15612 build_libtool_libs=$enable_shared
15613
15614 # Whether or not to build static libraries.
15615 build_old_libs=$enable_static
15616
15617 # What type of objects to build.
15618 pic_mode=$pic_mode
15619
15620 # Whether or not to optimize for fast installation.
15621 fast_install=$enable_fast_install
15622
15623 # Shared archive member basename,for filename based shared library versioning on AIX.
15624 shared_archive_member_spec=$shared_archive_member_spec
15625
15626 # Shell to use when invoking shell scripts.
15627 SHELL=$lt_SHELL
15628
15629 # An echo program that protects backslashes.
15630 ECHO=$lt_ECHO
15631
15632 # The PATH separator for the build system.
15633 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15634
15635 # The host system.
15636 host_alias=$host_alias
15637 host=$host
15638 host_os=$host_os
15639
15640 # The build system.
15641 build_alias=$build_alias
15642 build=$build
15643 build_os=$build_os
15644
15645 # A sed program that does not truncate output.
15646 SED=$lt_SED
15647
15648 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15649 Xsed="\$SED -e 1s/^X//"
15650
15651 # A grep program that handles long lines.
15652 GREP=$lt_GREP
15653
15654 # An ERE matcher.
15655 EGREP=$lt_EGREP
15656
15657 # A literal string matcher.
15658 FGREP=$lt_FGREP
15659
15660 # A BSD- or MS-compatible name lister.
15661 NM=$lt_NM
15662
15663 # Whether we need soft or hard links.
15664 LN_S=$lt_LN_S
15665
15666 # What is the maximum length of a command?
15667 max_cmd_len=$max_cmd_len
15668
15669 # Object file suffix (normally "o").
15670 objext=$ac_objext
15671
15672 # Executable file suffix (normally "").
15673 exeext=$exeext
15674
15675 # whether the shell understands "unset".
15676 lt_unset=$lt_unset
15677
15678 # turn spaces into newlines.
15679 SP2NL=$lt_lt_SP2NL
15680
15681 # turn newlines into spaces.
15682 NL2SP=$lt_lt_NL2SP
15683
15684 # convert \$build file names to \$host format.
15685 to_host_file_cmd=$lt_cv_to_host_file_cmd
15686
15687 # convert \$build files to toolchain format.
15688 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15689
15690 # An object symbol dumper.
15691 OBJDUMP=$lt_OBJDUMP
15692
15693 # Method to check whether dependent libraries are shared objects.
15694 deplibs_check_method=$lt_deplibs_check_method
15695
15696 # Command to use when deplibs_check_method = "file_magic".
15697 file_magic_cmd=$lt_file_magic_cmd
15698
15699 # How to find potential files when deplibs_check_method = "file_magic".
15700 file_magic_glob=$lt_file_magic_glob
15701
15702 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15703 want_nocaseglob=$lt_want_nocaseglob
15704
15705 # DLL creation program.
15706 DLLTOOL=$lt_DLLTOOL
15707
15708 # Command to associate shared and link libraries.
15709 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15710
15711 # The archiver.
15712 AR=$lt_AR
15713
15714 # Flags to create an archive.
15715 AR_FLAGS=$lt_AR_FLAGS
15716
15717 # How to feed a file listing to the archiver.
15718 archiver_list_spec=$lt_archiver_list_spec
15719
15720 # A symbol stripping program.
15721 STRIP=$lt_STRIP
15722
15723 # Commands used to install an old-style archive.
15724 RANLIB=$lt_RANLIB
15725 old_postinstall_cmds=$lt_old_postinstall_cmds
15726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15727
15728 # Whether to use a lock for old archive extraction.
15729 lock_old_archive_extraction=$lock_old_archive_extraction
15730
15731 # A C compiler.
15732 LTCC=$lt_CC
15733
15734 # LTCC compiler flags.
15735 LTCFLAGS=$lt_CFLAGS
15736
15737 # Take the output of nm and produce a listing of raw symbols and C names.
15738 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15739
15740 # Transform the output of nm in a proper C declaration.
15741 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15742
15743 # Transform the output of nm into a list of symbols to manually relocate.
15744 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15745
15746 # Transform the output of nm in a C name address pair.
15747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15748
15749 # Transform the output of nm in a C name address pair when lib prefix is needed.
15750 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15751
15752 # The name lister interface.
15753 nm_interface=$lt_lt_cv_nm_interface
15754
15755 # Specify filename containing input files for \$NM.
15756 nm_file_list_spec=$lt_nm_file_list_spec
15757
15758 # The root where to search for dependent libraries,and where our libraries should be installed.
15759 lt_sysroot=$lt_sysroot
15760
15761 # Command to truncate a binary pipe.
15762 lt_truncate_bin=$lt_lt_cv_truncate_bin
15763
15764 # The name of the directory that contains temporary libtool files.
15765 objdir=$objdir
15766
15767 # Used to examine libraries when file_magic_cmd begins with "file".
15768 MAGIC_CMD=$MAGIC_CMD
15769
15770 # Must we lock files when doing compilation?
15771 need_locks=$lt_need_locks
15772
15773 # Manifest tool.
15774 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15775
15776 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15777 DSYMUTIL=$lt_DSYMUTIL
15778
15779 # Tool to change global to local symbols on Mac OS X.
15780 NMEDIT=$lt_NMEDIT
15781
15782 # Tool to manipulate fat objects and archives on Mac OS X.
15783 LIPO=$lt_LIPO
15784
15785 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15786 OTOOL=$lt_OTOOL
15787
15788 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15789 OTOOL64=$lt_OTOOL64
15790
15791 # Old archive suffix (normally "a").
15792 libext=$libext
15793
15794 # Shared library suffix (normally ".so").
15795 shrext_cmds=$lt_shrext_cmds
15796
15797 # The commands to extract the exported symbol list from a shared archive.
15798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15799
15800 # Variables whose values should be saved in libtool wrapper scripts and
15801 # restored at link time.
15802 variables_saved_for_relink=$lt_variables_saved_for_relink
15803
15804 # Do we need the "lib" prefix for modules?
15805 need_lib_prefix=$need_lib_prefix
15806
15807 # Do we need a version for libraries?
15808 need_version=$need_version
15809
15810 # Library versioning type.
15811 version_type=$version_type
15812
15813 # Shared library runtime path variable.
15814 runpath_var=$runpath_var
15815
15816 # Shared library path variable.
15817 shlibpath_var=$shlibpath_var
15818
15819 # Is shlibpath searched before the hard-coded library search path?
15820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15821
15822 # Format of library name prefix.
15823 libname_spec=$lt_libname_spec
15824
15825 # List of archive names.  First name is the real one, the rest are links.
15826 # The last name is the one that the linker finds with -lNAME
15827 library_names_spec=$lt_library_names_spec
15828
15829 # The coded name of the library, if different from the real name.
15830 soname_spec=$lt_soname_spec
15831
15832 # Permission mode override for installation of shared libraries.
15833 install_override_mode=$lt_install_override_mode
15834
15835 # Command to use after installation of a shared archive.
15836 postinstall_cmds=$lt_postinstall_cmds
15837
15838 # Command to use after uninstallation of a shared archive.
15839 postuninstall_cmds=$lt_postuninstall_cmds
15840
15841 # Commands used to finish a libtool library installation in a directory.
15842 finish_cmds=$lt_finish_cmds
15843
15844 # As "finish_cmds", except a single script fragment to be evaled but
15845 # not shown.
15846 finish_eval=$lt_finish_eval
15847
15848 # Whether we should hardcode library paths into libraries.
15849 hardcode_into_libs=$hardcode_into_libs
15850
15851 # Compile-time system search path for libraries.
15852 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15853
15854 # Detected run-time system search path for libraries.
15855 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15856
15857 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15858 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15859
15860 # Whether dlopen is supported.
15861 dlopen_support=$enable_dlopen
15862
15863 # Whether dlopen of programs is supported.
15864 dlopen_self=$enable_dlopen_self
15865
15866 # Whether dlopen of statically linked programs is supported.
15867 dlopen_self_static=$enable_dlopen_self_static
15868
15869 # Commands to strip libraries.
15870 old_striplib=$lt_old_striplib
15871 striplib=$lt_striplib
15872
15873
15874 # The linker used to build libraries.
15875 LD=$lt_LD
15876
15877 # How to create reloadable object files.
15878 reload_flag=$lt_reload_flag
15879 reload_cmds=$lt_reload_cmds
15880
15881 # Commands used to build an old-style archive.
15882 old_archive_cmds=$lt_old_archive_cmds
15883
15884 # A language specific compiler.
15885 CC=$lt_compiler
15886
15887 # Is the compiler the GNU compiler?
15888 with_gcc=$GCC
15889
15890 # Compiler flag to turn off builtin functions.
15891 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15892
15893 # Additional compiler flags for building library objects.
15894 pic_flag=$lt_lt_prog_compiler_pic
15895
15896 # How to pass a linker flag through the compiler.
15897 wl=$lt_lt_prog_compiler_wl
15898
15899 # Compiler flag to prevent dynamic linking.
15900 link_static_flag=$lt_lt_prog_compiler_static
15901
15902 # Does compiler simultaneously support -c and -o options?
15903 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15904
15905 # Whether or not to add -lc for building shared libraries.
15906 build_libtool_need_lc=$archive_cmds_need_lc
15907
15908 # Whether or not to disallow shared libs when runtime libs are static.
15909 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15910
15911 # Compiler flag to allow reflexive dlopens.
15912 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15913
15914 # Compiler flag to generate shared objects directly from archives.
15915 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15916
15917 # Whether the compiler copes with passing no objects directly.
15918 compiler_needs_object=$lt_compiler_needs_object
15919
15920 # Create an old-style archive from a shared archive.
15921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15922
15923 # Create a temporary old-style archive to link instead of a shared archive.
15924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15925
15926 # Commands used to build a shared archive.
15927 archive_cmds=$lt_archive_cmds
15928 archive_expsym_cmds=$lt_archive_expsym_cmds
15929
15930 # Commands used to build a loadable module if different from building
15931 # a shared archive.
15932 module_cmds=$lt_module_cmds
15933 module_expsym_cmds=$lt_module_expsym_cmds
15934
15935 # Whether we are building with GNU ld or not.
15936 with_gnu_ld=$lt_with_gnu_ld
15937
15938 # Flag that allows shared libraries with undefined symbols to be built.
15939 allow_undefined_flag=$lt_allow_undefined_flag
15940
15941 # Flag that enforces no undefined symbols.
15942 no_undefined_flag=$lt_no_undefined_flag
15943
15944 # Flag to hardcode \$libdir into a binary during linking.
15945 # This must work even if \$libdir does not exist
15946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15947
15948 # Whether we need a single "-rpath" flag with a separated argument.
15949 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15950
15951 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15952 # DIR into the resulting binary.
15953 hardcode_direct=$hardcode_direct
15954
15955 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15956 # DIR into the resulting binary and the resulting library dependency is
15957 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15958 # library is relocated.
15959 hardcode_direct_absolute=$hardcode_direct_absolute
15960
15961 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15962 # into the resulting binary.
15963 hardcode_minus_L=$hardcode_minus_L
15964
15965 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15966 # into the resulting binary.
15967 hardcode_shlibpath_var=$hardcode_shlibpath_var
15968
15969 # Set to "yes" if building a shared library automatically hardcodes DIR
15970 # into the library and all subsequent libraries and executables linked
15971 # against it.
15972 hardcode_automatic=$hardcode_automatic
15973
15974 # Set to yes if linker adds runtime paths of dependent libraries
15975 # to runtime path list.
15976 inherit_rpath=$inherit_rpath
15977
15978 # Whether libtool must link a program against all its dependency libraries.
15979 link_all_deplibs=$link_all_deplibs
15980
15981 # Set to "yes" if exported symbols are required.
15982 always_export_symbols=$always_export_symbols
15983
15984 # The commands to list exported symbols.
15985 export_symbols_cmds=$lt_export_symbols_cmds
15986
15987 # Symbols that should not be listed in the preloaded symbols.
15988 exclude_expsyms=$lt_exclude_expsyms
15989
15990 # Symbols that must always be exported.
15991 include_expsyms=$lt_include_expsyms
15992
15993 # Commands necessary for linking programs (against libraries) with templates.
15994 prelink_cmds=$lt_prelink_cmds
15995
15996 # Commands necessary for finishing linking programs.
15997 postlink_cmds=$lt_postlink_cmds
15998
15999 # Specify filename containing input files.
16000 file_list_spec=$lt_file_list_spec
16001
16002 # How to hardcode a shared library path into an executable.
16003 hardcode_action=$hardcode_action
16004
16005 # ### END LIBTOOL CONFIG
16006
16007 _LT_EOF
16008
16009     cat <<'_LT_EOF' >> "$cfgfile"
16010
16011 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16012
16013 # func_munge_path_list VARIABLE PATH
16014 # -----------------------------------
16015 # VARIABLE is name of variable containing _space_ separated list of
16016 # directories to be munged by the contents of PATH, which is string
16017 # having a format:
16018 # "DIR[:DIR]:"
16019 #       string "DIR[ DIR]" will be prepended to VARIABLE
16020 # ":DIR[:DIR]"
16021 #       string "DIR[ DIR]" will be appended to VARIABLE
16022 # "DIRP[:DIRP]::[DIRA:]DIRA"
16023 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16024 #       "DIRA[ DIRA]" will be appended to VARIABLE
16025 # "DIR[:DIR]"
16026 #       VARIABLE will be replaced by "DIR[ DIR]"
16027 func_munge_path_list ()
16028 {
16029     case x$2 in
16030     x)
16031         ;;
16032     *:)
16033         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16034         ;;
16035     x:*)
16036         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16037         ;;
16038     *::*)
16039         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16040         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16041         ;;
16042     *)
16043         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16044         ;;
16045     esac
16046 }
16047
16048
16049 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16050 func_cc_basename ()
16051 {
16052     for cc_temp in $*""; do
16053       case $cc_temp in
16054         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16055         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16056         \-*) ;;
16057         *) break;;
16058       esac
16059     done
16060     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16061 }
16062
16063
16064 # ### END FUNCTIONS SHARED WITH CONFIGURE
16065
16066 _LT_EOF
16067
16068   case $host_os in
16069   aix3*)
16070     cat <<\_LT_EOF >> "$cfgfile"
16071 # AIX sometimes has problems with the GCC collect2 program.  For some
16072 # reason, if we set the COLLECT_NAMES environment variable, the problems
16073 # vanish in a puff of smoke.
16074 if test set != "${COLLECT_NAMES+set}"; then
16075   COLLECT_NAMES=
16076   export COLLECT_NAMES
16077 fi
16078 _LT_EOF
16079     ;;
16080   esac
16081
16082
16083 ltmain=$ac_aux_dir/ltmain.sh
16084
16085
16086   # We use sed instead of cat because bash on DJGPP gets confused if
16087   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16088   # text mode, it properly converts lines to CR/LF.  This bash problem
16089   # is reportedly fixed, but why not run on old versions too?
16090   sed '$q' "$ltmain" >> "$cfgfile" \
16091      || (rm -f "$cfgfile"; exit 1)
16092
16093    mv -f "$cfgfile" "$ofile" ||
16094     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16095   chmod +x "$ofile"
16096
16097  ;;
16098
16099   esac
16100 done # for ac_tag
16101
16102
16103 as_fn_exit 0
16104 _ACEOF
16105 ac_clean_files=$ac_clean_files_save
16106
16107 test $ac_write_fail = 0 ||
16108   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16109
16110
16111 # configure is writing to config.log, and then calls config.status.
16112 # config.status does its own redirection, appending to config.log.
16113 # Unfortunately, on DOS this fails, as config.log is still kept open
16114 # by configure, so config.status won't be able to write to it; its
16115 # output is simply discarded.  So we exec the FD to /dev/null,
16116 # effectively closing config.log, so it can be properly (re)opened and
16117 # appended to by config.status.  When coming back to configure, we
16118 # need to make the FD available again.
16119 if test "$no_create" != yes; then
16120   ac_cs_success=:
16121   ac_config_status_args=
16122   test "$silent" = yes &&
16123     ac_config_status_args="$ac_config_status_args --quiet"
16124   exec 5>/dev/null
16125   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16126   exec 5>>config.log
16127   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16128   # would make configure fail if this is the last instruction.
16129   $ac_cs_success || as_fn_exit 1
16130 fi
16131 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16132   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16133 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16134 fi
16135