]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/sqlite/lib/contrib/configure
Some minor fixes.
[l4.git] / l4 / pkg / sqlite / lib / contrib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.9.2.
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.9.2'
594 PACKAGE_STRING='sqlite 3.9.2'
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 JSON1_FLAGS
640 FTS5_FLAGS
641 DYNAMIC_EXTENSION_FLAGS
642 THREADSAFE_FLAGS
643 READLINE_LIBS
644 BUILD_CFLAGS
645 CPP
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
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 RANLIB
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_largefile
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 enable_readline
766 enable_threadsafe
767 enable_dynamic_extensions
768 enable_fts5
769 enable_json1
770 '
771       ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CPP'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834   # If the previous option needs an argument, assign it.
835   if test -n "$ac_prev"; then
836     eval $ac_prev=\$ac_option
837     ac_prev=
838     continue
839   fi
840
841   case $ac_option in
842   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843   *=)   ac_optarg= ;;
844   *)    ac_optarg=yes ;;
845   esac
846
847   # Accept the important Cygnus configure options, so we can diagnose typos.
848
849   case $ac_dashdash$ac_option in
850   --)
851     ac_dashdash=yes ;;
852
853   -bindir | --bindir | --bindi | --bind | --bin | --bi)
854     ac_prev=bindir ;;
855   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856     bindir=$ac_optarg ;;
857
858   -build | --build | --buil | --bui | --bu)
859     ac_prev=build_alias ;;
860   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861     build_alias=$ac_optarg ;;
862
863   -cache-file | --cache-file | --cache-fil | --cache-fi \
864   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865     ac_prev=cache_file ;;
866   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868     cache_file=$ac_optarg ;;
869
870   --config-cache | -C)
871     cache_file=config.cache ;;
872
873   -datadir | --datadir | --datadi | --datad)
874     ac_prev=datadir ;;
875   -datadir=* | --datadir=* | --datadi=* | --datad=*)
876     datadir=$ac_optarg ;;
877
878   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879   | --dataroo | --dataro | --datar)
880     ac_prev=datarootdir ;;
881   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883     datarootdir=$ac_optarg ;;
884
885   -disable-* | --disable-*)
886     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889       as_fn_error $? "invalid feature name: $ac_useropt"
890     ac_useropt_orig=$ac_useropt
891     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892     case $ac_user_opts in
893       *"
894 "enable_$ac_useropt"
895 "*) ;;
896       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897          ac_unrecognized_sep=', ';;
898     esac
899     eval enable_$ac_useropt=no ;;
900
901   -docdir | --docdir | --docdi | --doc | --do)
902     ac_prev=docdir ;;
903   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904     docdir=$ac_optarg ;;
905
906   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907     ac_prev=dvidir ;;
908   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909     dvidir=$ac_optarg ;;
910
911   -enable-* | --enable-*)
912     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913     # Reject names that are not valid shell variable names.
914     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915       as_fn_error $? "invalid feature name: $ac_useropt"
916     ac_useropt_orig=$ac_useropt
917     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918     case $ac_user_opts in
919       *"
920 "enable_$ac_useropt"
921 "*) ;;
922       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923          ac_unrecognized_sep=', ';;
924     esac
925     eval enable_$ac_useropt=\$ac_optarg ;;
926
927   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929   | --exec | --exe | --ex)
930     ac_prev=exec_prefix ;;
931   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933   | --exec=* | --exe=* | --ex=*)
934     exec_prefix=$ac_optarg ;;
935
936   -gas | --gas | --ga | --g)
937     # Obsolete; use --with-gas.
938     with_gas=yes ;;
939
940   -help | --help | --hel | --he | -h)
941     ac_init_help=long ;;
942   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943     ac_init_help=recursive ;;
944   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945     ac_init_help=short ;;
946
947   -host | --host | --hos | --ho)
948     ac_prev=host_alias ;;
949   -host=* | --host=* | --hos=* | --ho=*)
950     host_alias=$ac_optarg ;;
951
952   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953     ac_prev=htmldir ;;
954   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955   | --ht=*)
956     htmldir=$ac_optarg ;;
957
958   -includedir | --includedir | --includedi | --included | --include \
959   | --includ | --inclu | --incl | --inc)
960     ac_prev=includedir ;;
961   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962   | --includ=* | --inclu=* | --incl=* | --inc=*)
963     includedir=$ac_optarg ;;
964
965   -infodir | --infodir | --infodi | --infod | --info | --inf)
966     ac_prev=infodir ;;
967   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968     infodir=$ac_optarg ;;
969
970   -libdir | --libdir | --libdi | --libd)
971     ac_prev=libdir ;;
972   -libdir=* | --libdir=* | --libdi=* | --libd=*)
973     libdir=$ac_optarg ;;
974
975   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976   | --libexe | --libex | --libe)
977     ac_prev=libexecdir ;;
978   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979   | --libexe=* | --libex=* | --libe=*)
980     libexecdir=$ac_optarg ;;
981
982   -localedir | --localedir | --localedi | --localed | --locale)
983     ac_prev=localedir ;;
984   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985     localedir=$ac_optarg ;;
986
987   -localstatedir | --localstatedir | --localstatedi | --localstated \
988   | --localstate | --localstat | --localsta | --localst | --locals)
989     ac_prev=localstatedir ;;
990   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992     localstatedir=$ac_optarg ;;
993
994   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995     ac_prev=mandir ;;
996   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997     mandir=$ac_optarg ;;
998
999   -nfp | --nfp | --nf)
1000     # Obsolete; use --without-fp.
1001     with_fp=no ;;
1002
1003   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004   | --no-cr | --no-c | -n)
1005     no_create=yes ;;
1006
1007   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009     no_recursion=yes ;;
1010
1011   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013   | --oldin | --oldi | --old | --ol | --o)
1014     ac_prev=oldincludedir ;;
1015   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018     oldincludedir=$ac_optarg ;;
1019
1020   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021     ac_prev=prefix ;;
1022   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023     prefix=$ac_optarg ;;
1024
1025   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026   | --program-pre | --program-pr | --program-p)
1027     ac_prev=program_prefix ;;
1028   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030     program_prefix=$ac_optarg ;;
1031
1032   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033   | --program-suf | --program-su | --program-s)
1034     ac_prev=program_suffix ;;
1035   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037     program_suffix=$ac_optarg ;;
1038
1039   -program-transform-name | --program-transform-name \
1040   | --program-transform-nam | --program-transform-na \
1041   | --program-transform-n | --program-transform- \
1042   | --program-transform | --program-transfor \
1043   | --program-transfo | --program-transf \
1044   | --program-trans | --program-tran \
1045   | --progr-tra | --program-tr | --program-t)
1046     ac_prev=program_transform_name ;;
1047   -program-transform-name=* | --program-transform-name=* \
1048   | --program-transform-nam=* | --program-transform-na=* \
1049   | --program-transform-n=* | --program-transform-=* \
1050   | --program-transform=* | --program-transfor=* \
1051   | --program-transfo=* | --program-transf=* \
1052   | --program-trans=* | --program-tran=* \
1053   | --progr-tra=* | --program-tr=* | --program-t=*)
1054     program_transform_name=$ac_optarg ;;
1055
1056   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057     ac_prev=pdfdir ;;
1058   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059     pdfdir=$ac_optarg ;;
1060
1061   -psdir | --psdir | --psdi | --psd | --ps)
1062     ac_prev=psdir ;;
1063   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064     psdir=$ac_optarg ;;
1065
1066   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067   | -silent | --silent | --silen | --sile | --sil)
1068     silent=yes ;;
1069
1070   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071     ac_prev=sbindir ;;
1072   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073   | --sbi=* | --sb=*)
1074     sbindir=$ac_optarg ;;
1075
1076   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078   | --sharedst | --shareds | --shared | --share | --shar \
1079   | --sha | --sh)
1080     ac_prev=sharedstatedir ;;
1081   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084   | --sha=* | --sh=*)
1085     sharedstatedir=$ac_optarg ;;
1086
1087   -site | --site | --sit)
1088     ac_prev=site ;;
1089   -site=* | --site=* | --sit=*)
1090     site=$ac_optarg ;;
1091
1092   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093     ac_prev=srcdir ;;
1094   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095     srcdir=$ac_optarg ;;
1096
1097   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098   | --syscon | --sysco | --sysc | --sys | --sy)
1099     ac_prev=sysconfdir ;;
1100   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102     sysconfdir=$ac_optarg ;;
1103
1104   -target | --target | --targe | --targ | --tar | --ta | --t)
1105     ac_prev=target_alias ;;
1106   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107     target_alias=$ac_optarg ;;
1108
1109   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110     verbose=yes ;;
1111
1112   -version | --version | --versio | --versi | --vers | -V)
1113     ac_init_version=: ;;
1114
1115   -with-* | --with-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119       as_fn_error $? "invalid package name: $ac_useropt"
1120     ac_useropt_orig=$ac_useropt
1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122     case $ac_user_opts in
1123       *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval with_$ac_useropt=\$ac_optarg ;;
1130
1131   -without-* | --without-*)
1132     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135       as_fn_error $? "invalid package name: $ac_useropt"
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval with_$ac_useropt=no ;;
1146
1147   --x)
1148     # Obsolete; use --with-x.
1149     with_x=yes ;;
1150
1151   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152   | --x-incl | --x-inc | --x-in | --x-i)
1153     ac_prev=x_includes ;;
1154   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156     x_includes=$ac_optarg ;;
1157
1158   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160     ac_prev=x_libraries ;;
1161   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163     x_libraries=$ac_optarg ;;
1164
1165   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167     ;;
1168
1169   *=*)
1170     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171     # Reject names that are not valid shell variable names.
1172     case $ac_envvar in #(
1173       '' | [0-9]* | *[!_$as_cr_alnum]* )
1174       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175     esac
1176     eval $ac_envvar=\$ac_optarg
1177     export $ac_envvar ;;
1178
1179   *)
1180     # FIXME: should be removed in autoconf 3.0.
1181     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185     ;;
1186
1187   esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192   as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196   case $enable_option_checking in
1197     no) ;;
1198     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200   esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   # Remove trailing slashes.
1211   case $ac_val in
1212     */ )
1213       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214       eval $ac_var=\$ac_val;;
1215   esac
1216   # Be sure to have absolute directory names.
1217   case $ac_val in
1218     [\\/$]* | ?:[\\/]* )  continue;;
1219     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220   esac
1221   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233   if test "x$build_alias" = x; then
1234     cross_compiling=maybe
1235   elif test "x$build_alias" != "x$host_alias"; then
1236     cross_compiling=yes
1237   fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249   as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251   as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$as_myself" : 'X\(//\)[^/]' \| \
1261          X"$as_myself" : 'X\(//\)$' \| \
1262          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures sqlite 3.9.2 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking ...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR            user executables [EPREFIX/bin]
1355   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR        program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR            object code libraries [EPREFIX/lib]
1361   --includedir=DIR        C header files [PREFIX/include]
1362   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR           info documentation [DATAROOTDIR/info]
1366   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR            man documentation [DATAROOTDIR/man]
1368   --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1369   --htmldir=DIR           html documentation [DOCDIR]
1370   --dvidir=DIR            dvi documentation [DOCDIR]
1371   --pdfdir=DIR            pdf documentation [DOCDIR]
1372   --psdir=DIR             ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 Program names:
1378   --program-prefix=PREFIX            prepend PREFIX to installed program names
1379   --program-suffix=SUFFIX            append SUFFIX to installed program names
1380   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1381
1382 System types:
1383   --build=BUILD     configure for building on BUILD [guessed]
1384   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389   case $ac_init_help in
1390      short | recursive ) echo "Configuration of sqlite 3.9.2:";;
1391    esac
1392   cat <<\_ACEOF
1393
1394 Optional Features:
1395   --disable-option-checking  ignore unrecognized --enable/--with options
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --disable-largefile     omit support for large files
1399   --disable-dependency-tracking  speeds up one-time build
1400   --enable-dependency-tracking   do not reject slow dependency extractors
1401   --enable-shared[=PKGS]  build shared libraries [default=yes]
1402   --enable-static[=PKGS]  build static libraries [default=yes]
1403   --enable-fast-install[=PKGS]
1404                           optimize for fast installation [default=yes]
1405   --disable-libtool-lock  avoid locking (might break parallel builds)
1406   --enable-readline       use readline in shell tool (yes, no) [default=yes]
1407   --enable-threadsafe     build a thread-safe library [default=yes]
1408   --enable-dynamic-extensions
1409                           support loadable extensions [default=yes]
1410   --enable-fts5           include fts5 support [default=no]
1411   --enable-json1          include json1 support [default=no]
1412
1413 Optional Packages:
1414   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1415   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1416   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1417                           both]
1418   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1419   --with-sysroot=DIR Search for dependent libraries within DIR
1420                         (or the compiler's sysroot if not specified).
1421
1422 Some influential environment variables:
1423   CC          C compiler command
1424   CFLAGS      C compiler flags
1425   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1426               nonstandard directory <lib dir>
1427   LIBS        libraries to pass to the linker, e.g. -l<library>
1428   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429               you have headers in a nonstandard directory <include dir>
1430   CPP         C preprocessor
1431
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to <http://www.sqlite.org>.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441   # If there are subdirs, report their specific --help.
1442   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443     test -d "$ac_dir" ||
1444       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445       continue
1446     ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452   # A ".." for each directory in $ac_dir_suffix.
1453   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454   case $ac_top_builddir_sub in
1455   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457   esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465   .)  # We are building in place.
1466     ac_srcdir=.
1467     ac_top_srcdir=$ac_top_builddir_sub
1468     ac_abs_top_srcdir=$ac_pwd ;;
1469   [\\/]* | ?:[\\/]* )  # Absolute name.
1470     ac_srcdir=$srcdir$ac_dir_suffix;
1471     ac_top_srcdir=$srcdir
1472     ac_abs_top_srcdir=$srcdir ;;
1473   *) # Relative name.
1474     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475     ac_top_srcdir=$ac_top_build_prefix$srcdir
1476     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480     cd "$ac_dir" || { ac_status=$?; continue; }
1481     # Check for guested configure.
1482     if test -f "$ac_srcdir/configure.gnu"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485     elif test -f "$ac_srcdir/configure"; then
1486       echo &&
1487       $SHELL "$ac_srcdir/configure" --help=recursive
1488     else
1489       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490     fi || ac_status=$?
1491     cd "$ac_pwd" || { ac_status=$?; break; }
1492   done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497   cat <<\_ACEOF
1498 sqlite configure 3.9.2
1499 generated by GNU Autoconf 2.69
1500
1501 Copyright (C) 2012 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505   exit
1506 fi
1507
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1511
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1516 {
1517   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518   rm -f conftest.$ac_objext
1519   if { { ac_try="$ac_compile"
1520 case "(($ac_try" in
1521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522   *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526   (eval "$ac_compile") 2>conftest.err
1527   ac_status=$?
1528   if test -s conftest.err; then
1529     grep -v '^ *+' conftest.err >conftest.er1
1530     cat conftest.er1 >&5
1531     mv -f conftest.er1 conftest.err
1532   fi
1533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534   test $ac_status = 0; } && {
1535          test -z "$ac_c_werror_flag" ||
1536          test ! -s conftest.err
1537        } && test -s conftest.$ac_objext; then :
1538   ac_retval=0
1539 else
1540   $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543         ac_retval=1
1544 fi
1545   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546   as_fn_set_status $ac_retval
1547
1548 } # ac_fn_c_try_compile
1549
1550 # ac_fn_c_try_link LINENO
1551 # -----------------------
1552 # Try to link conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_link ()
1554 {
1555   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556   rm -f conftest.$ac_objext conftest$ac_exeext
1557   if { { ac_try="$ac_link"
1558 case "(($ac_try" in
1559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560   *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564   (eval "$ac_link") 2>conftest.err
1565   ac_status=$?
1566   if test -s conftest.err; then
1567     grep -v '^ *+' conftest.err >conftest.er1
1568     cat conftest.er1 >&5
1569     mv -f conftest.er1 conftest.err
1570   fi
1571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572   test $ac_status = 0; } && {
1573          test -z "$ac_c_werror_flag" ||
1574          test ! -s conftest.err
1575        } && test -s conftest$ac_exeext && {
1576          test "$cross_compiling" = yes ||
1577          test -x conftest$ac_exeext
1578        }; then :
1579   ac_retval=0
1580 else
1581   $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584         ac_retval=1
1585 fi
1586   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588   # interfere with the next link command; also delete a directory that is
1589   # left behind by Apple's compiler.  We do this before executing the actions.
1590   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592   as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_link
1595
1596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists and can be compiled using the include files in
1599 # INCLUDES, setting the cache variable VAR accordingly.
1600 ac_fn_c_check_header_compile ()
1601 {
1602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606   $as_echo_n "(cached) " >&6
1607 else
1608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h.  */
1610 $4
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614   eval "$3=yes"
1615 else
1616   eval "$3=no"
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 fi
1620 eval ac_res=\$$3
1621                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625 } # ac_fn_c_check_header_compile
1626
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1631 {
1632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633   if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } > conftest.i && {
1649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657     ac_retval=1
1658 fi
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_cpp
1663
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1668 ac_fn_c_try_run ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_link") 2>&5
1679   ac_status=$?
1680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682   { { case "(($ac_try" in
1683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684   *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688   (eval "$ac_try") 2>&5
1689   ac_status=$?
1690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691   test $ac_status = 0; }; }; then :
1692   ac_retval=0
1693 else
1694   $as_echo "$as_me: program exited with status $ac_status" >&5
1695        $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698        ac_retval=$ac_status
1699 fi
1700   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702   as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_run
1705
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1710 {
1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715   $as_echo_n "(cached) " >&6
1716 else
1717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h.  */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1721 #define $2 innocuous_$2
1722
1723 /* System header to define __stub macros and hopefully few prototypes,
1724     which can conflict with char $2 (); below.
1725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726     <limits.h> exists even on freestanding compilers.  */
1727
1728 #ifdef __STDC__
1729 # include <limits.h>
1730 #else
1731 # include <assert.h>
1732 #endif
1733
1734 #undef $2
1735
1736 /* Override any GCC internal prototype to avoid an error.
1737    Use char because int might match the return type of a GCC
1738    builtin and then its argument prototype would still apply.  */
1739 #ifdef __cplusplus
1740 extern "C"
1741 #endif
1742 char $2 ();
1743 /* The GNU C library defines this for functions which it implements
1744     to always fail with ENOSYS.  Some functions are actually named
1745     something starting with __ and the normal name is an alias.  */
1746 #if defined __stub_$2 || defined __stub___$2
1747 choke me
1748 #endif
1749
1750 int
1751 main ()
1752 {
1753 return $2 ();
1754   ;
1755   return 0;
1756 }
1757 _ACEOF
1758 if ac_fn_c_try_link "$LINENO"; then :
1759   eval "$3=yes"
1760 else
1761   eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext \
1764     conftest$ac_exeext conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_c_check_func
1772
1773 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1774 # ---------------------------------------------
1775 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1776 # accordingly.
1777 ac_fn_c_check_decl ()
1778 {
1779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780   as_decl_name=`echo $2|sed 's/ *(.*//'`
1781   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1783 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1784 if eval \${$3+:} false; then :
1785   $as_echo_n "(cached) " >&6
1786 else
1787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h.  */
1789 $4
1790 int
1791 main ()
1792 {
1793 #ifndef $as_decl_name
1794 #ifdef __cplusplus
1795   (void) $as_decl_use;
1796 #else
1797   (void) $as_decl_name;
1798 #endif
1799 #endif
1800
1801   ;
1802   return 0;
1803 }
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806   eval "$3=yes"
1807 else
1808   eval "$3=no"
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 fi
1812 eval ac_res=\$$3
1813                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817 } # ac_fn_c_check_decl
1818 cat >config.log <<_ACEOF
1819 This file contains any messages produced by compilers while
1820 running configure, to aid debugging if configure makes a mistake.
1821
1822 It was created by sqlite $as_me 3.9.2, which was
1823 generated by GNU Autoconf 2.69.  Invocation command line was
1824
1825   $ $0 $@
1826
1827 _ACEOF
1828 exec 5>>config.log
1829 {
1830 cat <<_ASUNAME
1831 ## --------- ##
1832 ## Platform. ##
1833 ## --------- ##
1834
1835 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1840
1841 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1843
1844 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1845 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1846 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1847 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1848 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1849 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1850 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1851
1852 _ASUNAME
1853
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857   IFS=$as_save_IFS
1858   test -z "$as_dir" && as_dir=.
1859     $as_echo "PATH: $as_dir"
1860   done
1861 IFS=$as_save_IFS
1862
1863 } >&5
1864
1865 cat >&5 <<_ACEOF
1866
1867
1868 ## ----------- ##
1869 ## Core tests. ##
1870 ## ----------- ##
1871
1872 _ACEOF
1873
1874
1875 # Keep a trace of the command line.
1876 # Strip out --no-create and --no-recursion so they do not pile up.
1877 # Strip out --silent because we don't want to record it for future runs.
1878 # Also quote any args containing shell meta-characters.
1879 # Make two passes to allow for proper duplicate-argument suppression.
1880 ac_configure_args=
1881 ac_configure_args0=
1882 ac_configure_args1=
1883 ac_must_keep_next=false
1884 for ac_pass in 1 2
1885 do
1886   for ac_arg
1887   do
1888     case $ac_arg in
1889     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891     | -silent | --silent | --silen | --sile | --sil)
1892       continue ;;
1893     *\'*)
1894       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1895     esac
1896     case $ac_pass in
1897     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1898     2)
1899       as_fn_append ac_configure_args1 " '$ac_arg'"
1900       if test $ac_must_keep_next = true; then
1901         ac_must_keep_next=false # Got value, back to normal.
1902       else
1903         case $ac_arg in
1904           *=* | --config-cache | -C | -disable-* | --disable-* \
1905           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907           | -with-* | --with-* | -without-* | --without-* | --x)
1908             case "$ac_configure_args0 " in
1909               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1910             esac
1911             ;;
1912           -* ) ac_must_keep_next=true ;;
1913         esac
1914       fi
1915       as_fn_append ac_configure_args " '$ac_arg'"
1916       ;;
1917     esac
1918   done
1919 done
1920 { ac_configure_args0=; unset ac_configure_args0;}
1921 { ac_configure_args1=; unset ac_configure_args1;}
1922
1923 # When interrupted or exit'd, cleanup temporary files, and complete
1924 # config.log.  We remove comments because anyway the quotes in there
1925 # would cause problems or look ugly.
1926 # WARNING: Use '\'' to represent an apostrophe within the trap.
1927 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928 trap 'exit_status=$?
1929   # Save into config.log some information that might help in debugging.
1930   {
1931     echo
1932
1933     $as_echo "## ---------------- ##
1934 ## Cache variables. ##
1935 ## ---------------- ##"
1936     echo
1937     # The following way of writing the cache mishandles newlines in values,
1938 (
1939   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940     eval ac_val=\$$ac_var
1941     case $ac_val in #(
1942     *${as_nl}*)
1943       case $ac_var in #(
1944       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1946       esac
1947       case $ac_var in #(
1948       _ | IFS | as_nl) ;; #(
1949       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950       *) { eval $ac_var=; unset $ac_var;} ;;
1951       esac ;;
1952     esac
1953   done
1954   (set) 2>&1 |
1955     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956     *${as_nl}ac_space=\ *)
1957       sed -n \
1958         "s/'\''/'\''\\\\'\'''\''/g;
1959           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1960       ;; #(
1961     *)
1962       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1963       ;;
1964     esac |
1965     sort
1966 )
1967     echo
1968
1969     $as_echo "## ----------------- ##
1970 ## Output variables. ##
1971 ## ----------------- ##"
1972     echo
1973     for ac_var in $ac_subst_vars
1974     do
1975       eval ac_val=\$$ac_var
1976       case $ac_val in
1977       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1978       esac
1979       $as_echo "$ac_var='\''$ac_val'\''"
1980     done | sort
1981     echo
1982
1983     if test -n "$ac_subst_files"; then
1984       $as_echo "## ------------------- ##
1985 ## File substitutions. ##
1986 ## ------------------- ##"
1987       echo
1988       for ac_var in $ac_subst_files
1989       do
1990         eval ac_val=\$$ac_var
1991         case $ac_val in
1992         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993         esac
1994         $as_echo "$ac_var='\''$ac_val'\''"
1995       done | sort
1996       echo
1997     fi
1998
1999     if test -s confdefs.h; then
2000       $as_echo "## ----------- ##
2001 ## confdefs.h. ##
2002 ## ----------- ##"
2003       echo
2004       cat confdefs.h
2005       echo
2006     fi
2007     test "$ac_signal" != 0 &&
2008       $as_echo "$as_me: caught signal $ac_signal"
2009     $as_echo "$as_me: exit $exit_status"
2010   } >&5
2011   rm -f core *.core core.conftest.* &&
2012     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2013     exit $exit_status
2014 ' 0
2015 for ac_signal in 1 2 13 15; do
2016   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2017 done
2018 ac_signal=0
2019
2020 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2021 rm -f -r conftest* confdefs.h
2022
2023 $as_echo "/* confdefs.h */" > confdefs.h
2024
2025 # Predefined preprocessor variables.
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_NAME "$PACKAGE_NAME"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2033 _ACEOF
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2037 _ACEOF
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_STRING "$PACKAGE_STRING"
2041 _ACEOF
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2045 _ACEOF
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_URL "$PACKAGE_URL"
2049 _ACEOF
2050
2051
2052 # Let the site file select an alternate cache file if it wants to.
2053 # Prefer an explicitly selected file to automatically selected ones.
2054 ac_site_file1=NONE
2055 ac_site_file2=NONE
2056 if test -n "$CONFIG_SITE"; then
2057   # We do not want a PATH search for config.site.
2058   case $CONFIG_SITE in #((
2059     -*)  ac_site_file1=./$CONFIG_SITE;;
2060     */*) ac_site_file1=$CONFIG_SITE;;
2061     *)   ac_site_file1=./$CONFIG_SITE;;
2062   esac
2063 elif test "x$prefix" != xNONE; then
2064   ac_site_file1=$prefix/share/config.site
2065   ac_site_file2=$prefix/etc/config.site
2066 else
2067   ac_site_file1=$ac_default_prefix/share/config.site
2068   ac_site_file2=$ac_default_prefix/etc/config.site
2069 fi
2070 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2071 do
2072   test "x$ac_site_file" = xNONE && continue
2073   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2074     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076     sed 's/^/| /' "$ac_site_file" >&5
2077     . "$ac_site_file" \
2078       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 as_fn_error $? "failed to load site script $ac_site_file
2081 See \`config.log' for more details" "$LINENO" 5; }
2082   fi
2083 done
2084
2085 if test -r "$cache_file"; then
2086   # Some versions of bash will fail to source /dev/null (special files
2087   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2088   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2089     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2090 $as_echo "$as_me: loading cache $cache_file" >&6;}
2091     case $cache_file in
2092       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093       *)                      . "./$cache_file";;
2094     esac
2095   fi
2096 else
2097   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2098 $as_echo "$as_me: creating cache $cache_file" >&6;}
2099   >$cache_file
2100 fi
2101
2102 # Check that the precious variables saved in the cache have kept the same
2103 # value.
2104 ac_cache_corrupted=false
2105 for ac_var in $ac_precious_vars; do
2106   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2107   eval ac_new_set=\$ac_env_${ac_var}_set
2108   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2109   eval ac_new_val=\$ac_env_${ac_var}_value
2110   case $ac_old_set,$ac_new_set in
2111     set,)
2112       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2114       ac_cache_corrupted=: ;;
2115     ,set)
2116       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2117 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2118       ac_cache_corrupted=: ;;
2119     ,);;
2120     *)
2121       if test "x$ac_old_val" != "x$ac_new_val"; then
2122         # differences in whitespace do not lead to failure.
2123         ac_old_val_w=`echo x $ac_old_val`
2124         ac_new_val_w=`echo x $ac_new_val`
2125         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2126           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2127 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2128           ac_cache_corrupted=:
2129         else
2130           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2131 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2132           eval $ac_var=\$ac_old_val
2133         fi
2134         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2135 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2136         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2137 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2138       fi;;
2139   esac
2140   # Pass precious variables to config.status.
2141   if test "$ac_new_set" = set; then
2142     case $ac_new_val in
2143     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2144     *) ac_arg=$ac_var=$ac_new_val ;;
2145     esac
2146     case " $ac_configure_args " in
2147       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2148       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2149     esac
2150   fi
2151 done
2152 if $ac_cache_corrupted; then
2153   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2155   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2156 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2158 fi
2159 ## -------------------- ##
2160 ## Main body of script. ##
2161 ## -------------------- ##
2162
2163 ac_ext=c
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168
2169
2170
2171
2172 # Use automake.
2173 am__api_version='1.11'
2174
2175 ac_aux_dir=
2176 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2177   if test -f "$ac_dir/install-sh"; then
2178     ac_aux_dir=$ac_dir
2179     ac_install_sh="$ac_aux_dir/install-sh -c"
2180     break
2181   elif test -f "$ac_dir/install.sh"; then
2182     ac_aux_dir=$ac_dir
2183     ac_install_sh="$ac_aux_dir/install.sh -c"
2184     break
2185   elif test -f "$ac_dir/shtool"; then
2186     ac_aux_dir=$ac_dir
2187     ac_install_sh="$ac_aux_dir/shtool install -c"
2188     break
2189   fi
2190 done
2191 if test -z "$ac_aux_dir"; then
2192   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2193 fi
2194
2195 # These three variables are undocumented and unsupported,
2196 # and are intended to be withdrawn in a future Autoconf release.
2197 # They can cause serious problems if a builder's source tree is in a directory
2198 # whose full name contains unusual characters.
2199 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2200 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2201 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2202
2203
2204 # Find a good install program.  We prefer a C program (faster),
2205 # so one script is as good as another.  But avoid the broken or
2206 # incompatible versions:
2207 # SysV /etc/install, /usr/sbin/install
2208 # SunOS /usr/etc/install
2209 # IRIX /sbin/install
2210 # AIX /bin/install
2211 # AmigaOS /C/install, which installs bootblocks on floppy discs
2212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2215 # OS/2's system install, which has a completely different semantic
2216 # ./install, which can be erroneously created by make from ./install.sh.
2217 # Reject install programs that cannot install multiple files.
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2219 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2220 if test -z "$INSTALL"; then
2221 if ${ac_cv_path_install+:} false; then :
2222   $as_echo_n "(cached) " >&6
2223 else
2224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227   IFS=$as_save_IFS
2228   test -z "$as_dir" && as_dir=.
2229     # Account for people who put trailing slashes in PATH elements.
2230 case $as_dir/ in #((
2231   ./ | .// | /[cC]/* | \
2232   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2233   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2234   /usr/ucb/* ) ;;
2235   *)
2236     # OSF1 and SCO ODT 3.0 have their own names for install.
2237     # Don't use installbsd from OSF since it installs stuff as root
2238     # by default.
2239     for ac_prog in ginstall scoinst install; do
2240       for ac_exec_ext in '' $ac_executable_extensions; do
2241         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2242           if test $ac_prog = install &&
2243             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244             # AIX install.  It has an incompatible calling convention.
2245             :
2246           elif test $ac_prog = install &&
2247             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248             # program-specific install script used by HP pwplus--don't use.
2249             :
2250           else
2251             rm -rf conftest.one conftest.two conftest.dir
2252             echo one > conftest.one
2253             echo two > conftest.two
2254             mkdir conftest.dir
2255             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2256               test -s conftest.one && test -s conftest.two &&
2257               test -s conftest.dir/conftest.one &&
2258               test -s conftest.dir/conftest.two
2259             then
2260               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2261               break 3
2262             fi
2263           fi
2264         fi
2265       done
2266     done
2267     ;;
2268 esac
2269
2270   done
2271 IFS=$as_save_IFS
2272
2273 rm -rf conftest.one conftest.two conftest.dir
2274
2275 fi
2276   if test "${ac_cv_path_install+set}" = set; then
2277     INSTALL=$ac_cv_path_install
2278   else
2279     # As a last resort, use the slow shell script.  Don't cache a
2280     # value for INSTALL within a source directory, because that will
2281     # break other packages using the cache if that directory is
2282     # removed, or if the value is a relative name.
2283     INSTALL=$ac_install_sh
2284   fi
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2287 $as_echo "$INSTALL" >&6; }
2288
2289 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2290 # It thinks the first close brace ends the variable substitution.
2291 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2292
2293 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2294
2295 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2296
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2298 $as_echo_n "checking whether build environment is sane... " >&6; }
2299 # Just in case
2300 sleep 1
2301 echo timestamp > conftest.file
2302 # Reject unsafe characters in $srcdir or the absolute working directory
2303 # name.  Accept space and tab only in the latter.
2304 am_lf='
2305 '
2306 case `pwd` in
2307   *[\\\"\#\$\&\'\`$am_lf]*)
2308     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2309 esac
2310 case $srcdir in
2311   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2312     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2313 esac
2314
2315 # Do `set' in a subshell so we don't clobber the current shell's
2316 # arguments.  Must try -L first in case configure is actually a
2317 # symlink; some systems play weird games with the mod time of symlinks
2318 # (eg FreeBSD returns the mod time of the symlink's containing
2319 # directory).
2320 if (
2321    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2322    if test "$*" = "X"; then
2323       # -L didn't work.
2324       set X `ls -t "$srcdir/configure" conftest.file`
2325    fi
2326    rm -f conftest.file
2327    if test "$*" != "X $srcdir/configure conftest.file" \
2328       && test "$*" != "X conftest.file $srcdir/configure"; then
2329
2330       # If neither matched, then we have a broken ls.  This can happen
2331       # if, for instance, CONFIG_SHELL is bash and it inherits a
2332       # broken ls alias from the environment.  This has actually
2333       # happened.  Such a system could not be considered "sane".
2334       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2335 alias in your environment" "$LINENO" 5
2336    fi
2337
2338    test "$2" = conftest.file
2339    )
2340 then
2341    # Ok.
2342    :
2343 else
2344    as_fn_error $? "newly created file is older than distributed files!
2345 Check your system clock" "$LINENO" 5
2346 fi
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2348 $as_echo "yes" >&6; }
2349 test "$program_prefix" != NONE &&
2350   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2351 # Use a double $ so make ignores it.
2352 test "$program_suffix" != NONE &&
2353   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2354 # Double any \ or $.
2355 # By default was `s,x,x', remove it if useless.
2356 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2357 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2358
2359 # expand $ac_aux_dir to an absolute path
2360 am_aux_dir=`cd $ac_aux_dir && pwd`
2361
2362 if test x"${MISSING+set}" != xset; then
2363   case $am_aux_dir in
2364   *\ * | *\     *)
2365     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2366   *)
2367     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2368   esac
2369 fi
2370 # Use eval to expand $SHELL
2371 if eval "$MISSING --run true"; then
2372   am_missing_run="$MISSING --run "
2373 else
2374   am_missing_run=
2375   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2376 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2377 fi
2378
2379 if test x"${install_sh}" != xset; then
2380   case $am_aux_dir in
2381   *\ * | *\     *)
2382     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2383   *)
2384     install_sh="\${SHELL} $am_aux_dir/install-sh"
2385   esac
2386 fi
2387
2388 # Installed binaries are usually stripped using `strip' when the user
2389 # run `make install-strip'.  However `strip' might not be the right
2390 # tool to use in cross-compilation environments, therefore Automake
2391 # will honor the `STRIP' environment variable to overrule this program.
2392 if test "$cross_compiling" != no; then
2393   if test -n "$ac_tool_prefix"; then
2394   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2395 set dummy ${ac_tool_prefix}strip; ac_word=$2
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if ${ac_cv_prog_STRIP+:} false; then :
2399   $as_echo_n "(cached) " >&6
2400 else
2401   if test -n "$STRIP"; then
2402   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407   IFS=$as_save_IFS
2408   test -z "$as_dir" && as_dir=.
2409     for ac_exec_ext in '' $ac_executable_extensions; do
2410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413     break 2
2414   fi
2415 done
2416   done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 STRIP=$ac_cv_prog_STRIP
2422 if test -n "$STRIP"; then
2423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2424 $as_echo "$STRIP" >&6; }
2425 else
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427 $as_echo "no" >&6; }
2428 fi
2429
2430
2431 fi
2432 if test -z "$ac_cv_prog_STRIP"; then
2433   ac_ct_STRIP=$STRIP
2434   # Extract the first word of "strip", so it can be a program name with args.
2435 set dummy strip; ac_word=$2
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437 $as_echo_n "checking for $ac_word... " >&6; }
2438 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2439   $as_echo_n "(cached) " >&6
2440 else
2441   if test -n "$ac_ct_STRIP"; then
2442   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447   IFS=$as_save_IFS
2448   test -z "$as_dir" && as_dir=.
2449     for ac_exec_ext in '' $ac_executable_extensions; do
2450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451     ac_cv_prog_ac_ct_STRIP="strip"
2452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453     break 2
2454   fi
2455 done
2456   done
2457 IFS=$as_save_IFS
2458
2459 fi
2460 fi
2461 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2462 if test -n "$ac_ct_STRIP"; then
2463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2464 $as_echo "$ac_ct_STRIP" >&6; }
2465 else
2466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467 $as_echo "no" >&6; }
2468 fi
2469
2470   if test "x$ac_ct_STRIP" = x; then
2471     STRIP=":"
2472   else
2473     case $cross_compiling:$ac_tool_warned in
2474 yes:)
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2477 ac_tool_warned=yes ;;
2478 esac
2479     STRIP=$ac_ct_STRIP
2480   fi
2481 else
2482   STRIP="$ac_cv_prog_STRIP"
2483 fi
2484
2485 fi
2486 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2487
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2489 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2490 if test -z "$MKDIR_P"; then
2491   if ${ac_cv_path_mkdir+:} false; then :
2492   $as_echo_n "(cached) " >&6
2493 else
2494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499     for ac_prog in mkdir gmkdir; do
2500          for ac_exec_ext in '' $ac_executable_extensions; do
2501            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2502            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2503              'mkdir (GNU coreutils) '* | \
2504              'mkdir (coreutils) '* | \
2505              'mkdir (fileutils) '4.1*)
2506                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2507                break 3;;
2508            esac
2509          done
2510        done
2511   done
2512 IFS=$as_save_IFS
2513
2514 fi
2515
2516   test -d ./--version && rmdir ./--version
2517   if test "${ac_cv_path_mkdir+set}" = set; then
2518     MKDIR_P="$ac_cv_path_mkdir -p"
2519   else
2520     # As a last resort, use the slow shell script.  Don't cache a
2521     # value for MKDIR_P within a source directory, because that will
2522     # break other packages using the cache if that directory is
2523     # removed, or if the value is a relative name.
2524     MKDIR_P="$ac_install_sh -d"
2525   fi
2526 fi
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2528 $as_echo "$MKDIR_P" >&6; }
2529
2530 mkdir_p="$MKDIR_P"
2531 case $mkdir_p in
2532   [\\/$]* | ?:[\\/]*) ;;
2533   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2534 esac
2535
2536 for ac_prog in gawk mawk nawk awk
2537 do
2538   # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_AWK+:} false; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   if test -n "$AWK"; then
2546   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551   IFS=$as_save_IFS
2552   test -z "$as_dir" && as_dir=.
2553     for ac_exec_ext in '' $ac_executable_extensions; do
2554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555     ac_cv_prog_AWK="$ac_prog"
2556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557     break 2
2558   fi
2559 done
2560   done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 AWK=$ac_cv_prog_AWK
2566 if test -n "$AWK"; then
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2568 $as_echo "$AWK" >&6; }
2569 else
2570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574
2575   test -n "$AWK" && break
2576 done
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2579 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2580 set x ${MAKE-make}
2581 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2582 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2583   $as_echo_n "(cached) " >&6
2584 else
2585   cat >conftest.make <<\_ACEOF
2586 SHELL = /bin/sh
2587 all:
2588         @echo '@@@%%%=$(MAKE)=@@@%%%'
2589 _ACEOF
2590 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2591 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2592   *@@@%%%=?*=@@@%%%*)
2593     eval ac_cv_prog_make_${ac_make}_set=yes;;
2594   *)
2595     eval ac_cv_prog_make_${ac_make}_set=no;;
2596 esac
2597 rm -f conftest.make
2598 fi
2599 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2601 $as_echo "yes" >&6; }
2602   SET_MAKE=
2603 else
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606   SET_MAKE="MAKE=${MAKE-make}"
2607 fi
2608
2609 rm -rf .tst 2>/dev/null
2610 mkdir .tst 2>/dev/null
2611 if test -d .tst; then
2612   am__leading_dot=.
2613 else
2614   am__leading_dot=_
2615 fi
2616 rmdir .tst 2>/dev/null
2617
2618 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2619   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2620   # is not polluted with repeated "-I."
2621   am__isrc=' -I$(srcdir)'
2622   # test to see if srcdir already configured
2623   if test -f $srcdir/config.status; then
2624     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2625   fi
2626 fi
2627
2628 # test whether we have cygpath
2629 if test -z "$CYGPATH_W"; then
2630   if (cygpath --version) >/dev/null 2>/dev/null; then
2631     CYGPATH_W='cygpath -w'
2632   else
2633     CYGPATH_W=echo
2634   fi
2635 fi
2636
2637
2638 # Define the identity of the package.
2639  PACKAGE='sqlite'
2640  VERSION='3.9.2'
2641
2642
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE "$PACKAGE"
2645 _ACEOF
2646
2647
2648 cat >>confdefs.h <<_ACEOF
2649 #define VERSION "$VERSION"
2650 _ACEOF
2651
2652 # Some tools Automake needs.
2653
2654 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2655
2656
2657 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2658
2659
2660 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2661
2662
2663 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2664
2665
2666 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2667
2668 # We need awk for the "check" target.  The system "awk" is bad on
2669 # some platforms.
2670 # Always define AMTAR for backward compatibility.  Yes, it's still used
2671 # in the wild :-(  We should find a proper way to deprecate it ...
2672 AMTAR='$${TAR-tar}'
2673
2674 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2675
2676
2677
2678
2679
2680
2681 DEPDIR="${am__leading_dot}deps"
2682
2683 ac_config_commands="$ac_config_commands depfiles"
2684
2685
2686 am_make=${MAKE-make}
2687 cat > confinc << 'END'
2688 am__doit:
2689         @echo this is the am__doit target
2690 .PHONY: am__doit
2691 END
2692 # If we don't find an include directive, just comment out the code.
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2694 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2695 am__include="#"
2696 am__quote=
2697 _am_result=none
2698 # First try GNU make style include.
2699 echo "include confinc" > confmf
2700 # Ignore all kinds of additional output from `make'.
2701 case `$am_make -s -f confmf 2> /dev/null` in #(
2702 *the\ am__doit\ target*)
2703   am__include=include
2704   am__quote=
2705   _am_result=GNU
2706   ;;
2707 esac
2708 # Now try BSD make style include.
2709 if test "$am__include" = "#"; then
2710    echo '.include "confinc"' > confmf
2711    case `$am_make -s -f confmf 2> /dev/null` in #(
2712    *the\ am__doit\ target*)
2713      am__include=.include
2714      am__quote="\""
2715      _am_result=BSD
2716      ;;
2717    esac
2718 fi
2719
2720
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2722 $as_echo "$_am_result" >&6; }
2723 rm -f confinc confmf
2724
2725 # Check whether --enable-dependency-tracking was given.
2726 if test "${enable_dependency_tracking+set}" = set; then :
2727   enableval=$enable_dependency_tracking;
2728 fi
2729
2730 if test "x$enable_dependency_tracking" != xno; then
2731   am_depcomp="$ac_aux_dir/depcomp"
2732   AMDEPBACKSLASH='\'
2733   am__nodep='_no'
2734 fi
2735  if test "x$enable_dependency_tracking" != xno; then
2736   AMDEP_TRUE=
2737   AMDEP_FALSE='#'
2738 else
2739   AMDEP_TRUE='#'
2740   AMDEP_FALSE=
2741 fi
2742
2743
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 if test -n "$ac_tool_prefix"; then
2750   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_CC+:} false; then :
2755   $as_echo_n "(cached) " >&6
2756 else
2757   if test -n "$CC"; then
2758   ac_cv_prog_CC="$CC" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763   IFS=$as_save_IFS
2764   test -z "$as_dir" && as_dir=.
2765     for ac_exec_ext in '' $ac_executable_extensions; do
2766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769     break 2
2770   fi
2771 done
2772   done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2781 else
2782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 fi
2785
2786
2787 fi
2788 if test -z "$ac_cv_prog_CC"; then
2789   ac_ct_CC=$CC
2790   # Extract the first word of "gcc", so it can be a program name with args.
2791 set dummy gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2795   $as_echo_n "(cached) " >&6
2796 else
2797   if test -n "$ac_ct_CC"; then
2798   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803   IFS=$as_save_IFS
2804   test -z "$as_dir" && as_dir=.
2805     for ac_exec_ext in '' $ac_executable_extensions; do
2806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807     ac_cv_prog_ac_ct_CC="gcc"
2808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809     break 2
2810   fi
2811 done
2812   done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818 if test -n "$ac_ct_CC"; then
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820 $as_echo "$ac_ct_CC" >&6; }
2821 else
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826   if test "x$ac_ct_CC" = x; then
2827     CC=""
2828   else
2829     case $cross_compiling:$ac_tool_warned in
2830 yes:)
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833 ac_tool_warned=yes ;;
2834 esac
2835     CC=$ac_ct_CC
2836   fi
2837 else
2838   CC="$ac_cv_prog_CC"
2839 fi
2840
2841 if test -z "$CC"; then
2842           if test -n "$ac_tool_prefix"; then
2843     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}cc; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_CC+:} false; then :
2848   $as_echo_n "(cached) " >&6
2849 else
2850   if test -n "$CC"; then
2851   ac_cv_prog_CC="$CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858     for ac_exec_ext in '' $ac_executable_extensions; do
2859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860     ac_cv_prog_CC="${ac_tool_prefix}cc"
2861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862     break 2
2863   fi
2864 done
2865   done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 CC=$ac_cv_prog_CC
2871 if test -n "$CC"; then
2872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2874 else
2875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880   fi
2881 fi
2882 if test -z "$CC"; then
2883   # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888   $as_echo_n "(cached) " >&6
2889 else
2890   if test -n "$CC"; then
2891   ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893   ac_prog_rejected=no
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897   IFS=$as_save_IFS
2898   test -z "$as_dir" && as_dir=.
2899     for ac_exec_ext in '' $ac_executable_extensions; do
2900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902        ac_prog_rejected=yes
2903        continue
2904      fi
2905     ac_cv_prog_CC="cc"
2906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907     break 2
2908   fi
2909 done
2910   done
2911 IFS=$as_save_IFS
2912
2913 if test $ac_prog_rejected = yes; then
2914   # We found a bogon in the path, so make sure we never use it.
2915   set dummy $ac_cv_prog_CC
2916   shift
2917   if test $# != 0; then
2918     # We chose a different compiler from the bogus one.
2919     # However, it has the same basename, so the bogon will be chosen
2920     # first if we set CC to just the basename; use the full file name.
2921     shift
2922     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923   fi
2924 fi
2925 fi
2926 fi
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2931 else
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936
2937 fi
2938 if test -z "$CC"; then
2939   if test -n "$ac_tool_prefix"; then
2940   for ac_prog in cl.exe
2941   do
2942     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CC+:} false; then :
2947   $as_echo_n "(cached) " >&6
2948 else
2949   if test -n "$CC"; then
2950   ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955   IFS=$as_save_IFS
2956   test -z "$as_dir" && as_dir=.
2957     for ac_exec_ext in '' $ac_executable_extensions; do
2958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961     break 2
2962   fi
2963 done
2964   done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 CC=$ac_cv_prog_CC
2970 if test -n "$CC"; then
2971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2973 else
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979     test -n "$CC" && break
2980   done
2981 fi
2982 if test -z "$CC"; then
2983   ac_ct_CC=$CC
2984   for ac_prog in cl.exe
2985 do
2986   # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
2991   $as_echo_n "(cached) " >&6
2992 else
2993   if test -n "$ac_ct_CC"; then
2994   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 $as_echo "$ac_ct_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   test -n "$ac_ct_CC" && break
3024 done
3025
3026   if test "x$ac_ct_CC" = x; then
3027     CC=""
3028   else
3029     case $cross_compiling:$ac_tool_warned in
3030 yes:)
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned=yes ;;
3034 esac
3035     CC=$ac_ct_CC
3036   fi
3037 fi
3038
3039 fi
3040
3041
3042 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error $? "no acceptable C compiler found in \$PATH
3045 See \`config.log' for more details" "$LINENO" 5; }
3046
3047 # Provide some information about the compiler.
3048 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049 set X $ac_compile
3050 ac_compiler=$2
3051 for ac_option in --version -v -V -qversion; do
3052   { { ac_try="$ac_compiler $ac_option >&5"
3053 case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3060   ac_status=$?
3061   if test -s conftest.err; then
3062     sed '10a\
3063 ... rest of stderr output deleted ...
3064          10q' conftest.err >conftest.er1
3065     cat conftest.er1 >&5
3066   fi
3067   rm -f conftest.er1 conftest.err
3068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069   test $ac_status = 0; }
3070 done
3071
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h.  */
3074
3075 int
3076 main ()
3077 {
3078
3079   ;
3080   return 0;
3081 }
3082 _ACEOF
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3087 # of exeext.
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3089 $as_echo_n "checking whether the C compiler works... " >&6; }
3090 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091
3092 # The possible output files:
3093 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094
3095 ac_rmfiles=
3096 for ac_file in $ac_files
3097 do
3098   case $ac_file in
3099     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101   esac
3102 done
3103 rm -f $ac_rmfiles
3104
3105 if { { ac_try="$ac_link_default"
3106 case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112   (eval "$ac_link_default") 2>&5
3113   ac_status=$?
3114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115   test $ac_status = 0; }; then :
3116   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3120 # Autoconf.
3121 for ac_file in $ac_files ''
3122 do
3123   test -f "$ac_file" || continue
3124   case $ac_file in
3125     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3126         ;;
3127     [ab].out )
3128         # We found the default executable, but exeext='' is most
3129         # certainly right.
3130         break;;
3131     *.* )
3132         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133         then :; else
3134            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135         fi
3136         # We set ac_cv_exeext here because the later test for it is not
3137         # safe: cross compilers may not add the suffix if given an `-o'
3138         # argument, so we may need to know it at that point already.
3139         # Even if this section looks crufty: it has the advantage of
3140         # actually working.
3141         break;;
3142     * )
3143         break;;
3144   esac
3145 done
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3147
3148 else
3149   ac_file=''
3150 fi
3151 if test -z "$ac_file"; then :
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 as_fn_error 77 "C compiler cannot create executables
3160 See \`config.log' for more details" "$LINENO" 5; }
3161 else
3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3164 fi
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3166 $as_echo_n "checking for C compiler default output file name... " >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3168 $as_echo "$ac_file" >&6; }
3169 ac_exeext=$ac_cv_exeext
3170
3171 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3172 ac_clean_files=$ac_clean_files_save
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3174 $as_echo_n "checking for suffix of executables... " >&6; }
3175 if { { ac_try="$ac_link"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182   (eval "$ac_link") 2>&5
3183   ac_status=$?
3184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185   test $ac_status = 0; }; then :
3186   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3187 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3188 # work properly (i.e., refer to `conftest.exe'), while it won't with
3189 # `rm'.
3190 for ac_file in conftest.exe conftest conftest.*; do
3191   test -f "$ac_file" || continue
3192   case $ac_file in
3193     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195           break;;
3196     * ) break;;
3197   esac
3198 done
3199 else
3200   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3203 See \`config.log' for more details" "$LINENO" 5; }
3204 fi
3205 rm -f conftest conftest$ac_cv_exeext
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3207 $as_echo "$ac_cv_exeext" >&6; }
3208
3209 rm -f conftest.$ac_ext
3210 EXEEXT=$ac_cv_exeext
3211 ac_exeext=$EXEEXT
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h.  */
3214 #include <stdio.h>
3215 int
3216 main ()
3217 {
3218 FILE *f = fopen ("conftest.out", "w");
3219  return ferror (f) || fclose (f) != 0;
3220
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 ac_clean_files="$ac_clean_files conftest.out"
3226 # Check that the compiler produces executables we can run.  If not, either
3227 # the compiler is broken, or we cross compile.
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3229 $as_echo_n "checking whether we are cross compiling... " >&6; }
3230 if test "$cross_compiling" != yes; then
3231   { { ac_try="$ac_link"
3232 case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238   (eval "$ac_link") 2>&5
3239   ac_status=$?
3240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241   test $ac_status = 0; }
3242   if { ac_try='./conftest$ac_cv_exeext'
3243   { { case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249   (eval "$ac_try") 2>&5
3250   ac_status=$?
3251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252   test $ac_status = 0; }; }; then
3253     cross_compiling=no
3254   else
3255     if test "$cross_compiling" = maybe; then
3256         cross_compiling=yes
3257     else
3258         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details" "$LINENO" 5; }
3263     fi
3264   fi
3265 fi
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3267 $as_echo "$cross_compiling" >&6; }
3268
3269 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3270 ac_clean_files=$ac_clean_files_save
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3272 $as_echo_n "checking for suffix of object files... " >&6; }
3273 if ${ac_cv_objext+:} false; then :
3274   $as_echo_n "(cached) " >&6
3275 else
3276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h.  */
3278
3279 int
3280 main ()
3281 {
3282
3283   ;
3284   return 0;
3285 }
3286 _ACEOF
3287 rm -f conftest.o conftest.obj
3288 if { { ac_try="$ac_compile"
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_compile") 2>&5
3296   ac_status=$?
3297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298   test $ac_status = 0; }; then :
3299   for ac_file in conftest.o conftest.obj conftest.*; do
3300   test -f "$ac_file" || continue;
3301   case $ac_file in
3302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3303     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304        break;;
3305   esac
3306 done
3307 else
3308   $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details" "$LINENO" 5; }
3315 fi
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3317 fi
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3319 $as_echo "$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3321 ac_objext=$OBJEXT
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3324 if ${ac_cv_c_compiler_gnu+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h.  */
3329
3330 int
3331 main ()
3332 {
3333 #ifndef __GNUC__
3334        choke me
3335 #endif
3336
3337   ;
3338   return 0;
3339 }
3340 _ACEOF
3341 if ac_fn_c_try_compile "$LINENO"; then :
3342   ac_compiler_gnu=yes
3343 else
3344   ac_compiler_gnu=no
3345 fi
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3348
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3352 if test $ac_compiler_gnu = yes; then
3353   GCC=yes
3354 else
3355   GCC=
3356 fi
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3361 if ${ac_cv_prog_cc_g+:} false; then :
3362   $as_echo_n "(cached) " >&6
3363 else
3364   ac_save_c_werror_flag=$ac_c_werror_flag
3365    ac_c_werror_flag=yes
3366    ac_cv_prog_cc_g=no
3367    CFLAGS="-g"
3368    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h.  */
3370
3371 int
3372 main ()
3373 {
3374
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380   ac_cv_prog_cc_g=yes
3381 else
3382   CFLAGS=""
3383       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h.  */
3385
3386 int
3387 main ()
3388 {
3389
3390   ;
3391   return 0;
3392 }
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395
3396 else
3397   ac_c_werror_flag=$ac_save_c_werror_flag
3398          CFLAGS="-g"
3399          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h.  */
3401
3402 int
3403 main ()
3404 {
3405
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411   ac_cv_prog_cc_g=yes
3412 fi
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 fi
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 fi
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418    ac_c_werror_flag=$ac_save_c_werror_flag
3419 fi
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3421 $as_echo "$ac_cv_prog_cc_g" >&6; }
3422 if test "$ac_test_CFLAGS" = set; then
3423   CFLAGS=$ac_save_CFLAGS
3424 elif test $ac_cv_prog_cc_g = yes; then
3425   if test "$GCC" = yes; then
3426     CFLAGS="-g -O2"
3427   else
3428     CFLAGS="-g"
3429   fi
3430 else
3431   if test "$GCC" = yes; then
3432     CFLAGS="-O2"
3433   else
3434     CFLAGS=
3435   fi
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3439 if ${ac_cv_prog_cc_c89+:} false; then :
3440   $as_echo_n "(cached) " >&6
3441 else
3442   ac_cv_prog_cc_c89=no
3443 ac_save_CC=$CC
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h.  */
3446 #include <stdarg.h>
3447 #include <stdio.h>
3448 struct stat;
3449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3450 struct buf { int x; };
3451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3452 static char *e (p, i)
3453      char **p;
3454      int i;
3455 {
3456   return p[i];
3457 }
3458 static char *f (char * (*g) (char **, int), char **p, ...)
3459 {
3460   char *s;
3461   va_list v;
3462   va_start (v,p);
3463   s = g (p, va_arg (v,int));
3464   va_end (v);
3465   return s;
3466 }
3467
3468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3469    function prototypes and stuff, but not '\xHH' hex character constants.
3470    These don't provoke an error unfortunately, instead are silently treated
3471    as 'x'.  The following induces an error, until -std is added to get
3472    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3473    array size at least.  It's necessary to write '\x00'==0 to get something
3474    that's true only with -std.  */
3475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3476
3477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3478    inside strings and character constants.  */
3479 #define FOO(x) 'x'
3480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3481
3482 int test (int i, double x);
3483 struct s1 {int (*f) (int a);};
3484 struct s2 {int (*f) (double a);};
3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3486 int argc;
3487 char **argv;
3488 int
3489 main ()
3490 {
3491 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3497         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3498 do
3499   CC="$ac_save_CC $ac_arg"
3500   if ac_fn_c_try_compile "$LINENO"; then :
3501   ac_cv_prog_cc_c89=$ac_arg
3502 fi
3503 rm -f core conftest.err conftest.$ac_objext
3504   test "x$ac_cv_prog_cc_c89" != "xno" && break
3505 done
3506 rm -f conftest.$ac_ext
3507 CC=$ac_save_CC
3508
3509 fi
3510 # AC_CACHE_VAL
3511 case "x$ac_cv_prog_cc_c89" in
3512   x)
3513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3514 $as_echo "none needed" >&6; } ;;
3515   xno)
3516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3517 $as_echo "unsupported" >&6; } ;;
3518   *)
3519     CC="$CC $ac_cv_prog_cc_c89"
3520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3521 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3522 esac
3523 if test "x$ac_cv_prog_cc_c89" != xno; then :
3524
3525 fi
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533 depcc="$CC"   am_compiler_list=
3534
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3536 $as_echo_n "checking dependency style of $depcc... " >&6; }
3537 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3541   # We make a subdir and do the tests there.  Otherwise we can end up
3542   # making bogus files that we don't know about and never remove.  For
3543   # instance it was reported that on HP-UX the gcc test will end up
3544   # making a dummy file named `D' -- because `-MD' means `put the output
3545   # in D'.
3546   rm -rf conftest.dir
3547   mkdir conftest.dir
3548   # Copy depcomp to subdir because otherwise we won't find it if we're
3549   # using a relative directory.
3550   cp "$am_depcomp" conftest.dir
3551   cd conftest.dir
3552   # We will build objects and dependencies in a subdirectory because
3553   # it helps to detect inapplicable dependency modes.  For instance
3554   # both Tru64's cc and ICC support -MD to output dependencies as a
3555   # side effect of compilation, but ICC will put the dependencies in
3556   # the current directory while Tru64 will put them in the object
3557   # directory.
3558   mkdir sub
3559
3560   am_cv_CC_dependencies_compiler_type=none
3561   if test "$am_compiler_list" = ""; then
3562      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3563   fi
3564   am__universal=false
3565   case " $depcc " in #(
3566      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3567      esac
3568
3569   for depmode in $am_compiler_list; do
3570     # Setup a source with many dependencies, because some compilers
3571     # like to wrap large dependency lists on column 80 (with \), and
3572     # we should not choose a depcomp mode which is confused by this.
3573     #
3574     # We need to recreate these files for each test, as the compiler may
3575     # overwrite some of them when testing with obscure command lines.
3576     # This happens at least with the AIX C compiler.
3577     : > sub/conftest.c
3578     for i in 1 2 3 4 5 6; do
3579       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581       # Solaris 8's {/usr,}/bin/sh.
3582       touch sub/conftst$i.h
3583     done
3584     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3585
3586     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3587     # mode.  It turns out that the SunPro C++ compiler does not properly
3588     # handle `-M -o', and we need to detect this.  Also, some Intel
3589     # versions had trouble with output in subdirs
3590     am__obj=sub/conftest.${OBJEXT-o}
3591     am__minus_obj="-o $am__obj"
3592     case $depmode in
3593     gcc)
3594       # This depmode causes a compiler race in universal mode.
3595       test "$am__universal" = false || continue
3596       ;;
3597     nosideeffect)
3598       # after this tag, mechanisms are not by side-effect, so they'll
3599       # only be used when explicitly requested
3600       if test "x$enable_dependency_tracking" = xyes; then
3601         continue
3602       else
3603         break
3604       fi
3605       ;;
3606     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3607       # This compiler won't grok `-c -o', but also, the minuso test has
3608       # not run yet.  These depmodes are late enough in the game, and
3609       # so weak that their functioning should not be impacted.
3610       am__obj=conftest.${OBJEXT-o}
3611       am__minus_obj=
3612       ;;
3613     none) break ;;
3614     esac
3615     if depmode=$depmode \
3616        source=sub/conftest.c object=$am__obj \
3617        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3618        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3619          >/dev/null 2>conftest.err &&
3620        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3621        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3622        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3623        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3624       # icc doesn't choke on unknown options, it will just issue warnings
3625       # or remarks (even with -Werror).  So we grep stderr for any message
3626       # that says an option was ignored or not supported.
3627       # When given -MP, icc 7.0 and 7.1 complain thusly:
3628       #   icc: Command line warning: ignoring option '-M'; no argument required
3629       # The diagnosis changed in icc 8.0:
3630       #   icc: Command line remark: option '-MP' not supported
3631       if (grep 'ignoring option' conftest.err ||
3632           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3633         am_cv_CC_dependencies_compiler_type=$depmode
3634         break
3635       fi
3636     fi
3637   done
3638
3639   cd ..
3640   rm -rf conftest.dir
3641 else
3642   am_cv_CC_dependencies_compiler_type=none
3643 fi
3644
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3647 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3648 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3649
3650  if
3651   test "x$enable_dependency_tracking" != xno \
3652   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3653   am__fastdepCC_TRUE=
3654   am__fastdepCC_FALSE='#'
3655 else
3656   am__fastdepCC_TRUE='#'
3657   am__fastdepCC_FALSE=
3658 fi
3659
3660
3661
3662 # Check whether --enable-largefile was given.
3663 if test "${enable_largefile+set}" = set; then :
3664   enableval=$enable_largefile;
3665 fi
3666
3667 if test "$enable_largefile" != no; then
3668
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3670 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3671 if ${ac_cv_sys_largefile_CC+:} false; then :
3672   $as_echo_n "(cached) " >&6
3673 else
3674   ac_cv_sys_largefile_CC=no
3675      if test "$GCC" != yes; then
3676        ac_save_CC=$CC
3677        while :; do
3678          # IRIX 6.2 and later do not support large files by default,
3679          # so use the C compiler's -n32 option if that helps.
3680          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h.  */
3682 #include <sys/types.h>
3683  /* Check that off_t can represent 2**63 - 1 correctly.
3684     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3685     since some C++ compilers masquerading as C compilers
3686     incorrectly reject 9223372036854775807.  */
3687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3688   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3689                        && LARGE_OFF_T % 2147483647 == 1)
3690                       ? 1 : -1];
3691 int
3692 main ()
3693 {
3694
3695   ;
3696   return 0;
3697 }
3698 _ACEOF
3699          if ac_fn_c_try_compile "$LINENO"; then :
3700   break
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext
3703          CC="$CC -n32"
3704          if ac_fn_c_try_compile "$LINENO"; then :
3705   ac_cv_sys_largefile_CC=' -n32'; break
3706 fi
3707 rm -f core conftest.err conftest.$ac_objext
3708          break
3709        done
3710        CC=$ac_save_CC
3711        rm -f conftest.$ac_ext
3712     fi
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3715 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3716   if test "$ac_cv_sys_largefile_CC" != no; then
3717     CC=$CC$ac_cv_sys_largefile_CC
3718   fi
3719
3720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3721 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3722 if ${ac_cv_sys_file_offset_bits+:} false; then :
3723   $as_echo_n "(cached) " >&6
3724 else
3725   while :; do
3726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h.  */
3728 #include <sys/types.h>
3729  /* Check that off_t can represent 2**63 - 1 correctly.
3730     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3731     since some C++ compilers masquerading as C compilers
3732     incorrectly reject 9223372036854775807.  */
3733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3734   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3735                        && LARGE_OFF_T % 2147483647 == 1)
3736                       ? 1 : -1];
3737 int
3738 main ()
3739 {
3740
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746   ac_cv_sys_file_offset_bits=no; break
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h.  */
3751 #define _FILE_OFFSET_BITS 64
3752 #include <sys/types.h>
3753  /* Check that off_t can represent 2**63 - 1 correctly.
3754     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3755     since some C++ compilers masquerading as C compilers
3756     incorrectly reject 9223372036854775807.  */
3757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3758   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3759                        && LARGE_OFF_T % 2147483647 == 1)
3760                       ? 1 : -1];
3761 int
3762 main ()
3763 {
3764
3765   ;
3766   return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770   ac_cv_sys_file_offset_bits=64; break
3771 fi
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773   ac_cv_sys_file_offset_bits=unknown
3774   break
3775 done
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3778 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3779 case $ac_cv_sys_file_offset_bits in #(
3780   no | unknown) ;;
3781   *)
3782 cat >>confdefs.h <<_ACEOF
3783 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3784 _ACEOF
3785 ;;
3786 esac
3787 rm -rf conftest*
3788   if test $ac_cv_sys_file_offset_bits = unknown; then
3789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3790 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3791 if ${ac_cv_sys_large_files+:} false; then :
3792   $as_echo_n "(cached) " >&6
3793 else
3794   while :; do
3795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h.  */
3797 #include <sys/types.h>
3798  /* Check that off_t can represent 2**63 - 1 correctly.
3799     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3800     since some C++ compilers masquerading as C compilers
3801     incorrectly reject 9223372036854775807.  */
3802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3803   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3804                        && LARGE_OFF_T % 2147483647 == 1)
3805                       ? 1 : -1];
3806 int
3807 main ()
3808 {
3809
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815   ac_cv_sys_large_files=no; break
3816 fi
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h.  */
3820 #define _LARGE_FILES 1
3821 #include <sys/types.h>
3822  /* Check that off_t can represent 2**63 - 1 correctly.
3823     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3824     since some C++ compilers masquerading as C compilers
3825     incorrectly reject 9223372036854775807.  */
3826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3827   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3828                        && LARGE_OFF_T % 2147483647 == 1)
3829                       ? 1 : -1];
3830 int
3831 main ()
3832 {
3833
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 if ac_fn_c_try_compile "$LINENO"; then :
3839   ac_cv_sys_large_files=1; break
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842   ac_cv_sys_large_files=unknown
3843   break
3844 done
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3847 $as_echo "$ac_cv_sys_large_files" >&6; }
3848 case $ac_cv_sys_large_files in #(
3849   no | unknown) ;;
3850   *)
3851 cat >>confdefs.h <<_ACEOF
3852 #define _LARGE_FILES $ac_cv_sys_large_files
3853 _ACEOF
3854 ;;
3855 esac
3856 rm -rf conftest*
3857   fi
3858
3859
3860 fi
3861
3862
3863 # Check for required programs.
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869 if test -n "$ac_tool_prefix"; then
3870   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873 $as_echo_n "checking for $ac_word... " >&6; }
3874 if ${ac_cv_prog_CC+:} false; then :
3875   $as_echo_n "(cached) " >&6
3876 else
3877   if test -n "$CC"; then
3878   ac_cv_prog_CC="$CC" # Let the user override the test.
3879 else
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3882 do
3883   IFS=$as_save_IFS
3884   test -z "$as_dir" && as_dir=.
3885     for ac_exec_ext in '' $ac_executable_extensions; do
3886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3887     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889     break 2
3890   fi
3891 done
3892   done
3893 IFS=$as_save_IFS
3894
3895 fi
3896 fi
3897 CC=$ac_cv_prog_CC
3898 if test -n "$CC"; then
3899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3900 $as_echo "$CC" >&6; }
3901 else
3902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3904 fi
3905
3906
3907 fi
3908 if test -z "$ac_cv_prog_CC"; then
3909   ac_ct_CC=$CC
3910   # Extract the first word of "gcc", so it can be a program name with args.
3911 set dummy gcc; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   if test -n "$ac_ct_CC"; then
3918   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925     for ac_exec_ext in '' $ac_executable_extensions; do
3926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927     ac_cv_prog_ac_ct_CC="gcc"
3928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929     break 2
3930   fi
3931 done
3932   done
3933 IFS=$as_save_IFS
3934
3935 fi
3936 fi
3937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3938 if test -n "$ac_ct_CC"; then
3939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3940 $as_echo "$ac_ct_CC" >&6; }
3941 else
3942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 fi
3945
3946   if test "x$ac_ct_CC" = x; then
3947     CC=""
3948   else
3949     case $cross_compiling:$ac_tool_warned in
3950 yes:)
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3953 ac_tool_warned=yes ;;
3954 esac
3955     CC=$ac_ct_CC
3956   fi
3957 else
3958   CC="$ac_cv_prog_CC"
3959 fi
3960
3961 if test -z "$CC"; then
3962           if test -n "$ac_tool_prefix"; then
3963     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3964 set dummy ${ac_tool_prefix}cc; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_CC+:} false; then :
3968   $as_echo_n "(cached) " >&6
3969 else
3970   if test -n "$CC"; then
3971   ac_cv_prog_CC="$CC" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978     for ac_exec_ext in '' $ac_executable_extensions; do
3979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980     ac_cv_prog_CC="${ac_tool_prefix}cc"
3981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982     break 2
3983   fi
3984 done
3985   done
3986 IFS=$as_save_IFS
3987
3988 fi
3989 fi
3990 CC=$ac_cv_prog_CC
3991 if test -n "$CC"; then
3992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3994 else
3995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999
4000   fi
4001 fi
4002 if test -z "$CC"; then
4003   # Extract the first word of "cc", so it can be a program name with args.
4004 set dummy cc; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_CC+:} false; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   if test -n "$CC"; then
4011   ac_cv_prog_CC="$CC" # Let the user override the test.
4012 else
4013   ac_prog_rejected=no
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017   IFS=$as_save_IFS
4018   test -z "$as_dir" && as_dir=.
4019     for ac_exec_ext in '' $ac_executable_extensions; do
4020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4022        ac_prog_rejected=yes
4023        continue
4024      fi
4025     ac_cv_prog_CC="cc"
4026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027     break 2
4028   fi
4029 done
4030   done
4031 IFS=$as_save_IFS
4032
4033 if test $ac_prog_rejected = yes; then
4034   # We found a bogon in the path, so make sure we never use it.
4035   set dummy $ac_cv_prog_CC
4036   shift
4037   if test $# != 0; then
4038     # We chose a different compiler from the bogus one.
4039     # However, it has the same basename, so the bogon will be chosen
4040     # first if we set CC to just the basename; use the full file name.
4041     shift
4042     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4043   fi
4044 fi
4045 fi
4046 fi
4047 CC=$ac_cv_prog_CC
4048 if test -n "$CC"; then
4049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050 $as_echo "$CC" >&6; }
4051 else
4052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4054 fi
4055
4056
4057 fi
4058 if test -z "$CC"; then
4059   if test -n "$ac_tool_prefix"; then
4060   for ac_prog in cl.exe
4061   do
4062     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if ${ac_cv_prog_CC+:} false; then :
4067   $as_echo_n "(cached) " >&6
4068 else
4069   if test -n "$CC"; then
4070   ac_cv_prog_CC="$CC" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075   IFS=$as_save_IFS
4076   test -z "$as_dir" && as_dir=.
4077     for ac_exec_ext in '' $ac_executable_extensions; do
4078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081     break 2
4082   fi
4083 done
4084   done
4085 IFS=$as_save_IFS
4086
4087 fi
4088 fi
4089 CC=$ac_cv_prog_CC
4090 if test -n "$CC"; then
4091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4092 $as_echo "$CC" >&6; }
4093 else
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4096 fi
4097
4098
4099     test -n "$CC" && break
4100   done
4101 fi
4102 if test -z "$CC"; then
4103   ac_ct_CC=$CC
4104   for ac_prog in cl.exe
4105 do
4106   # Extract the first word of "$ac_prog", so it can be a program name with args.
4107 set dummy $ac_prog; ac_word=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4111   $as_echo_n "(cached) " >&6
4112 else
4113   if test -n "$ac_ct_CC"; then
4114   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119   IFS=$as_save_IFS
4120   test -z "$as_dir" && as_dir=.
4121     for ac_exec_ext in '' $ac_executable_extensions; do
4122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123     ac_cv_prog_ac_ct_CC="$ac_prog"
4124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125     break 2
4126   fi
4127 done
4128   done
4129 IFS=$as_save_IFS
4130
4131 fi
4132 fi
4133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4134 if test -n "$ac_ct_CC"; then
4135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4136 $as_echo "$ac_ct_CC" >&6; }
4137 else
4138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4140 fi
4141
4142
4143   test -n "$ac_ct_CC" && break
4144 done
4145
4146   if test "x$ac_ct_CC" = x; then
4147     CC=""
4148   else
4149     case $cross_compiling:$ac_tool_warned in
4150 yes:)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153 ac_tool_warned=yes ;;
4154 esac
4155     CC=$ac_ct_CC
4156   fi
4157 fi
4158
4159 fi
4160
4161
4162 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "no acceptable C compiler found in \$PATH
4165 See \`config.log' for more details" "$LINENO" 5; }
4166
4167 # Provide some information about the compiler.
4168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4169 set X $ac_compile
4170 ac_compiler=$2
4171 for ac_option in --version -v -V -qversion; do
4172   { { ac_try="$ac_compiler $ac_option >&5"
4173 case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 $as_echo "$ac_try_echo"; } >&5
4179   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4180   ac_status=$?
4181   if test -s conftest.err; then
4182     sed '10a\
4183 ... rest of stderr output deleted ...
4184          10q' conftest.err >conftest.er1
4185     cat conftest.er1 >&5
4186   fi
4187   rm -f conftest.er1 conftest.err
4188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189   test $ac_status = 0; }
4190 done
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4193 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4194 if ${ac_cv_c_compiler_gnu+:} false; then :
4195   $as_echo_n "(cached) " >&6
4196 else
4197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h.  */
4199
4200 int
4201 main ()
4202 {
4203 #ifndef __GNUC__
4204        choke me
4205 #endif
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212   ac_compiler_gnu=yes
4213 else
4214   ac_compiler_gnu=no
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4218
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4222 if test $ac_compiler_gnu = yes; then
4223   GCC=yes
4224 else
4225   GCC=
4226 fi
4227 ac_test_CFLAGS=${CFLAGS+set}
4228 ac_save_CFLAGS=$CFLAGS
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4231 if ${ac_cv_prog_cc_g+:} false; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   ac_save_c_werror_flag=$ac_c_werror_flag
4235    ac_c_werror_flag=yes
4236    ac_cv_prog_cc_g=no
4237    CFLAGS="-g"
4238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h.  */
4240
4241 int
4242 main ()
4243 {
4244
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250   ac_cv_prog_cc_g=yes
4251 else
4252   CFLAGS=""
4253       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h.  */
4255
4256 int
4257 main ()
4258 {
4259
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265
4266 else
4267   ac_c_werror_flag=$ac_save_c_werror_flag
4268          CFLAGS="-g"
4269          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h.  */
4271
4272 int
4273 main ()
4274 {
4275
4276   ;
4277   return 0;
4278 }
4279 _ACEOF
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281   ac_cv_prog_cc_g=yes
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288    ac_c_werror_flag=$ac_save_c_werror_flag
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4291 $as_echo "$ac_cv_prog_cc_g" >&6; }
4292 if test "$ac_test_CFLAGS" = set; then
4293   CFLAGS=$ac_save_CFLAGS
4294 elif test $ac_cv_prog_cc_g = yes; then
4295   if test "$GCC" = yes; then
4296     CFLAGS="-g -O2"
4297   else
4298     CFLAGS="-g"
4299   fi
4300 else
4301   if test "$GCC" = yes; then
4302     CFLAGS="-O2"
4303   else
4304     CFLAGS=
4305   fi
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4308 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4309 if ${ac_cv_prog_cc_c89+:} false; then :
4310   $as_echo_n "(cached) " >&6
4311 else
4312   ac_cv_prog_cc_c89=no
4313 ac_save_CC=$CC
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h.  */
4316 #include <stdarg.h>
4317 #include <stdio.h>
4318 struct stat;
4319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4320 struct buf { int x; };
4321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4322 static char *e (p, i)
4323      char **p;
4324      int i;
4325 {
4326   return p[i];
4327 }
4328 static char *f (char * (*g) (char **, int), char **p, ...)
4329 {
4330   char *s;
4331   va_list v;
4332   va_start (v,p);
4333   s = g (p, va_arg (v,int));
4334   va_end (v);
4335   return s;
4336 }
4337
4338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4339    function prototypes and stuff, but not '\xHH' hex character constants.
4340    These don't provoke an error unfortunately, instead are silently treated
4341    as 'x'.  The following induces an error, until -std is added to get
4342    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4343    array size at least.  It's necessary to write '\x00'==0 to get something
4344    that's true only with -std.  */
4345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4346
4347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4348    inside strings and character constants.  */
4349 #define FOO(x) 'x'
4350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4351
4352 int test (int i, double x);
4353 struct s1 {int (*f) (int a);};
4354 struct s2 {int (*f) (double a);};
4355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4356 int argc;
4357 char **argv;
4358 int
4359 main ()
4360 {
4361 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4367         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4368 do
4369   CC="$ac_save_CC $ac_arg"
4370   if ac_fn_c_try_compile "$LINENO"; then :
4371   ac_cv_prog_cc_c89=$ac_arg
4372 fi
4373 rm -f core conftest.err conftest.$ac_objext
4374   test "x$ac_cv_prog_cc_c89" != "xno" && break
4375 done
4376 rm -f conftest.$ac_ext
4377 CC=$ac_save_CC
4378
4379 fi
4380 # AC_CACHE_VAL
4381 case "x$ac_cv_prog_cc_c89" in
4382   x)
4383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4384 $as_echo "none needed" >&6; } ;;
4385   xno)
4386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4387 $as_echo "unsupported" >&6; } ;;
4388   *)
4389     CC="$CC $ac_cv_prog_cc_c89"
4390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4392 esac
4393 if test "x$ac_cv_prog_cc_c89" != xno; then :
4394
4395 fi
4396
4397 ac_ext=c
4398 ac_cpp='$CPP $CPPFLAGS'
4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402
4403 depcc="$CC"   am_compiler_list=
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4406 $as_echo_n "checking dependency style of $depcc... " >&6; }
4407 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4408   $as_echo_n "(cached) " >&6
4409 else
4410   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4411   # We make a subdir and do the tests there.  Otherwise we can end up
4412   # making bogus files that we don't know about and never remove.  For
4413   # instance it was reported that on HP-UX the gcc test will end up
4414   # making a dummy file named `D' -- because `-MD' means `put the output
4415   # in D'.
4416   rm -rf conftest.dir
4417   mkdir conftest.dir
4418   # Copy depcomp to subdir because otherwise we won't find it if we're
4419   # using a relative directory.
4420   cp "$am_depcomp" conftest.dir
4421   cd conftest.dir
4422   # We will build objects and dependencies in a subdirectory because
4423   # it helps to detect inapplicable dependency modes.  For instance
4424   # both Tru64's cc and ICC support -MD to output dependencies as a
4425   # side effect of compilation, but ICC will put the dependencies in
4426   # the current directory while Tru64 will put them in the object
4427   # directory.
4428   mkdir sub
4429
4430   am_cv_CC_dependencies_compiler_type=none
4431   if test "$am_compiler_list" = ""; then
4432      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4433   fi
4434   am__universal=false
4435   case " $depcc " in #(
4436      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4437      esac
4438
4439   for depmode in $am_compiler_list; do
4440     # Setup a source with many dependencies, because some compilers
4441     # like to wrap large dependency lists on column 80 (with \), and
4442     # we should not choose a depcomp mode which is confused by this.
4443     #
4444     # We need to recreate these files for each test, as the compiler may
4445     # overwrite some of them when testing with obscure command lines.
4446     # This happens at least with the AIX C compiler.
4447     : > sub/conftest.c
4448     for i in 1 2 3 4 5 6; do
4449       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4450       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4451       # Solaris 8's {/usr,}/bin/sh.
4452       touch sub/conftst$i.h
4453     done
4454     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4455
4456     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4457     # mode.  It turns out that the SunPro C++ compiler does not properly
4458     # handle `-M -o', and we need to detect this.  Also, some Intel
4459     # versions had trouble with output in subdirs
4460     am__obj=sub/conftest.${OBJEXT-o}
4461     am__minus_obj="-o $am__obj"
4462     case $depmode in
4463     gcc)
4464       # This depmode causes a compiler race in universal mode.
4465       test "$am__universal" = false || continue
4466       ;;
4467     nosideeffect)
4468       # after this tag, mechanisms are not by side-effect, so they'll
4469       # only be used when explicitly requested
4470       if test "x$enable_dependency_tracking" = xyes; then
4471         continue
4472       else
4473         break
4474       fi
4475       ;;
4476     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4477       # This compiler won't grok `-c -o', but also, the minuso test has
4478       # not run yet.  These depmodes are late enough in the game, and
4479       # so weak that their functioning should not be impacted.
4480       am__obj=conftest.${OBJEXT-o}
4481       am__minus_obj=
4482       ;;
4483     none) break ;;
4484     esac
4485     if depmode=$depmode \
4486        source=sub/conftest.c object=$am__obj \
4487        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4488        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4489          >/dev/null 2>conftest.err &&
4490        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4491        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4492        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4493        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4494       # icc doesn't choke on unknown options, it will just issue warnings
4495       # or remarks (even with -Werror).  So we grep stderr for any message
4496       # that says an option was ignored or not supported.
4497       # When given -MP, icc 7.0 and 7.1 complain thusly:
4498       #   icc: Command line warning: ignoring option '-M'; no argument required
4499       # The diagnosis changed in icc 8.0:
4500       #   icc: Command line remark: option '-MP' not supported
4501       if (grep 'ignoring option' conftest.err ||
4502           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4503         am_cv_CC_dependencies_compiler_type=$depmode
4504         break
4505       fi
4506     fi
4507   done
4508
4509   cd ..
4510   rm -rf conftest.dir
4511 else
4512   am_cv_CC_dependencies_compiler_type=none
4513 fi
4514
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4517 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4518 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4519
4520  if
4521   test "x$enable_dependency_tracking" != xno \
4522   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4523   am__fastdepCC_TRUE=
4524   am__fastdepCC_FALSE='#'
4525 else
4526   am__fastdepCC_TRUE='#'
4527   am__fastdepCC_FALSE=
4528 fi
4529
4530
4531 if test -n "$ac_tool_prefix"; then
4532   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_prog_RANLIB+:} false; then :
4537   $as_echo_n "(cached) " >&6
4538 else
4539   if test -n "$RANLIB"; then
4540   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545   IFS=$as_save_IFS
4546   test -z "$as_dir" && as_dir=.
4547     for ac_exec_ext in '' $ac_executable_extensions; do
4548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551     break 2
4552   fi
4553 done
4554   done
4555 IFS=$as_save_IFS
4556
4557 fi
4558 fi
4559 RANLIB=$ac_cv_prog_RANLIB
4560 if test -n "$RANLIB"; then
4561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4562 $as_echo "$RANLIB" >&6; }
4563 else
4564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4566 fi
4567
4568
4569 fi
4570 if test -z "$ac_cv_prog_RANLIB"; then
4571   ac_ct_RANLIB=$RANLIB
4572   # Extract the first word of "ranlib", so it can be a program name with args.
4573 set dummy ranlib; ac_word=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4577   $as_echo_n "(cached) " >&6
4578 else
4579   if test -n "$ac_ct_RANLIB"; then
4580   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4581 else
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585   IFS=$as_save_IFS
4586   test -z "$as_dir" && as_dir=.
4587     for ac_exec_ext in '' $ac_executable_extensions; do
4588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589     ac_cv_prog_ac_ct_RANLIB="ranlib"
4590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591     break 2
4592   fi
4593 done
4594   done
4595 IFS=$as_save_IFS
4596
4597 fi
4598 fi
4599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4600 if test -n "$ac_ct_RANLIB"; then
4601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4602 $as_echo "$ac_ct_RANLIB" >&6; }
4603 else
4604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 fi
4607
4608   if test "x$ac_ct_RANLIB" = x; then
4609     RANLIB=":"
4610   else
4611     case $cross_compiling:$ac_tool_warned in
4612 yes:)
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4615 ac_tool_warned=yes ;;
4616 esac
4617     RANLIB=$ac_ct_RANLIB
4618   fi
4619 else
4620   RANLIB="$ac_cv_prog_RANLIB"
4621 fi
4622
4623 case `pwd` in
4624   *\ * | *\     *)
4625     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4626 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4627 esac
4628
4629
4630
4631 macro_version='2.4.2'
4632 macro_revision='1.3337'
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646 ltmain="$ac_aux_dir/ltmain.sh"
4647
4648 # Make sure we can run config.sub.
4649 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4650   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4653 $as_echo_n "checking build system type... " >&6; }
4654 if ${ac_cv_build+:} false; then :
4655   $as_echo_n "(cached) " >&6
4656 else
4657   ac_build_alias=$build_alias
4658 test "x$ac_build_alias" = x &&
4659   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4660 test "x$ac_build_alias" = x &&
4661   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4662 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4663   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4664
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4667 $as_echo "$ac_cv_build" >&6; }
4668 case $ac_cv_build in
4669 *-*-*) ;;
4670 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4671 esac
4672 build=$ac_cv_build
4673 ac_save_IFS=$IFS; IFS='-'
4674 set x $ac_cv_build
4675 shift
4676 build_cpu=$1
4677 build_vendor=$2
4678 shift; shift
4679 # Remember, the first character of IFS is used to create $*,
4680 # except with old shells:
4681 build_os=$*
4682 IFS=$ac_save_IFS
4683 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4687 $as_echo_n "checking host system type... " >&6; }
4688 if ${ac_cv_host+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test "x$host_alias" = x; then
4692   ac_cv_host=$ac_cv_build
4693 else
4694   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4695     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4696 fi
4697
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4700 $as_echo "$ac_cv_host" >&6; }
4701 case $ac_cv_host in
4702 *-*-*) ;;
4703 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4704 esac
4705 host=$ac_cv_host
4706 ac_save_IFS=$IFS; IFS='-'
4707 set x $ac_cv_host
4708 shift
4709 host_cpu=$1
4710 host_vendor=$2
4711 shift; shift
4712 # Remember, the first character of IFS is used to create $*,
4713 # except with old shells:
4714 host_os=$*
4715 IFS=$ac_save_IFS
4716 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4717
4718
4719 # Backslashify metacharacters that are still active within
4720 # double-quoted strings.
4721 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4722
4723 # Same as above, but do not quote variable references.
4724 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4725
4726 # Sed substitution to delay expansion of an escaped shell variable in a
4727 # double_quote_subst'ed string.
4728 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4729
4730 # Sed substitution to delay expansion of an escaped single quote.
4731 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4732
4733 # Sed substitution to avoid accidental globbing in evaled expressions
4734 no_glob_subst='s/\*/\\\*/g'
4735
4736 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4737 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4738 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4741 $as_echo_n "checking how to print strings... " >&6; }
4742 # Test print first, because it will be a builtin if present.
4743 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4744    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4745   ECHO='print -r --'
4746 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4747   ECHO='printf %s\n'
4748 else
4749   # Use this function as a fallback that always works.
4750   func_fallback_echo ()
4751   {
4752     eval 'cat <<_LTECHO_EOF
4753 $1
4754 _LTECHO_EOF'
4755   }
4756   ECHO='func_fallback_echo'
4757 fi
4758
4759 # func_echo_all arg...
4760 # Invoke $ECHO with all args, space-separated.
4761 func_echo_all ()
4762 {
4763     $ECHO ""
4764 }
4765
4766 case "$ECHO" in
4767   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4768 $as_echo "printf" >&6; } ;;
4769   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4770 $as_echo "print -r" >&6; } ;;
4771   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4772 $as_echo "cat" >&6; } ;;
4773 esac
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4789 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4790 if ${ac_cv_path_SED+:} false; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4794      for ac_i in 1 2 3 4 5 6 7; do
4795        ac_script="$ac_script$as_nl$ac_script"
4796      done
4797      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4798      { ac_script=; unset ac_script;}
4799      if test -z "$SED"; then
4800   ac_path_SED_found=false
4801   # Loop through the user's path and test for each of PROGNAME-LIST
4802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4804 do
4805   IFS=$as_save_IFS
4806   test -z "$as_dir" && as_dir=.
4807     for ac_prog in sed gsed; do
4808     for ac_exec_ext in '' $ac_executable_extensions; do
4809       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4810       as_fn_executable_p "$ac_path_SED" || continue
4811 # Check for GNU ac_path_SED and select it if it is found.
4812   # Check for GNU $ac_path_SED
4813 case `"$ac_path_SED" --version 2>&1` in
4814 *GNU*)
4815   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4816 *)
4817   ac_count=0
4818   $as_echo_n 0123456789 >"conftest.in"
4819   while :
4820   do
4821     cat "conftest.in" "conftest.in" >"conftest.tmp"
4822     mv "conftest.tmp" "conftest.in"
4823     cp "conftest.in" "conftest.nl"
4824     $as_echo '' >> "conftest.nl"
4825     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4826     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4827     as_fn_arith $ac_count + 1 && ac_count=$as_val
4828     if test $ac_count -gt ${ac_path_SED_max-0}; then
4829       # Best one so far, save it but keep looking for a better one
4830       ac_cv_path_SED="$ac_path_SED"
4831       ac_path_SED_max=$ac_count
4832     fi
4833     # 10*(2^10) chars as input seems more than enough
4834     test $ac_count -gt 10 && break
4835   done
4836   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4837 esac
4838
4839       $ac_path_SED_found && break 3
4840     done
4841   done
4842   done
4843 IFS=$as_save_IFS
4844   if test -z "$ac_cv_path_SED"; then
4845     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4846   fi
4847 else
4848   ac_cv_path_SED=$SED
4849 fi
4850
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4853 $as_echo "$ac_cv_path_SED" >&6; }
4854  SED="$ac_cv_path_SED"
4855   rm -f conftest.sed
4856
4857 test -z "$SED" && SED=sed
4858 Xsed="$SED -e 1s/^X//"
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4871 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4872 if ${ac_cv_path_GREP+:} false; then :
4873   $as_echo_n "(cached) " >&6
4874 else
4875   if test -z "$GREP"; then
4876   ac_path_GREP_found=false
4877   # Loop through the user's path and test for each of PROGNAME-LIST
4878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4880 do
4881   IFS=$as_save_IFS
4882   test -z "$as_dir" && as_dir=.
4883     for ac_prog in grep ggrep; do
4884     for ac_exec_ext in '' $ac_executable_extensions; do
4885       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4886       as_fn_executable_p "$ac_path_GREP" || continue
4887 # Check for GNU ac_path_GREP and select it if it is found.
4888   # Check for GNU $ac_path_GREP
4889 case `"$ac_path_GREP" --version 2>&1` in
4890 *GNU*)
4891   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4892 *)
4893   ac_count=0
4894   $as_echo_n 0123456789 >"conftest.in"
4895   while :
4896   do
4897     cat "conftest.in" "conftest.in" >"conftest.tmp"
4898     mv "conftest.tmp" "conftest.in"
4899     cp "conftest.in" "conftest.nl"
4900     $as_echo 'GREP' >> "conftest.nl"
4901     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4902     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4903     as_fn_arith $ac_count + 1 && ac_count=$as_val
4904     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4905       # Best one so far, save it but keep looking for a better one
4906       ac_cv_path_GREP="$ac_path_GREP"
4907       ac_path_GREP_max=$ac_count
4908     fi
4909     # 10*(2^10) chars as input seems more than enough
4910     test $ac_count -gt 10 && break
4911   done
4912   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4913 esac
4914
4915       $ac_path_GREP_found && break 3
4916     done
4917   done
4918   done
4919 IFS=$as_save_IFS
4920   if test -z "$ac_cv_path_GREP"; then
4921     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4922   fi
4923 else
4924   ac_cv_path_GREP=$GREP
4925 fi
4926
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4929 $as_echo "$ac_cv_path_GREP" >&6; }
4930  GREP="$ac_cv_path_GREP"
4931
4932
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4934 $as_echo_n "checking for egrep... " >&6; }
4935 if ${ac_cv_path_EGREP+:} false; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4939    then ac_cv_path_EGREP="$GREP -E"
4940    else
4941      if test -z "$EGREP"; then
4942   ac_path_EGREP_found=false
4943   # Loop through the user's path and test for each of PROGNAME-LIST
4944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949     for ac_prog in egrep; do
4950     for ac_exec_ext in '' $ac_executable_extensions; do
4951       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4952       as_fn_executable_p "$ac_path_EGREP" || continue
4953 # Check for GNU ac_path_EGREP and select it if it is found.
4954   # Check for GNU $ac_path_EGREP
4955 case `"$ac_path_EGREP" --version 2>&1` in
4956 *GNU*)
4957   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4958 *)
4959   ac_count=0
4960   $as_echo_n 0123456789 >"conftest.in"
4961   while :
4962   do
4963     cat "conftest.in" "conftest.in" >"conftest.tmp"
4964     mv "conftest.tmp" "conftest.in"
4965     cp "conftest.in" "conftest.nl"
4966     $as_echo 'EGREP' >> "conftest.nl"
4967     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4968     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4969     as_fn_arith $ac_count + 1 && ac_count=$as_val
4970     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4971       # Best one so far, save it but keep looking for a better one
4972       ac_cv_path_EGREP="$ac_path_EGREP"
4973       ac_path_EGREP_max=$ac_count
4974     fi
4975     # 10*(2^10) chars as input seems more than enough
4976     test $ac_count -gt 10 && break
4977   done
4978   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4979 esac
4980
4981       $ac_path_EGREP_found && break 3
4982     done
4983   done
4984   done
4985 IFS=$as_save_IFS
4986   if test -z "$ac_cv_path_EGREP"; then
4987     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4988   fi
4989 else
4990   ac_cv_path_EGREP=$EGREP
4991 fi
4992
4993    fi
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4996 $as_echo "$ac_cv_path_EGREP" >&6; }
4997  EGREP="$ac_cv_path_EGREP"
4998
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5001 $as_echo_n "checking for fgrep... " >&6; }
5002 if ${ac_cv_path_FGREP+:} false; then :
5003   $as_echo_n "(cached) " >&6
5004 else
5005   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5006    then ac_cv_path_FGREP="$GREP -F"
5007    else
5008      if test -z "$FGREP"; then
5009   ac_path_FGREP_found=false
5010   # Loop through the user's path and test for each of PROGNAME-LIST
5011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_prog in fgrep; do
5017     for ac_exec_ext in '' $ac_executable_extensions; do
5018       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5019       as_fn_executable_p "$ac_path_FGREP" || continue
5020 # Check for GNU ac_path_FGREP and select it if it is found.
5021   # Check for GNU $ac_path_FGREP
5022 case `"$ac_path_FGREP" --version 2>&1` in
5023 *GNU*)
5024   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5025 *)
5026   ac_count=0
5027   $as_echo_n 0123456789 >"conftest.in"
5028   while :
5029   do
5030     cat "conftest.in" "conftest.in" >"conftest.tmp"
5031     mv "conftest.tmp" "conftest.in"
5032     cp "conftest.in" "conftest.nl"
5033     $as_echo 'FGREP' >> "conftest.nl"
5034     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5035     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5036     as_fn_arith $ac_count + 1 && ac_count=$as_val
5037     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5038       # Best one so far, save it but keep looking for a better one
5039       ac_cv_path_FGREP="$ac_path_FGREP"
5040       ac_path_FGREP_max=$ac_count
5041     fi
5042     # 10*(2^10) chars as input seems more than enough
5043     test $ac_count -gt 10 && break
5044   done
5045   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5046 esac
5047
5048       $ac_path_FGREP_found && break 3
5049     done
5050   done
5051   done
5052 IFS=$as_save_IFS
5053   if test -z "$ac_cv_path_FGREP"; then
5054     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5055   fi
5056 else
5057   ac_cv_path_FGREP=$FGREP
5058 fi
5059
5060    fi
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5063 $as_echo "$ac_cv_path_FGREP" >&6; }
5064  FGREP="$ac_cv_path_FGREP"
5065
5066
5067 test -z "$GREP" && GREP=grep
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087 # Check whether --with-gnu-ld was given.
5088 if test "${with_gnu_ld+set}" = set; then :
5089   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5090 else
5091   with_gnu_ld=no
5092 fi
5093
5094 ac_prog=ld
5095 if test "$GCC" = yes; then
5096   # Check if gcc -print-prog-name=ld gives a path.
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5098 $as_echo_n "checking for ld used by $CC... " >&6; }
5099   case $host in
5100   *-*-mingw*)
5101     # gcc leaves a trailing carriage return which upsets mingw
5102     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5103   *)
5104     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5105   esac
5106   case $ac_prog in
5107     # Accept absolute paths.
5108     [\\/]* | ?:[\\/]*)
5109       re_direlt='/[^/][^/]*/\.\./'
5110       # Canonicalize the pathname of ld
5111       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5112       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5113         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5114       done
5115       test -z "$LD" && LD="$ac_prog"
5116       ;;
5117   "")
5118     # If it fails, then pretend we aren't using GCC.
5119     ac_prog=ld
5120     ;;
5121   *)
5122     # If it is relative, then search for the first ld in PATH.
5123     with_gnu_ld=unknown
5124     ;;
5125   esac
5126 elif test "$with_gnu_ld" = yes; then
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5128 $as_echo_n "checking for GNU ld... " >&6; }
5129 else
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5131 $as_echo_n "checking for non-GNU ld... " >&6; }
5132 fi
5133 if ${lt_cv_path_LD+:} false; then :
5134   $as_echo_n "(cached) " >&6
5135 else
5136   if test -z "$LD"; then
5137   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5138   for ac_dir in $PATH; do
5139     IFS="$lt_save_ifs"
5140     test -z "$ac_dir" && ac_dir=.
5141     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5142       lt_cv_path_LD="$ac_dir/$ac_prog"
5143       # Check to see if the program is GNU ld.  I'd rather use --version,
5144       # but apparently some variants of GNU ld only accept -v.
5145       # Break only if it was the GNU/non-GNU ld that we prefer.
5146       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5147       *GNU* | *'with BFD'*)
5148         test "$with_gnu_ld" != no && break
5149         ;;
5150       *)
5151         test "$with_gnu_ld" != yes && break
5152         ;;
5153       esac
5154     fi
5155   done
5156   IFS="$lt_save_ifs"
5157 else
5158   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5159 fi
5160 fi
5161
5162 LD="$lt_cv_path_LD"
5163 if test -n "$LD"; then
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5165 $as_echo "$LD" >&6; }
5166 else
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5173 if ${lt_cv_prog_gnu_ld+:} false; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5177 case `$LD -v 2>&1 </dev/null` in
5178 *GNU* | *'with BFD'*)
5179   lt_cv_prog_gnu_ld=yes
5180   ;;
5181 *)
5182   lt_cv_prog_gnu_ld=no
5183   ;;
5184 esac
5185 fi
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5188 with_gnu_ld=$lt_cv_prog_gnu_ld
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5199 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5200 if ${lt_cv_path_NM+:} false; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   if test -n "$NM"; then
5204   # Let the user override the test.
5205   lt_cv_path_NM="$NM"
5206 else
5207   lt_nm_to_check="${ac_tool_prefix}nm"
5208   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5209     lt_nm_to_check="$lt_nm_to_check nm"
5210   fi
5211   for lt_tmp_nm in $lt_nm_to_check; do
5212     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5213     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5214       IFS="$lt_save_ifs"
5215       test -z "$ac_dir" && ac_dir=.
5216       tmp_nm="$ac_dir/$lt_tmp_nm"
5217       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5218         # Check to see if the nm accepts a BSD-compat flag.
5219         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5220         #   nm: unknown option "B" ignored
5221         # Tru64's nm complains that /dev/null is an invalid object file
5222         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5223         */dev/null* | *'Invalid file or object type'*)
5224           lt_cv_path_NM="$tmp_nm -B"
5225           break
5226           ;;
5227         *)
5228           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5229           */dev/null*)
5230             lt_cv_path_NM="$tmp_nm -p"
5231             break
5232             ;;
5233           *)
5234             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5235             continue # so that we can try to find one that supports BSD flags
5236             ;;
5237           esac
5238           ;;
5239         esac
5240       fi
5241     done
5242     IFS="$lt_save_ifs"
5243   done
5244   : ${lt_cv_path_NM=no}
5245 fi
5246 fi
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5248 $as_echo "$lt_cv_path_NM" >&6; }
5249 if test "$lt_cv_path_NM" != "no"; then
5250   NM="$lt_cv_path_NM"
5251 else
5252   # Didn't find any BSD compatible name lister, look for dumpbin.
5253   if test -n "$DUMPBIN"; then :
5254     # Let the user override the test.
5255   else
5256     if test -n "$ac_tool_prefix"; then
5257   for ac_prog in dumpbin "link -dump"
5258   do
5259     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_prog_DUMPBIN+:} false; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   if test -n "$DUMPBIN"; then
5267   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272   IFS=$as_save_IFS
5273   test -z "$as_dir" && as_dir=.
5274     for ac_exec_ext in '' $ac_executable_extensions; do
5275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278     break 2
5279   fi
5280 done
5281   done
5282 IFS=$as_save_IFS
5283
5284 fi
5285 fi
5286 DUMPBIN=$ac_cv_prog_DUMPBIN
5287 if test -n "$DUMPBIN"; then
5288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5289 $as_echo "$DUMPBIN" >&6; }
5290 else
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5293 fi
5294
5295
5296     test -n "$DUMPBIN" && break
5297   done
5298 fi
5299 if test -z "$DUMPBIN"; then
5300   ac_ct_DUMPBIN=$DUMPBIN
5301   for ac_prog in dumpbin "link -dump"
5302 do
5303   # Extract the first word of "$ac_prog", so it can be a program name with args.
5304 set dummy $ac_prog; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   if test -n "$ac_ct_DUMPBIN"; then
5311   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316   IFS=$as_save_IFS
5317   test -z "$as_dir" && as_dir=.
5318     for ac_exec_ext in '' $ac_executable_extensions; do
5319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322     break 2
5323   fi
5324 done
5325   done
5326 IFS=$as_save_IFS
5327
5328 fi
5329 fi
5330 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5331 if test -n "$ac_ct_DUMPBIN"; then
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5333 $as_echo "$ac_ct_DUMPBIN" >&6; }
5334 else
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5337 fi
5338
5339
5340   test -n "$ac_ct_DUMPBIN" && break
5341 done
5342
5343   if test "x$ac_ct_DUMPBIN" = x; then
5344     DUMPBIN=":"
5345   else
5346     case $cross_compiling:$ac_tool_warned in
5347 yes:)
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5350 ac_tool_warned=yes ;;
5351 esac
5352     DUMPBIN=$ac_ct_DUMPBIN
5353   fi
5354 fi
5355
5356     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5357     *COFF*)
5358       DUMPBIN="$DUMPBIN -symbols"
5359       ;;
5360     *)
5361       DUMPBIN=:
5362       ;;
5363     esac
5364   fi
5365
5366   if test "$DUMPBIN" != ":"; then
5367     NM="$DUMPBIN"
5368   fi
5369 fi
5370 test -z "$NM" && NM=nm
5371
5372
5373
5374
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5378 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5379 if ${lt_cv_nm_interface+:} false; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   lt_cv_nm_interface="BSD nm"
5383   echo "int some_variable = 0;" > conftest.$ac_ext
5384   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5385   (eval "$ac_compile" 2>conftest.err)
5386   cat conftest.err >&5
5387   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5388   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5389   cat conftest.err >&5
5390   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5391   cat conftest.out >&5
5392   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5393     lt_cv_nm_interface="MS dumpbin"
5394   fi
5395   rm -f conftest*
5396 fi
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5398 $as_echo "$lt_cv_nm_interface" >&6; }
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5401 $as_echo_n "checking whether ln -s works... " >&6; }
5402 LN_S=$as_ln_s
5403 if test "$LN_S" = "ln -s"; then
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5405 $as_echo "yes" >&6; }
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5408 $as_echo "no, using $LN_S" >&6; }
5409 fi
5410
5411 # find the maximum length of command line arguments
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5413 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5414 if ${lt_cv_sys_max_cmd_len+:} false; then :
5415   $as_echo_n "(cached) " >&6
5416 else
5417     i=0
5418   teststring="ABCD"
5419
5420   case $build_os in
5421   msdosdjgpp*)
5422     # On DJGPP, this test can blow up pretty badly due to problems in libc
5423     # (any single argument exceeding 2000 bytes causes a buffer overrun
5424     # during glob expansion).  Even if it were fixed, the result of this
5425     # check would be larger than it should be.
5426     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5427     ;;
5428
5429   gnu*)
5430     # Under GNU Hurd, this test is not required because there is
5431     # no limit to the length of command line arguments.
5432     # Libtool will interpret -1 as no limit whatsoever
5433     lt_cv_sys_max_cmd_len=-1;
5434     ;;
5435
5436   cygwin* | mingw* | cegcc*)
5437     # On Win9x/ME, this test blows up -- it succeeds, but takes
5438     # about 5 minutes as the teststring grows exponentially.
5439     # Worse, since 9x/ME are not pre-emptively multitasking,
5440     # you end up with a "frozen" computer, even though with patience
5441     # the test eventually succeeds (with a max line length of 256k).
5442     # Instead, let's just punt: use the minimum linelength reported by
5443     # all of the supported platforms: 8192 (on NT/2K/XP).
5444     lt_cv_sys_max_cmd_len=8192;
5445     ;;
5446
5447   mint*)
5448     # On MiNT this can take a long time and run out of memory.
5449     lt_cv_sys_max_cmd_len=8192;
5450     ;;
5451
5452   amigaos*)
5453     # On AmigaOS with pdksh, this test takes hours, literally.
5454     # So we just punt and use a minimum line length of 8192.
5455     lt_cv_sys_max_cmd_len=8192;
5456     ;;
5457
5458   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5459     # This has been around since 386BSD, at least.  Likely further.
5460     if test -x /sbin/sysctl; then
5461       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5462     elif test -x /usr/sbin/sysctl; then
5463       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5464     else
5465       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5466     fi
5467     # And add a safety zone
5468     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5469     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5470     ;;
5471
5472   interix*)
5473     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5474     lt_cv_sys_max_cmd_len=196608
5475     ;;
5476
5477   os2*)
5478     # The test takes a long time on OS/2.
5479     lt_cv_sys_max_cmd_len=8192
5480     ;;
5481
5482   osf*)
5483     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5484     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5485     # nice to cause kernel panics so lets avoid the loop below.
5486     # First set a reasonable default.
5487     lt_cv_sys_max_cmd_len=16384
5488     #
5489     if test -x /sbin/sysconfig; then
5490       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5491         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5492       esac
5493     fi
5494     ;;
5495   sco3.2v5*)
5496     lt_cv_sys_max_cmd_len=102400
5497     ;;
5498   sysv5* | sco5v6* | sysv4.2uw2*)
5499     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5500     if test -n "$kargmax"; then
5501       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5502     else
5503       lt_cv_sys_max_cmd_len=32768
5504     fi
5505     ;;
5506   *)
5507     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5508     if test -n "$lt_cv_sys_max_cmd_len"; then
5509       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5510       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5511     else
5512       # Make teststring a little bigger before we do anything with it.
5513       # a 1K string should be a reasonable start.
5514       for i in 1 2 3 4 5 6 7 8 ; do
5515         teststring=$teststring$teststring
5516       done
5517       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5518       # If test is not a shell built-in, we'll probably end up computing a
5519       # maximum length that is only half of the actual maximum length, but
5520       # we can't tell.
5521       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5522                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5523               test $i != 17 # 1/2 MB should be enough
5524       do
5525         i=`expr $i + 1`
5526         teststring=$teststring$teststring
5527       done
5528       # Only check the string length outside the loop.
5529       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5530       teststring=
5531       # Add a significant safety factor because C++ compilers can tack on
5532       # massive amounts of additional arguments before passing them to the
5533       # linker.  It appears as though 1/2 is a usable value.
5534       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5535     fi
5536     ;;
5537   esac
5538
5539 fi
5540
5541 if test -n $lt_cv_sys_max_cmd_len ; then
5542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5543 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5544 else
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5546 $as_echo "none" >&6; }
5547 fi
5548 max_cmd_len=$lt_cv_sys_max_cmd_len
5549
5550
5551
5552
5553
5554
5555 : ${CP="cp -f"}
5556 : ${MV="mv -f"}
5557 : ${RM="rm -f"}
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5560 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5561 # Try some XSI features
5562 xsi_shell=no
5563 ( _lt_dummy="a/b/c"
5564   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5565       = c,a/b,b/c, \
5566     && eval 'test $(( 1 + 1 )) -eq 2 \
5567     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5568   && xsi_shell=yes
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5570 $as_echo "$xsi_shell" >&6; }
5571
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5574 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5575 lt_shell_append=no
5576 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5577     >/dev/null 2>&1 \
5578   && lt_shell_append=yes
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5580 $as_echo "$lt_shell_append" >&6; }
5581
5582
5583 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5584   lt_unset=unset
5585 else
5586   lt_unset=false
5587 fi
5588
5589
5590
5591
5592
5593 # test EBCDIC or ASCII
5594 case `echo X|tr X '\101'` in
5595  A) # ASCII based system
5596     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5597   lt_SP2NL='tr \040 \012'
5598   lt_NL2SP='tr \015\012 \040\040'
5599   ;;
5600  *) # EBCDIC based system
5601   lt_SP2NL='tr \100 \n'
5602   lt_NL2SP='tr \r\n \100\100'
5603   ;;
5604 esac
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5615 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5616 if ${lt_cv_to_host_file_cmd+:} false; then :
5617   $as_echo_n "(cached) " >&6
5618 else
5619   case $host in
5620   *-*-mingw* )
5621     case $build in
5622       *-*-mingw* ) # actually msys
5623         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5624         ;;
5625       *-*-cygwin* )
5626         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5627         ;;
5628       * ) # otherwise, assume *nix
5629         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5630         ;;
5631     esac
5632     ;;
5633   *-*-cygwin* )
5634     case $build in
5635       *-*-mingw* ) # actually msys
5636         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5637         ;;
5638       *-*-cygwin* )
5639         lt_cv_to_host_file_cmd=func_convert_file_noop
5640         ;;
5641       * ) # otherwise, assume *nix
5642         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5643         ;;
5644     esac
5645     ;;
5646   * ) # unhandled hosts (and "normal" native builds)
5647     lt_cv_to_host_file_cmd=func_convert_file_noop
5648     ;;
5649 esac
5650
5651 fi
5652
5653 to_host_file_cmd=$lt_cv_to_host_file_cmd
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5655 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5656
5657
5658
5659
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5662 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5663 if ${lt_cv_to_tool_file_cmd+:} false; then :
5664   $as_echo_n "(cached) " >&6
5665 else
5666   #assume ordinary cross tools, or native build.
5667 lt_cv_to_tool_file_cmd=func_convert_file_noop
5668 case $host in
5669   *-*-mingw* )
5670     case $build in
5671       *-*-mingw* ) # actually msys
5672         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5673         ;;
5674     esac
5675     ;;
5676 esac
5677
5678 fi
5679
5680 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5682 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5683
5684
5685
5686
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5689 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5690 if ${lt_cv_ld_reload_flag+:} false; then :
5691   $as_echo_n "(cached) " >&6
5692 else
5693   lt_cv_ld_reload_flag='-r'
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5696 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5697 reload_flag=$lt_cv_ld_reload_flag
5698 case $reload_flag in
5699 "" | " "*) ;;
5700 *) reload_flag=" $reload_flag" ;;
5701 esac
5702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5703 case $host_os in
5704   cygwin* | mingw* | pw32* | cegcc*)
5705     if test "$GCC" != yes; then
5706       reload_cmds=false
5707     fi
5708     ;;
5709   darwin*)
5710     if test "$GCC" = yes; then
5711       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5712     else
5713       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5714     fi
5715     ;;
5716 esac
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726 if test -n "$ac_tool_prefix"; then
5727   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_OBJDUMP+:} false; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if test -n "$OBJDUMP"; then
5735   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749   done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 OBJDUMP=$ac_cv_prog_OBJDUMP
5755 if test -n "$OBJDUMP"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5757 $as_echo "$OBJDUMP" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763
5764 fi
5765 if test -z "$ac_cv_prog_OBJDUMP"; then
5766   ac_ct_OBJDUMP=$OBJDUMP
5767   # Extract the first word of "objdump", so it can be a program name with args.
5768 set dummy objdump; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5772   $as_echo_n "(cached) " >&6
5773 else
5774   if test -n "$ac_ct_OBJDUMP"; then
5775   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782     for ac_exec_ext in '' $ac_executable_extensions; do
5783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789   done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5795 if test -n "$ac_ct_OBJDUMP"; then
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5797 $as_echo "$ac_ct_OBJDUMP" >&6; }
5798 else
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803   if test "x$ac_ct_OBJDUMP" = x; then
5804     OBJDUMP="false"
5805   else
5806     case $cross_compiling:$ac_tool_warned in
5807 yes:)
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5811 esac
5812     OBJDUMP=$ac_ct_OBJDUMP
5813   fi
5814 else
5815   OBJDUMP="$ac_cv_prog_OBJDUMP"
5816 fi
5817
5818 test -z "$OBJDUMP" && OBJDUMP=objdump
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5829 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5830 if ${lt_cv_deplibs_check_method+:} false; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   lt_cv_file_magic_cmd='$MAGIC_CMD'
5834 lt_cv_file_magic_test_file=
5835 lt_cv_deplibs_check_method='unknown'
5836 # Need to set the preceding variable on all platforms that support
5837 # interlibrary dependencies.
5838 # 'none' -- dependencies not supported.
5839 # `unknown' -- same as none, but documents that we really don't know.
5840 # 'pass_all' -- all dependencies passed with no checks.
5841 # 'test_compile' -- check by making test program.
5842 # 'file_magic [[regex]]' -- check by looking for files in library path
5843 # which responds to the $file_magic_cmd with a given extended regex.
5844 # If you have `file' or equivalent on your system and you're not sure
5845 # whether `pass_all' will *always* work, you probably want this one.
5846
5847 case $host_os in
5848 aix[4-9]*)
5849   lt_cv_deplibs_check_method=pass_all
5850   ;;
5851
5852 beos*)
5853   lt_cv_deplibs_check_method=pass_all
5854   ;;
5855
5856 bsdi[45]*)
5857   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5858   lt_cv_file_magic_cmd='/usr/bin/file -L'
5859   lt_cv_file_magic_test_file=/shlib/libc.so
5860   ;;
5861
5862 cygwin*)
5863   # func_win32_libid is a shell function defined in ltmain.sh
5864   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5865   lt_cv_file_magic_cmd='func_win32_libid'
5866   ;;
5867
5868 mingw* | pw32*)
5869   # Base MSYS/MinGW do not provide the 'file' command needed by
5870   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5871   # unless we find 'file', for example because we are cross-compiling.
5872   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5873   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5874     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5875     lt_cv_file_magic_cmd='func_win32_libid'
5876   else
5877     # Keep this pattern in sync with the one in func_win32_libid.
5878     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5879     lt_cv_file_magic_cmd='$OBJDUMP -f'
5880   fi
5881   ;;
5882
5883 cegcc*)
5884   # use the weaker test based on 'objdump'. See mingw*.
5885   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5886   lt_cv_file_magic_cmd='$OBJDUMP -f'
5887   ;;
5888
5889 darwin* | rhapsody*)
5890   lt_cv_deplibs_check_method=pass_all
5891   ;;
5892
5893 freebsd* | dragonfly*)
5894   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5895     case $host_cpu in
5896     i*86 )
5897       # Not sure whether the presence of OpenBSD here was a mistake.
5898       # Let's accept both of them until this is cleared up.
5899       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5900       lt_cv_file_magic_cmd=/usr/bin/file
5901       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5902       ;;
5903     esac
5904   else
5905     lt_cv_deplibs_check_method=pass_all
5906   fi
5907   ;;
5908
5909 gnu*)
5910   lt_cv_deplibs_check_method=pass_all
5911   ;;
5912
5913 haiku*)
5914   lt_cv_deplibs_check_method=pass_all
5915   ;;
5916
5917 hpux10.20* | hpux11*)
5918   lt_cv_file_magic_cmd=/usr/bin/file
5919   case $host_cpu in
5920   ia64*)
5921     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5922     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5923     ;;
5924   hppa*64*)
5925     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]'
5926     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5927     ;;
5928   *)
5929     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5930     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5931     ;;
5932   esac
5933   ;;
5934
5935 interix[3-9]*)
5936   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5937   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5938   ;;
5939
5940 irix5* | irix6* | nonstopux*)
5941   case $LD in
5942   *-32|*"-32 ") libmagic=32-bit;;
5943   *-n32|*"-n32 ") libmagic=N32;;
5944   *-64|*"-64 ") libmagic=64-bit;;
5945   *) libmagic=never-match;;
5946   esac
5947   lt_cv_deplibs_check_method=pass_all
5948   ;;
5949
5950 # This must be glibc/ELF.
5951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5952   lt_cv_deplibs_check_method=pass_all
5953   ;;
5954
5955 netbsd*)
5956   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5957     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5958   else
5959     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5960   fi
5961   ;;
5962
5963 newos6*)
5964   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5965   lt_cv_file_magic_cmd=/usr/bin/file
5966   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5967   ;;
5968
5969 *nto* | *qnx*)
5970   lt_cv_deplibs_check_method=pass_all
5971   ;;
5972
5973 openbsd*)
5974   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5975     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5976   else
5977     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5978   fi
5979   ;;
5980
5981 osf3* | osf4* | osf5*)
5982   lt_cv_deplibs_check_method=pass_all
5983   ;;
5984
5985 rdos*)
5986   lt_cv_deplibs_check_method=pass_all
5987   ;;
5988
5989 solaris*)
5990   lt_cv_deplibs_check_method=pass_all
5991   ;;
5992
5993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5994   lt_cv_deplibs_check_method=pass_all
5995   ;;
5996
5997 sysv4 | sysv4.3*)
5998   case $host_vendor in
5999   motorola)
6000     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]'
6001     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6002     ;;
6003   ncr)
6004     lt_cv_deplibs_check_method=pass_all
6005     ;;
6006   sequent)
6007     lt_cv_file_magic_cmd='/bin/file'
6008     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6009     ;;
6010   sni)
6011     lt_cv_file_magic_cmd='/bin/file'
6012     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6013     lt_cv_file_magic_test_file=/lib/libc.so
6014     ;;
6015   siemens)
6016     lt_cv_deplibs_check_method=pass_all
6017     ;;
6018   pc)
6019     lt_cv_deplibs_check_method=pass_all
6020     ;;
6021   esac
6022   ;;
6023
6024 tpf*)
6025   lt_cv_deplibs_check_method=pass_all
6026   ;;
6027 esac
6028
6029 fi
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6031 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6032
6033 file_magic_glob=
6034 want_nocaseglob=no
6035 if test "$build" = "$host"; then
6036   case $host_os in
6037   mingw* | pw32*)
6038     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6039       want_nocaseglob=yes
6040     else
6041       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6042     fi
6043     ;;
6044   esac
6045 fi
6046
6047 file_magic_cmd=$lt_cv_file_magic_cmd
6048 deplibs_check_method=$lt_cv_deplibs_check_method
6049 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 if test -n "$ac_tool_prefix"; then
6073   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if ${ac_cv_prog_DLLTOOL+:} false; then :
6078   $as_echo_n "(cached) " >&6
6079 else
6080   if test -n "$DLLTOOL"; then
6081   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086   IFS=$as_save_IFS
6087   test -z "$as_dir" && as_dir=.
6088     for ac_exec_ext in '' $ac_executable_extensions; do
6089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092     break 2
6093   fi
6094 done
6095   done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 DLLTOOL=$ac_cv_prog_DLLTOOL
6101 if test -n "$DLLTOOL"; then
6102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6103 $as_echo "$DLLTOOL" >&6; }
6104 else
6105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6107 fi
6108
6109
6110 fi
6111 if test -z "$ac_cv_prog_DLLTOOL"; then
6112   ac_ct_DLLTOOL=$DLLTOOL
6113   # Extract the first word of "dlltool", so it can be a program name with args.
6114 set dummy dlltool; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6118   $as_echo_n "(cached) " >&6
6119 else
6120   if test -n "$ac_ct_DLLTOOL"; then
6121   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128     for ac_exec_ext in '' $ac_executable_extensions; do
6129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133   fi
6134 done
6135   done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6141 if test -n "$ac_ct_DLLTOOL"; then
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6143 $as_echo "$ac_ct_DLLTOOL" >&6; }
6144 else
6145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149   if test "x$ac_ct_DLLTOOL" = x; then
6150     DLLTOOL="false"
6151   else
6152     case $cross_compiling:$ac_tool_warned in
6153 yes:)
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156 ac_tool_warned=yes ;;
6157 esac
6158     DLLTOOL=$ac_ct_DLLTOOL
6159   fi
6160 else
6161   DLLTOOL="$ac_cv_prog_DLLTOOL"
6162 fi
6163
6164 test -z "$DLLTOOL" && DLLTOOL=dlltool
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6176 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6177 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   lt_cv_sharedlib_from_linklib_cmd='unknown'
6181
6182 case $host_os in
6183 cygwin* | mingw* | pw32* | cegcc*)
6184   # two different shell functions defined in ltmain.sh
6185   # decide which to use based on capabilities of $DLLTOOL
6186   case `$DLLTOOL --help 2>&1` in
6187   *--identify-strict*)
6188     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6189     ;;
6190   *)
6191     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6192     ;;
6193   esac
6194   ;;
6195 *)
6196   # fallback: assume linklib IS sharedlib
6197   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6198   ;;
6199 esac
6200
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6203 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6204 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6205 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6206
6207
6208
6209
6210
6211
6212
6213 if test -n "$ac_tool_prefix"; then
6214   for ac_prog in ar
6215   do
6216     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_AR+:} false; then :
6221   $as_echo_n "(cached) " >&6
6222 else
6223   if test -n "$AR"; then
6224   ac_cv_prog_AR="$AR" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229   IFS=$as_save_IFS
6230   test -z "$as_dir" && as_dir=.
6231     for ac_exec_ext in '' $ac_executable_extensions; do
6232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235     break 2
6236   fi
6237 done
6238   done
6239 IFS=$as_save_IFS
6240
6241 fi
6242 fi
6243 AR=$ac_cv_prog_AR
6244 if test -n "$AR"; then
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6246 $as_echo "$AR" >&6; }
6247 else
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6250 fi
6251
6252
6253     test -n "$AR" && break
6254   done
6255 fi
6256 if test -z "$AR"; then
6257   ac_ct_AR=$AR
6258   for ac_prog in ar
6259 do
6260   # Extract the first word of "$ac_prog", so it can be a program name with args.
6261 set dummy $ac_prog; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6265   $as_echo_n "(cached) " >&6
6266 else
6267   if test -n "$ac_ct_AR"; then
6268   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273   IFS=$as_save_IFS
6274   test -z "$as_dir" && as_dir=.
6275     for ac_exec_ext in '' $ac_executable_extensions; do
6276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277     ac_cv_prog_ac_ct_AR="$ac_prog"
6278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279     break 2
6280   fi
6281 done
6282   done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6288 if test -n "$ac_ct_AR"; then
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6290 $as_echo "$ac_ct_AR" >&6; }
6291 else
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296
6297   test -n "$ac_ct_AR" && break
6298 done
6299
6300   if test "x$ac_ct_AR" = x; then
6301     AR="false"
6302   else
6303     case $cross_compiling:$ac_tool_warned in
6304 yes:)
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307 ac_tool_warned=yes ;;
6308 esac
6309     AR=$ac_ct_AR
6310   fi
6311 fi
6312
6313 : ${AR=ar}
6314 : ${AR_FLAGS=cru}
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6327 $as_echo_n "checking for archiver @FILE support... " >&6; }
6328 if ${lt_cv_ar_at_file+:} false; then :
6329   $as_echo_n "(cached) " >&6
6330 else
6331   lt_cv_ar_at_file=no
6332    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h.  */
6334
6335 int
6336 main ()
6337 {
6338
6339   ;
6340   return 0;
6341 }
6342 _ACEOF
6343 if ac_fn_c_try_compile "$LINENO"; then :
6344   echo conftest.$ac_objext > conftest.lst
6345       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6346       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6347   (eval $lt_ar_try) 2>&5
6348   ac_status=$?
6349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350   test $ac_status = 0; }
6351       if test "$ac_status" -eq 0; then
6352         # Ensure the archiver fails upon bogus file names.
6353         rm -f conftest.$ac_objext libconftest.a
6354         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6355   (eval $lt_ar_try) 2>&5
6356   ac_status=$?
6357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358   test $ac_status = 0; }
6359         if test "$ac_status" -ne 0; then
6360           lt_cv_ar_at_file=@
6361         fi
6362       fi
6363       rm -f conftest.* libconftest.a
6364
6365 fi
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367
6368 fi
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6370 $as_echo "$lt_cv_ar_at_file" >&6; }
6371
6372 if test "x$lt_cv_ar_at_file" = xno; then
6373   archiver_list_spec=
6374 else
6375   archiver_list_spec=$lt_cv_ar_at_file
6376 fi
6377
6378
6379
6380
6381
6382
6383
6384 if test -n "$ac_tool_prefix"; then
6385   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6386 set dummy ${ac_tool_prefix}strip; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if ${ac_cv_prog_STRIP+:} false; then :
6390   $as_echo_n "(cached) " >&6
6391 else
6392   if test -n "$STRIP"; then
6393   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398   IFS=$as_save_IFS
6399   test -z "$as_dir" && as_dir=.
6400     for ac_exec_ext in '' $ac_executable_extensions; do
6401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404     break 2
6405   fi
6406 done
6407   done
6408 IFS=$as_save_IFS
6409
6410 fi
6411 fi
6412 STRIP=$ac_cv_prog_STRIP
6413 if test -n "$STRIP"; then
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6415 $as_echo "$STRIP" >&6; }
6416 else
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6419 fi
6420
6421
6422 fi
6423 if test -z "$ac_cv_prog_STRIP"; then
6424   ac_ct_STRIP=$STRIP
6425   # Extract the first word of "strip", so it can be a program name with args.
6426 set dummy strip; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432   if test -n "$ac_ct_STRIP"; then
6433   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440     for ac_exec_ext in '' $ac_executable_extensions; do
6441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442     ac_cv_prog_ac_ct_STRIP="strip"
6443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447   done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6453 if test -n "$ac_ct_STRIP"; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6455 $as_echo "$ac_ct_STRIP" >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460
6461   if test "x$ac_ct_STRIP" = x; then
6462     STRIP=":"
6463   else
6464     case $cross_compiling:$ac_tool_warned in
6465 yes:)
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470     STRIP=$ac_ct_STRIP
6471   fi
6472 else
6473   STRIP="$ac_cv_prog_STRIP"
6474 fi
6475
6476 test -z "$STRIP" && STRIP=:
6477
6478
6479
6480
6481
6482
6483 if test -n "$ac_tool_prefix"; then
6484   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6485 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_prog_RANLIB+:} false; then :
6489   $as_echo_n "(cached) " >&6
6490 else
6491   if test -n "$RANLIB"; then
6492   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499     for ac_exec_ext in '' $ac_executable_extensions; do
6500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506   done
6507 IFS=$as_save_IFS
6508
6509 fi
6510 fi
6511 RANLIB=$ac_cv_prog_RANLIB
6512 if test -n "$RANLIB"; then
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6514 $as_echo "$RANLIB" >&6; }
6515 else
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6518 fi
6519
6520
6521 fi
6522 if test -z "$ac_cv_prog_RANLIB"; then
6523   ac_ct_RANLIB=$RANLIB
6524   # Extract the first word of "ranlib", so it can be a program name with args.
6525 set dummy ranlib; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6529   $as_echo_n "(cached) " >&6
6530 else
6531   if test -n "$ac_ct_RANLIB"; then
6532   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537   IFS=$as_save_IFS
6538   test -z "$as_dir" && as_dir=.
6539     for ac_exec_ext in '' $ac_executable_extensions; do
6540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541     ac_cv_prog_ac_ct_RANLIB="ranlib"
6542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543     break 2
6544   fi
6545 done
6546   done
6547 IFS=$as_save_IFS
6548
6549 fi
6550 fi
6551 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6552 if test -n "$ac_ct_RANLIB"; then
6553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6554 $as_echo "$ac_ct_RANLIB" >&6; }
6555 else
6556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6558 fi
6559
6560   if test "x$ac_ct_RANLIB" = x; then
6561     RANLIB=":"
6562   else
6563     case $cross_compiling:$ac_tool_warned in
6564 yes:)
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567 ac_tool_warned=yes ;;
6568 esac
6569     RANLIB=$ac_ct_RANLIB
6570   fi
6571 else
6572   RANLIB="$ac_cv_prog_RANLIB"
6573 fi
6574
6575 test -z "$RANLIB" && RANLIB=:
6576
6577
6578
6579
6580
6581
6582 # Determine commands to create old-style static archives.
6583 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6584 old_postinstall_cmds='chmod 644 $oldlib'
6585 old_postuninstall_cmds=
6586
6587 if test -n "$RANLIB"; then
6588   case $host_os in
6589   openbsd*)
6590     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6591     ;;
6592   *)
6593     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6594     ;;
6595   esac
6596   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6597 fi
6598
6599 case $host_os in
6600   darwin*)
6601     lock_old_archive_extraction=yes ;;
6602   *)
6603     lock_old_archive_extraction=no ;;
6604 esac
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644 # If no C compiler was specified, use CC.
6645 LTCC=${LTCC-"$CC"}
6646
6647 # If no C compiler flags were specified, use CFLAGS.
6648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6649
6650 # Allow CC to be a program name with arguments.
6651 compiler=$CC
6652
6653
6654 # Check for command to grab the raw symbol name followed by C symbol from nm.
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6656 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6657 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6658   $as_echo_n "(cached) " >&6
6659 else
6660
6661 # These are sane defaults that work on at least a few old systems.
6662 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6663
6664 # Character class describing NM global symbol codes.
6665 symcode='[BCDEGRST]'
6666
6667 # Regexp to match symbols that can be accessed directly from C.
6668 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6669
6670 # Define system-specific variables.
6671 case $host_os in
6672 aix*)
6673   symcode='[BCDT]'
6674   ;;
6675 cygwin* | mingw* | pw32* | cegcc*)
6676   symcode='[ABCDGISTW]'
6677   ;;
6678 hpux*)
6679   if test "$host_cpu" = ia64; then
6680     symcode='[ABCDEGRST]'
6681   fi
6682   ;;
6683 irix* | nonstopux*)
6684   symcode='[BCDEGRST]'
6685   ;;
6686 osf*)
6687   symcode='[BCDEGQRST]'
6688   ;;
6689 solaris*)
6690   symcode='[BDRT]'
6691   ;;
6692 sco3.2v5*)
6693   symcode='[DT]'
6694   ;;
6695 sysv4.2uw2*)
6696   symcode='[DT]'
6697   ;;
6698 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6699   symcode='[ABDT]'
6700   ;;
6701 sysv4)
6702   symcode='[DFNSTU]'
6703   ;;
6704 esac
6705
6706 # If we're using GNU nm, then use its standard symbol codes.
6707 case `$NM -V 2>&1` in
6708 *GNU* | *'with BFD'*)
6709   symcode='[ABCDGIRSTW]' ;;
6710 esac
6711
6712 # Transform an extracted symbol line into a proper C declaration.
6713 # Some systems (esp. on ia64) link data and code symbols differently,
6714 # so use this general approach.
6715 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6716
6717 # Transform an extracted symbol line into symbol name and symbol address
6718 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6719 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6720
6721 # Handle CRLF in mingw tool chain
6722 opt_cr=
6723 case $build_os in
6724 mingw*)
6725   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6726   ;;
6727 esac
6728
6729 # Try without a prefix underscore, then with it.
6730 for ac_symprfx in "" "_"; do
6731
6732   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6733   symxfrm="\\1 $ac_symprfx\\2 \\2"
6734
6735   # Write the raw and C identifiers.
6736   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6737     # Fake it for dumpbin and say T for any non-static function
6738     # and D for any global variable.
6739     # Also find C++ and __fastcall symbols from MSVC++,
6740     # which start with @ or ?.
6741     lt_cv_sys_global_symbol_pipe="$AWK '"\
6742 "     {last_section=section; section=\$ 3};"\
6743 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6744 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6745 "     \$ 0!~/External *\|/{next};"\
6746 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6747 "     {if(hide[section]) next};"\
6748 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6749 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6750 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6751 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6752 "     ' prfx=^$ac_symprfx"
6753   else
6754     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6755   fi
6756   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6757
6758   # Check to see that the pipe works correctly.
6759   pipe_works=no
6760
6761   rm -f conftest*
6762   cat > conftest.$ac_ext <<_LT_EOF
6763 #ifdef __cplusplus
6764 extern "C" {
6765 #endif
6766 char nm_test_var;
6767 void nm_test_func(void);
6768 void nm_test_func(void){}
6769 #ifdef __cplusplus
6770 }
6771 #endif
6772 int main(){nm_test_var='a';nm_test_func();return(0);}
6773 _LT_EOF
6774
6775   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6776   (eval $ac_compile) 2>&5
6777   ac_status=$?
6778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779   test $ac_status = 0; }; then
6780     # Now try to grab the symbols.
6781     nlist=conftest.nm
6782     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6783   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6784   ac_status=$?
6785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786   test $ac_status = 0; } && test -s "$nlist"; then
6787       # Try sorting and uniquifying the output.
6788       if sort "$nlist" | uniq > "$nlist"T; then
6789         mv -f "$nlist"T "$nlist"
6790       else
6791         rm -f "$nlist"T
6792       fi
6793
6794       # Make sure that we snagged all the symbols we need.
6795       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6796         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6797           cat <<_LT_EOF > conftest.$ac_ext
6798 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6799 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6800 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6801    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6802 # define LT_DLSYM_CONST
6803 #elif defined(__osf__)
6804 /* This system does not cope well with relocations in const data.  */
6805 # define LT_DLSYM_CONST
6806 #else
6807 # define LT_DLSYM_CONST const
6808 #endif
6809
6810 #ifdef __cplusplus
6811 extern "C" {
6812 #endif
6813
6814 _LT_EOF
6815           # Now generate the symbol file.
6816           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6817
6818           cat <<_LT_EOF >> conftest.$ac_ext
6819
6820 /* The mapping between symbol names and symbols.  */
6821 LT_DLSYM_CONST struct {
6822   const char *name;
6823   void       *address;
6824 }
6825 lt__PROGRAM__LTX_preloaded_symbols[] =
6826 {
6827   { "@PROGRAM@", (void *) 0 },
6828 _LT_EOF
6829           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6830           cat <<\_LT_EOF >> conftest.$ac_ext
6831   {0, (void *) 0}
6832 };
6833
6834 /* This works around a problem in FreeBSD linker */
6835 #ifdef FREEBSD_WORKAROUND
6836 static const void *lt_preloaded_setup() {
6837   return lt__PROGRAM__LTX_preloaded_symbols;
6838 }
6839 #endif
6840
6841 #ifdef __cplusplus
6842 }
6843 #endif
6844 _LT_EOF
6845           # Now try linking the two files.
6846           mv conftest.$ac_objext conftstm.$ac_objext
6847           lt_globsym_save_LIBS=$LIBS
6848           lt_globsym_save_CFLAGS=$CFLAGS
6849           LIBS="conftstm.$ac_objext"
6850           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6851           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6852   (eval $ac_link) 2>&5
6853   ac_status=$?
6854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6856             pipe_works=yes
6857           fi
6858           LIBS=$lt_globsym_save_LIBS
6859           CFLAGS=$lt_globsym_save_CFLAGS
6860         else
6861           echo "cannot find nm_test_func in $nlist" >&5
6862         fi
6863       else
6864         echo "cannot find nm_test_var in $nlist" >&5
6865       fi
6866     else
6867       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6868     fi
6869   else
6870     echo "$progname: failed program was:" >&5
6871     cat conftest.$ac_ext >&5
6872   fi
6873   rm -rf conftest* conftst*
6874
6875   # Do not use the global_symbol_pipe unless it works.
6876   if test "$pipe_works" = yes; then
6877     break
6878   else
6879     lt_cv_sys_global_symbol_pipe=
6880   fi
6881 done
6882
6883 fi
6884
6885 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6886   lt_cv_sys_global_symbol_to_cdecl=
6887 fi
6888 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6890 $as_echo "failed" >&6; }
6891 else
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6893 $as_echo "ok" >&6; }
6894 fi
6895
6896 # Response file support.
6897 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6898   nm_file_list_spec='@'
6899 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6900   nm_file_list_spec='@'
6901 fi
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6930 $as_echo_n "checking for sysroot... " >&6; }
6931
6932 # Check whether --with-sysroot was given.
6933 if test "${with_sysroot+set}" = set; then :
6934   withval=$with_sysroot;
6935 else
6936   with_sysroot=no
6937 fi
6938
6939
6940 lt_sysroot=
6941 case ${with_sysroot} in #(
6942  yes)
6943    if test "$GCC" = yes; then
6944      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6945    fi
6946    ;; #(
6947  /*)
6948    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6949    ;; #(
6950  no|'')
6951    ;; #(
6952  *)
6953    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6954 $as_echo "${with_sysroot}" >&6; }
6955    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6956    ;;
6957 esac
6958
6959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6960 $as_echo "${lt_sysroot:-no}" >&6; }
6961
6962
6963
6964
6965
6966 # Check whether --enable-libtool-lock was given.
6967 if test "${enable_libtool_lock+set}" = set; then :
6968   enableval=$enable_libtool_lock;
6969 fi
6970
6971 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6972
6973 # Some flags need to be propagated to the compiler or linker for good
6974 # libtool support.
6975 case $host in
6976 ia64-*-hpux*)
6977   # Find out which ABI we are using.
6978   echo 'int i;' > conftest.$ac_ext
6979   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6980   (eval $ac_compile) 2>&5
6981   ac_status=$?
6982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983   test $ac_status = 0; }; then
6984     case `/usr/bin/file conftest.$ac_objext` in
6985       *ELF-32*)
6986         HPUX_IA64_MODE="32"
6987         ;;
6988       *ELF-64*)
6989         HPUX_IA64_MODE="64"
6990         ;;
6991     esac
6992   fi
6993   rm -rf conftest*
6994   ;;
6995 *-*-irix6*)
6996   # Find out which ABI we are using.
6997   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6998   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999   (eval $ac_compile) 2>&5
7000   ac_status=$?
7001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002   test $ac_status = 0; }; then
7003     if test "$lt_cv_prog_gnu_ld" = yes; then
7004       case `/usr/bin/file conftest.$ac_objext` in
7005         *32-bit*)
7006           LD="${LD-ld} -melf32bsmip"
7007           ;;
7008         *N32*)
7009           LD="${LD-ld} -melf32bmipn32"
7010           ;;
7011         *64-bit*)
7012           LD="${LD-ld} -melf64bmip"
7013         ;;
7014       esac
7015     else
7016       case `/usr/bin/file conftest.$ac_objext` in
7017         *32-bit*)
7018           LD="${LD-ld} -32"
7019           ;;
7020         *N32*)
7021           LD="${LD-ld} -n32"
7022           ;;
7023         *64-bit*)
7024           LD="${LD-ld} -64"
7025           ;;
7026       esac
7027     fi
7028   fi
7029   rm -rf conftest*
7030   ;;
7031
7032 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7033 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7034   # Find out which ABI we are using.
7035   echo 'int i;' > conftest.$ac_ext
7036   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7037   (eval $ac_compile) 2>&5
7038   ac_status=$?
7039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040   test $ac_status = 0; }; then
7041     case `/usr/bin/file conftest.o` in
7042       *32-bit*)
7043         case $host in
7044           x86_64-*kfreebsd*-gnu)
7045             LD="${LD-ld} -m elf_i386_fbsd"
7046             ;;
7047           x86_64-*linux*)
7048             LD="${LD-ld} -m elf_i386"
7049             ;;
7050           ppc64-*linux*|powerpc64-*linux*)
7051             LD="${LD-ld} -m elf32ppclinux"
7052             ;;
7053           s390x-*linux*)
7054             LD="${LD-ld} -m elf_s390"
7055             ;;
7056           sparc64-*linux*)
7057             LD="${LD-ld} -m elf32_sparc"
7058             ;;
7059         esac
7060         ;;
7061       *64-bit*)
7062         case $host in
7063           x86_64-*kfreebsd*-gnu)
7064             LD="${LD-ld} -m elf_x86_64_fbsd"
7065             ;;
7066           x86_64-*linux*)
7067             LD="${LD-ld} -m elf_x86_64"
7068             ;;
7069           ppc*-*linux*|powerpc*-*linux*)
7070             LD="${LD-ld} -m elf64ppc"
7071             ;;
7072           s390*-*linux*|s390*-*tpf*)
7073             LD="${LD-ld} -m elf64_s390"
7074             ;;
7075           sparc*-*linux*)
7076             LD="${LD-ld} -m elf64_sparc"
7077             ;;
7078         esac
7079         ;;
7080     esac
7081   fi
7082   rm -rf conftest*
7083   ;;
7084
7085 *-*-sco3.2v5*)
7086   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7087   SAVE_CFLAGS="$CFLAGS"
7088   CFLAGS="$CFLAGS -belf"
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7090 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7091 if ${lt_cv_cc_needs_belf+:} false; then :
7092   $as_echo_n "(cached) " >&6
7093 else
7094   ac_ext=c
7095 ac_cpp='$CPP $CPPFLAGS'
7096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099
7100      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h.  */
7102
7103 int
7104 main ()
7105 {
7106
7107   ;
7108   return 0;
7109 }
7110 _ACEOF
7111 if ac_fn_c_try_link "$LINENO"; then :
7112   lt_cv_cc_needs_belf=yes
7113 else
7114   lt_cv_cc_needs_belf=no
7115 fi
7116 rm -f core conftest.err conftest.$ac_objext \
7117     conftest$ac_exeext conftest.$ac_ext
7118      ac_ext=c
7119 ac_cpp='$CPP $CPPFLAGS'
7120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7123
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7126 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7127   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7128     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7129     CFLAGS="$SAVE_CFLAGS"
7130   fi
7131   ;;
7132 *-*solaris*)
7133   # Find out which ABI we are using.
7134   echo 'int i;' > conftest.$ac_ext
7135   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7136   (eval $ac_compile) 2>&5
7137   ac_status=$?
7138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7139   test $ac_status = 0; }; then
7140     case `/usr/bin/file conftest.o` in
7141     *64-bit*)
7142       case $lt_cv_prog_gnu_ld in
7143       yes*)
7144         case $host in
7145         i?86-*-solaris*)
7146           LD="${LD-ld} -m elf_x86_64"
7147           ;;
7148         sparc*-*-solaris*)
7149           LD="${LD-ld} -m elf64_sparc"
7150           ;;
7151         esac
7152         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7153         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7154           LD="${LD-ld}_sol2"
7155         fi
7156         ;;
7157       *)
7158         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7159           LD="${LD-ld} -64"
7160         fi
7161         ;;
7162       esac
7163       ;;
7164     esac
7165   fi
7166   rm -rf conftest*
7167   ;;
7168 esac
7169
7170 need_locks="$enable_libtool_lock"
7171
7172 if test -n "$ac_tool_prefix"; then
7173   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}mt; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7178   $as_echo_n "(cached) " >&6
7179 else
7180   if test -n "$MANIFEST_TOOL"; then
7181   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188     for ac_exec_ext in '' $ac_executable_extensions; do
7189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195   done
7196 IFS=$as_save_IFS
7197
7198 fi
7199 fi
7200 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7201 if test -n "$MANIFEST_TOOL"; then
7202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7203 $as_echo "$MANIFEST_TOOL" >&6; }
7204 else
7205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7207 fi
7208
7209
7210 fi
7211 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7212   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7213   # Extract the first word of "mt", so it can be a program name with args.
7214 set dummy mt; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   if test -n "$ac_ct_MANIFEST_TOOL"; then
7221   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228     for ac_exec_ext in '' $ac_executable_extensions; do
7229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235   done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7241 if test -n "$ac_ct_MANIFEST_TOOL"; then
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7243 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7244 else
7245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 fi
7248
7249   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7250     MANIFEST_TOOL=":"
7251   else
7252     case $cross_compiling:$ac_tool_warned in
7253 yes:)
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7257 esac
7258     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7259   fi
7260 else
7261   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7262 fi
7263
7264 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7266 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7267 if ${lt_cv_path_mainfest_tool+:} false; then :
7268   $as_echo_n "(cached) " >&6
7269 else
7270   lt_cv_path_mainfest_tool=no
7271   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7272   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7273   cat conftest.err >&5
7274   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7275     lt_cv_path_mainfest_tool=yes
7276   fi
7277   rm -f conftest*
7278 fi
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7280 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7281 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7282   MANIFEST_TOOL=:
7283 fi
7284
7285
7286
7287
7288
7289
7290   case $host_os in
7291     rhapsody* | darwin*)
7292     if test -n "$ac_tool_prefix"; then
7293   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7298   $as_echo_n "(cached) " >&6
7299 else
7300   if test -n "$DSYMUTIL"; then
7301   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308     for ac_exec_ext in '' $ac_executable_extensions; do
7309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315   done
7316 IFS=$as_save_IFS
7317
7318 fi
7319 fi
7320 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7321 if test -n "$DSYMUTIL"; then
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7323 $as_echo "$DSYMUTIL" >&6; }
7324 else
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 fi
7328
7329
7330 fi
7331 if test -z "$ac_cv_prog_DSYMUTIL"; then
7332   ac_ct_DSYMUTIL=$DSYMUTIL
7333   # Extract the first word of "dsymutil", so it can be a program name with args.
7334 set dummy dsymutil; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   if test -n "$ac_ct_DSYMUTIL"; then
7341   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7361 if test -n "$ac_ct_DSYMUTIL"; then
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7363 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7364 else
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369   if test "x$ac_ct_DSYMUTIL" = x; then
7370     DSYMUTIL=":"
7371   else
7372     case $cross_compiling:$ac_tool_warned in
7373 yes:)
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7377 esac
7378     DSYMUTIL=$ac_ct_DSYMUTIL
7379   fi
7380 else
7381   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7382 fi
7383
7384     if test -n "$ac_tool_prefix"; then
7385   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7386 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if ${ac_cv_prog_NMEDIT+:} false; then :
7390   $as_echo_n "(cached) " >&6
7391 else
7392   if test -n "$NMEDIT"; then
7393   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7394 else
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398   IFS=$as_save_IFS
7399   test -z "$as_dir" && as_dir=.
7400     for ac_exec_ext in '' $ac_executable_extensions; do
7401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404     break 2
7405   fi
7406 done
7407   done
7408 IFS=$as_save_IFS
7409
7410 fi
7411 fi
7412 NMEDIT=$ac_cv_prog_NMEDIT
7413 if test -n "$NMEDIT"; then
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7415 $as_echo "$NMEDIT" >&6; }
7416 else
7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7419 fi
7420
7421
7422 fi
7423 if test -z "$ac_cv_prog_NMEDIT"; then
7424   ac_ct_NMEDIT=$NMEDIT
7425   # Extract the first word of "nmedit", so it can be a program name with args.
7426 set dummy nmedit; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   if test -n "$ac_ct_NMEDIT"; then
7433   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440     for ac_exec_ext in '' $ac_executable_extensions; do
7441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447   done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7453 if test -n "$ac_ct_NMEDIT"; then
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7455 $as_echo "$ac_ct_NMEDIT" >&6; }
7456 else
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461   if test "x$ac_ct_NMEDIT" = x; then
7462     NMEDIT=":"
7463   else
7464     case $cross_compiling:$ac_tool_warned in
7465 yes:)
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7468 ac_tool_warned=yes ;;
7469 esac
7470     NMEDIT=$ac_ct_NMEDIT
7471   fi
7472 else
7473   NMEDIT="$ac_cv_prog_NMEDIT"
7474 fi
7475
7476     if test -n "$ac_tool_prefix"; then
7477   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7478 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if ${ac_cv_prog_LIPO+:} false; then :
7482   $as_echo_n "(cached) " >&6
7483 else
7484   if test -n "$LIPO"; then
7485   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490   IFS=$as_save_IFS
7491   test -z "$as_dir" && as_dir=.
7492     for ac_exec_ext in '' $ac_executable_extensions; do
7493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496     break 2
7497   fi
7498 done
7499   done
7500 IFS=$as_save_IFS
7501
7502 fi
7503 fi
7504 LIPO=$ac_cv_prog_LIPO
7505 if test -n "$LIPO"; then
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7507 $as_echo "$LIPO" >&6; }
7508 else
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7511 fi
7512
7513
7514 fi
7515 if test -z "$ac_cv_prog_LIPO"; then
7516   ac_ct_LIPO=$LIPO
7517   # Extract the first word of "lipo", so it can be a program name with args.
7518 set dummy lipo; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7522   $as_echo_n "(cached) " >&6
7523 else
7524   if test -n "$ac_ct_LIPO"; then
7525   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530   IFS=$as_save_IFS
7531   test -z "$as_dir" && as_dir=.
7532     for ac_exec_ext in '' $ac_executable_extensions; do
7533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534     ac_cv_prog_ac_ct_LIPO="lipo"
7535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536     break 2
7537   fi
7538 done
7539   done
7540 IFS=$as_save_IFS
7541
7542 fi
7543 fi
7544 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7545 if test -n "$ac_ct_LIPO"; then
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7547 $as_echo "$ac_ct_LIPO" >&6; }
7548 else
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7551 fi
7552
7553   if test "x$ac_ct_LIPO" = x; then
7554     LIPO=":"
7555   else
7556     case $cross_compiling:$ac_tool_warned in
7557 yes:)
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7560 ac_tool_warned=yes ;;
7561 esac
7562     LIPO=$ac_ct_LIPO
7563   fi
7564 else
7565   LIPO="$ac_cv_prog_LIPO"
7566 fi
7567
7568     if test -n "$ac_tool_prefix"; then
7569   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7570 set dummy ${ac_tool_prefix}otool; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_OTOOL+:} false; then :
7574   $as_echo_n "(cached) " >&6
7575 else
7576   if test -n "$OTOOL"; then
7577   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7578 else
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584     for ac_exec_ext in '' $ac_executable_extensions; do
7585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591   done
7592 IFS=$as_save_IFS
7593
7594 fi
7595 fi
7596 OTOOL=$ac_cv_prog_OTOOL
7597 if test -n "$OTOOL"; then
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7599 $as_echo "$OTOOL" >&6; }
7600 else
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604
7605
7606 fi
7607 if test -z "$ac_cv_prog_OTOOL"; then
7608   ac_ct_OTOOL=$OTOOL
7609   # Extract the first word of "otool", so it can be a program name with args.
7610 set dummy otool; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7614   $as_echo_n "(cached) " >&6
7615 else
7616   if test -n "$ac_ct_OTOOL"; then
7617   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7618 else
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622   IFS=$as_save_IFS
7623   test -z "$as_dir" && as_dir=.
7624     for ac_exec_ext in '' $ac_executable_extensions; do
7625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626     ac_cv_prog_ac_ct_OTOOL="otool"
7627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628     break 2
7629   fi
7630 done
7631   done
7632 IFS=$as_save_IFS
7633
7634 fi
7635 fi
7636 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7637 if test -n "$ac_ct_OTOOL"; then
7638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7639 $as_echo "$ac_ct_OTOOL" >&6; }
7640 else
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7643 fi
7644
7645   if test "x$ac_ct_OTOOL" = x; then
7646     OTOOL=":"
7647   else
7648     case $cross_compiling:$ac_tool_warned in
7649 yes:)
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7652 ac_tool_warned=yes ;;
7653 esac
7654     OTOOL=$ac_ct_OTOOL
7655   fi
7656 else
7657   OTOOL="$ac_cv_prog_OTOOL"
7658 fi
7659
7660     if test -n "$ac_tool_prefix"; then
7661   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7662 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_OTOOL64+:} false; then :
7666   $as_echo_n "(cached) " >&6
7667 else
7668   if test -n "$OTOOL64"; then
7669   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676     for ac_exec_ext in '' $ac_executable_extensions; do
7677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683   done
7684 IFS=$as_save_IFS
7685
7686 fi
7687 fi
7688 OTOOL64=$ac_cv_prog_OTOOL64
7689 if test -n "$OTOOL64"; then
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7691 $as_echo "$OTOOL64" >&6; }
7692 else
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697
7698 fi
7699 if test -z "$ac_cv_prog_OTOOL64"; then
7700   ac_ct_OTOOL64=$OTOOL64
7701   # Extract the first word of "otool64", so it can be a program name with args.
7702 set dummy otool64; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7706   $as_echo_n "(cached) " >&6
7707 else
7708   if test -n "$ac_ct_OTOOL64"; then
7709   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714   IFS=$as_save_IFS
7715   test -z "$as_dir" && as_dir=.
7716     for ac_exec_ext in '' $ac_executable_extensions; do
7717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718     ac_cv_prog_ac_ct_OTOOL64="otool64"
7719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720     break 2
7721   fi
7722 done
7723   done
7724 IFS=$as_save_IFS
7725
7726 fi
7727 fi
7728 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7729 if test -n "$ac_ct_OTOOL64"; then
7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7731 $as_echo "$ac_ct_OTOOL64" >&6; }
7732 else
7733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7735 fi
7736
7737   if test "x$ac_ct_OTOOL64" = x; then
7738     OTOOL64=":"
7739   else
7740     case $cross_compiling:$ac_tool_warned in
7741 yes:)
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7744 ac_tool_warned=yes ;;
7745 esac
7746     OTOOL64=$ac_ct_OTOOL64
7747   fi
7748 else
7749   OTOOL64="$ac_cv_prog_OTOOL64"
7750 fi
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7779 $as_echo_n "checking for -single_module linker flag... " >&6; }
7780 if ${lt_cv_apple_cc_single_mod+:} false; then :
7781   $as_echo_n "(cached) " >&6
7782 else
7783   lt_cv_apple_cc_single_mod=no
7784       if test -z "${LT_MULTI_MODULE}"; then
7785         # By default we will add the -single_module flag. You can override
7786         # by either setting the environment variable LT_MULTI_MODULE
7787         # non-empty at configure time, or by adding -multi_module to the
7788         # link flags.
7789         rm -rf libconftest.dylib*
7790         echo "int foo(void){return 1;}" > conftest.c
7791         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7792 -dynamiclib -Wl,-single_module conftest.c" >&5
7793         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7794           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7795         _lt_result=$?
7796         # If there is a non-empty error log, and "single_module"
7797         # appears in it, assume the flag caused a linker warning
7798         if test -s conftest.err && $GREP single_module conftest.err; then
7799           cat conftest.err >&5
7800         # Otherwise, if the output was created with a 0 exit code from
7801         # the compiler, it worked.
7802         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7803           lt_cv_apple_cc_single_mod=yes
7804         else
7805           cat conftest.err >&5
7806         fi
7807         rm -rf libconftest.dylib*
7808         rm -f conftest.*
7809       fi
7810 fi
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7812 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7813
7814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7815 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7816 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   lt_cv_ld_exported_symbols_list=no
7820       save_LDFLAGS=$LDFLAGS
7821       echo "_main" > conftest.sym
7822       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7823       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h.  */
7825
7826 int
7827 main ()
7828 {
7829
7830   ;
7831   return 0;
7832 }
7833 _ACEOF
7834 if ac_fn_c_try_link "$LINENO"; then :
7835   lt_cv_ld_exported_symbols_list=yes
7836 else
7837   lt_cv_ld_exported_symbols_list=no
7838 fi
7839 rm -f core conftest.err conftest.$ac_objext \
7840     conftest$ac_exeext conftest.$ac_ext
7841         LDFLAGS="$save_LDFLAGS"
7842
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7845 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7846
7847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7848 $as_echo_n "checking for -force_load linker flag... " >&6; }
7849 if ${lt_cv_ld_force_load+:} false; then :
7850   $as_echo_n "(cached) " >&6
7851 else
7852   lt_cv_ld_force_load=no
7853       cat > conftest.c << _LT_EOF
7854 int forced_loaded() { return 2;}
7855 _LT_EOF
7856       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7857       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7858       echo "$AR cru libconftest.a conftest.o" >&5
7859       $AR cru libconftest.a conftest.o 2>&5
7860       echo "$RANLIB libconftest.a" >&5
7861       $RANLIB libconftest.a 2>&5
7862       cat > conftest.c << _LT_EOF
7863 int main() { return 0;}
7864 _LT_EOF
7865       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7866       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7867       _lt_result=$?
7868       if test -s conftest.err && $GREP force_load conftest.err; then
7869         cat conftest.err >&5
7870       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7871         lt_cv_ld_force_load=yes
7872       else
7873         cat conftest.err >&5
7874       fi
7875         rm -f conftest.err libconftest.a conftest conftest.c
7876         rm -rf conftest.dSYM
7877
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7880 $as_echo "$lt_cv_ld_force_load" >&6; }
7881     case $host_os in
7882     rhapsody* | darwin1.[012])
7883       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7884     darwin1.*)
7885       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7886     darwin*) # darwin 5.x on
7887       # if running on 10.5 or later, the deployment target defaults
7888       # to the OS version, if on x86, and 10.4, the deployment
7889       # target defaults to 10.4. Don't you love it?
7890       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7891         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7892           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7893         10.[012]*)
7894           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7895         10.*)
7896           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7897       esac
7898     ;;
7899   esac
7900     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7901       _lt_dar_single_mod='$single_module'
7902     fi
7903     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7904       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7905     else
7906       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7907     fi
7908     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7909       _lt_dsymutil='~$DSYMUTIL $lib || :'
7910     else
7911       _lt_dsymutil=
7912     fi
7913     ;;
7914   esac
7915
7916 ac_ext=c
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7922 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7923 # On Suns, sometimes $CPP names a directory.
7924 if test -n "$CPP" && test -d "$CPP"; then
7925   CPP=
7926 fi
7927 if test -z "$CPP"; then
7928   if ${ac_cv_prog_CPP+:} false; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931       # Double quotes because CPP needs to be expanded
7932     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7933     do
7934       ac_preproc_ok=false
7935 for ac_c_preproc_warn_flag in '' yes
7936 do
7937   # Use a header file that comes with gcc, so configuring glibc
7938   # with a fresh cross-compiler works.
7939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7940   # <limits.h> exists even on freestanding compilers.
7941   # On the NeXT, cc -E runs the code through the compiler's parser,
7942   # not just through cpp. "Syntax error" is here to catch this case.
7943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h.  */
7945 #ifdef __STDC__
7946 # include <limits.h>
7947 #else
7948 # include <assert.h>
7949 #endif
7950                      Syntax error
7951 _ACEOF
7952 if ac_fn_c_try_cpp "$LINENO"; then :
7953
7954 else
7955   # Broken: fails on valid input.
7956 continue
7957 fi
7958 rm -f conftest.err conftest.i conftest.$ac_ext
7959
7960   # OK, works on sane cases.  Now check whether nonexistent headers
7961   # can be detected and how.
7962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h.  */
7964 #include <ac_nonexistent.h>
7965 _ACEOF
7966 if ac_fn_c_try_cpp "$LINENO"; then :
7967   # Broken: success on invalid input.
7968 continue
7969 else
7970   # Passes both tests.
7971 ac_preproc_ok=:
7972 break
7973 fi
7974 rm -f conftest.err conftest.i conftest.$ac_ext
7975
7976 done
7977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7978 rm -f conftest.i conftest.err conftest.$ac_ext
7979 if $ac_preproc_ok; then :
7980   break
7981 fi
7982
7983     done
7984     ac_cv_prog_CPP=$CPP
7985
7986 fi
7987   CPP=$ac_cv_prog_CPP
7988 else
7989   ac_cv_prog_CPP=$CPP
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7992 $as_echo "$CPP" >&6; }
7993 ac_preproc_ok=false
7994 for ac_c_preproc_warn_flag in '' yes
7995 do
7996   # Use a header file that comes with gcc, so configuring glibc
7997   # with a fresh cross-compiler works.
7998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7999   # <limits.h> exists even on freestanding compilers.
8000   # On the NeXT, cc -E runs the code through the compiler's parser,
8001   # not just through cpp. "Syntax error" is here to catch this case.
8002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h.  */
8004 #ifdef __STDC__
8005 # include <limits.h>
8006 #else
8007 # include <assert.h>
8008 #endif
8009                      Syntax error
8010 _ACEOF
8011 if ac_fn_c_try_cpp "$LINENO"; then :
8012
8013 else
8014   # Broken: fails on valid input.
8015 continue
8016 fi
8017 rm -f conftest.err conftest.i conftest.$ac_ext
8018
8019   # OK, works on sane cases.  Now check whether nonexistent headers
8020   # can be detected and how.
8021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h.  */
8023 #include <ac_nonexistent.h>
8024 _ACEOF
8025 if ac_fn_c_try_cpp "$LINENO"; then :
8026   # Broken: success on invalid input.
8027 continue
8028 else
8029   # Passes both tests.
8030 ac_preproc_ok=:
8031 break
8032 fi
8033 rm -f conftest.err conftest.i conftest.$ac_ext
8034
8035 done
8036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8037 rm -f conftest.i conftest.err conftest.$ac_ext
8038 if $ac_preproc_ok; then :
8039
8040 else
8041   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8043 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8044 See \`config.log' for more details" "$LINENO" 5; }
8045 fi
8046
8047 ac_ext=c
8048 ac_cpp='$CPP $CPPFLAGS'
8049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8052
8053
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8055 $as_echo_n "checking for ANSI C header files... " >&6; }
8056 if ${ac_cv_header_stdc+:} false; then :
8057   $as_echo_n "(cached) " >&6
8058 else
8059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h.  */
8061 #include <stdlib.h>
8062 #include <stdarg.h>
8063 #include <string.h>
8064 #include <float.h>
8065
8066 int
8067 main ()
8068 {
8069
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_compile "$LINENO"; then :
8075   ac_cv_header_stdc=yes
8076 else
8077   ac_cv_header_stdc=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080
8081 if test $ac_cv_header_stdc = yes; then
8082   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h.  */
8085 #include <string.h>
8086
8087 _ACEOF
8088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8089   $EGREP "memchr" >/dev/null 2>&1; then :
8090
8091 else
8092   ac_cv_header_stdc=no
8093 fi
8094 rm -f conftest*
8095
8096 fi
8097
8098 if test $ac_cv_header_stdc = yes; then
8099   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h.  */
8102 #include <stdlib.h>
8103
8104 _ACEOF
8105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106   $EGREP "free" >/dev/null 2>&1; then :
8107
8108 else
8109   ac_cv_header_stdc=no
8110 fi
8111 rm -f conftest*
8112
8113 fi
8114
8115 if test $ac_cv_header_stdc = yes; then
8116   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8117   if test "$cross_compiling" = yes; then :
8118   :
8119 else
8120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h.  */
8122 #include <ctype.h>
8123 #include <stdlib.h>
8124 #if ((' ' & 0x0FF) == 0x020)
8125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8127 #else
8128 # define ISLOWER(c) \
8129                    (('a' <= (c) && (c) <= 'i') \
8130                      || ('j' <= (c) && (c) <= 'r') \
8131                      || ('s' <= (c) && (c) <= 'z'))
8132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8133 #endif
8134
8135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8136 int
8137 main ()
8138 {
8139   int i;
8140   for (i = 0; i < 256; i++)
8141     if (XOR (islower (i), ISLOWER (i))
8142         || toupper (i) != TOUPPER (i))
8143       return 2;
8144   return 0;
8145 }
8146 _ACEOF
8147 if ac_fn_c_try_run "$LINENO"; then :
8148
8149 else
8150   ac_cv_header_stdc=no
8151 fi
8152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8153   conftest.$ac_objext conftest.beam conftest.$ac_ext
8154 fi
8155
8156 fi
8157 fi
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8159 $as_echo "$ac_cv_header_stdc" >&6; }
8160 if test $ac_cv_header_stdc = yes; then
8161
8162 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8163
8164 fi
8165
8166 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8167 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8168                   inttypes.h stdint.h unistd.h
8169 do :
8170   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8171 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8172 "
8173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8174   cat >>confdefs.h <<_ACEOF
8175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8176 _ACEOF
8177
8178 fi
8179
8180 done
8181
8182
8183 for ac_header in dlfcn.h
8184 do :
8185   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8186 "
8187 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8188   cat >>confdefs.h <<_ACEOF
8189 #define HAVE_DLFCN_H 1
8190 _ACEOF
8191
8192 fi
8193
8194 done
8195
8196
8197
8198
8199
8200 # Set options
8201
8202
8203
8204         enable_dlopen=no
8205
8206
8207   enable_win32_dll=no
8208
8209
8210             # Check whether --enable-shared was given.
8211 if test "${enable_shared+set}" = set; then :
8212   enableval=$enable_shared; p=${PACKAGE-default}
8213     case $enableval in
8214     yes) enable_shared=yes ;;
8215     no) enable_shared=no ;;
8216     *)
8217       enable_shared=no
8218       # Look at the argument we got.  We use all the common list separators.
8219       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8220       for pkg in $enableval; do
8221         IFS="$lt_save_ifs"
8222         if test "X$pkg" = "X$p"; then
8223           enable_shared=yes
8224         fi
8225       done
8226       IFS="$lt_save_ifs"
8227       ;;
8228     esac
8229 else
8230   enable_shared=yes
8231 fi
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241   # Check whether --enable-static was given.
8242 if test "${enable_static+set}" = set; then :
8243   enableval=$enable_static; p=${PACKAGE-default}
8244     case $enableval in
8245     yes) enable_static=yes ;;
8246     no) enable_static=no ;;
8247     *)
8248      enable_static=no
8249       # Look at the argument we got.  We use all the common list separators.
8250       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8251       for pkg in $enableval; do
8252         IFS="$lt_save_ifs"
8253         if test "X$pkg" = "X$p"; then
8254           enable_static=yes
8255         fi
8256       done
8257       IFS="$lt_save_ifs"
8258       ;;
8259     esac
8260 else
8261   enable_static=yes
8262 fi
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273 # Check whether --with-pic was given.
8274 if test "${with_pic+set}" = set; then :
8275   withval=$with_pic; lt_p=${PACKAGE-default}
8276     case $withval in
8277     yes|no) pic_mode=$withval ;;
8278     *)
8279       pic_mode=default
8280       # Look at the argument we got.  We use all the common list separators.
8281       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8282       for lt_pkg in $withval; do
8283         IFS="$lt_save_ifs"
8284         if test "X$lt_pkg" = "X$lt_p"; then
8285           pic_mode=yes
8286         fi
8287       done
8288       IFS="$lt_save_ifs"
8289       ;;
8290     esac
8291 else
8292   pic_mode=default
8293 fi
8294
8295
8296 test -z "$pic_mode" && pic_mode=default
8297
8298
8299
8300
8301
8302
8303
8304   # Check whether --enable-fast-install was given.
8305 if test "${enable_fast_install+set}" = set; then :
8306   enableval=$enable_fast_install; p=${PACKAGE-default}
8307     case $enableval in
8308     yes) enable_fast_install=yes ;;
8309     no) enable_fast_install=no ;;
8310     *)
8311       enable_fast_install=no
8312       # Look at the argument we got.  We use all the common list separators.
8313       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8314       for pkg in $enableval; do
8315         IFS="$lt_save_ifs"
8316         if test "X$pkg" = "X$p"; then
8317           enable_fast_install=yes
8318         fi
8319       done
8320       IFS="$lt_save_ifs"
8321       ;;
8322     esac
8323 else
8324   enable_fast_install=yes
8325 fi
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337 # This can be used to rebuild libtool when needed
8338 LIBTOOL_DEPS="$ltmain"
8339
8340 # Always use our own libtool.
8341 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372 test -z "$LN_S" && LN_S="ln -s"
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387 if test -n "${ZSH_VERSION+set}" ; then
8388    setopt NO_GLOB_SUBST
8389 fi
8390
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8392 $as_echo_n "checking for objdir... " >&6; }
8393 if ${lt_cv_objdir+:} false; then :
8394   $as_echo_n "(cached) " >&6
8395 else
8396   rm -f .libs 2>/dev/null
8397 mkdir .libs 2>/dev/null
8398 if test -d .libs; then
8399   lt_cv_objdir=.libs
8400 else
8401   # MS-DOS does not allow filenames that begin with a dot.
8402   lt_cv_objdir=_libs
8403 fi
8404 rmdir .libs 2>/dev/null
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8407 $as_echo "$lt_cv_objdir" >&6; }
8408 objdir=$lt_cv_objdir
8409
8410
8411
8412
8413
8414 cat >>confdefs.h <<_ACEOF
8415 #define LT_OBJDIR "$lt_cv_objdir/"
8416 _ACEOF
8417
8418
8419
8420
8421 case $host_os in
8422 aix3*)
8423   # AIX sometimes has problems with the GCC collect2 program.  For some
8424   # reason, if we set the COLLECT_NAMES environment variable, the problems
8425   # vanish in a puff of smoke.
8426   if test "X${COLLECT_NAMES+set}" != Xset; then
8427     COLLECT_NAMES=
8428     export COLLECT_NAMES
8429   fi
8430   ;;
8431 esac
8432
8433 # Global variables:
8434 ofile=libtool
8435 can_build_shared=yes
8436
8437 # All known linkers require a `.a' archive for static linking (except MSVC,
8438 # which needs '.lib').
8439 libext=a
8440
8441 with_gnu_ld="$lt_cv_prog_gnu_ld"
8442
8443 old_CC="$CC"
8444 old_CFLAGS="$CFLAGS"
8445
8446 # Set sane defaults for various variables
8447 test -z "$CC" && CC=cc
8448 test -z "$LTCC" && LTCC=$CC
8449 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8450 test -z "$LD" && LD=ld
8451 test -z "$ac_objext" && ac_objext=o
8452
8453 for cc_temp in $compiler""; do
8454   case $cc_temp in
8455     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8456     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8457     \-*) ;;
8458     *) break;;
8459   esac
8460 done
8461 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8462
8463
8464 # Only perform the check for file, if the check method requires it
8465 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8466 case $deplibs_check_method in
8467 file_magic*)
8468   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8470 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8471 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8472   $as_echo_n "(cached) " >&6
8473 else
8474   case $MAGIC_CMD in
8475 [\\/*] |  ?:[\\/]*)
8476   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8477   ;;
8478 *)
8479   lt_save_MAGIC_CMD="$MAGIC_CMD"
8480   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8481   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8482   for ac_dir in $ac_dummy; do
8483     IFS="$lt_save_ifs"
8484     test -z "$ac_dir" && ac_dir=.
8485     if test -f $ac_dir/${ac_tool_prefix}file; then
8486       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8487       if test -n "$file_magic_test_file"; then
8488         case $deplibs_check_method in
8489         "file_magic "*)
8490           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8491           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8492           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8493             $EGREP "$file_magic_regex" > /dev/null; then
8494             :
8495           else
8496             cat <<_LT_EOF 1>&2
8497
8498 *** Warning: the command libtool uses to detect shared libraries,
8499 *** $file_magic_cmd, produces output that libtool cannot recognize.
8500 *** The result is that libtool may fail to recognize shared libraries
8501 *** as such.  This will affect the creation of libtool libraries that
8502 *** depend on shared libraries, but programs linked with such libtool
8503 *** libraries will work regardless of this problem.  Nevertheless, you
8504 *** may want to report the problem to your system manager and/or to
8505 *** bug-libtool@gnu.org
8506
8507 _LT_EOF
8508           fi ;;
8509         esac
8510       fi
8511       break
8512     fi
8513   done
8514   IFS="$lt_save_ifs"
8515   MAGIC_CMD="$lt_save_MAGIC_CMD"
8516   ;;
8517 esac
8518 fi
8519
8520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8521 if test -n "$MAGIC_CMD"; then
8522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8523 $as_echo "$MAGIC_CMD" >&6; }
8524 else
8525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8527 fi
8528
8529
8530
8531
8532
8533 if test -z "$lt_cv_path_MAGIC_CMD"; then
8534   if test -n "$ac_tool_prefix"; then
8535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8536 $as_echo_n "checking for file... " >&6; }
8537 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8538   $as_echo_n "(cached) " >&6
8539 else
8540   case $MAGIC_CMD in
8541 [\\/*] |  ?:[\\/]*)
8542   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8543   ;;
8544 *)
8545   lt_save_MAGIC_CMD="$MAGIC_CMD"
8546   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8547   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8548   for ac_dir in $ac_dummy; do
8549     IFS="$lt_save_ifs"
8550     test -z "$ac_dir" && ac_dir=.
8551     if test -f $ac_dir/file; then
8552       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8553       if test -n "$file_magic_test_file"; then
8554         case $deplibs_check_method in
8555         "file_magic "*)
8556           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8557           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8558           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8559             $EGREP "$file_magic_regex" > /dev/null; then
8560             :
8561           else
8562             cat <<_LT_EOF 1>&2
8563
8564 *** Warning: the command libtool uses to detect shared libraries,
8565 *** $file_magic_cmd, produces output that libtool cannot recognize.
8566 *** The result is that libtool may fail to recognize shared libraries
8567 *** as such.  This will affect the creation of libtool libraries that
8568 *** depend on shared libraries, but programs linked with such libtool
8569 *** libraries will work regardless of this problem.  Nevertheless, you
8570 *** may want to report the problem to your system manager and/or to
8571 *** bug-libtool@gnu.org
8572
8573 _LT_EOF
8574           fi ;;
8575         esac
8576       fi
8577       break
8578     fi
8579   done
8580   IFS="$lt_save_ifs"
8581   MAGIC_CMD="$lt_save_MAGIC_CMD"
8582   ;;
8583 esac
8584 fi
8585
8586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8587 if test -n "$MAGIC_CMD"; then
8588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8589 $as_echo "$MAGIC_CMD" >&6; }
8590 else
8591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8593 fi
8594
8595
8596   else
8597     MAGIC_CMD=:
8598   fi
8599 fi
8600
8601   fi
8602   ;;
8603 esac
8604
8605 # Use C for the default configuration in the libtool script
8606
8607 lt_save_CC="$CC"
8608 ac_ext=c
8609 ac_cpp='$CPP $CPPFLAGS'
8610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8613
8614
8615 # Source file extension for C test sources.
8616 ac_ext=c
8617
8618 # Object file extension for compiled C test sources.
8619 objext=o
8620 objext=$objext
8621
8622 # Code to be used in simple compile tests
8623 lt_simple_compile_test_code="int some_variable = 0;"
8624
8625 # Code to be used in simple link tests
8626 lt_simple_link_test_code='int main(){return(0);}'
8627
8628
8629
8630
8631
8632
8633
8634 # If no C compiler was specified, use CC.
8635 LTCC=${LTCC-"$CC"}
8636
8637 # If no C compiler flags were specified, use CFLAGS.
8638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8639
8640 # Allow CC to be a program name with arguments.
8641 compiler=$CC
8642
8643 # Save the default compiler, since it gets overwritten when the other
8644 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8645 compiler_DEFAULT=$CC
8646
8647 # save warnings/boilerplate of simple test code
8648 ac_outfile=conftest.$ac_objext
8649 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8651 _lt_compiler_boilerplate=`cat conftest.err`
8652 $RM conftest*
8653
8654 ac_outfile=conftest.$ac_objext
8655 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8657 _lt_linker_boilerplate=`cat conftest.err`
8658 $RM -r conftest*
8659
8660
8661 if test -n "$compiler"; then
8662
8663 lt_prog_compiler_no_builtin_flag=
8664
8665 if test "$GCC" = yes; then
8666   case $cc_basename in
8667   nvcc*)
8668     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8669   *)
8670     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8671   esac
8672
8673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8674 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8675 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8676   $as_echo_n "(cached) " >&6
8677 else
8678   lt_cv_prog_compiler_rtti_exceptions=no
8679    ac_outfile=conftest.$ac_objext
8680    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8681    lt_compiler_flag="-fno-rtti -fno-exceptions"
8682    # Insert the option either (1) after the last *FLAGS variable, or
8683    # (2) before a word containing "conftest.", or (3) at the end.
8684    # Note that $ac_compile itself does not contain backslashes and begins
8685    # with a dollar sign (not a hyphen), so the echo should work correctly.
8686    # The option is referenced via a variable to avoid confusing sed.
8687    lt_compile=`echo "$ac_compile" | $SED \
8688    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8689    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8690    -e 's:$: $lt_compiler_flag:'`
8691    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8692    (eval "$lt_compile" 2>conftest.err)
8693    ac_status=$?
8694    cat conftest.err >&5
8695    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696    if (exit $ac_status) && test -s "$ac_outfile"; then
8697      # The compiler can only warn and ignore the option if not recognized
8698      # So say no if there are warnings other than the usual output.
8699      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8700      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8701      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8702        lt_cv_prog_compiler_rtti_exceptions=yes
8703      fi
8704    fi
8705    $RM conftest*
8706
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8709 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8710
8711 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8712     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8713 else
8714     :
8715 fi
8716
8717 fi
8718
8719
8720
8721
8722
8723
8724   lt_prog_compiler_wl=
8725 lt_prog_compiler_pic=
8726 lt_prog_compiler_static=
8727
8728
8729   if test "$GCC" = yes; then
8730     lt_prog_compiler_wl='-Wl,'
8731     lt_prog_compiler_static='-static'
8732
8733     case $host_os in
8734       aix*)
8735       # All AIX code is PIC.
8736       if test "$host_cpu" = ia64; then
8737         # AIX 5 now supports IA64 processor
8738         lt_prog_compiler_static='-Bstatic'
8739       fi
8740       ;;
8741
8742     amigaos*)
8743       case $host_cpu in
8744       powerpc)
8745             # see comment about AmigaOS4 .so support
8746             lt_prog_compiler_pic='-fPIC'
8747         ;;
8748       m68k)
8749             # FIXME: we need at least 68020 code to build shared libraries, but
8750             # adding the `-m68020' flag to GCC prevents building anything better,
8751             # like `-m68040'.
8752             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8753         ;;
8754       esac
8755       ;;
8756
8757     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8758       # PIC is the default for these OSes.
8759       ;;
8760
8761     mingw* | cygwin* | pw32* | os2* | cegcc*)
8762       # This hack is so that the source file can tell whether it is being
8763       # built for inclusion in a dll (and should export symbols for example).
8764       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8765       # (--disable-auto-import) libraries
8766       lt_prog_compiler_pic='-DDLL_EXPORT'
8767       ;;
8768
8769     darwin* | rhapsody*)
8770       # PIC is the default on this platform
8771       # Common symbols not allowed in MH_DYLIB files
8772       lt_prog_compiler_pic='-fno-common'
8773       ;;
8774
8775     haiku*)
8776       # PIC is the default for Haiku.
8777       # The "-static" flag exists, but is broken.
8778       lt_prog_compiler_static=
8779       ;;
8780
8781     hpux*)
8782       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8783       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8784       # sets the default TLS model and affects inlining.
8785       case $host_cpu in
8786       hppa*64*)
8787         # +Z the default
8788         ;;
8789       *)
8790         lt_prog_compiler_pic='-fPIC'
8791         ;;
8792       esac
8793       ;;
8794
8795     interix[3-9]*)
8796       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8797       # Instead, we relocate shared libraries at runtime.
8798       ;;
8799
8800     msdosdjgpp*)
8801       # Just because we use GCC doesn't mean we suddenly get shared libraries
8802       # on systems that don't support them.
8803       lt_prog_compiler_can_build_shared=no
8804       enable_shared=no
8805       ;;
8806
8807     *nto* | *qnx*)
8808       # QNX uses GNU C++, but need to define -shared option too, otherwise
8809       # it will coredump.
8810       lt_prog_compiler_pic='-fPIC -shared'
8811       ;;
8812
8813     sysv4*MP*)
8814       if test -d /usr/nec; then
8815         lt_prog_compiler_pic=-Kconform_pic
8816       fi
8817       ;;
8818
8819     *)
8820       lt_prog_compiler_pic='-fPIC'
8821       ;;
8822     esac
8823
8824     case $cc_basename in
8825     nvcc*) # Cuda Compiler Driver 2.2
8826       lt_prog_compiler_wl='-Xlinker '
8827       if test -n "$lt_prog_compiler_pic"; then
8828         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8829       fi
8830       ;;
8831     esac
8832   else
8833     # PORTME Check for flag to pass linker flags through the system compiler.
8834     case $host_os in
8835     aix*)
8836       lt_prog_compiler_wl='-Wl,'
8837       if test "$host_cpu" = ia64; then
8838         # AIX 5 now supports IA64 processor
8839         lt_prog_compiler_static='-Bstatic'
8840       else
8841         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8842       fi
8843       ;;
8844
8845     mingw* | cygwin* | pw32* | os2* | cegcc*)
8846       # This hack is so that the source file can tell whether it is being
8847       # built for inclusion in a dll (and should export symbols for example).
8848       lt_prog_compiler_pic='-DDLL_EXPORT'
8849       ;;
8850
8851     hpux9* | hpux10* | hpux11*)
8852       lt_prog_compiler_wl='-Wl,'
8853       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8854       # not for PA HP-UX.
8855       case $host_cpu in
8856       hppa*64*|ia64*)
8857         # +Z the default
8858         ;;
8859       *)
8860         lt_prog_compiler_pic='+Z'
8861         ;;
8862       esac
8863       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8864       lt_prog_compiler_static='${wl}-a ${wl}archive'
8865       ;;
8866
8867     irix5* | irix6* | nonstopux*)
8868       lt_prog_compiler_wl='-Wl,'
8869       # PIC (with -KPIC) is the default.
8870       lt_prog_compiler_static='-non_shared'
8871       ;;
8872
8873     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8874       case $cc_basename in
8875       # old Intel for x86_64 which still supported -KPIC.
8876       ecc*)
8877         lt_prog_compiler_wl='-Wl,'
8878         lt_prog_compiler_pic='-KPIC'
8879         lt_prog_compiler_static='-static'
8880         ;;
8881       # icc used to be incompatible with GCC.
8882       # ICC 10 doesn't accept -KPIC any more.
8883       icc* | ifort*)
8884         lt_prog_compiler_wl='-Wl,'
8885         lt_prog_compiler_pic='-fPIC'
8886         lt_prog_compiler_static='-static'
8887         ;;
8888       # Lahey Fortran 8.1.
8889       lf95*)
8890         lt_prog_compiler_wl='-Wl,'
8891         lt_prog_compiler_pic='--shared'
8892         lt_prog_compiler_static='--static'
8893         ;;
8894       nagfor*)
8895         # NAG Fortran compiler
8896         lt_prog_compiler_wl='-Wl,-Wl,,'
8897         lt_prog_compiler_pic='-PIC'
8898         lt_prog_compiler_static='-Bstatic'
8899         ;;
8900       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8901         # Portland Group compilers (*not* the Pentium gcc compiler,
8902         # which looks to be a dead project)
8903         lt_prog_compiler_wl='-Wl,'
8904         lt_prog_compiler_pic='-fpic'
8905         lt_prog_compiler_static='-Bstatic'
8906         ;;
8907       ccc*)
8908         lt_prog_compiler_wl='-Wl,'
8909         # All Alpha code is PIC.
8910         lt_prog_compiler_static='-non_shared'
8911         ;;
8912       xl* | bgxl* | bgf* | mpixl*)
8913         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8914         lt_prog_compiler_wl='-Wl,'
8915         lt_prog_compiler_pic='-qpic'
8916         lt_prog_compiler_static='-qstaticlink'
8917         ;;
8918       *)
8919         case `$CC -V 2>&1 | sed 5q` in
8920         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8921           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8922           lt_prog_compiler_pic='-KPIC'
8923           lt_prog_compiler_static='-Bstatic'
8924           lt_prog_compiler_wl=''
8925           ;;
8926         *Sun\ F* | *Sun*Fortran*)
8927           lt_prog_compiler_pic='-KPIC'
8928           lt_prog_compiler_static='-Bstatic'
8929           lt_prog_compiler_wl='-Qoption ld '
8930           ;;
8931         *Sun\ C*)
8932           # Sun C 5.9
8933           lt_prog_compiler_pic='-KPIC'
8934           lt_prog_compiler_static='-Bstatic'
8935           lt_prog_compiler_wl='-Wl,'
8936           ;;
8937         *Intel*\ [CF]*Compiler*)
8938           lt_prog_compiler_wl='-Wl,'
8939           lt_prog_compiler_pic='-fPIC'
8940           lt_prog_compiler_static='-static'
8941           ;;
8942         *Portland\ Group*)
8943           lt_prog_compiler_wl='-Wl,'
8944           lt_prog_compiler_pic='-fpic'
8945           lt_prog_compiler_static='-Bstatic'
8946           ;;
8947         esac
8948         ;;
8949       esac
8950       ;;
8951
8952     newsos6)
8953       lt_prog_compiler_pic='-KPIC'
8954       lt_prog_compiler_static='-Bstatic'
8955       ;;
8956
8957     *nto* | *qnx*)
8958       # QNX uses GNU C++, but need to define -shared option too, otherwise
8959       # it will coredump.
8960       lt_prog_compiler_pic='-fPIC -shared'
8961       ;;
8962
8963     osf3* | osf4* | osf5*)
8964       lt_prog_compiler_wl='-Wl,'
8965       # All OSF/1 code is PIC.
8966       lt_prog_compiler_static='-non_shared'
8967       ;;
8968
8969     rdos*)
8970       lt_prog_compiler_static='-non_shared'
8971       ;;
8972
8973     solaris*)
8974       lt_prog_compiler_pic='-KPIC'
8975       lt_prog_compiler_static='-Bstatic'
8976       case $cc_basename in
8977       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8978         lt_prog_compiler_wl='-Qoption ld ';;
8979       *)
8980         lt_prog_compiler_wl='-Wl,';;
8981       esac
8982       ;;
8983
8984     sunos4*)
8985       lt_prog_compiler_wl='-Qoption ld '
8986       lt_prog_compiler_pic='-PIC'
8987       lt_prog_compiler_static='-Bstatic'
8988       ;;
8989
8990     sysv4 | sysv4.2uw2* | sysv4.3*)
8991       lt_prog_compiler_wl='-Wl,'
8992       lt_prog_compiler_pic='-KPIC'
8993       lt_prog_compiler_static='-Bstatic'
8994       ;;
8995
8996     sysv4*MP*)
8997       if test -d /usr/nec ;then
8998         lt_prog_compiler_pic='-Kconform_pic'
8999         lt_prog_compiler_static='-Bstatic'
9000       fi
9001       ;;
9002
9003     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9004       lt_prog_compiler_wl='-Wl,'
9005       lt_prog_compiler_pic='-KPIC'
9006       lt_prog_compiler_static='-Bstatic'
9007       ;;
9008
9009     unicos*)
9010       lt_prog_compiler_wl='-Wl,'
9011       lt_prog_compiler_can_build_shared=no
9012       ;;
9013
9014     uts4*)
9015       lt_prog_compiler_pic='-pic'
9016       lt_prog_compiler_static='-Bstatic'
9017       ;;
9018
9019     *)
9020       lt_prog_compiler_can_build_shared=no
9021       ;;
9022     esac
9023   fi
9024
9025 case $host_os in
9026   # For platforms which do not support PIC, -DPIC is meaningless:
9027   *djgpp*)
9028     lt_prog_compiler_pic=
9029     ;;
9030   *)
9031     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9032     ;;
9033 esac
9034
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9036 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9037 if ${lt_cv_prog_compiler_pic+:} false; then :
9038   $as_echo_n "(cached) " >&6
9039 else
9040   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9043 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9044 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9045
9046 #
9047 # Check to make sure the PIC flag actually works.
9048 #
9049 if test -n "$lt_prog_compiler_pic"; then
9050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9051 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9052 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9053   $as_echo_n "(cached) " >&6
9054 else
9055   lt_cv_prog_compiler_pic_works=no
9056    ac_outfile=conftest.$ac_objext
9057    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9058    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9059    # Insert the option either (1) after the last *FLAGS variable, or
9060    # (2) before a word containing "conftest.", or (3) at the end.
9061    # Note that $ac_compile itself does not contain backslashes and begins
9062    # with a dollar sign (not a hyphen), so the echo should work correctly.
9063    # The option is referenced via a variable to avoid confusing sed.
9064    lt_compile=`echo "$ac_compile" | $SED \
9065    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9067    -e 's:$: $lt_compiler_flag:'`
9068    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9069    (eval "$lt_compile" 2>conftest.err)
9070    ac_status=$?
9071    cat conftest.err >&5
9072    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073    if (exit $ac_status) && test -s "$ac_outfile"; then
9074      # The compiler can only warn and ignore the option if not recognized
9075      # So say no if there are warnings other than the usual output.
9076      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9077      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9078      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9079        lt_cv_prog_compiler_pic_works=yes
9080      fi
9081    fi
9082    $RM conftest*
9083
9084 fi
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9086 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9087
9088 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9089     case $lt_prog_compiler_pic in
9090      "" | " "*) ;;
9091      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9092      esac
9093 else
9094     lt_prog_compiler_pic=
9095      lt_prog_compiler_can_build_shared=no
9096 fi
9097
9098 fi
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110 #
9111 # Check to make sure the static flag actually works.
9112 #
9113 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9115 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9116 if ${lt_cv_prog_compiler_static_works+:} false; then :
9117   $as_echo_n "(cached) " >&6
9118 else
9119   lt_cv_prog_compiler_static_works=no
9120    save_LDFLAGS="$LDFLAGS"
9121    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9122    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9123    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9124      # The linker can only warn and ignore the option if not recognized
9125      # So say no if there are warnings
9126      if test -s conftest.err; then
9127        # Append any errors to the config.log.
9128        cat conftest.err 1>&5
9129        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9130        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9131        if diff conftest.exp conftest.er2 >/dev/null; then
9132          lt_cv_prog_compiler_static_works=yes
9133        fi
9134      else
9135        lt_cv_prog_compiler_static_works=yes
9136      fi
9137    fi
9138    $RM -r conftest*
9139    LDFLAGS="$save_LDFLAGS"
9140
9141 fi
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9143 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9144
9145 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9146     :
9147 else
9148     lt_prog_compiler_static=
9149 fi
9150
9151
9152
9153
9154
9155
9156
9157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9158 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9159 if ${lt_cv_prog_compiler_c_o+:} false; then :
9160   $as_echo_n "(cached) " >&6
9161 else
9162   lt_cv_prog_compiler_c_o=no
9163    $RM -r conftest 2>/dev/null
9164    mkdir conftest
9165    cd conftest
9166    mkdir out
9167    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9168
9169    lt_compiler_flag="-o out/conftest2.$ac_objext"
9170    # Insert the option either (1) after the last *FLAGS variable, or
9171    # (2) before a word containing "conftest.", or (3) at the end.
9172    # Note that $ac_compile itself does not contain backslashes and begins
9173    # with a dollar sign (not a hyphen), so the echo should work correctly.
9174    lt_compile=`echo "$ac_compile" | $SED \
9175    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9176    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9177    -e 's:$: $lt_compiler_flag:'`
9178    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9179    (eval "$lt_compile" 2>out/conftest.err)
9180    ac_status=$?
9181    cat out/conftest.err >&5
9182    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9184    then
9185      # The compiler can only warn and ignore the option if not recognized
9186      # So say no if there are warnings
9187      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9188      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9189      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9190        lt_cv_prog_compiler_c_o=yes
9191      fi
9192    fi
9193    chmod u+w . 2>&5
9194    $RM conftest*
9195    # SGI C++ compiler will create directory out/ii_files/ for
9196    # template instantiation
9197    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9198    $RM out/* && rmdir out
9199    cd ..
9200    $RM -r conftest
9201    $RM conftest*
9202
9203 fi
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9205 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9206
9207
9208
9209
9210
9211
9212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9213 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9214 if ${lt_cv_prog_compiler_c_o+:} false; then :
9215   $as_echo_n "(cached) " >&6
9216 else
9217   lt_cv_prog_compiler_c_o=no
9218    $RM -r conftest 2>/dev/null
9219    mkdir conftest
9220    cd conftest
9221    mkdir out
9222    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9223
9224    lt_compiler_flag="-o out/conftest2.$ac_objext"
9225    # Insert the option either (1) after the last *FLAGS variable, or
9226    # (2) before a word containing "conftest.", or (3) at the end.
9227    # Note that $ac_compile itself does not contain backslashes and begins
9228    # with a dollar sign (not a hyphen), so the echo should work correctly.
9229    lt_compile=`echo "$ac_compile" | $SED \
9230    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9231    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9232    -e 's:$: $lt_compiler_flag:'`
9233    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9234    (eval "$lt_compile" 2>out/conftest.err)
9235    ac_status=$?
9236    cat out/conftest.err >&5
9237    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9239    then
9240      # The compiler can only warn and ignore the option if not recognized
9241      # So say no if there are warnings
9242      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9243      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9244      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9245        lt_cv_prog_compiler_c_o=yes
9246      fi
9247    fi
9248    chmod u+w . 2>&5
9249    $RM conftest*
9250    # SGI C++ compiler will create directory out/ii_files/ for
9251    # template instantiation
9252    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9253    $RM out/* && rmdir out
9254    cd ..
9255    $RM -r conftest
9256    $RM conftest*
9257
9258 fi
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9260 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9261
9262
9263
9264
9265 hard_links="nottested"
9266 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9267   # do not overwrite the value of need_locks provided by the user
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9269 $as_echo_n "checking if we can lock with hard links... " >&6; }
9270   hard_links=yes
9271   $RM conftest*
9272   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273   touch conftest.a
9274   ln conftest.a conftest.b 2>&5 || hard_links=no
9275   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9277 $as_echo "$hard_links" >&6; }
9278   if test "$hard_links" = no; then
9279     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9280 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9281     need_locks=warn
9282   fi
9283 else
9284   need_locks=no
9285 fi
9286
9287
9288
9289
9290
9291
9292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9293 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9294
9295   runpath_var=
9296   allow_undefined_flag=
9297   always_export_symbols=no
9298   archive_cmds=
9299   archive_expsym_cmds=
9300   compiler_needs_object=no
9301   enable_shared_with_static_runtimes=no
9302   export_dynamic_flag_spec=
9303   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9304   hardcode_automatic=no
9305   hardcode_direct=no
9306   hardcode_direct_absolute=no
9307   hardcode_libdir_flag_spec=
9308   hardcode_libdir_separator=
9309   hardcode_minus_L=no
9310   hardcode_shlibpath_var=unsupported
9311   inherit_rpath=no
9312   link_all_deplibs=unknown
9313   module_cmds=
9314   module_expsym_cmds=
9315   old_archive_from_new_cmds=
9316   old_archive_from_expsyms_cmds=
9317   thread_safe_flag_spec=
9318   whole_archive_flag_spec=
9319   # include_expsyms should be a list of space-separated symbols to be *always*
9320   # included in the symbol list
9321   include_expsyms=
9322   # exclude_expsyms can be an extended regexp of symbols to exclude
9323   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9324   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9325   # as well as any symbol that contains `d'.
9326   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9327   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9328   # platforms (ab)use it in PIC code, but their linkers get confused if
9329   # the symbol is explicitly referenced.  Since portable code cannot
9330   # rely on this symbol name, it's probably fine to never include it in
9331   # preloaded symbol tables.
9332   # Exclude shared library initialization/finalization symbols.
9333   extract_expsyms_cmds=
9334
9335   case $host_os in
9336   cygwin* | mingw* | pw32* | cegcc*)
9337     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9338     # When not using gcc, we currently assume that we are using
9339     # Microsoft Visual C++.
9340     if test "$GCC" != yes; then
9341       with_gnu_ld=no
9342     fi
9343     ;;
9344   interix*)
9345     # we just hope/assume this is gcc and not c89 (= MSVC++)
9346     with_gnu_ld=yes
9347     ;;
9348   openbsd*)
9349     with_gnu_ld=no
9350     ;;
9351   esac
9352
9353   ld_shlibs=yes
9354
9355   # On some targets, GNU ld is compatible enough with the native linker
9356   # that we're better off using the native interface for both.
9357   lt_use_gnu_ld_interface=no
9358   if test "$with_gnu_ld" = yes; then
9359     case $host_os in
9360       aix*)
9361         # The AIX port of GNU ld has always aspired to compatibility
9362         # with the native linker.  However, as the warning in the GNU ld
9363         # block says, versions before 2.19.5* couldn't really create working
9364         # shared libraries, regardless of the interface used.
9365         case `$LD -v 2>&1` in
9366           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9367           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9368           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9369           *)
9370             lt_use_gnu_ld_interface=yes
9371             ;;
9372         esac
9373         ;;
9374       *)
9375         lt_use_gnu_ld_interface=yes
9376         ;;
9377     esac
9378   fi
9379
9380   if test "$lt_use_gnu_ld_interface" = yes; then
9381     # If archive_cmds runs LD, not CC, wlarc should be empty
9382     wlarc='${wl}'
9383
9384     # Set some defaults for GNU ld with shared library support. These
9385     # are reset later if shared libraries are not supported. Putting them
9386     # here allows them to be overridden if necessary.
9387     runpath_var=LD_RUN_PATH
9388     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389     export_dynamic_flag_spec='${wl}--export-dynamic'
9390     # ancient GNU ld didn't support --whole-archive et. al.
9391     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9392       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9393     else
9394       whole_archive_flag_spec=
9395     fi
9396     supports_anon_versioning=no
9397     case `$LD -v 2>&1` in
9398       *GNU\ gold*) supports_anon_versioning=yes ;;
9399       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9400       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9401       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9402       *\ 2.11.*) ;; # other 2.11 versions
9403       *) supports_anon_versioning=yes ;;
9404     esac
9405
9406     # See if GNU ld supports shared libraries.
9407     case $host_os in
9408     aix[3-9]*)
9409       # On AIX/PPC, the GNU linker is very broken
9410       if test "$host_cpu" != ia64; then
9411         ld_shlibs=no
9412         cat <<_LT_EOF 1>&2
9413
9414 *** Warning: the GNU linker, at least up to release 2.19, is reported
9415 *** to be unable to reliably create shared libraries on AIX.
9416 *** Therefore, libtool is disabling shared libraries support.  If you
9417 *** really care for shared libraries, you may want to install binutils
9418 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9419 *** You will then need to restart the configuration process.
9420
9421 _LT_EOF
9422       fi
9423       ;;
9424
9425     amigaos*)
9426       case $host_cpu in
9427       powerpc)
9428             # see comment about AmigaOS4 .so support
9429             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430             archive_expsym_cmds=''
9431         ;;
9432       m68k)
9433             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)'
9434             hardcode_libdir_flag_spec='-L$libdir'
9435             hardcode_minus_L=yes
9436         ;;
9437       esac
9438       ;;
9439
9440     beos*)
9441       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442         allow_undefined_flag=unsupported
9443         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9444         # support --undefined.  This deserves some investigation.  FIXME
9445         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446       else
9447         ld_shlibs=no
9448       fi
9449       ;;
9450
9451     cygwin* | mingw* | pw32* | cegcc*)
9452       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9453       # as there is no search path for DLLs.
9454       hardcode_libdir_flag_spec='-L$libdir'
9455       export_dynamic_flag_spec='${wl}--export-all-symbols'
9456       allow_undefined_flag=unsupported
9457       always_export_symbols=no
9458       enable_shared_with_static_runtimes=yes
9459       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'
9460       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9461
9462       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9463         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9464         # If the export-symbols file already is a .def file (1st line
9465         # is EXPORTS), use it as is; otherwise, prepend...
9466         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9467           cp $export_symbols $output_objdir/$soname.def;
9468         else
9469           echo EXPORTS > $output_objdir/$soname.def;
9470           cat $export_symbols >> $output_objdir/$soname.def;
9471         fi~
9472         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9473       else
9474         ld_shlibs=no
9475       fi
9476       ;;
9477
9478     haiku*)
9479       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480       link_all_deplibs=yes
9481       ;;
9482
9483     interix[3-9]*)
9484       hardcode_direct=no
9485       hardcode_shlibpath_var=no
9486       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9487       export_dynamic_flag_spec='${wl}-E'
9488       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9489       # Instead, shared libraries are loaded at an image base (0x10000000 by
9490       # default) and relocated if they conflict, which is a slow very memory
9491       # consuming and fragmenting process.  To avoid this, we pick a random,
9492       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9493       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9494       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9495       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'
9496       ;;
9497
9498     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9499       tmp_diet=no
9500       if test "$host_os" = linux-dietlibc; then
9501         case $cc_basename in
9502           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9503         esac
9504       fi
9505       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9506          && test "$tmp_diet" = no
9507       then
9508         tmp_addflag=' $pic_flag'
9509         tmp_sharedflag='-shared'
9510         case $cc_basename,$host_cpu in
9511         pgcc*)                          # Portland Group C compiler
9512           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'
9513           tmp_addflag=' $pic_flag'
9514           ;;
9515         pgf77* | pgf90* | pgf95* | pgfortran*)
9516                                         # Portland Group f77 and f90 compilers
9517           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'
9518           tmp_addflag=' $pic_flag -Mnomain' ;;
9519         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9520           tmp_addflag=' -i_dynamic' ;;
9521         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9522           tmp_addflag=' -i_dynamic -nofor_main' ;;
9523         ifc* | ifort*)                  # Intel Fortran compiler
9524           tmp_addflag=' -nofor_main' ;;
9525         lf95*)                          # Lahey Fortran 8.1
9526           whole_archive_flag_spec=
9527           tmp_sharedflag='--shared' ;;
9528         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9529           tmp_sharedflag='-qmkshrobj'
9530           tmp_addflag= ;;
9531         nvcc*)  # Cuda Compiler Driver 2.2
9532           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'
9533           compiler_needs_object=yes
9534           ;;
9535         esac
9536         case `$CC -V 2>&1 | sed 5q` in
9537         *Sun\ C*)                       # Sun C 5.9
9538           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'
9539           compiler_needs_object=yes
9540           tmp_sharedflag='-G' ;;
9541         *Sun\ F*)                       # Sun Fortran 8.3
9542           tmp_sharedflag='-G' ;;
9543         esac
9544         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9545
9546         if test "x$supports_anon_versioning" = xyes; then
9547           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9548             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549             echo "local: *; };" >> $output_objdir/$libname.ver~
9550             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9551         fi
9552
9553         case $cc_basename in
9554         xlf* | bgf* | bgxlf* | mpixlf*)
9555           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9556           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9557           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9559           if test "x$supports_anon_versioning" = xyes; then
9560             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9561               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9562               echo "local: *; };" >> $output_objdir/$libname.ver~
9563               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9564           fi
9565           ;;
9566         esac
9567       else
9568         ld_shlibs=no
9569       fi
9570       ;;
9571
9572     netbsd*)
9573       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9574         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9575         wlarc=
9576       else
9577         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9579       fi
9580       ;;
9581
9582     solaris*)
9583       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9584         ld_shlibs=no
9585         cat <<_LT_EOF 1>&2
9586
9587 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9588 *** create shared libraries on Solaris systems.  Therefore, libtool
9589 *** is disabling shared libraries support.  We urge you to upgrade GNU
9590 *** binutils to release 2.9.1 or newer.  Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9593
9594 _LT_EOF
9595       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9596         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9598       else
9599         ld_shlibs=no
9600       fi
9601       ;;
9602
9603     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9604       case `$LD -v 2>&1` in
9605         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9606         ld_shlibs=no
9607         cat <<_LT_EOF 1>&2
9608
9609 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9610 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9611 *** is disabling shared libraries support.  We urge you to upgrade GNU
9612 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9613 *** your PATH or compiler configuration so that the native linker is
9614 *** used, and then restart.
9615
9616 _LT_EOF
9617         ;;
9618         *)
9619           # For security reasons, it is highly recommended that you always
9620           # use absolute paths for naming shared libraries, and exclude the
9621           # DT_RUNPATH tag from executables and libraries.  But doing so
9622           # requires that you compile everything twice, which is a pain.
9623           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9624             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9627           else
9628             ld_shlibs=no
9629           fi
9630         ;;
9631       esac
9632       ;;
9633
9634     sunos4*)
9635       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636       wlarc=
9637       hardcode_direct=yes
9638       hardcode_shlibpath_var=no
9639       ;;
9640
9641     *)
9642       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9645       else
9646         ld_shlibs=no
9647       fi
9648       ;;
9649     esac
9650
9651     if test "$ld_shlibs" = no; then
9652       runpath_var=
9653       hardcode_libdir_flag_spec=
9654       export_dynamic_flag_spec=
9655       whole_archive_flag_spec=
9656     fi
9657   else
9658     # PORTME fill in a description of your system's linker (not GNU ld)
9659     case $host_os in
9660     aix3*)
9661       allow_undefined_flag=unsupported
9662       always_export_symbols=yes
9663       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'
9664       # Note: this linker hardcodes the directories in LIBPATH if there
9665       # are no directories specified by -L.
9666       hardcode_minus_L=yes
9667       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9668         # Neither direct hardcoding nor static linking is supported with a
9669         # broken collect2.
9670         hardcode_direct=unsupported
9671       fi
9672       ;;
9673
9674     aix[4-9]*)
9675       if test "$host_cpu" = ia64; then
9676         # On IA64, the linker does run time linking by default, so we don't
9677         # have to do anything special.
9678         aix_use_runtimelinking=no
9679         exp_sym_flag='-Bexport'
9680         no_entry_flag=""
9681       else
9682         # If we're using GNU nm, then we don't want the "-C" option.
9683         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9684         # Also, AIX nm treats weak defined symbols like other global
9685         # defined symbols, whereas GNU nm marks them as "W".
9686         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9687           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9688         else
9689           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9690         fi
9691         aix_use_runtimelinking=no
9692
9693         # Test if we are trying to use run time linking or normal
9694         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9695         # need to do runtime linking.
9696         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9697           for ld_flag in $LDFLAGS; do
9698           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9699             aix_use_runtimelinking=yes
9700             break
9701           fi
9702           done
9703           ;;
9704         esac
9705
9706         exp_sym_flag='-bexport'
9707         no_entry_flag='-bnoentry'
9708       fi
9709
9710       # When large executables or shared objects are built, AIX ld can
9711       # have problems creating the table of contents.  If linking a library
9712       # or program results in "error TOC overflow" add -mminimal-toc to
9713       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9714       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9715
9716       archive_cmds=''
9717       hardcode_direct=yes
9718       hardcode_direct_absolute=yes
9719       hardcode_libdir_separator=':'
9720       link_all_deplibs=yes
9721       file_list_spec='${wl}-f,'
9722
9723       if test "$GCC" = yes; then
9724         case $host_os in aix4.[012]|aix4.[012].*)
9725         # We only want to do this on AIX 4.2 and lower, the check
9726         # below for broken collect2 doesn't work under 4.3+
9727           collect2name=`${CC} -print-prog-name=collect2`
9728           if test -f "$collect2name" &&
9729            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9730           then
9731           # We have reworked collect2
9732           :
9733           else
9734           # We have old collect2
9735           hardcode_direct=unsupported
9736           # It fails to find uninstalled libraries when the uninstalled
9737           # path is not listed in the libpath.  Setting hardcode_minus_L
9738           # to unsupported forces relinking
9739           hardcode_minus_L=yes
9740           hardcode_libdir_flag_spec='-L$libdir'
9741           hardcode_libdir_separator=
9742           fi
9743           ;;
9744         esac
9745         shared_flag='-shared'
9746         if test "$aix_use_runtimelinking" = yes; then
9747           shared_flag="$shared_flag "'${wl}-G'
9748         fi
9749       else
9750         # not using gcc
9751         if test "$host_cpu" = ia64; then
9752         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9753         # chokes on -Wl,-G. The following line is correct:
9754           shared_flag='-G'
9755         else
9756           if test "$aix_use_runtimelinking" = yes; then
9757             shared_flag='${wl}-G'
9758           else
9759             shared_flag='${wl}-bM:SRE'
9760           fi
9761         fi
9762       fi
9763
9764       export_dynamic_flag_spec='${wl}-bexpall'
9765       # It seems that -bexpall does not export symbols beginning with
9766       # underscore (_), so it is better to generate a list of symbols to export.
9767       always_export_symbols=yes
9768       if test "$aix_use_runtimelinking" = yes; then
9769         # Warning - without using the other runtime loading flags (-brtl),
9770         # -berok will link without error, but may produce a broken library.
9771         allow_undefined_flag='-berok'
9772         # Determine the default libpath from the value encoded in an
9773         # empty executable.
9774         if test "${lt_cv_aix_libpath+set}" = set; then
9775   aix_libpath=$lt_cv_aix_libpath
9776 else
9777   if ${lt_cv_aix_libpath_+:} false; then :
9778   $as_echo_n "(cached) " >&6
9779 else
9780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h.  */
9782
9783 int
9784 main ()
9785 {
9786
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"; then :
9792
9793   lt_aix_libpath_sed='
9794       /Import File Strings/,/^$/ {
9795           /^0/ {
9796               s/^0  *\([^ ]*\) *$/\1/
9797               p
9798           }
9799       }'
9800   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9801   # Check for a 64-bit object if we didn't find anything.
9802   if test -z "$lt_cv_aix_libpath_"; then
9803     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9804   fi
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext \
9807     conftest$ac_exeext conftest.$ac_ext
9808   if test -z "$lt_cv_aix_libpath_"; then
9809     lt_cv_aix_libpath_="/usr/lib:/lib"
9810   fi
9811
9812 fi
9813
9814   aix_libpath=$lt_cv_aix_libpath_
9815 fi
9816
9817         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9818         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9819       else
9820         if test "$host_cpu" = ia64; then
9821           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9822           allow_undefined_flag="-z nodefs"
9823           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"
9824         else
9825          # Determine the default libpath from the value encoded in an
9826          # empty executable.
9827          if test "${lt_cv_aix_libpath+set}" = set; then
9828   aix_libpath=$lt_cv_aix_libpath
9829 else
9830   if ${lt_cv_aix_libpath_+:} false; then :
9831   $as_echo_n "(cached) " >&6
9832 else
9833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h.  */
9835
9836 int
9837 main ()
9838 {
9839
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 if ac_fn_c_try_link "$LINENO"; then :
9845
9846   lt_aix_libpath_sed='
9847       /Import File Strings/,/^$/ {
9848           /^0/ {
9849               s/^0  *\([^ ]*\) *$/\1/
9850               p
9851           }
9852       }'
9853   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9854   # Check for a 64-bit object if we didn't find anything.
9855   if test -z "$lt_cv_aix_libpath_"; then
9856     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9857   fi
9858 fi
9859 rm -f core conftest.err conftest.$ac_objext \
9860     conftest$ac_exeext conftest.$ac_ext
9861   if test -z "$lt_cv_aix_libpath_"; then
9862     lt_cv_aix_libpath_="/usr/lib:/lib"
9863   fi
9864
9865 fi
9866
9867   aix_libpath=$lt_cv_aix_libpath_
9868 fi
9869
9870          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9871           # Warning - without using the other run time loading flags,
9872           # -berok will link without error, but may produce a broken library.
9873           no_undefined_flag=' ${wl}-bernotok'
9874           allow_undefined_flag=' ${wl}-berok'
9875           if test "$with_gnu_ld" = yes; then
9876             # We only use this code for GNU lds that support --whole-archive.
9877             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9878           else
9879             # Exported symbols can be pulled into shared objects from archives
9880             whole_archive_flag_spec='$convenience'
9881           fi
9882           archive_cmds_need_lc=yes
9883           # This is similar to how AIX traditionally builds its shared libraries.
9884           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9885         fi
9886       fi
9887       ;;
9888
9889     amigaos*)
9890       case $host_cpu in
9891       powerpc)
9892             # see comment about AmigaOS4 .so support
9893             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9894             archive_expsym_cmds=''
9895         ;;
9896       m68k)
9897             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)'
9898             hardcode_libdir_flag_spec='-L$libdir'
9899             hardcode_minus_L=yes
9900         ;;
9901       esac
9902       ;;
9903
9904     bsdi[45]*)
9905       export_dynamic_flag_spec=-rdynamic
9906       ;;
9907
9908     cygwin* | mingw* | pw32* | cegcc*)
9909       # When not using gcc, we currently assume that we are using
9910       # Microsoft Visual C++.
9911       # hardcode_libdir_flag_spec is actually meaningless, as there is
9912       # no search path for DLLs.
9913       case $cc_basename in
9914       cl*)
9915         # Native MSVC
9916         hardcode_libdir_flag_spec=' '
9917         allow_undefined_flag=unsupported
9918         always_export_symbols=yes
9919         file_list_spec='@'
9920         # Tell ltmain to make .lib files, not .a files.
9921         libext=lib
9922         # Tell ltmain to make .dll files, not .so files.
9923         shrext_cmds=".dll"
9924         # FIXME: Setting linknames here is a bad hack.
9925         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9926         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9927             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9928           else
9929             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9930           fi~
9931           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9932           linknames='
9933         # The linker will not automatically build a static lib if we build a DLL.
9934         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9935         enable_shared_with_static_runtimes=yes
9936         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9937         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9938         # Don't use ranlib
9939         old_postinstall_cmds='chmod 644 $oldlib'
9940         postlink_cmds='lt_outputfile="@OUTPUT@"~
9941           lt_tool_outputfile="@TOOL_OUTPUT@"~
9942           case $lt_outputfile in
9943             *.exe|*.EXE) ;;
9944             *)
9945               lt_outputfile="$lt_outputfile.exe"
9946               lt_tool_outputfile="$lt_tool_outputfile.exe"
9947               ;;
9948           esac~
9949           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9950             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9951             $RM "$lt_outputfile.manifest";
9952           fi'
9953         ;;
9954       *)
9955         # Assume MSVC wrapper
9956         hardcode_libdir_flag_spec=' '
9957         allow_undefined_flag=unsupported
9958         # Tell ltmain to make .lib files, not .a files.
9959         libext=lib
9960         # Tell ltmain to make .dll files, not .so files.
9961         shrext_cmds=".dll"
9962         # FIXME: Setting linknames here is a bad hack.
9963         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9964         # The linker will automatically build a .lib file if we build a DLL.
9965         old_archive_from_new_cmds='true'
9966         # FIXME: Should let the user specify the lib program.
9967         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9968         enable_shared_with_static_runtimes=yes
9969         ;;
9970       esac
9971       ;;
9972
9973     darwin* | rhapsody*)
9974
9975
9976   archive_cmds_need_lc=no
9977   hardcode_direct=no
9978   hardcode_automatic=yes
9979   hardcode_shlibpath_var=unsupported
9980   if test "$lt_cv_ld_force_load" = "yes"; then
9981     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\"`'
9982
9983   else
9984     whole_archive_flag_spec=''
9985   fi
9986   link_all_deplibs=yes
9987   allow_undefined_flag="$_lt_dar_allow_undefined"
9988   case $cc_basename in
9989      ifort*) _lt_dar_can_shared=yes ;;
9990      *) _lt_dar_can_shared=$GCC ;;
9991   esac
9992   if test "$_lt_dar_can_shared" = "yes"; then
9993     output_verbose_link_cmd=func_echo_all
9994     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9995     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9996     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}"
9997     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}"
9998
9999   else
10000   ld_shlibs=no
10001   fi
10002
10003       ;;
10004
10005     dgux*)
10006       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007       hardcode_libdir_flag_spec='-L$libdir'
10008       hardcode_shlibpath_var=no
10009       ;;
10010
10011     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10012     # support.  Future versions do this automatically, but an explicit c++rt0.o
10013     # does not break anything, and helps significantly (at the cost of a little
10014     # extra space).
10015     freebsd2.2*)
10016       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10017       hardcode_libdir_flag_spec='-R$libdir'
10018       hardcode_direct=yes
10019       hardcode_shlibpath_var=no
10020       ;;
10021
10022     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10023     freebsd2.*)
10024       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10025       hardcode_direct=yes
10026       hardcode_minus_L=yes
10027       hardcode_shlibpath_var=no
10028       ;;
10029
10030     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10031     freebsd* | dragonfly*)
10032       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10033       hardcode_libdir_flag_spec='-R$libdir'
10034       hardcode_direct=yes
10035       hardcode_shlibpath_var=no
10036       ;;
10037
10038     hpux9*)
10039       if test "$GCC" = yes; then
10040         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10041       else
10042         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10043       fi
10044       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10045       hardcode_libdir_separator=:
10046       hardcode_direct=yes
10047
10048       # hardcode_minus_L: Not really in the search PATH,
10049       # but as the default location of the library.
10050       hardcode_minus_L=yes
10051       export_dynamic_flag_spec='${wl}-E'
10052       ;;
10053
10054     hpux10*)
10055       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10056         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10057       else
10058         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10059       fi
10060       if test "$with_gnu_ld" = no; then
10061         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10062         hardcode_libdir_separator=:
10063         hardcode_direct=yes
10064         hardcode_direct_absolute=yes
10065         export_dynamic_flag_spec='${wl}-E'
10066         # hardcode_minus_L: Not really in the search PATH,
10067         # but as the default location of the library.
10068         hardcode_minus_L=yes
10069       fi
10070       ;;
10071
10072     hpux11*)
10073       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10074         case $host_cpu in
10075         hppa*64*)
10076           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10077           ;;
10078         ia64*)
10079           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10080           ;;
10081         *)
10082           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10083           ;;
10084         esac
10085       else
10086         case $host_cpu in
10087         hppa*64*)
10088           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10089           ;;
10090         ia64*)
10091           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10092           ;;
10093         *)
10094
10095           # Older versions of the 11.00 compiler do not understand -b yet
10096           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10097           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10098 $as_echo_n "checking if $CC understands -b... " >&6; }
10099 if ${lt_cv_prog_compiler__b+:} false; then :
10100   $as_echo_n "(cached) " >&6
10101 else
10102   lt_cv_prog_compiler__b=no
10103    save_LDFLAGS="$LDFLAGS"
10104    LDFLAGS="$LDFLAGS -b"
10105    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10106    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10107      # The linker can only warn and ignore the option if not recognized
10108      # So say no if there are warnings
10109      if test -s conftest.err; then
10110        # Append any errors to the config.log.
10111        cat conftest.err 1>&5
10112        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10113        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10114        if diff conftest.exp conftest.er2 >/dev/null; then
10115          lt_cv_prog_compiler__b=yes
10116        fi
10117      else
10118        lt_cv_prog_compiler__b=yes
10119      fi
10120    fi
10121    $RM -r conftest*
10122    LDFLAGS="$save_LDFLAGS"
10123
10124 fi
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10126 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10127
10128 if test x"$lt_cv_prog_compiler__b" = xyes; then
10129     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10130 else
10131     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10132 fi
10133
10134           ;;
10135         esac
10136       fi
10137       if test "$with_gnu_ld" = no; then
10138         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10139         hardcode_libdir_separator=:
10140
10141         case $host_cpu in
10142         hppa*64*|ia64*)
10143           hardcode_direct=no
10144           hardcode_shlibpath_var=no
10145           ;;
10146         *)
10147           hardcode_direct=yes
10148           hardcode_direct_absolute=yes
10149           export_dynamic_flag_spec='${wl}-E'
10150
10151           # hardcode_minus_L: Not really in the search PATH,
10152           # but as the default location of the library.
10153           hardcode_minus_L=yes
10154           ;;
10155         esac
10156       fi
10157       ;;
10158
10159     irix5* | irix6* | nonstopux*)
10160       if test "$GCC" = yes; then
10161         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'
10162         # Try to use the -exported_symbol ld option, if it does not
10163         # work, assume that -exports_file does not work either and
10164         # implicitly export all symbols.
10165         # This should be the same for all languages, so no per-tag cache variable.
10166         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10167 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10168 if ${lt_cv_irix_exported_symbol+:} false; then :
10169   $as_echo_n "(cached) " >&6
10170 else
10171   save_LDFLAGS="$LDFLAGS"
10172            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10173            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h.  */
10175 int foo (void) { return 0; }
10176 _ACEOF
10177 if ac_fn_c_try_link "$LINENO"; then :
10178   lt_cv_irix_exported_symbol=yes
10179 else
10180   lt_cv_irix_exported_symbol=no
10181 fi
10182 rm -f core conftest.err conftest.$ac_objext \
10183     conftest$ac_exeext conftest.$ac_ext
10184            LDFLAGS="$save_LDFLAGS"
10185 fi
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10187 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10188         if test "$lt_cv_irix_exported_symbol" = yes; then
10189           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'
10190         fi
10191       else
10192         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'
10193         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'
10194       fi
10195       archive_cmds_need_lc='no'
10196       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197       hardcode_libdir_separator=:
10198       inherit_rpath=yes
10199       link_all_deplibs=yes
10200       ;;
10201
10202     netbsd*)
10203       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10204         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10205       else
10206         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10207       fi
10208       hardcode_libdir_flag_spec='-R$libdir'
10209       hardcode_direct=yes
10210       hardcode_shlibpath_var=no
10211       ;;
10212
10213     newsos6)
10214       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215       hardcode_direct=yes
10216       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10217       hardcode_libdir_separator=:
10218       hardcode_shlibpath_var=no
10219       ;;
10220
10221     *nto* | *qnx*)
10222       ;;
10223
10224     openbsd*)
10225       if test -f /usr/libexec/ld.so; then
10226         hardcode_direct=yes
10227         hardcode_shlibpath_var=no
10228         hardcode_direct_absolute=yes
10229         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10231           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10232           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10233           export_dynamic_flag_spec='${wl}-E'
10234         else
10235           case $host_os in
10236            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10237              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238              hardcode_libdir_flag_spec='-R$libdir'
10239              ;;
10240            *)
10241              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10243              ;;
10244           esac
10245         fi
10246       else
10247         ld_shlibs=no
10248       fi
10249       ;;
10250
10251     os2*)
10252       hardcode_libdir_flag_spec='-L$libdir'
10253       hardcode_minus_L=yes
10254       allow_undefined_flag=unsupported
10255       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10256       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10257       ;;
10258
10259     osf3*)
10260       if test "$GCC" = yes; then
10261         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10262         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'
10263       else
10264         allow_undefined_flag=' -expect_unresolved \*'
10265         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'
10266       fi
10267       archive_cmds_need_lc='no'
10268       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269       hardcode_libdir_separator=:
10270       ;;
10271
10272     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10273       if test "$GCC" = yes; then
10274         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10275         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'
10276         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10277       else
10278         allow_undefined_flag=' -expect_unresolved \*'
10279         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'
10280         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~
10281         $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'
10282
10283         # Both c and cxx compiler support -rpath directly
10284         hardcode_libdir_flag_spec='-rpath $libdir'
10285       fi
10286       archive_cmds_need_lc='no'
10287       hardcode_libdir_separator=:
10288       ;;
10289
10290     solaris*)
10291       no_undefined_flag=' -z defs'
10292       if test "$GCC" = yes; then
10293         wlarc='${wl}'
10294         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10295         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296           $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'
10297       else
10298         case `$CC -V 2>&1` in
10299         *"Compilers 5.0"*)
10300           wlarc=''
10301           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10303           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10304           ;;
10305         *)
10306           wlarc='${wl}'
10307           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10308           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10309           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10310           ;;
10311         esac
10312       fi
10313       hardcode_libdir_flag_spec='-R$libdir'
10314       hardcode_shlibpath_var=no
10315       case $host_os in
10316       solaris2.[0-5] | solaris2.[0-5].*) ;;
10317       *)
10318         # The compiler driver will combine and reorder linker options,
10319         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10320         # but is careful enough not to reorder.
10321         # Supported since Solaris 2.6 (maybe 2.5.1?)
10322         if test "$GCC" = yes; then
10323           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10324         else
10325           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10326         fi
10327         ;;
10328       esac
10329       link_all_deplibs=yes
10330       ;;
10331
10332     sunos4*)
10333       if test "x$host_vendor" = xsequent; then
10334         # Use $CC to link under sequent, because it throws in some extra .o
10335         # files that make .init and .fini sections work.
10336         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10337       else
10338         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10339       fi
10340       hardcode_libdir_flag_spec='-L$libdir'
10341       hardcode_direct=yes
10342       hardcode_minus_L=yes
10343       hardcode_shlibpath_var=no
10344       ;;
10345
10346     sysv4)
10347       case $host_vendor in
10348         sni)
10349           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350           hardcode_direct=yes # is this really true???
10351         ;;
10352         siemens)
10353           ## LD is ld it makes a PLAMLIB
10354           ## CC just makes a GrossModule.
10355           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10356           reload_cmds='$CC -r -o $output$reload_objs'
10357           hardcode_direct=no
10358         ;;
10359         motorola)
10360           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10362         ;;
10363       esac
10364       runpath_var='LD_RUN_PATH'
10365       hardcode_shlibpath_var=no
10366       ;;
10367
10368     sysv4.3*)
10369       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370       hardcode_shlibpath_var=no
10371       export_dynamic_flag_spec='-Bexport'
10372       ;;
10373
10374     sysv4*MP*)
10375       if test -d /usr/nec; then
10376         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10377         hardcode_shlibpath_var=no
10378         runpath_var=LD_RUN_PATH
10379         hardcode_runpath_var=yes
10380         ld_shlibs=yes
10381       fi
10382       ;;
10383
10384     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10385       no_undefined_flag='${wl}-z,text'
10386       archive_cmds_need_lc=no
10387       hardcode_shlibpath_var=no
10388       runpath_var='LD_RUN_PATH'
10389
10390       if test "$GCC" = yes; then
10391         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393       else
10394         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396       fi
10397       ;;
10398
10399     sysv5* | sco3.2v5* | sco5v6*)
10400       # Note: We can NOT use -z defs as we might desire, because we do not
10401       # link with -lc, and that would cause any symbols used from libc to
10402       # always be unresolved, which means just about no library would
10403       # ever link correctly.  If we're not using GNU ld we use -z text
10404       # though, which does catch some bad symbols but isn't as heavy-handed
10405       # as -z defs.
10406       no_undefined_flag='${wl}-z,text'
10407       allow_undefined_flag='${wl}-z,nodefs'
10408       archive_cmds_need_lc=no
10409       hardcode_shlibpath_var=no
10410       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10411       hardcode_libdir_separator=':'
10412       link_all_deplibs=yes
10413       export_dynamic_flag_spec='${wl}-Bexport'
10414       runpath_var='LD_RUN_PATH'
10415
10416       if test "$GCC" = yes; then
10417         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419       else
10420         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422       fi
10423       ;;
10424
10425     uts4*)
10426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427       hardcode_libdir_flag_spec='-L$libdir'
10428       hardcode_shlibpath_var=no
10429       ;;
10430
10431     *)
10432       ld_shlibs=no
10433       ;;
10434     esac
10435
10436     if test x$host_vendor = xsni; then
10437       case $host in
10438       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10439         export_dynamic_flag_spec='${wl}-Blargedynsym'
10440         ;;
10441       esac
10442     fi
10443   fi
10444
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10446 $as_echo "$ld_shlibs" >&6; }
10447 test "$ld_shlibs" = no && can_build_shared=no
10448
10449 with_gnu_ld=$with_gnu_ld
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465 #
10466 # Do we need to explicitly link libc?
10467 #
10468 case "x$archive_cmds_need_lc" in
10469 x|xyes)
10470   # Assume -lc should be added
10471   archive_cmds_need_lc=yes
10472
10473   if test "$enable_shared" = yes && test "$GCC" = yes; then
10474     case $archive_cmds in
10475     *'~'*)
10476       # FIXME: we may have to deal with multi-command sequences.
10477       ;;
10478     '$CC '*)
10479       # Test whether the compiler implicitly links with -lc since on some
10480       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10481       # to ld, don't add -lc before -lgcc.
10482       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10483 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10484 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10485   $as_echo_n "(cached) " >&6
10486 else
10487   $RM conftest*
10488         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10489
10490         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10491   (eval $ac_compile) 2>&5
10492   ac_status=$?
10493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494   test $ac_status = 0; } 2>conftest.err; then
10495           soname=conftest
10496           lib=conftest
10497           libobjs=conftest.$ac_objext
10498           deplibs=
10499           wl=$lt_prog_compiler_wl
10500           pic_flag=$lt_prog_compiler_pic
10501           compiler_flags=-v
10502           linker_flags=-v
10503           verstring=
10504           output_objdir=.
10505           libname=conftest
10506           lt_save_allow_undefined_flag=$allow_undefined_flag
10507           allow_undefined_flag=
10508           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10509   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10510   ac_status=$?
10511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10512   test $ac_status = 0; }
10513           then
10514             lt_cv_archive_cmds_need_lc=no
10515           else
10516             lt_cv_archive_cmds_need_lc=yes
10517           fi
10518           allow_undefined_flag=$lt_save_allow_undefined_flag
10519         else
10520           cat conftest.err 1>&5
10521         fi
10522         $RM conftest*
10523
10524 fi
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10526 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10527       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10528       ;;
10529     esac
10530   fi
10531   ;;
10532 esac
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10686 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10687
10688 if test "$GCC" = yes; then
10689   case $host_os in
10690     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10691     *) lt_awk_arg="/^libraries:/" ;;
10692   esac
10693   case $host_os in
10694     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10695     *) lt_sed_strip_eq="s,=/,/,g" ;;
10696   esac
10697   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10698   case $lt_search_path_spec in
10699   *\;*)
10700     # if the path contains ";" then we assume it to be the separator
10701     # otherwise default to the standard path separator (i.e. ":") - it is
10702     # assumed that no part of a normal pathname contains ";" but that should
10703     # okay in the real world where ";" in dirpaths is itself problematic.
10704     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10705     ;;
10706   *)
10707     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10708     ;;
10709   esac
10710   # Ok, now we have the path, separated by spaces, we can step through it
10711   # and add multilib dir if necessary.
10712   lt_tmp_lt_search_path_spec=
10713   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10714   for lt_sys_path in $lt_search_path_spec; do
10715     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10716       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10717     else
10718       test -d "$lt_sys_path" && \
10719         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10720     fi
10721   done
10722   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10723 BEGIN {RS=" "; FS="/|\n";} {
10724   lt_foo="";
10725   lt_count=0;
10726   for (lt_i = NF; lt_i > 0; lt_i--) {
10727     if ($lt_i != "" && $lt_i != ".") {
10728       if ($lt_i == "..") {
10729         lt_count++;
10730       } else {
10731         if (lt_count == 0) {
10732           lt_foo="/" $lt_i lt_foo;
10733         } else {
10734           lt_count--;
10735         }
10736       }
10737     }
10738   }
10739   if (lt_foo != "") { lt_freq[lt_foo]++; }
10740   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10741 }'`
10742   # AWK program above erroneously prepends '/' to C:/dos/paths
10743   # for these hosts.
10744   case $host_os in
10745     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10746       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10747   esac
10748   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10749 else
10750   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10751 fi
10752 library_names_spec=
10753 libname_spec='lib$name'
10754 soname_spec=
10755 shrext_cmds=".so"
10756 postinstall_cmds=
10757 postuninstall_cmds=
10758 finish_cmds=
10759 finish_eval=
10760 shlibpath_var=
10761 shlibpath_overrides_runpath=unknown
10762 version_type=none
10763 dynamic_linker="$host_os ld.so"
10764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10765 need_lib_prefix=unknown
10766 hardcode_into_libs=no
10767
10768 # when you set need_version to no, make sure it does not cause -set_version
10769 # flags to be left without arguments
10770 need_version=unknown
10771
10772 case $host_os in
10773 aix3*)
10774   version_type=linux # correct to gnu/linux during the next big refactor
10775   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10776   shlibpath_var=LIBPATH
10777
10778   # AIX 3 has no versioning support, so we append a major version to the name.
10779   soname_spec='${libname}${release}${shared_ext}$major'
10780   ;;
10781
10782 aix[4-9]*)
10783   version_type=linux # correct to gnu/linux during the next big refactor
10784   need_lib_prefix=no
10785   need_version=no
10786   hardcode_into_libs=yes
10787   if test "$host_cpu" = ia64; then
10788     # AIX 5 supports IA64
10789     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10790     shlibpath_var=LD_LIBRARY_PATH
10791   else
10792     # With GCC up to 2.95.x, collect2 would create an import file
10793     # for dependence libraries.  The import file would start with
10794     # the line `#! .'.  This would cause the generated library to
10795     # depend on `.', always an invalid library.  This was fixed in
10796     # development snapshots of GCC prior to 3.0.
10797     case $host_os in
10798       aix4 | aix4.[01] | aix4.[01].*)
10799       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10800            echo ' yes '
10801            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10802         :
10803       else
10804         can_build_shared=no
10805       fi
10806       ;;
10807     esac
10808     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10809     # soname into executable. Probably we can add versioning support to
10810     # collect2, so additional links can be useful in future.
10811     if test "$aix_use_runtimelinking" = yes; then
10812       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10813       # instead of lib<name>.a to let people know that these are not
10814       # typical AIX shared libraries.
10815       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816     else
10817       # We preserve .a as extension for shared libraries through AIX4.2
10818       # and later when we are not doing run time linking.
10819       library_names_spec='${libname}${release}.a $libname.a'
10820       soname_spec='${libname}${release}${shared_ext}$major'
10821     fi
10822     shlibpath_var=LIBPATH
10823   fi
10824   ;;
10825
10826 amigaos*)
10827   case $host_cpu in
10828   powerpc)
10829     # Since July 2007 AmigaOS4 officially supports .so libraries.
10830     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832     ;;
10833   m68k)
10834     library_names_spec='$libname.ixlibrary $libname.a'
10835     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10836     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10837     ;;
10838   esac
10839   ;;
10840
10841 beos*)
10842   library_names_spec='${libname}${shared_ext}'
10843   dynamic_linker="$host_os ld.so"
10844   shlibpath_var=LIBRARY_PATH
10845   ;;
10846
10847 bsdi[45]*)
10848   version_type=linux # correct to gnu/linux during the next big refactor
10849   need_version=no
10850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851   soname_spec='${libname}${release}${shared_ext}$major'
10852   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10853   shlibpath_var=LD_LIBRARY_PATH
10854   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10855   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10856   # the default ld.so.conf also contains /usr/contrib/lib and
10857   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10858   # libtool to hard-code these into programs
10859   ;;
10860
10861 cygwin* | mingw* | pw32* | cegcc*)
10862   version_type=windows
10863   shrext_cmds=".dll"
10864   need_version=no
10865   need_lib_prefix=no
10866
10867   case $GCC,$cc_basename in
10868   yes,*)
10869     # gcc
10870     library_names_spec='$libname.dll.a'
10871     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10872     postinstall_cmds='base_file=`basename \${file}`~
10873       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10874       dldir=$destdir/`dirname \$dlpath`~
10875       test -d \$dldir || mkdir -p \$dldir~
10876       $install_prog $dir/$dlname \$dldir/$dlname~
10877       chmod a+x \$dldir/$dlname~
10878       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10879         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10880       fi'
10881     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10882       dlpath=$dir/\$dldll~
10883        $RM \$dlpath'
10884     shlibpath_overrides_runpath=yes
10885
10886     case $host_os in
10887     cygwin*)
10888       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10889       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10890
10891       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10892       ;;
10893     mingw* | cegcc*)
10894       # MinGW DLLs use traditional 'lib' prefix
10895       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10896       ;;
10897     pw32*)
10898       # pw32 DLLs use 'pw' prefix rather than 'lib'
10899       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10900       ;;
10901     esac
10902     dynamic_linker='Win32 ld.exe'
10903     ;;
10904
10905   *,cl*)
10906     # Native MSVC
10907     libname_spec='$name'
10908     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10909     library_names_spec='${libname}.dll.lib'
10910
10911     case $build_os in
10912     mingw*)
10913       sys_lib_search_path_spec=
10914       lt_save_ifs=$IFS
10915       IFS=';'
10916       for lt_path in $LIB
10917       do
10918         IFS=$lt_save_ifs
10919         # Let DOS variable expansion print the short 8.3 style file name.
10920         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10921         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10922       done
10923       IFS=$lt_save_ifs
10924       # Convert to MSYS style.
10925       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10926       ;;
10927     cygwin*)
10928       # Convert to unix form, then to dos form, then back to unix form
10929       # but this time dos style (no spaces!) so that the unix form looks
10930       # like /cygdrive/c/PROGRA~1:/cygdr...
10931       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10932       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10933       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10934       ;;
10935     *)
10936       sys_lib_search_path_spec="$LIB"
10937       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10938         # It is most probably a Windows format PATH.
10939         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10940       else
10941         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10942       fi
10943       # FIXME: find the short name or the path components, as spaces are
10944       # common. (e.g. "Program Files" -> "PROGRA~1")
10945       ;;
10946     esac
10947
10948     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10949     postinstall_cmds='base_file=`basename \${file}`~
10950       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10951       dldir=$destdir/`dirname \$dlpath`~
10952       test -d \$dldir || mkdir -p \$dldir~
10953       $install_prog $dir/$dlname \$dldir/$dlname'
10954     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10955       dlpath=$dir/\$dldll~
10956        $RM \$dlpath'
10957     shlibpath_overrides_runpath=yes
10958     dynamic_linker='Win32 link.exe'
10959     ;;
10960
10961   *)
10962     # Assume MSVC wrapper
10963     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10964     dynamic_linker='Win32 ld.exe'
10965     ;;
10966   esac
10967   # FIXME: first we should search . and the directory the executable is in
10968   shlibpath_var=PATH
10969   ;;
10970
10971 darwin* | rhapsody*)
10972   dynamic_linker="$host_os dyld"
10973   version_type=darwin
10974   need_lib_prefix=no
10975   need_version=no
10976   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10977   soname_spec='${libname}${release}${major}$shared_ext'
10978   shlibpath_overrides_runpath=yes
10979   shlibpath_var=DYLD_LIBRARY_PATH
10980   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10981
10982   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10983   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10984   ;;
10985
10986 dgux*)
10987   version_type=linux # correct to gnu/linux during the next big refactor
10988   need_lib_prefix=no
10989   need_version=no
10990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10991   soname_spec='${libname}${release}${shared_ext}$major'
10992   shlibpath_var=LD_LIBRARY_PATH
10993   ;;
10994
10995 freebsd* | dragonfly*)
10996   # DragonFly does not have aout.  When/if they implement a new
10997   # versioning mechanism, adjust this.
10998   if test -x /usr/bin/objformat; then
10999     objformat=`/usr/bin/objformat`
11000   else
11001     case $host_os in
11002     freebsd[23].*) objformat=aout ;;
11003     *) objformat=elf ;;
11004     esac
11005   fi
11006   version_type=freebsd-$objformat
11007   case $version_type in
11008     freebsd-elf*)
11009       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11010       need_version=no
11011       need_lib_prefix=no
11012       ;;
11013     freebsd-*)
11014       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11015       need_version=yes
11016       ;;
11017   esac
11018   shlibpath_var=LD_LIBRARY_PATH
11019   case $host_os in
11020   freebsd2.*)
11021     shlibpath_overrides_runpath=yes
11022     ;;
11023   freebsd3.[01]* | freebsdelf3.[01]*)
11024     shlibpath_overrides_runpath=yes
11025     hardcode_into_libs=yes
11026     ;;
11027   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11028   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11029     shlibpath_overrides_runpath=no
11030     hardcode_into_libs=yes
11031     ;;
11032   *) # from 4.6 on, and DragonFly
11033     shlibpath_overrides_runpath=yes
11034     hardcode_into_libs=yes
11035     ;;
11036   esac
11037   ;;
11038
11039 gnu*)
11040   version_type=linux # correct to gnu/linux during the next big refactor
11041   need_lib_prefix=no
11042   need_version=no
11043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11044   soname_spec='${libname}${release}${shared_ext}$major'
11045   shlibpath_var=LD_LIBRARY_PATH
11046   shlibpath_overrides_runpath=no
11047   hardcode_into_libs=yes
11048   ;;
11049
11050 haiku*)
11051   version_type=linux # correct to gnu/linux during the next big refactor
11052   need_lib_prefix=no
11053   need_version=no
11054   dynamic_linker="$host_os runtime_loader"
11055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11056   soname_spec='${libname}${release}${shared_ext}$major'
11057   shlibpath_var=LIBRARY_PATH
11058   shlibpath_overrides_runpath=yes
11059   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11060   hardcode_into_libs=yes
11061   ;;
11062
11063 hpux9* | hpux10* | hpux11*)
11064   # Give a soname corresponding to the major version so that dld.sl refuses to
11065   # link against other versions.
11066   version_type=sunos
11067   need_lib_prefix=no
11068   need_version=no
11069   case $host_cpu in
11070   ia64*)
11071     shrext_cmds='.so'
11072     hardcode_into_libs=yes
11073     dynamic_linker="$host_os dld.so"
11074     shlibpath_var=LD_LIBRARY_PATH
11075     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077     soname_spec='${libname}${release}${shared_ext}$major'
11078     if test "X$HPUX_IA64_MODE" = X32; then
11079       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11080     else
11081       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11082     fi
11083     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11084     ;;
11085   hppa*64*)
11086     shrext_cmds='.sl'
11087     hardcode_into_libs=yes
11088     dynamic_linker="$host_os dld.sl"
11089     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11090     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092     soname_spec='${libname}${release}${shared_ext}$major'
11093     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11094     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11095     ;;
11096   *)
11097     shrext_cmds='.sl'
11098     dynamic_linker="$host_os dld.sl"
11099     shlibpath_var=SHLIB_PATH
11100     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102     soname_spec='${libname}${release}${shared_ext}$major'
11103     ;;
11104   esac
11105   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11106   postinstall_cmds='chmod 555 $lib'
11107   # or fails outright, so override atomically:
11108   install_override_mode=555
11109   ;;
11110
11111 interix[3-9]*)
11112   version_type=linux # correct to gnu/linux during the next big refactor
11113   need_lib_prefix=no
11114   need_version=no
11115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11116   soname_spec='${libname}${release}${shared_ext}$major'
11117   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11118   shlibpath_var=LD_LIBRARY_PATH
11119   shlibpath_overrides_runpath=no
11120   hardcode_into_libs=yes
11121   ;;
11122
11123 irix5* | irix6* | nonstopux*)
11124   case $host_os in
11125     nonstopux*) version_type=nonstopux ;;
11126     *)
11127         if test "$lt_cv_prog_gnu_ld" = yes; then
11128                 version_type=linux # correct to gnu/linux during the next big refactor
11129         else
11130                 version_type=irix
11131         fi ;;
11132   esac
11133   need_lib_prefix=no
11134   need_version=no
11135   soname_spec='${libname}${release}${shared_ext}$major'
11136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11137   case $host_os in
11138   irix5* | nonstopux*)
11139     libsuff= shlibsuff=
11140     ;;
11141   *)
11142     case $LD in # libtool.m4 will add one of these switches to LD
11143     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11144       libsuff= shlibsuff= libmagic=32-bit;;
11145     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11146       libsuff=32 shlibsuff=N32 libmagic=N32;;
11147     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11148       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11149     *) libsuff= shlibsuff= libmagic=never-match;;
11150     esac
11151     ;;
11152   esac
11153   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11154   shlibpath_overrides_runpath=no
11155   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11156   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11157   hardcode_into_libs=yes
11158   ;;
11159
11160 # No shared lib support for Linux oldld, aout, or coff.
11161 linux*oldld* | linux*aout* | linux*coff*)
11162   dynamic_linker=no
11163   ;;
11164
11165 # This must be glibc/ELF.
11166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11167   version_type=linux # correct to gnu/linux during the next big refactor
11168   need_lib_prefix=no
11169   need_version=no
11170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171   soname_spec='${libname}${release}${shared_ext}$major'
11172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11173   shlibpath_var=LD_LIBRARY_PATH
11174   shlibpath_overrides_runpath=no
11175
11176   # Some binutils ld are patched to set DT_RUNPATH
11177   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11178   $as_echo_n "(cached) " >&6
11179 else
11180   lt_cv_shlibpath_overrides_runpath=no
11181     save_LDFLAGS=$LDFLAGS
11182     save_libdir=$libdir
11183     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11184          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11186 /* end confdefs.h.  */
11187
11188 int
11189 main ()
11190 {
11191
11192   ;
11193   return 0;
11194 }
11195 _ACEOF
11196 if ac_fn_c_try_link "$LINENO"; then :
11197   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11198   lt_cv_shlibpath_overrides_runpath=yes
11199 fi
11200 fi
11201 rm -f core conftest.err conftest.$ac_objext \
11202     conftest$ac_exeext conftest.$ac_ext
11203     LDFLAGS=$save_LDFLAGS
11204     libdir=$save_libdir
11205
11206 fi
11207
11208   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11209
11210   # This implies no fast_install, which is unacceptable.
11211   # Some rework will be needed to allow for fast_install
11212   # before this can be enabled.
11213   hardcode_into_libs=yes
11214
11215   # Append ld.so.conf contents to the search path
11216   if test -f /etc/ld.so.conf; then
11217     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' ' '`
11218     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11219   fi
11220
11221   # We used to test for /lib/ld.so.1 and disable shared libraries on
11222   # powerpc, because MkLinux only supported shared libraries with the
11223   # GNU dynamic linker.  Since this was broken with cross compilers,
11224   # most powerpc-linux boxes support dynamic linking these days and
11225   # people can always --disable-shared, the test was removed, and we
11226   # assume the GNU/Linux dynamic linker is in use.
11227   dynamic_linker='GNU/Linux ld.so'
11228   ;;
11229
11230 netbsd*)
11231   version_type=sunos
11232   need_lib_prefix=no
11233   need_version=no
11234   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11236     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11237     dynamic_linker='NetBSD (a.out) ld.so'
11238   else
11239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11240     soname_spec='${libname}${release}${shared_ext}$major'
11241     dynamic_linker='NetBSD ld.elf_so'
11242   fi
11243   shlibpath_var=LD_LIBRARY_PATH
11244   shlibpath_overrides_runpath=yes
11245   hardcode_into_libs=yes
11246   ;;
11247
11248 newsos6)
11249   version_type=linux # correct to gnu/linux during the next big refactor
11250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251   shlibpath_var=LD_LIBRARY_PATH
11252   shlibpath_overrides_runpath=yes
11253   ;;
11254
11255 *nto* | *qnx*)
11256   version_type=qnx
11257   need_lib_prefix=no
11258   need_version=no
11259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260   soname_spec='${libname}${release}${shared_ext}$major'
11261   shlibpath_var=LD_LIBRARY_PATH
11262   shlibpath_overrides_runpath=no
11263   hardcode_into_libs=yes
11264   dynamic_linker='ldqnx.so'
11265   ;;
11266
11267 openbsd*)
11268   version_type=sunos
11269   sys_lib_dlsearch_path_spec="/usr/lib"
11270   need_lib_prefix=no
11271   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11272   case $host_os in
11273     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11274     *)                          need_version=no  ;;
11275   esac
11276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11277   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11278   shlibpath_var=LD_LIBRARY_PATH
11279   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11280     case $host_os in
11281       openbsd2.[89] | openbsd2.[89].*)
11282         shlibpath_overrides_runpath=no
11283         ;;
11284       *)
11285         shlibpath_overrides_runpath=yes
11286         ;;
11287       esac
11288   else
11289     shlibpath_overrides_runpath=yes
11290   fi
11291   ;;
11292
11293 os2*)
11294   libname_spec='$name'
11295   shrext_cmds=".dll"
11296   need_lib_prefix=no
11297   library_names_spec='$libname${shared_ext} $libname.a'
11298   dynamic_linker='OS/2 ld.exe'
11299   shlibpath_var=LIBPATH
11300   ;;
11301
11302 osf3* | osf4* | osf5*)
11303   version_type=osf
11304   need_lib_prefix=no
11305   need_version=no
11306   soname_spec='${libname}${release}${shared_ext}$major'
11307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308   shlibpath_var=LD_LIBRARY_PATH
11309   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11310   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11311   ;;
11312
11313 rdos*)
11314   dynamic_linker=no
11315   ;;
11316
11317 solaris*)
11318   version_type=linux # correct to gnu/linux during the next big refactor
11319   need_lib_prefix=no
11320   need_version=no
11321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322   soname_spec='${libname}${release}${shared_ext}$major'
11323   shlibpath_var=LD_LIBRARY_PATH
11324   shlibpath_overrides_runpath=yes
11325   hardcode_into_libs=yes
11326   # ldd complains unless libraries are executable
11327   postinstall_cmds='chmod +x $lib'
11328   ;;
11329
11330 sunos4*)
11331   version_type=sunos
11332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11333   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11334   shlibpath_var=LD_LIBRARY_PATH
11335   shlibpath_overrides_runpath=yes
11336   if test "$with_gnu_ld" = yes; then
11337     need_lib_prefix=no
11338   fi
11339   need_version=yes
11340   ;;
11341
11342 sysv4 | sysv4.3*)
11343   version_type=linux # correct to gnu/linux during the next big refactor
11344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345   soname_spec='${libname}${release}${shared_ext}$major'
11346   shlibpath_var=LD_LIBRARY_PATH
11347   case $host_vendor in
11348     sni)
11349       shlibpath_overrides_runpath=no
11350       need_lib_prefix=no
11351       runpath_var=LD_RUN_PATH
11352       ;;
11353     siemens)
11354       need_lib_prefix=no
11355       ;;
11356     motorola)
11357       need_lib_prefix=no
11358       need_version=no
11359       shlibpath_overrides_runpath=no
11360       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11361       ;;
11362   esac
11363   ;;
11364
11365 sysv4*MP*)
11366   if test -d /usr/nec ;then
11367     version_type=linux # correct to gnu/linux during the next big refactor
11368     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11369     soname_spec='$libname${shared_ext}.$major'
11370     shlibpath_var=LD_LIBRARY_PATH
11371   fi
11372   ;;
11373
11374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11375   version_type=freebsd-elf
11376   need_lib_prefix=no
11377   need_version=no
11378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11379   soname_spec='${libname}${release}${shared_ext}$major'
11380   shlibpath_var=LD_LIBRARY_PATH
11381   shlibpath_overrides_runpath=yes
11382   hardcode_into_libs=yes
11383   if test "$with_gnu_ld" = yes; then
11384     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11385   else
11386     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11387     case $host_os in
11388       sco3.2v5*)
11389         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11390         ;;
11391     esac
11392   fi
11393   sys_lib_dlsearch_path_spec='/usr/lib'
11394   ;;
11395
11396 tpf*)
11397   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11398   version_type=linux # correct to gnu/linux during the next big refactor
11399   need_lib_prefix=no
11400   need_version=no
11401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402   shlibpath_var=LD_LIBRARY_PATH
11403   shlibpath_overrides_runpath=no
11404   hardcode_into_libs=yes
11405   ;;
11406
11407 uts4*)
11408   version_type=linux # correct to gnu/linux during the next big refactor
11409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410   soname_spec='${libname}${release}${shared_ext}$major'
11411   shlibpath_var=LD_LIBRARY_PATH
11412   ;;
11413
11414 *)
11415   dynamic_linker=no
11416   ;;
11417 esac
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11419 $as_echo "$dynamic_linker" >&6; }
11420 test "$dynamic_linker" = no && can_build_shared=no
11421
11422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11423 if test "$GCC" = yes; then
11424   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11425 fi
11426
11427 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11428   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11429 fi
11430 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11431   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11432 fi
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11526 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11527 hardcode_action=
11528 if test -n "$hardcode_libdir_flag_spec" ||
11529    test -n "$runpath_var" ||
11530    test "X$hardcode_automatic" = "Xyes" ; then
11531
11532   # We can hardcode non-existent directories.
11533   if test "$hardcode_direct" != no &&
11534      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11535      # have to relink, otherwise we might link with an installed library
11536      # when we should be linking with a yet-to-be-installed one
11537      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11538      test "$hardcode_minus_L" != no; then
11539     # Linking always hardcodes the temporary library directory.
11540     hardcode_action=relink
11541   else
11542     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11543     hardcode_action=immediate
11544   fi
11545 else
11546   # We cannot hardcode anything, or else we can only hardcode existing
11547   # directories.
11548   hardcode_action=unsupported
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11551 $as_echo "$hardcode_action" >&6; }
11552
11553 if test "$hardcode_action" = relink ||
11554    test "$inherit_rpath" = yes; then
11555   # Fast installation is not supported
11556   enable_fast_install=no
11557 elif test "$shlibpath_overrides_runpath" = yes ||
11558      test "$enable_shared" = no; then
11559   # Fast installation is not necessary
11560   enable_fast_install=needless
11561 fi
11562
11563
11564
11565
11566
11567
11568   if test "x$enable_dlopen" != xyes; then
11569   enable_dlopen=unknown
11570   enable_dlopen_self=unknown
11571   enable_dlopen_self_static=unknown
11572 else
11573   lt_cv_dlopen=no
11574   lt_cv_dlopen_libs=
11575
11576   case $host_os in
11577   beos*)
11578     lt_cv_dlopen="load_add_on"
11579     lt_cv_dlopen_libs=
11580     lt_cv_dlopen_self=yes
11581     ;;
11582
11583   mingw* | pw32* | cegcc*)
11584     lt_cv_dlopen="LoadLibrary"
11585     lt_cv_dlopen_libs=
11586     ;;
11587
11588   cygwin*)
11589     lt_cv_dlopen="dlopen"
11590     lt_cv_dlopen_libs=
11591     ;;
11592
11593   darwin*)
11594   # if libdl is installed we need to link against it
11595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11597 if ${ac_cv_lib_dl_dlopen+:} false; then :
11598   $as_echo_n "(cached) " >&6
11599 else
11600   ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-ldl  $LIBS"
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h.  */
11604
11605 /* Override any GCC internal prototype to avoid an error.
11606    Use char because int might match the return type of a GCC
11607    builtin and then its argument prototype would still apply.  */
11608 #ifdef __cplusplus
11609 extern "C"
11610 #endif
11611 char dlopen ();
11612 int
11613 main ()
11614 {
11615 return dlopen ();
11616   ;
11617   return 0;
11618 }
11619 _ACEOF
11620 if ac_fn_c_try_link "$LINENO"; then :
11621   ac_cv_lib_dl_dlopen=yes
11622 else
11623   ac_cv_lib_dl_dlopen=no
11624 fi
11625 rm -f core conftest.err conftest.$ac_objext \
11626     conftest$ac_exeext conftest.$ac_ext
11627 LIBS=$ac_check_lib_save_LIBS
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11630 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11631 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11633 else
11634
11635     lt_cv_dlopen="dyld"
11636     lt_cv_dlopen_libs=
11637     lt_cv_dlopen_self=yes
11638
11639 fi
11640
11641     ;;
11642
11643   *)
11644     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11645 if test "x$ac_cv_func_shl_load" = xyes; then :
11646   lt_cv_dlopen="shl_load"
11647 else
11648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11649 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11650 if ${ac_cv_lib_dld_shl_load+:} false; then :
11651   $as_echo_n "(cached) " >&6
11652 else
11653   ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-ldld  $LIBS"
11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h.  */
11657
11658 /* Override any GCC internal prototype to avoid an error.
11659    Use char because int might match the return type of a GCC
11660    builtin and then its argument prototype would still apply.  */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 char shl_load ();
11665 int
11666 main ()
11667 {
11668 return shl_load ();
11669   ;
11670   return 0;
11671 }
11672 _ACEOF
11673 if ac_fn_c_try_link "$LINENO"; then :
11674   ac_cv_lib_dld_shl_load=yes
11675 else
11676   ac_cv_lib_dld_shl_load=no
11677 fi
11678 rm -f core conftest.err conftest.$ac_objext \
11679     conftest$ac_exeext conftest.$ac_ext
11680 LIBS=$ac_check_lib_save_LIBS
11681 fi
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11683 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11684 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11685   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11686 else
11687   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11688 if test "x$ac_cv_func_dlopen" = xyes; then :
11689   lt_cv_dlopen="dlopen"
11690 else
11691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11693 if ${ac_cv_lib_dl_dlopen+:} false; then :
11694   $as_echo_n "(cached) " >&6
11695 else
11696   ac_check_lib_save_LIBS=$LIBS
11697 LIBS="-ldl  $LIBS"
11698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h.  */
11700
11701 /* Override any GCC internal prototype to avoid an error.
11702    Use char because int might match the return type of a GCC
11703    builtin and then its argument prototype would still apply.  */
11704 #ifdef __cplusplus
11705 extern "C"
11706 #endif
11707 char dlopen ();
11708 int
11709 main ()
11710 {
11711 return dlopen ();
11712   ;
11713   return 0;
11714 }
11715 _ACEOF
11716 if ac_fn_c_try_link "$LINENO"; then :
11717   ac_cv_lib_dl_dlopen=yes
11718 else
11719   ac_cv_lib_dl_dlopen=no
11720 fi
11721 rm -f core conftest.err conftest.$ac_objext \
11722     conftest$ac_exeext conftest.$ac_ext
11723 LIBS=$ac_check_lib_save_LIBS
11724 fi
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11727 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11729 else
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11731 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11732 if ${ac_cv_lib_svld_dlopen+:} false; then :
11733   $as_echo_n "(cached) " >&6
11734 else
11735   ac_check_lib_save_LIBS=$LIBS
11736 LIBS="-lsvld  $LIBS"
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h.  */
11739
11740 /* Override any GCC internal prototype to avoid an error.
11741    Use char because int might match the return type of a GCC
11742    builtin and then its argument prototype would still apply.  */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 char dlopen ();
11747 int
11748 main ()
11749 {
11750 return dlopen ();
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_link "$LINENO"; then :
11756   ac_cv_lib_svld_dlopen=yes
11757 else
11758   ac_cv_lib_svld_dlopen=no
11759 fi
11760 rm -f core conftest.err conftest.$ac_objext \
11761     conftest$ac_exeext conftest.$ac_ext
11762 LIBS=$ac_check_lib_save_LIBS
11763 fi
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11765 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11766 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11767   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11768 else
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11770 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11771 if ${ac_cv_lib_dld_dld_link+:} false; then :
11772   $as_echo_n "(cached) " >&6
11773 else
11774   ac_check_lib_save_LIBS=$LIBS
11775 LIBS="-ldld  $LIBS"
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h.  */
11778
11779 /* Override any GCC internal prototype to avoid an error.
11780    Use char because int might match the return type of a GCC
11781    builtin and then its argument prototype would still apply.  */
11782 #ifdef __cplusplus
11783 extern "C"
11784 #endif
11785 char dld_link ();
11786 int
11787 main ()
11788 {
11789 return dld_link ();
11790   ;
11791   return 0;
11792 }
11793 _ACEOF
11794 if ac_fn_c_try_link "$LINENO"; then :
11795   ac_cv_lib_dld_dld_link=yes
11796 else
11797   ac_cv_lib_dld_dld_link=no
11798 fi
11799 rm -f core conftest.err conftest.$ac_objext \
11800     conftest$ac_exeext conftest.$ac_ext
11801 LIBS=$ac_check_lib_save_LIBS
11802 fi
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11804 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11805 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11806   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11807 fi
11808
11809
11810 fi
11811
11812
11813 fi
11814
11815
11816 fi
11817
11818
11819 fi
11820
11821
11822 fi
11823
11824     ;;
11825   esac
11826
11827   if test "x$lt_cv_dlopen" != xno; then
11828     enable_dlopen=yes
11829   else
11830     enable_dlopen=no
11831   fi
11832
11833   case $lt_cv_dlopen in
11834   dlopen)
11835     save_CPPFLAGS="$CPPFLAGS"
11836     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11837
11838     save_LDFLAGS="$LDFLAGS"
11839     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11840
11841     save_LIBS="$LIBS"
11842     LIBS="$lt_cv_dlopen_libs $LIBS"
11843
11844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11845 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11846 if ${lt_cv_dlopen_self+:} false; then :
11847   $as_echo_n "(cached) " >&6
11848 else
11849           if test "$cross_compiling" = yes; then :
11850   lt_cv_dlopen_self=cross
11851 else
11852   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11853   lt_status=$lt_dlunknown
11854   cat > conftest.$ac_ext <<_LT_EOF
11855 #line $LINENO "configure"
11856 #include "confdefs.h"
11857
11858 #if HAVE_DLFCN_H
11859 #include <dlfcn.h>
11860 #endif
11861
11862 #include <stdio.h>
11863
11864 #ifdef RTLD_GLOBAL
11865 #  define LT_DLGLOBAL           RTLD_GLOBAL
11866 #else
11867 #  ifdef DL_GLOBAL
11868 #    define LT_DLGLOBAL         DL_GLOBAL
11869 #  else
11870 #    define LT_DLGLOBAL         0
11871 #  endif
11872 #endif
11873
11874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11875    find out it does not work in some platform. */
11876 #ifndef LT_DLLAZY_OR_NOW
11877 #  ifdef RTLD_LAZY
11878 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11879 #  else
11880 #    ifdef DL_LAZY
11881 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11882 #    else
11883 #      ifdef RTLD_NOW
11884 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11885 #      else
11886 #        ifdef DL_NOW
11887 #          define LT_DLLAZY_OR_NOW      DL_NOW
11888 #        else
11889 #          define LT_DLLAZY_OR_NOW      0
11890 #        endif
11891 #      endif
11892 #    endif
11893 #  endif
11894 #endif
11895
11896 /* When -fvisbility=hidden is used, assume the code has been annotated
11897    correspondingly for the symbols needed.  */
11898 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11899 int fnord () __attribute__((visibility("default")));
11900 #endif
11901
11902 int fnord () { return 42; }
11903 int main ()
11904 {
11905   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11906   int status = $lt_dlunknown;
11907
11908   if (self)
11909     {
11910       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11911       else
11912         {
11913           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11914           else puts (dlerror ());
11915         }
11916       /* dlclose (self); */
11917     }
11918   else
11919     puts (dlerror ());
11920
11921   return status;
11922 }
11923 _LT_EOF
11924   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11925   (eval $ac_link) 2>&5
11926   ac_status=$?
11927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11928   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11929     (./conftest; exit; ) >&5 2>/dev/null
11930     lt_status=$?
11931     case x$lt_status in
11932       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11933       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11934       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11935     esac
11936   else :
11937     # compilation failed
11938     lt_cv_dlopen_self=no
11939   fi
11940 fi
11941 rm -fr conftest*
11942
11943
11944 fi
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11946 $as_echo "$lt_cv_dlopen_self" >&6; }
11947
11948     if test "x$lt_cv_dlopen_self" = xyes; then
11949       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11950       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11951 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11952 if ${lt_cv_dlopen_self_static+:} false; then :
11953   $as_echo_n "(cached) " >&6
11954 else
11955           if test "$cross_compiling" = yes; then :
11956   lt_cv_dlopen_self_static=cross
11957 else
11958   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11959   lt_status=$lt_dlunknown
11960   cat > conftest.$ac_ext <<_LT_EOF
11961 #line $LINENO "configure"
11962 #include "confdefs.h"
11963
11964 #if HAVE_DLFCN_H
11965 #include <dlfcn.h>
11966 #endif
11967
11968 #include <stdio.h>
11969
11970 #ifdef RTLD_GLOBAL
11971 #  define LT_DLGLOBAL           RTLD_GLOBAL
11972 #else
11973 #  ifdef DL_GLOBAL
11974 #    define LT_DLGLOBAL         DL_GLOBAL
11975 #  else
11976 #    define LT_DLGLOBAL         0
11977 #  endif
11978 #endif
11979
11980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11981    find out it does not work in some platform. */
11982 #ifndef LT_DLLAZY_OR_NOW
11983 #  ifdef RTLD_LAZY
11984 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11985 #  else
11986 #    ifdef DL_LAZY
11987 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11988 #    else
11989 #      ifdef RTLD_NOW
11990 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11991 #      else
11992 #        ifdef DL_NOW
11993 #          define LT_DLLAZY_OR_NOW      DL_NOW
11994 #        else
11995 #          define LT_DLLAZY_OR_NOW      0
11996 #        endif
11997 #      endif
11998 #    endif
11999 #  endif
12000 #endif
12001
12002 /* When -fvisbility=hidden is used, assume the code has been annotated
12003    correspondingly for the symbols needed.  */
12004 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12005 int fnord () __attribute__((visibility("default")));
12006 #endif
12007
12008 int fnord () { return 42; }
12009 int main ()
12010 {
12011   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12012   int status = $lt_dlunknown;
12013
12014   if (self)
12015     {
12016       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12017       else
12018         {
12019           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12020           else puts (dlerror ());
12021         }
12022       /* dlclose (self); */
12023     }
12024   else
12025     puts (dlerror ());
12026
12027   return status;
12028 }
12029 _LT_EOF
12030   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12031   (eval $ac_link) 2>&5
12032   ac_status=$?
12033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12034   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12035     (./conftest; exit; ) >&5 2>/dev/null
12036     lt_status=$?
12037     case x$lt_status in
12038       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12039       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12040       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12041     esac
12042   else :
12043     # compilation failed
12044     lt_cv_dlopen_self_static=no
12045   fi
12046 fi
12047 rm -fr conftest*
12048
12049
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12052 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12053     fi
12054
12055     CPPFLAGS="$save_CPPFLAGS"
12056     LDFLAGS="$save_LDFLAGS"
12057     LIBS="$save_LIBS"
12058     ;;
12059   esac
12060
12061   case $lt_cv_dlopen_self in
12062   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12063   *) enable_dlopen_self=unknown ;;
12064   esac
12065
12066   case $lt_cv_dlopen_self_static in
12067   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12068   *) enable_dlopen_self_static=unknown ;;
12069   esac
12070 fi
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088 striplib=
12089 old_striplib=
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12091 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12092 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12093   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12094   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12096 $as_echo "yes" >&6; }
12097 else
12098 # FIXME - insert some real tests, host_os isn't really good enough
12099   case $host_os in
12100   darwin*)
12101     if test -n "$STRIP" ; then
12102       striplib="$STRIP -x"
12103       old_striplib="$STRIP -S"
12104       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105 $as_echo "yes" >&6; }
12106     else
12107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; }
12109     fi
12110     ;;
12111   *)
12112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12114     ;;
12115   esac
12116 fi
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129   # Report which library types will actually be built
12130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12131 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12133 $as_echo "$can_build_shared" >&6; }
12134
12135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12136 $as_echo_n "checking whether to build shared libraries... " >&6; }
12137   test "$can_build_shared" = "no" && enable_shared=no
12138
12139   # On AIX, shared libraries and static libraries use the same namespace, and
12140   # are all built from PIC.
12141   case $host_os in
12142   aix3*)
12143     test "$enable_shared" = yes && enable_static=no
12144     if test -n "$RANLIB"; then
12145       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12146       postinstall_cmds='$RANLIB $lib'
12147     fi
12148     ;;
12149
12150   aix[4-9]*)
12151     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12152       test "$enable_shared" = yes && enable_static=no
12153     fi
12154     ;;
12155   esac
12156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12157 $as_echo "$enable_shared" >&6; }
12158
12159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12160 $as_echo_n "checking whether to build static libraries... " >&6; }
12161   # Make sure either enable_shared or enable_static is yes.
12162   test "$enable_shared" = yes || enable_static=yes
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12164 $as_echo "$enable_static" >&6; }
12165
12166
12167
12168
12169 fi
12170 ac_ext=c
12171 ac_cpp='$CPP $CPPFLAGS'
12172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12175
12176 CC="$lt_save_CC"
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192         ac_config_commands="$ac_config_commands libtool"
12193
12194
12195
12196
12197 # Only expand once:
12198
12199
12200
12201
12202 # Check for library functions that SQLite can optionally use.
12203 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12204 do :
12205   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12206 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12207 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12208   cat >>confdefs.h <<_ACEOF
12209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12210 _ACEOF
12211
12212 fi
12213 done
12214
12215 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12216 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12217   ac_have_decl=1
12218 else
12219   ac_have_decl=0
12220 fi
12221
12222 cat >>confdefs.h <<_ACEOF
12223 #define HAVE_DECL_STRERROR_R $ac_have_decl
12224 _ACEOF
12225
12226 for ac_func in strerror_r
12227 do :
12228   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12229 if test "x$ac_cv_func_strerror_r" = xyes; then :
12230   cat >>confdefs.h <<_ACEOF
12231 #define HAVE_STRERROR_R 1
12232 _ACEOF
12233
12234 fi
12235 done
12236
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12238 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
12239 if ${ac_cv_func_strerror_r_char_p+:} false; then :
12240   $as_echo_n "(cached) " >&6
12241 else
12242
12243     ac_cv_func_strerror_r_char_p=no
12244     if test $ac_cv_have_decl_strerror_r = yes; then
12245       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h.  */
12247 $ac_includes_default
12248 int
12249 main ()
12250 {
12251
12252           char buf[100];
12253           char x = *strerror_r (0, buf, sizeof buf);
12254           char *p = strerror_r (0, buf, sizeof buf);
12255           return !p || x;
12256
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 if ac_fn_c_try_compile "$LINENO"; then :
12262   ac_cv_func_strerror_r_char_p=yes
12263 fi
12264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12265     else
12266       # strerror_r is not declared.  Choose between
12267       # systems that have relatively inaccessible declarations for the
12268       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
12269       # former has a strerror_r that returns char*, while the latter
12270       # has a strerror_r that returns `int'.
12271       # This test should segfault on the DEC system.
12272       if test "$cross_compiling" = yes; then :
12273   :
12274 else
12275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h.  */
12277 $ac_includes_default
12278         extern char *strerror_r ();
12279 int
12280 main ()
12281 {
12282 char buf[100];
12283           char x = *strerror_r (0, buf, sizeof buf);
12284           return ! isalpha (x);
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 if ac_fn_c_try_run "$LINENO"; then :
12290   ac_cv_func_strerror_r_char_p=yes
12291 fi
12292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12293   conftest.$ac_objext conftest.beam conftest.$ac_ext
12294 fi
12295
12296     fi
12297
12298 fi
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12300 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12301 if test $ac_cv_func_strerror_r_char_p = yes; then
12302
12303 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12304
12305 fi
12306
12307
12308 ac_config_files="$ac_config_files Makefile sqlite3.pc"
12309
12310
12311
12312 #-----------------------------------------------------------------------
12313 #   --enable-readline
12314 #
12315 # Check whether --enable-readline was given.
12316 if test "${enable_readline+set}" = set; then :
12317   enableval=$enable_readline;
12318 else
12319   enable_readline=yes
12320 fi
12321
12322 if test x"$enable_readline" != xno ; then
12323   sLIBS=$LIBS
12324   LIBS=""
12325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12326 $as_echo_n "checking for library containing tgetent... " >&6; }
12327 if ${ac_cv_search_tgetent+:} false; then :
12328   $as_echo_n "(cached) " >&6
12329 else
12330   ac_func_search_save_LIBS=$LIBS
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h.  */
12333
12334 /* Override any GCC internal prototype to avoid an error.
12335    Use char because int might match the return type of a GCC
12336    builtin and then its argument prototype would still apply.  */
12337 #ifdef __cplusplus
12338 extern "C"
12339 #endif
12340 char tgetent ();
12341 int
12342 main ()
12343 {
12344 return tgetent ();
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 for ac_lib in '' curses ncurses ncursesw; do
12350   if test -z "$ac_lib"; then
12351     ac_res="none required"
12352   else
12353     ac_res=-l$ac_lib
12354     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12355   fi
12356   if ac_fn_c_try_link "$LINENO"; then :
12357   ac_cv_search_tgetent=$ac_res
12358 fi
12359 rm -f core conftest.err conftest.$ac_objext \
12360     conftest$ac_exeext
12361   if ${ac_cv_search_tgetent+:} false; then :
12362   break
12363 fi
12364 done
12365 if ${ac_cv_search_tgetent+:} false; then :
12366
12367 else
12368   ac_cv_search_tgetent=no
12369 fi
12370 rm conftest.$ac_ext
12371 LIBS=$ac_func_search_save_LIBS
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12374 $as_echo "$ac_cv_search_tgetent" >&6; }
12375 ac_res=$ac_cv_search_tgetent
12376 if test "$ac_res" != no; then :
12377   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12378
12379 fi
12380
12381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12382 $as_echo_n "checking for library containing readline... " >&6; }
12383 if ${ac_cv_search_readline+:} false; then :
12384   $as_echo_n "(cached) " >&6
12385 else
12386   ac_func_search_save_LIBS=$LIBS
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h.  */
12389
12390 /* Override any GCC internal prototype to avoid an error.
12391    Use char because int might match the return type of a GCC
12392    builtin and then its argument prototype would still apply.  */
12393 #ifdef __cplusplus
12394 extern "C"
12395 #endif
12396 char readline ();
12397 int
12398 main ()
12399 {
12400 return readline ();
12401   ;
12402   return 0;
12403 }
12404 _ACEOF
12405 for ac_lib in '' readline; do
12406   if test -z "$ac_lib"; then
12407     ac_res="none required"
12408   else
12409     ac_res=-l$ac_lib
12410     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12411   fi
12412   if ac_fn_c_try_link "$LINENO"; then :
12413   ac_cv_search_readline=$ac_res
12414 fi
12415 rm -f core conftest.err conftest.$ac_objext \
12416     conftest$ac_exeext
12417   if ${ac_cv_search_readline+:} false; then :
12418   break
12419 fi
12420 done
12421 if ${ac_cv_search_readline+:} false; then :
12422
12423 else
12424   ac_cv_search_readline=no
12425 fi
12426 rm conftest.$ac_ext
12427 LIBS=$ac_func_search_save_LIBS
12428 fi
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12430 $as_echo "$ac_cv_search_readline" >&6; }
12431 ac_res=$ac_cv_search_readline
12432 if test "$ac_res" != no; then :
12433   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12434
12435 else
12436   enable_readline=no
12437 fi
12438
12439   for ac_func in readline
12440 do :
12441   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
12442 if test "x$ac_cv_func_readline" = xyes; then :
12443   cat >>confdefs.h <<_ACEOF
12444 #define HAVE_READLINE 1
12445 _ACEOF
12446
12447 fi
12448 done
12449
12450   READLINE_LIBS=$LIBS
12451   LIBS=$sLIBS
12452 fi
12453
12454 #-----------------------------------------------------------------------
12455
12456 #-----------------------------------------------------------------------
12457 #   --enable-threadsafe
12458 #
12459 # Check whether --enable-threadsafe was given.
12460 if test "${enable_threadsafe+set}" = set; then :
12461   enableval=$enable_threadsafe;
12462 else
12463   enable_threadsafe=yes
12464 fi
12465
12466 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
12467 if test x"$enable_threadsafe" != "xno"; then
12468   THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
12469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12470 $as_echo_n "checking for library containing pthread_create... " >&6; }
12471 if ${ac_cv_search_pthread_create+:} false; then :
12472   $as_echo_n "(cached) " >&6
12473 else
12474   ac_func_search_save_LIBS=$LIBS
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h.  */
12477
12478 /* Override any GCC internal prototype to avoid an error.
12479    Use char because int might match the return type of a GCC
12480    builtin and then its argument prototype would still apply.  */
12481 #ifdef __cplusplus
12482 extern "C"
12483 #endif
12484 char pthread_create ();
12485 int
12486 main ()
12487 {
12488 return pthread_create ();
12489   ;
12490   return 0;
12491 }
12492 _ACEOF
12493 for ac_lib in '' pthread; do
12494   if test -z "$ac_lib"; then
12495     ac_res="none required"
12496   else
12497     ac_res=-l$ac_lib
12498     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12499   fi
12500   if ac_fn_c_try_link "$LINENO"; then :
12501   ac_cv_search_pthread_create=$ac_res
12502 fi
12503 rm -f core conftest.err conftest.$ac_objext \
12504     conftest$ac_exeext
12505   if ${ac_cv_search_pthread_create+:} false; then :
12506   break
12507 fi
12508 done
12509 if ${ac_cv_search_pthread_create+:} false; then :
12510
12511 else
12512   ac_cv_search_pthread_create=no
12513 fi
12514 rm conftest.$ac_ext
12515 LIBS=$ac_func_search_save_LIBS
12516 fi
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12518 $as_echo "$ac_cv_search_pthread_create" >&6; }
12519 ac_res=$ac_cv_search_pthread_create
12520 if test "$ac_res" != no; then :
12521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12522
12523 fi
12524
12525 fi
12526
12527 #-----------------------------------------------------------------------
12528
12529 #-----------------------------------------------------------------------
12530 #   --enable-dynamic-extensions
12531 #
12532 # Check whether --enable-dynamic-extensions was given.
12533 if test "${enable_dynamic_extensions+set}" = set; then :
12534   enableval=$enable_dynamic_extensions;
12535 else
12536   enable_dynamic_extensions=yes
12537 fi
12538
12539 if test x"$enable_dynamic_extensions" != "xno"; then
12540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12541 $as_echo_n "checking for library containing dlopen... " >&6; }
12542 if ${ac_cv_search_dlopen+:} false; then :
12543   $as_echo_n "(cached) " >&6
12544 else
12545   ac_func_search_save_LIBS=$LIBS
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h.  */
12548
12549 /* Override any GCC internal prototype to avoid an error.
12550    Use char because int might match the return type of a GCC
12551    builtin and then its argument prototype would still apply.  */
12552 #ifdef __cplusplus
12553 extern "C"
12554 #endif
12555 char dlopen ();
12556 int
12557 main ()
12558 {
12559 return dlopen ();
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 for ac_lib in '' dl; do
12565   if test -z "$ac_lib"; then
12566     ac_res="none required"
12567   else
12568     ac_res=-l$ac_lib
12569     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12570   fi
12571   if ac_fn_c_try_link "$LINENO"; then :
12572   ac_cv_search_dlopen=$ac_res
12573 fi
12574 rm -f core conftest.err conftest.$ac_objext \
12575     conftest$ac_exeext
12576   if ${ac_cv_search_dlopen+:} false; then :
12577   break
12578 fi
12579 done
12580 if ${ac_cv_search_dlopen+:} false; then :
12581
12582 else
12583   ac_cv_search_dlopen=no
12584 fi
12585 rm conftest.$ac_ext
12586 LIBS=$ac_func_search_save_LIBS
12587 fi
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12589 $as_echo "$ac_cv_search_dlopen" >&6; }
12590 ac_res=$ac_cv_search_dlopen
12591 if test "$ac_res" != no; then :
12592   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12593
12594 fi
12595
12596 else
12597   DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
12598 fi
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
12600 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
12602 $as_echo "$enable_dynamic_extensions" >&6; }
12603
12604 #-----------------------------------------------------------------------
12605
12606 #-----------------------------------------------------------------------
12607 #   --enable-fts5
12608 #
12609 # Check whether --enable-fts5 was given.
12610 if test "${enable_fts5+set}" = set; then :
12611   enableval=$enable_fts5;
12612 else
12613   enable_fts5=no
12614 fi
12615
12616 if test x"$enable_fts5" == "xyes"; then
12617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
12618 $as_echo_n "checking for library containing log... " >&6; }
12619 if ${ac_cv_search_log+:} false; then :
12620   $as_echo_n "(cached) " >&6
12621 else
12622   ac_func_search_save_LIBS=$LIBS
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h.  */
12625
12626 /* Override any GCC internal prototype to avoid an error.
12627    Use char because int might match the return type of a GCC
12628    builtin and then its argument prototype would still apply.  */
12629 #ifdef __cplusplus
12630 extern "C"
12631 #endif
12632 char log ();
12633 int
12634 main ()
12635 {
12636 return log ();
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 for ac_lib in '' m; do
12642   if test -z "$ac_lib"; then
12643     ac_res="none required"
12644   else
12645     ac_res=-l$ac_lib
12646     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12647   fi
12648   if ac_fn_c_try_link "$LINENO"; then :
12649   ac_cv_search_log=$ac_res
12650 fi
12651 rm -f core conftest.err conftest.$ac_objext \
12652     conftest$ac_exeext
12653   if ${ac_cv_search_log+:} false; then :
12654   break
12655 fi
12656 done
12657 if ${ac_cv_search_log+:} false; then :
12658
12659 else
12660   ac_cv_search_log=no
12661 fi
12662 rm conftest.$ac_ext
12663 LIBS=$ac_func_search_save_LIBS
12664 fi
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
12666 $as_echo "$ac_cv_search_log" >&6; }
12667 ac_res=$ac_cv_search_log
12668 if test "$ac_res" != no; then :
12669   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12670
12671 fi
12672
12673   FTS5_FLAGS=-DSQLITE_ENABLE_FTS5
12674 fi
12675
12676 #-----------------------------------------------------------------------
12677
12678 #-----------------------------------------------------------------------
12679 #   --enable-json1
12680 #
12681 # Check whether --enable-json1 was given.
12682 if test "${enable_json1+set}" = set; then :
12683   enableval=$enable_json1;
12684 else
12685   enable_json1=no
12686 fi
12687
12688 if test x"$enable_json1" == "xyes"; then
12689   JSON1_FLAGS=-DSQLITE_ENABLE_JSON1
12690 fi
12691
12692 #-----------------------------------------------------------------------
12693
12694 for ac_func in posix_fallocate
12695 do :
12696   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
12697 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
12698   cat >>confdefs.h <<_ACEOF
12699 #define HAVE_POSIX_FALLOCATE 1
12700 _ACEOF
12701
12702 fi
12703 done
12704
12705
12706 #-----------------------------------------------------------------------
12707 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
12708 # configure. This option doesn't really add much...
12709 #
12710 #   --enable-tempstore
12711 #
12712 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
12713 #   [--enable-tempstore],
12714 #   [in-memory temporary tables (never, no, yes, always) [default=no]])],
12715 #   [], [enable_tempstore=no])
12716 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
12717 # case "$enable_tempstore" in
12718 #   never )  TEMP_STORE=0 ;;
12719 #   no )     TEMP_STORE=1 ;;
12720 #   always ) TEMP_STORE=3 ;;
12721 #   yes )    TEMP_STORE=3 ;;
12722 #   * )
12723 #     TEMP_STORE=1
12724 #     enable_tempstore=yes
12725 #   ;;
12726 # esac
12727 # AC_MSG_RESULT($enable_tempstore)
12728 # AC_SUBST(TEMP_STORE)
12729 #-----------------------------------------------------------------------
12730
12731 cat >confcache <<\_ACEOF
12732 # This file is a shell script that caches the results of configure
12733 # tests run on this system so they can be shared between configure
12734 # scripts and configure runs, see configure's option --config-cache.
12735 # It is not useful on other systems.  If it contains results you don't
12736 # want to keep, you may remove or edit it.
12737 #
12738 # config.status only pays attention to the cache file if you give it
12739 # the --recheck option to rerun configure.
12740 #
12741 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12742 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12743 # following values.
12744
12745 _ACEOF
12746
12747 # The following way of writing the cache mishandles newlines in values,
12748 # but we know of no workaround that is simple, portable, and efficient.
12749 # So, we kill variables containing newlines.
12750 # Ultrix sh set writes to stderr and can't be redirected directly,
12751 # and sets the high bit in the cache file unless we assign to the vars.
12752 (
12753   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12754     eval ac_val=\$$ac_var
12755     case $ac_val in #(
12756     *${as_nl}*)
12757       case $ac_var in #(
12758       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12759 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12760       esac
12761       case $ac_var in #(
12762       _ | IFS | as_nl) ;; #(
12763       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12764       *) { eval $ac_var=; unset $ac_var;} ;;
12765       esac ;;
12766     esac
12767   done
12768
12769   (set) 2>&1 |
12770     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12771     *${as_nl}ac_space=\ *)
12772       # `set' does not quote correctly, so add quotes: double-quote
12773       # substitution turns \\\\ into \\, and sed turns \\ into \.
12774       sed -n \
12775         "s/'/'\\\\''/g;
12776           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12777       ;; #(
12778     *)
12779       # `set' quotes correctly as required by POSIX, so do not add quotes.
12780       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12781       ;;
12782     esac |
12783     sort
12784 ) |
12785   sed '
12786      /^ac_cv_env_/b end
12787      t clear
12788      :clear
12789      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12790      t end
12791      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12792      :end' >>confcache
12793 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12794   if test -w "$cache_file"; then
12795     if test "x$cache_file" != "x/dev/null"; then
12796       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12797 $as_echo "$as_me: updating cache $cache_file" >&6;}
12798       if test ! -f "$cache_file" || test -h "$cache_file"; then
12799         cat confcache >"$cache_file"
12800       else
12801         case $cache_file in #(
12802         */* | ?:*)
12803           mv -f confcache "$cache_file"$$ &&
12804           mv -f "$cache_file"$$ "$cache_file" ;; #(
12805         *)
12806           mv -f confcache "$cache_file" ;;
12807         esac
12808       fi
12809     fi
12810   else
12811     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12812 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12813   fi
12814 fi
12815 rm -f confcache
12816
12817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12818 # Let make expand exec_prefix.
12819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12820
12821 # Transform confdefs.h into DEFS.
12822 # Protect against shell expansion while executing Makefile rules.
12823 # Protect against Makefile macro expansion.
12824 #
12825 # If the first sed substitution is executed (which looks for macros that
12826 # take arguments), then branch to the quote section.  Otherwise,
12827 # look for a macro that doesn't take arguments.
12828 ac_script='
12829 :mline
12830 /\\$/{
12831  N
12832  s,\\\n,,
12833  b mline
12834 }
12835 t clear
12836 :clear
12837 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12838 t quote
12839 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12840 t quote
12841 b any
12842 :quote
12843 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12844 s/\[/\\&/g
12845 s/\]/\\&/g
12846 s/\$/$$/g
12847 H
12848 :any
12849 ${
12850         g
12851         s/^\n//
12852         s/\n/ /g
12853         p
12854 }
12855 '
12856 DEFS=`sed -n "$ac_script" confdefs.h`
12857
12858
12859 ac_libobjs=
12860 ac_ltlibobjs=
12861 U=
12862 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12863   # 1. Remove the extension, and $U if already installed.
12864   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12865   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12866   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12867   #    will be set to the directory where LIBOBJS objects are built.
12868   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12869   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12870 done
12871 LIBOBJS=$ac_libobjs
12872
12873 LTLIBOBJS=$ac_ltlibobjs
12874
12875
12876  if test -n "$EXEEXT"; then
12877   am__EXEEXT_TRUE=
12878   am__EXEEXT_FALSE='#'
12879 else
12880   am__EXEEXT_TRUE='#'
12881   am__EXEEXT_FALSE=
12882 fi
12883
12884 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12885   as_fn_error $? "conditional \"AMDEP\" was never defined.
12886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12887 fi
12888 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12889   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12891 fi
12892 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12893   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12895 fi
12896
12897 : "${CONFIG_STATUS=./config.status}"
12898 ac_write_fail=0
12899 ac_clean_files_save=$ac_clean_files
12900 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12902 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12903 as_write_fail=0
12904 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12905 #! $SHELL
12906 # Generated by $as_me.
12907 # Run this file to recreate the current configuration.
12908 # Compiler output produced by configure, useful for debugging
12909 # configure, is in config.log if it exists.
12910
12911 debug=false
12912 ac_cs_recheck=false
12913 ac_cs_silent=false
12914
12915 SHELL=\${CONFIG_SHELL-$SHELL}
12916 export SHELL
12917 _ASEOF
12918 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12919 ## -------------------- ##
12920 ## M4sh Initialization. ##
12921 ## -------------------- ##
12922
12923 # Be more Bourne compatible
12924 DUALCASE=1; export DUALCASE # for MKS sh
12925 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12926   emulate sh
12927   NULLCMD=:
12928   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12929   # is contrary to our usage.  Disable this feature.
12930   alias -g '${1+"$@"}'='"$@"'
12931   setopt NO_GLOB_SUBST
12932 else
12933   case `(set -o) 2>/dev/null` in #(
12934   *posix*) :
12935     set -o posix ;; #(
12936   *) :
12937      ;;
12938 esac
12939 fi
12940
12941
12942 as_nl='
12943 '
12944 export as_nl
12945 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12946 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12948 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12949 # Prefer a ksh shell builtin over an external printf program on Solaris,
12950 # but without wasting forks for bash or zsh.
12951 if test -z "$BASH_VERSION$ZSH_VERSION" \
12952     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12953   as_echo='print -r --'
12954   as_echo_n='print -rn --'
12955 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12956   as_echo='printf %s\n'
12957   as_echo_n='printf %s'
12958 else
12959   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12960     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12961     as_echo_n='/usr/ucb/echo -n'
12962   else
12963     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12964     as_echo_n_body='eval
12965       arg=$1;
12966       case $arg in #(
12967       *"$as_nl"*)
12968         expr "X$arg" : "X\\(.*\\)$as_nl";
12969         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12970       esac;
12971       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12972     '
12973     export as_echo_n_body
12974     as_echo_n='sh -c $as_echo_n_body as_echo'
12975   fi
12976   export as_echo_body
12977   as_echo='sh -c $as_echo_body as_echo'
12978 fi
12979
12980 # The user is always right.
12981 if test "${PATH_SEPARATOR+set}" != set; then
12982   PATH_SEPARATOR=:
12983   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12984     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12985       PATH_SEPARATOR=';'
12986   }
12987 fi
12988
12989
12990 # IFS
12991 # We need space, tab and new line, in precisely that order.  Quoting is
12992 # there to prevent editors from complaining about space-tab.
12993 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12994 # splitting by setting IFS to empty value.)
12995 IFS=" ""        $as_nl"
12996
12997 # Find who we are.  Look in the path if we contain no directory separator.
12998 as_myself=
12999 case $0 in #((
13000   *[\\/]* ) as_myself=$0 ;;
13001   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $PATH
13003 do
13004   IFS=$as_save_IFS
13005   test -z "$as_dir" && as_dir=.
13006     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13007   done
13008 IFS=$as_save_IFS
13009
13010      ;;
13011 esac
13012 # We did not find ourselves, most probably we were run as `sh COMMAND'
13013 # in which case we are not to be found in the path.
13014 if test "x$as_myself" = x; then
13015   as_myself=$0
13016 fi
13017 if test ! -f "$as_myself"; then
13018   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13019   exit 1
13020 fi
13021
13022 # Unset variables that we do not need and which cause bugs (e.g. in
13023 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13024 # suppresses any "Segmentation fault" message there.  '((' could
13025 # trigger a bug in pdksh 5.2.14.
13026 for as_var in BASH_ENV ENV MAIL MAILPATH
13027 do eval test x\${$as_var+set} = xset \
13028   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13029 done
13030 PS1='$ '
13031 PS2='> '
13032 PS4='+ '
13033
13034 # NLS nuisances.
13035 LC_ALL=C
13036 export LC_ALL
13037 LANGUAGE=C
13038 export LANGUAGE
13039
13040 # CDPATH.
13041 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13042
13043
13044 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13045 # ----------------------------------------
13046 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13047 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13048 # script with STATUS, using 1 if that was 0.
13049 as_fn_error ()
13050 {
13051   as_status=$1; test $as_status -eq 0 && as_status=1
13052   if test "$4"; then
13053     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13054     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13055   fi
13056   $as_echo "$as_me: error: $2" >&2
13057   as_fn_exit $as_status
13058 } # as_fn_error
13059
13060
13061 # as_fn_set_status STATUS
13062 # -----------------------
13063 # Set $? to STATUS, without forking.
13064 as_fn_set_status ()
13065 {
13066   return $1
13067 } # as_fn_set_status
13068
13069 # as_fn_exit STATUS
13070 # -----------------
13071 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13072 as_fn_exit ()
13073 {
13074   set +e
13075   as_fn_set_status $1
13076   exit $1
13077 } # as_fn_exit
13078
13079 # as_fn_unset VAR
13080 # ---------------
13081 # Portably unset VAR.
13082 as_fn_unset ()
13083 {
13084   { eval $1=; unset $1;}
13085 }
13086 as_unset=as_fn_unset
13087 # as_fn_append VAR VALUE
13088 # ----------------------
13089 # Append the text in VALUE to the end of the definition contained in VAR. Take
13090 # advantage of any shell optimizations that allow amortized linear growth over
13091 # repeated appends, instead of the typical quadratic growth present in naive
13092 # implementations.
13093 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13094   eval 'as_fn_append ()
13095   {
13096     eval $1+=\$2
13097   }'
13098 else
13099   as_fn_append ()
13100   {
13101     eval $1=\$$1\$2
13102   }
13103 fi # as_fn_append
13104
13105 # as_fn_arith ARG...
13106 # ------------------
13107 # Perform arithmetic evaluation on the ARGs, and store the result in the
13108 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13109 # must be portable across $(()) and expr.
13110 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13111   eval 'as_fn_arith ()
13112   {
13113     as_val=$(( $* ))
13114   }'
13115 else
13116   as_fn_arith ()
13117   {
13118     as_val=`expr "$@" || test $? -eq 1`
13119   }
13120 fi # as_fn_arith
13121
13122
13123 if expr a : '\(a\)' >/dev/null 2>&1 &&
13124    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13125   as_expr=expr
13126 else
13127   as_expr=false
13128 fi
13129
13130 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13131   as_basename=basename
13132 else
13133   as_basename=false
13134 fi
13135
13136 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13137   as_dirname=dirname
13138 else
13139   as_dirname=false
13140 fi
13141
13142 as_me=`$as_basename -- "$0" ||
13143 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13144          X"$0" : 'X\(//\)$' \| \
13145          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13146 $as_echo X/"$0" |
13147     sed '/^.*\/\([^/][^/]*\)\/*$/{
13148             s//\1/
13149             q
13150           }
13151           /^X\/\(\/\/\)$/{
13152             s//\1/
13153             q
13154           }
13155           /^X\/\(\/\).*/{
13156             s//\1/
13157             q
13158           }
13159           s/.*/./; q'`
13160
13161 # Avoid depending upon Character Ranges.
13162 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13163 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13164 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13165 as_cr_digits='0123456789'
13166 as_cr_alnum=$as_cr_Letters$as_cr_digits
13167
13168 ECHO_C= ECHO_N= ECHO_T=
13169 case `echo -n x` in #(((((
13170 -n*)
13171   case `echo 'xy\c'` in
13172   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13173   xy)  ECHO_C='\c';;
13174   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13175        ECHO_T=' ';;
13176   esac;;
13177 *)
13178   ECHO_N='-n';;
13179 esac
13180
13181 rm -f conf$$ conf$$.exe conf$$.file
13182 if test -d conf$$.dir; then
13183   rm -f conf$$.dir/conf$$.file
13184 else
13185   rm -f conf$$.dir
13186   mkdir conf$$.dir 2>/dev/null
13187 fi
13188 if (echo >conf$$.file) 2>/dev/null; then
13189   if ln -s conf$$.file conf$$ 2>/dev/null; then
13190     as_ln_s='ln -s'
13191     # ... but there are two gotchas:
13192     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13193     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13194     # In both cases, we have to default to `cp -pR'.
13195     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13196       as_ln_s='cp -pR'
13197   elif ln conf$$.file conf$$ 2>/dev/null; then
13198     as_ln_s=ln
13199   else
13200     as_ln_s='cp -pR'
13201   fi
13202 else
13203   as_ln_s='cp -pR'
13204 fi
13205 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13206 rmdir conf$$.dir 2>/dev/null
13207
13208
13209 # as_fn_mkdir_p
13210 # -------------
13211 # Create "$as_dir" as a directory, including parents if necessary.
13212 as_fn_mkdir_p ()
13213 {
13214
13215   case $as_dir in #(
13216   -*) as_dir=./$as_dir;;
13217   esac
13218   test -d "$as_dir" || eval $as_mkdir_p || {
13219     as_dirs=
13220     while :; do
13221       case $as_dir in #(
13222       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13223       *) as_qdir=$as_dir;;
13224       esac
13225       as_dirs="'$as_qdir' $as_dirs"
13226       as_dir=`$as_dirname -- "$as_dir" ||
13227 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13228          X"$as_dir" : 'X\(//\)[^/]' \| \
13229          X"$as_dir" : 'X\(//\)$' \| \
13230          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13231 $as_echo X"$as_dir" |
13232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13233             s//\1/
13234             q
13235           }
13236           /^X\(\/\/\)[^/].*/{
13237             s//\1/
13238             q
13239           }
13240           /^X\(\/\/\)$/{
13241             s//\1/
13242             q
13243           }
13244           /^X\(\/\).*/{
13245             s//\1/
13246             q
13247           }
13248           s/.*/./; q'`
13249       test -d "$as_dir" && break
13250     done
13251     test -z "$as_dirs" || eval "mkdir $as_dirs"
13252   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13253
13254
13255 } # as_fn_mkdir_p
13256 if mkdir -p . 2>/dev/null; then
13257   as_mkdir_p='mkdir -p "$as_dir"'
13258 else
13259   test -d ./-p && rmdir ./-p
13260   as_mkdir_p=false
13261 fi
13262
13263
13264 # as_fn_executable_p FILE
13265 # -----------------------
13266 # Test if FILE is an executable regular file.
13267 as_fn_executable_p ()
13268 {
13269   test -f "$1" && test -x "$1"
13270 } # as_fn_executable_p
13271 as_test_x='test -x'
13272 as_executable_p=as_fn_executable_p
13273
13274 # Sed expression to map a string onto a valid CPP name.
13275 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13276
13277 # Sed expression to map a string onto a valid variable name.
13278 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13279
13280
13281 exec 6>&1
13282 ## ----------------------------------- ##
13283 ## Main body of $CONFIG_STATUS script. ##
13284 ## ----------------------------------- ##
13285 _ASEOF
13286 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13287
13288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13289 # Save the log message, to keep $0 and so on meaningful, and to
13290 # report actual input values of CONFIG_FILES etc. instead of their
13291 # values after options handling.
13292 ac_log="
13293 This file was extended by sqlite $as_me 3.9.2, which was
13294 generated by GNU Autoconf 2.69.  Invocation command line was
13295
13296   CONFIG_FILES    = $CONFIG_FILES
13297   CONFIG_HEADERS  = $CONFIG_HEADERS
13298   CONFIG_LINKS    = $CONFIG_LINKS
13299   CONFIG_COMMANDS = $CONFIG_COMMANDS
13300   $ $0 $@
13301
13302 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13303 "
13304
13305 _ACEOF
13306
13307 case $ac_config_files in *"
13308 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13309 esac
13310
13311
13312
13313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13314 # Files that config.status was made for.
13315 config_files="$ac_config_files"
13316 config_commands="$ac_config_commands"
13317
13318 _ACEOF
13319
13320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13321 ac_cs_usage="\
13322 \`$as_me' instantiates files and other configuration actions
13323 from templates according to the current configuration.  Unless the files
13324 and actions are specified as TAGs, all are instantiated by default.
13325
13326 Usage: $0 [OPTION]... [TAG]...
13327
13328   -h, --help       print this help, then exit
13329   -V, --version    print version number and configuration settings, then exit
13330       --config     print configuration, then exit
13331   -q, --quiet, --silent
13332                    do not print progress messages
13333   -d, --debug      don't remove temporary files
13334       --recheck    update $as_me by reconfiguring in the same conditions
13335       --file=FILE[:TEMPLATE]
13336                    instantiate the configuration file FILE
13337
13338 Configuration files:
13339 $config_files
13340
13341 Configuration commands:
13342 $config_commands
13343
13344 Report bugs to <http://www.sqlite.org>."
13345
13346 _ACEOF
13347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13348 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13349 ac_cs_version="\\
13350 sqlite config.status 3.9.2
13351 configured by $0, generated by GNU Autoconf 2.69,
13352   with options \\"\$ac_cs_config\\"
13353
13354 Copyright (C) 2012 Free Software Foundation, Inc.
13355 This config.status script is free software; the Free Software Foundation
13356 gives unlimited permission to copy, distribute and modify it."
13357
13358 ac_pwd='$ac_pwd'
13359 srcdir='$srcdir'
13360 INSTALL='$INSTALL'
13361 MKDIR_P='$MKDIR_P'
13362 AWK='$AWK'
13363 test -n "\$AWK" || AWK=awk
13364 _ACEOF
13365
13366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13367 # The default lists apply if the user does not specify any file.
13368 ac_need_defaults=:
13369 while test $# != 0
13370 do
13371   case $1 in
13372   --*=?*)
13373     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13374     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13375     ac_shift=:
13376     ;;
13377   --*=)
13378     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13379     ac_optarg=
13380     ac_shift=:
13381     ;;
13382   *)
13383     ac_option=$1
13384     ac_optarg=$2
13385     ac_shift=shift
13386     ;;
13387   esac
13388
13389   case $ac_option in
13390   # Handling of the options.
13391   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13392     ac_cs_recheck=: ;;
13393   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13394     $as_echo "$ac_cs_version"; exit ;;
13395   --config | --confi | --conf | --con | --co | --c )
13396     $as_echo "$ac_cs_config"; exit ;;
13397   --debug | --debu | --deb | --de | --d | -d )
13398     debug=: ;;
13399   --file | --fil | --fi | --f )
13400     $ac_shift
13401     case $ac_optarg in
13402     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13403     '') as_fn_error $? "missing file argument" ;;
13404     esac
13405     as_fn_append CONFIG_FILES " '$ac_optarg'"
13406     ac_need_defaults=false;;
13407   --he | --h |  --help | --hel | -h )
13408     $as_echo "$ac_cs_usage"; exit ;;
13409   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13410   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13411     ac_cs_silent=: ;;
13412
13413   # This is an error.
13414   -*) as_fn_error $? "unrecognized option: \`$1'
13415 Try \`$0 --help' for more information." ;;
13416
13417   *) as_fn_append ac_config_targets " $1"
13418      ac_need_defaults=false ;;
13419
13420   esac
13421   shift
13422 done
13423
13424 ac_configure_extra_args=
13425
13426 if $ac_cs_silent; then
13427   exec 6>/dev/null
13428   ac_configure_extra_args="$ac_configure_extra_args --silent"
13429 fi
13430
13431 _ACEOF
13432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13433 if \$ac_cs_recheck; then
13434   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13435   shift
13436   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13437   CONFIG_SHELL='$SHELL'
13438   export CONFIG_SHELL
13439   exec "\$@"
13440 fi
13441
13442 _ACEOF
13443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13444 exec 5>>config.log
13445 {
13446   echo
13447   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13448 ## Running $as_me. ##
13449 _ASBOX
13450   $as_echo "$ac_log"
13451 } >&5
13452
13453 _ACEOF
13454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13455 #
13456 # INIT-COMMANDS
13457 #
13458 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13459
13460
13461 # The HP-UX ksh and POSIX shell print the target directory to stdout
13462 # if CDPATH is set.
13463 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13464
13465 sed_quote_subst='$sed_quote_subst'
13466 double_quote_subst='$double_quote_subst'
13467 delay_variable_subst='$delay_variable_subst'
13468 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13469 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13470 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13471 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13472 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13473 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13474 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13475 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13476 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13477 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13478 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13479 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13480 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13481 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13482 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13483 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13484 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13485 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13486 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13487 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13488 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13489 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13490 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13491 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13492 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13493 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13494 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13495 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13496 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13497 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13498 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13499 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13500 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13501 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13502 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13503 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13504 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13505 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13506 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13507 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13508 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13509 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13510 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13511 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13512 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13513 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13514 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13515 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13516 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13517 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13518 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13519 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13520 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13521 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13522 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13523 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13524 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"`'
13525 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13526 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13527 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13528 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13529 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13530 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13531 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13532 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13533 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13534 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13535 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13536 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13537 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13538 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13539 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13540 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13541 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13542 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13543 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13544 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13545 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13546 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13547 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13548 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13549 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13550 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13551 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13552 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13553 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13554 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13555 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13556 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13557 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13558 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13559 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13560 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13561 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13562 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13563 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13564 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13565 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13566 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13567 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13568 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13569 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13570 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13571 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13572 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13573 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13574 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13575 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13576 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13577 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13578 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13579 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13580 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13581 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13582 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13583 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13584 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13585 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13586 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13587 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13588 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13589 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13590 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13591 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13592 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13593 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13594 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13595 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13596 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13597 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13598
13599 LTCC='$LTCC'
13600 LTCFLAGS='$LTCFLAGS'
13601 compiler='$compiler_DEFAULT'
13602
13603 # A function that is used when there is no print builtin or printf.
13604 func_fallback_echo ()
13605 {
13606   eval 'cat <<_LTECHO_EOF
13607 \$1
13608 _LTECHO_EOF'
13609 }
13610
13611 # Quote evaled strings.
13612 for var in SHELL \
13613 ECHO \
13614 PATH_SEPARATOR \
13615 SED \
13616 GREP \
13617 EGREP \
13618 FGREP \
13619 LD \
13620 NM \
13621 LN_S \
13622 lt_SP2NL \
13623 lt_NL2SP \
13624 reload_flag \
13625 OBJDUMP \
13626 deplibs_check_method \
13627 file_magic_cmd \
13628 file_magic_glob \
13629 want_nocaseglob \
13630 DLLTOOL \
13631 sharedlib_from_linklib_cmd \
13632 AR \
13633 AR_FLAGS \
13634 archiver_list_spec \
13635 STRIP \
13636 RANLIB \
13637 CC \
13638 CFLAGS \
13639 compiler \
13640 lt_cv_sys_global_symbol_pipe \
13641 lt_cv_sys_global_symbol_to_cdecl \
13642 lt_cv_sys_global_symbol_to_c_name_address \
13643 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13644 nm_file_list_spec \
13645 lt_prog_compiler_no_builtin_flag \
13646 lt_prog_compiler_pic \
13647 lt_prog_compiler_wl \
13648 lt_prog_compiler_static \
13649 lt_cv_prog_compiler_c_o \
13650 need_locks \
13651 MANIFEST_TOOL \
13652 DSYMUTIL \
13653 NMEDIT \
13654 LIPO \
13655 OTOOL \
13656 OTOOL64 \
13657 shrext_cmds \
13658 export_dynamic_flag_spec \
13659 whole_archive_flag_spec \
13660 compiler_needs_object \
13661 with_gnu_ld \
13662 allow_undefined_flag \
13663 no_undefined_flag \
13664 hardcode_libdir_flag_spec \
13665 hardcode_libdir_separator \
13666 exclude_expsyms \
13667 include_expsyms \
13668 file_list_spec \
13669 variables_saved_for_relink \
13670 libname_spec \
13671 library_names_spec \
13672 soname_spec \
13673 install_override_mode \
13674 finish_eval \
13675 old_striplib \
13676 striplib; do
13677     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13678     *[\\\\\\\`\\"\\\$]*)
13679       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13680       ;;
13681     *)
13682       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13683       ;;
13684     esac
13685 done
13686
13687 # Double-quote double-evaled strings.
13688 for var in reload_cmds \
13689 old_postinstall_cmds \
13690 old_postuninstall_cmds \
13691 old_archive_cmds \
13692 extract_expsyms_cmds \
13693 old_archive_from_new_cmds \
13694 old_archive_from_expsyms_cmds \
13695 archive_cmds \
13696 archive_expsym_cmds \
13697 module_cmds \
13698 module_expsym_cmds \
13699 export_symbols_cmds \
13700 prelink_cmds \
13701 postlink_cmds \
13702 postinstall_cmds \
13703 postuninstall_cmds \
13704 finish_cmds \
13705 sys_lib_search_path_spec \
13706 sys_lib_dlsearch_path_spec; do
13707     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13708     *[\\\\\\\`\\"\\\$]*)
13709       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13710       ;;
13711     *)
13712       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13713       ;;
13714     esac
13715 done
13716
13717 ac_aux_dir='$ac_aux_dir'
13718 xsi_shell='$xsi_shell'
13719 lt_shell_append='$lt_shell_append'
13720
13721 # See if we are running on zsh, and set the options which allow our
13722 # commands through without removal of \ escapes INIT.
13723 if test -n "\${ZSH_VERSION+set}" ; then
13724    setopt NO_GLOB_SUBST
13725 fi
13726
13727
13728     PACKAGE='$PACKAGE'
13729     VERSION='$VERSION'
13730     TIMESTAMP='$TIMESTAMP'
13731     RM='$RM'
13732     ofile='$ofile'
13733
13734
13735
13736
13737 _ACEOF
13738
13739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13740
13741 # Handling of arguments.
13742 for ac_config_target in $ac_config_targets
13743 do
13744   case $ac_config_target in
13745     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13746     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13747     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13748     "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
13749
13750   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13751   esac
13752 done
13753
13754
13755 # If the user did not use the arguments to specify the items to instantiate,
13756 # then the envvar interface is used.  Set only those that are not.
13757 # We use the long form for the default assignment because of an extremely
13758 # bizarre bug on SunOS 4.1.3.
13759 if $ac_need_defaults; then
13760   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13761   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13762 fi
13763
13764 # Have a temporary directory for convenience.  Make it in the build tree
13765 # simply because there is no reason against having it here, and in addition,
13766 # creating and moving files from /tmp can sometimes cause problems.
13767 # Hook for its removal unless debugging.
13768 # Note that there is a small window in which the directory will not be cleaned:
13769 # after its creation but before its name has been assigned to `$tmp'.
13770 $debug ||
13771 {
13772   tmp= ac_tmp=
13773   trap 'exit_status=$?
13774   : "${ac_tmp:=$tmp}"
13775   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13776 ' 0
13777   trap 'as_fn_exit 1' 1 2 13 15
13778 }
13779 # Create a (secure) tmp directory for tmp files.
13780
13781 {
13782   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13783   test -d "$tmp"
13784 }  ||
13785 {
13786   tmp=./conf$$-$RANDOM
13787   (umask 077 && mkdir "$tmp")
13788 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13789 ac_tmp=$tmp
13790
13791 # Set up the scripts for CONFIG_FILES section.
13792 # No need to generate them if there are no CONFIG_FILES.
13793 # This happens for instance with `./config.status config.h'.
13794 if test -n "$CONFIG_FILES"; then
13795
13796
13797 ac_cr=`echo X | tr X '\015'`
13798 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13799 # But we know of no other shell where ac_cr would be empty at this
13800 # point, so we can use a bashism as a fallback.
13801 if test "x$ac_cr" = x; then
13802   eval ac_cr=\$\'\\r\'
13803 fi
13804 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13805 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13806   ac_cs_awk_cr='\\r'
13807 else
13808   ac_cs_awk_cr=$ac_cr
13809 fi
13810
13811 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13812 _ACEOF
13813
13814
13815 {
13816   echo "cat >conf$$subs.awk <<_ACEOF" &&
13817   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13818   echo "_ACEOF"
13819 } >conf$$subs.sh ||
13820   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13821 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13822 ac_delim='%!_!# '
13823 for ac_last_try in false false false false false :; do
13824   . ./conf$$subs.sh ||
13825     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13826
13827   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13828   if test $ac_delim_n = $ac_delim_num; then
13829     break
13830   elif $ac_last_try; then
13831     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13832   else
13833     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13834   fi
13835 done
13836 rm -f conf$$subs.sh
13837
13838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13839 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13840 _ACEOF
13841 sed -n '
13842 h
13843 s/^/S["/; s/!.*/"]=/
13844 p
13845 g
13846 s/^[^!]*!//
13847 :repl
13848 t repl
13849 s/'"$ac_delim"'$//
13850 t delim
13851 :nl
13852 h
13853 s/\(.\{148\}\)..*/\1/
13854 t more1
13855 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13856 p
13857 n
13858 b repl
13859 :more1
13860 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13861 p
13862 g
13863 s/.\{148\}//
13864 t nl
13865 :delim
13866 h
13867 s/\(.\{148\}\)..*/\1/
13868 t more2
13869 s/["\\]/\\&/g; s/^/"/; s/$/"/
13870 p
13871 b
13872 :more2
13873 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13874 p
13875 g
13876 s/.\{148\}//
13877 t delim
13878 ' <conf$$subs.awk | sed '
13879 /^[^""]/{
13880   N
13881   s/\n//
13882 }
13883 ' >>$CONFIG_STATUS || ac_write_fail=1
13884 rm -f conf$$subs.awk
13885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13886 _ACAWK
13887 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13888   for (key in S) S_is_set[key] = 1
13889   FS = "\a"
13890
13891 }
13892 {
13893   line = $ 0
13894   nfields = split(line, field, "@")
13895   substed = 0
13896   len = length(field[1])
13897   for (i = 2; i < nfields; i++) {
13898     key = field[i]
13899     keylen = length(key)
13900     if (S_is_set[key]) {
13901       value = S[key]
13902       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13903       len += length(value) + length(field[++i])
13904       substed = 1
13905     } else
13906       len += 1 + keylen
13907   }
13908
13909   print line
13910 }
13911
13912 _ACAWK
13913 _ACEOF
13914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13915 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13916   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13917 else
13918   cat
13919 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13920   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13921 _ACEOF
13922
13923 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13924 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13925 # trailing colons and then remove the whole line if VPATH becomes empty
13926 # (actually we leave an empty line to preserve line numbers).
13927 if test "x$srcdir" = x.; then
13928   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13929 h
13930 s///
13931 s/^/:/
13932 s/[      ]*$/:/
13933 s/:\$(srcdir):/:/g
13934 s/:\${srcdir}:/:/g
13935 s/:@srcdir@:/:/g
13936 s/^:*//
13937 s/:*$//
13938 x
13939 s/\(=[   ]*\).*/\1/
13940 G
13941 s/\n//
13942 s/^[^=]*=[       ]*$//
13943 }'
13944 fi
13945
13946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13947 fi # test -n "$CONFIG_FILES"
13948
13949
13950 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13951 shift
13952 for ac_tag
13953 do
13954   case $ac_tag in
13955   :[FHLC]) ac_mode=$ac_tag; continue;;
13956   esac
13957   case $ac_mode$ac_tag in
13958   :[FHL]*:*);;
13959   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13960   :[FH]-) ac_tag=-:-;;
13961   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13962   esac
13963   ac_save_IFS=$IFS
13964   IFS=:
13965   set x $ac_tag
13966   IFS=$ac_save_IFS
13967   shift
13968   ac_file=$1
13969   shift
13970
13971   case $ac_mode in
13972   :L) ac_source=$1;;
13973   :[FH])
13974     ac_file_inputs=
13975     for ac_f
13976     do
13977       case $ac_f in
13978       -) ac_f="$ac_tmp/stdin";;
13979       *) # Look for the file first in the build tree, then in the source tree
13980          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13981          # because $ac_f cannot contain `:'.
13982          test -f "$ac_f" ||
13983            case $ac_f in
13984            [\\/$]*) false;;
13985            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13986            esac ||
13987            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13988       esac
13989       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13990       as_fn_append ac_file_inputs " '$ac_f'"
13991     done
13992
13993     # Let's still pretend it is `configure' which instantiates (i.e., don't
13994     # use $as_me), people would be surprised to read:
13995     #    /* config.h.  Generated by config.status.  */
13996     configure_input='Generated from '`
13997           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13998         `' by configure.'
13999     if test x"$ac_file" != x-; then
14000       configure_input="$ac_file.  $configure_input"
14001       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14002 $as_echo "$as_me: creating $ac_file" >&6;}
14003     fi
14004     # Neutralize special characters interpreted by sed in replacement strings.
14005     case $configure_input in #(
14006     *\&* | *\|* | *\\* )
14007        ac_sed_conf_input=`$as_echo "$configure_input" |
14008        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14009     *) ac_sed_conf_input=$configure_input;;
14010     esac
14011
14012     case $ac_tag in
14013     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14014       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14015     esac
14016     ;;
14017   esac
14018
14019   ac_dir=`$as_dirname -- "$ac_file" ||
14020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14021          X"$ac_file" : 'X\(//\)[^/]' \| \
14022          X"$ac_file" : 'X\(//\)$' \| \
14023          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14024 $as_echo X"$ac_file" |
14025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14026             s//\1/
14027             q
14028           }
14029           /^X\(\/\/\)[^/].*/{
14030             s//\1/
14031             q
14032           }
14033           /^X\(\/\/\)$/{
14034             s//\1/
14035             q
14036           }
14037           /^X\(\/\).*/{
14038             s//\1/
14039             q
14040           }
14041           s/.*/./; q'`
14042   as_dir="$ac_dir"; as_fn_mkdir_p
14043   ac_builddir=.
14044
14045 case "$ac_dir" in
14046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14047 *)
14048   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14049   # A ".." for each directory in $ac_dir_suffix.
14050   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14051   case $ac_top_builddir_sub in
14052   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14053   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14054   esac ;;
14055 esac
14056 ac_abs_top_builddir=$ac_pwd
14057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14058 # for backward compatibility:
14059 ac_top_builddir=$ac_top_build_prefix
14060
14061 case $srcdir in
14062   .)  # We are building in place.
14063     ac_srcdir=.
14064     ac_top_srcdir=$ac_top_builddir_sub
14065     ac_abs_top_srcdir=$ac_pwd ;;
14066   [\\/]* | ?:[\\/]* )  # Absolute name.
14067     ac_srcdir=$srcdir$ac_dir_suffix;
14068     ac_top_srcdir=$srcdir
14069     ac_abs_top_srcdir=$srcdir ;;
14070   *) # Relative name.
14071     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14072     ac_top_srcdir=$ac_top_build_prefix$srcdir
14073     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14074 esac
14075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14076
14077
14078   case $ac_mode in
14079   :F)
14080   #
14081   # CONFIG_FILE
14082   #
14083
14084   case $INSTALL in
14085   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14086   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14087   esac
14088   ac_MKDIR_P=$MKDIR_P
14089   case $MKDIR_P in
14090   [\\/$]* | ?:[\\/]* ) ;;
14091   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14092   esac
14093 _ACEOF
14094
14095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14096 # If the template does not know about datarootdir, expand it.
14097 # FIXME: This hack should be removed a few years after 2.60.
14098 ac_datarootdir_hack=; ac_datarootdir_seen=
14099 ac_sed_dataroot='
14100 /datarootdir/ {
14101   p
14102   q
14103 }
14104 /@datadir@/p
14105 /@docdir@/p
14106 /@infodir@/p
14107 /@localedir@/p
14108 /@mandir@/p'
14109 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14110 *datarootdir*) ac_datarootdir_seen=yes;;
14111 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14112   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14113 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14114 _ACEOF
14115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14116   ac_datarootdir_hack='
14117   s&@datadir@&$datadir&g
14118   s&@docdir@&$docdir&g
14119   s&@infodir@&$infodir&g
14120   s&@localedir@&$localedir&g
14121   s&@mandir@&$mandir&g
14122   s&\\\${datarootdir}&$datarootdir&g' ;;
14123 esac
14124 _ACEOF
14125
14126 # Neutralize VPATH when `$srcdir' = `.'.
14127 # Shell code in configure.ac might set extrasub.
14128 # FIXME: do we really want to maintain this feature?
14129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14130 ac_sed_extra="$ac_vpsub
14131 $extrasub
14132 _ACEOF
14133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14134 :t
14135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14136 s|@configure_input@|$ac_sed_conf_input|;t t
14137 s&@top_builddir@&$ac_top_builddir_sub&;t t
14138 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14139 s&@srcdir@&$ac_srcdir&;t t
14140 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14141 s&@top_srcdir@&$ac_top_srcdir&;t t
14142 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14143 s&@builddir@&$ac_builddir&;t t
14144 s&@abs_builddir@&$ac_abs_builddir&;t t
14145 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14146 s&@INSTALL@&$ac_INSTALL&;t t
14147 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14148 $ac_datarootdir_hack
14149 "
14150 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14151   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14152
14153 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14154   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14155   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14156       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14157   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14158 which seems to be undefined.  Please make sure it is defined" >&5
14159 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14160 which seems to be undefined.  Please make sure it is defined" >&2;}
14161
14162   rm -f "$ac_tmp/stdin"
14163   case $ac_file in
14164   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14165   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14166   esac \
14167   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14168  ;;
14169
14170
14171   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14172 $as_echo "$as_me: executing $ac_file commands" >&6;}
14173  ;;
14174   esac
14175
14176
14177   case $ac_file$ac_mode in
14178     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14179   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14180   # are listed without --file.  Let's play safe and only enable the eval
14181   # if we detect the quoting.
14182   case $CONFIG_FILES in
14183   *\'*) eval set x "$CONFIG_FILES" ;;
14184   *)   set x $CONFIG_FILES ;;
14185   esac
14186   shift
14187   for mf
14188   do
14189     # Strip MF so we end up with the name of the file.
14190     mf=`echo "$mf" | sed -e 's/:.*$//'`
14191     # Check whether this is an Automake generated Makefile or not.
14192     # We used to match only the files named `Makefile.in', but
14193     # some people rename them; so instead we look at the file content.
14194     # Grep'ing the first line is not enough: some people post-process
14195     # each Makefile.in and add a new line on top of each file to say so.
14196     # Grep'ing the whole file is not good either: AIX grep has a line
14197     # limit of 2048, but all sed's we know have understand at least 4000.
14198     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14199       dirpart=`$as_dirname -- "$mf" ||
14200 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14201          X"$mf" : 'X\(//\)[^/]' \| \
14202          X"$mf" : 'X\(//\)$' \| \
14203          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14204 $as_echo X"$mf" |
14205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14206             s//\1/
14207             q
14208           }
14209           /^X\(\/\/\)[^/].*/{
14210             s//\1/
14211             q
14212           }
14213           /^X\(\/\/\)$/{
14214             s//\1/
14215             q
14216           }
14217           /^X\(\/\).*/{
14218             s//\1/
14219             q
14220           }
14221           s/.*/./; q'`
14222     else
14223       continue
14224     fi
14225     # Extract the definition of DEPDIR, am__include, and am__quote
14226     # from the Makefile without running `make'.
14227     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14228     test -z "$DEPDIR" && continue
14229     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14230     test -z "am__include" && continue
14231     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14232     # When using ansi2knr, U may be empty or an underscore; expand it
14233     U=`sed -n 's/^U = //p' < "$mf"`
14234     # Find all dependency output files, they are included files with
14235     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14236     # simplest approach to changing $(DEPDIR) to its actual value in the
14237     # expansion.
14238     for file in `sed -n "
14239       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14240          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14241       # Make sure the directory exists.
14242       test -f "$dirpart/$file" && continue
14243       fdir=`$as_dirname -- "$file" ||
14244 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14245          X"$file" : 'X\(//\)[^/]' \| \
14246          X"$file" : 'X\(//\)$' \| \
14247          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14248 $as_echo X"$file" |
14249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14250             s//\1/
14251             q
14252           }
14253           /^X\(\/\/\)[^/].*/{
14254             s//\1/
14255             q
14256           }
14257           /^X\(\/\/\)$/{
14258             s//\1/
14259             q
14260           }
14261           /^X\(\/\).*/{
14262             s//\1/
14263             q
14264           }
14265           s/.*/./; q'`
14266       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14267       # echo "creating $dirpart/$file"
14268       echo '# dummy' > "$dirpart/$file"
14269     done
14270   done
14271 }
14272  ;;
14273     "libtool":C)
14274
14275     # See if we are running on zsh, and set the options which allow our
14276     # commands through without removal of \ escapes.
14277     if test -n "${ZSH_VERSION+set}" ; then
14278       setopt NO_GLOB_SUBST
14279     fi
14280
14281     cfgfile="${ofile}T"
14282     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14283     $RM "$cfgfile"
14284
14285     cat <<_LT_EOF >> "$cfgfile"
14286 #! $SHELL
14287
14288 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14289 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14290 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14291 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14292 #
14293 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14294 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14295 #                 Foundation, Inc.
14296 #   Written by Gordon Matzigkeit, 1996
14297 #
14298 #   This file is part of GNU Libtool.
14299 #
14300 # GNU Libtool is free software; you can redistribute it and/or
14301 # modify it under the terms of the GNU General Public License as
14302 # published by the Free Software Foundation; either version 2 of
14303 # the License, or (at your option) any later version.
14304 #
14305 # As a special exception to the GNU General Public License,
14306 # if you distribute this file as part of a program or library that
14307 # is built using GNU Libtool, you may include this file under the
14308 # same distribution terms that you use for the rest of that program.
14309 #
14310 # GNU Libtool is distributed in the hope that it will be useful,
14311 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14312 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14313 # GNU General Public License for more details.
14314 #
14315 # You should have received a copy of the GNU General Public License
14316 # along with GNU Libtool; see the file COPYING.  If not, a copy
14317 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14318 # obtained by writing to the Free Software Foundation, Inc.,
14319 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14320
14321
14322 # The names of the tagged configurations supported by this script.
14323 available_tags=""
14324
14325 # ### BEGIN LIBTOOL CONFIG
14326
14327 # Which release of libtool.m4 was used?
14328 macro_version=$macro_version
14329 macro_revision=$macro_revision
14330
14331 # Whether or not to build shared libraries.
14332 build_libtool_libs=$enable_shared
14333
14334 # Whether or not to build static libraries.
14335 build_old_libs=$enable_static
14336
14337 # What type of objects to build.
14338 pic_mode=$pic_mode
14339
14340 # Whether or not to optimize for fast installation.
14341 fast_install=$enable_fast_install
14342
14343 # Shell to use when invoking shell scripts.
14344 SHELL=$lt_SHELL
14345
14346 # An echo program that protects backslashes.
14347 ECHO=$lt_ECHO
14348
14349 # The PATH separator for the build system.
14350 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14351
14352 # The host system.
14353 host_alias=$host_alias
14354 host=$host
14355 host_os=$host_os
14356
14357 # The build system.
14358 build_alias=$build_alias
14359 build=$build
14360 build_os=$build_os
14361
14362 # A sed program that does not truncate output.
14363 SED=$lt_SED
14364
14365 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14366 Xsed="\$SED -e 1s/^X//"
14367
14368 # A grep program that handles long lines.
14369 GREP=$lt_GREP
14370
14371 # An ERE matcher.
14372 EGREP=$lt_EGREP
14373
14374 # A literal string matcher.
14375 FGREP=$lt_FGREP
14376
14377 # A BSD- or MS-compatible name lister.
14378 NM=$lt_NM
14379
14380 # Whether we need soft or hard links.
14381 LN_S=$lt_LN_S
14382
14383 # What is the maximum length of a command?
14384 max_cmd_len=$max_cmd_len
14385
14386 # Object file suffix (normally "o").
14387 objext=$ac_objext
14388
14389 # Executable file suffix (normally "").
14390 exeext=$exeext
14391
14392 # whether the shell understands "unset".
14393 lt_unset=$lt_unset
14394
14395 # turn spaces into newlines.
14396 SP2NL=$lt_lt_SP2NL
14397
14398 # turn newlines into spaces.
14399 NL2SP=$lt_lt_NL2SP
14400
14401 # convert \$build file names to \$host format.
14402 to_host_file_cmd=$lt_cv_to_host_file_cmd
14403
14404 # convert \$build files to toolchain format.
14405 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14406
14407 # An object symbol dumper.
14408 OBJDUMP=$lt_OBJDUMP
14409
14410 # Method to check whether dependent libraries are shared objects.
14411 deplibs_check_method=$lt_deplibs_check_method
14412
14413 # Command to use when deplibs_check_method = "file_magic".
14414 file_magic_cmd=$lt_file_magic_cmd
14415
14416 # How to find potential files when deplibs_check_method = "file_magic".
14417 file_magic_glob=$lt_file_magic_glob
14418
14419 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14420 want_nocaseglob=$lt_want_nocaseglob
14421
14422 # DLL creation program.
14423 DLLTOOL=$lt_DLLTOOL
14424
14425 # Command to associate shared and link libraries.
14426 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14427
14428 # The archiver.
14429 AR=$lt_AR
14430
14431 # Flags to create an archive.
14432 AR_FLAGS=$lt_AR_FLAGS
14433
14434 # How to feed a file listing to the archiver.
14435 archiver_list_spec=$lt_archiver_list_spec
14436
14437 # A symbol stripping program.
14438 STRIP=$lt_STRIP
14439
14440 # Commands used to install an old-style archive.
14441 RANLIB=$lt_RANLIB
14442 old_postinstall_cmds=$lt_old_postinstall_cmds
14443 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14444
14445 # Whether to use a lock for old archive extraction.
14446 lock_old_archive_extraction=$lock_old_archive_extraction
14447
14448 # A C compiler.
14449 LTCC=$lt_CC
14450
14451 # LTCC compiler flags.
14452 LTCFLAGS=$lt_CFLAGS
14453
14454 # Take the output of nm and produce a listing of raw symbols and C names.
14455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14456
14457 # Transform the output of nm in a proper C declaration.
14458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14459
14460 # Transform the output of nm in a C name address pair.
14461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14462
14463 # Transform the output of nm in a C name address pair when lib prefix is needed.
14464 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14465
14466 # Specify filename containing input files for \$NM.
14467 nm_file_list_spec=$lt_nm_file_list_spec
14468
14469 # The root where to search for dependent libraries,and in which our libraries should be installed.
14470 lt_sysroot=$lt_sysroot
14471
14472 # The name of the directory that contains temporary libtool files.
14473 objdir=$objdir
14474
14475 # Used to examine libraries when file_magic_cmd begins with "file".
14476 MAGIC_CMD=$MAGIC_CMD
14477
14478 # Must we lock files when doing compilation?
14479 need_locks=$lt_need_locks
14480
14481 # Manifest tool.
14482 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14483
14484 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14485 DSYMUTIL=$lt_DSYMUTIL
14486
14487 # Tool to change global to local symbols on Mac OS X.
14488 NMEDIT=$lt_NMEDIT
14489
14490 # Tool to manipulate fat objects and archives on Mac OS X.
14491 LIPO=$lt_LIPO
14492
14493 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14494 OTOOL=$lt_OTOOL
14495
14496 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14497 OTOOL64=$lt_OTOOL64
14498
14499 # Old archive suffix (normally "a").
14500 libext=$libext
14501
14502 # Shared library suffix (normally ".so").
14503 shrext_cmds=$lt_shrext_cmds
14504
14505 # The commands to extract the exported symbol list from a shared archive.
14506 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14507
14508 # Variables whose values should be saved in libtool wrapper scripts and
14509 # restored at link time.
14510 variables_saved_for_relink=$lt_variables_saved_for_relink
14511
14512 # Do we need the "lib" prefix for modules?
14513 need_lib_prefix=$need_lib_prefix
14514
14515 # Do we need a version for libraries?
14516 need_version=$need_version
14517
14518 # Library versioning type.
14519 version_type=$version_type
14520
14521 # Shared library runtime path variable.
14522 runpath_var=$runpath_var
14523
14524 # Shared library path variable.
14525 shlibpath_var=$shlibpath_var
14526
14527 # Is shlibpath searched before the hard-coded library search path?
14528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14529
14530 # Format of library name prefix.
14531 libname_spec=$lt_libname_spec
14532
14533 # List of archive names.  First name is the real one, the rest are links.
14534 # The last name is the one that the linker finds with -lNAME
14535 library_names_spec=$lt_library_names_spec
14536
14537 # The coded name of the library, if different from the real name.
14538 soname_spec=$lt_soname_spec
14539
14540 # Permission mode override for installation of shared libraries.
14541 install_override_mode=$lt_install_override_mode
14542
14543 # Command to use after installation of a shared archive.
14544 postinstall_cmds=$lt_postinstall_cmds
14545
14546 # Command to use after uninstallation of a shared archive.
14547 postuninstall_cmds=$lt_postuninstall_cmds
14548
14549 # Commands used to finish a libtool library installation in a directory.
14550 finish_cmds=$lt_finish_cmds
14551
14552 # As "finish_cmds", except a single script fragment to be evaled but
14553 # not shown.
14554 finish_eval=$lt_finish_eval
14555
14556 # Whether we should hardcode library paths into libraries.
14557 hardcode_into_libs=$hardcode_into_libs
14558
14559 # Compile-time system search path for libraries.
14560 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14561
14562 # Run-time system search path for libraries.
14563 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14564
14565 # Whether dlopen is supported.
14566 dlopen_support=$enable_dlopen
14567
14568 # Whether dlopen of programs is supported.
14569 dlopen_self=$enable_dlopen_self
14570
14571 # Whether dlopen of statically linked programs is supported.
14572 dlopen_self_static=$enable_dlopen_self_static
14573
14574 # Commands to strip libraries.
14575 old_striplib=$lt_old_striplib
14576 striplib=$lt_striplib
14577
14578
14579 # The linker used to build libraries.
14580 LD=$lt_LD
14581
14582 # How to create reloadable object files.
14583 reload_flag=$lt_reload_flag
14584 reload_cmds=$lt_reload_cmds
14585
14586 # Commands used to build an old-style archive.
14587 old_archive_cmds=$lt_old_archive_cmds
14588
14589 # A language specific compiler.
14590 CC=$lt_compiler
14591
14592 # Is the compiler the GNU compiler?
14593 with_gcc=$GCC
14594
14595 # Compiler flag to turn off builtin functions.
14596 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14597
14598 # Additional compiler flags for building library objects.
14599 pic_flag=$lt_lt_prog_compiler_pic
14600
14601 # How to pass a linker flag through the compiler.
14602 wl=$lt_lt_prog_compiler_wl
14603
14604 # Compiler flag to prevent dynamic linking.
14605 link_static_flag=$lt_lt_prog_compiler_static
14606
14607 # Does compiler simultaneously support -c and -o options?
14608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14609
14610 # Whether or not to add -lc for building shared libraries.
14611 build_libtool_need_lc=$archive_cmds_need_lc
14612
14613 # Whether or not to disallow shared libs when runtime libs are static.
14614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14615
14616 # Compiler flag to allow reflexive dlopens.
14617 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14618
14619 # Compiler flag to generate shared objects directly from archives.
14620 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14621
14622 # Whether the compiler copes with passing no objects directly.
14623 compiler_needs_object=$lt_compiler_needs_object
14624
14625 # Create an old-style archive from a shared archive.
14626 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14627
14628 # Create a temporary old-style archive to link instead of a shared archive.
14629 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14630
14631 # Commands used to build a shared archive.
14632 archive_cmds=$lt_archive_cmds
14633 archive_expsym_cmds=$lt_archive_expsym_cmds
14634
14635 # Commands used to build a loadable module if different from building
14636 # a shared archive.
14637 module_cmds=$lt_module_cmds
14638 module_expsym_cmds=$lt_module_expsym_cmds
14639
14640 # Whether we are building with GNU ld or not.
14641 with_gnu_ld=$lt_with_gnu_ld
14642
14643 # Flag that allows shared libraries with undefined symbols to be built.
14644 allow_undefined_flag=$lt_allow_undefined_flag
14645
14646 # Flag that enforces no undefined symbols.
14647 no_undefined_flag=$lt_no_undefined_flag
14648
14649 # Flag to hardcode \$libdir into a binary during linking.
14650 # This must work even if \$libdir does not exist
14651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14652
14653 # Whether we need a single "-rpath" flag with a separated argument.
14654 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14655
14656 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14657 # DIR into the resulting binary.
14658 hardcode_direct=$hardcode_direct
14659
14660 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14661 # DIR into the resulting binary and the resulting library dependency is
14662 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14663 # library is relocated.
14664 hardcode_direct_absolute=$hardcode_direct_absolute
14665
14666 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14667 # into the resulting binary.
14668 hardcode_minus_L=$hardcode_minus_L
14669
14670 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14671 # into the resulting binary.
14672 hardcode_shlibpath_var=$hardcode_shlibpath_var
14673
14674 # Set to "yes" if building a shared library automatically hardcodes DIR
14675 # into the library and all subsequent libraries and executables linked
14676 # against it.
14677 hardcode_automatic=$hardcode_automatic
14678
14679 # Set to yes if linker adds runtime paths of dependent libraries
14680 # to runtime path list.
14681 inherit_rpath=$inherit_rpath
14682
14683 # Whether libtool must link a program against all its dependency libraries.
14684 link_all_deplibs=$link_all_deplibs
14685
14686 # Set to "yes" if exported symbols are required.
14687 always_export_symbols=$always_export_symbols
14688
14689 # The commands to list exported symbols.
14690 export_symbols_cmds=$lt_export_symbols_cmds
14691
14692 # Symbols that should not be listed in the preloaded symbols.
14693 exclude_expsyms=$lt_exclude_expsyms
14694
14695 # Symbols that must always be exported.
14696 include_expsyms=$lt_include_expsyms
14697
14698 # Commands necessary for linking programs (against libraries) with templates.
14699 prelink_cmds=$lt_prelink_cmds
14700
14701 # Commands necessary for finishing linking programs.
14702 postlink_cmds=$lt_postlink_cmds
14703
14704 # Specify filename containing input files.
14705 file_list_spec=$lt_file_list_spec
14706
14707 # How to hardcode a shared library path into an executable.
14708 hardcode_action=$hardcode_action
14709
14710 # ### END LIBTOOL CONFIG
14711
14712 _LT_EOF
14713
14714   case $host_os in
14715   aix3*)
14716     cat <<\_LT_EOF >> "$cfgfile"
14717 # AIX sometimes has problems with the GCC collect2 program.  For some
14718 # reason, if we set the COLLECT_NAMES environment variable, the problems
14719 # vanish in a puff of smoke.
14720 if test "X${COLLECT_NAMES+set}" != Xset; then
14721   COLLECT_NAMES=
14722   export COLLECT_NAMES
14723 fi
14724 _LT_EOF
14725     ;;
14726   esac
14727
14728
14729 ltmain="$ac_aux_dir/ltmain.sh"
14730
14731
14732   # We use sed instead of cat because bash on DJGPP gets confused if
14733   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14734   # text mode, it properly converts lines to CR/LF.  This bash problem
14735   # is reportedly fixed, but why not run on old versions too?
14736   sed '$q' "$ltmain" >> "$cfgfile" \
14737      || (rm -f "$cfgfile"; exit 1)
14738
14739   if test x"$xsi_shell" = xyes; then
14740   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14741 func_dirname ()\
14742 {\
14743 \    case ${1} in\
14744 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14745 \      *  ) func_dirname_result="${3}" ;;\
14746 \    esac\
14747 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14748   && mv -f "$cfgfile.tmp" "$cfgfile" \
14749     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14750 test 0 -eq $? || _lt_function_replace_fail=:
14751
14752
14753   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14754 func_basename ()\
14755 {\
14756 \    func_basename_result="${1##*/}"\
14757 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14758   && mv -f "$cfgfile.tmp" "$cfgfile" \
14759     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14760 test 0 -eq $? || _lt_function_replace_fail=:
14761
14762
14763   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14764 func_dirname_and_basename ()\
14765 {\
14766 \    case ${1} in\
14767 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14768 \      *  ) func_dirname_result="${3}" ;;\
14769 \    esac\
14770 \    func_basename_result="${1##*/}"\
14771 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14772   && mv -f "$cfgfile.tmp" "$cfgfile" \
14773     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14774 test 0 -eq $? || _lt_function_replace_fail=:
14775
14776
14777   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14778 func_stripname ()\
14779 {\
14780 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14781 \    # positional parameters, so assign one to ordinary parameter first.\
14782 \    func_stripname_result=${3}\
14783 \    func_stripname_result=${func_stripname_result#"${1}"}\
14784 \    func_stripname_result=${func_stripname_result%"${2}"}\
14785 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14786   && mv -f "$cfgfile.tmp" "$cfgfile" \
14787     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14788 test 0 -eq $? || _lt_function_replace_fail=:
14789
14790
14791   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14792 func_split_long_opt ()\
14793 {\
14794 \    func_split_long_opt_name=${1%%=*}\
14795 \    func_split_long_opt_arg=${1#*=}\
14796 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14797   && mv -f "$cfgfile.tmp" "$cfgfile" \
14798     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14799 test 0 -eq $? || _lt_function_replace_fail=:
14800
14801
14802   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14803 func_split_short_opt ()\
14804 {\
14805 \    func_split_short_opt_arg=${1#??}\
14806 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14807 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14808   && mv -f "$cfgfile.tmp" "$cfgfile" \
14809     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14810 test 0 -eq $? || _lt_function_replace_fail=:
14811
14812
14813   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14814 func_lo2o ()\
14815 {\
14816 \    case ${1} in\
14817 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14818 \      *)    func_lo2o_result=${1} ;;\
14819 \    esac\
14820 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14821   && mv -f "$cfgfile.tmp" "$cfgfile" \
14822     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14823 test 0 -eq $? || _lt_function_replace_fail=:
14824
14825
14826   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14827 func_xform ()\
14828 {\
14829     func_xform_result=${1%.*}.lo\
14830 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14831   && mv -f "$cfgfile.tmp" "$cfgfile" \
14832     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14833 test 0 -eq $? || _lt_function_replace_fail=:
14834
14835
14836   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14837 func_arith ()\
14838 {\
14839     func_arith_result=$(( $* ))\
14840 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14841   && mv -f "$cfgfile.tmp" "$cfgfile" \
14842     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14843 test 0 -eq $? || _lt_function_replace_fail=:
14844
14845
14846   sed -e '/^func_len ()$/,/^} # func_len /c\
14847 func_len ()\
14848 {\
14849     func_len_result=${#1}\
14850 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14851   && mv -f "$cfgfile.tmp" "$cfgfile" \
14852     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14853 test 0 -eq $? || _lt_function_replace_fail=:
14854
14855 fi
14856
14857 if test x"$lt_shell_append" = xyes; then
14858   sed -e '/^func_append ()$/,/^} # func_append /c\
14859 func_append ()\
14860 {\
14861     eval "${1}+=\\${2}"\
14862 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14863   && mv -f "$cfgfile.tmp" "$cfgfile" \
14864     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14865 test 0 -eq $? || _lt_function_replace_fail=:
14866
14867
14868   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14869 func_append_quoted ()\
14870 {\
14871 \    func_quote_for_eval "${2}"\
14872 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14873 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14874   && mv -f "$cfgfile.tmp" "$cfgfile" \
14875     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14876 test 0 -eq $? || _lt_function_replace_fail=:
14877
14878
14879   # Save a `func_append' function call where possible by direct use of '+='
14880   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14881     && mv -f "$cfgfile.tmp" "$cfgfile" \
14882       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14883   test 0 -eq $? || _lt_function_replace_fail=:
14884 else
14885   # Save a `func_append' function call even when '+=' is not available
14886   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14887     && mv -f "$cfgfile.tmp" "$cfgfile" \
14888       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14889   test 0 -eq $? || _lt_function_replace_fail=:
14890 fi
14891
14892 if test x"$_lt_function_replace_fail" = x":"; then
14893   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14894 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14895 fi
14896
14897
14898    mv -f "$cfgfile" "$ofile" ||
14899     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14900   chmod +x "$ofile"
14901
14902  ;;
14903
14904   esac
14905 done # for ac_tag
14906
14907
14908 as_fn_exit 0
14909 _ACEOF
14910 ac_clean_files=$ac_clean_files_save
14911
14912 test $ac_write_fail = 0 ||
14913   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14914
14915
14916 # configure is writing to config.log, and then calls config.status.
14917 # config.status does its own redirection, appending to config.log.
14918 # Unfortunately, on DOS this fails, as config.log is still kept open
14919 # by configure, so config.status won't be able to write to it; its
14920 # output is simply discarded.  So we exec the FD to /dev/null,
14921 # effectively closing config.log, so it can be properly (re)opened and
14922 # appended to by config.status.  When coming back to configure, we
14923 # need to make the FD available again.
14924 if test "$no_create" != yes; then
14925   ac_cs_success=:
14926   ac_config_status_args=
14927   test "$silent" = yes &&
14928     ac_config_status_args="$ac_config_status_args --quiet"
14929   exec 5>/dev/null
14930   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14931   exec 5>>config.log
14932   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14933   # would make configure fail if this is the last instruction.
14934   $ac_cs_success || as_fn_exit 1
14935 fi
14936 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14937   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14938 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14939 fi
14940