update tests to expect "ok" from PRAGMA key
[sqlcipher.git] / configure
blobd44e23eb6681f1f555c319cc9b08351ded130012
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlcipher 3.29.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='sqlcipher'
589 PACKAGE_TARNAME='sqlcipher'
590 PACKAGE_VERSION='3.29.0'
591 PACKAGE_STRING='sqlcipher 3.29.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='LTLIBOBJS
632 LIBOBJS
633 BUILD_CFLAGS
634 USE_GCOV
635 OPT_FEATURE_FLAGS
636 HAVE_ZLIB
637 USE_AMALGAMATION
638 TARGET_DEBUG
639 TARGET_HAVE_EDITLINE
640 TARGET_HAVE_READLINE
641 TARGET_READLINE_INC
642 TARGET_READLINE_LIBS
643 HAVE_TCL
644 TCL_SHLIB_SUFFIX
645 TCL_STUB_LIB_SPEC
646 TCL_STUB_LIB_FLAG
647 TCL_STUB_LIB_FILE
648 TCL_LIB_SPEC
649 TCL_LIB_FLAG
650 TCL_LIB_FILE
651 TCL_INCLUDE_SPEC
652 TCL_SRC_DIR
653 TCL_BIN_DIR
654 TCL_VERSION
655 TARGET_EXEEXT
656 SQLITE_OS_WIN
657 SQLITE_OS_UNIX
658 BUILD_EXEEXT
659 TEMP_STORE
660 ALLOWRELEASE
661 XTHREADCONNECT
662 SQLITE_THREADSAFE
663 BUILD_CC
664 VERSION_NUMBER
665 RELEASE
666 VERSION
667 program_prefix
668 TCLLIBDIR
669 TCLSH_CMD
670 INSTALL_DATA
671 INSTALL_SCRIPT
672 INSTALL_PROGRAM
674 LT_SYS_LIBRARY_PATH
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 MANIFEST_TOOL
682 RANLIB
683 STRIP
684 ac_ct_AR
686 DLLTOOL
687 OBJDUMP
688 LN_S
690 ac_ct_DUMPBIN
691 DUMPBIN
693 FGREP
694 EGREP
695 GREP
697 OBJEXT
698 EXEEXT
699 ac_ct_CC
700 CPPFLAGS
701 LDFLAGS
702 CFLAGS
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 LIBTOOL
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_shared
755 enable_static
756 with_pic
757 enable_fast_install
758 with_aix_soname
759 with_gnu_ld
760 with_sysroot
761 enable_libtool_lock
762 enable_largefile
763 enable_threadsafe
764 with_crypto_lib
765 enable_cross_thread_connections
766 enable_releasemode
767 enable_tempstore
768 enable_tcl
769 with_tcl
770 enable_editline
771 enable_readline
772 with_readline_lib
773 with_readline_inc
774 enable_debug
775 enable_amalgamation
776 enable_load_extension
777 enable_memsys5
778 enable_memsys3
779 enable_fts3
780 enable_fts4
781 enable_fts5
782 enable_json1
783 enable_update_limit
784 enable_geopoly
785 enable_rtree
786 enable_session
787 enable_gcov
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
797 LT_SYS_LIBRARY_PATH
799 TCLLIBDIR'
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
850 ac_prev=
851 ac_dashdash=
852 for ac_option
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
867 # Accept the important Cygnus configure options, so we can diagnose typos.
869 case $ac_dashdash$ac_option in
871 ac_dashdash=yes ;;
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
890 --config-cache | -C)
891 cache_file=config.cache ;;
893 -datadir | --datadir | --datadi | --datad)
894 ac_prev=datadir ;;
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
905 -disable-* | --disable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
931 -enable-* | --enable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 esac
1208 done
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263 test "$silent" = yes && exec 6>/dev/null
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1292 /^X\(\/\/\)$/{
1293 s//\1/
1296 /^X\(\/\).*/{
1297 s//\1/
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1305 else
1306 ac_srcdir_defaulted=no
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1334 # Report the --help message.
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures sqlcipher 3.29.0 to adapt to many kinds of systems.
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1347 Defaults for the options are specified in brackets.
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1371 For better control, use the options below.
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1395 cat <<\_ACEOF
1397 System types:
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 _ACEOF
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of sqlcipher 3.29.0:";;
1406 esac
1407 cat <<\_ACEOF
1409 Optional Features:
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1418 --disable-largefile omit support for large files
1419 --disable-threadsafe Disable mutexing
1420 --enable-cross-thread-connections
1421 Allow connection sharing across threads
1422 --enable-releasemode Support libtool link to release mode
1423 --enable-tempstore Use an in-ram database for temporary tables
1424 (never,no,yes,always)
1425 --disable-tcl do not build TCL extension
1426 --enable-editline enable BSD editline support
1427 --disable-readline disable readline support
1428 --enable-debug enable debugging & verbose explain
1429 --disable-amalgamation Disable the amalgamation and instead build all files
1430 separately
1431 --disable-load-extension
1432 Disable loading of external extensions
1433 --enable-memsys5 Enable MEMSYS5
1434 --enable-memsys3 Enable MEMSYS3
1435 --enable-fts3 Enable the FTS3 extension
1436 --enable-fts4 Enable the FTS4 extension
1437 --enable-fts5 Enable the FTS5 extension
1438 --enable-json1 Enable the JSON1 extension
1439 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
1440 --enable-geopoly Enable the GEOPOLY extension
1441 --enable-rtree Enable the RTREE extension
1442 --enable-session Enable the SESSION extension
1443 --enable-gcov Enable coverage testing using gcov
1445 Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1449 both]
1450 --with-aix-soname=aix|svr4|both
1451 shared library versioning (aka "SONAME") variant to
1452 provide on AIX, [default=aix].
1453 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1455 compiler's sysroot if not specified).
1456 --with-crypto-lib Specify which crypto library to use
1457 --with-tcl=DIR directory containing tcl configuration
1458 (tclConfig.sh)
1459 --with-readline-lib specify readline library
1460 --with-readline-inc specify readline include paths
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 LT_SYS_LIBRARY_PATH
1471 User-defined run-time library search path.
1472 CPP C preprocessor
1473 TCLLIBDIR Where to install tcl plugin
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1478 Report bugs to the package provider.
1479 _ACEOF
1480 ac_status=$?
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
1489 ac_builddir=.
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1507 case $srcdir in
1508 .) # We are building in place.
1509 ac_srcdir=.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 sqlcipher configure 3.29.0
1542 generated by GNU Autoconf 2.69
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1586 ac_retval=1
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1591 } # ac_fn_c_try_compile
1593 # ac_fn_c_try_link LINENO
1594 # -----------------------
1595 # Try to link conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_link ()
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext conftest$ac_exeext
1600 if { { ac_try="$ac_link"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_link") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest$ac_exeext && {
1619 test "$cross_compiling" = yes ||
1620 test -x conftest$ac_exeext
1621 }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1627 ac_retval=1
1629 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1630 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1631 # interfere with the next link command; also delete a directory that is
1632 # left behind by Apple's compiler. We do this before executing the actions.
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1637 } # ac_fn_c_try_link
1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists and can be compiled using the include files in
1642 # INCLUDES, setting the cache variable VAR accordingly.
1643 ac_fn_c_check_header_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1650 else
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 eval "$3=yes"
1658 else
1659 eval "$3=no"
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 } # ac_fn_c_check_header_compile
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_cpp ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } > conftest.i && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1700 ac_retval=1
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1705 } # ac_fn_c_try_cpp
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=$ac_status
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1747 } # ac_fn_c_try_run
1749 # ac_fn_c_check_func LINENO FUNC VAR
1750 # ----------------------------------
1751 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1752 ac_fn_c_check_func ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1764 #define $2 innocuous_$2
1766 /* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $2 (); below.
1768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1769 <limits.h> exists even on freestanding compilers. */
1771 #ifdef __STDC__
1772 # include <limits.h>
1773 #else
1774 # include <assert.h>
1775 #endif
1777 #undef $2
1779 /* Override any GCC internal prototype to avoid an error.
1780 Use char because int might match the return type of a GCC
1781 builtin and then its argument prototype would still apply. */
1782 #ifdef __cplusplus
1783 extern "C"
1784 #endif
1785 char $2 ();
1786 /* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789 #if defined __stub_$2 || defined __stub___$2
1790 choke me
1791 #endif
1794 main ()
1796 return $2 ();
1798 return 0;
1800 _ACEOF
1801 if ac_fn_c_try_link "$LINENO"; then :
1802 eval "$3=yes"
1803 else
1804 eval "$3=no"
1806 rm -f core conftest.err conftest.$ac_objext \
1807 conftest$ac_exeext conftest.$ac_ext
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_func
1816 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1817 # -------------------------------------------
1818 # Tests whether TYPE exists after having included INCLUDES, setting cache
1819 # variable VAR accordingly.
1820 ac_fn_c_check_type ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827 else
1828 eval "$3=no"
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1833 main ()
1835 if (sizeof ($2))
1836 return 0;
1838 return 0;
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1846 main ()
1848 if (sizeof (($2)))
1849 return 0;
1851 return 0;
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1856 else
1857 eval "$3=yes"
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 } # ac_fn_c_check_type
1870 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1871 # -------------------------------------------------------
1872 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1873 # the include files in INCLUDES and setting the cache variable VAR
1874 # accordingly.
1875 ac_fn_c_check_header_mongrel ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if eval \${$3+:} false; then :
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 else
1888 # Is the header compilable?
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1890 $as_echo_n "checking $2 usability... " >&6; }
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_header_compiler=yes
1898 else
1899 ac_header_compiler=no
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1903 $as_echo "$ac_header_compiler" >&6; }
1905 # Is the header present?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1907 $as_echo_n "checking $2 presence... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_cpp "$LINENO"; then :
1913 ac_header_preproc=yes
1914 else
1915 ac_header_preproc=no
1917 rm -f conftest.err conftest.i conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1919 $as_echo "$ac_header_preproc" >&6; }
1921 # So? What about this header?
1922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1923 yes:no: )
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1925 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929 no:yes:* )
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1931 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1933 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1935 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1937 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1941 esac
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946 else
1947 eval "$3=\$ac_header_compiler"
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 } # ac_fn_c_check_header_mongrel
1956 cat >config.log <<_ACEOF
1957 This file contains any messages produced by compilers while
1958 running configure, to aid debugging if configure makes a mistake.
1960 It was created by sqlcipher $as_me 3.29.0, which was
1961 generated by GNU Autoconf 2.69. Invocation command line was
1963 $ $0 $@
1965 _ACEOF
1966 exec 5>>config.log
1968 cat <<_ASUNAME
1969 ## --------- ##
1970 ## Platform. ##
1971 ## --------- ##
1973 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1974 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1975 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1976 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1977 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1979 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1980 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1982 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1983 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1984 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1985 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1986 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1987 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1988 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1990 _ASUNAME
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 $as_echo "PATH: $as_dir"
1998 done
1999 IFS=$as_save_IFS
2001 } >&5
2003 cat >&5 <<_ACEOF
2006 ## ----------- ##
2007 ## Core tests. ##
2008 ## ----------- ##
2010 _ACEOF
2013 # Keep a trace of the command line.
2014 # Strip out --no-create and --no-recursion so they do not pile up.
2015 # Strip out --silent because we don't want to record it for future runs.
2016 # Also quote any args containing shell meta-characters.
2017 # Make two passes to allow for proper duplicate-argument suppression.
2018 ac_configure_args=
2019 ac_configure_args0=
2020 ac_configure_args1=
2021 ac_must_keep_next=false
2022 for ac_pass in 1 2
2024 for ac_arg
2026 case $ac_arg in
2027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2029 | -silent | --silent | --silen | --sile | --sil)
2030 continue ;;
2031 *\'*)
2032 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2033 esac
2034 case $ac_pass in
2035 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2037 as_fn_append ac_configure_args1 " '$ac_arg'"
2038 if test $ac_must_keep_next = true; then
2039 ac_must_keep_next=false # Got value, back to normal.
2040 else
2041 case $ac_arg in
2042 *=* | --config-cache | -C | -disable-* | --disable-* \
2043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2045 | -with-* | --with-* | -without-* | --without-* | --x)
2046 case "$ac_configure_args0 " in
2047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2048 esac
2050 -* ) ac_must_keep_next=true ;;
2051 esac
2053 as_fn_append ac_configure_args " '$ac_arg'"
2055 esac
2056 done
2057 done
2058 { ac_configure_args0=; unset ac_configure_args0;}
2059 { ac_configure_args1=; unset ac_configure_args1;}
2061 # When interrupted or exit'd, cleanup temporary files, and complete
2062 # config.log. We remove comments because anyway the quotes in there
2063 # would cause problems or look ugly.
2064 # WARNING: Use '\'' to represent an apostrophe within the trap.
2065 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2066 trap 'exit_status=$?
2067 # Save into config.log some information that might help in debugging.
2069 echo
2071 $as_echo "## ---------------- ##
2072 ## Cache variables. ##
2073 ## ---------------- ##"
2074 echo
2075 # The following way of writing the cache mishandles newlines in values,
2077 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in #(
2080 *${as_nl}*)
2081 case $ac_var in #(
2082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2084 esac
2085 case $ac_var in #(
2086 _ | IFS | as_nl) ;; #(
2087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2088 *) { eval $ac_var=; unset $ac_var;} ;;
2089 esac ;;
2090 esac
2091 done
2092 (set) 2>&1 |
2093 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2094 *${as_nl}ac_space=\ *)
2095 sed -n \
2096 "s/'\''/'\''\\\\'\'''\''/g;
2097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2098 ;; #(
2100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2102 esac |
2103 sort
2105 echo
2107 $as_echo "## ----------------- ##
2108 ## Output variables. ##
2109 ## ----------------- ##"
2110 echo
2111 for ac_var in $ac_subst_vars
2113 eval ac_val=\$$ac_var
2114 case $ac_val in
2115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 esac
2117 $as_echo "$ac_var='\''$ac_val'\''"
2118 done | sort
2119 echo
2121 if test -n "$ac_subst_files"; then
2122 $as_echo "## ------------------- ##
2123 ## File substitutions. ##
2124 ## ------------------- ##"
2125 echo
2126 for ac_var in $ac_subst_files
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2137 if test -s confdefs.h; then
2138 $as_echo "## ----------- ##
2139 ## confdefs.h. ##
2140 ## ----------- ##"
2141 echo
2142 cat confdefs.h
2143 echo
2145 test "$ac_signal" != 0 &&
2146 $as_echo "$as_me: caught signal $ac_signal"
2147 $as_echo "$as_me: exit $exit_status"
2148 } >&5
2149 rm -f core *.core core.conftest.* &&
2150 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2151 exit $exit_status
2153 for ac_signal in 1 2 13 15; do
2154 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2155 done
2156 ac_signal=0
2158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2159 rm -f -r conftest* confdefs.h
2161 $as_echo "/* confdefs.h */" > confdefs.h
2163 # Predefined preprocessor variables.
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_NAME "$PACKAGE_NAME"
2167 _ACEOF
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2171 _ACEOF
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2175 _ACEOF
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_STRING "$PACKAGE_STRING"
2179 _ACEOF
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2183 _ACEOF
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_URL "$PACKAGE_URL"
2187 _ACEOF
2190 # Let the site file select an alternate cache file if it wants to.
2191 # Prefer an explicitly selected file to automatically selected ones.
2192 ac_site_file1=NONE
2193 ac_site_file2=NONE
2194 if test -n "$CONFIG_SITE"; then
2195 # We do not want a PATH search for config.site.
2196 case $CONFIG_SITE in #((
2197 -*) ac_site_file1=./$CONFIG_SITE;;
2198 */*) ac_site_file1=$CONFIG_SITE;;
2199 *) ac_site_file1=./$CONFIG_SITE;;
2200 esac
2201 elif test "x$prefix" != xNONE; then
2202 ac_site_file1=$prefix/share/config.site
2203 ac_site_file2=$prefix/etc/config.site
2204 else
2205 ac_site_file1=$ac_default_prefix/share/config.site
2206 ac_site_file2=$ac_default_prefix/etc/config.site
2208 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2210 test "x$ac_site_file" = xNONE && continue
2211 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2213 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2214 sed 's/^/| /' "$ac_site_file" >&5
2215 . "$ac_site_file" \
2216 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218 as_fn_error $? "failed to load site script $ac_site_file
2219 See \`config.log' for more details" "$LINENO" 5; }
2221 done
2223 if test -r "$cache_file"; then
2224 # Some versions of bash will fail to source /dev/null (special files
2225 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2226 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2228 $as_echo "$as_me: loading cache $cache_file" >&6;}
2229 case $cache_file in
2230 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2231 *) . "./$cache_file";;
2232 esac
2234 else
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2236 $as_echo "$as_me: creating cache $cache_file" >&6;}
2237 >$cache_file
2240 # Check that the precious variables saved in the cache have kept the same
2241 # value.
2242 ac_cache_corrupted=false
2243 for ac_var in $ac_precious_vars; do
2244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2245 eval ac_new_set=\$ac_env_${ac_var}_set
2246 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2247 eval ac_new_val=\$ac_env_${ac_var}_value
2248 case $ac_old_set,$ac_new_set in
2249 set,)
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2252 ac_cache_corrupted=: ;;
2253 ,set)
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2255 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2256 ac_cache_corrupted=: ;;
2257 ,);;
2259 if test "x$ac_old_val" != "x$ac_new_val"; then
2260 # differences in whitespace do not lead to failure.
2261 ac_old_val_w=`echo x $ac_old_val`
2262 ac_new_val_w=`echo x $ac_new_val`
2263 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2265 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2266 ac_cache_corrupted=:
2267 else
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2269 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2270 eval $ac_var=\$ac_old_val
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2273 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2275 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2276 fi;;
2277 esac
2278 # Pass precious variables to config.status.
2279 if test "$ac_new_set" = set; then
2280 case $ac_new_val in
2281 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2282 *) ac_arg=$ac_var=$ac_new_val ;;
2283 esac
2284 case " $ac_configure_args " in
2285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2286 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2287 esac
2289 done
2290 if $ac_cache_corrupted; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2294 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2295 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2297 ## -------------------- ##
2298 ## Main body of script. ##
2299 ## -------------------- ##
2301 ac_ext=c
2302 ac_cpp='$CPP $CPPFLAGS'
2303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2310 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2311 as_fn_error $? "configure script is out of date:
2312 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2313 top level VERSION file = $sqlite_version_sanity_check
2314 please regen with autoconf" "$LINENO" 5
2317 #########
2318 # Programs needed
2320 ac_aux_dir=
2321 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2322 if test -f "$ac_dir/install-sh"; then
2323 ac_aux_dir=$ac_dir
2324 ac_install_sh="$ac_aux_dir/install-sh -c"
2325 break
2326 elif test -f "$ac_dir/install.sh"; then
2327 ac_aux_dir=$ac_dir
2328 ac_install_sh="$ac_aux_dir/install.sh -c"
2329 break
2330 elif test -f "$ac_dir/shtool"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/shtool install -c"
2333 break
2335 done
2336 if test -z "$ac_aux_dir"; then
2337 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2340 # These three variables are undocumented and unsupported,
2341 # and are intended to be withdrawn in a future Autoconf release.
2342 # They can cause serious problems if a builder's source tree is in a directory
2343 # whose full name contains unusual characters.
2344 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2345 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2346 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2349 case `pwd` in
2350 *\ * | *\ *)
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2352 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2353 esac
2357 macro_version='2.4.6'
2358 macro_revision='2.4.6'
2372 ltmain=$ac_aux_dir/ltmain.sh
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if ${ac_cv_build+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 ac_build_alias=$build_alias
2384 test "x$ac_build_alias" = x &&
2385 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x &&
2387 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2395 *-*-*) ;;
2396 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2397 esac
2398 build=$ac_cv_build
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_build
2401 shift
2402 build_cpu=$1
2403 build_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 build_os=$*
2408 IFS=$ac_save_IFS
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2413 $as_echo_n "checking host system type... " >&6; }
2414 if ${ac_cv_host+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test "x$host_alias" = x; then
2418 ac_cv_host=$ac_cv_build
2419 else
2420 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2421 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2426 $as_echo "$ac_cv_host" >&6; }
2427 case $ac_cv_host in
2428 *-*-*) ;;
2429 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2430 esac
2431 host=$ac_cv_host
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_host
2434 shift
2435 host_cpu=$1
2436 host_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 host_os=$*
2441 IFS=$ac_save_IFS
2442 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2445 # Backslashify metacharacters that are still active within
2446 # double-quoted strings.
2447 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2449 # Same as above, but do not quote variable references.
2450 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2452 # Sed substitution to delay expansion of an escaped shell variable in a
2453 # double_quote_subst'ed string.
2454 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2456 # Sed substitution to delay expansion of an escaped single quote.
2457 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2459 # Sed substitution to avoid accidental globbing in evaled expressions
2460 no_glob_subst='s/\*/\\\*/g'
2462 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2463 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2464 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2467 $as_echo_n "checking how to print strings... " >&6; }
2468 # Test print first, because it will be a builtin if present.
2469 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2470 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2471 ECHO='print -r --'
2472 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2473 ECHO='printf %s\n'
2474 else
2475 # Use this function as a fallback that always works.
2476 func_fallback_echo ()
2478 eval 'cat <<_LTECHO_EOF
2480 _LTECHO_EOF'
2482 ECHO='func_fallback_echo'
2485 # func_echo_all arg...
2486 # Invoke $ECHO with all args, space-separated.
2487 func_echo_all ()
2489 $ECHO ""
2492 case $ECHO in
2493 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2494 $as_echo "printf" >&6; } ;;
2495 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2496 $as_echo "print -r" >&6; } ;;
2497 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2498 $as_echo "cat" >&6; } ;;
2499 esac
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_CC+:} false; then :
2525 $as_echo_n "(cached) " >&6
2526 else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2541 done
2542 done
2543 IFS=$as_save_IFS
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2550 $as_echo "$CC" >&6; }
2551 else
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2558 if test -z "$ac_cv_prog_CC"; then
2559 ac_ct_CC=$CC
2560 # Extract the first word of "gcc", so it can be a program name with args.
2561 set dummy gcc; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2577 ac_cv_prog_ac_ct_CC="gcc"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2581 done
2582 done
2583 IFS=$as_save_IFS
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2590 $as_echo "$ac_ct_CC" >&6; }
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2596 if test "x$ac_ct_CC" = x; then
2597 CC=""
2598 else
2599 case $cross_compiling:$ac_tool_warned in
2600 yes:)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2603 ac_tool_warned=yes ;;
2604 esac
2605 CC=$ac_ct_CC
2607 else
2608 CC="$ac_cv_prog_CC"
2611 if test -z "$CC"; then
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}cc; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_CC+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_CC="${ac_tool_prefix}cc"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2634 done
2635 done
2636 IFS=$as_save_IFS
2640 CC=$ac_cv_prog_CC
2641 if test -n "$CC"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2643 $as_echo "$CC" >&6; }
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2652 if test -z "$CC"; then
2653 # Extract the first word of "cc", so it can be a program name with args.
2654 set dummy cc; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_prog_CC+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2662 else
2663 ac_prog_rejected=no
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2672 ac_prog_rejected=yes
2673 continue
2675 ac_cv_prog_CC="cc"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2679 done
2680 done
2681 IFS=$as_save_IFS
2683 if test $ac_prog_rejected = yes; then
2684 # We found a bogon in the path, so make sure we never use it.
2685 set dummy $ac_cv_prog_CC
2686 shift
2687 if test $# != 0; then
2688 # We chose a different compiler from the bogus one.
2689 # However, it has the same basename, so the bogon will be chosen
2690 # first if we set CC to just the basename; use the full file name.
2691 shift
2692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2697 CC=$ac_cv_prog_CC
2698 if test -n "$CC"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700 $as_echo "$CC" >&6; }
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2708 if test -z "$CC"; then
2709 if test -n "$ac_tool_prefix"; then
2710 for ac_prog in cl.exe
2712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2733 done
2734 done
2735 IFS=$as_save_IFS
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2749 test -n "$CC" && break
2750 done
2752 if test -z "$CC"; then
2753 ac_ct_CC=$CC
2754 for ac_prog in cl.exe
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757 set dummy $ac_prog; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$ac_ct_CC"; then
2764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_ac_ct_CC="$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2777 done
2778 done
2779 IFS=$as_save_IFS
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2786 $as_echo "$ac_ct_CC" >&6; }
2787 else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2793 test -n "$ac_ct_CC" && break
2794 done
2796 if test "x$ac_ct_CC" = x; then
2797 CC=""
2798 else
2799 case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805 CC=$ac_ct_CC
2812 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814 as_fn_error $? "no acceptable C compiler found in \$PATH
2815 See \`config.log' for more details" "$LINENO" 5; }
2817 # Provide some information about the compiler.
2818 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2819 set X $ac_compile
2820 ac_compiler=$2
2821 for ac_option in --version -v -V -qversion; do
2822 { { ac_try="$ac_compiler $ac_option >&5"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2828 $as_echo "$ac_try_echo"; } >&5
2829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2830 ac_status=$?
2831 if test -s conftest.err; then
2832 sed '10a\
2833 ... rest of stderr output deleted ...
2834 10q' conftest.err >conftest.er1
2835 cat conftest.er1 >&5
2837 rm -f conftest.er1 conftest.err
2838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839 test $ac_status = 0; }
2840 done
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2846 main ()
2850 return 0;
2852 _ACEOF
2853 ac_clean_files_save=$ac_clean_files
2854 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2855 # Try to create an executable without -o first, disregard a.out.
2856 # It will help us diagnose broken compilers, and finding out an intuition
2857 # of exeext.
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2859 $as_echo_n "checking whether the C compiler works... " >&6; }
2860 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2862 # The possible output files:
2863 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2865 ac_rmfiles=
2866 for ac_file in $ac_files
2868 case $ac_file in
2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2870 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2871 esac
2872 done
2873 rm -f $ac_rmfiles
2875 if { { ac_try="$ac_link_default"
2876 case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879 esac
2880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2881 $as_echo "$ac_try_echo"; } >&5
2882 (eval "$ac_link_default") 2>&5
2883 ac_status=$?
2884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2885 test $ac_status = 0; }; then :
2886 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2887 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2888 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2889 # so that the user can short-circuit this test for compilers unknown to
2890 # Autoconf.
2891 for ac_file in $ac_files ''
2893 test -f "$ac_file" || continue
2894 case $ac_file in
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2897 [ab].out )
2898 # We found the default executable, but exeext='' is most
2899 # certainly right.
2900 break;;
2901 *.* )
2902 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2903 then :; else
2904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906 # We set ac_cv_exeext here because the later test for it is not
2907 # safe: cross compilers may not add the suffix if given an `-o'
2908 # argument, so we may need to know it at that point already.
2909 # Even if this section looks crufty: it has the advantage of
2910 # actually working.
2911 break;;
2913 break;;
2914 esac
2915 done
2916 test "$ac_cv_exeext" = no && ac_cv_exeext=
2918 else
2919 ac_file=''
2921 if test -z "$ac_file"; then :
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 $as_echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 as_fn_error 77 "C compiler cannot create executables
2930 See \`config.log' for more details" "$LINENO" 5; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2933 $as_echo "yes" >&6; }
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2936 $as_echo_n "checking for C compiler default output file name... " >&6; }
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2938 $as_echo "$ac_file" >&6; }
2939 ac_exeext=$ac_cv_exeext
2941 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2942 ac_clean_files=$ac_clean_files_save
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2944 $as_echo_n "checking for suffix of executables... " >&6; }
2945 if { { ac_try="$ac_link"
2946 case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949 esac
2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951 $as_echo "$ac_try_echo"; } >&5
2952 (eval "$ac_link") 2>&5
2953 ac_status=$?
2954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955 test $ac_status = 0; }; then :
2956 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2957 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2958 # work properly (i.e., refer to `conftest.exe'), while it won't with
2959 # `rm'.
2960 for ac_file in conftest.exe conftest conftest.*; do
2961 test -f "$ac_file" || continue
2962 case $ac_file in
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965 break;;
2966 * ) break;;
2967 esac
2968 done
2969 else
2970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2973 See \`config.log' for more details" "$LINENO" 5; }
2975 rm -f conftest conftest$ac_cv_exeext
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2977 $as_echo "$ac_cv_exeext" >&6; }
2979 rm -f conftest.$ac_ext
2980 EXEEXT=$ac_cv_exeext
2981 ac_exeext=$EXEEXT
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h. */
2984 #include <stdio.h>
2986 main ()
2988 FILE *f = fopen ("conftest.out", "w");
2989 return ferror (f) || fclose (f) != 0;
2992 return 0;
2994 _ACEOF
2995 ac_clean_files="$ac_clean_files conftest.out"
2996 # Check that the compiler produces executables we can run. If not, either
2997 # the compiler is broken, or we cross compile.
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2999 $as_echo_n "checking whether we are cross compiling... " >&6; }
3000 if test "$cross_compiling" != yes; then
3001 { { ac_try="$ac_link"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_link") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }
3012 if { ac_try='./conftest$ac_cv_exeext'
3013 { { case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018 $as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_try") 2>&5
3020 ac_status=$?
3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022 test $ac_status = 0; }; }; then
3023 cross_compiling=no
3024 else
3025 if test "$cross_compiling" = maybe; then
3026 cross_compiling=yes
3027 else
3028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 as_fn_error $? "cannot run C compiled programs.
3031 If you meant to cross compile, use \`--host'.
3032 See \`config.log' for more details" "$LINENO" 5; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3037 $as_echo "$cross_compiling" >&6; }
3039 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3040 ac_clean_files=$ac_clean_files_save
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3042 $as_echo_n "checking for suffix of object files... " >&6; }
3043 if ${ac_cv_objext+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h. */
3050 main ()
3054 return 0;
3056 _ACEOF
3057 rm -f conftest.o conftest.obj
3058 if { { ac_try="$ac_compile"
3059 case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 $as_echo "$ac_try_echo"; } >&5
3065 (eval "$ac_compile") 2>&5
3066 ac_status=$?
3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068 test $ac_status = 0; }; then :
3069 for ac_file in conftest.o conftest.obj conftest.*; do
3070 test -f "$ac_file" || continue;
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3073 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3074 break;;
3075 esac
3076 done
3077 else
3078 $as_echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error $? "cannot compute suffix of object files: cannot compile
3084 See \`config.log' for more details" "$LINENO" 5; }
3086 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3089 $as_echo "$ac_cv_objext" >&6; }
3090 OBJEXT=$ac_cv_objext
3091 ac_objext=$OBJEXT
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3093 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3094 if ${ac_cv_c_compiler_gnu+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3101 main ()
3103 #ifndef __GNUC__
3104 choke me
3105 #endif
3108 return 0;
3110 _ACEOF
3111 if ac_fn_c_try_compile "$LINENO"; then :
3112 ac_compiler_gnu=yes
3113 else
3114 ac_compiler_gnu=no
3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3121 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3122 if test $ac_compiler_gnu = yes; then
3123 GCC=yes
3124 else
3125 GCC=
3127 ac_test_CFLAGS=${CFLAGS+set}
3128 ac_save_CFLAGS=$CFLAGS
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3130 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3131 if ${ac_cv_prog_cc_g+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 ac_save_c_werror_flag=$ac_c_werror_flag
3135 ac_c_werror_flag=yes
3136 ac_cv_prog_cc_g=no
3137 CFLAGS="-g"
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3142 main ()
3146 return 0;
3148 _ACEOF
3149 if ac_fn_c_try_compile "$LINENO"; then :
3150 ac_cv_prog_cc_g=yes
3151 else
3152 CFLAGS=""
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3157 main ()
3161 return 0;
3163 _ACEOF
3164 if ac_fn_c_try_compile "$LINENO"; then :
3166 else
3167 ac_c_werror_flag=$ac_save_c_werror_flag
3168 CFLAGS="-g"
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3173 main ()
3177 return 0;
3179 _ACEOF
3180 if ac_fn_c_try_compile "$LINENO"; then :
3181 ac_cv_prog_cc_g=yes
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 ac_c_werror_flag=$ac_save_c_werror_flag
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3191 $as_echo "$ac_cv_prog_cc_g" >&6; }
3192 if test "$ac_test_CFLAGS" = set; then
3193 CFLAGS=$ac_save_CFLAGS
3194 elif test $ac_cv_prog_cc_g = yes; then
3195 if test "$GCC" = yes; then
3196 CFLAGS="-g -O2"
3197 else
3198 CFLAGS="-g"
3200 else
3201 if test "$GCC" = yes; then
3202 CFLAGS="-O2"
3203 else
3204 CFLAGS=
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3208 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3209 if ${ac_cv_prog_cc_c89+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 ac_cv_prog_cc_c89=no
3213 ac_save_CC=$CC
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3216 #include <stdarg.h>
3217 #include <stdio.h>
3218 struct stat;
3219 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3220 struct buf { int x; };
3221 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3222 static char *e (p, i)
3223 char **p;
3224 int i;
3226 return p[i];
3228 static char *f (char * (*g) (char **, int), char **p, ...)
3230 char *s;
3231 va_list v;
3232 va_start (v,p);
3233 s = g (p, va_arg (v,int));
3234 va_end (v);
3235 return s;
3238 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3239 function prototypes and stuff, but not '\xHH' hex character constants.
3240 These don't provoke an error unfortunately, instead are silently treated
3241 as 'x'. The following induces an error, until -std is added to get
3242 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3243 array size at least. It's necessary to write '\x00'==0 to get something
3244 that's true only with -std. */
3245 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3247 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3248 inside strings and character constants. */
3249 #define FOO(x) 'x'
3250 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3252 int test (int i, double x);
3253 struct s1 {int (*f) (int a);};
3254 struct s2 {int (*f) (double a);};
3255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3256 int argc;
3257 char **argv;
3259 main ()
3261 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3263 return 0;
3265 _ACEOF
3266 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3267 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3269 CC="$ac_save_CC $ac_arg"
3270 if ac_fn_c_try_compile "$LINENO"; then :
3271 ac_cv_prog_cc_c89=$ac_arg
3273 rm -f core conftest.err conftest.$ac_objext
3274 test "x$ac_cv_prog_cc_c89" != "xno" && break
3275 done
3276 rm -f conftest.$ac_ext
3277 CC=$ac_save_CC
3280 # AC_CACHE_VAL
3281 case "x$ac_cv_prog_cc_c89" in
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3284 $as_echo "none needed" >&6; } ;;
3285 xno)
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3287 $as_echo "unsupported" >&6; } ;;
3289 CC="$CC $ac_cv_prog_cc_c89"
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3291 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3292 esac
3293 if test "x$ac_cv_prog_cc_c89" != xno; then :
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3304 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3305 if ${ac_cv_path_SED+:} false; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3309 for ac_i in 1 2 3 4 5 6 7; do
3310 ac_script="$ac_script$as_nl$ac_script"
3311 done
3312 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3313 { ac_script=; unset ac_script;}
3314 if test -z "$SED"; then
3315 ac_path_SED_found=false
3316 # Loop through the user's path and test for each of PROGNAME-LIST
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_prog in sed gsed; do
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3325 as_fn_executable_p "$ac_path_SED" || continue
3326 # Check for GNU ac_path_SED and select it if it is found.
3327 # Check for GNU $ac_path_SED
3328 case `"$ac_path_SED" --version 2>&1` in
3329 *GNU*)
3330 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3332 ac_count=0
3333 $as_echo_n 0123456789 >"conftest.in"
3334 while :
3336 cat "conftest.in" "conftest.in" >"conftest.tmp"
3337 mv "conftest.tmp" "conftest.in"
3338 cp "conftest.in" "conftest.nl"
3339 $as_echo '' >> "conftest.nl"
3340 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3342 as_fn_arith $ac_count + 1 && ac_count=$as_val
3343 if test $ac_count -gt ${ac_path_SED_max-0}; then
3344 # Best one so far, save it but keep looking for a better one
3345 ac_cv_path_SED="$ac_path_SED"
3346 ac_path_SED_max=$ac_count
3348 # 10*(2^10) chars as input seems more than enough
3349 test $ac_count -gt 10 && break
3350 done
3351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3352 esac
3354 $ac_path_SED_found && break 3
3355 done
3356 done
3357 done
3358 IFS=$as_save_IFS
3359 if test -z "$ac_cv_path_SED"; then
3360 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3362 else
3363 ac_cv_path_SED=$SED
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3368 $as_echo "$ac_cv_path_SED" >&6; }
3369 SED="$ac_cv_path_SED"
3370 rm -f conftest.sed
3372 test -z "$SED" && SED=sed
3373 Xsed="$SED -e 1s/^X//"
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3386 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3387 if ${ac_cv_path_GREP+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test -z "$GREP"; then
3391 ac_path_GREP_found=false
3392 # Loop through the user's path and test for each of PROGNAME-LIST
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_prog in grep ggrep; do
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3401 as_fn_executable_p "$ac_path_GREP" || continue
3402 # Check for GNU ac_path_GREP and select it if it is found.
3403 # Check for GNU $ac_path_GREP
3404 case `"$ac_path_GREP" --version 2>&1` in
3405 *GNU*)
3406 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3408 ac_count=0
3409 $as_echo_n 0123456789 >"conftest.in"
3410 while :
3412 cat "conftest.in" "conftest.in" >"conftest.tmp"
3413 mv "conftest.tmp" "conftest.in"
3414 cp "conftest.in" "conftest.nl"
3415 $as_echo 'GREP' >> "conftest.nl"
3416 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3418 as_fn_arith $ac_count + 1 && ac_count=$as_val
3419 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3420 # Best one so far, save it but keep looking for a better one
3421 ac_cv_path_GREP="$ac_path_GREP"
3422 ac_path_GREP_max=$ac_count
3424 # 10*(2^10) chars as input seems more than enough
3425 test $ac_count -gt 10 && break
3426 done
3427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3428 esac
3430 $ac_path_GREP_found && break 3
3431 done
3432 done
3433 done
3434 IFS=$as_save_IFS
3435 if test -z "$ac_cv_path_GREP"; then
3436 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3438 else
3439 ac_cv_path_GREP=$GREP
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3444 $as_echo "$ac_cv_path_GREP" >&6; }
3445 GREP="$ac_cv_path_GREP"
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3449 $as_echo_n "checking for egrep... " >&6; }
3450 if ${ac_cv_path_EGREP+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3454 then ac_cv_path_EGREP="$GREP -E"
3455 else
3456 if test -z "$EGREP"; then
3457 ac_path_EGREP_found=false
3458 # Loop through the user's path and test for each of PROGNAME-LIST
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_prog in egrep; do
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3467 as_fn_executable_p "$ac_path_EGREP" || continue
3468 # Check for GNU ac_path_EGREP and select it if it is found.
3469 # Check for GNU $ac_path_EGREP
3470 case `"$ac_path_EGREP" --version 2>&1` in
3471 *GNU*)
3472 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3474 ac_count=0
3475 $as_echo_n 0123456789 >"conftest.in"
3476 while :
3478 cat "conftest.in" "conftest.in" >"conftest.tmp"
3479 mv "conftest.tmp" "conftest.in"
3480 cp "conftest.in" "conftest.nl"
3481 $as_echo 'EGREP' >> "conftest.nl"
3482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3484 as_fn_arith $ac_count + 1 && ac_count=$as_val
3485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3486 # Best one so far, save it but keep looking for a better one
3487 ac_cv_path_EGREP="$ac_path_EGREP"
3488 ac_path_EGREP_max=$ac_count
3490 # 10*(2^10) chars as input seems more than enough
3491 test $ac_count -gt 10 && break
3492 done
3493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3494 esac
3496 $ac_path_EGREP_found && break 3
3497 done
3498 done
3499 done
3500 IFS=$as_save_IFS
3501 if test -z "$ac_cv_path_EGREP"; then
3502 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3504 else
3505 ac_cv_path_EGREP=$EGREP
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3511 $as_echo "$ac_cv_path_EGREP" >&6; }
3512 EGREP="$ac_cv_path_EGREP"
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3516 $as_echo_n "checking for fgrep... " >&6; }
3517 if ${ac_cv_path_FGREP+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3521 then ac_cv_path_FGREP="$GREP -F"
3522 else
3523 if test -z "$FGREP"; then
3524 ac_path_FGREP_found=false
3525 # Loop through the user's path and test for each of PROGNAME-LIST
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 for ac_prog in fgrep; do
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3534 as_fn_executable_p "$ac_path_FGREP" || continue
3535 # Check for GNU ac_path_FGREP and select it if it is found.
3536 # Check for GNU $ac_path_FGREP
3537 case `"$ac_path_FGREP" --version 2>&1` in
3538 *GNU*)
3539 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3541 ac_count=0
3542 $as_echo_n 0123456789 >"conftest.in"
3543 while :
3545 cat "conftest.in" "conftest.in" >"conftest.tmp"
3546 mv "conftest.tmp" "conftest.in"
3547 cp "conftest.in" "conftest.nl"
3548 $as_echo 'FGREP' >> "conftest.nl"
3549 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3551 as_fn_arith $ac_count + 1 && ac_count=$as_val
3552 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3553 # Best one so far, save it but keep looking for a better one
3554 ac_cv_path_FGREP="$ac_path_FGREP"
3555 ac_path_FGREP_max=$ac_count
3557 # 10*(2^10) chars as input seems more than enough
3558 test $ac_count -gt 10 && break
3559 done
3560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3561 esac
3563 $ac_path_FGREP_found && break 3
3564 done
3565 done
3566 done
3567 IFS=$as_save_IFS
3568 if test -z "$ac_cv_path_FGREP"; then
3569 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3571 else
3572 ac_cv_path_FGREP=$FGREP
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3578 $as_echo "$ac_cv_path_FGREP" >&6; }
3579 FGREP="$ac_cv_path_FGREP"
3582 test -z "$GREP" && GREP=grep
3602 # Check whether --with-gnu-ld was given.
3603 if test "${with_gnu_ld+set}" = set; then :
3604 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3605 else
3606 with_gnu_ld=no
3609 ac_prog=ld
3610 if test yes = "$GCC"; then
3611 # Check if gcc -print-prog-name=ld gives a path.
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3613 $as_echo_n "checking for ld used by $CC... " >&6; }
3614 case $host in
3615 *-*-mingw*)
3616 # gcc leaves a trailing carriage return, which upsets mingw
3617 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3619 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3620 esac
3621 case $ac_prog in
3622 # Accept absolute paths.
3623 [\\/]* | ?:[\\/]*)
3624 re_direlt='/[^/][^/]*/\.\./'
3625 # Canonicalize the pathname of ld
3626 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3627 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3628 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3629 done
3630 test -z "$LD" && LD=$ac_prog
3633 # If it fails, then pretend we aren't using GCC.
3634 ac_prog=ld
3637 # If it is relative, then search for the first ld in PATH.
3638 with_gnu_ld=unknown
3640 esac
3641 elif test yes = "$with_gnu_ld"; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3643 $as_echo_n "checking for GNU ld... " >&6; }
3644 else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3646 $as_echo_n "checking for non-GNU ld... " >&6; }
3648 if ${lt_cv_path_LD+:} false; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -z "$LD"; then
3652 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3653 for ac_dir in $PATH; do
3654 IFS=$lt_save_ifs
3655 test -z "$ac_dir" && ac_dir=.
3656 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3657 lt_cv_path_LD=$ac_dir/$ac_prog
3658 # Check to see if the program is GNU ld. I'd rather use --version,
3659 # but apparently some variants of GNU ld only accept -v.
3660 # Break only if it was the GNU/non-GNU ld that we prefer.
3661 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3662 *GNU* | *'with BFD'*)
3663 test no != "$with_gnu_ld" && break
3666 test yes != "$with_gnu_ld" && break
3668 esac
3670 done
3671 IFS=$lt_save_ifs
3672 else
3673 lt_cv_path_LD=$LD # Let the user override the test with a path.
3677 LD=$lt_cv_path_LD
3678 if test -n "$LD"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3680 $as_echo "$LD" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3685 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3687 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3688 if ${lt_cv_prog_gnu_ld+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3692 case `$LD -v 2>&1 </dev/null` in
3693 *GNU* | *'with BFD'*)
3694 lt_cv_prog_gnu_ld=yes
3697 lt_cv_prog_gnu_ld=no
3699 esac
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3702 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3703 with_gnu_ld=$lt_cv_prog_gnu_ld
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3714 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3715 if ${lt_cv_path_NM+:} false; then :
3716 $as_echo_n "(cached) " >&6
3717 else
3718 if test -n "$NM"; then
3719 # Let the user override the test.
3720 lt_cv_path_NM=$NM
3721 else
3722 lt_nm_to_check=${ac_tool_prefix}nm
3723 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3724 lt_nm_to_check="$lt_nm_to_check nm"
3726 for lt_tmp_nm in $lt_nm_to_check; do
3727 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3728 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3729 IFS=$lt_save_ifs
3730 test -z "$ac_dir" && ac_dir=.
3731 tmp_nm=$ac_dir/$lt_tmp_nm
3732 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3733 # Check to see if the nm accepts a BSD-compat flag.
3734 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3735 # nm: unknown option "B" ignored
3736 # Tru64's nm complains that /dev/null is an invalid object file
3737 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3738 case $build_os in
3739 mingw*) lt_bad_file=conftest.nm/nofile ;;
3740 *) lt_bad_file=/dev/null ;;
3741 esac
3742 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3743 *$lt_bad_file* | *'Invalid file or object type'*)
3744 lt_cv_path_NM="$tmp_nm -B"
3745 break 2
3748 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3749 */dev/null*)
3750 lt_cv_path_NM="$tmp_nm -p"
3751 break 2
3754 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3755 continue # so that we can try to find one that supports BSD flags
3757 esac
3759 esac
3761 done
3762 IFS=$lt_save_ifs
3763 done
3764 : ${lt_cv_path_NM=no}
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3768 $as_echo "$lt_cv_path_NM" >&6; }
3769 if test no != "$lt_cv_path_NM"; then
3770 NM=$lt_cv_path_NM
3771 else
3772 # Didn't find any BSD compatible name lister, look for dumpbin.
3773 if test -n "$DUMPBIN"; then :
3774 # Let the user override the test.
3775 else
3776 if test -n "$ac_tool_prefix"; then
3777 for ac_prog in dumpbin "link -dump"
3779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_DUMPBIN+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 if test -n "$DUMPBIN"; then
3787 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3800 done
3801 done
3802 IFS=$as_save_IFS
3806 DUMPBIN=$ac_cv_prog_DUMPBIN
3807 if test -n "$DUMPBIN"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3809 $as_echo "$DUMPBIN" >&6; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3816 test -n "$DUMPBIN" && break
3817 done
3819 if test -z "$DUMPBIN"; then
3820 ac_ct_DUMPBIN=$DUMPBIN
3821 for ac_prog in dumpbin "link -dump"
3823 # Extract the first word of "$ac_prog", so it can be a program name with args.
3824 set dummy $ac_prog; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 if test -n "$ac_ct_DUMPBIN"; then
3831 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3844 done
3845 done
3846 IFS=$as_save_IFS
3850 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3851 if test -n "$ac_ct_DUMPBIN"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3853 $as_echo "$ac_ct_DUMPBIN" >&6; }
3854 else
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3860 test -n "$ac_ct_DUMPBIN" && break
3861 done
3863 if test "x$ac_ct_DUMPBIN" = x; then
3864 DUMPBIN=":"
3865 else
3866 case $cross_compiling:$ac_tool_warned in
3867 yes:)
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3870 ac_tool_warned=yes ;;
3871 esac
3872 DUMPBIN=$ac_ct_DUMPBIN
3876 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3877 *COFF*)
3878 DUMPBIN="$DUMPBIN -symbols -headers"
3881 DUMPBIN=:
3883 esac
3886 if test : != "$DUMPBIN"; then
3887 NM=$DUMPBIN
3890 test -z "$NM" && NM=nm
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3898 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3899 if ${lt_cv_nm_interface+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 lt_cv_nm_interface="BSD nm"
3903 echo "int some_variable = 0;" > conftest.$ac_ext
3904 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3905 (eval "$ac_compile" 2>conftest.err)
3906 cat conftest.err >&5
3907 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3908 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3909 cat conftest.err >&5
3910 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3911 cat conftest.out >&5
3912 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3913 lt_cv_nm_interface="MS dumpbin"
3915 rm -f conftest*
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3918 $as_echo "$lt_cv_nm_interface" >&6; }
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3921 $as_echo_n "checking whether ln -s works... " >&6; }
3922 LN_S=$as_ln_s
3923 if test "$LN_S" = "ln -s"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3925 $as_echo "yes" >&6; }
3926 else
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3928 $as_echo "no, using $LN_S" >&6; }
3931 # find the maximum length of command line arguments
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3933 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3934 if ${lt_cv_sys_max_cmd_len+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3938 teststring=ABCD
3940 case $build_os in
3941 msdosdjgpp*)
3942 # On DJGPP, this test can blow up pretty badly due to problems in libc
3943 # (any single argument exceeding 2000 bytes causes a buffer overrun
3944 # during glob expansion). Even if it were fixed, the result of this
3945 # check would be larger than it should be.
3946 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3949 gnu*)
3950 # Under GNU Hurd, this test is not required because there is
3951 # no limit to the length of command line arguments.
3952 # Libtool will interpret -1 as no limit whatsoever
3953 lt_cv_sys_max_cmd_len=-1;
3956 cygwin* | mingw* | cegcc*)
3957 # On Win9x/ME, this test blows up -- it succeeds, but takes
3958 # about 5 minutes as the teststring grows exponentially.
3959 # Worse, since 9x/ME are not pre-emptively multitasking,
3960 # you end up with a "frozen" computer, even though with patience
3961 # the test eventually succeeds (with a max line length of 256k).
3962 # Instead, let's just punt: use the minimum linelength reported by
3963 # all of the supported platforms: 8192 (on NT/2K/XP).
3964 lt_cv_sys_max_cmd_len=8192;
3967 mint*)
3968 # On MiNT this can take a long time and run out of memory.
3969 lt_cv_sys_max_cmd_len=8192;
3972 amigaos*)
3973 # On AmigaOS with pdksh, this test takes hours, literally.
3974 # So we just punt and use a minimum line length of 8192.
3975 lt_cv_sys_max_cmd_len=8192;
3978 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
3979 # This has been around since 386BSD, at least. Likely further.
3980 if test -x /sbin/sysctl; then
3981 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3982 elif test -x /usr/sbin/sysctl; then
3983 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3984 else
3985 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3987 # And add a safety zone
3988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3989 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3992 interix*)
3993 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3994 lt_cv_sys_max_cmd_len=196608
3997 os2*)
3998 # The test takes a long time on OS/2.
3999 lt_cv_sys_max_cmd_len=8192
4002 osf*)
4003 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4004 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4005 # nice to cause kernel panics so lets avoid the loop below.
4006 # First set a reasonable default.
4007 lt_cv_sys_max_cmd_len=16384
4009 if test -x /sbin/sysconfig; then
4010 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4011 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4012 esac
4015 sco3.2v5*)
4016 lt_cv_sys_max_cmd_len=102400
4018 sysv5* | sco5v6* | sysv4.2uw2*)
4019 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4020 if test -n "$kargmax"; then
4021 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4022 else
4023 lt_cv_sys_max_cmd_len=32768
4027 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4028 if test -n "$lt_cv_sys_max_cmd_len" && \
4029 test undefined != "$lt_cv_sys_max_cmd_len"; then
4030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4032 else
4033 # Make teststring a little bigger before we do anything with it.
4034 # a 1K string should be a reasonable start.
4035 for i in 1 2 3 4 5 6 7 8; do
4036 teststring=$teststring$teststring
4037 done
4038 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4039 # If test is not a shell built-in, we'll probably end up computing a
4040 # maximum length that is only half of the actual maximum length, but
4041 # we can't tell.
4042 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4043 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4044 test 17 != "$i" # 1/2 MB should be enough
4046 i=`expr $i + 1`
4047 teststring=$teststring$teststring
4048 done
4049 # Only check the string length outside the loop.
4050 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4051 teststring=
4052 # Add a significant safety factor because C++ compilers can tack on
4053 # massive amounts of additional arguments before passing them to the
4054 # linker. It appears as though 1/2 is a usable value.
4055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4058 esac
4062 if test -n "$lt_cv_sys_max_cmd_len"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4064 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4065 else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4067 $as_echo "none" >&6; }
4069 max_cmd_len=$lt_cv_sys_max_cmd_len
4076 : ${CP="cp -f"}
4077 : ${MV="mv -f"}
4078 : ${RM="rm -f"}
4080 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4081 lt_unset=unset
4082 else
4083 lt_unset=false
4090 # test EBCDIC or ASCII
4091 case `echo X|tr X '\101'` in
4092 A) # ASCII based system
4093 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4094 lt_SP2NL='tr \040 \012'
4095 lt_NL2SP='tr \015\012 \040\040'
4097 *) # EBCDIC based system
4098 lt_SP2NL='tr \100 \n'
4099 lt_NL2SP='tr \r\n \100\100'
4101 esac
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4112 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4113 if ${lt_cv_to_host_file_cmd+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 case $host in
4117 *-*-mingw* )
4118 case $build in
4119 *-*-mingw* ) # actually msys
4120 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4122 *-*-cygwin* )
4123 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4125 * ) # otherwise, assume *nix
4126 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4128 esac
4130 *-*-cygwin* )
4131 case $build in
4132 *-*-mingw* ) # actually msys
4133 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4135 *-*-cygwin* )
4136 lt_cv_to_host_file_cmd=func_convert_file_noop
4138 * ) # otherwise, assume *nix
4139 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4141 esac
4143 * ) # unhandled hosts (and "normal" native builds)
4144 lt_cv_to_host_file_cmd=func_convert_file_noop
4146 esac
4150 to_host_file_cmd=$lt_cv_to_host_file_cmd
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4152 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4159 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4160 if ${lt_cv_to_tool_file_cmd+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 #assume ordinary cross tools, or native build.
4164 lt_cv_to_tool_file_cmd=func_convert_file_noop
4165 case $host in
4166 *-*-mingw* )
4167 case $build in
4168 *-*-mingw* ) # actually msys
4169 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4171 esac
4173 esac
4177 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4179 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4186 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4187 if ${lt_cv_ld_reload_flag+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 lt_cv_ld_reload_flag='-r'
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4193 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4194 reload_flag=$lt_cv_ld_reload_flag
4195 case $reload_flag in
4196 "" | " "*) ;;
4197 *) reload_flag=" $reload_flag" ;;
4198 esac
4199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4200 case $host_os in
4201 cygwin* | mingw* | pw32* | cegcc*)
4202 if test yes != "$GCC"; then
4203 reload_cmds=false
4206 darwin*)
4207 if test yes = "$GCC"; then
4208 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4209 else
4210 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4213 esac
4223 if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if ${ac_cv_prog_OBJDUMP+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$OBJDUMP"; then
4232 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4245 done
4246 done
4247 IFS=$as_save_IFS
4251 OBJDUMP=$ac_cv_prog_OBJDUMP
4252 if test -n "$OBJDUMP"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4254 $as_echo "$OBJDUMP" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4262 if test -z "$ac_cv_prog_OBJDUMP"; then
4263 ac_ct_OBJDUMP=$OBJDUMP
4264 # Extract the first word of "objdump", so it can be a program name with args.
4265 set dummy objdump; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 if test -n "$ac_ct_OBJDUMP"; then
4272 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4285 done
4286 done
4287 IFS=$as_save_IFS
4291 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4292 if test -n "$ac_ct_OBJDUMP"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4294 $as_echo "$ac_ct_OBJDUMP" >&6; }
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4300 if test "x$ac_ct_OBJDUMP" = x; then
4301 OBJDUMP="false"
4302 else
4303 case $cross_compiling:$ac_tool_warned in
4304 yes:)
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4307 ac_tool_warned=yes ;;
4308 esac
4309 OBJDUMP=$ac_ct_OBJDUMP
4311 else
4312 OBJDUMP="$ac_cv_prog_OBJDUMP"
4315 test -z "$OBJDUMP" && OBJDUMP=objdump
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4326 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4327 if ${lt_cv_deplibs_check_method+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 lt_cv_file_magic_cmd='$MAGIC_CMD'
4331 lt_cv_file_magic_test_file=
4332 lt_cv_deplibs_check_method='unknown'
4333 # Need to set the preceding variable on all platforms that support
4334 # interlibrary dependencies.
4335 # 'none' -- dependencies not supported.
4336 # 'unknown' -- same as none, but documents that we really don't know.
4337 # 'pass_all' -- all dependencies passed with no checks.
4338 # 'test_compile' -- check by making test program.
4339 # 'file_magic [[regex]]' -- check by looking for files in library path
4340 # that responds to the $file_magic_cmd with a given extended regex.
4341 # If you have 'file' or equivalent on your system and you're not sure
4342 # whether 'pass_all' will *always* work, you probably want this one.
4344 case $host_os in
4345 aix[4-9]*)
4346 lt_cv_deplibs_check_method=pass_all
4349 beos*)
4350 lt_cv_deplibs_check_method=pass_all
4353 bsdi[45]*)
4354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4355 lt_cv_file_magic_cmd='/usr/bin/file -L'
4356 lt_cv_file_magic_test_file=/shlib/libc.so
4359 cygwin*)
4360 # func_win32_libid is a shell function defined in ltmain.sh
4361 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4362 lt_cv_file_magic_cmd='func_win32_libid'
4365 mingw* | pw32*)
4366 # Base MSYS/MinGW do not provide the 'file' command needed by
4367 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4368 # unless we find 'file', for example because we are cross-compiling.
4369 if ( file / ) >/dev/null 2>&1; then
4370 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4371 lt_cv_file_magic_cmd='func_win32_libid'
4372 else
4373 # Keep this pattern in sync with the one in func_win32_libid.
4374 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4375 lt_cv_file_magic_cmd='$OBJDUMP -f'
4379 cegcc*)
4380 # use the weaker test based on 'objdump'. See mingw*.
4381 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4382 lt_cv_file_magic_cmd='$OBJDUMP -f'
4385 darwin* | rhapsody*)
4386 lt_cv_deplibs_check_method=pass_all
4389 freebsd* | dragonfly*)
4390 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4391 case $host_cpu in
4392 i*86 )
4393 # Not sure whether the presence of OpenBSD here was a mistake.
4394 # Let's accept both of them until this is cleared up.
4395 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4396 lt_cv_file_magic_cmd=/usr/bin/file
4397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4399 esac
4400 else
4401 lt_cv_deplibs_check_method=pass_all
4405 haiku*)
4406 lt_cv_deplibs_check_method=pass_all
4409 hpux10.20* | hpux11*)
4410 lt_cv_file_magic_cmd=/usr/bin/file
4411 case $host_cpu in
4412 ia64*)
4413 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4414 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4416 hppa*64*)
4417 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]'
4418 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4422 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4424 esac
4427 interix[3-9]*)
4428 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4432 irix5* | irix6* | nonstopux*)
4433 case $LD in
4434 *-32|*"-32 ") libmagic=32-bit;;
4435 *-n32|*"-n32 ") libmagic=N32;;
4436 *-64|*"-64 ") libmagic=64-bit;;
4437 *) libmagic=never-match;;
4438 esac
4439 lt_cv_deplibs_check_method=pass_all
4442 # This must be glibc/ELF.
4443 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4444 lt_cv_deplibs_check_method=pass_all
4447 netbsd*)
4448 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4450 else
4451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4455 newos6*)
4456 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4457 lt_cv_file_magic_cmd=/usr/bin/file
4458 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4461 *nto* | *qnx*)
4462 lt_cv_deplibs_check_method=pass_all
4465 openbsd* | bitrig*)
4466 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4468 else
4469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4473 osf3* | osf4* | osf5*)
4474 lt_cv_deplibs_check_method=pass_all
4477 rdos*)
4478 lt_cv_deplibs_check_method=pass_all
4481 solaris*)
4482 lt_cv_deplibs_check_method=pass_all
4485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4486 lt_cv_deplibs_check_method=pass_all
4489 sysv4 | sysv4.3*)
4490 case $host_vendor in
4491 motorola)
4492 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]'
4493 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4495 ncr)
4496 lt_cv_deplibs_check_method=pass_all
4498 sequent)
4499 lt_cv_file_magic_cmd='/bin/file'
4500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4502 sni)
4503 lt_cv_file_magic_cmd='/bin/file'
4504 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4505 lt_cv_file_magic_test_file=/lib/libc.so
4507 siemens)
4508 lt_cv_deplibs_check_method=pass_all
4511 lt_cv_deplibs_check_method=pass_all
4513 esac
4516 tpf*)
4517 lt_cv_deplibs_check_method=pass_all
4519 os2*)
4520 lt_cv_deplibs_check_method=pass_all
4522 esac
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4526 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4528 file_magic_glob=
4529 want_nocaseglob=no
4530 if test "$build" = "$host"; then
4531 case $host_os in
4532 mingw* | pw32*)
4533 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4534 want_nocaseglob=yes
4535 else
4536 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4539 esac
4542 file_magic_cmd=$lt_cv_file_magic_cmd
4543 deplibs_check_method=$lt_cv_deplibs_check_method
4544 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4567 if test -n "$ac_tool_prefix"; then
4568 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4569 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if ${ac_cv_prog_DLLTOOL+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if test -n "$DLLTOOL"; then
4576 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4585 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4589 done
4590 done
4591 IFS=$as_save_IFS
4595 DLLTOOL=$ac_cv_prog_DLLTOOL
4596 if test -n "$DLLTOOL"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4598 $as_echo "$DLLTOOL" >&6; }
4599 else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4606 if test -z "$ac_cv_prog_DLLTOOL"; then
4607 ac_ct_DLLTOOL=$DLLTOOL
4608 # Extract the first word of "dlltool", so it can be a program name with args.
4609 set dummy dlltool; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$ac_ct_DLLTOOL"; then
4616 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4625 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4629 done
4630 done
4631 IFS=$as_save_IFS
4635 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4636 if test -n "$ac_ct_DLLTOOL"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4638 $as_echo "$ac_ct_DLLTOOL" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4644 if test "x$ac_ct_DLLTOOL" = x; then
4645 DLLTOOL="false"
4646 else
4647 case $cross_compiling:$ac_tool_warned in
4648 yes:)
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4651 ac_tool_warned=yes ;;
4652 esac
4653 DLLTOOL=$ac_ct_DLLTOOL
4655 else
4656 DLLTOOL="$ac_cv_prog_DLLTOOL"
4659 test -z "$DLLTOOL" && DLLTOOL=dlltool
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4671 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4672 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 lt_cv_sharedlib_from_linklib_cmd='unknown'
4677 case $host_os in
4678 cygwin* | mingw* | pw32* | cegcc*)
4679 # two different shell functions defined in ltmain.sh;
4680 # decide which one to use based on capabilities of $DLLTOOL
4681 case `$DLLTOOL --help 2>&1` in
4682 *--identify-strict*)
4683 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4686 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4688 esac
4691 # fallback: assume linklib IS sharedlib
4692 lt_cv_sharedlib_from_linklib_cmd=$ECHO
4694 esac
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4698 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4699 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4700 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4709 if test -n "$ac_tool_prefix"; then
4710 for ac_prog in ar
4712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if ${ac_cv_prog_AR+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 if test -n "$AR"; then
4720 ac_cv_prog_AR="$AR" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4733 done
4734 done
4735 IFS=$as_save_IFS
4739 AR=$ac_cv_prog_AR
4740 if test -n "$AR"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4742 $as_echo "$AR" >&6; }
4743 else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4749 test -n "$AR" && break
4750 done
4752 if test -z "$AR"; then
4753 ac_ct_AR=$AR
4754 for ac_prog in ar
4756 # Extract the first word of "$ac_prog", so it can be a program name with args.
4757 set dummy $ac_prog; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -n "$ac_ct_AR"; then
4764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_ac_ct_AR="$ac_prog"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4777 done
4778 done
4779 IFS=$as_save_IFS
4783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4784 if test -n "$ac_ct_AR"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4786 $as_echo "$ac_ct_AR" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4793 test -n "$ac_ct_AR" && break
4794 done
4796 if test "x$ac_ct_AR" = x; then
4797 AR="false"
4798 else
4799 case $cross_compiling:$ac_tool_warned in
4800 yes:)
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803 ac_tool_warned=yes ;;
4804 esac
4805 AR=$ac_ct_AR
4809 : ${AR=ar}
4810 : ${AR_FLAGS=cru}
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4823 $as_echo_n "checking for archiver @FILE support... " >&6; }
4824 if ${lt_cv_ar_at_file+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 lt_cv_ar_at_file=no
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4832 main ()
4836 return 0;
4838 _ACEOF
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840 echo conftest.$ac_objext > conftest.lst
4841 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4843 (eval $lt_ar_try) 2>&5
4844 ac_status=$?
4845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846 test $ac_status = 0; }
4847 if test 0 -eq "$ac_status"; then
4848 # Ensure the archiver fails upon bogus file names.
4849 rm -f conftest.$ac_objext libconftest.a
4850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4851 (eval $lt_ar_try) 2>&5
4852 ac_status=$?
4853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4854 test $ac_status = 0; }
4855 if test 0 -ne "$ac_status"; then
4856 lt_cv_ar_at_file=@
4859 rm -f conftest.* libconftest.a
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4866 $as_echo "$lt_cv_ar_at_file" >&6; }
4868 if test no = "$lt_cv_ar_at_file"; then
4869 archiver_list_spec=
4870 else
4871 archiver_list_spec=$lt_cv_ar_at_file
4880 if test -n "$ac_tool_prefix"; then
4881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4882 set dummy ${ac_tool_prefix}strip; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if ${ac_cv_prog_STRIP+:} false; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 if test -n "$STRIP"; then
4889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4902 done
4903 done
4904 IFS=$as_save_IFS
4908 STRIP=$ac_cv_prog_STRIP
4909 if test -n "$STRIP"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4911 $as_echo "$STRIP" >&6; }
4912 else
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4919 if test -z "$ac_cv_prog_STRIP"; then
4920 ac_ct_STRIP=$STRIP
4921 # Extract the first word of "strip", so it can be a program name with args.
4922 set dummy strip; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 if test -n "$ac_ct_STRIP"; then
4929 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938 ac_cv_prog_ac_ct_STRIP="strip"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4942 done
4943 done
4944 IFS=$as_save_IFS
4948 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4949 if test -n "$ac_ct_STRIP"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4951 $as_echo "$ac_ct_STRIP" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4957 if test "x$ac_ct_STRIP" = x; then
4958 STRIP=":"
4959 else
4960 case $cross_compiling:$ac_tool_warned in
4961 yes:)
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4964 ac_tool_warned=yes ;;
4965 esac
4966 STRIP=$ac_ct_STRIP
4968 else
4969 STRIP="$ac_cv_prog_STRIP"
4972 test -z "$STRIP" && STRIP=:
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_prog_RANLIB+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -n "$RANLIB"; then
4988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5003 IFS=$as_save_IFS
5007 RANLIB=$ac_cv_prog_RANLIB
5008 if test -n "$RANLIB"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5010 $as_echo "$RANLIB" >&6; }
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5018 if test -z "$ac_cv_prog_RANLIB"; then
5019 ac_ct_RANLIB=$RANLIB
5020 # Extract the first word of "ranlib", so it can be a program name with args.
5021 set dummy ranlib; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 if test -n "$ac_ct_RANLIB"; then
5028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_prog_ac_ct_RANLIB="ranlib"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5041 done
5042 done
5043 IFS=$as_save_IFS
5047 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5048 if test -n "$ac_ct_RANLIB"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5050 $as_echo "$ac_ct_RANLIB" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5056 if test "x$ac_ct_RANLIB" = x; then
5057 RANLIB=":"
5058 else
5059 case $cross_compiling:$ac_tool_warned in
5060 yes:)
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5063 ac_tool_warned=yes ;;
5064 esac
5065 RANLIB=$ac_ct_RANLIB
5067 else
5068 RANLIB="$ac_cv_prog_RANLIB"
5071 test -z "$RANLIB" && RANLIB=:
5078 # Determine commands to create old-style static archives.
5079 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5080 old_postinstall_cmds='chmod 644 $oldlib'
5081 old_postuninstall_cmds=
5083 if test -n "$RANLIB"; then
5084 case $host_os in
5085 bitrig* | openbsd*)
5086 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5089 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5091 esac
5092 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5095 case $host_os in
5096 darwin*)
5097 lock_old_archive_extraction=yes ;;
5099 lock_old_archive_extraction=no ;;
5100 esac
5122 for ac_prog in gawk mawk nawk awk
5124 # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_AWK+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$AWK"; then
5132 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_AWK="$ac_prog"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 AWK=$ac_cv_prog_AWK
5152 if test -n "$AWK"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5154 $as_echo "$AWK" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5161 test -n "$AWK" && break
5162 done
5182 # If no C compiler was specified, use CC.
5183 LTCC=${LTCC-"$CC"}
5185 # If no C compiler flags were specified, use CFLAGS.
5186 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5188 # Allow CC to be a program name with arguments.
5189 compiler=$CC
5192 # Check for command to grab the raw symbol name followed by C symbol from nm.
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5194 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5195 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5199 # These are sane defaults that work on at least a few old systems.
5200 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5202 # Character class describing NM global symbol codes.
5203 symcode='[BCDEGRST]'
5205 # Regexp to match symbols that can be accessed directly from C.
5206 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5208 # Define system-specific variables.
5209 case $host_os in
5210 aix*)
5211 symcode='[BCDT]'
5213 cygwin* | mingw* | pw32* | cegcc*)
5214 symcode='[ABCDGISTW]'
5216 hpux*)
5217 if test ia64 = "$host_cpu"; then
5218 symcode='[ABCDEGRST]'
5221 irix* | nonstopux*)
5222 symcode='[BCDEGRST]'
5224 osf*)
5225 symcode='[BCDEGQRST]'
5227 solaris*)
5228 symcode='[BDRT]'
5230 sco3.2v5*)
5231 symcode='[DT]'
5233 sysv4.2uw2*)
5234 symcode='[DT]'
5236 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5237 symcode='[ABDT]'
5239 sysv4)
5240 symcode='[DFNSTU]'
5242 esac
5244 # If we're using GNU nm, then use its standard symbol codes.
5245 case `$NM -V 2>&1` in
5246 *GNU* | *'with BFD'*)
5247 symcode='[ABCDGIRSTW]' ;;
5248 esac
5250 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5251 # Gets list of data symbols to import.
5252 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5253 # Adjust the below global symbol transforms to fixup imported variables.
5254 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5255 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5256 lt_c_name_lib_hook="\
5257 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5258 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5259 else
5260 # Disable hooks by default.
5261 lt_cv_sys_global_symbol_to_import=
5262 lt_cdecl_hook=
5263 lt_c_name_hook=
5264 lt_c_name_lib_hook=
5267 # Transform an extracted symbol line into a proper C declaration.
5268 # Some systems (esp. on ia64) link data and code symbols differently,
5269 # so use this general approach.
5270 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5271 $lt_cdecl_hook\
5272 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5273 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5275 # Transform an extracted symbol line into symbol name and symbol address
5276 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5277 $lt_c_name_hook\
5278 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5279 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5281 # Transform an extracted symbol line into symbol name with lib prefix and
5282 # symbol address.
5283 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5284 $lt_c_name_lib_hook\
5285 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5286 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5287 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5289 # Handle CRLF in mingw tool chain
5290 opt_cr=
5291 case $build_os in
5292 mingw*)
5293 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5295 esac
5297 # Try without a prefix underscore, then with it.
5298 for ac_symprfx in "" "_"; do
5300 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5301 symxfrm="\\1 $ac_symprfx\\2 \\2"
5303 # Write the raw and C identifiers.
5304 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5305 # Fake it for dumpbin and say T for any non-static function,
5306 # D for any global variable and I for any imported variable.
5307 # Also find C++ and __fastcall symbols from MSVC++,
5308 # which start with @ or ?.
5309 lt_cv_sys_global_symbol_pipe="$AWK '"\
5310 " {last_section=section; section=\$ 3};"\
5311 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5312 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5313 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5314 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5315 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5316 " \$ 0!~/External *\|/{next};"\
5317 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5318 " {if(hide[section]) next};"\
5319 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5320 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5321 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5322 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5323 " ' prfx=^$ac_symprfx"
5324 else
5325 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5327 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5329 # Check to see that the pipe works correctly.
5330 pipe_works=no
5332 rm -f conftest*
5333 cat > conftest.$ac_ext <<_LT_EOF
5334 #ifdef __cplusplus
5335 extern "C" {
5336 #endif
5337 char nm_test_var;
5338 void nm_test_func(void);
5339 void nm_test_func(void){}
5340 #ifdef __cplusplus
5342 #endif
5343 int main(){nm_test_var='a';nm_test_func();return(0);}
5344 _LT_EOF
5346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5347 (eval $ac_compile) 2>&5
5348 ac_status=$?
5349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5350 test $ac_status = 0; }; then
5351 # Now try to grab the symbols.
5352 nlist=conftest.nm
5353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5354 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5355 ac_status=$?
5356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5357 test $ac_status = 0; } && test -s "$nlist"; then
5358 # Try sorting and uniquifying the output.
5359 if sort "$nlist" | uniq > "$nlist"T; then
5360 mv -f "$nlist"T "$nlist"
5361 else
5362 rm -f "$nlist"T
5365 # Make sure that we snagged all the symbols we need.
5366 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5367 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5368 cat <<_LT_EOF > conftest.$ac_ext
5369 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5370 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5371 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5372 relocations are performed -- see ld's documentation on pseudo-relocs. */
5373 # define LT_DLSYM_CONST
5374 #elif defined __osf__
5375 /* This system does not cope well with relocations in const data. */
5376 # define LT_DLSYM_CONST
5377 #else
5378 # define LT_DLSYM_CONST const
5379 #endif
5381 #ifdef __cplusplus
5382 extern "C" {
5383 #endif
5385 _LT_EOF
5386 # Now generate the symbol file.
5387 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5389 cat <<_LT_EOF >> conftest.$ac_ext
5391 /* The mapping between symbol names and symbols. */
5392 LT_DLSYM_CONST struct {
5393 const char *name;
5394 void *address;
5396 lt__PROGRAM__LTX_preloaded_symbols[] =
5398 { "@PROGRAM@", (void *) 0 },
5399 _LT_EOF
5400 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5401 cat <<\_LT_EOF >> conftest.$ac_ext
5402 {0, (void *) 0}
5405 /* This works around a problem in FreeBSD linker */
5406 #ifdef FREEBSD_WORKAROUND
5407 static const void *lt_preloaded_setup() {
5408 return lt__PROGRAM__LTX_preloaded_symbols;
5410 #endif
5412 #ifdef __cplusplus
5414 #endif
5415 _LT_EOF
5416 # Now try linking the two files.
5417 mv conftest.$ac_objext conftstm.$ac_objext
5418 lt_globsym_save_LIBS=$LIBS
5419 lt_globsym_save_CFLAGS=$CFLAGS
5420 LIBS=conftstm.$ac_objext
5421 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5423 (eval $ac_link) 2>&5
5424 ac_status=$?
5425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5426 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5427 pipe_works=yes
5429 LIBS=$lt_globsym_save_LIBS
5430 CFLAGS=$lt_globsym_save_CFLAGS
5431 else
5432 echo "cannot find nm_test_func in $nlist" >&5
5434 else
5435 echo "cannot find nm_test_var in $nlist" >&5
5437 else
5438 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5440 else
5441 echo "$progname: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5444 rm -rf conftest* conftst*
5446 # Do not use the global_symbol_pipe unless it works.
5447 if test yes = "$pipe_works"; then
5448 break
5449 else
5450 lt_cv_sys_global_symbol_pipe=
5452 done
5456 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5457 lt_cv_sys_global_symbol_to_cdecl=
5459 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5461 $as_echo "failed" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5464 $as_echo "ok" >&6; }
5467 # Response file support.
5468 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5469 nm_file_list_spec='@'
5470 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5471 nm_file_list_spec='@'
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5511 $as_echo_n "checking for sysroot... " >&6; }
5513 # Check whether --with-sysroot was given.
5514 if test "${with_sysroot+set}" = set; then :
5515 withval=$with_sysroot;
5516 else
5517 with_sysroot=no
5521 lt_sysroot=
5522 case $with_sysroot in #(
5523 yes)
5524 if test yes = "$GCC"; then
5525 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5527 ;; #(
5529 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5530 ;; #(
5531 no|'')
5532 ;; #(
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5535 $as_echo "$with_sysroot" >&6; }
5536 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5538 esac
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5541 $as_echo "${lt_sysroot:-no}" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5548 $as_echo_n "checking for a working dd... " >&6; }
5549 if ${ac_cv_path_lt_DD+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 printf 0123456789abcdef0123456789abcdef >conftest.i
5553 cat conftest.i conftest.i >conftest2.i
5554 : ${lt_DD:=$DD}
5555 if test -z "$lt_DD"; then
5556 ac_path_lt_DD_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_prog in dd; do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5566 as_fn_executable_p "$ac_path_lt_DD" || continue
5567 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5568 cmp -s conftest.i conftest.out \
5569 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5571 $ac_path_lt_DD_found && break 3
5572 done
5573 done
5574 done
5575 IFS=$as_save_IFS
5576 if test -z "$ac_cv_path_lt_DD"; then
5579 else
5580 ac_cv_path_lt_DD=$lt_DD
5583 rm -f conftest.i conftest2.i conftest.out
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5586 $as_echo "$ac_cv_path_lt_DD" >&6; }
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5590 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5591 if ${lt_cv_truncate_bin+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 printf 0123456789abcdef0123456789abcdef >conftest.i
5595 cat conftest.i conftest.i >conftest2.i
5596 lt_cv_truncate_bin=
5597 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5598 cmp -s conftest.i conftest.out \
5599 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5601 rm -f conftest.i conftest2.i conftest.out
5602 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5605 $as_echo "$lt_cv_truncate_bin" >&6; }
5613 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5614 func_cc_basename ()
5616 for cc_temp in $*""; do
5617 case $cc_temp in
5618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5620 \-*) ;;
5621 *) break;;
5622 esac
5623 done
5624 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5627 # Check whether --enable-libtool-lock was given.
5628 if test "${enable_libtool_lock+set}" = set; then :
5629 enableval=$enable_libtool_lock;
5632 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5634 # Some flags need to be propagated to the compiler or linker for good
5635 # libtool support.
5636 case $host in
5637 ia64-*-hpux*)
5638 # Find out what ABI is being produced by ac_compile, and set mode
5639 # options accordingly.
5640 echo 'int i;' > conftest.$ac_ext
5641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5642 (eval $ac_compile) 2>&5
5643 ac_status=$?
5644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5645 test $ac_status = 0; }; then
5646 case `/usr/bin/file conftest.$ac_objext` in
5647 *ELF-32*)
5648 HPUX_IA64_MODE=32
5650 *ELF-64*)
5651 HPUX_IA64_MODE=64
5653 esac
5655 rm -rf conftest*
5657 *-*-irix6*)
5658 # Find out what ABI is being produced by ac_compile, and set linker
5659 # options accordingly.
5660 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5662 (eval $ac_compile) 2>&5
5663 ac_status=$?
5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5665 test $ac_status = 0; }; then
5666 if test yes = "$lt_cv_prog_gnu_ld"; then
5667 case `/usr/bin/file conftest.$ac_objext` in
5668 *32-bit*)
5669 LD="${LD-ld} -melf32bsmip"
5671 *N32*)
5672 LD="${LD-ld} -melf32bmipn32"
5674 *64-bit*)
5675 LD="${LD-ld} -melf64bmip"
5677 esac
5678 else
5679 case `/usr/bin/file conftest.$ac_objext` in
5680 *32-bit*)
5681 LD="${LD-ld} -32"
5683 *N32*)
5684 LD="${LD-ld} -n32"
5686 *64-bit*)
5687 LD="${LD-ld} -64"
5689 esac
5692 rm -rf conftest*
5695 mips64*-*linux*)
5696 # Find out what ABI is being produced by ac_compile, and set linker
5697 # options accordingly.
5698 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5700 (eval $ac_compile) 2>&5
5701 ac_status=$?
5702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5703 test $ac_status = 0; }; then
5704 emul=elf
5705 case `/usr/bin/file conftest.$ac_objext` in
5706 *32-bit*)
5707 emul="${emul}32"
5709 *64-bit*)
5710 emul="${emul}64"
5712 esac
5713 case `/usr/bin/file conftest.$ac_objext` in
5714 *MSB*)
5715 emul="${emul}btsmip"
5717 *LSB*)
5718 emul="${emul}ltsmip"
5720 esac
5721 case `/usr/bin/file conftest.$ac_objext` in
5722 *N32*)
5723 emul="${emul}n32"
5725 esac
5726 LD="${LD-ld} -m $emul"
5728 rm -rf conftest*
5731 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5732 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5733 # Find out what ABI is being produced by ac_compile, and set linker
5734 # options accordingly. Note that the listed cases only cover the
5735 # situations where additional linker options are needed (such as when
5736 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5737 # vice versa); the common cases where no linker options are needed do
5738 # not appear in the list.
5739 echo 'int i;' > conftest.$ac_ext
5740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5741 (eval $ac_compile) 2>&5
5742 ac_status=$?
5743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5744 test $ac_status = 0; }; then
5745 case `/usr/bin/file conftest.o` in
5746 *32-bit*)
5747 case $host in
5748 x86_64-*kfreebsd*-gnu)
5749 LD="${LD-ld} -m elf_i386_fbsd"
5751 x86_64-*linux*)
5752 case `/usr/bin/file conftest.o` in
5753 *x86-64*)
5754 LD="${LD-ld} -m elf32_x86_64"
5757 LD="${LD-ld} -m elf_i386"
5759 esac
5761 powerpc64le-*linux*)
5762 LD="${LD-ld} -m elf32lppclinux"
5764 powerpc64-*linux*)
5765 LD="${LD-ld} -m elf32ppclinux"
5767 s390x-*linux*)
5768 LD="${LD-ld} -m elf_s390"
5770 sparc64-*linux*)
5771 LD="${LD-ld} -m elf32_sparc"
5773 esac
5775 *64-bit*)
5776 case $host in
5777 x86_64-*kfreebsd*-gnu)
5778 LD="${LD-ld} -m elf_x86_64_fbsd"
5780 x86_64-*linux*)
5781 LD="${LD-ld} -m elf_x86_64"
5783 powerpcle-*linux*)
5784 LD="${LD-ld} -m elf64lppc"
5786 powerpc-*linux*)
5787 LD="${LD-ld} -m elf64ppc"
5789 s390*-*linux*|s390*-*tpf*)
5790 LD="${LD-ld} -m elf64_s390"
5792 sparc*-*linux*)
5793 LD="${LD-ld} -m elf64_sparc"
5795 esac
5797 esac
5799 rm -rf conftest*
5802 *-*-sco3.2v5*)
5803 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5804 SAVE_CFLAGS=$CFLAGS
5805 CFLAGS="$CFLAGS -belf"
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5807 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5808 if ${lt_cv_cc_needs_belf+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 ac_ext=c
5812 ac_cpp='$CPP $CPPFLAGS'
5813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5821 main ()
5825 return 0;
5827 _ACEOF
5828 if ac_fn_c_try_link "$LINENO"; then :
5829 lt_cv_cc_needs_belf=yes
5830 else
5831 lt_cv_cc_needs_belf=no
5833 rm -f core conftest.err conftest.$ac_objext \
5834 conftest$ac_exeext conftest.$ac_ext
5835 ac_ext=c
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5843 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5844 if test yes != "$lt_cv_cc_needs_belf"; then
5845 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5846 CFLAGS=$SAVE_CFLAGS
5849 *-*solaris*)
5850 # Find out what ABI is being produced by ac_compile, and set linker
5851 # options accordingly.
5852 echo 'int i;' > conftest.$ac_ext
5853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5854 (eval $ac_compile) 2>&5
5855 ac_status=$?
5856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5857 test $ac_status = 0; }; then
5858 case `/usr/bin/file conftest.o` in
5859 *64-bit*)
5860 case $lt_cv_prog_gnu_ld in
5861 yes*)
5862 case $host in
5863 i?86-*-solaris*|x86_64-*-solaris*)
5864 LD="${LD-ld} -m elf_x86_64"
5866 sparc*-*-solaris*)
5867 LD="${LD-ld} -m elf64_sparc"
5869 esac
5870 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5871 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5872 LD=${LD-ld}_sol2
5876 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5877 LD="${LD-ld} -64"
5880 esac
5882 esac
5884 rm -rf conftest*
5886 esac
5888 need_locks=$enable_libtool_lock
5890 if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}mt; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 if test -n "$MANIFEST_TOOL"; then
5899 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5912 done
5913 done
5914 IFS=$as_save_IFS
5918 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5919 if test -n "$MANIFEST_TOOL"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5921 $as_echo "$MANIFEST_TOOL" >&6; }
5922 else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5929 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5930 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5931 # Extract the first word of "mt", so it can be a program name with args.
5932 set dummy mt; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if test -n "$ac_ct_MANIFEST_TOOL"; then
5939 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5952 done
5953 done
5954 IFS=$as_save_IFS
5958 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5959 if test -n "$ac_ct_MANIFEST_TOOL"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5961 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5962 else
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5967 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5968 MANIFEST_TOOL=":"
5969 else
5970 case $cross_compiling:$ac_tool_warned in
5971 yes:)
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned=yes ;;
5975 esac
5976 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5978 else
5979 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5982 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5984 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5985 if ${lt_cv_path_mainfest_tool+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 lt_cv_path_mainfest_tool=no
5989 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5990 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5991 cat conftest.err >&5
5992 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5993 lt_cv_path_mainfest_tool=yes
5995 rm -f conftest*
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5998 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5999 if test yes != "$lt_cv_path_mainfest_tool"; then
6000 MANIFEST_TOOL=:
6008 case $host_os in
6009 rhapsody* | darwin*)
6010 if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 if test -n "$DSYMUTIL"; then
6019 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6032 done
6033 done
6034 IFS=$as_save_IFS
6038 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6039 if test -n "$DSYMUTIL"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6041 $as_echo "$DSYMUTIL" >&6; }
6042 else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6049 if test -z "$ac_cv_prog_DSYMUTIL"; then
6050 ac_ct_DSYMUTIL=$DSYMUTIL
6051 # Extract the first word of "dsymutil", so it can be a program name with args.
6052 set dummy dsymutil; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 if test -n "$ac_ct_DSYMUTIL"; then
6059 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6072 done
6073 done
6074 IFS=$as_save_IFS
6078 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6079 if test -n "$ac_ct_DSYMUTIL"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6081 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6082 else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084 $as_echo "no" >&6; }
6087 if test "x$ac_ct_DSYMUTIL" = x; then
6088 DSYMUTIL=":"
6089 else
6090 case $cross_compiling:$ac_tool_warned in
6091 yes:)
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094 ac_tool_warned=yes ;;
6095 esac
6096 DSYMUTIL=$ac_ct_DSYMUTIL
6098 else
6099 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6102 if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_prog_NMEDIT+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 if test -n "$NMEDIT"; then
6111 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6124 done
6125 done
6126 IFS=$as_save_IFS
6130 NMEDIT=$ac_cv_prog_NMEDIT
6131 if test -n "$NMEDIT"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6133 $as_echo "$NMEDIT" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6141 if test -z "$ac_cv_prog_NMEDIT"; then
6142 ac_ct_NMEDIT=$NMEDIT
6143 # Extract the first word of "nmedit", so it can be a program name with args.
6144 set dummy nmedit; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$ac_ct_NMEDIT"; then
6151 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6160 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6164 done
6165 done
6166 IFS=$as_save_IFS
6170 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6171 if test -n "$ac_ct_NMEDIT"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6173 $as_echo "$ac_ct_NMEDIT" >&6; }
6174 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6179 if test "x$ac_ct_NMEDIT" = x; then
6180 NMEDIT=":"
6181 else
6182 case $cross_compiling:$ac_tool_warned in
6183 yes:)
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186 ac_tool_warned=yes ;;
6187 esac
6188 NMEDIT=$ac_ct_NMEDIT
6190 else
6191 NMEDIT="$ac_cv_prog_NMEDIT"
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_LIPO+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$LIPO"; then
6203 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6216 done
6217 done
6218 IFS=$as_save_IFS
6222 LIPO=$ac_cv_prog_LIPO
6223 if test -n "$LIPO"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6225 $as_echo "$LIPO" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6233 if test -z "$ac_cv_prog_LIPO"; then
6234 ac_ct_LIPO=$LIPO
6235 # Extract the first word of "lipo", so it can be a program name with args.
6236 set dummy lipo; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$ac_ct_LIPO"; then
6243 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_ac_ct_LIPO="lipo"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6256 done
6257 done
6258 IFS=$as_save_IFS
6262 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6263 if test -n "$ac_ct_LIPO"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6265 $as_echo "$ac_ct_LIPO" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6271 if test "x$ac_ct_LIPO" = x; then
6272 LIPO=":"
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280 LIPO=$ac_ct_LIPO
6282 else
6283 LIPO="$ac_cv_prog_LIPO"
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}otool; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_OTOOL+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$OTOOL"; then
6295 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6308 done
6309 done
6310 IFS=$as_save_IFS
6314 OTOOL=$ac_cv_prog_OTOOL
6315 if test -n "$OTOOL"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6317 $as_echo "$OTOOL" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6325 if test -z "$ac_cv_prog_OTOOL"; then
6326 ac_ct_OTOOL=$OTOOL
6327 # Extract the first word of "otool", so it can be a program name with args.
6328 set dummy otool; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$ac_ct_OTOOL"; then
6335 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_ac_ct_OTOOL="otool"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6348 done
6349 done
6350 IFS=$as_save_IFS
6354 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6355 if test -n "$ac_ct_OTOOL"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6357 $as_echo "$ac_ct_OTOOL" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6363 if test "x$ac_ct_OTOOL" = x; then
6364 OTOOL=":"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 OTOOL=$ac_ct_OTOOL
6374 else
6375 OTOOL="$ac_cv_prog_OTOOL"
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_OTOOL64+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$OTOOL64"; then
6387 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6402 IFS=$as_save_IFS
6406 OTOOL64=$ac_cv_prog_OTOOL64
6407 if test -n "$OTOOL64"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6409 $as_echo "$OTOOL64" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6417 if test -z "$ac_cv_prog_OTOOL64"; then
6418 ac_ct_OTOOL64=$OTOOL64
6419 # Extract the first word of "otool64", so it can be a program name with args.
6420 set dummy otool64; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$ac_ct_OTOOL64"; then
6427 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_ac_ct_OTOOL64="otool64"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6440 done
6441 done
6442 IFS=$as_save_IFS
6446 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6447 if test -n "$ac_ct_OTOOL64"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6449 $as_echo "$ac_ct_OTOOL64" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6455 if test "x$ac_ct_OTOOL64" = x; then
6456 OTOOL64=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464 OTOOL64=$ac_ct_OTOOL64
6466 else
6467 OTOOL64="$ac_cv_prog_OTOOL64"
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6497 $as_echo_n "checking for -single_module linker flag... " >&6; }
6498 if ${lt_cv_apple_cc_single_mod+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 lt_cv_apple_cc_single_mod=no
6502 if test -z "$LT_MULTI_MODULE"; then
6503 # By default we will add the -single_module flag. You can override
6504 # by either setting the environment variable LT_MULTI_MODULE
6505 # non-empty at configure time, or by adding -multi_module to the
6506 # link flags.
6507 rm -rf libconftest.dylib*
6508 echo "int foo(void){return 1;}" > conftest.c
6509 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6510 -dynamiclib -Wl,-single_module conftest.c" >&5
6511 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6512 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6513 _lt_result=$?
6514 # If there is a non-empty error log, and "single_module"
6515 # appears in it, assume the flag caused a linker warning
6516 if test -s conftest.err && $GREP single_module conftest.err; then
6517 cat conftest.err >&5
6518 # Otherwise, if the output was created with a 0 exit code from
6519 # the compiler, it worked.
6520 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6521 lt_cv_apple_cc_single_mod=yes
6522 else
6523 cat conftest.err >&5
6525 rm -rf libconftest.dylib*
6526 rm -f conftest.*
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6530 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6533 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6534 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 lt_cv_ld_exported_symbols_list=no
6538 save_LDFLAGS=$LDFLAGS
6539 echo "_main" > conftest.sym
6540 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6545 main ()
6549 return 0;
6551 _ACEOF
6552 if ac_fn_c_try_link "$LINENO"; then :
6553 lt_cv_ld_exported_symbols_list=yes
6554 else
6555 lt_cv_ld_exported_symbols_list=no
6557 rm -f core conftest.err conftest.$ac_objext \
6558 conftest$ac_exeext conftest.$ac_ext
6559 LDFLAGS=$save_LDFLAGS
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6563 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6566 $as_echo_n "checking for -force_load linker flag... " >&6; }
6567 if ${lt_cv_ld_force_load+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 lt_cv_ld_force_load=no
6571 cat > conftest.c << _LT_EOF
6572 int forced_loaded() { return 2;}
6573 _LT_EOF
6574 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6575 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6576 echo "$AR cru libconftest.a conftest.o" >&5
6577 $AR cru libconftest.a conftest.o 2>&5
6578 echo "$RANLIB libconftest.a" >&5
6579 $RANLIB libconftest.a 2>&5
6580 cat > conftest.c << _LT_EOF
6581 int main() { return 0;}
6582 _LT_EOF
6583 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6584 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6585 _lt_result=$?
6586 if test -s conftest.err && $GREP force_load conftest.err; then
6587 cat conftest.err >&5
6588 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6589 lt_cv_ld_force_load=yes
6590 else
6591 cat conftest.err >&5
6593 rm -f conftest.err libconftest.a conftest conftest.c
6594 rm -rf conftest.dSYM
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6598 $as_echo "$lt_cv_ld_force_load" >&6; }
6599 case $host_os in
6600 rhapsody* | darwin1.[012])
6601 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6602 darwin1.*)
6603 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6604 darwin*) # darwin 5.x on
6605 # if running on 10.5 or later, the deployment target defaults
6606 # to the OS version, if on x86, and 10.4, the deployment
6607 # target defaults to 10.4. Don't you love it?
6608 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6609 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6610 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6611 10.[012][,.]*)
6612 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6613 10.*)
6614 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6615 esac
6617 esac
6618 if test yes = "$lt_cv_apple_cc_single_mod"; then
6619 _lt_dar_single_mod='$single_module'
6621 if test yes = "$lt_cv_ld_exported_symbols_list"; then
6622 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6623 else
6624 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6626 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6627 _lt_dsymutil='~$DSYMUTIL $lib || :'
6628 else
6629 _lt_dsymutil=
6632 esac
6634 # func_munge_path_list VARIABLE PATH
6635 # -----------------------------------
6636 # VARIABLE is name of variable containing _space_ separated list of
6637 # directories to be munged by the contents of PATH, which is string
6638 # having a format:
6639 # "DIR[:DIR]:"
6640 # string "DIR[ DIR]" will be prepended to VARIABLE
6641 # ":DIR[:DIR]"
6642 # string "DIR[ DIR]" will be appended to VARIABLE
6643 # "DIRP[:DIRP]::[DIRA:]DIRA"
6644 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6645 # "DIRA[ DIRA]" will be appended to VARIABLE
6646 # "DIR[:DIR]"
6647 # VARIABLE will be replaced by "DIR[ DIR]"
6648 func_munge_path_list ()
6650 case x$2 in
6654 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6656 x:*)
6657 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6659 *::*)
6660 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6661 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6664 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6666 esac
6669 ac_ext=c
6670 ac_cpp='$CPP $CPPFLAGS'
6671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6675 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6676 # On Suns, sometimes $CPP names a directory.
6677 if test -n "$CPP" && test -d "$CPP"; then
6678 CPP=
6680 if test -z "$CPP"; then
6681 if ${ac_cv_prog_CPP+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 # Double quotes because CPP needs to be expanded
6685 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6687 ac_preproc_ok=false
6688 for ac_c_preproc_warn_flag in '' yes
6690 # Use a header file that comes with gcc, so configuring glibc
6691 # with a fresh cross-compiler works.
6692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6693 # <limits.h> exists even on freestanding compilers.
6694 # On the NeXT, cc -E runs the code through the compiler's parser,
6695 # not just through cpp. "Syntax error" is here to catch this case.
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 #ifdef __STDC__
6699 # include <limits.h>
6700 #else
6701 # include <assert.h>
6702 #endif
6703 Syntax error
6704 _ACEOF
6705 if ac_fn_c_try_cpp "$LINENO"; then :
6707 else
6708 # Broken: fails on valid input.
6709 continue
6711 rm -f conftest.err conftest.i conftest.$ac_ext
6713 # OK, works on sane cases. Now check whether nonexistent headers
6714 # can be detected and how.
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 #include <ac_nonexistent.h>
6718 _ACEOF
6719 if ac_fn_c_try_cpp "$LINENO"; then :
6720 # Broken: success on invalid input.
6721 continue
6722 else
6723 # Passes both tests.
6724 ac_preproc_ok=:
6725 break
6727 rm -f conftest.err conftest.i conftest.$ac_ext
6729 done
6730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6731 rm -f conftest.i conftest.err conftest.$ac_ext
6732 if $ac_preproc_ok; then :
6733 break
6736 done
6737 ac_cv_prog_CPP=$CPP
6740 CPP=$ac_cv_prog_CPP
6741 else
6742 ac_cv_prog_CPP=$CPP
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6745 $as_echo "$CPP" >&6; }
6746 ac_preproc_ok=false
6747 for ac_c_preproc_warn_flag in '' yes
6749 # Use a header file that comes with gcc, so configuring glibc
6750 # with a fresh cross-compiler works.
6751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6752 # <limits.h> exists even on freestanding compilers.
6753 # On the NeXT, cc -E runs the code through the compiler's parser,
6754 # not just through cpp. "Syntax error" is here to catch this case.
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 #ifdef __STDC__
6758 # include <limits.h>
6759 #else
6760 # include <assert.h>
6761 #endif
6762 Syntax error
6763 _ACEOF
6764 if ac_fn_c_try_cpp "$LINENO"; then :
6766 else
6767 # Broken: fails on valid input.
6768 continue
6770 rm -f conftest.err conftest.i conftest.$ac_ext
6772 # OK, works on sane cases. Now check whether nonexistent headers
6773 # can be detected and how.
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6776 #include <ac_nonexistent.h>
6777 _ACEOF
6778 if ac_fn_c_try_cpp "$LINENO"; then :
6779 # Broken: success on invalid input.
6780 continue
6781 else
6782 # Passes both tests.
6783 ac_preproc_ok=:
6784 break
6786 rm -f conftest.err conftest.i conftest.$ac_ext
6788 done
6789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6790 rm -f conftest.i conftest.err conftest.$ac_ext
6791 if $ac_preproc_ok; then :
6793 else
6794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6796 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6797 See \`config.log' for more details" "$LINENO" 5; }
6800 ac_ext=c
6801 ac_cpp='$CPP $CPPFLAGS'
6802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6808 $as_echo_n "checking for ANSI C header files... " >&6; }
6809 if ${ac_cv_header_stdc+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 #include <stdlib.h>
6815 #include <stdarg.h>
6816 #include <string.h>
6817 #include <float.h>
6820 main ()
6824 return 0;
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828 ac_cv_header_stdc=yes
6829 else
6830 ac_cv_header_stdc=no
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 if test $ac_cv_header_stdc = yes; then
6835 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 #include <string.h>
6840 _ACEOF
6841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6842 $EGREP "memchr" >/dev/null 2>&1; then :
6844 else
6845 ac_cv_header_stdc=no
6847 rm -f conftest*
6851 if test $ac_cv_header_stdc = yes; then
6852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 #include <stdlib.h>
6857 _ACEOF
6858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6859 $EGREP "free" >/dev/null 2>&1; then :
6861 else
6862 ac_cv_header_stdc=no
6864 rm -f conftest*
6868 if test $ac_cv_header_stdc = yes; then
6869 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6870 if test "$cross_compiling" = yes; then :
6872 else
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 #include <ctype.h>
6876 #include <stdlib.h>
6877 #if ((' ' & 0x0FF) == 0x020)
6878 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6879 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6880 #else
6881 # define ISLOWER(c) \
6882 (('a' <= (c) && (c) <= 'i') \
6883 || ('j' <= (c) && (c) <= 'r') \
6884 || ('s' <= (c) && (c) <= 'z'))
6885 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6886 #endif
6888 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6890 main ()
6892 int i;
6893 for (i = 0; i < 256; i++)
6894 if (XOR (islower (i), ISLOWER (i))
6895 || toupper (i) != TOUPPER (i))
6896 return 2;
6897 return 0;
6899 _ACEOF
6900 if ac_fn_c_try_run "$LINENO"; then :
6902 else
6903 ac_cv_header_stdc=no
6905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6906 conftest.$ac_objext conftest.beam conftest.$ac_ext
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6912 $as_echo "$ac_cv_header_stdc" >&6; }
6913 if test $ac_cv_header_stdc = yes; then
6915 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6919 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6920 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6921 inttypes.h stdint.h unistd.h
6922 do :
6923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6924 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6926 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6927 cat >>confdefs.h <<_ACEOF
6928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6929 _ACEOF
6933 done
6936 for ac_header in dlfcn.h
6937 do :
6938 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6940 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6941 cat >>confdefs.h <<_ACEOF
6942 #define HAVE_DLFCN_H 1
6943 _ACEOF
6947 done
6953 # Set options
6957 enable_dlopen=no
6960 enable_win32_dll=no
6963 # Check whether --enable-shared was given.
6964 if test "${enable_shared+set}" = set; then :
6965 enableval=$enable_shared; p=${PACKAGE-default}
6966 case $enableval in
6967 yes) enable_shared=yes ;;
6968 no) enable_shared=no ;;
6970 enable_shared=no
6971 # Look at the argument we got. We use all the common list separators.
6972 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6973 for pkg in $enableval; do
6974 IFS=$lt_save_ifs
6975 if test "X$pkg" = "X$p"; then
6976 enable_shared=yes
6978 done
6979 IFS=$lt_save_ifs
6981 esac
6982 else
6983 enable_shared=yes
6994 # Check whether --enable-static was given.
6995 if test "${enable_static+set}" = set; then :
6996 enableval=$enable_static; p=${PACKAGE-default}
6997 case $enableval in
6998 yes) enable_static=yes ;;
6999 no) enable_static=no ;;
7001 enable_static=no
7002 # Look at the argument we got. We use all the common list separators.
7003 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7004 for pkg in $enableval; do
7005 IFS=$lt_save_ifs
7006 if test "X$pkg" = "X$p"; then
7007 enable_static=yes
7009 done
7010 IFS=$lt_save_ifs
7012 esac
7013 else
7014 enable_static=yes
7026 # Check whether --with-pic was given.
7027 if test "${with_pic+set}" = set; then :
7028 withval=$with_pic; lt_p=${PACKAGE-default}
7029 case $withval in
7030 yes|no) pic_mode=$withval ;;
7032 pic_mode=default
7033 # Look at the argument we got. We use all the common list separators.
7034 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7035 for lt_pkg in $withval; do
7036 IFS=$lt_save_ifs
7037 if test "X$lt_pkg" = "X$lt_p"; then
7038 pic_mode=yes
7040 done
7041 IFS=$lt_save_ifs
7043 esac
7044 else
7045 pic_mode=default
7055 # Check whether --enable-fast-install was given.
7056 if test "${enable_fast_install+set}" = set; then :
7057 enableval=$enable_fast_install; p=${PACKAGE-default}
7058 case $enableval in
7059 yes) enable_fast_install=yes ;;
7060 no) enable_fast_install=no ;;
7062 enable_fast_install=no
7063 # Look at the argument we got. We use all the common list separators.
7064 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7065 for pkg in $enableval; do
7066 IFS=$lt_save_ifs
7067 if test "X$pkg" = "X$p"; then
7068 enable_fast_install=yes
7070 done
7071 IFS=$lt_save_ifs
7073 esac
7074 else
7075 enable_fast_install=yes
7085 shared_archive_member_spec=
7086 case $host,$enable_shared in
7087 power*-*-aix[5-9]*,yes)
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7089 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7091 # Check whether --with-aix-soname was given.
7092 if test "${with_aix_soname+set}" = set; then :
7093 withval=$with_aix_soname; case $withval in
7094 aix|svr4|both)
7097 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7099 esac
7100 lt_cv_with_aix_soname=$with_aix_soname
7101 else
7102 if ${lt_cv_with_aix_soname+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 lt_cv_with_aix_soname=aix
7108 with_aix_soname=$lt_cv_with_aix_soname
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7112 $as_echo "$with_aix_soname" >&6; }
7113 if test aix != "$with_aix_soname"; then
7114 # For the AIX way of multilib, we name the shared archive member
7115 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7116 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7117 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7118 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7119 if test 64 = "${OBJECT_MODE-32}"; then
7120 shared_archive_member_spec=shr_64
7121 else
7122 shared_archive_member_spec=shr
7127 with_aix_soname=aix
7129 esac
7140 # This can be used to rebuild libtool when needed
7141 LIBTOOL_DEPS=$ltmain
7143 # Always use our own libtool.
7144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7175 test -z "$LN_S" && LN_S="ln -s"
7190 if test -n "${ZSH_VERSION+set}"; then
7191 setopt NO_GLOB_SUBST
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7195 $as_echo_n "checking for objdir... " >&6; }
7196 if ${lt_cv_objdir+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 rm -f .libs 2>/dev/null
7200 mkdir .libs 2>/dev/null
7201 if test -d .libs; then
7202 lt_cv_objdir=.libs
7203 else
7204 # MS-DOS does not allow filenames that begin with a dot.
7205 lt_cv_objdir=_libs
7207 rmdir .libs 2>/dev/null
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7210 $as_echo "$lt_cv_objdir" >&6; }
7211 objdir=$lt_cv_objdir
7217 cat >>confdefs.h <<_ACEOF
7218 #define LT_OBJDIR "$lt_cv_objdir/"
7219 _ACEOF
7224 case $host_os in
7225 aix3*)
7226 # AIX sometimes has problems with the GCC collect2 program. For some
7227 # reason, if we set the COLLECT_NAMES environment variable, the problems
7228 # vanish in a puff of smoke.
7229 if test set != "${COLLECT_NAMES+set}"; then
7230 COLLECT_NAMES=
7231 export COLLECT_NAMES
7234 esac
7236 # Global variables:
7237 ofile=libtool
7238 can_build_shared=yes
7240 # All known linkers require a '.a' archive for static linking (except MSVC,
7241 # which needs '.lib').
7242 libext=a
7244 with_gnu_ld=$lt_cv_prog_gnu_ld
7246 old_CC=$CC
7247 old_CFLAGS=$CFLAGS
7249 # Set sane defaults for various variables
7250 test -z "$CC" && CC=cc
7251 test -z "$LTCC" && LTCC=$CC
7252 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7253 test -z "$LD" && LD=ld
7254 test -z "$ac_objext" && ac_objext=o
7256 func_cc_basename $compiler
7257 cc_basename=$func_cc_basename_result
7260 # Only perform the check for file, if the check method requires it
7261 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7262 case $deplibs_check_method in
7263 file_magic*)
7264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7266 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7267 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 case $MAGIC_CMD in
7271 [\\/*] | ?:[\\/]*)
7272 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7275 lt_save_MAGIC_CMD=$MAGIC_CMD
7276 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7278 for ac_dir in $ac_dummy; do
7279 IFS=$lt_save_ifs
7280 test -z "$ac_dir" && ac_dir=.
7281 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7282 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7283 if test -n "$file_magic_test_file"; then
7284 case $deplibs_check_method in
7285 "file_magic "*)
7286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7287 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7289 $EGREP "$file_magic_regex" > /dev/null; then
7291 else
7292 cat <<_LT_EOF 1>&2
7294 *** Warning: the command libtool uses to detect shared libraries,
7295 *** $file_magic_cmd, produces output that libtool cannot recognize.
7296 *** The result is that libtool may fail to recognize shared libraries
7297 *** as such. This will affect the creation of libtool libraries that
7298 *** depend on shared libraries, but programs linked with such libtool
7299 *** libraries will work regardless of this problem. Nevertheless, you
7300 *** may want to report the problem to your system manager and/or to
7301 *** bug-libtool@gnu.org
7303 _LT_EOF
7304 fi ;;
7305 esac
7307 break
7309 done
7310 IFS=$lt_save_ifs
7311 MAGIC_CMD=$lt_save_MAGIC_CMD
7313 esac
7316 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7317 if test -n "$MAGIC_CMD"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7319 $as_echo "$MAGIC_CMD" >&6; }
7320 else
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7329 if test -z "$lt_cv_path_MAGIC_CMD"; then
7330 if test -n "$ac_tool_prefix"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7332 $as_echo_n "checking for file... " >&6; }
7333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7334 $as_echo_n "(cached) " >&6
7335 else
7336 case $MAGIC_CMD in
7337 [\\/*] | ?:[\\/]*)
7338 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7341 lt_save_MAGIC_CMD=$MAGIC_CMD
7342 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7344 for ac_dir in $ac_dummy; do
7345 IFS=$lt_save_ifs
7346 test -z "$ac_dir" && ac_dir=.
7347 if test -f "$ac_dir/file"; then
7348 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7349 if test -n "$file_magic_test_file"; then
7350 case $deplibs_check_method in
7351 "file_magic "*)
7352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7353 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7355 $EGREP "$file_magic_regex" > /dev/null; then
7357 else
7358 cat <<_LT_EOF 1>&2
7360 *** Warning: the command libtool uses to detect shared libraries,
7361 *** $file_magic_cmd, produces output that libtool cannot recognize.
7362 *** The result is that libtool may fail to recognize shared libraries
7363 *** as such. This will affect the creation of libtool libraries that
7364 *** depend on shared libraries, but programs linked with such libtool
7365 *** libraries will work regardless of this problem. Nevertheless, you
7366 *** may want to report the problem to your system manager and/or to
7367 *** bug-libtool@gnu.org
7369 _LT_EOF
7370 fi ;;
7371 esac
7373 break
7375 done
7376 IFS=$lt_save_ifs
7377 MAGIC_CMD=$lt_save_MAGIC_CMD
7379 esac
7382 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7383 if test -n "$MAGIC_CMD"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7385 $as_echo "$MAGIC_CMD" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7392 else
7393 MAGIC_CMD=:
7399 esac
7401 # Use C for the default configuration in the libtool script
7403 lt_save_CC=$CC
7404 ac_ext=c
7405 ac_cpp='$CPP $CPPFLAGS'
7406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7411 # Source file extension for C test sources.
7412 ac_ext=c
7414 # Object file extension for compiled C test sources.
7415 objext=o
7416 objext=$objext
7418 # Code to be used in simple compile tests
7419 lt_simple_compile_test_code="int some_variable = 0;"
7421 # Code to be used in simple link tests
7422 lt_simple_link_test_code='int main(){return(0);}'
7430 # If no C compiler was specified, use CC.
7431 LTCC=${LTCC-"$CC"}
7433 # If no C compiler flags were specified, use CFLAGS.
7434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7436 # Allow CC to be a program name with arguments.
7437 compiler=$CC
7439 # Save the default compiler, since it gets overwritten when the other
7440 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7441 compiler_DEFAULT=$CC
7443 # save warnings/boilerplate of simple test code
7444 ac_outfile=conftest.$ac_objext
7445 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7447 _lt_compiler_boilerplate=`cat conftest.err`
7448 $RM conftest*
7450 ac_outfile=conftest.$ac_objext
7451 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7453 _lt_linker_boilerplate=`cat conftest.err`
7454 $RM -r conftest*
7457 if test -n "$compiler"; then
7459 lt_prog_compiler_no_builtin_flag=
7461 if test yes = "$GCC"; then
7462 case $cc_basename in
7463 nvcc*)
7464 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7466 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7467 esac
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7470 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7471 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 lt_cv_prog_compiler_rtti_exceptions=no
7475 ac_outfile=conftest.$ac_objext
7476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7477 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7478 # Insert the option either (1) after the last *FLAGS variable, or
7479 # (2) before a word containing "conftest.", or (3) at the end.
7480 # Note that $ac_compile itself does not contain backslashes and begins
7481 # with a dollar sign (not a hyphen), so the echo should work correctly.
7482 # The option is referenced via a variable to avoid confusing sed.
7483 lt_compile=`echo "$ac_compile" | $SED \
7484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7486 -e 's:$: $lt_compiler_flag:'`
7487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7488 (eval "$lt_compile" 2>conftest.err)
7489 ac_status=$?
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 if (exit $ac_status) && test -s "$ac_outfile"; then
7493 # The compiler can only warn and ignore the option if not recognized
7494 # So say no if there are warnings other than the usual output.
7495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7497 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7498 lt_cv_prog_compiler_rtti_exceptions=yes
7501 $RM conftest*
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7505 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7507 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7508 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7509 else
7520 lt_prog_compiler_wl=
7521 lt_prog_compiler_pic=
7522 lt_prog_compiler_static=
7525 if test yes = "$GCC"; then
7526 lt_prog_compiler_wl='-Wl,'
7527 lt_prog_compiler_static='-static'
7529 case $host_os in
7530 aix*)
7531 # All AIX code is PIC.
7532 if test ia64 = "$host_cpu"; then
7533 # AIX 5 now supports IA64 processor
7534 lt_prog_compiler_static='-Bstatic'
7536 lt_prog_compiler_pic='-fPIC'
7539 amigaos*)
7540 case $host_cpu in
7541 powerpc)
7542 # see comment about AmigaOS4 .so support
7543 lt_prog_compiler_pic='-fPIC'
7545 m68k)
7546 # FIXME: we need at least 68020 code to build shared libraries, but
7547 # adding the '-m68020' flag to GCC prevents building anything better,
7548 # like '-m68040'.
7549 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7551 esac
7554 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7555 # PIC is the default for these OSes.
7558 mingw* | cygwin* | pw32* | os2* | cegcc*)
7559 # This hack is so that the source file can tell whether it is being
7560 # built for inclusion in a dll (and should export symbols for example).
7561 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7562 # (--disable-auto-import) libraries
7563 lt_prog_compiler_pic='-DDLL_EXPORT'
7564 case $host_os in
7565 os2*)
7566 lt_prog_compiler_static='$wl-static'
7568 esac
7571 darwin* | rhapsody*)
7572 # PIC is the default on this platform
7573 # Common symbols not allowed in MH_DYLIB files
7574 lt_prog_compiler_pic='-fno-common'
7577 haiku*)
7578 # PIC is the default for Haiku.
7579 # The "-static" flag exists, but is broken.
7580 lt_prog_compiler_static=
7583 hpux*)
7584 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7585 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7586 # sets the default TLS model and affects inlining.
7587 case $host_cpu in
7588 hppa*64*)
7589 # +Z the default
7592 lt_prog_compiler_pic='-fPIC'
7594 esac
7597 interix[3-9]*)
7598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7599 # Instead, we relocate shared libraries at runtime.
7602 msdosdjgpp*)
7603 # Just because we use GCC doesn't mean we suddenly get shared libraries
7604 # on systems that don't support them.
7605 lt_prog_compiler_can_build_shared=no
7606 enable_shared=no
7609 *nto* | *qnx*)
7610 # QNX uses GNU C++, but need to define -shared option too, otherwise
7611 # it will coredump.
7612 lt_prog_compiler_pic='-fPIC -shared'
7615 sysv4*MP*)
7616 if test -d /usr/nec; then
7617 lt_prog_compiler_pic=-Kconform_pic
7622 lt_prog_compiler_pic='-fPIC'
7624 esac
7626 case $cc_basename in
7627 nvcc*) # Cuda Compiler Driver 2.2
7628 lt_prog_compiler_wl='-Xlinker '
7629 if test -n "$lt_prog_compiler_pic"; then
7630 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7633 esac
7634 else
7635 # PORTME Check for flag to pass linker flags through the system compiler.
7636 case $host_os in
7637 aix*)
7638 lt_prog_compiler_wl='-Wl,'
7639 if test ia64 = "$host_cpu"; then
7640 # AIX 5 now supports IA64 processor
7641 lt_prog_compiler_static='-Bstatic'
7642 else
7643 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7647 darwin* | rhapsody*)
7648 # PIC is the default on this platform
7649 # Common symbols not allowed in MH_DYLIB files
7650 lt_prog_compiler_pic='-fno-common'
7651 case $cc_basename in
7652 nagfor*)
7653 # NAG Fortran compiler
7654 lt_prog_compiler_wl='-Wl,-Wl,,'
7655 lt_prog_compiler_pic='-PIC'
7656 lt_prog_compiler_static='-Bstatic'
7658 esac
7661 mingw* | cygwin* | pw32* | os2* | cegcc*)
7662 # This hack is so that the source file can tell whether it is being
7663 # built for inclusion in a dll (and should export symbols for example).
7664 lt_prog_compiler_pic='-DDLL_EXPORT'
7665 case $host_os in
7666 os2*)
7667 lt_prog_compiler_static='$wl-static'
7669 esac
7672 hpux9* | hpux10* | hpux11*)
7673 lt_prog_compiler_wl='-Wl,'
7674 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7675 # not for PA HP-UX.
7676 case $host_cpu in
7677 hppa*64*|ia64*)
7678 # +Z the default
7681 lt_prog_compiler_pic='+Z'
7683 esac
7684 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7685 lt_prog_compiler_static='$wl-a ${wl}archive'
7688 irix5* | irix6* | nonstopux*)
7689 lt_prog_compiler_wl='-Wl,'
7690 # PIC (with -KPIC) is the default.
7691 lt_prog_compiler_static='-non_shared'
7694 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7695 case $cc_basename in
7696 # old Intel for x86_64, which still supported -KPIC.
7697 ecc*)
7698 lt_prog_compiler_wl='-Wl,'
7699 lt_prog_compiler_pic='-KPIC'
7700 lt_prog_compiler_static='-static'
7702 # icc used to be incompatible with GCC.
7703 # ICC 10 doesn't accept -KPIC any more.
7704 icc* | ifort*)
7705 lt_prog_compiler_wl='-Wl,'
7706 lt_prog_compiler_pic='-fPIC'
7707 lt_prog_compiler_static='-static'
7709 # Lahey Fortran 8.1.
7710 lf95*)
7711 lt_prog_compiler_wl='-Wl,'
7712 lt_prog_compiler_pic='--shared'
7713 lt_prog_compiler_static='--static'
7715 nagfor*)
7716 # NAG Fortran compiler
7717 lt_prog_compiler_wl='-Wl,-Wl,,'
7718 lt_prog_compiler_pic='-PIC'
7719 lt_prog_compiler_static='-Bstatic'
7721 tcc*)
7722 # Fabrice Bellard et al's Tiny C Compiler
7723 lt_prog_compiler_wl='-Wl,'
7724 lt_prog_compiler_pic='-fPIC'
7725 lt_prog_compiler_static='-static'
7727 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7728 # Portland Group compilers (*not* the Pentium gcc compiler,
7729 # which looks to be a dead project)
7730 lt_prog_compiler_wl='-Wl,'
7731 lt_prog_compiler_pic='-fpic'
7732 lt_prog_compiler_static='-Bstatic'
7734 ccc*)
7735 lt_prog_compiler_wl='-Wl,'
7736 # All Alpha code is PIC.
7737 lt_prog_compiler_static='-non_shared'
7739 xl* | bgxl* | bgf* | mpixl*)
7740 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7741 lt_prog_compiler_wl='-Wl,'
7742 lt_prog_compiler_pic='-qpic'
7743 lt_prog_compiler_static='-qstaticlink'
7746 case `$CC -V 2>&1 | sed 5q` in
7747 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7748 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7749 lt_prog_compiler_pic='-KPIC'
7750 lt_prog_compiler_static='-Bstatic'
7751 lt_prog_compiler_wl=''
7753 *Sun\ F* | *Sun*Fortran*)
7754 lt_prog_compiler_pic='-KPIC'
7755 lt_prog_compiler_static='-Bstatic'
7756 lt_prog_compiler_wl='-Qoption ld '
7758 *Sun\ C*)
7759 # Sun C 5.9
7760 lt_prog_compiler_pic='-KPIC'
7761 lt_prog_compiler_static='-Bstatic'
7762 lt_prog_compiler_wl='-Wl,'
7764 *Intel*\ [CF]*Compiler*)
7765 lt_prog_compiler_wl='-Wl,'
7766 lt_prog_compiler_pic='-fPIC'
7767 lt_prog_compiler_static='-static'
7769 *Portland\ Group*)
7770 lt_prog_compiler_wl='-Wl,'
7771 lt_prog_compiler_pic='-fpic'
7772 lt_prog_compiler_static='-Bstatic'
7774 esac
7776 esac
7779 newsos6)
7780 lt_prog_compiler_pic='-KPIC'
7781 lt_prog_compiler_static='-Bstatic'
7784 *nto* | *qnx*)
7785 # QNX uses GNU C++, but need to define -shared option too, otherwise
7786 # it will coredump.
7787 lt_prog_compiler_pic='-fPIC -shared'
7790 osf3* | osf4* | osf5*)
7791 lt_prog_compiler_wl='-Wl,'
7792 # All OSF/1 code is PIC.
7793 lt_prog_compiler_static='-non_shared'
7796 rdos*)
7797 lt_prog_compiler_static='-non_shared'
7800 solaris*)
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7803 case $cc_basename in
7804 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7805 lt_prog_compiler_wl='-Qoption ld ';;
7807 lt_prog_compiler_wl='-Wl,';;
7808 esac
7811 sunos4*)
7812 lt_prog_compiler_wl='-Qoption ld '
7813 lt_prog_compiler_pic='-PIC'
7814 lt_prog_compiler_static='-Bstatic'
7817 sysv4 | sysv4.2uw2* | sysv4.3*)
7818 lt_prog_compiler_wl='-Wl,'
7819 lt_prog_compiler_pic='-KPIC'
7820 lt_prog_compiler_static='-Bstatic'
7823 sysv4*MP*)
7824 if test -d /usr/nec; then
7825 lt_prog_compiler_pic='-Kconform_pic'
7826 lt_prog_compiler_static='-Bstatic'
7830 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7831 lt_prog_compiler_wl='-Wl,'
7832 lt_prog_compiler_pic='-KPIC'
7833 lt_prog_compiler_static='-Bstatic'
7836 unicos*)
7837 lt_prog_compiler_wl='-Wl,'
7838 lt_prog_compiler_can_build_shared=no
7841 uts4*)
7842 lt_prog_compiler_pic='-pic'
7843 lt_prog_compiler_static='-Bstatic'
7847 lt_prog_compiler_can_build_shared=no
7849 esac
7852 case $host_os in
7853 # For platforms that do not support PIC, -DPIC is meaningless:
7854 *djgpp*)
7855 lt_prog_compiler_pic=
7858 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7860 esac
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7863 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7864 if ${lt_cv_prog_compiler_pic+:} false; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7870 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7871 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7874 # Check to make sure the PIC flag actually works.
7876 if test -n "$lt_prog_compiler_pic"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7878 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7879 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 lt_cv_prog_compiler_pic_works=no
7883 ac_outfile=conftest.$ac_objext
7884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7885 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
7886 # Insert the option either (1) after the last *FLAGS variable, or
7887 # (2) before a word containing "conftest.", or (3) at the end.
7888 # Note that $ac_compile itself does not contain backslashes and begins
7889 # with a dollar sign (not a hyphen), so the echo should work correctly.
7890 # The option is referenced via a variable to avoid confusing sed.
7891 lt_compile=`echo "$ac_compile" | $SED \
7892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7894 -e 's:$: $lt_compiler_flag:'`
7895 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7896 (eval "$lt_compile" 2>conftest.err)
7897 ac_status=$?
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 if (exit $ac_status) && test -s "$ac_outfile"; then
7901 # The compiler can only warn and ignore the option if not recognized
7902 # So say no if there are warnings other than the usual output.
7903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7905 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7906 lt_cv_prog_compiler_pic_works=yes
7909 $RM conftest*
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7913 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7915 if test yes = "$lt_cv_prog_compiler_pic_works"; then
7916 case $lt_prog_compiler_pic in
7917 "" | " "*) ;;
7918 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7919 esac
7920 else
7921 lt_prog_compiler_pic=
7922 lt_prog_compiler_can_build_shared=no
7938 # Check to make sure the static flag actually works.
7940 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7942 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7943 if ${lt_cv_prog_compiler_static_works+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 lt_cv_prog_compiler_static_works=no
7947 save_LDFLAGS=$LDFLAGS
7948 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7949 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7951 # The linker can only warn and ignore the option if not recognized
7952 # So say no if there are warnings
7953 if test -s conftest.err; then
7954 # Append any errors to the config.log.
7955 cat conftest.err 1>&5
7956 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7958 if diff conftest.exp conftest.er2 >/dev/null; then
7959 lt_cv_prog_compiler_static_works=yes
7961 else
7962 lt_cv_prog_compiler_static_works=yes
7965 $RM -r conftest*
7966 LDFLAGS=$save_LDFLAGS
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7970 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7972 if test yes = "$lt_cv_prog_compiler_static_works"; then
7974 else
7975 lt_prog_compiler_static=
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7985 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7986 if ${lt_cv_prog_compiler_c_o+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 lt_cv_prog_compiler_c_o=no
7990 $RM -r conftest 2>/dev/null
7991 mkdir conftest
7992 cd conftest
7993 mkdir out
7994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7996 lt_compiler_flag="-o out/conftest2.$ac_objext"
7997 # Insert the option either (1) after the last *FLAGS variable, or
7998 # (2) before a word containing "conftest.", or (3) at the end.
7999 # Note that $ac_compile itself does not contain backslashes and begins
8000 # with a dollar sign (not a hyphen), so the echo should work correctly.
8001 lt_compile=`echo "$ac_compile" | $SED \
8002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8004 -e 's:$: $lt_compiler_flag:'`
8005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8006 (eval "$lt_compile" 2>out/conftest.err)
8007 ac_status=$?
8008 cat out/conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8011 then
8012 # The compiler can only warn and ignore the option if not recognized
8013 # So say no if there are warnings
8014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8015 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8016 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8017 lt_cv_prog_compiler_c_o=yes
8020 chmod u+w . 2>&5
8021 $RM conftest*
8022 # SGI C++ compiler will create directory out/ii_files/ for
8023 # template instantiation
8024 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8025 $RM out/* && rmdir out
8026 cd ..
8027 $RM -r conftest
8028 $RM conftest*
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8032 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8040 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8041 if ${lt_cv_prog_compiler_c_o+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 lt_cv_prog_compiler_c_o=no
8045 $RM -r conftest 2>/dev/null
8046 mkdir conftest
8047 cd conftest
8048 mkdir out
8049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8051 lt_compiler_flag="-o out/conftest2.$ac_objext"
8052 # Insert the option either (1) after the last *FLAGS variable, or
8053 # (2) before a word containing "conftest.", or (3) at the end.
8054 # Note that $ac_compile itself does not contain backslashes and begins
8055 # with a dollar sign (not a hyphen), so the echo should work correctly.
8056 lt_compile=`echo "$ac_compile" | $SED \
8057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8059 -e 's:$: $lt_compiler_flag:'`
8060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8061 (eval "$lt_compile" 2>out/conftest.err)
8062 ac_status=$?
8063 cat out/conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8066 then
8067 # The compiler can only warn and ignore the option if not recognized
8068 # So say no if there are warnings
8069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8070 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8071 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8072 lt_cv_prog_compiler_c_o=yes
8075 chmod u+w . 2>&5
8076 $RM conftest*
8077 # SGI C++ compiler will create directory out/ii_files/ for
8078 # template instantiation
8079 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8080 $RM out/* && rmdir out
8081 cd ..
8082 $RM -r conftest
8083 $RM conftest*
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8087 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8092 hard_links=nottested
8093 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8094 # do not overwrite the value of need_locks provided by the user
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8096 $as_echo_n "checking if we can lock with hard links... " >&6; }
8097 hard_links=yes
8098 $RM conftest*
8099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8100 touch conftest.a
8101 ln conftest.a conftest.b 2>&5 || hard_links=no
8102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8104 $as_echo "$hard_links" >&6; }
8105 if test no = "$hard_links"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8107 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8108 need_locks=warn
8110 else
8111 need_locks=no
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8120 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8122 runpath_var=
8123 allow_undefined_flag=
8124 always_export_symbols=no
8125 archive_cmds=
8126 archive_expsym_cmds=
8127 compiler_needs_object=no
8128 enable_shared_with_static_runtimes=no
8129 export_dynamic_flag_spec=
8130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8131 hardcode_automatic=no
8132 hardcode_direct=no
8133 hardcode_direct_absolute=no
8134 hardcode_libdir_flag_spec=
8135 hardcode_libdir_separator=
8136 hardcode_minus_L=no
8137 hardcode_shlibpath_var=unsupported
8138 inherit_rpath=no
8139 link_all_deplibs=unknown
8140 module_cmds=
8141 module_expsym_cmds=
8142 old_archive_from_new_cmds=
8143 old_archive_from_expsyms_cmds=
8144 thread_safe_flag_spec=
8145 whole_archive_flag_spec=
8146 # include_expsyms should be a list of space-separated symbols to be *always*
8147 # included in the symbol list
8148 include_expsyms=
8149 # exclude_expsyms can be an extended regexp of symbols to exclude
8150 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8151 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8152 # as well as any symbol that contains 'd'.
8153 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8155 # platforms (ab)use it in PIC code, but their linkers get confused if
8156 # the symbol is explicitly referenced. Since portable code cannot
8157 # rely on this symbol name, it's probably fine to never include it in
8158 # preloaded symbol tables.
8159 # Exclude shared library initialization/finalization symbols.
8160 extract_expsyms_cmds=
8162 case $host_os in
8163 cygwin* | mingw* | pw32* | cegcc*)
8164 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8165 # When not using gcc, we currently assume that we are using
8166 # Microsoft Visual C++.
8167 if test yes != "$GCC"; then
8168 with_gnu_ld=no
8171 interix*)
8172 # we just hope/assume this is gcc and not c89 (= MSVC++)
8173 with_gnu_ld=yes
8175 openbsd* | bitrig*)
8176 with_gnu_ld=no
8178 esac
8180 ld_shlibs=yes
8182 # On some targets, GNU ld is compatible enough with the native linker
8183 # that we're better off using the native interface for both.
8184 lt_use_gnu_ld_interface=no
8185 if test yes = "$with_gnu_ld"; then
8186 case $host_os in
8187 aix*)
8188 # The AIX port of GNU ld has always aspired to compatibility
8189 # with the native linker. However, as the warning in the GNU ld
8190 # block says, versions before 2.19.5* couldn't really create working
8191 # shared libraries, regardless of the interface used.
8192 case `$LD -v 2>&1` in
8193 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8194 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8195 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8197 lt_use_gnu_ld_interface=yes
8199 esac
8202 lt_use_gnu_ld_interface=yes
8204 esac
8207 if test yes = "$lt_use_gnu_ld_interface"; then
8208 # If archive_cmds runs LD, not CC, wlarc should be empty
8209 wlarc='$wl'
8211 # Set some defaults for GNU ld with shared library support. These
8212 # are reset later if shared libraries are not supported. Putting them
8213 # here allows them to be overridden if necessary.
8214 runpath_var=LD_RUN_PATH
8215 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8216 export_dynamic_flag_spec='$wl--export-dynamic'
8217 # ancient GNU ld didn't support --whole-archive et. al.
8218 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8219 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8220 else
8221 whole_archive_flag_spec=
8223 supports_anon_versioning=no
8224 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8225 *GNU\ gold*) supports_anon_versioning=yes ;;
8226 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8227 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8228 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8229 *\ 2.11.*) ;; # other 2.11 versions
8230 *) supports_anon_versioning=yes ;;
8231 esac
8233 # See if GNU ld supports shared libraries.
8234 case $host_os in
8235 aix[3-9]*)
8236 # On AIX/PPC, the GNU linker is very broken
8237 if test ia64 != "$host_cpu"; then
8238 ld_shlibs=no
8239 cat <<_LT_EOF 1>&2
8241 *** Warning: the GNU linker, at least up to release 2.19, is reported
8242 *** to be unable to reliably create shared libraries on AIX.
8243 *** Therefore, libtool is disabling shared libraries support. If you
8244 *** really care for shared libraries, you may want to install binutils
8245 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8246 *** You will then need to restart the configuration process.
8248 _LT_EOF
8252 amigaos*)
8253 case $host_cpu in
8254 powerpc)
8255 # see comment about AmigaOS4 .so support
8256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8257 archive_expsym_cmds=''
8259 m68k)
8260 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)'
8261 hardcode_libdir_flag_spec='-L$libdir'
8262 hardcode_minus_L=yes
8264 esac
8267 beos*)
8268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8269 allow_undefined_flag=unsupported
8270 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8271 # support --undefined. This deserves some investigation. FIXME
8272 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8273 else
8274 ld_shlibs=no
8278 cygwin* | mingw* | pw32* | cegcc*)
8279 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8280 # as there is no search path for DLLs.
8281 hardcode_libdir_flag_spec='-L$libdir'
8282 export_dynamic_flag_spec='$wl--export-all-symbols'
8283 allow_undefined_flag=unsupported
8284 always_export_symbols=no
8285 enable_shared_with_static_runtimes=yes
8286 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'
8287 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8289 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8291 # If the export-symbols file already is a .def file, use it as
8292 # is; otherwise, prepend EXPORTS...
8293 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8294 cp $export_symbols $output_objdir/$soname.def;
8295 else
8296 echo EXPORTS > $output_objdir/$soname.def;
8297 cat $export_symbols >> $output_objdir/$soname.def;
8299 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8300 else
8301 ld_shlibs=no
8305 haiku*)
8306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8307 link_all_deplibs=yes
8310 os2*)
8311 hardcode_libdir_flag_spec='-L$libdir'
8312 hardcode_minus_L=yes
8313 allow_undefined_flag=unsupported
8314 shrext_cmds=.dll
8315 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8316 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8317 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8318 $ECHO EXPORTS >> $output_objdir/$libname.def~
8319 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8320 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8321 emximp -o $lib $output_objdir/$libname.def'
8322 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8323 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8324 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8325 $ECHO EXPORTS >> $output_objdir/$libname.def~
8326 prefix_cmds="$SED"~
8327 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8328 prefix_cmds="$prefix_cmds -e 1d";
8330 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8331 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8332 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8333 emximp -o $lib $output_objdir/$libname.def'
8334 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8335 enable_shared_with_static_runtimes=yes
8338 interix[3-9]*)
8339 hardcode_direct=no
8340 hardcode_shlibpath_var=no
8341 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8342 export_dynamic_flag_spec='$wl-E'
8343 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8344 # Instead, shared libraries are loaded at an image base (0x10000000 by
8345 # default) and relocated if they conflict, which is a slow very memory
8346 # consuming and fragmenting process. To avoid this, we pick a random,
8347 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8348 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8349 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8350 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'
8353 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8354 tmp_diet=no
8355 if test linux-dietlibc = "$host_os"; then
8356 case $cc_basename in
8357 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8358 esac
8360 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8361 && test no = "$tmp_diet"
8362 then
8363 tmp_addflag=' $pic_flag'
8364 tmp_sharedflag='-shared'
8365 case $cc_basename,$host_cpu in
8366 pgcc*) # Portland Group C compiler
8367 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'
8368 tmp_addflag=' $pic_flag'
8370 pgf77* | pgf90* | pgf95* | pgfortran*)
8371 # Portland Group f77 and f90 compilers
8372 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'
8373 tmp_addflag=' $pic_flag -Mnomain' ;;
8374 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8375 tmp_addflag=' -i_dynamic' ;;
8376 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8377 tmp_addflag=' -i_dynamic -nofor_main' ;;
8378 ifc* | ifort*) # Intel Fortran compiler
8379 tmp_addflag=' -nofor_main' ;;
8380 lf95*) # Lahey Fortran 8.1
8381 whole_archive_flag_spec=
8382 tmp_sharedflag='--shared' ;;
8383 nagfor*) # NAGFOR 5.3
8384 tmp_sharedflag='-Wl,-shared' ;;
8385 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8386 tmp_sharedflag='-qmkshrobj'
8387 tmp_addflag= ;;
8388 nvcc*) # Cuda Compiler Driver 2.2
8389 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'
8390 compiler_needs_object=yes
8392 esac
8393 case `$CC -V 2>&1 | sed 5q` in
8394 *Sun\ C*) # Sun C 5.9
8395 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'
8396 compiler_needs_object=yes
8397 tmp_sharedflag='-G' ;;
8398 *Sun\ F*) # Sun Fortran 8.3
8399 tmp_sharedflag='-G' ;;
8400 esac
8401 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8403 if test yes = "$supports_anon_versioning"; then
8404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8406 echo "local: *; };" >> $output_objdir/$libname.ver~
8407 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8410 case $cc_basename in
8411 tcc*)
8412 export_dynamic_flag_spec='-rdynamic'
8414 xlf* | bgf* | bgxlf* | mpixlf*)
8415 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8416 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8417 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8418 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8419 if test yes = "$supports_anon_versioning"; then
8420 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8421 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8422 echo "local: *; };" >> $output_objdir/$libname.ver~
8423 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8426 esac
8427 else
8428 ld_shlibs=no
8432 netbsd*)
8433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8434 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8435 wlarc=
8436 else
8437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8438 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8442 solaris*)
8443 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8444 ld_shlibs=no
8445 cat <<_LT_EOF 1>&2
8447 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8448 *** create shared libraries on Solaris systems. Therefore, libtool
8449 *** is disabling shared libraries support. We urge you to upgrade GNU
8450 *** binutils to release 2.9.1 or newer. Another option is to modify
8451 *** your PATH or compiler configuration so that the native linker is
8452 *** used, and then restart.
8454 _LT_EOF
8455 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8456 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8457 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8458 else
8459 ld_shlibs=no
8463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8464 case `$LD -v 2>&1` in
8465 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8466 ld_shlibs=no
8467 cat <<_LT_EOF 1>&2
8469 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8470 *** reliably create shared libraries on SCO systems. Therefore, libtool
8471 *** is disabling shared libraries support. We urge you to upgrade GNU
8472 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8473 *** your PATH or compiler configuration so that the native linker is
8474 *** used, and then restart.
8476 _LT_EOF
8479 # For security reasons, it is highly recommended that you always
8480 # use absolute paths for naming shared libraries, and exclude the
8481 # DT_RUNPATH tag from executables and libraries. But doing so
8482 # requires that you compile everything twice, which is a pain.
8483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8484 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8487 else
8488 ld_shlibs=no
8491 esac
8494 sunos4*)
8495 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8496 wlarc=
8497 hardcode_direct=yes
8498 hardcode_shlibpath_var=no
8502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8504 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8505 else
8506 ld_shlibs=no
8509 esac
8511 if test no = "$ld_shlibs"; then
8512 runpath_var=
8513 hardcode_libdir_flag_spec=
8514 export_dynamic_flag_spec=
8515 whole_archive_flag_spec=
8517 else
8518 # PORTME fill in a description of your system's linker (not GNU ld)
8519 case $host_os in
8520 aix3*)
8521 allow_undefined_flag=unsupported
8522 always_export_symbols=yes
8523 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'
8524 # Note: this linker hardcodes the directories in LIBPATH if there
8525 # are no directories specified by -L.
8526 hardcode_minus_L=yes
8527 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8528 # Neither direct hardcoding nor static linking is supported with a
8529 # broken collect2.
8530 hardcode_direct=unsupported
8534 aix[4-9]*)
8535 if test ia64 = "$host_cpu"; then
8536 # On IA64, the linker does run time linking by default, so we don't
8537 # have to do anything special.
8538 aix_use_runtimelinking=no
8539 exp_sym_flag='-Bexport'
8540 no_entry_flag=
8541 else
8542 # If we're using GNU nm, then we don't want the "-C" option.
8543 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8544 # Without the "-l" option, or with the "-B" option, AIX nm treats
8545 # weak defined symbols like other global defined symbols, whereas
8546 # GNU nm marks them as "W".
8547 # While the 'weak' keyword is ignored in the Export File, we need
8548 # it in the Import File for the 'aix-soname' feature, so we have
8549 # to replace the "-B" option with "-P" for AIX nm.
8550 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8551 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8552 else
8553 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8555 aix_use_runtimelinking=no
8557 # Test if we are trying to use run time linking or normal
8558 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8559 # have runtime linking enabled, and use it for executables.
8560 # For shared libraries, we enable/disable runtime linking
8561 # depending on the kind of the shared library created -
8562 # when "with_aix_soname,aix_use_runtimelinking" is:
8563 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8564 # "aix,yes" lib.so shared, rtl:yes, for executables
8565 # lib.a static archive
8566 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8567 # lib.a(lib.so.V) shared, rtl:no, for executables
8568 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8569 # lib.a(lib.so.V) shared, rtl:no
8570 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8571 # lib.a static archive
8572 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8573 for ld_flag in $LDFLAGS; do
8574 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8575 aix_use_runtimelinking=yes
8576 break
8578 done
8579 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8580 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8581 # so we don't have lib.a shared libs to link our executables.
8582 # We have to force runtime linking in this case.
8583 aix_use_runtimelinking=yes
8584 LDFLAGS="$LDFLAGS -Wl,-brtl"
8587 esac
8589 exp_sym_flag='-bexport'
8590 no_entry_flag='-bnoentry'
8593 # When large executables or shared objects are built, AIX ld can
8594 # have problems creating the table of contents. If linking a library
8595 # or program results in "error TOC overflow" add -mminimal-toc to
8596 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8597 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8599 archive_cmds=''
8600 hardcode_direct=yes
8601 hardcode_direct_absolute=yes
8602 hardcode_libdir_separator=':'
8603 link_all_deplibs=yes
8604 file_list_spec='$wl-f,'
8605 case $with_aix_soname,$aix_use_runtimelinking in
8606 aix,*) ;; # traditional, no import file
8607 svr4,* | *,yes) # use import file
8608 # The Import File defines what to hardcode.
8609 hardcode_direct=no
8610 hardcode_direct_absolute=no
8612 esac
8614 if test yes = "$GCC"; then
8615 case $host_os in aix4.[012]|aix4.[012].*)
8616 # We only want to do this on AIX 4.2 and lower, the check
8617 # below for broken collect2 doesn't work under 4.3+
8618 collect2name=`$CC -print-prog-name=collect2`
8619 if test -f "$collect2name" &&
8620 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8621 then
8622 # We have reworked collect2
8624 else
8625 # We have old collect2
8626 hardcode_direct=unsupported
8627 # It fails to find uninstalled libraries when the uninstalled
8628 # path is not listed in the libpath. Setting hardcode_minus_L
8629 # to unsupported forces relinking
8630 hardcode_minus_L=yes
8631 hardcode_libdir_flag_spec='-L$libdir'
8632 hardcode_libdir_separator=
8635 esac
8636 shared_flag='-shared'
8637 if test yes = "$aix_use_runtimelinking"; then
8638 shared_flag="$shared_flag "'$wl-G'
8640 # Need to ensure runtime linking is disabled for the traditional
8641 # shared library, or the linker may eventually find shared libraries
8642 # /with/ Import File - we do not want to mix them.
8643 shared_flag_aix='-shared'
8644 shared_flag_svr4='-shared $wl-G'
8645 else
8646 # not using gcc
8647 if test ia64 = "$host_cpu"; then
8648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8649 # chokes on -Wl,-G. The following line is correct:
8650 shared_flag='-G'
8651 else
8652 if test yes = "$aix_use_runtimelinking"; then
8653 shared_flag='$wl-G'
8654 else
8655 shared_flag='$wl-bM:SRE'
8657 shared_flag_aix='$wl-bM:SRE'
8658 shared_flag_svr4='$wl-G'
8662 export_dynamic_flag_spec='$wl-bexpall'
8663 # It seems that -bexpall does not export symbols beginning with
8664 # underscore (_), so it is better to generate a list of symbols to export.
8665 always_export_symbols=yes
8666 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8667 # Warning - without using the other runtime loading flags (-brtl),
8668 # -berok will link without error, but may produce a broken library.
8669 allow_undefined_flag='-berok'
8670 # Determine the default libpath from the value encoded in an
8671 # empty executable.
8672 if test set = "${lt_cv_aix_libpath+set}"; then
8673 aix_libpath=$lt_cv_aix_libpath
8674 else
8675 if ${lt_cv_aix_libpath_+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8682 main ()
8686 return 0;
8688 _ACEOF
8689 if ac_fn_c_try_link "$LINENO"; then :
8691 lt_aix_libpath_sed='
8692 /Import File Strings/,/^$/ {
8693 /^0/ {
8694 s/^0 *\([^ ]*\) *$/\1/
8698 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8699 # Check for a 64-bit object if we didn't find anything.
8700 if test -z "$lt_cv_aix_libpath_"; then
8701 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8704 rm -f core conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
8706 if test -z "$lt_cv_aix_libpath_"; then
8707 lt_cv_aix_libpath_=/usr/lib:/lib
8712 aix_libpath=$lt_cv_aix_libpath_
8715 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8716 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8717 else
8718 if test ia64 = "$host_cpu"; then
8719 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8720 allow_undefined_flag="-z nodefs"
8721 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"
8722 else
8723 # Determine the default libpath from the value encoded in an
8724 # empty executable.
8725 if test set = "${lt_cv_aix_libpath+set}"; then
8726 aix_libpath=$lt_cv_aix_libpath
8727 else
8728 if ${lt_cv_aix_libpath_+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8735 main ()
8739 return 0;
8741 _ACEOF
8742 if ac_fn_c_try_link "$LINENO"; then :
8744 lt_aix_libpath_sed='
8745 /Import File Strings/,/^$/ {
8746 /^0/ {
8747 s/^0 *\([^ ]*\) *$/\1/
8751 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8752 # Check for a 64-bit object if we didn't find anything.
8753 if test -z "$lt_cv_aix_libpath_"; then
8754 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8757 rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8759 if test -z "$lt_cv_aix_libpath_"; then
8760 lt_cv_aix_libpath_=/usr/lib:/lib
8765 aix_libpath=$lt_cv_aix_libpath_
8768 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8769 # Warning - without using the other run time loading flags,
8770 # -berok will link without error, but may produce a broken library.
8771 no_undefined_flag=' $wl-bernotok'
8772 allow_undefined_flag=' $wl-berok'
8773 if test yes = "$with_gnu_ld"; then
8774 # We only use this code for GNU lds that support --whole-archive.
8775 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
8776 else
8777 # Exported symbols can be pulled into shared objects from archives
8778 whole_archive_flag_spec='$convenience'
8780 archive_cmds_need_lc=yes
8781 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8782 # -brtl affects multiple linker settings, -berok does not and is overridden later
8783 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
8784 if test svr4 != "$with_aix_soname"; then
8785 # This is similar to how AIX traditionally builds its shared libraries.
8786 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
8788 if test aix != "$with_aix_soname"; then
8789 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
8790 else
8791 # used by -dlpreopen to get the symbols
8792 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8794 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8799 amigaos*)
8800 case $host_cpu in
8801 powerpc)
8802 # see comment about AmigaOS4 .so support
8803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8804 archive_expsym_cmds=''
8806 m68k)
8807 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)'
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 hardcode_minus_L=yes
8811 esac
8814 bsdi[45]*)
8815 export_dynamic_flag_spec=-rdynamic
8818 cygwin* | mingw* | pw32* | cegcc*)
8819 # When not using gcc, we currently assume that we are using
8820 # Microsoft Visual C++.
8821 # hardcode_libdir_flag_spec is actually meaningless, as there is
8822 # no search path for DLLs.
8823 case $cc_basename in
8824 cl*)
8825 # Native MSVC
8826 hardcode_libdir_flag_spec=' '
8827 allow_undefined_flag=unsupported
8828 always_export_symbols=yes
8829 file_list_spec='@'
8830 # Tell ltmain to make .lib files, not .a files.
8831 libext=lib
8832 # Tell ltmain to make .dll files, not .so files.
8833 shrext_cmds=.dll
8834 # FIXME: Setting linknames here is a bad hack.
8835 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8836 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8837 cp "$export_symbols" "$output_objdir/$soname.def";
8838 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8839 else
8840 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8842 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8843 linknames='
8844 # The linker will not automatically build a static lib if we build a DLL.
8845 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8846 enable_shared_with_static_runtimes=yes
8847 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8848 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8849 # Don't use ranlib
8850 old_postinstall_cmds='chmod 644 $oldlib'
8851 postlink_cmds='lt_outputfile="@OUTPUT@"~
8852 lt_tool_outputfile="@TOOL_OUTPUT@"~
8853 case $lt_outputfile in
8854 *.exe|*.EXE) ;;
8856 lt_outputfile=$lt_outputfile.exe
8857 lt_tool_outputfile=$lt_tool_outputfile.exe
8859 esac~
8860 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8861 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8862 $RM "$lt_outputfile.manifest";
8866 # Assume MSVC wrapper
8867 hardcode_libdir_flag_spec=' '
8868 allow_undefined_flag=unsupported
8869 # Tell ltmain to make .lib files, not .a files.
8870 libext=lib
8871 # Tell ltmain to make .dll files, not .so files.
8872 shrext_cmds=.dll
8873 # FIXME: Setting linknames here is a bad hack.
8874 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8875 # The linker will automatically build a .lib file if we build a DLL.
8876 old_archive_from_new_cmds='true'
8877 # FIXME: Should let the user specify the lib program.
8878 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8879 enable_shared_with_static_runtimes=yes
8881 esac
8884 darwin* | rhapsody*)
8887 archive_cmds_need_lc=no
8888 hardcode_direct=no
8889 hardcode_automatic=yes
8890 hardcode_shlibpath_var=unsupported
8891 if test yes = "$lt_cv_ld_force_load"; then
8892 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\"`'
8894 else
8895 whole_archive_flag_spec=''
8897 link_all_deplibs=yes
8898 allow_undefined_flag=$_lt_dar_allow_undefined
8899 case $cc_basename in
8900 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8901 *) _lt_dar_can_shared=$GCC ;;
8902 esac
8903 if test yes = "$_lt_dar_can_shared"; then
8904 output_verbose_link_cmd=func_echo_all
8905 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
8906 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
8907 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"
8908 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"
8910 else
8911 ld_shlibs=no
8916 dgux*)
8917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918 hardcode_libdir_flag_spec='-L$libdir'
8919 hardcode_shlibpath_var=no
8922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8923 # support. Future versions do this automatically, but an explicit c++rt0.o
8924 # does not break anything, and helps significantly (at the cost of a little
8925 # extra space).
8926 freebsd2.2*)
8927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8928 hardcode_libdir_flag_spec='-R$libdir'
8929 hardcode_direct=yes
8930 hardcode_shlibpath_var=no
8933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8934 freebsd2.*)
8935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8936 hardcode_direct=yes
8937 hardcode_minus_L=yes
8938 hardcode_shlibpath_var=no
8941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8942 freebsd* | dragonfly*)
8943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8944 hardcode_libdir_flag_spec='-R$libdir'
8945 hardcode_direct=yes
8946 hardcode_shlibpath_var=no
8949 hpux9*)
8950 if test yes = "$GCC"; then
8951 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8952 else
8953 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8955 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8956 hardcode_libdir_separator=:
8957 hardcode_direct=yes
8959 # hardcode_minus_L: Not really in the search PATH,
8960 # but as the default location of the library.
8961 hardcode_minus_L=yes
8962 export_dynamic_flag_spec='$wl-E'
8965 hpux10*)
8966 if test yes,no = "$GCC,$with_gnu_ld"; then
8967 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8968 else
8969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8971 if test no = "$with_gnu_ld"; then
8972 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8973 hardcode_libdir_separator=:
8974 hardcode_direct=yes
8975 hardcode_direct_absolute=yes
8976 export_dynamic_flag_spec='$wl-E'
8977 # hardcode_minus_L: Not really in the search PATH,
8978 # but as the default location of the library.
8979 hardcode_minus_L=yes
8983 hpux11*)
8984 if test yes,no = "$GCC,$with_gnu_ld"; then
8985 case $host_cpu in
8986 hppa*64*)
8987 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8989 ia64*)
8990 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8993 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8995 esac
8996 else
8997 case $host_cpu in
8998 hppa*64*)
8999 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9001 ia64*)
9002 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9006 # Older versions of the 11.00 compiler do not understand -b yet
9007 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9009 $as_echo_n "checking if $CC understands -b... " >&6; }
9010 if ${lt_cv_prog_compiler__b+:} false; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 lt_cv_prog_compiler__b=no
9014 save_LDFLAGS=$LDFLAGS
9015 LDFLAGS="$LDFLAGS -b"
9016 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9017 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9018 # The linker can only warn and ignore the option if not recognized
9019 # So say no if there are warnings
9020 if test -s conftest.err; then
9021 # Append any errors to the config.log.
9022 cat conftest.err 1>&5
9023 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9025 if diff conftest.exp conftest.er2 >/dev/null; then
9026 lt_cv_prog_compiler__b=yes
9028 else
9029 lt_cv_prog_compiler__b=yes
9032 $RM -r conftest*
9033 LDFLAGS=$save_LDFLAGS
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9037 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9039 if test yes = "$lt_cv_prog_compiler__b"; then
9040 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9041 else
9042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9046 esac
9048 if test no = "$with_gnu_ld"; then
9049 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9050 hardcode_libdir_separator=:
9052 case $host_cpu in
9053 hppa*64*|ia64*)
9054 hardcode_direct=no
9055 hardcode_shlibpath_var=no
9058 hardcode_direct=yes
9059 hardcode_direct_absolute=yes
9060 export_dynamic_flag_spec='$wl-E'
9062 # hardcode_minus_L: Not really in the search PATH,
9063 # but as the default location of the library.
9064 hardcode_minus_L=yes
9066 esac
9070 irix5* | irix6* | nonstopux*)
9071 if test yes = "$GCC"; then
9072 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'
9073 # Try to use the -exported_symbol ld option, if it does not
9074 # work, assume that -exports_file does not work either and
9075 # implicitly export all symbols.
9076 # This should be the same for all languages, so no per-tag cache variable.
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9078 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9079 if ${lt_cv_irix_exported_symbol+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 save_LDFLAGS=$LDFLAGS
9083 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9086 int foo (void) { return 0; }
9087 _ACEOF
9088 if ac_fn_c_try_link "$LINENO"; then :
9089 lt_cv_irix_exported_symbol=yes
9090 else
9091 lt_cv_irix_exported_symbol=no
9093 rm -f core conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
9095 LDFLAGS=$save_LDFLAGS
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9098 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9099 if test yes = "$lt_cv_irix_exported_symbol"; then
9100 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'
9102 else
9103 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'
9104 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'
9106 archive_cmds_need_lc='no'
9107 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9108 hardcode_libdir_separator=:
9109 inherit_rpath=yes
9110 link_all_deplibs=yes
9113 linux*)
9114 case $cc_basename in
9115 tcc*)
9116 # Fabrice Bellard et al's Tiny C Compiler
9117 ld_shlibs=yes
9118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9120 esac
9123 netbsd*)
9124 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9126 else
9127 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9129 hardcode_libdir_flag_spec='-R$libdir'
9130 hardcode_direct=yes
9131 hardcode_shlibpath_var=no
9134 newsos6)
9135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9136 hardcode_direct=yes
9137 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9138 hardcode_libdir_separator=:
9139 hardcode_shlibpath_var=no
9142 *nto* | *qnx*)
9145 openbsd* | bitrig*)
9146 if test -f /usr/libexec/ld.so; then
9147 hardcode_direct=yes
9148 hardcode_shlibpath_var=no
9149 hardcode_direct_absolute=yes
9150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9151 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9153 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9154 export_dynamic_flag_spec='$wl-E'
9155 else
9156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9157 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9159 else
9160 ld_shlibs=no
9164 os2*)
9165 hardcode_libdir_flag_spec='-L$libdir'
9166 hardcode_minus_L=yes
9167 allow_undefined_flag=unsupported
9168 shrext_cmds=.dll
9169 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9170 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9171 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9172 $ECHO EXPORTS >> $output_objdir/$libname.def~
9173 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9174 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9175 emximp -o $lib $output_objdir/$libname.def'
9176 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9177 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9178 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9179 $ECHO EXPORTS >> $output_objdir/$libname.def~
9180 prefix_cmds="$SED"~
9181 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9182 prefix_cmds="$prefix_cmds -e 1d";
9184 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9185 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9187 emximp -o $lib $output_objdir/$libname.def'
9188 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9189 enable_shared_with_static_runtimes=yes
9192 osf3*)
9193 if test yes = "$GCC"; then
9194 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9195 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'
9196 else
9197 allow_undefined_flag=' -expect_unresolved \*'
9198 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'
9200 archive_cmds_need_lc='no'
9201 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9202 hardcode_libdir_separator=:
9205 osf4* | osf5*) # as osf3* with the addition of -msym flag
9206 if test yes = "$GCC"; then
9207 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9208 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'
9209 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9210 else
9211 allow_undefined_flag=' -expect_unresolved \*'
9212 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'
9213 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~
9214 $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'
9216 # Both c and cxx compiler support -rpath directly
9217 hardcode_libdir_flag_spec='-rpath $libdir'
9219 archive_cmds_need_lc='no'
9220 hardcode_libdir_separator=:
9223 solaris*)
9224 no_undefined_flag=' -z defs'
9225 if test yes = "$GCC"; then
9226 wlarc='$wl'
9227 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9228 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9229 $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'
9230 else
9231 case `$CC -V 2>&1` in
9232 *"Compilers 5.0"*)
9233 wlarc=''
9234 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9235 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9236 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9239 wlarc='$wl'
9240 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9241 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9242 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9244 esac
9246 hardcode_libdir_flag_spec='-R$libdir'
9247 hardcode_shlibpath_var=no
9248 case $host_os in
9249 solaris2.[0-5] | solaris2.[0-5].*) ;;
9251 # The compiler driver will combine and reorder linker options,
9252 # but understands '-z linker_flag'. GCC discards it without '$wl',
9253 # but is careful enough not to reorder.
9254 # Supported since Solaris 2.6 (maybe 2.5.1?)
9255 if test yes = "$GCC"; then
9256 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9257 else
9258 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9261 esac
9262 link_all_deplibs=yes
9265 sunos4*)
9266 if test sequent = "$host_vendor"; then
9267 # Use $CC to link under sequent, because it throws in some extra .o
9268 # files that make .init and .fini sections work.
9269 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9270 else
9271 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9273 hardcode_libdir_flag_spec='-L$libdir'
9274 hardcode_direct=yes
9275 hardcode_minus_L=yes
9276 hardcode_shlibpath_var=no
9279 sysv4)
9280 case $host_vendor in
9281 sni)
9282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283 hardcode_direct=yes # is this really true???
9285 siemens)
9286 ## LD is ld it makes a PLAMLIB
9287 ## CC just makes a GrossModule.
9288 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9289 reload_cmds='$CC -r -o $output$reload_objs'
9290 hardcode_direct=no
9292 motorola)
9293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9296 esac
9297 runpath_var='LD_RUN_PATH'
9298 hardcode_shlibpath_var=no
9301 sysv4.3*)
9302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303 hardcode_shlibpath_var=no
9304 export_dynamic_flag_spec='-Bexport'
9307 sysv4*MP*)
9308 if test -d /usr/nec; then
9309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_shlibpath_var=no
9311 runpath_var=LD_RUN_PATH
9312 hardcode_runpath_var=yes
9313 ld_shlibs=yes
9317 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9318 no_undefined_flag='$wl-z,text'
9319 archive_cmds_need_lc=no
9320 hardcode_shlibpath_var=no
9321 runpath_var='LD_RUN_PATH'
9323 if test yes = "$GCC"; then
9324 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9325 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9326 else
9327 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9332 sysv5* | sco3.2v5* | sco5v6*)
9333 # Note: We CANNOT use -z defs as we might desire, because we do not
9334 # link with -lc, and that would cause any symbols used from libc to
9335 # always be unresolved, which means just about no library would
9336 # ever link correctly. If we're not using GNU ld we use -z text
9337 # though, which does catch some bad symbols but isn't as heavy-handed
9338 # as -z defs.
9339 no_undefined_flag='$wl-z,text'
9340 allow_undefined_flag='$wl-z,nodefs'
9341 archive_cmds_need_lc=no
9342 hardcode_shlibpath_var=no
9343 hardcode_libdir_flag_spec='$wl-R,$libdir'
9344 hardcode_libdir_separator=':'
9345 link_all_deplibs=yes
9346 export_dynamic_flag_spec='$wl-Bexport'
9347 runpath_var='LD_RUN_PATH'
9349 if test yes = "$GCC"; then
9350 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 else
9353 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9358 uts4*)
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_libdir_flag_spec='-L$libdir'
9361 hardcode_shlibpath_var=no
9365 ld_shlibs=no
9367 esac
9369 if test sni = "$host_vendor"; then
9370 case $host in
9371 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9372 export_dynamic_flag_spec='$wl-Blargedynsym'
9374 esac
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9379 $as_echo "$ld_shlibs" >&6; }
9380 test no = "$ld_shlibs" && can_build_shared=no
9382 with_gnu_ld=$with_gnu_ld
9399 # Do we need to explicitly link libc?
9401 case "x$archive_cmds_need_lc" in
9402 x|xyes)
9403 # Assume -lc should be added
9404 archive_cmds_need_lc=yes
9406 if test yes,yes = "$GCC,$enable_shared"; then
9407 case $archive_cmds in
9408 *'~'*)
9409 # FIXME: we may have to deal with multi-command sequences.
9411 '$CC '*)
9412 # Test whether the compiler implicitly links with -lc since on some
9413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9414 # to ld, don't add -lc before -lgcc.
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9416 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9417 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 $RM conftest*
9421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9424 (eval $ac_compile) 2>&5
9425 ac_status=$?
9426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9427 test $ac_status = 0; } 2>conftest.err; then
9428 soname=conftest
9429 lib=conftest
9430 libobjs=conftest.$ac_objext
9431 deplibs=
9432 wl=$lt_prog_compiler_wl
9433 pic_flag=$lt_prog_compiler_pic
9434 compiler_flags=-v
9435 linker_flags=-v
9436 verstring=
9437 output_objdir=.
9438 libname=conftest
9439 lt_save_allow_undefined_flag=$allow_undefined_flag
9440 allow_undefined_flag=
9441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9442 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9443 ac_status=$?
9444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9445 test $ac_status = 0; }
9446 then
9447 lt_cv_archive_cmds_need_lc=no
9448 else
9449 lt_cv_archive_cmds_need_lc=yes
9451 allow_undefined_flag=$lt_save_allow_undefined_flag
9452 else
9453 cat conftest.err 1>&5
9455 $RM conftest*
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9459 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9460 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9462 esac
9465 esac
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9619 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9621 if test yes = "$GCC"; then
9622 case $host_os in
9623 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9624 *) lt_awk_arg='/^libraries:/' ;;
9625 esac
9626 case $host_os in
9627 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9628 *) lt_sed_strip_eq='s|=/|/|g' ;;
9629 esac
9630 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9631 case $lt_search_path_spec in
9632 *\;*)
9633 # if the path contains ";" then we assume it to be the separator
9634 # otherwise default to the standard path separator (i.e. ":") - it is
9635 # assumed that no part of a normal pathname contains ";" but that should
9636 # okay in the real world where ";" in dirpaths is itself problematic.
9637 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9640 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9642 esac
9643 # Ok, now we have the path, separated by spaces, we can step through it
9644 # and add multilib dir if necessary...
9645 lt_tmp_lt_search_path_spec=
9646 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9647 # ...but if some path component already ends with the multilib dir we assume
9648 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9649 case "$lt_multi_os_dir; $lt_search_path_spec " in
9650 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9651 lt_multi_os_dir=
9653 esac
9654 for lt_sys_path in $lt_search_path_spec; do
9655 if test -d "$lt_sys_path$lt_multi_os_dir"; then
9656 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9657 elif test -n "$lt_multi_os_dir"; then
9658 test -d "$lt_sys_path" && \
9659 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9661 done
9662 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9663 BEGIN {RS = " "; FS = "/|\n";} {
9664 lt_foo = "";
9665 lt_count = 0;
9666 for (lt_i = NF; lt_i > 0; lt_i--) {
9667 if ($lt_i != "" && $lt_i != ".") {
9668 if ($lt_i == "..") {
9669 lt_count++;
9670 } else {
9671 if (lt_count == 0) {
9672 lt_foo = "/" $lt_i lt_foo;
9673 } else {
9674 lt_count--;
9679 if (lt_foo != "") { lt_freq[lt_foo]++; }
9680 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9682 # AWK program above erroneously prepends '/' to C:/dos/paths
9683 # for these hosts.
9684 case $host_os in
9685 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9686 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9687 esac
9688 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9689 else
9690 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9692 library_names_spec=
9693 libname_spec='lib$name'
9694 soname_spec=
9695 shrext_cmds=.so
9696 postinstall_cmds=
9697 postuninstall_cmds=
9698 finish_cmds=
9699 finish_eval=
9700 shlibpath_var=
9701 shlibpath_overrides_runpath=unknown
9702 version_type=none
9703 dynamic_linker="$host_os ld.so"
9704 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9705 need_lib_prefix=unknown
9706 hardcode_into_libs=no
9708 # when you set need_version to no, make sure it does not cause -set_version
9709 # flags to be left without arguments
9710 need_version=unknown
9714 case $host_os in
9715 aix3*)
9716 version_type=linux # correct to gnu/linux during the next big refactor
9717 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9718 shlibpath_var=LIBPATH
9720 # AIX 3 has no versioning support, so we append a major version to the name.
9721 soname_spec='$libname$release$shared_ext$major'
9724 aix[4-9]*)
9725 version_type=linux # correct to gnu/linux during the next big refactor
9726 need_lib_prefix=no
9727 need_version=no
9728 hardcode_into_libs=yes
9729 if test ia64 = "$host_cpu"; then
9730 # AIX 5 supports IA64
9731 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9732 shlibpath_var=LD_LIBRARY_PATH
9733 else
9734 # With GCC up to 2.95.x, collect2 would create an import file
9735 # for dependence libraries. The import file would start with
9736 # the line '#! .'. This would cause the generated library to
9737 # depend on '.', always an invalid library. This was fixed in
9738 # development snapshots of GCC prior to 3.0.
9739 case $host_os in
9740 aix4 | aix4.[01] | aix4.[01].*)
9741 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9742 echo ' yes '
9743 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
9745 else
9746 can_build_shared=no
9749 esac
9750 # Using Import Files as archive members, it is possible to support
9751 # filename-based versioning of shared library archives on AIX. While
9752 # this would work for both with and without runtime linking, it will
9753 # prevent static linking of such archives. So we do filename-based
9754 # shared library versioning with .so extension only, which is used
9755 # when both runtime linking and shared linking is enabled.
9756 # Unfortunately, runtime linking may impact performance, so we do
9757 # not want this to be the default eventually. Also, we use the
9758 # versioned .so libs for executables only if there is the -brtl
9759 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
9760 # To allow for filename-based versioning support, we need to create
9761 # libNAME.so.V as an archive file, containing:
9762 # *) an Import File, referring to the versioned filename of the
9763 # archive as well as the shared archive member, telling the
9764 # bitwidth (32 or 64) of that shared object, and providing the
9765 # list of exported symbols of that shared object, eventually
9766 # decorated with the 'weak' keyword
9767 # *) the shared object with the F_LOADONLY flag set, to really avoid
9768 # it being seen by the linker.
9769 # At run time we better use the real file rather than another symlink,
9770 # but for link time we create the symlink libNAME.so -> libNAME.so.V
9772 case $with_aix_soname,$aix_use_runtimelinking in
9773 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
9774 # soname into executable. Probably we can add versioning support to
9775 # collect2, so additional links can be useful in future.
9776 aix,yes) # traditional libtool
9777 dynamic_linker='AIX unversionable lib.so'
9778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9779 # instead of lib<name>.a to let people know that these are not
9780 # typical AIX shared libraries.
9781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9783 aix,no) # traditional AIX only
9784 dynamic_linker='AIX lib.a(lib.so.V)'
9785 # We preserve .a as extension for shared libraries through AIX4.2
9786 # and later when we are not doing run time linking.
9787 library_names_spec='$libname$release.a $libname.a'
9788 soname_spec='$libname$release$shared_ext$major'
9790 svr4,*) # full svr4 only
9791 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
9792 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9793 # We do not specify a path in Import Files, so LIBPATH fires.
9794 shlibpath_overrides_runpath=yes
9796 *,yes) # both, prefer svr4
9797 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
9798 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9799 # unpreferred sharedlib libNAME.a needs extra handling
9800 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
9801 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
9802 # We do not specify a path in Import Files, so LIBPATH fires.
9803 shlibpath_overrides_runpath=yes
9805 *,no) # both, prefer aix
9806 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
9807 library_names_spec='$libname$release.a $libname.a'
9808 soname_spec='$libname$release$shared_ext$major'
9809 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
9810 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
9811 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
9813 esac
9814 shlibpath_var=LIBPATH
9818 amigaos*)
9819 case $host_cpu in
9820 powerpc)
9821 # Since July 2007 AmigaOS4 officially supports .so libraries.
9822 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9825 m68k)
9826 library_names_spec='$libname.ixlibrary $libname.a'
9827 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9828 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9830 esac
9833 beos*)
9834 library_names_spec='$libname$shared_ext'
9835 dynamic_linker="$host_os ld.so"
9836 shlibpath_var=LIBRARY_PATH
9839 bsdi[45]*)
9840 version_type=linux # correct to gnu/linux during the next big refactor
9841 need_version=no
9842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9843 soname_spec='$libname$release$shared_ext$major'
9844 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9845 shlibpath_var=LD_LIBRARY_PATH
9846 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9847 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9848 # the default ld.so.conf also contains /usr/contrib/lib and
9849 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9850 # libtool to hard-code these into programs
9853 cygwin* | mingw* | pw32* | cegcc*)
9854 version_type=windows
9855 shrext_cmds=.dll
9856 need_version=no
9857 need_lib_prefix=no
9859 case $GCC,$cc_basename in
9860 yes,*)
9861 # gcc
9862 library_names_spec='$libname.dll.a'
9863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9864 postinstall_cmds='base_file=`basename \$file`~
9865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9866 dldir=$destdir/`dirname \$dlpath`~
9867 test -d \$dldir || mkdir -p \$dldir~
9868 $install_prog $dir/$dlname \$dldir/$dlname~
9869 chmod a+x \$dldir/$dlname~
9870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9874 dlpath=$dir/\$dldll~
9875 $RM \$dlpath'
9876 shlibpath_overrides_runpath=yes
9878 case $host_os in
9879 cygwin*)
9880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9881 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9883 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9885 mingw* | cegcc*)
9886 # MinGW DLLs use traditional 'lib' prefix
9887 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9889 pw32*)
9890 # pw32 DLLs use 'pw' prefix rather than 'lib'
9891 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9893 esac
9894 dynamic_linker='Win32 ld.exe'
9897 *,cl*)
9898 # Native MSVC
9899 libname_spec='$name'
9900 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9901 library_names_spec='$libname.dll.lib'
9903 case $build_os in
9904 mingw*)
9905 sys_lib_search_path_spec=
9906 lt_save_ifs=$IFS
9907 IFS=';'
9908 for lt_path in $LIB
9910 IFS=$lt_save_ifs
9911 # Let DOS variable expansion print the short 8.3 style file name.
9912 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9913 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9914 done
9915 IFS=$lt_save_ifs
9916 # Convert to MSYS style.
9917 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9919 cygwin*)
9920 # Convert to unix form, then to dos form, then back to unix form
9921 # but this time dos style (no spaces!) so that the unix form looks
9922 # like /cygdrive/c/PROGRA~1:/cygdr...
9923 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9924 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9925 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9928 sys_lib_search_path_spec=$LIB
9929 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9930 # It is most probably a Windows format PATH.
9931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9932 else
9933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9935 # FIXME: find the short name or the path components, as spaces are
9936 # common. (e.g. "Program Files" -> "PROGRA~1")
9938 esac
9940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9941 postinstall_cmds='base_file=`basename \$file`~
9942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9943 dldir=$destdir/`dirname \$dlpath`~
9944 test -d \$dldir || mkdir -p \$dldir~
9945 $install_prog $dir/$dlname \$dldir/$dlname'
9946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9947 dlpath=$dir/\$dldll~
9948 $RM \$dlpath'
9949 shlibpath_overrides_runpath=yes
9950 dynamic_linker='Win32 link.exe'
9954 # Assume MSVC wrapper
9955 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
9956 dynamic_linker='Win32 ld.exe'
9958 esac
9959 # FIXME: first we should search . and the directory the executable is in
9960 shlibpath_var=PATH
9963 darwin* | rhapsody*)
9964 dynamic_linker="$host_os dyld"
9965 version_type=darwin
9966 need_lib_prefix=no
9967 need_version=no
9968 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
9969 soname_spec='$libname$release$major$shared_ext'
9970 shlibpath_overrides_runpath=yes
9971 shlibpath_var=DYLD_LIBRARY_PATH
9972 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9974 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9978 dgux*)
9979 version_type=linux # correct to gnu/linux during the next big refactor
9980 need_lib_prefix=no
9981 need_version=no
9982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9983 soname_spec='$libname$release$shared_ext$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9987 freebsd* | dragonfly*)
9988 # DragonFly does not have aout. When/if they implement a new
9989 # versioning mechanism, adjust this.
9990 if test -x /usr/bin/objformat; then
9991 objformat=`/usr/bin/objformat`
9992 else
9993 case $host_os in
9994 freebsd[23].*) objformat=aout ;;
9995 *) objformat=elf ;;
9996 esac
9998 version_type=freebsd-$objformat
9999 case $version_type in
10000 freebsd-elf*)
10001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10002 soname_spec='$libname$release$shared_ext$major'
10003 need_version=no
10004 need_lib_prefix=no
10006 freebsd-*)
10007 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10008 need_version=yes
10010 esac
10011 shlibpath_var=LD_LIBRARY_PATH
10012 case $host_os in
10013 freebsd2.*)
10014 shlibpath_overrides_runpath=yes
10016 freebsd3.[01]* | freebsdelf3.[01]*)
10017 shlibpath_overrides_runpath=yes
10018 hardcode_into_libs=yes
10020 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10021 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10022 shlibpath_overrides_runpath=no
10023 hardcode_into_libs=yes
10025 *) # from 4.6 on, and DragonFly
10026 shlibpath_overrides_runpath=yes
10027 hardcode_into_libs=yes
10029 esac
10032 haiku*)
10033 version_type=linux # correct to gnu/linux during the next big refactor
10034 need_lib_prefix=no
10035 need_version=no
10036 dynamic_linker="$host_os runtime_loader"
10037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10038 soname_spec='$libname$release$shared_ext$major'
10039 shlibpath_var=LIBRARY_PATH
10040 shlibpath_overrides_runpath=no
10041 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10042 hardcode_into_libs=yes
10045 hpux9* | hpux10* | hpux11*)
10046 # Give a soname corresponding to the major version so that dld.sl refuses to
10047 # link against other versions.
10048 version_type=sunos
10049 need_lib_prefix=no
10050 need_version=no
10051 case $host_cpu in
10052 ia64*)
10053 shrext_cmds='.so'
10054 hardcode_into_libs=yes
10055 dynamic_linker="$host_os dld.so"
10056 shlibpath_var=LD_LIBRARY_PATH
10057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10059 soname_spec='$libname$release$shared_ext$major'
10060 if test 32 = "$HPUX_IA64_MODE"; then
10061 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10062 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10063 else
10064 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10065 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10068 hppa*64*)
10069 shrext_cmds='.sl'
10070 hardcode_into_libs=yes
10071 dynamic_linker="$host_os dld.sl"
10072 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10075 soname_spec='$libname$release$shared_ext$major'
10076 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10080 shrext_cmds='.sl'
10081 dynamic_linker="$host_os dld.sl"
10082 shlibpath_var=SHLIB_PATH
10083 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10085 soname_spec='$libname$release$shared_ext$major'
10087 esac
10088 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10089 postinstall_cmds='chmod 555 $lib'
10090 # or fails outright, so override atomically:
10091 install_override_mode=555
10094 interix[3-9]*)
10095 version_type=linux # correct to gnu/linux during the next big refactor
10096 need_lib_prefix=no
10097 need_version=no
10098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10099 soname_spec='$libname$release$shared_ext$major'
10100 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 shlibpath_overrides_runpath=no
10103 hardcode_into_libs=yes
10106 irix5* | irix6* | nonstopux*)
10107 case $host_os in
10108 nonstopux*) version_type=nonstopux ;;
10110 if test yes = "$lt_cv_prog_gnu_ld"; then
10111 version_type=linux # correct to gnu/linux during the next big refactor
10112 else
10113 version_type=irix
10114 fi ;;
10115 esac
10116 need_lib_prefix=no
10117 need_version=no
10118 soname_spec='$libname$release$shared_ext$major'
10119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10120 case $host_os in
10121 irix5* | nonstopux*)
10122 libsuff= shlibsuff=
10125 case $LD in # libtool.m4 will add one of these switches to LD
10126 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10127 libsuff= shlibsuff= libmagic=32-bit;;
10128 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10129 libsuff=32 shlibsuff=N32 libmagic=N32;;
10130 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10131 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10132 *) libsuff= shlibsuff= libmagic=never-match;;
10133 esac
10135 esac
10136 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10137 shlibpath_overrides_runpath=no
10138 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10139 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10140 hardcode_into_libs=yes
10143 # No shared lib support for Linux oldld, aout, or coff.
10144 linux*oldld* | linux*aout* | linux*coff*)
10145 dynamic_linker=no
10148 linux*android*)
10149 version_type=none # Android doesn't support versioned libraries.
10150 need_lib_prefix=no
10151 need_version=no
10152 library_names_spec='$libname$release$shared_ext'
10153 soname_spec='$libname$release$shared_ext'
10154 finish_cmds=
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=yes
10158 # This implies no fast_install, which is unacceptable.
10159 # Some rework will be needed to allow for fast_install
10160 # before this can be enabled.
10161 hardcode_into_libs=yes
10163 dynamic_linker='Android linker'
10164 # Don't embed -rpath directories since the linker doesn't support them.
10165 hardcode_libdir_flag_spec='-L$libdir'
10168 # This must be glibc/ELF.
10169 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10170 version_type=linux # correct to gnu/linux during the next big refactor
10171 need_lib_prefix=no
10172 need_version=no
10173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10174 soname_spec='$libname$release$shared_ext$major'
10175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath=no
10179 # Some binutils ld are patched to set DT_RUNPATH
10180 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 lt_cv_shlibpath_overrides_runpath=no
10184 save_LDFLAGS=$LDFLAGS
10185 save_libdir=$libdir
10186 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10187 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10192 main ()
10196 return 0;
10198 _ACEOF
10199 if ac_fn_c_try_link "$LINENO"; then :
10200 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10201 lt_cv_shlibpath_overrides_runpath=yes
10204 rm -f core conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LDFLAGS=$save_LDFLAGS
10207 libdir=$save_libdir
10211 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10213 # This implies no fast_install, which is unacceptable.
10214 # Some rework will be needed to allow for fast_install
10215 # before this can be enabled.
10216 hardcode_into_libs=yes
10218 # Ideally, we could use ldconfig to report *all* directores which are
10219 # searched for libraries, however this is still not possible. Aside from not
10220 # being certain /sbin/ldconfig is available, command
10221 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10222 # even though it is searched at run-time. Try to do the best guess by
10223 # appending ld.so.conf contents (and includes) to the search path.
10224 if test -f /etc/ld.so.conf; then
10225 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' ' '`
10226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10229 # We used to test for /lib/ld.so.1 and disable shared libraries on
10230 # powerpc, because MkLinux only supported shared libraries with the
10231 # GNU dynamic linker. Since this was broken with cross compilers,
10232 # most powerpc-linux boxes support dynamic linking these days and
10233 # people can always --disable-shared, the test was removed, and we
10234 # assume the GNU/Linux dynamic linker is in use.
10235 dynamic_linker='GNU/Linux ld.so'
10238 netbsd*)
10239 version_type=sunos
10240 need_lib_prefix=no
10241 need_version=no
10242 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10243 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10245 dynamic_linker='NetBSD (a.out) ld.so'
10246 else
10247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10248 soname_spec='$libname$release$shared_ext$major'
10249 dynamic_linker='NetBSD ld.elf_so'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 shlibpath_overrides_runpath=yes
10253 hardcode_into_libs=yes
10256 newsos6)
10257 version_type=linux # correct to gnu/linux during the next big refactor
10258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes
10263 *nto* | *qnx*)
10264 version_type=qnx
10265 need_lib_prefix=no
10266 need_version=no
10267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10268 soname_spec='$libname$release$shared_ext$major'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=no
10271 hardcode_into_libs=yes
10272 dynamic_linker='ldqnx.so'
10275 openbsd* | bitrig*)
10276 version_type=sunos
10277 sys_lib_dlsearch_path_spec=/usr/lib
10278 need_lib_prefix=no
10279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10280 need_version=no
10281 else
10282 need_version=yes
10284 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=yes
10290 os2*)
10291 libname_spec='$name'
10292 version_type=windows
10293 shrext_cmds=.dll
10294 need_version=no
10295 need_lib_prefix=no
10296 # OS/2 can only load a DLL with a base name of 8 characters or less.
10297 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10298 v=$($ECHO $release$versuffix | tr -d .-);
10299 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10300 $ECHO $n$v`$shared_ext'
10301 library_names_spec='${libname}_dll.$libext'
10302 dynamic_linker='OS/2 ld.exe'
10303 shlibpath_var=BEGINLIBPATH
10304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10306 postinstall_cmds='base_file=`basename \$file`~
10307 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10308 dldir=$destdir/`dirname \$dlpath`~
10309 test -d \$dldir || mkdir -p \$dldir~
10310 $install_prog $dir/$dlname \$dldir/$dlname~
10311 chmod a+x \$dldir/$dlname~
10312 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10313 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10316 dlpath=$dir/\$dldll~
10317 $RM \$dlpath'
10320 osf3* | osf4* | osf5*)
10321 version_type=osf
10322 need_lib_prefix=no
10323 need_version=no
10324 soname_spec='$libname$release$shared_ext$major'
10325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10331 rdos*)
10332 dynamic_linker=no
10335 solaris*)
10336 version_type=linux # correct to gnu/linux during the next big refactor
10337 need_lib_prefix=no
10338 need_version=no
10339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10340 soname_spec='$libname$release$shared_ext$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 shlibpath_overrides_runpath=yes
10343 hardcode_into_libs=yes
10344 # ldd complains unless libraries are executable
10345 postinstall_cmds='chmod +x $lib'
10348 sunos4*)
10349 version_type=sunos
10350 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10351 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 shlibpath_overrides_runpath=yes
10354 if test yes = "$with_gnu_ld"; then
10355 need_lib_prefix=no
10357 need_version=yes
10360 sysv4 | sysv4.3*)
10361 version_type=linux # correct to gnu/linux during the next big refactor
10362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10363 soname_spec='$libname$release$shared_ext$major'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 case $host_vendor in
10366 sni)
10367 shlibpath_overrides_runpath=no
10368 need_lib_prefix=no
10369 runpath_var=LD_RUN_PATH
10371 siemens)
10372 need_lib_prefix=no
10374 motorola)
10375 need_lib_prefix=no
10376 need_version=no
10377 shlibpath_overrides_runpath=no
10378 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10380 esac
10383 sysv4*MP*)
10384 if test -d /usr/nec; then
10385 version_type=linux # correct to gnu/linux during the next big refactor
10386 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10387 soname_spec='$libname$shared_ext.$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10393 version_type=sco
10394 need_lib_prefix=no
10395 need_version=no
10396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10397 soname_spec='$libname$release$shared_ext$major'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=yes
10400 hardcode_into_libs=yes
10401 if test yes = "$with_gnu_ld"; then
10402 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10403 else
10404 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10405 case $host_os in
10406 sco3.2v5*)
10407 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10409 esac
10411 sys_lib_dlsearch_path_spec='/usr/lib'
10414 tpf*)
10415 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10416 version_type=linux # correct to gnu/linux during the next big refactor
10417 need_lib_prefix=no
10418 need_version=no
10419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=no
10422 hardcode_into_libs=yes
10425 uts4*)
10426 version_type=linux # correct to gnu/linux during the next big refactor
10427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10428 soname_spec='$libname$release$shared_ext$major'
10429 shlibpath_var=LD_LIBRARY_PATH
10433 dynamic_linker=no
10435 esac
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10437 $as_echo "$dynamic_linker" >&6; }
10438 test no = "$dynamic_linker" && can_build_shared=no
10440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10441 if test yes = "$GCC"; then
10442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10445 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10446 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10449 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10450 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10453 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10454 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10456 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10457 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10459 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10460 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10559 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10560 hardcode_action=
10561 if test -n "$hardcode_libdir_flag_spec" ||
10562 test -n "$runpath_var" ||
10563 test yes = "$hardcode_automatic"; then
10565 # We can hardcode non-existent directories.
10566 if test no != "$hardcode_direct" &&
10567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10568 # have to relink, otherwise we might link with an installed library
10569 # when we should be linking with a yet-to-be-installed one
10570 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10571 test no != "$hardcode_minus_L"; then
10572 # Linking always hardcodes the temporary library directory.
10573 hardcode_action=relink
10574 else
10575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10576 hardcode_action=immediate
10578 else
10579 # We cannot hardcode anything, or else we can only hardcode existing
10580 # directories.
10581 hardcode_action=unsupported
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10584 $as_echo "$hardcode_action" >&6; }
10586 if test relink = "$hardcode_action" ||
10587 test yes = "$inherit_rpath"; then
10588 # Fast installation is not supported
10589 enable_fast_install=no
10590 elif test yes = "$shlibpath_overrides_runpath" ||
10591 test no = "$enable_shared"; then
10592 # Fast installation is not necessary
10593 enable_fast_install=needless
10601 if test yes != "$enable_dlopen"; then
10602 enable_dlopen=unknown
10603 enable_dlopen_self=unknown
10604 enable_dlopen_self_static=unknown
10605 else
10606 lt_cv_dlopen=no
10607 lt_cv_dlopen_libs=
10609 case $host_os in
10610 beos*)
10611 lt_cv_dlopen=load_add_on
10612 lt_cv_dlopen_libs=
10613 lt_cv_dlopen_self=yes
10616 mingw* | pw32* | cegcc*)
10617 lt_cv_dlopen=LoadLibrary
10618 lt_cv_dlopen_libs=
10621 cygwin*)
10622 lt_cv_dlopen=dlopen
10623 lt_cv_dlopen_libs=
10626 darwin*)
10627 # if libdl is installed we need to link against it
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10629 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10630 if ${ac_cv_lib_dl_dlopen+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 ac_check_lib_save_LIBS=$LIBS
10634 LIBS="-ldl $LIBS"
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10638 /* Override any GCC internal prototype to avoid an error.
10639 Use char because int might match the return type of a GCC
10640 builtin and then its argument prototype would still apply. */
10641 #ifdef __cplusplus
10642 extern "C"
10643 #endif
10644 char dlopen ();
10646 main ()
10648 return dlopen ();
10650 return 0;
10652 _ACEOF
10653 if ac_fn_c_try_link "$LINENO"; then :
10654 ac_cv_lib_dl_dlopen=yes
10655 else
10656 ac_cv_lib_dl_dlopen=no
10658 rm -f core conftest.err conftest.$ac_objext \
10659 conftest$ac_exeext conftest.$ac_ext
10660 LIBS=$ac_check_lib_save_LIBS
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10663 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10664 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10665 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10666 else
10668 lt_cv_dlopen=dyld
10669 lt_cv_dlopen_libs=
10670 lt_cv_dlopen_self=yes
10676 tpf*)
10677 # Don't try to run any link tests for TPF. We know it's impossible
10678 # because TPF is a cross-compiler, and we know how we open DSOs.
10679 lt_cv_dlopen=dlopen
10680 lt_cv_dlopen_libs=
10681 lt_cv_dlopen_self=no
10685 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10686 if test "x$ac_cv_func_shl_load" = xyes; then :
10687 lt_cv_dlopen=shl_load
10688 else
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10690 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10691 if ${ac_cv_lib_dld_shl_load+:} false; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 ac_check_lib_save_LIBS=$LIBS
10695 LIBS="-ldld $LIBS"
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10702 #ifdef __cplusplus
10703 extern "C"
10704 #endif
10705 char shl_load ();
10707 main ()
10709 return shl_load ();
10711 return 0;
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"; then :
10715 ac_cv_lib_dld_shl_load=yes
10716 else
10717 ac_cv_lib_dld_shl_load=no
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10724 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10725 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10726 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10727 else
10728 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10729 if test "x$ac_cv_func_dlopen" = xyes; then :
10730 lt_cv_dlopen=dlopen
10731 else
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10733 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10734 if ${ac_cv_lib_dl_dlopen+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 ac_check_lib_save_LIBS=$LIBS
10738 LIBS="-ldl $LIBS"
10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h. */
10742 /* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10745 #ifdef __cplusplus
10746 extern "C"
10747 #endif
10748 char dlopen ();
10750 main ()
10752 return dlopen ();
10754 return 0;
10756 _ACEOF
10757 if ac_fn_c_try_link "$LINENO"; then :
10758 ac_cv_lib_dl_dlopen=yes
10759 else
10760 ac_cv_lib_dl_dlopen=no
10762 rm -f core conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10764 LIBS=$ac_check_lib_save_LIBS
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10767 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10768 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10769 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10770 else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10772 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10773 if ${ac_cv_lib_svld_dlopen+:} false; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-lsvld $LIBS"
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10784 #ifdef __cplusplus
10785 extern "C"
10786 #endif
10787 char dlopen ();
10789 main ()
10791 return dlopen ();
10793 return 0;
10795 _ACEOF
10796 if ac_fn_c_try_link "$LINENO"; then :
10797 ac_cv_lib_svld_dlopen=yes
10798 else
10799 ac_cv_lib_svld_dlopen=no
10801 rm -f core conftest.err conftest.$ac_objext \
10802 conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_check_lib_save_LIBS
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10806 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10807 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10808 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10811 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10812 if ${ac_cv_lib_dld_dld_link+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 ac_check_lib_save_LIBS=$LIBS
10816 LIBS="-ldld $LIBS"
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 char dld_link ();
10828 main ()
10830 return dld_link ();
10832 return 0;
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 ac_cv_lib_dld_dld_link=yes
10837 else
10838 ac_cv_lib_dld_dld_link=no
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10845 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10846 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10847 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
10866 esac
10868 if test no = "$lt_cv_dlopen"; then
10869 enable_dlopen=no
10870 else
10871 enable_dlopen=yes
10874 case $lt_cv_dlopen in
10875 dlopen)
10876 save_CPPFLAGS=$CPPFLAGS
10877 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10879 save_LDFLAGS=$LDFLAGS
10880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10882 save_LIBS=$LIBS
10883 LIBS="$lt_cv_dlopen_libs $LIBS"
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10886 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10887 if ${lt_cv_dlopen_self+:} false; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 if test yes = "$cross_compiling"; then :
10891 lt_cv_dlopen_self=cross
10892 else
10893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10894 lt_status=$lt_dlunknown
10895 cat > conftest.$ac_ext <<_LT_EOF
10896 #line $LINENO "configure"
10897 #include "confdefs.h"
10899 #if HAVE_DLFCN_H
10900 #include <dlfcn.h>
10901 #endif
10903 #include <stdio.h>
10905 #ifdef RTLD_GLOBAL
10906 # define LT_DLGLOBAL RTLD_GLOBAL
10907 #else
10908 # ifdef DL_GLOBAL
10909 # define LT_DLGLOBAL DL_GLOBAL
10910 # else
10911 # define LT_DLGLOBAL 0
10912 # endif
10913 #endif
10915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10916 find out it does not work in some platform. */
10917 #ifndef LT_DLLAZY_OR_NOW
10918 # ifdef RTLD_LAZY
10919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10920 # else
10921 # ifdef DL_LAZY
10922 # define LT_DLLAZY_OR_NOW DL_LAZY
10923 # else
10924 # ifdef RTLD_NOW
10925 # define LT_DLLAZY_OR_NOW RTLD_NOW
10926 # else
10927 # ifdef DL_NOW
10928 # define LT_DLLAZY_OR_NOW DL_NOW
10929 # else
10930 # define LT_DLLAZY_OR_NOW 0
10931 # endif
10932 # endif
10933 # endif
10934 # endif
10935 #endif
10937 /* When -fvisibility=hidden is used, assume the code has been annotated
10938 correspondingly for the symbols needed. */
10939 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10940 int fnord () __attribute__((visibility("default")));
10941 #endif
10943 int fnord () { return 42; }
10944 int main ()
10946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10947 int status = $lt_dlunknown;
10949 if (self)
10951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10952 else
10954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10955 else puts (dlerror ());
10957 /* dlclose (self); */
10959 else
10960 puts (dlerror ());
10962 return status;
10964 _LT_EOF
10965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10966 (eval $ac_link) 2>&5
10967 ac_status=$?
10968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10969 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
10970 (./conftest; exit; ) >&5 2>/dev/null
10971 lt_status=$?
10972 case x$lt_status in
10973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10976 esac
10977 else :
10978 # compilation failed
10979 lt_cv_dlopen_self=no
10982 rm -fr conftest*
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10987 $as_echo "$lt_cv_dlopen_self" >&6; }
10989 if test yes = "$lt_cv_dlopen_self"; then
10990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10992 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10993 if ${lt_cv_dlopen_self_static+:} false; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 if test yes = "$cross_compiling"; then :
10997 lt_cv_dlopen_self_static=cross
10998 else
10999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11000 lt_status=$lt_dlunknown
11001 cat > conftest.$ac_ext <<_LT_EOF
11002 #line $LINENO "configure"
11003 #include "confdefs.h"
11005 #if HAVE_DLFCN_H
11006 #include <dlfcn.h>
11007 #endif
11009 #include <stdio.h>
11011 #ifdef RTLD_GLOBAL
11012 # define LT_DLGLOBAL RTLD_GLOBAL
11013 #else
11014 # ifdef DL_GLOBAL
11015 # define LT_DLGLOBAL DL_GLOBAL
11016 # else
11017 # define LT_DLGLOBAL 0
11018 # endif
11019 #endif
11021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11022 find out it does not work in some platform. */
11023 #ifndef LT_DLLAZY_OR_NOW
11024 # ifdef RTLD_LAZY
11025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11026 # else
11027 # ifdef DL_LAZY
11028 # define LT_DLLAZY_OR_NOW DL_LAZY
11029 # else
11030 # ifdef RTLD_NOW
11031 # define LT_DLLAZY_OR_NOW RTLD_NOW
11032 # else
11033 # ifdef DL_NOW
11034 # define LT_DLLAZY_OR_NOW DL_NOW
11035 # else
11036 # define LT_DLLAZY_OR_NOW 0
11037 # endif
11038 # endif
11039 # endif
11040 # endif
11041 #endif
11043 /* When -fvisibility=hidden is used, assume the code has been annotated
11044 correspondingly for the symbols needed. */
11045 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11046 int fnord () __attribute__((visibility("default")));
11047 #endif
11049 int fnord () { return 42; }
11050 int main ()
11052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11053 int status = $lt_dlunknown;
11055 if (self)
11057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11058 else
11060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11061 else puts (dlerror ());
11063 /* dlclose (self); */
11065 else
11066 puts (dlerror ());
11068 return status;
11070 _LT_EOF
11071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11072 (eval $ac_link) 2>&5
11073 ac_status=$?
11074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11075 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11076 (./conftest; exit; ) >&5 2>/dev/null
11077 lt_status=$?
11078 case x$lt_status in
11079 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11080 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11081 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11082 esac
11083 else :
11084 # compilation failed
11085 lt_cv_dlopen_self_static=no
11088 rm -fr conftest*
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11093 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11096 CPPFLAGS=$save_CPPFLAGS
11097 LDFLAGS=$save_LDFLAGS
11098 LIBS=$save_LIBS
11100 esac
11102 case $lt_cv_dlopen_self in
11103 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11104 *) enable_dlopen_self=unknown ;;
11105 esac
11107 case $lt_cv_dlopen_self_static in
11108 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11109 *) enable_dlopen_self_static=unknown ;;
11110 esac
11129 striplib=
11130 old_striplib=
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11132 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11133 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11137 $as_echo "yes" >&6; }
11138 else
11139 # FIXME - insert some real tests, host_os isn't really good enough
11140 case $host_os in
11141 darwin*)
11142 if test -n "$STRIP"; then
11143 striplib="$STRIP -x"
11144 old_striplib="$STRIP -S"
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11146 $as_echo "yes" >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11156 esac
11170 # Report what library types will actually be built
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11172 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11174 $as_echo "$can_build_shared" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11177 $as_echo_n "checking whether to build shared libraries... " >&6; }
11178 test no = "$can_build_shared" && enable_shared=no
11180 # On AIX, shared libraries and static libraries use the same namespace, and
11181 # are all built from PIC.
11182 case $host_os in
11183 aix3*)
11184 test yes = "$enable_shared" && enable_static=no
11185 if test -n "$RANLIB"; then
11186 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11187 postinstall_cmds='$RANLIB $lib'
11191 aix[4-9]*)
11192 if test ia64 != "$host_cpu"; then
11193 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11194 yes,aix,yes) ;; # shared object as lib.so file only
11195 yes,svr4,*) ;; # shared object as lib.so archive member only
11196 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11197 esac
11200 esac
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11202 $as_echo "$enable_shared" >&6; }
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11205 $as_echo_n "checking whether to build static libraries... " >&6; }
11206 # Make sure either enable_shared or enable_static is yes.
11207 test yes = "$enable_shared" || enable_static=yes
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11209 $as_echo "$enable_static" >&6; }
11215 ac_ext=c
11216 ac_cpp='$CPP $CPPFLAGS'
11217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11221 CC=$lt_save_CC
11237 ac_config_commands="$ac_config_commands libtool"
11242 # Only expand once:
11245 # Find a good install program. We prefer a C program (faster),
11246 # so one script is as good as another. But avoid the broken or
11247 # incompatible versions:
11248 # SysV /etc/install, /usr/sbin/install
11249 # SunOS /usr/etc/install
11250 # IRIX /sbin/install
11251 # AIX /bin/install
11252 # AmigaOS /C/install, which installs bootblocks on floppy discs
11253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11256 # OS/2's system install, which has a completely different semantic
11257 # ./install, which can be erroneously created by make from ./install.sh.
11258 # Reject install programs that cannot install multiple files.
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11261 if test -z "$INSTALL"; then
11262 if ${ac_cv_path_install+:} false; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11268 IFS=$as_save_IFS
11269 test -z "$as_dir" && as_dir=.
11270 # Account for people who put trailing slashes in PATH elements.
11271 case $as_dir/ in #((
11272 ./ | .// | /[cC]/* | \
11273 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11274 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11275 /usr/ucb/* ) ;;
11277 # OSF1 and SCO ODT 3.0 have their own names for install.
11278 # Don't use installbsd from OSF since it installs stuff as root
11279 # by default.
11280 for ac_prog in ginstall scoinst install; do
11281 for ac_exec_ext in '' $ac_executable_extensions; do
11282 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11283 if test $ac_prog = install &&
11284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11285 # AIX install. It has an incompatible calling convention.
11287 elif test $ac_prog = install &&
11288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11289 # program-specific install script used by HP pwplus--don't use.
11291 else
11292 rm -rf conftest.one conftest.two conftest.dir
11293 echo one > conftest.one
11294 echo two > conftest.two
11295 mkdir conftest.dir
11296 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11297 test -s conftest.one && test -s conftest.two &&
11298 test -s conftest.dir/conftest.one &&
11299 test -s conftest.dir/conftest.two
11300 then
11301 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11302 break 3
11306 done
11307 done
11309 esac
11311 done
11312 IFS=$as_save_IFS
11314 rm -rf conftest.one conftest.two conftest.dir
11317 if test "${ac_cv_path_install+set}" = set; then
11318 INSTALL=$ac_cv_path_install
11319 else
11320 # As a last resort, use the slow shell script. Don't cache a
11321 # value for INSTALL within a source directory, because that will
11322 # break other packages using the cache if that directory is
11323 # removed, or if the value is a relative name.
11324 INSTALL=$ac_install_sh
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11328 $as_echo "$INSTALL" >&6; }
11330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11331 # It thinks the first close brace ends the variable substitution.
11332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11339 #########
11340 # Enable large file support (if special flags are necessary)
11342 # Check whether --enable-largefile was given.
11343 if test "${enable_largefile+set}" = set; then :
11344 enableval=$enable_largefile;
11347 if test "$enable_largefile" != no; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11350 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11351 if ${ac_cv_sys_largefile_CC+:} false; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 ac_cv_sys_largefile_CC=no
11355 if test "$GCC" != yes; then
11356 ac_save_CC=$CC
11357 while :; do
11358 # IRIX 6.2 and later do not support large files by default,
11359 # so use the C compiler's -n32 option if that helps.
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11362 #include <sys/types.h>
11363 /* Check that off_t can represent 2**63 - 1 correctly.
11364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11365 since some C++ compilers masquerading as C compilers
11366 incorrectly reject 9223372036854775807. */
11367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11369 && LARGE_OFF_T % 2147483647 == 1)
11370 ? 1 : -1];
11372 main ()
11376 return 0;
11378 _ACEOF
11379 if ac_fn_c_try_compile "$LINENO"; then :
11380 break
11382 rm -f core conftest.err conftest.$ac_objext
11383 CC="$CC -n32"
11384 if ac_fn_c_try_compile "$LINENO"; then :
11385 ac_cv_sys_largefile_CC=' -n32'; break
11387 rm -f core conftest.err conftest.$ac_objext
11388 break
11389 done
11390 CC=$ac_save_CC
11391 rm -f conftest.$ac_ext
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11395 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11396 if test "$ac_cv_sys_largefile_CC" != no; then
11397 CC=$CC$ac_cv_sys_largefile_CC
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11401 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11402 if ${ac_cv_sys_file_offset_bits+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 while :; do
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11408 #include <sys/types.h>
11409 /* Check that off_t can represent 2**63 - 1 correctly.
11410 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11411 since some C++ compilers masquerading as C compilers
11412 incorrectly reject 9223372036854775807. */
11413 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11414 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11415 && LARGE_OFF_T % 2147483647 == 1)
11416 ? 1 : -1];
11418 main ()
11422 return 0;
11424 _ACEOF
11425 if ac_fn_c_try_compile "$LINENO"; then :
11426 ac_cv_sys_file_offset_bits=no; break
11428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11431 #define _FILE_OFFSET_BITS 64
11432 #include <sys/types.h>
11433 /* Check that off_t can represent 2**63 - 1 correctly.
11434 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11435 since some C++ compilers masquerading as C compilers
11436 incorrectly reject 9223372036854775807. */
11437 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11438 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11439 && LARGE_OFF_T % 2147483647 == 1)
11440 ? 1 : -1];
11442 main ()
11446 return 0;
11448 _ACEOF
11449 if ac_fn_c_try_compile "$LINENO"; then :
11450 ac_cv_sys_file_offset_bits=64; break
11452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11453 ac_cv_sys_file_offset_bits=unknown
11454 break
11455 done
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11458 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11459 case $ac_cv_sys_file_offset_bits in #(
11460 no | unknown) ;;
11462 cat >>confdefs.h <<_ACEOF
11463 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11464 _ACEOF
11466 esac
11467 rm -rf conftest*
11468 if test $ac_cv_sys_file_offset_bits = unknown; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11470 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11471 if ${ac_cv_sys_large_files+:} false; then :
11472 $as_echo_n "(cached) " >&6
11473 else
11474 while :; do
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477 #include <sys/types.h>
11478 /* Check that off_t can represent 2**63 - 1 correctly.
11479 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11480 since some C++ compilers masquerading as C compilers
11481 incorrectly reject 9223372036854775807. */
11482 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11483 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11484 && LARGE_OFF_T % 2147483647 == 1)
11485 ? 1 : -1];
11487 main ()
11491 return 0;
11493 _ACEOF
11494 if ac_fn_c_try_compile "$LINENO"; then :
11495 ac_cv_sys_large_files=no; break
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500 #define _LARGE_FILES 1
11501 #include <sys/types.h>
11502 /* Check that off_t can represent 2**63 - 1 correctly.
11503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11504 since some C++ compilers masquerading as C compilers
11505 incorrectly reject 9223372036854775807. */
11506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11508 && LARGE_OFF_T % 2147483647 == 1)
11509 ? 1 : -1];
11511 main ()
11515 return 0;
11517 _ACEOF
11518 if ac_fn_c_try_compile "$LINENO"; then :
11519 ac_cv_sys_large_files=1; break
11521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522 ac_cv_sys_large_files=unknown
11523 break
11524 done
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11527 $as_echo "$ac_cv_sys_large_files" >&6; }
11528 case $ac_cv_sys_large_files in #(
11529 no | unknown) ;;
11531 cat >>confdefs.h <<_ACEOF
11532 #define _LARGE_FILES $ac_cv_sys_large_files
11533 _ACEOF
11535 esac
11536 rm -rf conftest*
11543 #########
11544 # Check for needed/wanted data types
11545 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
11546 if test "x$ac_cv_type_int8_t" = xyes; then :
11548 cat >>confdefs.h <<_ACEOF
11549 #define HAVE_INT8_T 1
11550 _ACEOF
11554 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
11555 if test "x$ac_cv_type_int16_t" = xyes; then :
11557 cat >>confdefs.h <<_ACEOF
11558 #define HAVE_INT16_T 1
11559 _ACEOF
11563 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
11564 if test "x$ac_cv_type_int32_t" = xyes; then :
11566 cat >>confdefs.h <<_ACEOF
11567 #define HAVE_INT32_T 1
11568 _ACEOF
11572 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11573 if test "x$ac_cv_type_int64_t" = xyes; then :
11575 cat >>confdefs.h <<_ACEOF
11576 #define HAVE_INT64_T 1
11577 _ACEOF
11581 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11582 if test "x$ac_cv_type_intptr_t" = xyes; then :
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE_INTPTR_T 1
11586 _ACEOF
11590 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
11591 if test "x$ac_cv_type_uint8_t" = xyes; then :
11593 cat >>confdefs.h <<_ACEOF
11594 #define HAVE_UINT8_T 1
11595 _ACEOF
11599 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
11600 if test "x$ac_cv_type_uint16_t" = xyes; then :
11602 cat >>confdefs.h <<_ACEOF
11603 #define HAVE_UINT16_T 1
11604 _ACEOF
11608 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
11609 if test "x$ac_cv_type_uint32_t" = xyes; then :
11611 cat >>confdefs.h <<_ACEOF
11612 #define HAVE_UINT32_T 1
11613 _ACEOF
11617 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11618 if test "x$ac_cv_type_uint64_t" = xyes; then :
11620 cat >>confdefs.h <<_ACEOF
11621 #define HAVE_UINT64_T 1
11622 _ACEOF
11626 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
11627 if test "x$ac_cv_type_uintptr_t" = xyes; then :
11629 cat >>confdefs.h <<_ACEOF
11630 #define HAVE_UINTPTR_T 1
11631 _ACEOF
11637 #########
11638 # Check for needed/wanted headers
11639 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
11640 do :
11641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11642 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11643 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11644 cat >>confdefs.h <<_ACEOF
11645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11646 _ACEOF
11650 done
11653 #########
11654 # Figure out whether or not we have these functions
11656 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
11657 do :
11658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11661 cat >>confdefs.h <<_ACEOF
11662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11663 _ACEOF
11666 done
11669 #########
11670 # By default, we use the amalgamation (this may be changed below...)
11672 USE_AMALGAMATION=1
11674 #########
11675 # See whether we can run specific tclsh versions known to work well;
11676 # if not, then we fall back to plain tclsh.
11677 # TODO: try other versions before falling back?
11679 for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
11681 # Extract the first word of "$ac_prog", so it can be a program name with args.
11682 set dummy $ac_prog; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 if test -n "$TCLSH_CMD"; then
11689 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
11690 else
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11698 ac_cv_prog_TCLSH_CMD="$ac_prog"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11702 done
11703 done
11704 IFS=$as_save_IFS
11708 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
11709 if test -n "$TCLSH_CMD"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
11711 $as_echo "$TCLSH_CMD" >&6; }
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11718 test -n "$TCLSH_CMD" && break
11719 done
11720 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
11722 if test "$TCLSH_CMD" = "none"; then
11723 # If we can't find a local tclsh, then building the amalgamation will fail.
11724 # We act as though --disable-amalgamation has been used.
11725 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
11726 USE_AMALGAMATION=0
11727 TCLSH_CMD="tclsh"
11732 if test "x${TCLLIBDIR+set}" != "xset" ; then
11733 TCLLIBDIR='$(libdir)'
11734 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
11735 TCLLIBDIR=$i
11736 break
11737 done
11738 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
11741 #########
11742 # Set up an appropriate program prefix
11744 if test "$program_prefix" = "NONE"; then
11745 program_prefix=""
11749 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
11751 $as_echo "$as_me: Version set to $VERSION" >&6;}
11753 RELEASE=`cat $srcdir/VERSION`
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
11755 $as_echo "$as_me: Release set to $RELEASE" >&6;}
11757 VERSION_NUMBER=`cat $srcdir/VERSION \
11758 | sed 's/[^0-9]/ /g' \
11759 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
11761 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
11764 #########
11765 # Locate a compiler for the build machine. This compiler should
11766 # generate command-line programs that run on the build machine.
11768 if test x"$cross_compiling" = xno; then
11769 BUILD_CC=$CC
11770 BUILD_CFLAGS=$CFLAGS
11771 else
11772 if test "${BUILD_CC+set}" != set; then
11773 for ac_prog in gcc cc cl
11775 # Extract the first word of "$ac_prog", so it can be a program name with args.
11776 set dummy $ac_prog; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if ${ac_cv_prog_BUILD_CC+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 if test -n "$BUILD_CC"; then
11783 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11784 else
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_prog_BUILD_CC="$ac_prog"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 break 2
11796 done
11797 done
11798 IFS=$as_save_IFS
11802 BUILD_CC=$ac_cv_prog_BUILD_CC
11803 if test -n "$BUILD_CC"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11805 $as_echo "$BUILD_CC" >&6; }
11806 else
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11812 test -n "$BUILD_CC" && break
11813 done
11816 if test "${BUILD_CFLAGS+set}" != set; then
11817 BUILD_CFLAGS="-g"
11822 ##########
11823 # Do we want to support multithreaded use of sqlite
11825 # Check whether --enable-threadsafe was given.
11826 if test "${enable_threadsafe+set}" = set; then :
11827 enableval=$enable_threadsafe;
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
11831 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
11832 if test "$enable_threadsafe" = "no"; then
11833 SQLITE_THREADSAFE=0
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836 else
11837 SQLITE_THREADSAFE=1
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11839 $as_echo "yes" >&6; }
11843 if test "$SQLITE_THREADSAFE" = "1"; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
11845 $as_echo_n "checking for library containing pthread_create... " >&6; }
11846 if ${ac_cv_search_pthread_create+:} false; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 ac_func_search_save_LIBS=$LIBS
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char pthread_create ();
11861 main ()
11863 return pthread_create ();
11865 return 0;
11867 _ACEOF
11868 for ac_lib in '' pthread; do
11869 if test -z "$ac_lib"; then
11870 ac_res="none required"
11871 else
11872 ac_res=-l$ac_lib
11873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 ac_cv_search_pthread_create=$ac_res
11878 rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext
11880 if ${ac_cv_search_pthread_create+:} false; then :
11881 break
11883 done
11884 if ${ac_cv_search_pthread_create+:} false; then :
11886 else
11887 ac_cv_search_pthread_create=no
11889 rm conftest.$ac_ext
11890 LIBS=$ac_func_search_save_LIBS
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
11893 $as_echo "$ac_cv_search_pthread_create" >&6; }
11894 ac_res=$ac_cv_search_pthread_create
11895 if test "$ac_res" != no; then :
11896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
11901 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
11902 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11903 $as_echo_n "(cached) " >&6
11904 else
11905 ac_func_search_save_LIBS=$LIBS
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11909 /* Override any GCC internal prototype to avoid an error.
11910 Use char because int might match the return type of a GCC
11911 builtin and then its argument prototype would still apply. */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 char pthread_mutexattr_init ();
11917 main ()
11919 return pthread_mutexattr_init ();
11921 return 0;
11923 _ACEOF
11924 for ac_lib in '' pthread; do
11925 if test -z "$ac_lib"; then
11926 ac_res="none required"
11927 else
11928 ac_res=-l$ac_lib
11929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11931 if ac_fn_c_try_link "$LINENO"; then :
11932 ac_cv_search_pthread_mutexattr_init=$ac_res
11934 rm -f core conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext
11936 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11937 break
11939 done
11940 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11942 else
11943 ac_cv_search_pthread_mutexattr_init=no
11945 rm conftest.$ac_ext
11946 LIBS=$ac_func_search_save_LIBS
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
11949 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
11950 ac_res=$ac_cv_search_pthread_mutexattr_init
11951 if test "$ac_res" != no; then :
11952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11958 ##########
11959 # Which crypto library do we use
11962 # Check whether --with-crypto-lib was given.
11963 if test "${with_crypto_lib+set}" = set; then :
11964 withval=$with_crypto_lib; crypto_lib=$withval
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
11968 $as_echo_n "checking for crypto library to use... " >&6; }
11969 if test "$crypto_lib" = "none"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11971 $as_echo "none" >&6; }
11972 else
11973 if test "$crypto_lib" = "commoncrypto"; then
11974 CFLAGS+=" -DSQLCIPHER_CRYPTO_CC"
11975 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_CC"
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
11977 $as_echo "commoncrypto" >&6; }
11978 else
11979 if test "$crypto_lib" = "libtomcrypt"; then
11980 CFLAGS+=" -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
11981 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
11983 $as_echo "libtomcrypt" >&6; }
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
11985 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
11986 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 ac_check_lib_save_LIBS=$LIBS
11990 LIBS="-ltomcrypt $LIBS"
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11994 /* Override any GCC internal prototype to avoid an error.
11995 Use char because int might match the return type of a GCC
11996 builtin and then its argument prototype would still apply. */
11997 #ifdef __cplusplus
11998 extern "C"
11999 #endif
12000 char register_cipher ();
12002 main ()
12004 return register_cipher ();
12006 return 0;
12008 _ACEOF
12009 if ac_fn_c_try_link "$LINENO"; then :
12010 ac_cv_lib_tomcrypt_register_cipher=yes
12011 else
12012 ac_cv_lib_tomcrypt_register_cipher=no
12014 rm -f core conftest.err conftest.$ac_objext \
12015 conftest$ac_exeext conftest.$ac_ext
12016 LIBS=$ac_check_lib_save_LIBS
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
12019 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
12020 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
12021 cat >>confdefs.h <<_ACEOF
12022 #define HAVE_LIBTOMCRYPT 1
12023 _ACEOF
12025 LIBS="-ltomcrypt $LIBS"
12027 else
12028 as_fn_error $? "Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
12031 else
12032 if test "$crypto_lib" = "nss"; then
12033 CFLAGS+=" -DSQLCIPHER_CRYPTO_NSS"
12034 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_NSS"
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nss3" >&5
12036 $as_echo "nss3" >&6; }
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_Decrypt in -lnss3" >&5
12038 $as_echo_n "checking for PK11_Decrypt in -lnss3... " >&6; }
12039 if ${ac_cv_lib_nss3_PK11_Decrypt+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-lnss3 $LIBS"
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 char PK11_Decrypt ();
12055 main ()
12057 return PK11_Decrypt ();
12059 return 0;
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_lib_nss3_PK11_Decrypt=yes
12064 else
12065 ac_cv_lib_nss3_PK11_Decrypt=no
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 LIBS=$ac_check_lib_save_LIBS
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_Decrypt" >&5
12072 $as_echo "$ac_cv_lib_nss3_PK11_Decrypt" >&6; }
12073 if test "x$ac_cv_lib_nss3_PK11_Decrypt" = xyes; then :
12074 cat >>confdefs.h <<_ACEOF
12075 #define HAVE_LIBNSS3 1
12076 _ACEOF
12078 LIBS="-lnss3 $LIBS"
12080 else
12081 as_fn_error $? "Library crypto not found. Install nss!\"" "$LINENO" 5
12084 else
12085 CFLAGS+=" -DSQLCIPHER_CRYPTO_OPENSSL"
12086 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_OPENSSL"
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
12088 $as_echo "openssl" >&6; }
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
12090 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
12091 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 ac_check_lib_save_LIBS=$LIBS
12095 LIBS="-lcrypto $LIBS"
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12099 /* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12102 #ifdef __cplusplus
12103 extern "C"
12104 #endif
12105 char HMAC_Init_ex ();
12107 main ()
12109 return HMAC_Init_ex ();
12111 return 0;
12113 _ACEOF
12114 if ac_fn_c_try_link "$LINENO"; then :
12115 ac_cv_lib_crypto_HMAC_Init_ex=yes
12116 else
12117 ac_cv_lib_crypto_HMAC_Init_ex=no
12119 rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121 LIBS=$ac_check_lib_save_LIBS
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
12124 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
12125 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
12126 cat >>confdefs.h <<_ACEOF
12127 #define HAVE_LIBCRYPTO 1
12128 _ACEOF
12130 LIBS="-lcrypto $LIBS"
12132 else
12133 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
12141 ##########
12142 # Do we want to allow a connection created in one thread to be used
12143 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12144 # due to bugs in the threading implementations. This is thus off by default.
12146 # Check whether --enable-cross-thread-connections was given.
12147 if test "${enable_cross_thread_connections+set}" = set; then :
12148 enableval=$enable_cross_thread_connections;
12149 else
12150 enable_xthreadconnect=no
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
12154 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12155 if test "$enable_xthreadconnect" = "no"; then
12156 XTHREADCONNECT=''
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12159 else
12160 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12162 $as_echo "yes" >&6; }
12166 ##########
12167 # Do we want to support release
12169 # Check whether --enable-releasemode was given.
12170 if test "${enable_releasemode+set}" = set; then :
12171 enableval=$enable_releasemode;
12172 else
12173 enable_releasemode=no
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
12177 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12178 if test "$enable_releasemode" = "no"; then
12179 ALLOWRELEASE=""
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12182 else
12183 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12185 $as_echo "yes" >&6; }
12189 ##########
12190 # Do we want temporary databases in memory
12192 # Check whether --enable-tempstore was given.
12193 if test "${enable_tempstore+set}" = set; then :
12194 enableval=$enable_tempstore;
12195 else
12196 enable_tempstore=no
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
12200 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12201 case "$enable_tempstore" in
12202 never )
12203 TEMP_STORE=0
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
12205 $as_echo "never" >&6; }
12207 no )
12208 TEMP_STORE=1
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12212 yes )
12213 TEMP_STORE=2
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12215 $as_echo "yes" >&6; }
12217 always )
12218 TEMP_STORE=3
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
12220 $as_echo "always" >&6; }
12223 TEMP_STORE=1
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12227 esac
12231 ###########
12232 # Lots of things are different if we are compiling for Windows using
12233 # the CYGWIN environment. So check for that special case and handle
12234 # things accordingly.
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
12237 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
12238 if test "$config_BUILD_EXEEXT" = ".exe"; then
12239 CYGWIN=yes
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12241 $as_echo "yes" >&6; }
12242 else
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12244 $as_echo "unknown" >&6; }
12246 if test "$CYGWIN" != "yes"; then
12248 case $host_os in
12249 *cygwin* ) CYGWIN=yes;;
12250 * ) CYGWIN=no;;
12251 esac
12254 if test "$CYGWIN" = "yes"; then
12255 BUILD_EXEEXT=.exe
12256 else
12257 BUILD_EXEEXT=$EXEEXT
12259 if test x"$cross_compiling" = xno; then
12260 TARGET_EXEEXT=$BUILD_EXEEXT
12261 else
12262 TARGET_EXEEXT=$config_TARGET_EXEEXT
12264 if test "$TARGET_EXEEXT" = ".exe"; then
12265 SQLITE_OS_UNIX=0
12266 SQLITE_OS_WIN=1
12267 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12268 else
12269 SQLITE_OS_UNIX=1
12270 SQLITE_OS_WIN=0
12271 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12279 ##########
12280 # Figure out all the parameters needed to compile against Tcl.
12282 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12283 # macros in the in the tcl.m4 file of the standard TCL distribution.
12284 # Those macros could not be used directly since we have to make some
12285 # minor changes to accomodate systems that do not have TCL installed.
12287 # Check whether --enable-tcl was given.
12288 if test "${enable_tcl+set}" = set; then :
12289 enableval=$enable_tcl; use_tcl=$enableval
12290 else
12291 use_tcl=yes
12294 if test "${use_tcl}" = "yes" ; then
12296 # Check whether --with-tcl was given.
12297 if test "${with_tcl+set}" = set; then :
12298 withval=$with_tcl; with_tclconfig=${withval}
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12302 $as_echo_n "checking for Tcl configuration... " >&6; }
12303 if ${ac_cv_c_tclconfig+:} false; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12307 # First check to see if --with-tcl was specified.
12308 if test x"${with_tclconfig}" != x ; then
12309 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12310 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12311 else
12312 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12316 # Start autosearch by asking tclsh
12317 if test x"${ac_cv_c_tclconfig}" = x ; then
12318 if test x"$cross_compiling" = xno; then
12319 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12321 if test -f "$i/tclConfig.sh" ; then
12322 ac_cv_c_tclconfig="$i"
12323 break
12325 done
12329 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
12330 # So try again after applying corrections.
12331 if test x"${ac_cv_c_tclconfig}" = x ; then
12332 if test x"$cross_compiling" = xno; then
12333 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
12335 if test -f "$i/tclConfig.sh" ; then
12336 ac_cv_c_tclconfig="$i"
12337 break
12339 done
12343 # Recent versions of Xcode on Macs hid the tclConfig.sh file
12344 # in a strange place.
12345 if test x"${ac_cv_c_tclconfig}" = x ; then
12346 if test x"$cross_compiling" = xno; then
12347 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
12349 if test -f "$i/tclConfig.sh" ; then
12350 ac_cv_c_tclconfig="$i"
12351 break
12353 done
12357 # then check for a private Tcl installation
12358 if test x"${ac_cv_c_tclconfig}" = x ; then
12359 for i in \
12360 ../tcl \
12361 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12362 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12363 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12364 ../../tcl \
12365 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12366 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12367 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12368 ../../../tcl \
12369 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12370 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12371 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12373 if test -f "$i/unix/tclConfig.sh" ; then
12374 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12375 break
12377 done
12380 # check in a few common install locations
12381 if test x"${ac_cv_c_tclconfig}" = x ; then
12382 for i in \
12383 `ls -d ${libdir} 2>/dev/null` \
12384 `ls -d /usr/local/lib 2>/dev/null` \
12385 `ls -d /usr/contrib/lib 2>/dev/null` \
12386 `ls -d /usr/lib 2>/dev/null`
12388 if test -f "$i/tclConfig.sh" ; then
12389 ac_cv_c_tclconfig=`(cd $i; pwd)`
12390 break
12392 done
12395 # check in a few other private locations
12396 if test x"${ac_cv_c_tclconfig}" = x ; then
12397 for i in \
12398 ${srcdir}/../tcl \
12399 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12400 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12401 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12403 if test -f "$i/unix/tclConfig.sh" ; then
12404 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12405 break
12407 done
12413 if test x"${ac_cv_c_tclconfig}" = x ; then
12414 use_tcl=no
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12416 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12418 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12420 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12421 else
12422 TCL_BIN_DIR=${ac_cv_c_tclconfig}
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12424 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12427 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12428 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12430 $as_echo "loading" >&6; }
12431 . $TCL_BIN_DIR/tclConfig.sh
12432 else
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
12434 $as_echo "file not found" >&6; }
12438 # If the TCL_BIN_DIR is the build directory (not the install directory),
12439 # then set the common variable name to the value of the build variables.
12440 # For example, the variable TCL_LIB_SPEC will be set to the value
12441 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12442 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12443 # installed and uninstalled version of Tcl.
12446 if test -f $TCL_BIN_DIR/Makefile ; then
12447 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12448 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12449 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12453 # eval is required to do the TCL_DBGX substitution
12456 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12457 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12458 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12460 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12461 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12462 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12479 if test "${use_tcl}" = "no" ; then
12480 HAVE_TCL=""
12481 else
12482 HAVE_TCL=1
12486 ##########
12487 # Figure out what C libraries are required to compile programs
12488 # that use "readline()" library.
12490 TARGET_READLINE_LIBS=""
12491 TARGET_READLINE_INC=""
12492 TARGET_HAVE_READLINE=0
12493 TARGET_HAVE_EDITLINE=0
12494 # Check whether --enable-editline was given.
12495 if test "${enable_editline+set}" = set; then :
12496 enableval=$enable_editline; with_editline=$enableval
12497 else
12498 with_editline=auto
12501 # Check whether --enable-readline was given.
12502 if test "${enable_readline+set}" = set; then :
12503 enableval=$enable_readline; with_readline=$enableval
12504 else
12505 with_readline=auto
12509 if test x"$with_editline" != xno; then
12510 sLIBS=$LIBS
12511 LIBS=""
12512 TARGET_HAVE_EDITLINE=1
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12514 $as_echo_n "checking for library containing readline... " >&6; }
12515 if ${ac_cv_search_readline+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 ac_func_search_save_LIBS=$LIBS
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12522 /* Override any GCC internal prototype to avoid an error.
12523 Use char because int might match the return type of a GCC
12524 builtin and then its argument prototype would still apply. */
12525 #ifdef __cplusplus
12526 extern "C"
12527 #endif
12528 char readline ();
12530 main ()
12532 return readline ();
12534 return 0;
12536 _ACEOF
12537 for ac_lib in '' edit; do
12538 if test -z "$ac_lib"; then
12539 ac_res="none required"
12540 else
12541 ac_res=-l$ac_lib
12542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_search_readline=$ac_res
12547 rm -f core conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext
12549 if ${ac_cv_search_readline+:} false; then :
12550 break
12552 done
12553 if ${ac_cv_search_readline+:} false; then :
12555 else
12556 ac_cv_search_readline=no
12558 rm conftest.$ac_ext
12559 LIBS=$ac_func_search_save_LIBS
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12562 $as_echo "$ac_cv_search_readline" >&6; }
12563 ac_res=$ac_cv_search_readline
12564 if test "$ac_res" != no; then :
12565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12566 with_readline=no
12567 else
12568 TARGET_HAVE_EDITLINE=0
12571 TARGET_READLINE_LIBS=$LIBS
12572 LIBS=$sLIBS
12574 if test x"$with_readline" != xno; then
12575 found="yes"
12578 # Check whether --with-readline-lib was given.
12579 if test "${with_readline_lib+set}" = set; then :
12580 withval=$with_readline_lib; with_readline_lib=$withval
12581 else
12582 with_readline_lib="auto"
12585 if test "x$with_readline_lib" = xauto; then
12586 save_LIBS="$LIBS"
12587 LIBS=""
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12589 $as_echo_n "checking for library containing tgetent... " >&6; }
12590 if ${ac_cv_search_tgetent+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 ac_func_search_save_LIBS=$LIBS
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12597 /* Override any GCC internal prototype to avoid an error.
12598 Use char because int might match the return type of a GCC
12599 builtin and then its argument prototype would still apply. */
12600 #ifdef __cplusplus
12601 extern "C"
12602 #endif
12603 char tgetent ();
12605 main ()
12607 return tgetent ();
12609 return 0;
12611 _ACEOF
12612 for ac_lib in '' readline ncurses curses termcap; do
12613 if test -z "$ac_lib"; then
12614 ac_res="none required"
12615 else
12616 ac_res=-l$ac_lib
12617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12619 if ac_fn_c_try_link "$LINENO"; then :
12620 ac_cv_search_tgetent=$ac_res
12622 rm -f core conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext
12624 if ${ac_cv_search_tgetent+:} false; then :
12625 break
12627 done
12628 if ${ac_cv_search_tgetent+:} false; then :
12630 else
12631 ac_cv_search_tgetent=no
12633 rm conftest.$ac_ext
12634 LIBS=$ac_func_search_save_LIBS
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12637 $as_echo "$ac_cv_search_tgetent" >&6; }
12638 ac_res=$ac_cv_search_tgetent
12639 if test "$ac_res" != no; then :
12640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12641 term_LIBS="$LIBS"
12642 else
12643 term_LIBS=""
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
12647 $as_echo_n "checking for readline in -lreadline... " >&6; }
12648 if ${ac_cv_lib_readline_readline+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 ac_check_lib_save_LIBS=$LIBS
12652 LIBS="-lreadline $LIBS"
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12656 /* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12659 #ifdef __cplusplus
12660 extern "C"
12661 #endif
12662 char readline ();
12664 main ()
12666 return readline ();
12668 return 0;
12670 _ACEOF
12671 if ac_fn_c_try_link "$LINENO"; then :
12672 ac_cv_lib_readline_readline=yes
12673 else
12674 ac_cv_lib_readline_readline=no
12676 rm -f core conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
12678 LIBS=$ac_check_lib_save_LIBS
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
12681 $as_echo "$ac_cv_lib_readline_readline" >&6; }
12682 if test "x$ac_cv_lib_readline_readline" = xyes; then :
12683 TARGET_READLINE_LIBS="-lreadline"
12684 else
12685 found="no"
12688 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
12689 LIBS="$save_LIBS"
12690 else
12691 TARGET_READLINE_LIBS="$with_readline_lib"
12695 # Check whether --with-readline-inc was given.
12696 if test "${with_readline_inc+set}" = set; then :
12697 withval=$with_readline_inc; with_readline_inc=$withval
12698 else
12699 with_readline_inc="auto"
12702 if test "x$with_readline_inc" = xauto; then
12703 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12704 if test "x$ac_cv_header_readline_h" = xyes; then :
12705 found="yes"
12706 else
12708 found="no"
12709 if test "$cross_compiling" != yes; then
12710 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
12711 for subdir in include include/readline; do
12712 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
12714 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
12715 if eval \${$as_ac_File+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 test "$cross_compiling" = yes &&
12719 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12720 if test -r "$dir/$subdir/readline.h"; then
12721 eval "$as_ac_File=yes"
12722 else
12723 eval "$as_ac_File=no"
12726 eval ac_res=\$$as_ac_File
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12728 $as_echo "$ac_res" >&6; }
12729 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
12730 found=yes
12733 if test "$found" = "yes"; then
12734 TARGET_READLINE_INC="-I$dir/$subdir"
12735 break
12737 done
12738 test "$found" = "yes" && break
12739 done
12745 else
12746 TARGET_READLINE_INC="$with_readline_inc"
12749 if test x"$found" = xno; then
12750 TARGET_READLINE_LIBS=""
12751 TARGET_READLINE_INC=""
12752 TARGET_HAVE_READLINE=0
12753 else
12754 TARGET_HAVE_READLINE=1
12763 ##########
12764 # Figure out what C libraries are required to compile programs
12765 # that use "fdatasync()" function.
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
12768 $as_echo_n "checking for library containing fdatasync... " >&6; }
12769 if ${ac_cv_search_fdatasync+:} false; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12772 ac_func_search_save_LIBS=$LIBS
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 char fdatasync ();
12784 main ()
12786 return fdatasync ();
12788 return 0;
12790 _ACEOF
12791 for ac_lib in '' rt; do
12792 if test -z "$ac_lib"; then
12793 ac_res="none required"
12794 else
12795 ac_res=-l$ac_lib
12796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12798 if ac_fn_c_try_link "$LINENO"; then :
12799 ac_cv_search_fdatasync=$ac_res
12801 rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext
12803 if ${ac_cv_search_fdatasync+:} false; then :
12804 break
12806 done
12807 if ${ac_cv_search_fdatasync+:} false; then :
12809 else
12810 ac_cv_search_fdatasync=no
12812 rm conftest.$ac_ext
12813 LIBS=$ac_func_search_save_LIBS
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
12816 $as_echo "$ac_cv_search_fdatasync" >&6; }
12817 ac_res=$ac_cv_search_fdatasync
12818 if test "$ac_res" != no; then :
12819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12824 #########
12825 # check for debug enabled
12826 # Check whether --enable-debug was given.
12827 if test "${enable_debug+set}" = set; then :
12828 enableval=$enable_debug;
12831 if test "${enable_debug}" = "yes" ; then
12832 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
12833 else
12834 TARGET_DEBUG="-DNDEBUG"
12838 #########
12839 # See whether we should use the amalgamation to build
12840 # Check whether --enable-amalgamation was given.
12841 if test "${enable_amalgamation+set}" = set; then :
12842 enableval=$enable_amalgamation;
12845 if test "${enable_amalgamation}" == "no" ; then
12846 USE_AMALGAMATION=0
12850 #########
12851 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
12852 for ac_header in zlib.h
12853 do :
12854 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12855 if test "x$ac_cv_header_zlib_h" = xyes; then :
12856 cat >>confdefs.h <<_ACEOF
12857 #define HAVE_ZLIB_H 1
12858 _ACEOF
12862 done
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
12865 $as_echo_n "checking for library containing deflate... " >&6; }
12866 if ${ac_cv_search_deflate+:} false; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 ac_func_search_save_LIBS=$LIBS
12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h. */
12873 /* Override any GCC internal prototype to avoid an error.
12874 Use char because int might match the return type of a GCC
12875 builtin and then its argument prototype would still apply. */
12876 #ifdef __cplusplus
12877 extern "C"
12878 #endif
12879 char deflate ();
12881 main ()
12883 return deflate ();
12885 return 0;
12887 _ACEOF
12888 for ac_lib in '' z; do
12889 if test -z "$ac_lib"; then
12890 ac_res="none required"
12891 else
12892 ac_res=-l$ac_lib
12893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12895 if ac_fn_c_try_link "$LINENO"; then :
12896 ac_cv_search_deflate=$ac_res
12898 rm -f core conftest.err conftest.$ac_objext \
12899 conftest$ac_exeext
12900 if ${ac_cv_search_deflate+:} false; then :
12901 break
12903 done
12904 if ${ac_cv_search_deflate+:} false; then :
12906 else
12907 ac_cv_search_deflate=no
12909 rm conftest.$ac_ext
12910 LIBS=$ac_func_search_save_LIBS
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
12913 $as_echo "$ac_cv_search_deflate" >&6; }
12914 ac_res=$ac_cv_search_deflate
12915 if test "$ac_res" != no; then :
12916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12917 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
12918 else
12919 HAVE_ZLIB=""
12924 #########
12925 # See whether we should allow loadable extensions
12926 # Check whether --enable-load-extension was given.
12927 if test "${enable_load_extension+set}" = set; then :
12928 enableval=$enable_load_extension;
12929 else
12930 enable_load_extension=yes
12933 if test "${enable_load_extension}" = "yes" ; then
12934 OPT_FEATURE_FLAGS=""
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12936 $as_echo_n "checking for library containing dlopen... " >&6; }
12937 if ${ac_cv_search_dlopen+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 ac_func_search_save_LIBS=$LIBS
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12944 /* Override any GCC internal prototype to avoid an error.
12945 Use char because int might match the return type of a GCC
12946 builtin and then its argument prototype would still apply. */
12947 #ifdef __cplusplus
12948 extern "C"
12949 #endif
12950 char dlopen ();
12952 main ()
12954 return dlopen ();
12956 return 0;
12958 _ACEOF
12959 for ac_lib in '' dl; do
12960 if test -z "$ac_lib"; then
12961 ac_res="none required"
12962 else
12963 ac_res=-l$ac_lib
12964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12966 if ac_fn_c_try_link "$LINENO"; then :
12967 ac_cv_search_dlopen=$ac_res
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext
12971 if ${ac_cv_search_dlopen+:} false; then :
12972 break
12974 done
12975 if ${ac_cv_search_dlopen+:} false; then :
12977 else
12978 ac_cv_search_dlopen=no
12980 rm conftest.$ac_ext
12981 LIBS=$ac_func_search_save_LIBS
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12984 $as_echo "$ac_cv_search_dlopen" >&6; }
12985 ac_res=$ac_cv_search_dlopen
12986 if test "$ac_res" != no; then :
12987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12991 else
12992 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
12995 ##########
12996 # Do we want to support memsys3 and/or memsys5
12998 # Check whether --enable-memsys5 was given.
12999 if test "${enable_memsys5+set}" = set; then :
13000 enableval=$enable_memsys5;
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
13004 $as_echo_n "checking whether to support MEMSYS5... " >&6; }
13005 if test "${enable_memsys5}" = "yes"; then
13006 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008 $as_echo "yes" >&6; }
13009 else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13013 # Check whether --enable-memsys3 was given.
13014 if test "${enable_memsys3+set}" = set; then :
13015 enableval=$enable_memsys3;
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
13019 $as_echo_n "checking whether to support MEMSYS3... " >&6; }
13020 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
13021 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13023 $as_echo "yes" >&6; }
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13029 #########
13030 # See whether we should enable Full Text Search extensions
13031 # Check whether --enable-fts3 was given.
13032 if test "${enable_fts3+set}" = set; then :
13033 enableval=$enable_fts3;
13036 if test "${enable_fts3}" = "yes" ; then
13037 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
13039 # Check whether --enable-fts4 was given.
13040 if test "${enable_fts4+set}" = set; then :
13041 enableval=$enable_fts4;
13044 if test "${enable_fts4}" = "yes" ; then
13045 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13047 $as_echo_n "checking for library containing log... " >&6; }
13048 if ${ac_cv_search_log+:} false; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 ac_func_search_save_LIBS=$LIBS
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13055 /* Override any GCC internal prototype to avoid an error.
13056 Use char because int might match the return type of a GCC
13057 builtin and then its argument prototype would still apply. */
13058 #ifdef __cplusplus
13059 extern "C"
13060 #endif
13061 char log ();
13063 main ()
13065 return log ();
13067 return 0;
13069 _ACEOF
13070 for ac_lib in '' m; do
13071 if test -z "$ac_lib"; then
13072 ac_res="none required"
13073 else
13074 ac_res=-l$ac_lib
13075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13077 if ac_fn_c_try_link "$LINENO"; then :
13078 ac_cv_search_log=$ac_res
13080 rm -f core conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext
13082 if ${ac_cv_search_log+:} false; then :
13083 break
13085 done
13086 if ${ac_cv_search_log+:} false; then :
13088 else
13089 ac_cv_search_log=no
13091 rm conftest.$ac_ext
13092 LIBS=$ac_func_search_save_LIBS
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13095 $as_echo "$ac_cv_search_log" >&6; }
13096 ac_res=$ac_cv_search_log
13097 if test "$ac_res" != no; then :
13098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13103 # Check whether --enable-fts5 was given.
13104 if test "${enable_fts5+set}" = set; then :
13105 enableval=$enable_fts5;
13108 if test "${enable_fts5}" = "yes" ; then
13109 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13111 $as_echo_n "checking for library containing log... " >&6; }
13112 if ${ac_cv_search_log+:} false; then :
13113 $as_echo_n "(cached) " >&6
13114 else
13115 ac_func_search_save_LIBS=$LIBS
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13119 /* Override any GCC internal prototype to avoid an error.
13120 Use char because int might match the return type of a GCC
13121 builtin and then its argument prototype would still apply. */
13122 #ifdef __cplusplus
13123 extern "C"
13124 #endif
13125 char log ();
13127 main ()
13129 return log ();
13131 return 0;
13133 _ACEOF
13134 for ac_lib in '' m; do
13135 if test -z "$ac_lib"; then
13136 ac_res="none required"
13137 else
13138 ac_res=-l$ac_lib
13139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13141 if ac_fn_c_try_link "$LINENO"; then :
13142 ac_cv_search_log=$ac_res
13144 rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext
13146 if ${ac_cv_search_log+:} false; then :
13147 break
13149 done
13150 if ${ac_cv_search_log+:} false; then :
13152 else
13153 ac_cv_search_log=no
13155 rm conftest.$ac_ext
13156 LIBS=$ac_func_search_save_LIBS
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13159 $as_echo "$ac_cv_search_log" >&6; }
13160 ac_res=$ac_cv_search_log
13161 if test "$ac_res" != no; then :
13162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13168 #########
13169 # See whether we should enable JSON1
13170 # Check whether --enable-json1 was given.
13171 if test "${enable_json1+set}" = set; then :
13172 enableval=$enable_json1;
13175 if test "${enable_json1}" = "yes" ; then
13176 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
13179 #########
13180 # See whether we should enable the LIMIT clause on UPDATE and DELETE
13181 # statements.
13182 # Check whether --enable-update-limit was given.
13183 if test "${enable_update_limit+set}" = set; then :
13184 enableval=$enable_update_limit;
13187 if test "${enable_udlimit}" = "yes" ; then
13188 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
13191 #########
13192 # See whether we should enable GEOPOLY
13193 # Check whether --enable-geopoly was given.
13194 if test "${enable_geopoly+set}" = set; then :
13195 enableval=$enable_geopoly; enable_geopoly=yes
13196 else
13197 enable_geopoly=no
13200 if test "${enable_geopoly}" = "yes" ; then
13201 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
13202 enable_rtree=yes
13205 #########
13206 # See whether we should enable RTREE
13207 # Check whether --enable-rtree was given.
13208 if test "${enable_rtree+set}" = set; then :
13209 enableval=$enable_rtree;
13212 if test "${enable_rtree}" = "yes" ; then
13213 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
13216 #########
13217 # See whether we should enable the SESSION extension
13218 # Check whether --enable-session was given.
13219 if test "${enable_session+set}" = set; then :
13220 enableval=$enable_session;
13223 if test "${enable_session}" = "yes" ; then
13224 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
13225 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
13228 #########
13229 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
13230 for option in $CFLAGS $CPPFLAGS
13232 case $option in
13233 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13234 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13235 esac
13236 done
13240 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13241 ac_temp_CFLAGS=""
13242 for option in $CFLAGS
13244 case $option in
13245 -DSQLITE_OMIT*) ;;
13246 -DSQLITE_ENABLE*) ;;
13247 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
13248 esac
13249 done
13250 CFLAGS=$ac_temp_CFLAGS
13253 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13254 ac_temp_CPPFLAGS=""
13255 for option in $CPPFLAGS
13257 case $option in
13258 -DSQLITE_OMIT*) ;;
13259 -DSQLITE_ENABLE*) ;;
13260 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
13261 esac
13262 done
13263 CPPFLAGS=$ac_temp_CPPFLAGS
13266 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13267 ac_temp_BUILD_CFLAGS=""
13268 for option in $BUILD_CFLAGS
13270 case $option in
13271 -DSQLITE_OMIT*) ;;
13272 -DSQLITE_ENABLE*) ;;
13273 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
13274 esac
13275 done
13276 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13279 #########
13280 # See whether we should use GCOV
13281 # Check whether --enable-gcov was given.
13282 if test "${enable_gcov+set}" = set; then :
13283 enableval=$enable_gcov;
13286 if test "${use_gcov}" = "yes" ; then
13287 USE_GCOV=1
13288 else
13289 USE_GCOV=0
13294 #########
13295 # Output the config header
13296 ac_config_headers="$ac_config_headers config.h"
13299 #########
13300 # Generate the output files.
13303 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
13305 cat >confcache <<\_ACEOF
13306 # This file is a shell script that caches the results of configure
13307 # tests run on this system so they can be shared between configure
13308 # scripts and configure runs, see configure's option --config-cache.
13309 # It is not useful on other systems. If it contains results you don't
13310 # want to keep, you may remove or edit it.
13312 # config.status only pays attention to the cache file if you give it
13313 # the --recheck option to rerun configure.
13315 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13317 # following values.
13319 _ACEOF
13321 # The following way of writing the cache mishandles newlines in values,
13322 # but we know of no workaround that is simple, portable, and efficient.
13323 # So, we kill variables containing newlines.
13324 # Ultrix sh set writes to stderr and can't be redirected directly,
13325 # and sets the high bit in the cache file unless we assign to the vars.
13327 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13328 eval ac_val=\$$ac_var
13329 case $ac_val in #(
13330 *${as_nl}*)
13331 case $ac_var in #(
13332 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13333 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13334 esac
13335 case $ac_var in #(
13336 _ | IFS | as_nl) ;; #(
13337 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13338 *) { eval $ac_var=; unset $ac_var;} ;;
13339 esac ;;
13340 esac
13341 done
13343 (set) 2>&1 |
13344 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13345 *${as_nl}ac_space=\ *)
13346 # `set' does not quote correctly, so add quotes: double-quote
13347 # substitution turns \\\\ into \\, and sed turns \\ into \.
13348 sed -n \
13349 "s/'/'\\\\''/g;
13350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13351 ;; #(
13353 # `set' quotes correctly as required by POSIX, so do not add quotes.
13354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13356 esac |
13357 sort
13359 sed '
13360 /^ac_cv_env_/b end
13361 t clear
13362 :clear
13363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13364 t end
13365 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13366 :end' >>confcache
13367 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13368 if test -w "$cache_file"; then
13369 if test "x$cache_file" != "x/dev/null"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13371 $as_echo "$as_me: updating cache $cache_file" >&6;}
13372 if test ! -f "$cache_file" || test -h "$cache_file"; then
13373 cat confcache >"$cache_file"
13374 else
13375 case $cache_file in #(
13376 */* | ?:*)
13377 mv -f confcache "$cache_file"$$ &&
13378 mv -f "$cache_file"$$ "$cache_file" ;; #(
13380 mv -f confcache "$cache_file" ;;
13381 esac
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13386 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13389 rm -f confcache
13391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13392 # Let make expand exec_prefix.
13393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13395 DEFS=-DHAVE_CONFIG_H
13397 ac_libobjs=
13398 ac_ltlibobjs=
13400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13401 # 1. Remove the extension, and $U if already installed.
13402 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13403 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13404 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13405 # will be set to the directory where LIBOBJS objects are built.
13406 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13407 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13408 done
13409 LIBOBJS=$ac_libobjs
13411 LTLIBOBJS=$ac_ltlibobjs
13415 : "${CONFIG_STATUS=./config.status}"
13416 ac_write_fail=0
13417 ac_clean_files_save=$ac_clean_files
13418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13420 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13421 as_write_fail=0
13422 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13423 #! $SHELL
13424 # Generated by $as_me.
13425 # Run this file to recreate the current configuration.
13426 # Compiler output produced by configure, useful for debugging
13427 # configure, is in config.log if it exists.
13429 debug=false
13430 ac_cs_recheck=false
13431 ac_cs_silent=false
13433 SHELL=\${CONFIG_SHELL-$SHELL}
13434 export SHELL
13435 _ASEOF
13436 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13437 ## -------------------- ##
13438 ## M4sh Initialization. ##
13439 ## -------------------- ##
13441 # Be more Bourne compatible
13442 DUALCASE=1; export DUALCASE # for MKS sh
13443 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13444 emulate sh
13445 NULLCMD=:
13446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13447 # is contrary to our usage. Disable this feature.
13448 alias -g '${1+"$@"}'='"$@"'
13449 setopt NO_GLOB_SUBST
13450 else
13451 case `(set -o) 2>/dev/null` in #(
13452 *posix*) :
13453 set -o posix ;; #(
13454 *) :
13456 esac
13460 as_nl='
13462 export as_nl
13463 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13464 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13465 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13466 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13467 # Prefer a ksh shell builtin over an external printf program on Solaris,
13468 # but without wasting forks for bash or zsh.
13469 if test -z "$BASH_VERSION$ZSH_VERSION" \
13470 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13471 as_echo='print -r --'
13472 as_echo_n='print -rn --'
13473 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13474 as_echo='printf %s\n'
13475 as_echo_n='printf %s'
13476 else
13477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13479 as_echo_n='/usr/ucb/echo -n'
13480 else
13481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13482 as_echo_n_body='eval
13483 arg=$1;
13484 case $arg in #(
13485 *"$as_nl"*)
13486 expr "X$arg" : "X\\(.*\\)$as_nl";
13487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13488 esac;
13489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13491 export as_echo_n_body
13492 as_echo_n='sh -c $as_echo_n_body as_echo'
13494 export as_echo_body
13495 as_echo='sh -c $as_echo_body as_echo'
13498 # The user is always right.
13499 if test "${PATH_SEPARATOR+set}" != set; then
13500 PATH_SEPARATOR=:
13501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13503 PATH_SEPARATOR=';'
13508 # IFS
13509 # We need space, tab and new line, in precisely that order. Quoting is
13510 # there to prevent editors from complaining about space-tab.
13511 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13512 # splitting by setting IFS to empty value.)
13513 IFS=" "" $as_nl"
13515 # Find who we are. Look in the path if we contain no directory separator.
13516 as_myself=
13517 case $0 in #((
13518 *[\\/]* ) as_myself=$0 ;;
13519 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13520 for as_dir in $PATH
13522 IFS=$as_save_IFS
13523 test -z "$as_dir" && as_dir=.
13524 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13525 done
13526 IFS=$as_save_IFS
13529 esac
13530 # We did not find ourselves, most probably we were run as `sh COMMAND'
13531 # in which case we are not to be found in the path.
13532 if test "x$as_myself" = x; then
13533 as_myself=$0
13535 if test ! -f "$as_myself"; then
13536 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13537 exit 1
13540 # Unset variables that we do not need and which cause bugs (e.g. in
13541 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13542 # suppresses any "Segmentation fault" message there. '((' could
13543 # trigger a bug in pdksh 5.2.14.
13544 for as_var in BASH_ENV ENV MAIL MAILPATH
13545 do eval test x\${$as_var+set} = xset \
13546 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13547 done
13548 PS1='$ '
13549 PS2='> '
13550 PS4='+ '
13552 # NLS nuisances.
13553 LC_ALL=C
13554 export LC_ALL
13555 LANGUAGE=C
13556 export LANGUAGE
13558 # CDPATH.
13559 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13562 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13563 # ----------------------------------------
13564 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13565 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13566 # script with STATUS, using 1 if that was 0.
13567 as_fn_error ()
13569 as_status=$1; test $as_status -eq 0 && as_status=1
13570 if test "$4"; then
13571 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13572 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13574 $as_echo "$as_me: error: $2" >&2
13575 as_fn_exit $as_status
13576 } # as_fn_error
13579 # as_fn_set_status STATUS
13580 # -----------------------
13581 # Set $? to STATUS, without forking.
13582 as_fn_set_status ()
13584 return $1
13585 } # as_fn_set_status
13587 # as_fn_exit STATUS
13588 # -----------------
13589 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13590 as_fn_exit ()
13592 set +e
13593 as_fn_set_status $1
13594 exit $1
13595 } # as_fn_exit
13597 # as_fn_unset VAR
13598 # ---------------
13599 # Portably unset VAR.
13600 as_fn_unset ()
13602 { eval $1=; unset $1;}
13604 as_unset=as_fn_unset
13605 # as_fn_append VAR VALUE
13606 # ----------------------
13607 # Append the text in VALUE to the end of the definition contained in VAR. Take
13608 # advantage of any shell optimizations that allow amortized linear growth over
13609 # repeated appends, instead of the typical quadratic growth present in naive
13610 # implementations.
13611 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13612 eval 'as_fn_append ()
13614 eval $1+=\$2
13616 else
13617 as_fn_append ()
13619 eval $1=\$$1\$2
13621 fi # as_fn_append
13623 # as_fn_arith ARG...
13624 # ------------------
13625 # Perform arithmetic evaluation on the ARGs, and store the result in the
13626 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13627 # must be portable across $(()) and expr.
13628 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13629 eval 'as_fn_arith ()
13631 as_val=$(( $* ))
13633 else
13634 as_fn_arith ()
13636 as_val=`expr "$@" || test $? -eq 1`
13638 fi # as_fn_arith
13641 if expr a : '\(a\)' >/dev/null 2>&1 &&
13642 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13643 as_expr=expr
13644 else
13645 as_expr=false
13648 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13649 as_basename=basename
13650 else
13651 as_basename=false
13654 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13655 as_dirname=dirname
13656 else
13657 as_dirname=false
13660 as_me=`$as_basename -- "$0" ||
13661 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13662 X"$0" : 'X\(//\)$' \| \
13663 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13664 $as_echo X/"$0" |
13665 sed '/^.*\/\([^/][^/]*\)\/*$/{
13666 s//\1/
13669 /^X\/\(\/\/\)$/{
13670 s//\1/
13673 /^X\/\(\/\).*/{
13674 s//\1/
13677 s/.*/./; q'`
13679 # Avoid depending upon Character Ranges.
13680 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13681 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13682 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13683 as_cr_digits='0123456789'
13684 as_cr_alnum=$as_cr_Letters$as_cr_digits
13686 ECHO_C= ECHO_N= ECHO_T=
13687 case `echo -n x` in #(((((
13688 -n*)
13689 case `echo 'xy\c'` in
13690 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13691 xy) ECHO_C='\c';;
13692 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13693 ECHO_T=' ';;
13694 esac;;
13696 ECHO_N='-n';;
13697 esac
13699 rm -f conf$$ conf$$.exe conf$$.file
13700 if test -d conf$$.dir; then
13701 rm -f conf$$.dir/conf$$.file
13702 else
13703 rm -f conf$$.dir
13704 mkdir conf$$.dir 2>/dev/null
13706 if (echo >conf$$.file) 2>/dev/null; then
13707 if ln -s conf$$.file conf$$ 2>/dev/null; then
13708 as_ln_s='ln -s'
13709 # ... but there are two gotchas:
13710 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13711 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13712 # In both cases, we have to default to `cp -pR'.
13713 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13714 as_ln_s='cp -pR'
13715 elif ln conf$$.file conf$$ 2>/dev/null; then
13716 as_ln_s=ln
13717 else
13718 as_ln_s='cp -pR'
13720 else
13721 as_ln_s='cp -pR'
13723 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13724 rmdir conf$$.dir 2>/dev/null
13727 # as_fn_mkdir_p
13728 # -------------
13729 # Create "$as_dir" as a directory, including parents if necessary.
13730 as_fn_mkdir_p ()
13733 case $as_dir in #(
13734 -*) as_dir=./$as_dir;;
13735 esac
13736 test -d "$as_dir" || eval $as_mkdir_p || {
13737 as_dirs=
13738 while :; do
13739 case $as_dir in #(
13740 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13741 *) as_qdir=$as_dir;;
13742 esac
13743 as_dirs="'$as_qdir' $as_dirs"
13744 as_dir=`$as_dirname -- "$as_dir" ||
13745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13746 X"$as_dir" : 'X\(//\)[^/]' \| \
13747 X"$as_dir" : 'X\(//\)$' \| \
13748 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13749 $as_echo X"$as_dir" |
13750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13751 s//\1/
13754 /^X\(\/\/\)[^/].*/{
13755 s//\1/
13758 /^X\(\/\/\)$/{
13759 s//\1/
13762 /^X\(\/\).*/{
13763 s//\1/
13766 s/.*/./; q'`
13767 test -d "$as_dir" && break
13768 done
13769 test -z "$as_dirs" || eval "mkdir $as_dirs"
13770 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13773 } # as_fn_mkdir_p
13774 if mkdir -p . 2>/dev/null; then
13775 as_mkdir_p='mkdir -p "$as_dir"'
13776 else
13777 test -d ./-p && rmdir ./-p
13778 as_mkdir_p=false
13782 # as_fn_executable_p FILE
13783 # -----------------------
13784 # Test if FILE is an executable regular file.
13785 as_fn_executable_p ()
13787 test -f "$1" && test -x "$1"
13788 } # as_fn_executable_p
13789 as_test_x='test -x'
13790 as_executable_p=as_fn_executable_p
13792 # Sed expression to map a string onto a valid CPP name.
13793 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13795 # Sed expression to map a string onto a valid variable name.
13796 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13799 exec 6>&1
13800 ## ----------------------------------- ##
13801 ## Main body of $CONFIG_STATUS script. ##
13802 ## ----------------------------------- ##
13803 _ASEOF
13804 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13807 # Save the log message, to keep $0 and so on meaningful, and to
13808 # report actual input values of CONFIG_FILES etc. instead of their
13809 # values after options handling.
13810 ac_log="
13811 This file was extended by sqlcipher $as_me 3.29.0, which was
13812 generated by GNU Autoconf 2.69. Invocation command line was
13814 CONFIG_FILES = $CONFIG_FILES
13815 CONFIG_HEADERS = $CONFIG_HEADERS
13816 CONFIG_LINKS = $CONFIG_LINKS
13817 CONFIG_COMMANDS = $CONFIG_COMMANDS
13818 $ $0 $@
13820 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13823 _ACEOF
13825 case $ac_config_files in *"
13826 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13827 esac
13829 case $ac_config_headers in *"
13830 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13831 esac
13834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13835 # Files that config.status was made for.
13836 config_files="$ac_config_files"
13837 config_headers="$ac_config_headers"
13838 config_commands="$ac_config_commands"
13840 _ACEOF
13842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13843 ac_cs_usage="\
13844 \`$as_me' instantiates files and other configuration actions
13845 from templates according to the current configuration. Unless the files
13846 and actions are specified as TAGs, all are instantiated by default.
13848 Usage: $0 [OPTION]... [TAG]...
13850 -h, --help print this help, then exit
13851 -V, --version print version number and configuration settings, then exit
13852 --config print configuration, then exit
13853 -q, --quiet, --silent
13854 do not print progress messages
13855 -d, --debug don't remove temporary files
13856 --recheck update $as_me by reconfiguring in the same conditions
13857 --file=FILE[:TEMPLATE]
13858 instantiate the configuration file FILE
13859 --header=FILE[:TEMPLATE]
13860 instantiate the configuration header FILE
13862 Configuration files:
13863 $config_files
13865 Configuration headers:
13866 $config_headers
13868 Configuration commands:
13869 $config_commands
13871 Report bugs to the package provider."
13873 _ACEOF
13874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13875 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13876 ac_cs_version="\\
13877 sqlcipher config.status 3.29.0
13878 configured by $0, generated by GNU Autoconf 2.69,
13879 with options \\"\$ac_cs_config\\"
13881 Copyright (C) 2012 Free Software Foundation, Inc.
13882 This config.status script is free software; the Free Software Foundation
13883 gives unlimited permission to copy, distribute and modify it."
13885 ac_pwd='$ac_pwd'
13886 srcdir='$srcdir'
13887 INSTALL='$INSTALL'
13888 AWK='$AWK'
13889 test -n "\$AWK" || AWK=awk
13890 _ACEOF
13892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13893 # The default lists apply if the user does not specify any file.
13894 ac_need_defaults=:
13895 while test $# != 0
13897 case $1 in
13898 --*=?*)
13899 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13900 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13901 ac_shift=:
13903 --*=)
13904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13905 ac_optarg=
13906 ac_shift=:
13909 ac_option=$1
13910 ac_optarg=$2
13911 ac_shift=shift
13913 esac
13915 case $ac_option in
13916 # Handling of the options.
13917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13918 ac_cs_recheck=: ;;
13919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13920 $as_echo "$ac_cs_version"; exit ;;
13921 --config | --confi | --conf | --con | --co | --c )
13922 $as_echo "$ac_cs_config"; exit ;;
13923 --debug | --debu | --deb | --de | --d | -d )
13924 debug=: ;;
13925 --file | --fil | --fi | --f )
13926 $ac_shift
13927 case $ac_optarg in
13928 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13929 '') as_fn_error $? "missing file argument" ;;
13930 esac
13931 as_fn_append CONFIG_FILES " '$ac_optarg'"
13932 ac_need_defaults=false;;
13933 --header | --heade | --head | --hea )
13934 $ac_shift
13935 case $ac_optarg in
13936 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13937 esac
13938 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13939 ac_need_defaults=false;;
13940 --he | --h)
13941 # Conflict between --help and --header
13942 as_fn_error $? "ambiguous option: \`$1'
13943 Try \`$0 --help' for more information.";;
13944 --help | --hel | -h )
13945 $as_echo "$ac_cs_usage"; exit ;;
13946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13947 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13948 ac_cs_silent=: ;;
13950 # This is an error.
13951 -*) as_fn_error $? "unrecognized option: \`$1'
13952 Try \`$0 --help' for more information." ;;
13954 *) as_fn_append ac_config_targets " $1"
13955 ac_need_defaults=false ;;
13957 esac
13958 shift
13959 done
13961 ac_configure_extra_args=
13963 if $ac_cs_silent; then
13964 exec 6>/dev/null
13965 ac_configure_extra_args="$ac_configure_extra_args --silent"
13968 _ACEOF
13969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13970 if \$ac_cs_recheck; then
13971 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13972 shift
13973 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13974 CONFIG_SHELL='$SHELL'
13975 export CONFIG_SHELL
13976 exec "\$@"
13979 _ACEOF
13980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13981 exec 5>>config.log
13983 echo
13984 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13985 ## Running $as_me. ##
13986 _ASBOX
13987 $as_echo "$ac_log"
13988 } >&5
13990 _ACEOF
13991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13993 # INIT-COMMANDS
13997 # The HP-UX ksh and POSIX shell print the target directory to stdout
13998 # if CDPATH is set.
13999 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14001 sed_quote_subst='$sed_quote_subst'
14002 double_quote_subst='$double_quote_subst'
14003 delay_variable_subst='$delay_variable_subst'
14004 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14005 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14006 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14007 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14008 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14009 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14010 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14011 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14012 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14013 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14014 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14015 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14016 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14017 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14018 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14019 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14020 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14021 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14022 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14023 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14024 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14025 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14026 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14027 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14028 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14029 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14030 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14031 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14032 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14033 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14034 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14035 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14036 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14037 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14038 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14039 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14040 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14041 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14042 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14043 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14044 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14045 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14046 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14047 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14048 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14049 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14050 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14051 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14052 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14053 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14054 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14055 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14056 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14057 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14058 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14059 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14060 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14061 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14062 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"`'
14063 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14064 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14065 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14066 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14067 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14068 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14069 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14070 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14071 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14072 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14073 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14074 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14075 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14076 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14077 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14078 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14079 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14080 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14081 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14082 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14083 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14084 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14085 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14086 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14087 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14088 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14089 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14090 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14091 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14092 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14093 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14094 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14095 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14096 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14097 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14098 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14099 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14100 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14101 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14102 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14103 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14104 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14105 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14106 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14107 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14108 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14109 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14110 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14111 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14112 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14113 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14114 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14115 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14116 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14117 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14118 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14119 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14120 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14121 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14122 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14123 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14124 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14125 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14126 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14127 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14128 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14129 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14130 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14131 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14132 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14133 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14134 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14135 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14136 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14137 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14138 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14140 LTCC='$LTCC'
14141 LTCFLAGS='$LTCFLAGS'
14142 compiler='$compiler_DEFAULT'
14144 # A function that is used when there is no print builtin or printf.
14145 func_fallback_echo ()
14147 eval 'cat <<_LTECHO_EOF
14149 _LTECHO_EOF'
14152 # Quote evaled strings.
14153 for var in SHELL \
14154 ECHO \
14155 PATH_SEPARATOR \
14156 SED \
14157 GREP \
14158 EGREP \
14159 FGREP \
14160 LD \
14161 NM \
14162 LN_S \
14163 lt_SP2NL \
14164 lt_NL2SP \
14165 reload_flag \
14166 OBJDUMP \
14167 deplibs_check_method \
14168 file_magic_cmd \
14169 file_magic_glob \
14170 want_nocaseglob \
14171 DLLTOOL \
14172 sharedlib_from_linklib_cmd \
14173 AR \
14174 AR_FLAGS \
14175 archiver_list_spec \
14176 STRIP \
14177 RANLIB \
14178 CC \
14179 CFLAGS \
14180 compiler \
14181 lt_cv_sys_global_symbol_pipe \
14182 lt_cv_sys_global_symbol_to_cdecl \
14183 lt_cv_sys_global_symbol_to_import \
14184 lt_cv_sys_global_symbol_to_c_name_address \
14185 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14186 lt_cv_nm_interface \
14187 nm_file_list_spec \
14188 lt_cv_truncate_bin \
14189 lt_prog_compiler_no_builtin_flag \
14190 lt_prog_compiler_pic \
14191 lt_prog_compiler_wl \
14192 lt_prog_compiler_static \
14193 lt_cv_prog_compiler_c_o \
14194 need_locks \
14195 MANIFEST_TOOL \
14196 DSYMUTIL \
14197 NMEDIT \
14198 LIPO \
14199 OTOOL \
14200 OTOOL64 \
14201 shrext_cmds \
14202 export_dynamic_flag_spec \
14203 whole_archive_flag_spec \
14204 compiler_needs_object \
14205 with_gnu_ld \
14206 allow_undefined_flag \
14207 no_undefined_flag \
14208 hardcode_libdir_flag_spec \
14209 hardcode_libdir_separator \
14210 exclude_expsyms \
14211 include_expsyms \
14212 file_list_spec \
14213 variables_saved_for_relink \
14214 libname_spec \
14215 library_names_spec \
14216 soname_spec \
14217 install_override_mode \
14218 finish_eval \
14219 old_striplib \
14220 striplib; do
14221 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14222 *[\\\\\\\`\\"\\\$]*)
14223 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14226 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14228 esac
14229 done
14231 # Double-quote double-evaled strings.
14232 for var in reload_cmds \
14233 old_postinstall_cmds \
14234 old_postuninstall_cmds \
14235 old_archive_cmds \
14236 extract_expsyms_cmds \
14237 old_archive_from_new_cmds \
14238 old_archive_from_expsyms_cmds \
14239 archive_cmds \
14240 archive_expsym_cmds \
14241 module_cmds \
14242 module_expsym_cmds \
14243 export_symbols_cmds \
14244 prelink_cmds \
14245 postlink_cmds \
14246 postinstall_cmds \
14247 postuninstall_cmds \
14248 finish_cmds \
14249 sys_lib_search_path_spec \
14250 configure_time_dlsearch_path \
14251 configure_time_lt_sys_library_path; do
14252 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14253 *[\\\\\\\`\\"\\\$]*)
14254 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14257 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14259 esac
14260 done
14262 ac_aux_dir='$ac_aux_dir'
14264 # See if we are running on zsh, and set the options that allow our
14265 # commands through without removal of \ escapes INIT.
14266 if test -n "\${ZSH_VERSION+set}"; then
14267 setopt NO_GLOB_SUBST
14271 PACKAGE='$PACKAGE'
14272 VERSION='$VERSION'
14273 RM='$RM'
14274 ofile='$ofile'
14279 _ACEOF
14281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14283 # Handling of arguments.
14284 for ac_config_target in $ac_config_targets
14286 case $ac_config_target in
14287 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14288 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14289 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14290 "sqlcipher.pc") CONFIG_FILES="$CONFIG_FILES sqlcipher.pc" ;;
14292 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14293 esac
14294 done
14297 # If the user did not use the arguments to specify the items to instantiate,
14298 # then the envvar interface is used. Set only those that are not.
14299 # We use the long form for the default assignment because of an extremely
14300 # bizarre bug on SunOS 4.1.3.
14301 if $ac_need_defaults; then
14302 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14303 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14307 # Have a temporary directory for convenience. Make it in the build tree
14308 # simply because there is no reason against having it here, and in addition,
14309 # creating and moving files from /tmp can sometimes cause problems.
14310 # Hook for its removal unless debugging.
14311 # Note that there is a small window in which the directory will not be cleaned:
14312 # after its creation but before its name has been assigned to `$tmp'.
14313 $debug ||
14315 tmp= ac_tmp=
14316 trap 'exit_status=$?
14317 : "${ac_tmp:=$tmp}"
14318 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14320 trap 'as_fn_exit 1' 1 2 13 15
14322 # Create a (secure) tmp directory for tmp files.
14325 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14326 test -d "$tmp"
14327 } ||
14329 tmp=./conf$$-$RANDOM
14330 (umask 077 && mkdir "$tmp")
14331 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14332 ac_tmp=$tmp
14334 # Set up the scripts for CONFIG_FILES section.
14335 # No need to generate them if there are no CONFIG_FILES.
14336 # This happens for instance with `./config.status config.h'.
14337 if test -n "$CONFIG_FILES"; then
14340 ac_cr=`echo X | tr X '\015'`
14341 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14342 # But we know of no other shell where ac_cr would be empty at this
14343 # point, so we can use a bashism as a fallback.
14344 if test "x$ac_cr" = x; then
14345 eval ac_cr=\$\'\\r\'
14347 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14348 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14349 ac_cs_awk_cr='\\r'
14350 else
14351 ac_cs_awk_cr=$ac_cr
14354 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14355 _ACEOF
14359 echo "cat >conf$$subs.awk <<_ACEOF" &&
14360 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14361 echo "_ACEOF"
14362 } >conf$$subs.sh ||
14363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14365 ac_delim='%!_!# '
14366 for ac_last_try in false false false false false :; do
14367 . ./conf$$subs.sh ||
14368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14371 if test $ac_delim_n = $ac_delim_num; then
14372 break
14373 elif $ac_last_try; then
14374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14375 else
14376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14378 done
14379 rm -f conf$$subs.sh
14381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14382 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14383 _ACEOF
14384 sed -n '
14386 s/^/S["/; s/!.*/"]=/
14389 s/^[^!]*!//
14390 :repl
14391 t repl
14392 s/'"$ac_delim"'$//
14393 t delim
14396 s/\(.\{148\}\)..*/\1/
14397 t more1
14398 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14401 b repl
14402 :more1
14403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14406 s/.\{148\}//
14407 t nl
14408 :delim
14410 s/\(.\{148\}\)..*/\1/
14411 t more2
14412 s/["\\]/\\&/g; s/^/"/; s/$/"/
14415 :more2
14416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14419 s/.\{148\}//
14420 t delim
14421 ' <conf$$subs.awk | sed '
14422 /^[^""]/{
14424 s/\n//
14426 ' >>$CONFIG_STATUS || ac_write_fail=1
14427 rm -f conf$$subs.awk
14428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14429 _ACAWK
14430 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14431 for (key in S) S_is_set[key] = 1
14432 FS = "\a"
14436 line = $ 0
14437 nfields = split(line, field, "@")
14438 substed = 0
14439 len = length(field[1])
14440 for (i = 2; i < nfields; i++) {
14441 key = field[i]
14442 keylen = length(key)
14443 if (S_is_set[key]) {
14444 value = S[key]
14445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14446 len += length(value) + length(field[++i])
14447 substed = 1
14448 } else
14449 len += 1 + keylen
14452 print line
14455 _ACAWK
14456 _ACEOF
14457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14458 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14460 else
14462 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14463 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14464 _ACEOF
14466 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14467 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14468 # trailing colons and then remove the whole line if VPATH becomes empty
14469 # (actually we leave an empty line to preserve line numbers).
14470 if test "x$srcdir" = x.; then
14471 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14473 s///
14474 s/^/:/
14475 s/[ ]*$/:/
14476 s/:\$(srcdir):/:/g
14477 s/:\${srcdir}:/:/g
14478 s/:@srcdir@:/:/g
14479 s/^:*//
14480 s/:*$//
14482 s/\(=[ ]*\).*/\1/
14484 s/\n//
14485 s/^[^=]*=[ ]*$//
14489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14490 fi # test -n "$CONFIG_FILES"
14492 # Set up the scripts for CONFIG_HEADERS section.
14493 # No need to generate them if there are no CONFIG_HEADERS.
14494 # This happens for instance with `./config.status Makefile'.
14495 if test -n "$CONFIG_HEADERS"; then
14496 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14497 BEGIN {
14498 _ACEOF
14500 # Transform confdefs.h into an awk script `defines.awk', embedded as
14501 # here-document in config.status, that substitutes the proper values into
14502 # config.h.in to produce config.h.
14504 # Create a delimiter string that does not exist in confdefs.h, to ease
14505 # handling of long lines.
14506 ac_delim='%!_!# '
14507 for ac_last_try in false false :; do
14508 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14509 if test -z "$ac_tt"; then
14510 break
14511 elif $ac_last_try; then
14512 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14513 else
14514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14516 done
14518 # For the awk script, D is an array of macro values keyed by name,
14519 # likewise P contains macro parameters if any. Preserve backslash
14520 # newline sequences.
14522 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14523 sed -n '
14524 s/.\{148\}/&'"$ac_delim"'/g
14525 t rset
14526 :rset
14527 s/^[ ]*#[ ]*define[ ][ ]*/ /
14528 t def
14530 :def
14531 s/\\$//
14532 t bsnl
14533 s/["\\]/\\&/g
14534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14535 D["\1"]=" \3"/p
14536 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14538 :bsnl
14539 s/["\\]/\\&/g
14540 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14541 D["\1"]=" \3\\\\\\n"\\/p
14542 t cont
14543 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14544 t cont
14546 :cont
14548 s/.\{148\}/&'"$ac_delim"'/g
14549 t clear
14550 :clear
14551 s/\\$//
14552 t bsnlc
14553 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14555 :bsnlc
14556 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14557 b cont
14558 ' <confdefs.h | sed '
14559 s/'"$ac_delim"'/"\\\
14560 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14563 for (key in D) D_is_set[key] = 1
14564 FS = "\a"
14566 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14567 line = \$ 0
14568 split(line, arg, " ")
14569 if (arg[1] == "#") {
14570 defundef = arg[2]
14571 mac1 = arg[3]
14572 } else {
14573 defundef = substr(arg[1], 2)
14574 mac1 = arg[2]
14576 split(mac1, mac2, "(") #)
14577 macro = mac2[1]
14578 prefix = substr(line, 1, index(line, defundef) - 1)
14579 if (D_is_set[macro]) {
14580 # Preserve the white space surrounding the "#".
14581 print prefix "define", macro P[macro] D[macro]
14582 next
14583 } else {
14584 # Replace #undef with comments. This is necessary, for example,
14585 # in the case of _POSIX_SOURCE, which is predefined and required
14586 # on some systems where configure will not decide to define it.
14587 if (defundef == "undef") {
14588 print "/*", prefix defundef, macro, "*/"
14589 next
14593 { print }
14594 _ACAWK
14595 _ACEOF
14596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14597 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14598 fi # test -n "$CONFIG_HEADERS"
14601 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14602 shift
14603 for ac_tag
14605 case $ac_tag in
14606 :[FHLC]) ac_mode=$ac_tag; continue;;
14607 esac
14608 case $ac_mode$ac_tag in
14609 :[FHL]*:*);;
14610 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14611 :[FH]-) ac_tag=-:-;;
14612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14613 esac
14614 ac_save_IFS=$IFS
14615 IFS=:
14616 set x $ac_tag
14617 IFS=$ac_save_IFS
14618 shift
14619 ac_file=$1
14620 shift
14622 case $ac_mode in
14623 :L) ac_source=$1;;
14624 :[FH])
14625 ac_file_inputs=
14626 for ac_f
14628 case $ac_f in
14629 -) ac_f="$ac_tmp/stdin";;
14630 *) # Look for the file first in the build tree, then in the source tree
14631 # (if the path is not absolute). The absolute path cannot be DOS-style,
14632 # because $ac_f cannot contain `:'.
14633 test -f "$ac_f" ||
14634 case $ac_f in
14635 [\\/$]*) false;;
14636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14637 esac ||
14638 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14639 esac
14640 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14641 as_fn_append ac_file_inputs " '$ac_f'"
14642 done
14644 # Let's still pretend it is `configure' which instantiates (i.e., don't
14645 # use $as_me), people would be surprised to read:
14646 # /* config.h. Generated by config.status. */
14647 configure_input='Generated from '`
14648 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14649 `' by configure.'
14650 if test x"$ac_file" != x-; then
14651 configure_input="$ac_file. $configure_input"
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14653 $as_echo "$as_me: creating $ac_file" >&6;}
14655 # Neutralize special characters interpreted by sed in replacement strings.
14656 case $configure_input in #(
14657 *\&* | *\|* | *\\* )
14658 ac_sed_conf_input=`$as_echo "$configure_input" |
14659 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14660 *) ac_sed_conf_input=$configure_input;;
14661 esac
14663 case $ac_tag in
14664 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14666 esac
14668 esac
14670 ac_dir=`$as_dirname -- "$ac_file" ||
14671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14672 X"$ac_file" : 'X\(//\)[^/]' \| \
14673 X"$ac_file" : 'X\(//\)$' \| \
14674 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14675 $as_echo X"$ac_file" |
14676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14677 s//\1/
14680 /^X\(\/\/\)[^/].*/{
14681 s//\1/
14684 /^X\(\/\/\)$/{
14685 s//\1/
14688 /^X\(\/\).*/{
14689 s//\1/
14692 s/.*/./; q'`
14693 as_dir="$ac_dir"; as_fn_mkdir_p
14694 ac_builddir=.
14696 case "$ac_dir" in
14697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14700 # A ".." for each directory in $ac_dir_suffix.
14701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14702 case $ac_top_builddir_sub in
14703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14705 esac ;;
14706 esac
14707 ac_abs_top_builddir=$ac_pwd
14708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14709 # for backward compatibility:
14710 ac_top_builddir=$ac_top_build_prefix
14712 case $srcdir in
14713 .) # We are building in place.
14714 ac_srcdir=.
14715 ac_top_srcdir=$ac_top_builddir_sub
14716 ac_abs_top_srcdir=$ac_pwd ;;
14717 [\\/]* | ?:[\\/]* ) # Absolute name.
14718 ac_srcdir=$srcdir$ac_dir_suffix;
14719 ac_top_srcdir=$srcdir
14720 ac_abs_top_srcdir=$srcdir ;;
14721 *) # Relative name.
14722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14723 ac_top_srcdir=$ac_top_build_prefix$srcdir
14724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14725 esac
14726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14729 case $ac_mode in
14732 # CONFIG_FILE
14735 case $INSTALL in
14736 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14737 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14738 esac
14739 _ACEOF
14741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14742 # If the template does not know about datarootdir, expand it.
14743 # FIXME: This hack should be removed a few years after 2.60.
14744 ac_datarootdir_hack=; ac_datarootdir_seen=
14745 ac_sed_dataroot='
14746 /datarootdir/ {
14750 /@datadir@/p
14751 /@docdir@/p
14752 /@infodir@/p
14753 /@localedir@/p
14754 /@mandir@/p'
14755 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14756 *datarootdir*) ac_datarootdir_seen=yes;;
14757 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14759 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14760 _ACEOF
14761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14762 ac_datarootdir_hack='
14763 s&@datadir@&$datadir&g
14764 s&@docdir@&$docdir&g
14765 s&@infodir@&$infodir&g
14766 s&@localedir@&$localedir&g
14767 s&@mandir@&$mandir&g
14768 s&\\\${datarootdir}&$datarootdir&g' ;;
14769 esac
14770 _ACEOF
14772 # Neutralize VPATH when `$srcdir' = `.'.
14773 # Shell code in configure.ac might set extrasub.
14774 # FIXME: do we really want to maintain this feature?
14775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14776 ac_sed_extra="$ac_vpsub
14777 $extrasub
14778 _ACEOF
14779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14782 s|@configure_input@|$ac_sed_conf_input|;t t
14783 s&@top_builddir@&$ac_top_builddir_sub&;t t
14784 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14785 s&@srcdir@&$ac_srcdir&;t t
14786 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14787 s&@top_srcdir@&$ac_top_srcdir&;t t
14788 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14789 s&@builddir@&$ac_builddir&;t t
14790 s&@abs_builddir@&$ac_abs_builddir&;t t
14791 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14792 s&@INSTALL@&$ac_INSTALL&;t t
14793 $ac_datarootdir_hack
14795 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14796 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14798 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14799 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14800 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14801 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14803 which seems to be undefined. Please make sure it is defined" >&5
14804 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14805 which seems to be undefined. Please make sure it is defined" >&2;}
14807 rm -f "$ac_tmp/stdin"
14808 case $ac_file in
14809 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14810 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14811 esac \
14812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14816 # CONFIG_HEADER
14818 if test x"$ac_file" != x-; then
14820 $as_echo "/* $configure_input */" \
14821 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14822 } >"$ac_tmp/config.h" \
14823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14824 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14826 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14827 else
14828 rm -f "$ac_file"
14829 mv "$ac_tmp/config.h" "$ac_file" \
14830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14832 else
14833 $as_echo "/* $configure_input */" \
14834 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14835 || as_fn_error $? "could not create -" "$LINENO" 5
14839 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14840 $as_echo "$as_me: executing $ac_file commands" >&6;}
14842 esac
14845 case $ac_file$ac_mode in
14846 "libtool":C)
14848 # See if we are running on zsh, and set the options that allow our
14849 # commands through without removal of \ escapes.
14850 if test -n "${ZSH_VERSION+set}"; then
14851 setopt NO_GLOB_SUBST
14854 cfgfile=${ofile}T
14855 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14856 $RM "$cfgfile"
14858 cat <<_LT_EOF >> "$cfgfile"
14859 #! $SHELL
14860 # Generated automatically by $as_me ($PACKAGE) $VERSION
14861 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14862 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14864 # Provide generalized library-building support services.
14865 # Written by Gordon Matzigkeit, 1996
14867 # Copyright (C) 2014 Free Software Foundation, Inc.
14868 # This is free software; see the source for copying conditions. There is NO
14869 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14871 # GNU Libtool is free software; you can redistribute it and/or modify
14872 # it under the terms of the GNU General Public License as published by
14873 # the Free Software Foundation; either version 2 of of the License, or
14874 # (at your option) any later version.
14876 # As a special exception to the GNU General Public License, if you
14877 # distribute this file as part of a program or library that is built
14878 # using GNU Libtool, you may include this file under the same
14879 # distribution terms that you use for the rest of that program.
14881 # GNU Libtool is distributed in the hope that it will be useful, but
14882 # WITHOUT ANY WARRANTY; without even the implied warranty of
14883 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14884 # GNU General Public License for more details.
14886 # You should have received a copy of the GNU General Public License
14887 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14890 # The names of the tagged configurations supported by this script.
14891 available_tags=''
14893 # Configured defaults for sys_lib_dlsearch_path munging.
14894 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14896 # ### BEGIN LIBTOOL CONFIG
14898 # Which release of libtool.m4 was used?
14899 macro_version=$macro_version
14900 macro_revision=$macro_revision
14902 # Whether or not to build shared libraries.
14903 build_libtool_libs=$enable_shared
14905 # Whether or not to build static libraries.
14906 build_old_libs=$enable_static
14908 # What type of objects to build.
14909 pic_mode=$pic_mode
14911 # Whether or not to optimize for fast installation.
14912 fast_install=$enable_fast_install
14914 # Shared archive member basename,for filename based shared library versioning on AIX.
14915 shared_archive_member_spec=$shared_archive_member_spec
14917 # Shell to use when invoking shell scripts.
14918 SHELL=$lt_SHELL
14920 # An echo program that protects backslashes.
14921 ECHO=$lt_ECHO
14923 # The PATH separator for the build system.
14924 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14926 # The host system.
14927 host_alias=$host_alias
14928 host=$host
14929 host_os=$host_os
14931 # The build system.
14932 build_alias=$build_alias
14933 build=$build
14934 build_os=$build_os
14936 # A sed program that does not truncate output.
14937 SED=$lt_SED
14939 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14940 Xsed="\$SED -e 1s/^X//"
14942 # A grep program that handles long lines.
14943 GREP=$lt_GREP
14945 # An ERE matcher.
14946 EGREP=$lt_EGREP
14948 # A literal string matcher.
14949 FGREP=$lt_FGREP
14951 # A BSD- or MS-compatible name lister.
14952 NM=$lt_NM
14954 # Whether we need soft or hard links.
14955 LN_S=$lt_LN_S
14957 # What is the maximum length of a command?
14958 max_cmd_len=$max_cmd_len
14960 # Object file suffix (normally "o").
14961 objext=$ac_objext
14963 # Executable file suffix (normally "").
14964 exeext=$exeext
14966 # whether the shell understands "unset".
14967 lt_unset=$lt_unset
14969 # turn spaces into newlines.
14970 SP2NL=$lt_lt_SP2NL
14972 # turn newlines into spaces.
14973 NL2SP=$lt_lt_NL2SP
14975 # convert \$build file names to \$host format.
14976 to_host_file_cmd=$lt_cv_to_host_file_cmd
14978 # convert \$build files to toolchain format.
14979 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14981 # An object symbol dumper.
14982 OBJDUMP=$lt_OBJDUMP
14984 # Method to check whether dependent libraries are shared objects.
14985 deplibs_check_method=$lt_deplibs_check_method
14987 # Command to use when deplibs_check_method = "file_magic".
14988 file_magic_cmd=$lt_file_magic_cmd
14990 # How to find potential files when deplibs_check_method = "file_magic".
14991 file_magic_glob=$lt_file_magic_glob
14993 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14994 want_nocaseglob=$lt_want_nocaseglob
14996 # DLL creation program.
14997 DLLTOOL=$lt_DLLTOOL
14999 # Command to associate shared and link libraries.
15000 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15002 # The archiver.
15003 AR=$lt_AR
15005 # Flags to create an archive.
15006 AR_FLAGS=$lt_AR_FLAGS
15008 # How to feed a file listing to the archiver.
15009 archiver_list_spec=$lt_archiver_list_spec
15011 # A symbol stripping program.
15012 STRIP=$lt_STRIP
15014 # Commands used to install an old-style archive.
15015 RANLIB=$lt_RANLIB
15016 old_postinstall_cmds=$lt_old_postinstall_cmds
15017 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15019 # Whether to use a lock for old archive extraction.
15020 lock_old_archive_extraction=$lock_old_archive_extraction
15022 # A C compiler.
15023 LTCC=$lt_CC
15025 # LTCC compiler flags.
15026 LTCFLAGS=$lt_CFLAGS
15028 # Take the output of nm and produce a listing of raw symbols and C names.
15029 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15031 # Transform the output of nm in a proper C declaration.
15032 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15034 # Transform the output of nm into a list of symbols to manually relocate.
15035 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15037 # Transform the output of nm in a C name address pair.
15038 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15040 # Transform the output of nm in a C name address pair when lib prefix is needed.
15041 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15043 # The name lister interface.
15044 nm_interface=$lt_lt_cv_nm_interface
15046 # Specify filename containing input files for \$NM.
15047 nm_file_list_spec=$lt_nm_file_list_spec
15049 # The root where to search for dependent libraries,and where our libraries should be installed.
15050 lt_sysroot=$lt_sysroot
15052 # Command to truncate a binary pipe.
15053 lt_truncate_bin=$lt_lt_cv_truncate_bin
15055 # The name of the directory that contains temporary libtool files.
15056 objdir=$objdir
15058 # Used to examine libraries when file_magic_cmd begins with "file".
15059 MAGIC_CMD=$MAGIC_CMD
15061 # Must we lock files when doing compilation?
15062 need_locks=$lt_need_locks
15064 # Manifest tool.
15065 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15067 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15068 DSYMUTIL=$lt_DSYMUTIL
15070 # Tool to change global to local symbols on Mac OS X.
15071 NMEDIT=$lt_NMEDIT
15073 # Tool to manipulate fat objects and archives on Mac OS X.
15074 LIPO=$lt_LIPO
15076 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15077 OTOOL=$lt_OTOOL
15079 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15080 OTOOL64=$lt_OTOOL64
15082 # Old archive suffix (normally "a").
15083 libext=$libext
15085 # Shared library suffix (normally ".so").
15086 shrext_cmds=$lt_shrext_cmds
15088 # The commands to extract the exported symbol list from a shared archive.
15089 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15091 # Variables whose values should be saved in libtool wrapper scripts and
15092 # restored at link time.
15093 variables_saved_for_relink=$lt_variables_saved_for_relink
15095 # Do we need the "lib" prefix for modules?
15096 need_lib_prefix=$need_lib_prefix
15098 # Do we need a version for libraries?
15099 need_version=$need_version
15101 # Library versioning type.
15102 version_type=$version_type
15104 # Shared library runtime path variable.
15105 runpath_var=$runpath_var
15107 # Shared library path variable.
15108 shlibpath_var=$shlibpath_var
15110 # Is shlibpath searched before the hard-coded library search path?
15111 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15113 # Format of library name prefix.
15114 libname_spec=$lt_libname_spec
15116 # List of archive names. First name is the real one, the rest are links.
15117 # The last name is the one that the linker finds with -lNAME
15118 library_names_spec=$lt_library_names_spec
15120 # The coded name of the library, if different from the real name.
15121 soname_spec=$lt_soname_spec
15123 # Permission mode override for installation of shared libraries.
15124 install_override_mode=$lt_install_override_mode
15126 # Command to use after installation of a shared archive.
15127 postinstall_cmds=$lt_postinstall_cmds
15129 # Command to use after uninstallation of a shared archive.
15130 postuninstall_cmds=$lt_postuninstall_cmds
15132 # Commands used to finish a libtool library installation in a directory.
15133 finish_cmds=$lt_finish_cmds
15135 # As "finish_cmds", except a single script fragment to be evaled but
15136 # not shown.
15137 finish_eval=$lt_finish_eval
15139 # Whether we should hardcode library paths into libraries.
15140 hardcode_into_libs=$hardcode_into_libs
15142 # Compile-time system search path for libraries.
15143 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15145 # Detected run-time system search path for libraries.
15146 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15148 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15149 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15151 # Whether dlopen is supported.
15152 dlopen_support=$enable_dlopen
15154 # Whether dlopen of programs is supported.
15155 dlopen_self=$enable_dlopen_self
15157 # Whether dlopen of statically linked programs is supported.
15158 dlopen_self_static=$enable_dlopen_self_static
15160 # Commands to strip libraries.
15161 old_striplib=$lt_old_striplib
15162 striplib=$lt_striplib
15165 # The linker used to build libraries.
15166 LD=$lt_LD
15168 # How to create reloadable object files.
15169 reload_flag=$lt_reload_flag
15170 reload_cmds=$lt_reload_cmds
15172 # Commands used to build an old-style archive.
15173 old_archive_cmds=$lt_old_archive_cmds
15175 # A language specific compiler.
15176 CC=$lt_compiler
15178 # Is the compiler the GNU compiler?
15179 with_gcc=$GCC
15181 # Compiler flag to turn off builtin functions.
15182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15184 # Additional compiler flags for building library objects.
15185 pic_flag=$lt_lt_prog_compiler_pic
15187 # How to pass a linker flag through the compiler.
15188 wl=$lt_lt_prog_compiler_wl
15190 # Compiler flag to prevent dynamic linking.
15191 link_static_flag=$lt_lt_prog_compiler_static
15193 # Does compiler simultaneously support -c and -o options?
15194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15196 # Whether or not to add -lc for building shared libraries.
15197 build_libtool_need_lc=$archive_cmds_need_lc
15199 # Whether or not to disallow shared libs when runtime libs are static.
15200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15202 # Compiler flag to allow reflexive dlopens.
15203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15205 # Compiler flag to generate shared objects directly from archives.
15206 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15208 # Whether the compiler copes with passing no objects directly.
15209 compiler_needs_object=$lt_compiler_needs_object
15211 # Create an old-style archive from a shared archive.
15212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15214 # Create a temporary old-style archive to link instead of a shared archive.
15215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15217 # Commands used to build a shared archive.
15218 archive_cmds=$lt_archive_cmds
15219 archive_expsym_cmds=$lt_archive_expsym_cmds
15221 # Commands used to build a loadable module if different from building
15222 # a shared archive.
15223 module_cmds=$lt_module_cmds
15224 module_expsym_cmds=$lt_module_expsym_cmds
15226 # Whether we are building with GNU ld or not.
15227 with_gnu_ld=$lt_with_gnu_ld
15229 # Flag that allows shared libraries with undefined symbols to be built.
15230 allow_undefined_flag=$lt_allow_undefined_flag
15232 # Flag that enforces no undefined symbols.
15233 no_undefined_flag=$lt_no_undefined_flag
15235 # Flag to hardcode \$libdir into a binary during linking.
15236 # This must work even if \$libdir does not exist
15237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15239 # Whether we need a single "-rpath" flag with a separated argument.
15240 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15242 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15243 # DIR into the resulting binary.
15244 hardcode_direct=$hardcode_direct
15246 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15247 # DIR into the resulting binary and the resulting library dependency is
15248 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15249 # library is relocated.
15250 hardcode_direct_absolute=$hardcode_direct_absolute
15252 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15253 # into the resulting binary.
15254 hardcode_minus_L=$hardcode_minus_L
15256 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15257 # into the resulting binary.
15258 hardcode_shlibpath_var=$hardcode_shlibpath_var
15260 # Set to "yes" if building a shared library automatically hardcodes DIR
15261 # into the library and all subsequent libraries and executables linked
15262 # against it.
15263 hardcode_automatic=$hardcode_automatic
15265 # Set to yes if linker adds runtime paths of dependent libraries
15266 # to runtime path list.
15267 inherit_rpath=$inherit_rpath
15269 # Whether libtool must link a program against all its dependency libraries.
15270 link_all_deplibs=$link_all_deplibs
15272 # Set to "yes" if exported symbols are required.
15273 always_export_symbols=$always_export_symbols
15275 # The commands to list exported symbols.
15276 export_symbols_cmds=$lt_export_symbols_cmds
15278 # Symbols that should not be listed in the preloaded symbols.
15279 exclude_expsyms=$lt_exclude_expsyms
15281 # Symbols that must always be exported.
15282 include_expsyms=$lt_include_expsyms
15284 # Commands necessary for linking programs (against libraries) with templates.
15285 prelink_cmds=$lt_prelink_cmds
15287 # Commands necessary for finishing linking programs.
15288 postlink_cmds=$lt_postlink_cmds
15290 # Specify filename containing input files.
15291 file_list_spec=$lt_file_list_spec
15293 # How to hardcode a shared library path into an executable.
15294 hardcode_action=$hardcode_action
15296 # ### END LIBTOOL CONFIG
15298 _LT_EOF
15300 cat <<'_LT_EOF' >> "$cfgfile"
15302 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15304 # func_munge_path_list VARIABLE PATH
15305 # -----------------------------------
15306 # VARIABLE is name of variable containing _space_ separated list of
15307 # directories to be munged by the contents of PATH, which is string
15308 # having a format:
15309 # "DIR[:DIR]:"
15310 # string "DIR[ DIR]" will be prepended to VARIABLE
15311 # ":DIR[:DIR]"
15312 # string "DIR[ DIR]" will be appended to VARIABLE
15313 # "DIRP[:DIRP]::[DIRA:]DIRA"
15314 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15315 # "DIRA[ DIRA]" will be appended to VARIABLE
15316 # "DIR[:DIR]"
15317 # VARIABLE will be replaced by "DIR[ DIR]"
15318 func_munge_path_list ()
15320 case x$2 in
15324 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15326 x:*)
15327 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15329 *::*)
15330 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15331 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15334 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15336 esac
15340 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15341 func_cc_basename ()
15343 for cc_temp in $*""; do
15344 case $cc_temp in
15345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15347 \-*) ;;
15348 *) break;;
15349 esac
15350 done
15351 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15355 # ### END FUNCTIONS SHARED WITH CONFIGURE
15357 _LT_EOF
15359 case $host_os in
15360 aix3*)
15361 cat <<\_LT_EOF >> "$cfgfile"
15362 # AIX sometimes has problems with the GCC collect2 program. For some
15363 # reason, if we set the COLLECT_NAMES environment variable, the problems
15364 # vanish in a puff of smoke.
15365 if test set != "${COLLECT_NAMES+set}"; then
15366 COLLECT_NAMES=
15367 export COLLECT_NAMES
15369 _LT_EOF
15371 esac
15374 ltmain=$ac_aux_dir/ltmain.sh
15377 # We use sed instead of cat because bash on DJGPP gets confused if
15378 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15379 # text mode, it properly converts lines to CR/LF. This bash problem
15380 # is reportedly fixed, but why not run on old versions too?
15381 sed '$q' "$ltmain" >> "$cfgfile" \
15382 || (rm -f "$cfgfile"; exit 1)
15384 mv -f "$cfgfile" "$ofile" ||
15385 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15386 chmod +x "$ofile"
15390 esac
15391 done # for ac_tag
15394 as_fn_exit 0
15395 _ACEOF
15396 ac_clean_files=$ac_clean_files_save
15398 test $ac_write_fail = 0 ||
15399 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15402 # configure is writing to config.log, and then calls config.status.
15403 # config.status does its own redirection, appending to config.log.
15404 # Unfortunately, on DOS this fails, as config.log is still kept open
15405 # by configure, so config.status won't be able to write to it; its
15406 # output is simply discarded. So we exec the FD to /dev/null,
15407 # effectively closing config.log, so it can be properly (re)opened and
15408 # appended to by config.status. When coming back to configure, we
15409 # need to make the FD available again.
15410 if test "$no_create" != yes; then
15411 ac_cs_success=:
15412 ac_config_status_args=
15413 test "$silent" = yes &&
15414 ac_config_status_args="$ac_config_status_args --quiet"
15415 exec 5>/dev/null
15416 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15417 exec 5>>config.log
15418 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15419 # would make configure fail if this is the last instruction.
15420 $ac_cs_success || as_fn_exit 1
15422 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15424 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}